From 6012821a19d75514d4a9370c0e423f5b1d1be50a Mon Sep 17 00:00:00 2001 From: ghou9khub Date: Thu, 26 Feb 2026 02:47:24 -0800 Subject: [PATCH 1/4] Remove changes for pgpm --- pnpm-lock.yaml | 10238 ++-- pnpm-workspace.yaml | 1 + sdk/constructive-sdk/README.md | 26 + sdk/constructive-sdk/package.json | 53 + sdk/constructive-sdk/schemas/admin.graphql | 9309 ++++ sdk/constructive-sdk/schemas/app.graphql | 153 + sdk/constructive-sdk/schemas/auth.graphql | 3706 ++ sdk/constructive-sdk/schemas/objects.graphql | 2263 + sdk/constructive-sdk/schemas/public.graphql | 39394 ++++++++++++++++ sdk/constructive-sdk/scripts/generate-sdk.ts | 68 + sdk/constructive-sdk/src/admin/README.md | 41 + sdk/constructive-sdk/src/admin/index.ts | 5 + sdk/constructive-sdk/src/admin/orm/AGENTS.md | 1222 + sdk/constructive-sdk/src/admin/orm/README.md | 1233 + sdk/constructive-sdk/src/admin/orm/client.ts | 137 + sdk/constructive-sdk/src/admin/orm/index.ts | 102 + .../src/admin/orm/input-types.ts | 4142 ++ .../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 | 393 + .../src/admin/orm/select-types.ts | 140 + sdk/constructive-sdk/src/admin/orm/types.ts | 8 + sdk/constructive-sdk/src/auth/README.md | 41 + sdk/constructive-sdk/src/auth/index.ts | 5 + sdk/constructive-sdk/src/auth/orm/AGENTS.md | 581 + sdk/constructive-sdk/src/auth/orm/README.md | 573 + sdk/constructive-sdk/src/auth/orm/client.ts | 137 + sdk/constructive-sdk/src/auth/orm/index.ts | 60 + .../src/auth/orm/input-types.ts | 1544 + .../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 + sdk/constructive-sdk/src/auth/orm/types.ts | 8 + sdk/constructive-sdk/src/index.ts | 13 + sdk/constructive-sdk/src/objects/README.md | 41 + sdk/constructive-sdk/src/objects/index.ts | 5 + .../src/objects/orm/AGENTS.md | 403 + .../src/objects/orm/README.md | 405 + .../src/objects/orm/client.ts | 137 + sdk/constructive-sdk/src/objects/orm/index.ts | 56 + .../src/objects/orm/input-types.ts | 990 + .../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 | 212 + .../src/objects/orm/select-types.ts | 140 + sdk/constructive-sdk/src/objects/orm/types.ts | 8 + sdk/constructive-sdk/src/public/README.md | 41 + sdk/constructive-sdk/src/public/index.ts | 5 + sdk/constructive-sdk/src/public/orm/AGENTS.md | 4865 ++ sdk/constructive-sdk/src/public/orm/README.md | 4601 ++ sdk/constructive-sdk/src/public/orm/client.ts | 137 + sdk/constructive-sdk/src/public/orm/index.ts | 244 + .../src/public/orm/input-types.ts | 18286 +++++++ .../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 | 1100 + .../src/public/orm/query-builder.ts | 847 + .../src/public/orm/query/index.ts | 676 + .../src/public/orm/select-types.ts | 140 + sdk/constructive-sdk/src/public/orm/types.ts | 8 + sdk/constructive-sdk/tsconfig.esm.json | 8 + sdk/constructive-sdk/tsconfig.json | 8 + 204 files changed, 137743 insertions(+), 7557 deletions(-) create mode 100644 sdk/constructive-sdk/README.md create mode 100644 sdk/constructive-sdk/package.json create mode 100644 sdk/constructive-sdk/schemas/admin.graphql create mode 100644 sdk/constructive-sdk/schemas/app.graphql create mode 100644 sdk/constructive-sdk/schemas/auth.graphql create mode 100644 sdk/constructive-sdk/schemas/objects.graphql create mode 100644 sdk/constructive-sdk/schemas/public.graphql create mode 100644 sdk/constructive-sdk/scripts/generate-sdk.ts create mode 100644 sdk/constructive-sdk/src/admin/README.md create mode 100644 sdk/constructive-sdk/src/admin/index.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/AGENTS.md create mode 100644 sdk/constructive-sdk/src/admin/orm/README.md create mode 100644 sdk/constructive-sdk/src/admin/orm/client.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/index.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/input-types.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/appAchievement.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/appAdminGrant.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/appGrant.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/appLevel.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/appLevelRequirement.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/appLimit.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/appLimitDefault.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/appMembership.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/appMembershipDefault.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/appOwnerGrant.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/appPermission.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/appPermissionDefault.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/appStep.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/claimedInvite.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/index.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/invite.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/membershipType.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/orgAdminGrant.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/orgClaimedInvite.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/orgGrant.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/orgInvite.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/orgLimit.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/orgLimitDefault.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/orgMember.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/orgMembership.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/orgMembershipDefault.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/orgOwnerGrant.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/orgPermission.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/orgPermissionDefault.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/mutation/index.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/query-builder.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/query/index.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/select-types.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/types.ts create mode 100644 sdk/constructive-sdk/src/auth/README.md create mode 100644 sdk/constructive-sdk/src/auth/index.ts create mode 100644 sdk/constructive-sdk/src/auth/orm/AGENTS.md create mode 100644 sdk/constructive-sdk/src/auth/orm/README.md create mode 100644 sdk/constructive-sdk/src/auth/orm/client.ts create mode 100644 sdk/constructive-sdk/src/auth/orm/index.ts create mode 100644 sdk/constructive-sdk/src/auth/orm/input-types.ts create mode 100644 sdk/constructive-sdk/src/auth/orm/models/auditLog.ts create mode 100644 sdk/constructive-sdk/src/auth/orm/models/connectedAccount.ts create mode 100644 sdk/constructive-sdk/src/auth/orm/models/cryptoAddress.ts create mode 100644 sdk/constructive-sdk/src/auth/orm/models/email.ts create mode 100644 sdk/constructive-sdk/src/auth/orm/models/index.ts create mode 100644 sdk/constructive-sdk/src/auth/orm/models/phoneNumber.ts create mode 100644 sdk/constructive-sdk/src/auth/orm/models/roleType.ts create mode 100644 sdk/constructive-sdk/src/auth/orm/models/user.ts create mode 100644 sdk/constructive-sdk/src/auth/orm/mutation/index.ts create mode 100644 sdk/constructive-sdk/src/auth/orm/query-builder.ts create mode 100644 sdk/constructive-sdk/src/auth/orm/query/index.ts create mode 100644 sdk/constructive-sdk/src/auth/orm/select-types.ts create mode 100644 sdk/constructive-sdk/src/auth/orm/types.ts create mode 100644 sdk/constructive-sdk/src/index.ts create mode 100644 sdk/constructive-sdk/src/objects/README.md create mode 100644 sdk/constructive-sdk/src/objects/index.ts create mode 100644 sdk/constructive-sdk/src/objects/orm/AGENTS.md create mode 100644 sdk/constructive-sdk/src/objects/orm/README.md create mode 100644 sdk/constructive-sdk/src/objects/orm/client.ts create mode 100644 sdk/constructive-sdk/src/objects/orm/index.ts create mode 100644 sdk/constructive-sdk/src/objects/orm/input-types.ts create mode 100644 sdk/constructive-sdk/src/objects/orm/models/commit.ts create mode 100644 sdk/constructive-sdk/src/objects/orm/models/getAllRecord.ts create mode 100644 sdk/constructive-sdk/src/objects/orm/models/index.ts create mode 100644 sdk/constructive-sdk/src/objects/orm/models/object.ts create mode 100644 sdk/constructive-sdk/src/objects/orm/models/ref.ts create mode 100644 sdk/constructive-sdk/src/objects/orm/models/store.ts create mode 100644 sdk/constructive-sdk/src/objects/orm/mutation/index.ts create mode 100644 sdk/constructive-sdk/src/objects/orm/query-builder.ts create mode 100644 sdk/constructive-sdk/src/objects/orm/query/index.ts create mode 100644 sdk/constructive-sdk/src/objects/orm/select-types.ts create mode 100644 sdk/constructive-sdk/src/objects/orm/types.ts create mode 100644 sdk/constructive-sdk/src/public/README.md create mode 100644 sdk/constructive-sdk/src/public/index.ts create mode 100644 sdk/constructive-sdk/src/public/orm/AGENTS.md create mode 100644 sdk/constructive-sdk/src/public/orm/README.md create mode 100644 sdk/constructive-sdk/src/public/orm/client.ts create mode 100644 sdk/constructive-sdk/src/public/orm/index.ts create mode 100644 sdk/constructive-sdk/src/public/orm/input-types.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/api.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/apiModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/apiSchema.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/app.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/appAchievement.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/appAdminGrant.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/appGrant.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/appLevel.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/appLevelRequirement.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/appLimit.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/appLimitDefault.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/appMembership.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/appMembershipDefault.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/appOwnerGrant.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/appPermission.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/appPermissionDefault.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/appStep.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/astMigration.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/auditLog.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/checkConstraint.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/claimedInvite.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/commit.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/connectedAccount.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/connectedAccountsModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/cryptoAddress.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/cryptoAddressesModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/cryptoAuthModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/database.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/databaseProvisionModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/defaultIdsModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/denormalizedTableField.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/domain.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/email.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/emailsModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/encryptedSecretsModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/field.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/fieldModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/foreignKeyConstraint.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/fullTextSearch.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/getAllRecord.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/hierarchyModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/index.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/indexModel.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/invite.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/invitesModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/levelsModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/limitFunction.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/limitsModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/membershipType.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/membershipTypesModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/membershipsModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/nodeTypeRegistry.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/object.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/orgAdminGrant.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/orgClaimedInvite.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/orgGrant.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/orgInvite.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/orgLimit.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/orgLimitDefault.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/orgMember.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/orgMembership.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/orgMembershipDefault.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/orgOwnerGrant.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/orgPermission.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/orgPermissionDefault.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/permissionsModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/phoneNumber.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/phoneNumbersModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/policy.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/primaryKeyConstraint.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/procedure.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/profilesModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/ref.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/rlsModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/roleType.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/schema.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/schemaGrant.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/secretsModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/sessionsModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/site.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/siteMetadatum.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/siteModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/siteTheme.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/sqlMigration.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/store.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/table.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/tableGrant.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/tableModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/tableTemplateModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/trigger.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/triggerFunction.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/uniqueConstraint.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/user.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/userAuthModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/usersModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/uuidModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/view.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/viewGrant.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/viewRule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/viewTable.ts create mode 100644 sdk/constructive-sdk/src/public/orm/mutation/index.ts create mode 100644 sdk/constructive-sdk/src/public/orm/query-builder.ts create mode 100644 sdk/constructive-sdk/src/public/orm/query/index.ts create mode 100644 sdk/constructive-sdk/src/public/orm/select-types.ts create mode 100644 sdk/constructive-sdk/src/public/orm/types.ts create mode 100644 sdk/constructive-sdk/tsconfig.esm.json create mode 100644 sdk/constructive-sdk/tsconfig.json diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8468c2bba..e1c4cd61d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,6 +10,7 @@ overrides: packageExtensionsChecksum: sha256-x8B4zkJ4KLRX+yspUWxuggXWlz6zrBLSIh72pNhpPiE= importers: + .: devDependencies: '@jest/test-sequencer': @@ -1918,6 +1919,9 @@ importers: genomic: specifier: ^5.3.0 version: 5.3.0 + graphile-schema: + specifier: workspace:^ + version: link:../../graphile/graphile-schema/dist inquirerer: specifier: ^4.4.0 version: 4.4.0 @@ -2375,6 +2379,38 @@ importers: version: 0.1.12 publishDirectory: dist + sdk/constructive-sdk: + 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 + 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 + makage: + specifier: ^0.1.12 + version: 0.1.12 + tsx: + specifier: ^4.19.0 + version: 4.21.0 + typescript: + specifier: ^5.9.3 + version: 5.9.3 + publishDirectory: dist + uploads/content-type-stream: dependencies: etag-hash: @@ -2512,11 +2548,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: @@ -2524,399 +2558,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: @@ -2924,11 +2787,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: @@ -2936,401 +2796,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 @@ -3343,662 +3047,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 @@ -4007,10 +3471,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 @@ -4018,10 +3479,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 @@ -4029,10 +3487,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' @@ -4041,64 +3496,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: @@ -4106,10 +3537,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: @@ -4117,79 +3545,46 @@ packages: optional: true '@inquirerer/utils@3.2.3': - resolution: - { - integrity: sha512-Ak0GspJ8fT9aW9pp1Op53xebtJOoZpt1/7eklI1TpUh7QuLxqmk2cl7sGMP1mROvR3q5Ms10ZvJ3eS2GKI++yw==, - } + resolution: {integrity: sha512-Ak0GspJ8fT9aW9pp1Op53xebtJOoZpt1/7eklI1TpUh7QuLxqmk2cl7sGMP1mROvR3q5Ms10ZvJ3eS2GKI++yw==} '@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: @@ -4197,67 +3592,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: @@ -4265,699 +3633,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': '*' @@ -4970,10 +4044,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': '*' @@ -4986,10 +4057,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 @@ -4998,10 +4066,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 @@ -5010,10 +4075,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': '*' @@ -5026,10 +4088,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 @@ -5038,10 +4097,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': '*' @@ -5054,10 +4110,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': '*' @@ -5070,10 +4123,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 @@ -5082,10 +4132,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': '*' @@ -5098,10 +4145,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 @@ -5110,10 +4154,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': '*' @@ -5126,10 +4167,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': '*' @@ -5142,10 +4180,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': '*' @@ -5158,10 +4193,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': '*' @@ -5174,10 +4206,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': '*' @@ -5190,10 +4219,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': '*' @@ -5206,10 +4232,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': '*' @@ -5222,10 +4245,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 @@ -5234,10 +4254,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 @@ -5246,10 +4263,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': '*' @@ -5262,10 +4276,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 @@ -5274,10 +4285,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 @@ -5286,10 +4294,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 @@ -5298,10 +4303,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 @@ -5310,10 +4312,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 @@ -5322,10 +4321,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 @@ -5334,10 +4330,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 @@ -5346,10 +4339,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': '*' @@ -5362,10 +4352,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': '*' @@ -5378,2745 +4365,1548 @@ 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==} 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: @@ -8124,128 +5914,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: @@ -8253,31 +5986,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: @@ -8285,10 +6006,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: @@ -8296,230 +6014,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' @@ -8611,270 +6224,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 @@ -8883,32 +6379,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: '*' @@ -8917,177 +6401,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: @@ -9095,98 +6501,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: @@ -9194,38 +6558,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 @@ -9239,297 +6588,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 @@ -9538,11 +6761,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 @@ -9565,11 +6785,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 @@ -9584,29 +6801,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 @@ -9620,11 +6828,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 @@ -9638,56 +6843,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 @@ -9702,642 +6889,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 @@ -10346,11 +7251,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' @@ -10364,95 +7266,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: @@ -10460,81 +7323,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 @@ -10543,594 +7373,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: @@ -11138,585 +7698,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: @@ -11724,11 +8020,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: @@ -11736,180 +8029,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 @@ -11921,436 +8136,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: @@ -12358,147 +8381,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 @@ -12518,119 +8478,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: @@ -12638,156 +8547,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: '*' @@ -12799,18 +8639,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 @@ -12819,11 +8653,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 @@ -12832,11 +8663,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 @@ -12845,238 +8673,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 @@ -13088,39 +8814,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 @@ -13132,11 +8843,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 @@ -13150,703 +8858,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' @@ -13872,10 +9271,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' @@ -13889,264 +9285,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 @@ -14155,11 +9437,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 @@ -14168,72 +9447,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 @@ -14272,170 +9521,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' @@ -14446,119 +9620,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' @@ -14575,6 +9698,7 @@ packages: optional: true snapshots: + '@0no-co/graphql.web@1.2.0(graphql@15.10.1)': optionalDependencies: graphql: 15.10.1 @@ -16522,7 +11646,7 @@ snapshots: '@npmcli/fs@3.1.1': dependencies: - semver: 7.7.3 + semver: 7.7.4 '@npmcli/git@5.0.8': dependencies: @@ -16533,7 +11657,7 @@ snapshots: proc-log: 4.2.0 promise-inflight: 1.0.1 promise-retry: 2.0.1 - semver: 7.7.3 + semver: 7.7.4 which: 4.0.0 transitivePeerDependencies: - bluebird @@ -16556,7 +11680,7 @@ snapshots: json-parse-even-better-errors: 3.0.2 pacote: 18.0.6 proc-log: 4.2.0 - semver: 7.7.3 + semver: 7.7.4 transitivePeerDependencies: - bluebird - supports-color @@ -18527,7 +13651,7 @@ snapshots: '@babel/helper-annotate-as-pure': 7.27.3 '@babel/helper-module-imports': 7.27.1(supports-color@5.5.0) '@babel/plugin-syntax-jsx': 7.27.1(@babel/core@7.28.6) - lodash: 4.17.21 + lodash: 4.17.23 picomatch: 2.3.1 styled-components: 5.3.11(@babel/core@7.28.6)(react-dom@19.2.3(react@19.2.3))(react-is@19.2.4)(react@19.2.3) transitivePeerDependencies: @@ -18931,7 +14055,7 @@ snapshots: handlebars: 4.7.8 json-stringify-safe: 5.0.1 meow: 8.1.2 - semver: 7.7.3 + semver: 7.7.4 split: 1.0.1 conventional-commits-filter@3.0.0: @@ -19744,7 +14868,7 @@ snapshots: git-semver-tags@5.0.1: dependencies: meow: 8.1.2 - semver: 7.7.3 + semver: 7.7.4 git-up@7.0.0: dependencies: @@ -20619,7 +15743,7 @@ snapshots: jest-message-util: 30.2.0 jest-util: 30.2.0 pretty-format: 30.2.0 - semver: 7.7.3 + semver: 7.7.4 synckit: 0.11.12 transitivePeerDependencies: - supports-color @@ -21205,7 +16329,7 @@ snapshots: mjml-accordion@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21213,7 +16337,7 @@ snapshots: mjml-body@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21221,7 +16345,7 @@ snapshots: mjml-button@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21229,7 +16353,7 @@ snapshots: mjml-carousel@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21239,7 +16363,7 @@ snapshots: '@babel/runtime': 7.28.4 chokidar: 3.6.0 glob: 7.2.3 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) mjml-migrate: 4.7.1(encoding@0.1.13) mjml-parser-xml: 4.7.1 @@ -21251,7 +16375,7 @@ snapshots: mjml-column@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21263,7 +16387,7 @@ snapshots: html-minifier: 3.5.21 js-beautify: 1.15.4 juice: 7.0.0(encoding@0.1.13) - lodash: 4.17.21 + lodash: 4.17.23 mjml-migrate: 4.7.1(encoding@0.1.13) mjml-parser-xml: 4.7.1 mjml-validator: 4.7.1 @@ -21273,7 +16397,7 @@ snapshots: mjml-divider@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21281,7 +16405,7 @@ snapshots: mjml-group@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21289,7 +16413,7 @@ snapshots: mjml-head-attributes@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21297,7 +16421,7 @@ snapshots: mjml-head-breakpoint@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21305,7 +16429,7 @@ snapshots: mjml-head-font@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21313,7 +16437,7 @@ snapshots: mjml-head-html-attributes@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21321,7 +16445,7 @@ snapshots: mjml-head-preview@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21329,7 +16453,7 @@ snapshots: mjml-head-style@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21337,7 +16461,7 @@ snapshots: mjml-head-title@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21345,7 +16469,7 @@ snapshots: mjml-head@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21353,7 +16477,7 @@ snapshots: mjml-hero@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21361,7 +16485,7 @@ snapshots: mjml-image@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21370,7 +16494,7 @@ snapshots: dependencies: '@babel/runtime': 7.28.4 js-beautify: 1.15.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) mjml-parser-xml: 4.7.1 yargs: 15.4.1 @@ -21380,7 +16504,7 @@ snapshots: mjml-navbar@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21394,7 +16518,7 @@ snapshots: mjml-raw@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21409,7 +16533,7 @@ snapshots: mjml-section@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21417,7 +16541,7 @@ snapshots: mjml-social@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21425,7 +16549,7 @@ snapshots: mjml-spacer@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21433,7 +16557,7 @@ snapshots: mjml-table@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21441,7 +16565,7 @@ snapshots: mjml-text@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) transitivePeerDependencies: - encoding @@ -21449,13 +16573,13 @@ snapshots: mjml-validator@4.7.1: dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 warning: 3.0.0 mjml-wrapper@4.7.1(encoding@0.1.13): dependencies: '@babel/runtime': 7.28.4 - lodash: 4.17.21 + lodash: 4.17.23 mjml-core: 4.7.1(encoding@0.1.13) mjml-section: 4.7.1(encoding@0.1.13) transitivePeerDependencies: @@ -21592,7 +16716,7 @@ snapshots: make-fetch-happen: 13.0.1 nopt: 7.2.1 proc-log: 4.2.0 - semver: 7.7.3 + semver: 7.7.4 tar: 6.2.1 which: 4.0.0 transitivePeerDependencies: @@ -21647,13 +16771,13 @@ snapshots: dependencies: hosted-git-info: 4.1.0 is-core-module: 2.16.1 - semver: 7.7.3 + semver: 7.7.4 validate-npm-package-license: 3.0.4 normalize-package-data@6.0.2: dependencies: hosted-git-info: 7.0.2 - semver: 7.7.3 + semver: 7.7.4 validate-npm-package-license: 3.0.4 normalize-path@3.0.0: {} @@ -21664,7 +16788,7 @@ snapshots: npm-install-checks@6.3.0: dependencies: - semver: 7.7.3 + semver: 7.7.4 npm-normalize-package-bin@3.0.1: {} @@ -21684,7 +16808,7 @@ snapshots: npm-install-checks: 6.3.0 npm-normalize-package-bin: 3.0.1 npm-package-arg: 11.0.2 - semver: 7.7.3 + semver: 7.7.4 npm-registry-fetch@17.1.0: dependencies: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index d612388cd..fcc12b909 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -2,6 +2,7 @@ packages: - 'packages/*' - 'pgpm/*' - 'graphql/*' + - 'sdk/*' - 'examples/*' - 'uploads/*' - 'postgres/*' diff --git a/sdk/constructive-sdk/README.md b/sdk/constructive-sdk/README.md new file mode 100644 index 000000000..9129e1210 --- /dev/null +++ b/sdk/constructive-sdk/README.md @@ -0,0 +1,26 @@ +# GraphQL SDK + +

+ +

+ +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +## APIs + +| API | Endpoint | Generators | Docs | +|-----|----------|------------|------| +| admin | - | ORM | [./src/admin/README.md](./src/admin/README.md) | +| auth | - | ORM | [./src/auth/README.md](./src/auth/README.md) | +| objects | - | ORM | [./src/objects/README.md](./src/objects/README.md) | +| public | - | 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-sdk/package.json b/sdk/constructive-sdk/package.json new file mode 100644 index 000000000..398244e84 --- /dev/null +++ b/sdk/constructive-sdk/package.json @@ -0,0 +1,53 @@ +{ + "name": "@constructive-io/sdk", + "version": "0.0.1", + "author": "Constructive ", + "description": "Constructive SDK - Auto-generated GraphQL types 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-sdk.ts", + "lint": "eslint . --fix", + "test": "jest --passWithNoTests", + "test:watch": "jest --watch" + }, + "keywords": [ + "graphql", + "sdk", + "orm", + "constructive", + "postgraphile", + "schema-dir" + ], + "dependencies": { + "@0no-co/graphql.web": "^1.1.2", + "@constructive-io/graphql-types": "workspace:^", + "gql-ast": "workspace:^", + "graphql": "^16.12.0" + }, + "devDependencies": { + "@constructive-io/graphql-codegen": "workspace:^", + "@types/node": "^20.12.7", + "makage": "^0.1.12", + "tsx": "^4.19.0", + "typescript": "^5.9.3" + } +} diff --git a/sdk/constructive-sdk/schemas/admin.graphql b/sdk/constructive-sdk/schemas/admin.graphql new file mode 100644 index 000000000..7824f077c --- /dev/null +++ b/sdk/constructive-sdk/schemas/admin.graphql @@ -0,0 +1,9309 @@ +"""The root query type which gives access points into the data universe.""" +type Query { + appPermissionsGetPaddedMask(mask: BitString): BitString + orgPermissionsGetPaddedMask(mask: BitString): BitString + stepsAchieved(vlevel: String, vroleId: UUID): Boolean + appPermissionsGetMask(ids: [UUID]): BitString + orgPermissionsGetMask(ids: [UUID]): BitString + appPermissionsGetMaskByNames(names: [String]): BitString + orgPermissionsGetMaskByNames(names: [String]): BitString + + """Reads and enables pagination through a set of `AppPermission`.""" + appPermissionsGetByMask( + mask: BitString + + """Only read the first `n` values of the set.""" + first: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set after (below) this cursor.""" + after: Cursor + ): AppPermissionConnection + + """Reads and enables pagination through a set of `OrgPermission`.""" + orgPermissionsGetByMask( + mask: BitString + + """Only read the first `n` values of the set.""" + first: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set after (below) this cursor.""" + after: Cursor + ): OrgPermissionConnection + + """Reads and enables pagination through a set of `AppLevelRequirement`.""" + stepsRequired( + vlevel: String + vroleId: UUID + + """Only read the first `n` values of the set.""" + first: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set after (below) this cursor.""" + after: Cursor + ): AppLevelRequirementConnection + + """Reads and enables pagination through a set of `OrgMember`.""" + orgMembers( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgMemberCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgMemberFilter + + """The method to use when ordering `OrgMember`.""" + orderBy: [OrgMemberOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMemberConnection + + """Reads and enables pagination through a set of `AppPermissionDefault`.""" + appPermissionDefaults( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppPermissionDefaultCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppPermissionDefaultFilter + + """The method to use when ordering `AppPermissionDefault`.""" + orderBy: [AppPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultConnection + + """Reads and enables pagination through a set of `OrgPermissionDefault`.""" + orgPermissionDefaults( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgPermissionDefaultCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgPermissionDefaultFilter + + """The method to use when ordering `OrgPermissionDefault`.""" + orderBy: [OrgPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultConnection + + """Reads and enables pagination through a set of `AppAdminGrant`.""" + appAdminGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppAdminGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppAdminGrantFilter + + """The method to use when ordering `AppAdminGrant`.""" + orderBy: [AppAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppAdminGrantConnection + + """Reads and enables pagination through a set of `AppOwnerGrant`.""" + appOwnerGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppOwnerGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppOwnerGrantFilter + + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppOwnerGrantConnection + + """Reads and enables pagination through a set of `AppLimitDefault`.""" + appLimitDefaults( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppLimitDefaultCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppLimitDefaultFilter + + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitDefaultConnection + + """Reads and enables pagination through a set of `OrgLimitDefault`.""" + orgLimitDefaults( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgLimitDefaultCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgLimitDefaultFilter + + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultConnection + + """Reads and enables pagination through a set of `OrgAdminGrant`.""" + orgAdminGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgAdminGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgAdminGrantFilter + + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgAdminGrantConnection + + """Reads and enables pagination through a set of `OrgOwnerGrant`.""" + orgOwnerGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgOwnerGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgOwnerGrantFilter + + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantConnection + + """Reads and enables pagination through a set of `MembershipType`.""" + membershipTypes( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: MembershipTypeCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: MembershipTypeFilter + + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!] = [PRIMARY_KEY_ASC] + ): MembershipTypeConnection + + """Reads and enables pagination through a set of `AppPermission`.""" + appPermissions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppPermissionCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppPermissionFilter + + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!] = [PRIMARY_KEY_ASC] + ): AppPermissionConnection + + """Reads and enables pagination through a set of `OrgPermission`.""" + orgPermissions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgPermissionCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgPermissionFilter + + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgPermissionConnection + + """Reads and enables pagination through a set of `AppLimit`.""" + appLimits( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppLimitCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppLimitFilter + + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitConnection + + """Reads and enables pagination through a set of `AppAchievement`.""" + appAchievements( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppAchievementCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppAchievementFilter + + """The method to use when ordering `AppAchievement`.""" + orderBy: [AppAchievementOrderBy!] = [PRIMARY_KEY_ASC] + ): AppAchievementConnection + + """Reads and enables pagination through a set of `AppStep`.""" + appSteps( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppStepCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppStepFilter + + """The method to use when ordering `AppStep`.""" + orderBy: [AppStepOrderBy!] = [PRIMARY_KEY_ASC] + ): AppStepConnection + + """Reads and enables pagination through a set of `ClaimedInvite`.""" + claimedInvites( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ClaimedInviteCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ClaimedInviteFilter + + """The method to use when ordering `ClaimedInvite`.""" + orderBy: [ClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): ClaimedInviteConnection + + """Reads and enables pagination through a set of `AppGrant`.""" + appGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppGrantFilter + + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppGrantConnection + + """Reads and enables pagination through a set of `AppMembershipDefault`.""" + appMembershipDefaults( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppMembershipDefaultCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppMembershipDefaultFilter + + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultConnection + + """Reads and enables pagination through a set of `OrgLimit`.""" + orgLimits( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgLimitCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgLimitFilter + + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitConnection + + """Reads and enables pagination through a set of `OrgClaimedInvite`.""" + orgClaimedInvites( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgClaimedInviteCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgClaimedInviteFilter + + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteConnection + + """Reads and enables pagination through a set of `OrgGrant`.""" + orgGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgGrantFilter + + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgGrantConnection + + """Reads and enables pagination through a set of `OrgMembershipDefault`.""" + orgMembershipDefaults( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgMembershipDefaultCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgMembershipDefaultFilter + + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultConnection + + """Reads and enables pagination through a set of `AppLevelRequirement`.""" + appLevelRequirements( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppLevelRequirementCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppLevelRequirementFilter + + """The method to use when ordering `AppLevelRequirement`.""" + orderBy: [AppLevelRequirementOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLevelRequirementConnection + + """Reads and enables pagination through a set of `AppLevel`.""" + appLevels( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppLevelCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppLevelFilter + + """The method to use when ordering `AppLevel`.""" + orderBy: [AppLevelOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLevelConnection + + """Reads and enables pagination through a set of `Invite`.""" + invites( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: InviteCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: InviteFilter + + """The method to use when ordering `Invite`.""" + orderBy: [InviteOrderBy!] = [PRIMARY_KEY_ASC] + ): InviteConnection + + """Reads and enables pagination through a set of `AppMembership`.""" + appMemberships( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppMembershipCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppMembershipFilter + + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!] = [PRIMARY_KEY_ASC] + ): AppMembershipConnection + + """Reads and enables pagination through a set of `OrgMembership`.""" + orgMemberships( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgMembershipCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgMembershipFilter + + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipConnection + + """Reads and enables pagination through a set of `OrgInvite`.""" + orgInvites( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgInviteCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgInviteFilter + + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgInviteConnection + + """ + Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. + """ + _meta: MetaSchema +} + +"""A string representing a series of binary bits""" +scalar BitString + +""" +A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). +""" +scalar UUID + +"""A connection to a list of `AppPermission` values.""" +type 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: Int! +} + +type AppPermission { + id: UUID! + name: String + bitnum: Int + bitstr: BitString! + description: String +} + +"""A `AppPermission` edge in the connection.""" +type AppPermissionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppPermission` at the end of the edge.""" + node: AppPermission +} + +"""A location in a connection that can be used for resuming pagination.""" +scalar Cursor + +"""Information about pagination in a connection.""" +type 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: Cursor + + """When paginating forwards, the cursor to continue.""" + endCursor: Cursor +} + +"""A connection to a list of `OrgPermission` values.""" +type 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: Int! +} + +type OrgPermission { + id: UUID! + name: String + bitnum: Int + bitstr: BitString! + description: String +} + +"""A `OrgPermission` edge in the connection.""" +type OrgPermissionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgPermission` at the end of the edge.""" + node: OrgPermission +} + +"""A connection to a list of `AppLevelRequirement` values.""" +type 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: Int! +} + +"""Requirements to achieve a level""" +type AppLevelRequirement { + id: UUID! + name: String! + level: String! + description: String + requiredCount: Int! + priority: Int! + createdAt: Datetime + updatedAt: Datetime +} + +""" +A point in time as described by the [ISO +8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC +3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values +that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead +to unexpected results. +""" +scalar Datetime + +"""A `AppLevelRequirement` edge in the connection.""" +type AppLevelRequirementEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLevelRequirement` at the end of the edge.""" + node: AppLevelRequirement +} + +"""A connection to a list of `OrgMember` values.""" +type OrgMemberConnection { + """A list of `OrgMember` objects.""" + nodes: [OrgMember]! + + """ + A list of edges which contains the `OrgMember` and cursor to aid in pagination. + """ + edges: [OrgMemberEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgMember` you could get from the connection.""" + totalCount: Int! +} + +type OrgMember { + id: UUID! + isAdmin: Boolean! + actorId: UUID! + entityId: UUID! +} + +"""A `OrgMember` edge in the connection.""" +type OrgMemberEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgMember` at the end of the edge.""" + node: OrgMember +} + +""" +A condition to be used against `OrgMember` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input OrgMemberCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `isAdmin` field.""" + isAdmin: Boolean + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `entityId` field.""" + entityId: UUID +} + +""" +A filter to be used against `OrgMember` object types. All fields are combined with a logical ‘and.’ +""" +input 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 filter to be used against UUID fields. All fields are combined with a logical ‘and.’ +""" +input UUIDFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: UUID + + """Not equal to the specified value.""" + notEqualTo: UUID + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: UUID + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: UUID + + """Included in the specified list.""" + in: [UUID!] + + """Not included in the specified list.""" + notIn: [UUID!] + + """Less than the specified value.""" + lessThan: UUID + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: UUID + + """Greater than the specified value.""" + greaterThan: UUID + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: UUID +} + +""" +A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ +""" +input BooleanFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: Boolean + + """Not equal to the specified value.""" + notEqualTo: Boolean + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Boolean + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Boolean + + """Included in the specified list.""" + in: [Boolean!] + + """Not included in the specified list.""" + notIn: [Boolean!] + + """Less than the specified value.""" + lessThan: Boolean + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Boolean + + """Greater than the specified value.""" + greaterThan: Boolean + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Boolean +} + +"""Methods to use when ordering `OrgMember`.""" +enum 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 +} + +"""A connection to a list of `AppPermissionDefault` values.""" +type AppPermissionDefaultConnection { + """A list of `AppPermissionDefault` objects.""" + nodes: [AppPermissionDefault]! + + """ + A list of edges which contains the `AppPermissionDefault` and cursor to aid in pagination. + """ + edges: [AppPermissionDefaultEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `AppPermissionDefault` you could get from the connection. + """ + totalCount: Int! +} + +type AppPermissionDefault { + id: UUID! + permissions: BitString! +} + +"""A `AppPermissionDefault` edge in the connection.""" +type AppPermissionDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppPermissionDefault` at the end of the edge.""" + node: AppPermissionDefault +} + +""" +A condition to be used against `AppPermissionDefault` object types. All fields +are tested for equality and combined with a logical ‘and.’ +""" +input AppPermissionDefaultCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `permissions` field.""" + permissions: BitString +} + +""" +A filter to be used against `AppPermissionDefault` object types. All fields are combined with a logical ‘and.’ +""" +input 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 filter to be used against BitString fields. All fields are combined with a logical ‘and.’ +""" +input BitStringFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: BitString + + """Not equal to the specified value.""" + notEqualTo: BitString + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: BitString + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: BitString + + """Included in the specified list.""" + in: [BitString!] + + """Not included in the specified list.""" + notIn: [BitString!] + + """Less than the specified value.""" + lessThan: BitString + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: BitString + + """Greater than the specified value.""" + greaterThan: BitString + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: BitString +} + +"""Methods to use when ordering `AppPermissionDefault`.""" +enum AppPermissionDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC +} + +"""A connection to a list of `OrgPermissionDefault` values.""" +type OrgPermissionDefaultConnection { + """A list of `OrgPermissionDefault` objects.""" + nodes: [OrgPermissionDefault]! + + """ + A list of edges which contains the `OrgPermissionDefault` and cursor to aid in pagination. + """ + edges: [OrgPermissionDefaultEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgPermissionDefault` you could get from the connection. + """ + totalCount: Int! +} + +type OrgPermissionDefault { + id: UUID! + permissions: BitString! + entityId: UUID! +} + +"""A `OrgPermissionDefault` edge in the connection.""" +type OrgPermissionDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgPermissionDefault` at the end of the edge.""" + node: OrgPermissionDefault +} + +""" +A condition to be used against `OrgPermissionDefault` object types. All fields +are tested for equality and combined with a logical ‘and.’ +""" +input OrgPermissionDefaultCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `permissions` field.""" + permissions: BitString + + """Checks for equality with the object’s `entityId` field.""" + entityId: UUID +} + +""" +A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgPermissionDefault`.""" +enum OrgPermissionDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC +} + +"""A connection to a list of `AppAdminGrant` values.""" +type AppAdminGrantConnection { + """A list of `AppAdminGrant` objects.""" + nodes: [AppAdminGrant]! + + """ + A list of edges which contains the `AppAdminGrant` and cursor to aid in pagination. + """ + edges: [AppAdminGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppAdminGrant` you could get from the connection.""" + totalCount: Int! +} + +type AppAdminGrant { + id: UUID! + isGrant: Boolean! + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""A `AppAdminGrant` edge in the connection.""" +type AppAdminGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppAdminGrant` at the end of the edge.""" + node: AppAdminGrant +} + +""" +A condition to be used against `AppAdminGrant` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input AppAdminGrantCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `isGrant` field.""" + isGrant: Boolean + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `grantorId` field.""" + grantorId: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ +""" +input 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 filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ +""" +input DatetimeFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: Datetime + + """Not equal to the specified value.""" + notEqualTo: Datetime + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Datetime + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Datetime + + """Included in the specified list.""" + in: [Datetime!] + + """Not included in the specified list.""" + notIn: [Datetime!] + + """Less than the specified value.""" + lessThan: Datetime + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Datetime + + """Greater than the specified value.""" + greaterThan: Datetime + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Datetime +} + +"""Methods to use when ordering `AppAdminGrant`.""" +enum 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 +} + +"""A connection to a list of `AppOwnerGrant` values.""" +type AppOwnerGrantConnection { + """A list of `AppOwnerGrant` objects.""" + nodes: [AppOwnerGrant]! + + """ + A list of edges which contains the `AppOwnerGrant` and cursor to aid in pagination. + """ + edges: [AppOwnerGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppOwnerGrant` you could get from the connection.""" + totalCount: Int! +} + +type AppOwnerGrant { + id: UUID! + isGrant: Boolean! + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""A `AppOwnerGrant` edge in the connection.""" +type AppOwnerGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppOwnerGrant` at the end of the edge.""" + node: AppOwnerGrant +} + +""" +A condition to be used against `AppOwnerGrant` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input AppOwnerGrantCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `isGrant` field.""" + isGrant: Boolean + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `grantorId` field.""" + grantorId: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `AppOwnerGrant`.""" +enum 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 +} + +"""A connection to a list of `AppLimitDefault` values.""" +type AppLimitDefaultConnection { + """A list of `AppLimitDefault` objects.""" + nodes: [AppLimitDefault]! + + """ + A list of edges which contains the `AppLimitDefault` and cursor to aid in pagination. + """ + edges: [AppLimitDefaultEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `AppLimitDefault` you could get from the connection. + """ + totalCount: Int! +} + +type AppLimitDefault { + id: UUID! + name: String! + max: Int +} + +"""A `AppLimitDefault` edge in the connection.""" +type AppLimitDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLimitDefault` at the end of the edge.""" + node: AppLimitDefault +} + +""" +A condition to be used against `AppLimitDefault` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input AppLimitDefaultCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `max` field.""" + max: Int +} + +""" +A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ +""" +input 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 filter to be used against String fields. All fields are combined with a logical ‘and.’ +""" +input StringFilter { + """ + 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: String + + """Does not contain the specified string (case-insensitive).""" + notIncludesInsensitive: String + + """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: String + + """Does not start with the specified string (case-insensitive).""" + notStartsWithInsensitive: String + + """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: String + + """Does not end with the specified string (case-insensitive).""" + notEndsWithInsensitive: String + + """ + 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: String + + """ + 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: String + + """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 filter to be used against Int fields. All fields are combined with a logical ‘and.’ +""" +input IntFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: Int + + """Not equal to the specified value.""" + notEqualTo: Int + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Int + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Int + + """Included in the specified list.""" + in: [Int!] + + """Not included in the specified list.""" + notIn: [Int!] + + """Less than the specified value.""" + lessThan: Int + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Int + + """Greater than the specified value.""" + greaterThan: Int + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Int +} + +"""Methods to use when ordering `AppLimitDefault`.""" +enum AppLimitDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC +} + +"""A connection to a list of `OrgLimitDefault` values.""" +type OrgLimitDefaultConnection { + """A list of `OrgLimitDefault` objects.""" + nodes: [OrgLimitDefault]! + + """ + A list of edges which contains the `OrgLimitDefault` and cursor to aid in pagination. + """ + edges: [OrgLimitDefaultEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgLimitDefault` you could get from the connection. + """ + totalCount: Int! +} + +type OrgLimitDefault { + id: UUID! + name: String! + max: Int +} + +"""A `OrgLimitDefault` edge in the connection.""" +type OrgLimitDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgLimitDefault` at the end of the edge.""" + node: OrgLimitDefault +} + +""" +A condition to be used against `OrgLimitDefault` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input OrgLimitDefaultCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `max` field.""" + max: Int +} + +""" +A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgLimitDefault`.""" +enum OrgLimitDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC +} + +"""A connection to a list of `OrgAdminGrant` values.""" +type OrgAdminGrantConnection { + """A list of `OrgAdminGrant` objects.""" + nodes: [OrgAdminGrant]! + + """ + A list of edges which contains the `OrgAdminGrant` and cursor to aid in pagination. + """ + edges: [OrgAdminGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgAdminGrant` you could get from the connection.""" + totalCount: Int! +} + +type OrgAdminGrant { + id: UUID! + isGrant: Boolean! + actorId: UUID! + entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""A `OrgAdminGrant` edge in the connection.""" +type OrgAdminGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgAdminGrant` at the end of the edge.""" + node: OrgAdminGrant +} + +""" +A condition to be used against `OrgAdminGrant` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input OrgAdminGrantCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `isGrant` field.""" + isGrant: Boolean + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `entityId` field.""" + entityId: UUID + + """Checks for equality with the object’s `grantorId` field.""" + grantorId: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgAdminGrant`.""" +enum 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 +} + +"""A connection to a list of `OrgOwnerGrant` values.""" +type OrgOwnerGrantConnection { + """A list of `OrgOwnerGrant` objects.""" + nodes: [OrgOwnerGrant]! + + """ + A list of edges which contains the `OrgOwnerGrant` and cursor to aid in pagination. + """ + edges: [OrgOwnerGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgOwnerGrant` you could get from the connection.""" + totalCount: Int! +} + +type OrgOwnerGrant { + id: UUID! + isGrant: Boolean! + actorId: UUID! + entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""A `OrgOwnerGrant` edge in the connection.""" +type OrgOwnerGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgOwnerGrant` at the end of the edge.""" + node: OrgOwnerGrant +} + +""" +A condition to be used against `OrgOwnerGrant` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input OrgOwnerGrantCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `isGrant` field.""" + isGrant: Boolean + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `entityId` field.""" + entityId: UUID + + """Checks for equality with the object’s `grantorId` field.""" + grantorId: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgOwnerGrant`.""" +enum 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 +} + +"""A connection to a list of `MembershipType` values.""" +type MembershipTypeConnection { + """A list of `MembershipType` objects.""" + nodes: [MembershipType]! + + """ + A list of edges which contains the `MembershipType` and cursor to aid in pagination. + """ + edges: [MembershipTypeEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `MembershipType` you could get from the connection.""" + totalCount: Int! +} + +type MembershipType { + id: Int! + name: String! + description: String! + prefix: String! +} + +"""A `MembershipType` edge in the connection.""" +type MembershipTypeEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `MembershipType` at the end of the edge.""" + node: MembershipType +} + +""" +A condition to be used against `MembershipType` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input MembershipTypeCondition { + """Checks for equality with the object’s `id` field.""" + id: Int + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `MembershipType`.""" +enum MembershipTypeOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC +} + +""" +A condition to be used against `AppPermission` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input AppPermissionCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `bitnum` field.""" + bitnum: Int + + """Checks for equality with the object’s `bitstr` field.""" + bitstr: BitString + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `AppPermission`.""" +enum AppPermissionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + BITNUM_ASC + BITNUM_DESC +} + +""" +A condition to be used against `OrgPermission` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input OrgPermissionCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `bitnum` field.""" + bitnum: Int + + """Checks for equality with the object’s `bitstr` field.""" + bitstr: BitString + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgPermission`.""" +enum OrgPermissionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + BITNUM_ASC + BITNUM_DESC +} + +"""A connection to a list of `AppLimit` values.""" +type AppLimitConnection { + """A list of `AppLimit` objects.""" + nodes: [AppLimit]! + + """ + A list of edges which contains the `AppLimit` and cursor to aid in pagination. + """ + edges: [AppLimitEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppLimit` you could get from the connection.""" + totalCount: Int! +} + +type AppLimit { + id: UUID! + name: String + actorId: UUID! + num: Int + max: Int +} + +"""A `AppLimit` edge in the connection.""" +type AppLimitEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLimit` at the end of the edge.""" + node: AppLimit +} + +""" +A condition to be used against `AppLimit` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input AppLimitCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `num` field.""" + num: Int + + """Checks for equality with the object’s `max` field.""" + max: Int +} + +""" +A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `AppLimit`.""" +enum AppLimitOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC +} + +"""A connection to a list of `AppAchievement` values.""" +type AppAchievementConnection { + """A list of `AppAchievement` objects.""" + nodes: [AppAchievement]! + + """ + A list of edges which contains the `AppAchievement` and cursor to aid in pagination. + """ + edges: [AppAchievementEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppAchievement` you could get from the connection.""" + totalCount: Int! +} + +""" +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. +""" +type AppAchievement { + id: UUID! + actorId: UUID! + name: String! + count: Int! + createdAt: Datetime + updatedAt: Datetime +} + +"""A `AppAchievement` edge in the connection.""" +type AppAchievementEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppAchievement` at the end of the edge.""" + node: AppAchievement +} + +""" +A condition to be used against `AppAchievement` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input AppAchievementCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `count` field.""" + count: Int + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `AppAchievement` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `AppAchievement`.""" +enum 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 +} + +"""A connection to a list of `AppStep` values.""" +type AppStepConnection { + """A list of `AppStep` objects.""" + nodes: [AppStep]! + + """ + A list of edges which contains the `AppStep` and cursor to aid in pagination. + """ + edges: [AppStepEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppStep` you could get from the connection.""" + totalCount: Int! +} + +""" +The user achieving a requirement for a level. Log table that has every single step ever taken. +""" +type AppStep { + id: UUID! + actorId: UUID! + name: String! + count: Int! + createdAt: Datetime + updatedAt: Datetime +} + +"""A `AppStep` edge in the connection.""" +type AppStepEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppStep` at the end of the edge.""" + node: AppStep +} + +""" +A condition to be used against `AppStep` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input AppStepCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `count` field.""" + count: Int + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `AppStep` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `AppStep`.""" +enum 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 +} + +"""A connection to a list of `ClaimedInvite` values.""" +type ClaimedInviteConnection { + """A list of `ClaimedInvite` objects.""" + nodes: [ClaimedInvite]! + + """ + A list of edges which contains the `ClaimedInvite` and cursor to aid in pagination. + """ + edges: [ClaimedInviteEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ClaimedInvite` you could get from the connection.""" + totalCount: Int! +} + +type ClaimedInvite { + id: UUID! + data: JSON + senderId: UUID + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON + +"""A `ClaimedInvite` edge in the connection.""" +type ClaimedInviteEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ClaimedInvite` at the end of the edge.""" + node: ClaimedInvite +} + +""" +A condition to be used against `ClaimedInvite` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input ClaimedInviteCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `data` field.""" + data: JSON + + """Checks for equality with the object’s `senderId` field.""" + senderId: UUID + + """Checks for equality with the object’s `receiverId` field.""" + receiverId: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `ClaimedInvite` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `ClaimedInvite`.""" +enum 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 +} + +"""A connection to a list of `AppGrant` values.""" +type AppGrantConnection { + """A list of `AppGrant` objects.""" + nodes: [AppGrant]! + + """ + A list of edges which contains the `AppGrant` and cursor to aid in pagination. + """ + edges: [AppGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppGrant` you could get from the connection.""" + totalCount: Int! +} + +type AppGrant { + id: UUID! + permissions: BitString! + isGrant: Boolean! + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""A `AppGrant` edge in the connection.""" +type AppGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppGrant` at the end of the edge.""" + node: AppGrant +} + +""" +A condition to be used against `AppGrant` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input AppGrantCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `permissions` field.""" + permissions: BitString + + """Checks for equality with the object’s `isGrant` field.""" + isGrant: Boolean + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `grantorId` field.""" + grantorId: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `AppGrant` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `AppGrant`.""" +enum 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 +} + +"""A connection to a list of `AppMembershipDefault` values.""" +type AppMembershipDefaultConnection { + """A list of `AppMembershipDefault` objects.""" + nodes: [AppMembershipDefault]! + + """ + A list of edges which contains the `AppMembershipDefault` and cursor to aid in pagination. + """ + edges: [AppMembershipDefaultEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `AppMembershipDefault` you could get from the connection. + """ + totalCount: Int! +} + +type AppMembershipDefault { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean! + isVerified: Boolean! +} + +"""A `AppMembershipDefault` edge in the connection.""" +type AppMembershipDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppMembershipDefault` at the end of the edge.""" + node: AppMembershipDefault +} + +""" +A condition to be used against `AppMembershipDefault` object types. All fields +are tested for equality and combined with a logical ‘and.’ +""" +input AppMembershipDefaultCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime + + """Checks for equality with the object’s `createdBy` field.""" + createdBy: UUID + + """Checks for equality with the object’s `updatedBy` field.""" + updatedBy: UUID + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `AppMembershipDefault`.""" +enum 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 +} + +"""A connection to a list of `OrgLimit` values.""" +type OrgLimitConnection { + """A list of `OrgLimit` objects.""" + nodes: [OrgLimit]! + + """ + A list of edges which contains the `OrgLimit` and cursor to aid in pagination. + """ + edges: [OrgLimitEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgLimit` you could get from the connection.""" + totalCount: Int! +} + +type OrgLimit { + id: UUID! + name: String + actorId: UUID! + num: Int + max: Int + entityId: UUID! +} + +"""A `OrgLimit` edge in the connection.""" +type OrgLimitEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgLimit` at the end of the edge.""" + node: OrgLimit +} + +""" +A condition to be used against `OrgLimit` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input OrgLimitCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `num` field.""" + num: Int + + """Checks for equality with the object’s `max` field.""" + max: Int + + """Checks for equality with the object’s `entityId` field.""" + entityId: UUID +} + +""" +A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgLimit`.""" +enum 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 +} + +"""A connection to a list of `OrgClaimedInvite` values.""" +type OrgClaimedInviteConnection { + """A list of `OrgClaimedInvite` objects.""" + nodes: [OrgClaimedInvite]! + + """ + A list of edges which contains the `OrgClaimedInvite` and cursor to aid in pagination. + """ + edges: [OrgClaimedInviteEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgClaimedInvite` you could get from the connection. + """ + totalCount: Int! +} + +type OrgClaimedInvite { + id: UUID! + data: JSON + senderId: UUID + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime + entityId: UUID! +} + +"""A `OrgClaimedInvite` edge in the connection.""" +type OrgClaimedInviteEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgClaimedInvite` at the end of the edge.""" + node: OrgClaimedInvite +} + +""" +A condition to be used against `OrgClaimedInvite` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input OrgClaimedInviteCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `data` field.""" + data: JSON + + """Checks for equality with the object’s `senderId` field.""" + senderId: UUID + + """Checks for equality with the object’s `receiverId` field.""" + receiverId: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime + + """Checks for equality with the object’s `entityId` field.""" + entityId: UUID +} + +""" +A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgClaimedInvite`.""" +enum 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 +} + +"""A connection to a list of `OrgGrant` values.""" +type OrgGrantConnection { + """A list of `OrgGrant` objects.""" + nodes: [OrgGrant]! + + """ + A list of edges which contains the `OrgGrant` and cursor to aid in pagination. + """ + edges: [OrgGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgGrant` you could get from the connection.""" + totalCount: Int! +} + +type OrgGrant { + id: UUID! + permissions: BitString! + isGrant: Boolean! + actorId: UUID! + entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""A `OrgGrant` edge in the connection.""" +type OrgGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgGrant` at the end of the edge.""" + node: OrgGrant +} + +""" +A condition to be used against `OrgGrant` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input OrgGrantCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `permissions` field.""" + permissions: BitString + + """Checks for equality with the object’s `isGrant` field.""" + isGrant: Boolean + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `entityId` field.""" + entityId: UUID + + """Checks for equality with the object’s `grantorId` field.""" + grantorId: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgGrant`.""" +enum 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 +} + +"""A connection to a list of `OrgMembershipDefault` values.""" +type OrgMembershipDefaultConnection { + """A list of `OrgMembershipDefault` objects.""" + nodes: [OrgMembershipDefault]! + + """ + A list of edges which contains the `OrgMembershipDefault` and cursor to aid in pagination. + """ + edges: [OrgMembershipDefaultEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgMembershipDefault` you could get from the connection. + """ + totalCount: Int! +} + +type OrgMembershipDefault { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean! + entityId: UUID! + deleteMemberCascadeGroups: Boolean! + createGroupsCascadeMembers: Boolean! +} + +"""A `OrgMembershipDefault` edge in the connection.""" +type OrgMembershipDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgMembershipDefault` at the end of the edge.""" + node: OrgMembershipDefault +} + +""" +A condition to be used against `OrgMembershipDefault` object types. All fields +are tested for equality and combined with a logical ‘and.’ +""" +input OrgMembershipDefaultCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime + + """Checks for equality with the object’s `createdBy` field.""" + createdBy: UUID + + """Checks for equality with the object’s `updatedBy` field.""" + updatedBy: UUID + + """Checks for equality with the object’s `isApproved` field.""" + isApproved: Boolean + + """Checks for equality with the object’s `entityId` field.""" + entityId: UUID + + """ + 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.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgMembershipDefault`.""" +enum 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 +} + +""" +A condition to be used against `AppLevelRequirement` object types. All fields +are tested for equality and combined with a logical ‘and.’ +""" +input AppLevelRequirementCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """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: Int + + """Checks for equality with the object’s `priority` field.""" + priority: Int + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `AppLevelRequirement` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `AppLevelRequirement`.""" +enum 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 +} + +"""A connection to a list of `AppLevel` values.""" +type AppLevelConnection { + """A list of `AppLevel` objects.""" + nodes: [AppLevel]! + + """ + A list of edges which contains the `AppLevel` and cursor to aid in pagination. + """ + edges: [AppLevelEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppLevel` you could get from the connection.""" + totalCount: Int! +} + +"""Levels for achievement""" +type AppLevel { + id: UUID! + name: String! + description: String + image: ConstructiveInternalTypeImage + ownerId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +scalar ConstructiveInternalTypeImage + +"""A `AppLevel` edge in the connection.""" +type AppLevelEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLevel` at the end of the edge.""" + node: AppLevel +} + +""" +A condition to be used against `AppLevel` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input AppLevelCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """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: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `AppLevel` object types. All fields are combined with a logical ‘and.’ +""" +input 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.’ +""" +input 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 +} + +"""Methods to use when ordering `AppLevel`.""" +enum 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 +} + +"""A connection to a list of `Invite` values.""" +type InviteConnection { + """A list of `Invite` objects.""" + nodes: [Invite]! + + """ + A list of edges which contains the `Invite` and cursor to aid in pagination. + """ + edges: [InviteEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Invite` you could get from the connection.""" + totalCount: Int! +} + +type Invite { + id: UUID! + email: ConstructiveInternalTypeEmail + senderId: UUID! + inviteToken: String! + inviteValid: Boolean! + inviteLimit: Int! + inviteCount: Int! + multiple: Boolean! + data: JSON + expiresAt: Datetime! + createdAt: Datetime + updatedAt: Datetime +} + +scalar ConstructiveInternalTypeEmail + +"""A `Invite` edge in the connection.""" +type InviteEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Invite` at the end of the edge.""" + node: Invite +} + +""" +A condition to be used against `Invite` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input InviteCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `email` field.""" + email: ConstructiveInternalTypeEmail + + """Checks for equality with the object’s `senderId` field.""" + senderId: UUID + + """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: Int + + """Checks for equality with the object’s `inviteCount` field.""" + inviteCount: Int + + """Checks for equality with the object’s `multiple` field.""" + multiple: Boolean + + """Checks for equality with the object’s `data` field.""" + data: JSON + + """Checks for equality with the object’s `expiresAt` field.""" + expiresAt: Datetime + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `Invite` object types. All fields are combined with a logical ‘and.’ +""" +input 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.’ +""" +input 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 +} + +"""Methods to use when ordering `Invite`.""" +enum 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 +} + +"""A connection to a list of `AppMembership` values.""" +type AppMembershipConnection { + """A list of `AppMembership` objects.""" + nodes: [AppMembership]! + + """ + A list of edges which contains the `AppMembership` and cursor to aid in pagination. + """ + edges: [AppMembershipEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppMembership` you could get from the connection.""" + totalCount: Int! +} + +type AppMembership { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean! + isBanned: Boolean! + isDisabled: Boolean! + isVerified: Boolean! + isActive: Boolean! + isOwner: Boolean! + isAdmin: Boolean! + permissions: BitString! + granted: BitString! + actorId: UUID! +} + +"""A `AppMembership` edge in the connection.""" +type AppMembershipEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppMembership` at the end of the edge.""" + node: AppMembership +} + +""" +A condition to be used against `AppMembership` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input AppMembershipCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime + + """Checks for equality with the object’s `createdBy` field.""" + createdBy: UUID + + """Checks for equality with the object’s `updatedBy` field.""" + updatedBy: UUID + + """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: BitString + + """Checks for equality with the object’s `granted` field.""" + granted: BitString + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID +} + +""" +A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `AppMembership`.""" +enum 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 +} + +"""A connection to a list of `OrgMembership` values.""" +type OrgMembershipConnection { + """A list of `OrgMembership` objects.""" + nodes: [OrgMembership]! + + """ + A list of edges which contains the `OrgMembership` and cursor to aid in pagination. + """ + edges: [OrgMembershipEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgMembership` you could get from the connection.""" + totalCount: Int! +} + +type OrgMembership { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean! + isBanned: Boolean! + isDisabled: Boolean! + isActive: Boolean! + isOwner: Boolean! + isAdmin: Boolean! + permissions: BitString! + granted: BitString! + actorId: UUID! + entityId: UUID! +} + +"""A `OrgMembership` edge in the connection.""" +type OrgMembershipEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgMembership` at the end of the edge.""" + node: OrgMembership +} + +""" +A condition to be used against `OrgMembership` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input OrgMembershipCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime + + """Checks for equality with the object’s `createdBy` field.""" + createdBy: UUID + + """Checks for equality with the object’s `updatedBy` field.""" + updatedBy: UUID + + """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: BitString + + """Checks for equality with the object’s `granted` field.""" + granted: BitString + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `entityId` field.""" + entityId: UUID +} + +""" +A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgMembership`.""" +enum 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 +} + +"""A connection to a list of `OrgInvite` values.""" +type OrgInviteConnection { + """A list of `OrgInvite` objects.""" + nodes: [OrgInvite]! + + """ + A list of edges which contains the `OrgInvite` and cursor to aid in pagination. + """ + edges: [OrgInviteEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgInvite` you could get from the connection.""" + totalCount: Int! +} + +type OrgInvite { + id: UUID! + email: ConstructiveInternalTypeEmail + senderId: UUID! + receiverId: UUID + inviteToken: String! + inviteValid: Boolean! + inviteLimit: Int! + inviteCount: Int! + multiple: Boolean! + data: JSON + expiresAt: Datetime! + createdAt: Datetime + updatedAt: Datetime + entityId: UUID! +} + +"""A `OrgInvite` edge in the connection.""" +type OrgInviteEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgInvite` at the end of the edge.""" + node: OrgInvite +} + +""" +A condition to be used against `OrgInvite` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input OrgInviteCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `email` field.""" + email: ConstructiveInternalTypeEmail + + """Checks for equality with the object’s `senderId` field.""" + senderId: UUID + + """Checks for equality with the object’s `receiverId` field.""" + receiverId: UUID + + """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: Int + + """Checks for equality with the object’s `inviteCount` field.""" + inviteCount: Int + + """Checks for equality with the object’s `multiple` field.""" + multiple: Boolean + + """Checks for equality with the object’s `data` field.""" + data: JSON + + """Checks for equality with the object’s `expiresAt` field.""" + expiresAt: Datetime + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime + + """Checks for equality with the object’s `entityId` field.""" + entityId: UUID +} + +""" +A filter to be used against `OrgInvite` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgInvite`.""" +enum 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 +} + +"""Root meta schema type""" +type MetaSchema { + tables: [MetaTable!]! +} + +"""Information about a database table""" +type 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""" +type MetaField { + name: String! + type: MetaType! + isNotNull: Boolean! + hasDefault: Boolean! +} + +"""Information about a PostgreSQL type""" +type MetaType { + pgType: String! + gqlType: String! + isArray: Boolean! + isNotNull: Boolean + hasDefault: Boolean +} + +"""Information about a database index""" +type MetaIndex { + name: String! + isUnique: Boolean! + isPrimary: Boolean! + columns: [String!]! + fields: [MetaField!] +} + +"""Table constraints""" +type MetaConstraints { + primaryKey: MetaPrimaryKeyConstraint + unique: [MetaUniqueConstraint!]! + foreignKey: [MetaForeignKeyConstraint!]! +} + +"""Information about a primary key constraint""" +type MetaPrimaryKeyConstraint { + name: String! + fields: [MetaField!]! +} + +"""Information about a unique constraint""" +type MetaUniqueConstraint { + name: String! + fields: [MetaField!]! +} + +"""Information about a foreign key constraint""" +type MetaForeignKeyConstraint { + name: String! + fields: [MetaField!]! + referencedTable: String! + referencedFields: [String!]! + refFields: [MetaField!] + refTable: MetaRefTable +} + +"""Reference to a related table""" +type MetaRefTable { + name: String! +} + +"""Table relations""" +type MetaRelations { + belongsTo: [MetaBelongsToRelation!]! + has: [MetaHasRelation!]! + hasOne: [MetaHasRelation!]! + hasMany: [MetaHasRelation!]! + manyToMany: [MetaManyToManyRelation!]! +} + +"""A belongs-to (forward FK) relation""" +type MetaBelongsToRelation { + fieldName: String + isUnique: Boolean! + type: String + keys: [MetaField!]! + references: MetaRefTable! +} + +"""A has-one or has-many (reverse FK) relation""" +type MetaHasRelation { + fieldName: String + isUnique: Boolean! + type: String + keys: [MetaField!]! + referencedBy: MetaRefTable! +} + +"""A many-to-many relation via junction table""" +type MetaManyToManyRelation { + fieldName: String + type: String + junctionTable: MetaRefTable! + junctionLeftConstraint: MetaForeignKeyConstraint! + junctionLeftKeyAttributes: [MetaField!]! + junctionRightConstraint: MetaForeignKeyConstraint! + junctionRightKeyAttributes: [MetaField!]! + leftKeyAttributes: [MetaField!]! + rightKeyAttributes: [MetaField!]! + rightTable: MetaRefTable! +} + +"""Table inflection names""" +type MetaInflection { + tableType: String! + allRows: String! + connection: String! + edge: String! + filterType: String + orderByType: String! + conditionType: String! + patchType: String + createInputType: String! + createPayloadType: String! + updatePayloadType: String + deletePayloadType: String! +} + +"""Table query/mutation names""" +type MetaQuery { + all: String! + one: String + create: String + update: String + delete: String +} + +""" +The root mutation type which contains root level fields which mutate data. +""" +type Mutation { + submitInviteCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SubmitInviteCodeInput! + ): SubmitInviteCodePayload + submitOrgInviteCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SubmitOrgInviteCodeInput! + ): SubmitOrgInviteCodePayload + + """Creates a single `OrgMember`.""" + createOrgMember( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMemberInput! + ): CreateOrgMemberPayload + + """Creates a single `AppPermissionDefault`.""" + createAppPermissionDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppPermissionDefaultInput! + ): CreateAppPermissionDefaultPayload + + """Creates a single `OrgPermissionDefault`.""" + createOrgPermissionDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgPermissionDefaultInput! + ): CreateOrgPermissionDefaultPayload + + """Creates a single `AppAdminGrant`.""" + createAppAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppAdminGrantInput! + ): CreateAppAdminGrantPayload + + """Creates a single `AppOwnerGrant`.""" + createAppOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppOwnerGrantInput! + ): CreateAppOwnerGrantPayload + + """Creates a single `AppLimitDefault`.""" + createAppLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitDefaultInput! + ): CreateAppLimitDefaultPayload + + """Creates a single `OrgLimitDefault`.""" + createOrgLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitDefaultInput! + ): CreateOrgLimitDefaultPayload + + """Creates a single `OrgAdminGrant`.""" + createOrgAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgAdminGrantInput! + ): CreateOrgAdminGrantPayload + + """Creates a single `OrgOwnerGrant`.""" + createOrgOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgOwnerGrantInput! + ): CreateOrgOwnerGrantPayload + + """Creates a single `MembershipType`.""" + createMembershipType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateMembershipTypeInput! + ): CreateMembershipTypePayload + + """Creates a single `AppPermission`.""" + createAppPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppPermissionInput! + ): CreateAppPermissionPayload + + """Creates a single `OrgPermission`.""" + createOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgPermissionInput! + ): CreateOrgPermissionPayload + + """Creates a single `AppLimit`.""" + createAppLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitInput! + ): CreateAppLimitPayload + + """Creates a single `AppAchievement`.""" + createAppAchievement( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppAchievementInput! + ): CreateAppAchievementPayload + + """Creates a single `AppStep`.""" + createAppStep( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppStepInput! + ): CreateAppStepPayload + + """Creates a single `ClaimedInvite`.""" + createClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateClaimedInviteInput! + ): CreateClaimedInvitePayload + + """Creates a single `AppGrant`.""" + createAppGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppGrantInput! + ): CreateAppGrantPayload + + """Creates a single `AppMembershipDefault`.""" + createAppMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppMembershipDefaultInput! + ): CreateAppMembershipDefaultPayload + + """Creates a single `OrgLimit`.""" + createOrgLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitInput! + ): CreateOrgLimitPayload + + """Creates a single `OrgClaimedInvite`.""" + createOrgClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgClaimedInviteInput! + ): CreateOrgClaimedInvitePayload + + """Creates a single `OrgGrant`.""" + createOrgGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgGrantInput! + ): CreateOrgGrantPayload + + """Creates a single `OrgMembershipDefault`.""" + createOrgMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMembershipDefaultInput! + ): CreateOrgMembershipDefaultPayload + + """Creates a single `AppLevelRequirement`.""" + createAppLevelRequirement( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLevelRequirementInput! + ): CreateAppLevelRequirementPayload + + """Creates a single `AppLevel`.""" + createAppLevel( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLevelInput! + ): CreateAppLevelPayload + + """Creates a single `Invite`.""" + createInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateInviteInput! + ): CreateInvitePayload + + """Creates a single `AppMembership`.""" + createAppMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppMembershipInput! + ): CreateAppMembershipPayload + + """Creates a single `OrgMembership`.""" + createOrgMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMembershipInput! + ): CreateOrgMembershipPayload + + """Creates a single `OrgInvite`.""" + createOrgInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgInviteInput! + ): CreateOrgInvitePayload + + """Updates a single `OrgMember` using a unique key and a patch.""" + updateOrgMember( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMemberInput! + ): UpdateOrgMemberPayload + + """ + Updates a single `AppPermissionDefault` using a unique key and a patch. + """ + updateAppPermissionDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppPermissionDefaultInput! + ): UpdateAppPermissionDefaultPayload + + """ + Updates a single `OrgPermissionDefault` using a unique key and a patch. + """ + updateOrgPermissionDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgPermissionDefaultInput! + ): UpdateOrgPermissionDefaultPayload + + """Updates a single `AppAdminGrant` using a unique key and a patch.""" + updateAppAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppAdminGrantInput! + ): UpdateAppAdminGrantPayload + + """Updates a single `AppOwnerGrant` using a unique key and a patch.""" + updateAppOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppOwnerGrantInput! + ): UpdateAppOwnerGrantPayload + + """Updates a single `AppLimitDefault` using a unique key and a patch.""" + updateAppLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitDefaultInput! + ): UpdateAppLimitDefaultPayload + + """Updates a single `OrgLimitDefault` using a unique key and a patch.""" + updateOrgLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitDefaultInput! + ): UpdateOrgLimitDefaultPayload + + """Updates a single `OrgAdminGrant` using a unique key and a patch.""" + updateOrgAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgAdminGrantInput! + ): UpdateOrgAdminGrantPayload + + """Updates a single `OrgOwnerGrant` using a unique key and a patch.""" + updateOrgOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgOwnerGrantInput! + ): UpdateOrgOwnerGrantPayload + + """Updates a single `MembershipType` using a unique key and a patch.""" + updateMembershipType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateMembershipTypeInput! + ): UpdateMembershipTypePayload + + """Updates a single `AppPermission` using a unique key and a patch.""" + updateAppPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppPermissionInput! + ): UpdateAppPermissionPayload + + """Updates a single `OrgPermission` using a unique key and a patch.""" + updateOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgPermissionInput! + ): UpdateOrgPermissionPayload + + """Updates a single `AppLimit` using a unique key and a patch.""" + updateAppLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitInput! + ): UpdateAppLimitPayload + + """Updates a single `AppAchievement` using a unique key and a patch.""" + updateAppAchievement( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppAchievementInput! + ): UpdateAppAchievementPayload + + """Updates a single `AppStep` using a unique key and a patch.""" + updateAppStep( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppStepInput! + ): UpdateAppStepPayload + + """Updates a single `ClaimedInvite` using a unique key and a patch.""" + updateClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateClaimedInviteInput! + ): UpdateClaimedInvitePayload + + """Updates a single `AppGrant` using a unique key and a patch.""" + updateAppGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppGrantInput! + ): UpdateAppGrantPayload + + """ + Updates a single `AppMembershipDefault` using a unique key and a patch. + """ + updateAppMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppMembershipDefaultInput! + ): UpdateAppMembershipDefaultPayload + + """Updates a single `OrgLimit` using a unique key and a patch.""" + updateOrgLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitInput! + ): UpdateOrgLimitPayload + + """Updates a single `OrgClaimedInvite` using a unique key and a patch.""" + updateOrgClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgClaimedInviteInput! + ): UpdateOrgClaimedInvitePayload + + """Updates a single `OrgGrant` using a unique key and a patch.""" + updateOrgGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgGrantInput! + ): UpdateOrgGrantPayload + + """ + Updates a single `OrgMembershipDefault` using a unique key and a patch. + """ + updateOrgMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMembershipDefaultInput! + ): UpdateOrgMembershipDefaultPayload + + """Updates a single `AppLevelRequirement` using a unique key and a patch.""" + updateAppLevelRequirement( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLevelRequirementInput! + ): UpdateAppLevelRequirementPayload + + """Updates a single `AppLevel` using a unique key and a patch.""" + updateAppLevel( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLevelInput! + ): UpdateAppLevelPayload + + """Updates a single `Invite` using a unique key and a patch.""" + updateInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateInviteInput! + ): UpdateInvitePayload + + """Updates a single `AppMembership` using a unique key and a patch.""" + updateAppMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppMembershipInput! + ): UpdateAppMembershipPayload + + """Updates a single `OrgMembership` using a unique key and a patch.""" + updateOrgMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMembershipInput! + ): UpdateOrgMembershipPayload + + """Updates a single `OrgInvite` using a unique key and a patch.""" + updateOrgInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgInviteInput! + ): UpdateOrgInvitePayload + + """Deletes a single `OrgMember` using a unique key.""" + deleteOrgMember( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMemberInput! + ): DeleteOrgMemberPayload + + """Deletes a single `AppPermissionDefault` using a unique key.""" + deleteAppPermissionDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppPermissionDefaultInput! + ): DeleteAppPermissionDefaultPayload + + """Deletes a single `OrgPermissionDefault` using a unique key.""" + deleteOrgPermissionDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgPermissionDefaultInput! + ): DeleteOrgPermissionDefaultPayload + + """Deletes a single `AppAdminGrant` using a unique key.""" + deleteAppAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppAdminGrantInput! + ): DeleteAppAdminGrantPayload + + """Deletes a single `AppOwnerGrant` using a unique key.""" + deleteAppOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppOwnerGrantInput! + ): DeleteAppOwnerGrantPayload + + """Deletes a single `AppLimitDefault` using a unique key.""" + deleteAppLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitDefaultInput! + ): DeleteAppLimitDefaultPayload + + """Deletes a single `OrgLimitDefault` using a unique key.""" + deleteOrgLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitDefaultInput! + ): DeleteOrgLimitDefaultPayload + + """Deletes a single `OrgAdminGrant` using a unique key.""" + deleteOrgAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgAdminGrantInput! + ): DeleteOrgAdminGrantPayload + + """Deletes a single `OrgOwnerGrant` using a unique key.""" + deleteOrgOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgOwnerGrantInput! + ): DeleteOrgOwnerGrantPayload + + """Deletes a single `MembershipType` using a unique key.""" + deleteMembershipType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteMembershipTypeInput! + ): DeleteMembershipTypePayload + + """Deletes a single `AppPermission` using a unique key.""" + deleteAppPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppPermissionInput! + ): DeleteAppPermissionPayload + + """Deletes a single `OrgPermission` using a unique key.""" + deleteOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgPermissionInput! + ): DeleteOrgPermissionPayload + + """Deletes a single `AppLimit` using a unique key.""" + deleteAppLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitInput! + ): DeleteAppLimitPayload + + """Deletes a single `AppAchievement` using a unique key.""" + deleteAppAchievement( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppAchievementInput! + ): DeleteAppAchievementPayload + + """Deletes a single `AppStep` using a unique key.""" + deleteAppStep( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppStepInput! + ): DeleteAppStepPayload + + """Deletes a single `ClaimedInvite` using a unique key.""" + deleteClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteClaimedInviteInput! + ): DeleteClaimedInvitePayload + + """Deletes a single `AppGrant` using a unique key.""" + deleteAppGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppGrantInput! + ): DeleteAppGrantPayload + + """Deletes a single `AppMembershipDefault` using a unique key.""" + deleteAppMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppMembershipDefaultInput! + ): DeleteAppMembershipDefaultPayload + + """Deletes a single `OrgLimit` using a unique key.""" + deleteOrgLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitInput! + ): DeleteOrgLimitPayload + + """Deletes a single `OrgClaimedInvite` using a unique key.""" + deleteOrgClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgClaimedInviteInput! + ): DeleteOrgClaimedInvitePayload + + """Deletes a single `OrgGrant` using a unique key.""" + deleteOrgGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgGrantInput! + ): DeleteOrgGrantPayload + + """Deletes a single `OrgMembershipDefault` using a unique key.""" + deleteOrgMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMembershipDefaultInput! + ): DeleteOrgMembershipDefaultPayload + + """Deletes a single `AppLevelRequirement` using a unique key.""" + deleteAppLevelRequirement( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLevelRequirementInput! + ): DeleteAppLevelRequirementPayload + + """Deletes a single `AppLevel` using a unique key.""" + deleteAppLevel( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLevelInput! + ): DeleteAppLevelPayload + + """Deletes a single `Invite` using a unique key.""" + deleteInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteInviteInput! + ): DeleteInvitePayload + + """Deletes a single `AppMembership` using a unique key.""" + deleteAppMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppMembershipInput! + ): DeleteAppMembershipPayload + + """Deletes a single `OrgMembership` using a unique key.""" + deleteOrgMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMembershipInput! + ): DeleteOrgMembershipPayload + + """Deletes a single `OrgInvite` using a unique key.""" + deleteOrgInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgInviteInput! + ): DeleteOrgInvitePayload +} + +"""The output of our `submitInviteCode` mutation.""" +type 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 + result: Boolean + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `submitInviteCode` mutation.""" +input 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 +} + +"""The output of our `submitOrgInviteCode` mutation.""" +type 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 + result: Boolean + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `submitOrgInviteCode` mutation.""" +input 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 +} + +"""The output of our create `OrgMember` mutation.""" +type 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 + + """The `OrgMember` that was created by this mutation.""" + orgMember: OrgMember + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMember`. May be used by Relay 1.""" + orgMemberEdge( + """The method to use when ordering `OrgMember`.""" + orderBy: [OrgMemberOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberEdge +} + +"""All input for the create `OrgMember` mutation.""" +input CreateOrgMemberInput { + """ + 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 + + """The `OrgMember` to be created by this mutation.""" + orgMember: OrgMemberInput! +} + +"""An input for mutations affecting `OrgMember`""" +input OrgMemberInput { + id: UUID + isAdmin: Boolean + actorId: UUID! + entityId: UUID! +} + +"""The output of our create `AppPermissionDefault` mutation.""" +type 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 + + """The `AppPermissionDefault` that was created by this mutation.""" + appPermissionDefault: AppPermissionDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" + appPermissionDefaultEdge( + """The method to use when ordering `AppPermissionDefault`.""" + orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultEdge +} + +"""All input for the create `AppPermissionDefault` mutation.""" +input CreateAppPermissionDefaultInput { + """ + 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 + + """The `AppPermissionDefault` to be created by this mutation.""" + appPermissionDefault: AppPermissionDefaultInput! +} + +"""An input for mutations affecting `AppPermissionDefault`""" +input AppPermissionDefaultInput { + id: UUID + permissions: BitString +} + +"""The output of our create `OrgPermissionDefault` mutation.""" +type 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 + + """The `OrgPermissionDefault` that was created by this mutation.""" + orgPermissionDefault: OrgPermissionDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" + orgPermissionDefaultEdge( + """The method to use when ordering `OrgPermissionDefault`.""" + orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultEdge +} + +"""All input for the create `OrgPermissionDefault` mutation.""" +input CreateOrgPermissionDefaultInput { + """ + 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 + + """The `OrgPermissionDefault` to be created by this mutation.""" + orgPermissionDefault: OrgPermissionDefaultInput! +} + +"""An input for mutations affecting `OrgPermissionDefault`""" +input OrgPermissionDefaultInput { + id: UUID + permissions: BitString + entityId: UUID! +} + +"""The output of our create `AppAdminGrant` mutation.""" +type 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 + + """The `AppAdminGrant` that was created by this mutation.""" + appAdminGrant: AppAdminGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppAdminGrant`. May be used by Relay 1.""" + appAdminGrantEdge( + """The method to use when ordering `AppAdminGrant`.""" + orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAdminGrantEdge +} + +"""All input for the create `AppAdminGrant` mutation.""" +input CreateAppAdminGrantInput { + """ + 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 + + """The `AppAdminGrant` to be created by this mutation.""" + appAdminGrant: AppAdminGrantInput! +} + +"""An input for mutations affecting `AppAdminGrant`""" +input AppAdminGrantInput { + id: UUID + isGrant: Boolean + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `AppOwnerGrant` mutation.""" +type 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 + + """The `AppOwnerGrant` that was created by this mutation.""" + appOwnerGrant: AppOwnerGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" + appOwnerGrantEdge( + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppOwnerGrantEdge +} + +"""All input for the create `AppOwnerGrant` mutation.""" +input CreateAppOwnerGrantInput { + """ + 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 + + """The `AppOwnerGrant` to be created by this mutation.""" + appOwnerGrant: AppOwnerGrantInput! +} + +"""An input for mutations affecting `AppOwnerGrant`""" +input AppOwnerGrantInput { + id: UUID + isGrant: Boolean + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `AppLimitDefault` mutation.""" +type 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 + + """The `AppLimitDefault` that was created by this mutation.""" + appLimitDefault: AppLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge +} + +"""All input for the create `AppLimitDefault` mutation.""" +input CreateAppLimitDefaultInput { + """ + 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 + + """The `AppLimitDefault` to be created by this mutation.""" + appLimitDefault: AppLimitDefaultInput! +} + +"""An input for mutations affecting `AppLimitDefault`""" +input AppLimitDefaultInput { + id: UUID + name: String! + max: Int +} + +"""The output of our create `OrgLimitDefault` mutation.""" +type 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 + + """The `OrgLimitDefault` that was created by this mutation.""" + orgLimitDefault: OrgLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge +} + +"""All input for the create `OrgLimitDefault` mutation.""" +input CreateOrgLimitDefaultInput { + """ + 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 + + """The `OrgLimitDefault` to be created by this mutation.""" + orgLimitDefault: OrgLimitDefaultInput! +} + +"""An input for mutations affecting `OrgLimitDefault`""" +input OrgLimitDefaultInput { + id: UUID + name: String! + max: Int +} + +"""The output of our create `OrgAdminGrant` mutation.""" +type 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 + + """The `OrgAdminGrant` that was created by this mutation.""" + orgAdminGrant: OrgAdminGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" + orgAdminGrantEdge( + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgAdminGrantEdge +} + +"""All input for the create `OrgAdminGrant` mutation.""" +input CreateOrgAdminGrantInput { + """ + 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 + + """The `OrgAdminGrant` to be created by this mutation.""" + orgAdminGrant: OrgAdminGrantInput! +} + +"""An input for mutations affecting `OrgAdminGrant`""" +input OrgAdminGrantInput { + id: UUID + isGrant: Boolean + actorId: UUID! + entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `OrgOwnerGrant` mutation.""" +type 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 + + """The `OrgOwnerGrant` that was created by this mutation.""" + orgOwnerGrant: OrgOwnerGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" + orgOwnerGrantEdge( + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantEdge +} + +"""All input for the create `OrgOwnerGrant` mutation.""" +input CreateOrgOwnerGrantInput { + """ + 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 + + """The `OrgOwnerGrant` to be created by this mutation.""" + orgOwnerGrant: OrgOwnerGrantInput! +} + +"""An input for mutations affecting `OrgOwnerGrant`""" +input OrgOwnerGrantInput { + id: UUID + isGrant: Boolean + actorId: UUID! + entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `MembershipType` mutation.""" +type 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 + + """The `MembershipType` that was created by this mutation.""" + membershipType: MembershipType + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge +} + +"""All input for the create `MembershipType` mutation.""" +input CreateMembershipTypeInput { + """ + 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 + + """The `MembershipType` to be created by this mutation.""" + membershipType: MembershipTypeInput! +} + +"""An input for mutations affecting `MembershipType`""" +input MembershipTypeInput { + id: Int! + name: String! + description: String! + prefix: String! +} + +"""The output of our create `AppPermission` mutation.""" +type 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 + + """The `AppPermission` that was created by this mutation.""" + appPermission: AppPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge +} + +"""All input for the create `AppPermission` mutation.""" +input CreateAppPermissionInput { + """ + 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 + + """The `AppPermission` to be created by this mutation.""" + appPermission: AppPermissionInput! +} + +"""An input for mutations affecting `AppPermission`""" +input AppPermissionInput { + id: UUID + name: String + bitnum: Int + bitstr: BitString + description: String +} + +"""The output of our create `OrgPermission` mutation.""" +type 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 + + """The `OrgPermission` that was created by this mutation.""" + orgPermission: OrgPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge +} + +"""All input for the create `OrgPermission` mutation.""" +input CreateOrgPermissionInput { + """ + 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 + + """The `OrgPermission` to be created by this mutation.""" + orgPermission: OrgPermissionInput! +} + +"""An input for mutations affecting `OrgPermission`""" +input OrgPermissionInput { + id: UUID + name: String + bitnum: Int + bitstr: BitString + description: String +} + +"""The output of our create `AppLimit` mutation.""" +type 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 + + """The `AppLimit` that was created by this mutation.""" + appLimit: AppLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge +} + +"""All input for the create `AppLimit` mutation.""" +input CreateAppLimitInput { + """ + 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 + + """The `AppLimit` to be created by this mutation.""" + appLimit: AppLimitInput! +} + +"""An input for mutations affecting `AppLimit`""" +input AppLimitInput { + id: UUID + name: String + actorId: UUID! + num: Int + max: Int +} + +"""The output of our create `AppAchievement` mutation.""" +type 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 + + """The `AppAchievement` that was created by this mutation.""" + appAchievement: AppAchievement + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppAchievement`. May be used by Relay 1.""" + appAchievementEdge( + """The method to use when ordering `AppAchievement`.""" + orderBy: [AppAchievementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAchievementEdge +} + +"""All input for the create `AppAchievement` mutation.""" +input CreateAppAchievementInput { + """ + 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 + + """The `AppAchievement` to be created by this mutation.""" + appAchievement: AppAchievementInput! +} + +"""An input for mutations affecting `AppAchievement`""" +input AppAchievementInput { + id: UUID + actorId: UUID + name: String! + count: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `AppStep` mutation.""" +type 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 + + """The `AppStep` that was created by this mutation.""" + appStep: AppStep + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppStep`. May be used by Relay 1.""" + appStepEdge( + """The method to use when ordering `AppStep`.""" + orderBy: [AppStepOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppStepEdge +} + +"""All input for the create `AppStep` mutation.""" +input CreateAppStepInput { + """ + 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 + + """The `AppStep` to be created by this mutation.""" + appStep: AppStepInput! +} + +"""An input for mutations affecting `AppStep`""" +input AppStepInput { + id: UUID + actorId: UUID + name: String! + count: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `ClaimedInvite` mutation.""" +type 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 + + """The `ClaimedInvite` that was created by this mutation.""" + claimedInvite: ClaimedInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ClaimedInvite`. May be used by Relay 1.""" + claimedInviteEdge( + """The method to use when ordering `ClaimedInvite`.""" + orderBy: [ClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): ClaimedInviteEdge +} + +"""All input for the create `ClaimedInvite` mutation.""" +input CreateClaimedInviteInput { + """ + 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 + + """The `ClaimedInvite` to be created by this mutation.""" + claimedInvite: ClaimedInviteInput! +} + +"""An input for mutations affecting `ClaimedInvite`""" +input ClaimedInviteInput { + id: UUID + data: JSON + senderId: UUID + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `AppGrant` mutation.""" +type 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 + + """The `AppGrant` that was created by this mutation.""" + appGrant: AppGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppGrant`. May be used by Relay 1.""" + appGrantEdge( + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppGrantEdge +} + +"""All input for the create `AppGrant` mutation.""" +input CreateAppGrantInput { + """ + 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 + + """The `AppGrant` to be created by this mutation.""" + appGrant: AppGrantInput! +} + +"""An input for mutations affecting `AppGrant`""" +input AppGrantInput { + id: UUID + permissions: BitString + isGrant: Boolean + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `AppMembershipDefault` mutation.""" +type 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 + + """The `AppMembershipDefault` that was created by this mutation.""" + appMembershipDefault: AppMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge +} + +"""All input for the create `AppMembershipDefault` mutation.""" +input CreateAppMembershipDefaultInput { + """ + 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 + + """The `AppMembershipDefault` to be created by this mutation.""" + appMembershipDefault: AppMembershipDefaultInput! +} + +"""An input for mutations affecting `AppMembershipDefault`""" +input AppMembershipDefaultInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean + isVerified: Boolean +} + +"""The output of our create `OrgLimit` mutation.""" +type 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 + + """The `OrgLimit` that was created by this mutation.""" + orgLimit: OrgLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge +} + +"""All input for the create `OrgLimit` mutation.""" +input CreateOrgLimitInput { + """ + 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 + + """The `OrgLimit` to be created by this mutation.""" + orgLimit: OrgLimitInput! +} + +"""An input for mutations affecting `OrgLimit`""" +input OrgLimitInput { + id: UUID + name: String + actorId: UUID! + num: Int + max: Int + entityId: UUID! +} + +"""The output of our create `OrgClaimedInvite` mutation.""" +type 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 + + """The `OrgClaimedInvite` that was created by this mutation.""" + orgClaimedInvite: OrgClaimedInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" + orgClaimedInviteEdge( + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteEdge +} + +"""All input for the create `OrgClaimedInvite` mutation.""" +input CreateOrgClaimedInviteInput { + """ + 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 + + """The `OrgClaimedInvite` to be created by this mutation.""" + orgClaimedInvite: OrgClaimedInviteInput! +} + +"""An input for mutations affecting `OrgClaimedInvite`""" +input OrgClaimedInviteInput { + id: UUID + data: JSON + senderId: UUID + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime + entityId: UUID! +} + +"""The output of our create `OrgGrant` mutation.""" +type 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 + + """The `OrgGrant` that was created by this mutation.""" + orgGrant: OrgGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgGrant`. May be used by Relay 1.""" + orgGrantEdge( + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgGrantEdge +} + +"""All input for the create `OrgGrant` mutation.""" +input CreateOrgGrantInput { + """ + 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 + + """The `OrgGrant` to be created by this mutation.""" + orgGrant: OrgGrantInput! +} + +"""An input for mutations affecting `OrgGrant`""" +input OrgGrantInput { + id: UUID + permissions: BitString + isGrant: Boolean + actorId: UUID! + entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `OrgMembershipDefault` mutation.""" +type 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 + + """The `OrgMembershipDefault` that was created by this mutation.""" + orgMembershipDefault: OrgMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge +} + +"""All input for the create `OrgMembershipDefault` mutation.""" +input CreateOrgMembershipDefaultInput { + """ + 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 + + """The `OrgMembershipDefault` to be created by this mutation.""" + orgMembershipDefault: OrgMembershipDefaultInput! +} + +"""An input for mutations affecting `OrgMembershipDefault`""" +input OrgMembershipDefaultInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean + entityId: UUID! + deleteMemberCascadeGroups: Boolean + createGroupsCascadeMembers: Boolean +} + +"""The output of our create `AppLevelRequirement` mutation.""" +type 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 + + """The `AppLevelRequirement` that was created by this mutation.""" + appLevelRequirement: AppLevelRequirement + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLevelRequirement`. May be used by Relay 1.""" + appLevelRequirementEdge( + """The method to use when ordering `AppLevelRequirement`.""" + orderBy: [AppLevelRequirementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLevelRequirementEdge +} + +"""All input for the create `AppLevelRequirement` mutation.""" +input CreateAppLevelRequirementInput { + """ + 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 + + """The `AppLevelRequirement` to be created by this mutation.""" + appLevelRequirement: AppLevelRequirementInput! +} + +"""An input for mutations affecting `AppLevelRequirement`""" +input AppLevelRequirementInput { + id: UUID + name: String! + level: String! + description: String + requiredCount: Int + priority: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `AppLevel` mutation.""" +type 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 + + """The `AppLevel` that was created by this mutation.""" + appLevel: AppLevel + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLevel`. May be used by Relay 1.""" + appLevelEdge( + """The method to use when ordering `AppLevel`.""" + orderBy: [AppLevelOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLevelEdge +} + +"""All input for the create `AppLevel` mutation.""" +input CreateAppLevelInput { + """ + 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 + + """The `AppLevel` to be created by this mutation.""" + appLevel: AppLevelInput! +} + +"""An input for mutations affecting `AppLevel`""" +input AppLevelInput { + id: UUID + name: String! + description: String + image: ConstructiveInternalTypeImage + ownerId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `Invite` mutation.""" +type 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 + + """The `Invite` that was created by this mutation.""" + invite: Invite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Invite`. May be used by Relay 1.""" + inviteEdge( + """The method to use when ordering `Invite`.""" + orderBy: [InviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): InviteEdge +} + +"""All input for the create `Invite` mutation.""" +input CreateInviteInput { + """ + 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 + + """The `Invite` to be created by this mutation.""" + invite: InviteInput! +} + +"""An input for mutations affecting `Invite`""" +input InviteInput { + id: UUID + email: ConstructiveInternalTypeEmail + senderId: UUID + inviteToken: String + inviteValid: Boolean + inviteLimit: Int + inviteCount: Int + multiple: Boolean + data: JSON + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `AppMembership` mutation.""" +type 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 + + """The `AppMembership` that was created by this mutation.""" + appMembership: AppMembership + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge +} + +"""All input for the create `AppMembership` mutation.""" +input CreateAppMembershipInput { + """ + 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 + + """The `AppMembership` to be created by this mutation.""" + appMembership: AppMembershipInput! +} + +"""An input for mutations affecting `AppMembership`""" +input AppMembershipInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean + isBanned: Boolean + isDisabled: Boolean + isVerified: Boolean + isActive: Boolean + isOwner: Boolean + isAdmin: Boolean + permissions: BitString + granted: BitString + actorId: UUID! +} + +"""The output of our create `OrgMembership` mutation.""" +type 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 + + """The `OrgMembership` that was created by this mutation.""" + orgMembership: OrgMembership + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge +} + +"""All input for the create `OrgMembership` mutation.""" +input CreateOrgMembershipInput { + """ + 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 + + """The `OrgMembership` to be created by this mutation.""" + orgMembership: OrgMembershipInput! +} + +"""An input for mutations affecting `OrgMembership`""" +input OrgMembershipInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean + isBanned: Boolean + isDisabled: Boolean + isActive: Boolean + isOwner: Boolean + isAdmin: Boolean + permissions: BitString + granted: BitString + actorId: UUID! + entityId: UUID! +} + +"""The output of our create `OrgInvite` mutation.""" +type 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 + + """The `OrgInvite` that was created by this mutation.""" + orgInvite: OrgInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgInvite`. May be used by Relay 1.""" + orgInviteEdge( + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgInviteEdge +} + +"""All input for the create `OrgInvite` mutation.""" +input CreateOrgInviteInput { + """ + 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 + + """The `OrgInvite` to be created by this mutation.""" + orgInvite: OrgInviteInput! +} + +"""An input for mutations affecting `OrgInvite`""" +input OrgInviteInput { + id: UUID + email: ConstructiveInternalTypeEmail + senderId: UUID + receiverId: UUID + inviteToken: String + inviteValid: Boolean + inviteLimit: Int + inviteCount: Int + multiple: Boolean + data: JSON + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime + entityId: UUID! +} + +"""The output of our update `OrgMember` mutation.""" +type 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 + + """The `OrgMember` that was updated by this mutation.""" + orgMember: OrgMember + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMember`. May be used by Relay 1.""" + orgMemberEdge( + """The method to use when ordering `OrgMember`.""" + orderBy: [OrgMemberOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberEdge +} + +"""All input for the `updateOrgMember` mutation.""" +input UpdateOrgMemberInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgMemberPatch { + id: UUID + isAdmin: Boolean + actorId: UUID + entityId: UUID +} + +"""The output of our update `AppPermissionDefault` mutation.""" +type 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 + + """The `AppPermissionDefault` that was updated by this mutation.""" + appPermissionDefault: AppPermissionDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" + appPermissionDefaultEdge( + """The method to use when ordering `AppPermissionDefault`.""" + orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultEdge +} + +"""All input for the `updateAppPermissionDefault` mutation.""" +input UpdateAppPermissionDefaultInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppPermissionDefaultPatch { + id: UUID + permissions: BitString +} + +"""The output of our update `OrgPermissionDefault` mutation.""" +type 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 + + """The `OrgPermissionDefault` that was updated by this mutation.""" + orgPermissionDefault: OrgPermissionDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" + orgPermissionDefaultEdge( + """The method to use when ordering `OrgPermissionDefault`.""" + orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultEdge +} + +"""All input for the `updateOrgPermissionDefault` mutation.""" +input UpdateOrgPermissionDefaultInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgPermissionDefaultPatch { + id: UUID + permissions: BitString + entityId: UUID +} + +"""The output of our update `AppAdminGrant` mutation.""" +type 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 + + """The `AppAdminGrant` that was updated by this mutation.""" + appAdminGrant: AppAdminGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppAdminGrant`. May be used by Relay 1.""" + appAdminGrantEdge( + """The method to use when ordering `AppAdminGrant`.""" + orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAdminGrantEdge +} + +"""All input for the `updateAppAdminGrant` mutation.""" +input UpdateAppAdminGrantInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppAdminGrantPatch { + id: UUID + isGrant: Boolean + actorId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `AppOwnerGrant` mutation.""" +type 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 + + """The `AppOwnerGrant` that was updated by this mutation.""" + appOwnerGrant: AppOwnerGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" + appOwnerGrantEdge( + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppOwnerGrantEdge +} + +"""All input for the `updateAppOwnerGrant` mutation.""" +input UpdateAppOwnerGrantInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppOwnerGrantPatch { + id: UUID + isGrant: Boolean + actorId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `AppLimitDefault` mutation.""" +type 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 + + """The `AppLimitDefault` that was updated by this mutation.""" + appLimitDefault: AppLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge +} + +"""All input for the `updateAppLimitDefault` mutation.""" +input UpdateAppLimitDefaultInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppLimitDefaultPatch { + id: UUID + name: String + max: Int +} + +"""The output of our update `OrgLimitDefault` mutation.""" +type 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 + + """The `OrgLimitDefault` that was updated by this mutation.""" + orgLimitDefault: OrgLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge +} + +"""All input for the `updateOrgLimitDefault` mutation.""" +input UpdateOrgLimitDefaultInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgLimitDefaultPatch { + id: UUID + name: String + max: Int +} + +"""The output of our update `OrgAdminGrant` mutation.""" +type 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 + + """The `OrgAdminGrant` that was updated by this mutation.""" + orgAdminGrant: OrgAdminGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" + orgAdminGrantEdge( + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgAdminGrantEdge +} + +"""All input for the `updateOrgAdminGrant` mutation.""" +input UpdateOrgAdminGrantInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgAdminGrantPatch { + id: UUID + isGrant: Boolean + actorId: UUID + entityId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `OrgOwnerGrant` mutation.""" +type 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 + + """The `OrgOwnerGrant` that was updated by this mutation.""" + orgOwnerGrant: OrgOwnerGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" + orgOwnerGrantEdge( + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantEdge +} + +"""All input for the `updateOrgOwnerGrant` mutation.""" +input UpdateOrgOwnerGrantInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgOwnerGrantPatch { + id: UUID + isGrant: Boolean + actorId: UUID + entityId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `MembershipType` mutation.""" +type 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 + + """The `MembershipType` that was updated by this mutation.""" + membershipType: MembershipType + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge +} + +"""All input for the `updateMembershipType` mutation.""" +input UpdateMembershipTypeInput { + """ + 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 + id: Int! + + """ + 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. +""" +input MembershipTypePatch { + id: Int + name: String + description: String + prefix: String +} + +"""The output of our update `AppPermission` mutation.""" +type 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 + + """The `AppPermission` that was updated by this mutation.""" + appPermission: AppPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge +} + +"""All input for the `updateAppPermission` mutation.""" +input UpdateAppPermissionInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppPermissionPatch { + id: UUID + name: String + bitnum: Int + bitstr: BitString + description: String +} + +"""The output of our update `OrgPermission` mutation.""" +type 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 + + """The `OrgPermission` that was updated by this mutation.""" + orgPermission: OrgPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge +} + +"""All input for the `updateOrgPermission` mutation.""" +input UpdateOrgPermissionInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgPermissionPatch { + id: UUID + name: String + bitnum: Int + bitstr: BitString + description: String +} + +"""The output of our update `AppLimit` mutation.""" +type 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 + + """The `AppLimit` that was updated by this mutation.""" + appLimit: AppLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge +} + +"""All input for the `updateAppLimit` mutation.""" +input UpdateAppLimitInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppLimitPatch { + id: UUID + name: String + actorId: UUID + num: Int + max: Int +} + +"""The output of our update `AppAchievement` mutation.""" +type 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 + + """The `AppAchievement` that was updated by this mutation.""" + appAchievement: AppAchievement + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppAchievement`. May be used by Relay 1.""" + appAchievementEdge( + """The method to use when ordering `AppAchievement`.""" + orderBy: [AppAchievementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAchievementEdge +} + +"""All input for the `updateAppAchievement` mutation.""" +input UpdateAppAchievementInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppAchievementPatch { + id: UUID + actorId: UUID + name: String + count: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `AppStep` mutation.""" +type 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 + + """The `AppStep` that was updated by this mutation.""" + appStep: AppStep + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppStep`. May be used by Relay 1.""" + appStepEdge( + """The method to use when ordering `AppStep`.""" + orderBy: [AppStepOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppStepEdge +} + +"""All input for the `updateAppStep` mutation.""" +input UpdateAppStepInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppStepPatch { + id: UUID + actorId: UUID + name: String + count: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `ClaimedInvite` mutation.""" +type 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 + + """The `ClaimedInvite` that was updated by this mutation.""" + claimedInvite: ClaimedInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ClaimedInvite`. May be used by Relay 1.""" + claimedInviteEdge( + """The method to use when ordering `ClaimedInvite`.""" + orderBy: [ClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): ClaimedInviteEdge +} + +"""All input for the `updateClaimedInvite` mutation.""" +input UpdateClaimedInviteInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input ClaimedInvitePatch { + id: UUID + data: JSON + senderId: UUID + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `AppGrant` mutation.""" +type 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 + + """The `AppGrant` that was updated by this mutation.""" + appGrant: AppGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppGrant`. May be used by Relay 1.""" + appGrantEdge( + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppGrantEdge +} + +"""All input for the `updateAppGrant` mutation.""" +input UpdateAppGrantInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppGrantPatch { + id: UUID + permissions: BitString + isGrant: Boolean + actorId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `AppMembershipDefault` mutation.""" +type 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 + + """The `AppMembershipDefault` that was updated by this mutation.""" + appMembershipDefault: AppMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge +} + +"""All input for the `updateAppMembershipDefault` mutation.""" +input UpdateAppMembershipDefaultInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppMembershipDefaultPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean + isVerified: Boolean +} + +"""The output of our update `OrgLimit` mutation.""" +type 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 + + """The `OrgLimit` that was updated by this mutation.""" + orgLimit: OrgLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge +} + +"""All input for the `updateOrgLimit` mutation.""" +input UpdateOrgLimitInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgLimitPatch { + id: UUID + name: String + actorId: UUID + num: Int + max: Int + entityId: UUID +} + +"""The output of our update `OrgClaimedInvite` mutation.""" +type 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 + + """The `OrgClaimedInvite` that was updated by this mutation.""" + orgClaimedInvite: OrgClaimedInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" + orgClaimedInviteEdge( + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteEdge +} + +"""All input for the `updateOrgClaimedInvite` mutation.""" +input UpdateOrgClaimedInviteInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgClaimedInvitePatch { + id: UUID + data: JSON + senderId: UUID + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime + entityId: UUID +} + +"""The output of our update `OrgGrant` mutation.""" +type 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 + + """The `OrgGrant` that was updated by this mutation.""" + orgGrant: OrgGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgGrant`. May be used by Relay 1.""" + orgGrantEdge( + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgGrantEdge +} + +"""All input for the `updateOrgGrant` mutation.""" +input UpdateOrgGrantInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgGrantPatch { + id: UUID + permissions: BitString + isGrant: Boolean + actorId: UUID + entityId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `OrgMembershipDefault` mutation.""" +type 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 + + """The `OrgMembershipDefault` that was updated by this mutation.""" + orgMembershipDefault: OrgMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge +} + +"""All input for the `updateOrgMembershipDefault` mutation.""" +input UpdateOrgMembershipDefaultInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgMembershipDefaultPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean + entityId: UUID + deleteMemberCascadeGroups: Boolean + createGroupsCascadeMembers: Boolean +} + +"""The output of our update `AppLevelRequirement` mutation.""" +type 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 + + """The `AppLevelRequirement` that was updated by this mutation.""" + appLevelRequirement: AppLevelRequirement + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLevelRequirement`. May be used by Relay 1.""" + appLevelRequirementEdge( + """The method to use when ordering `AppLevelRequirement`.""" + orderBy: [AppLevelRequirementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLevelRequirementEdge +} + +"""All input for the `updateAppLevelRequirement` mutation.""" +input UpdateAppLevelRequirementInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppLevelRequirementPatch { + id: UUID + name: String + level: String + description: String + requiredCount: Int + priority: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `AppLevel` mutation.""" +type 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 + + """The `AppLevel` that was updated by this mutation.""" + appLevel: AppLevel + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLevel`. May be used by Relay 1.""" + appLevelEdge( + """The method to use when ordering `AppLevel`.""" + orderBy: [AppLevelOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLevelEdge +} + +"""All input for the `updateAppLevel` mutation.""" +input UpdateAppLevelInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppLevelPatch { + id: UUID + name: String + description: String + image: ConstructiveInternalTypeImage + ownerId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `Invite` mutation.""" +type 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 + + """The `Invite` that was updated by this mutation.""" + invite: Invite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Invite`. May be used by Relay 1.""" + inviteEdge( + """The method to use when ordering `Invite`.""" + orderBy: [InviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): InviteEdge +} + +"""All input for the `updateInvite` mutation.""" +input UpdateInviteInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input InvitePatch { + id: UUID + email: ConstructiveInternalTypeEmail + senderId: UUID + inviteToken: String + inviteValid: Boolean + inviteLimit: Int + inviteCount: Int + multiple: Boolean + data: JSON + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `AppMembership` mutation.""" +type 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 + + """The `AppMembership` that was updated by this mutation.""" + appMembership: AppMembership + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge +} + +"""All input for the `updateAppMembership` mutation.""" +input UpdateAppMembershipInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppMembershipPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean + isBanned: Boolean + isDisabled: Boolean + isVerified: Boolean + isActive: Boolean + isOwner: Boolean + isAdmin: Boolean + permissions: BitString + granted: BitString + actorId: UUID +} + +"""The output of our update `OrgMembership` mutation.""" +type 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 + + """The `OrgMembership` that was updated by this mutation.""" + orgMembership: OrgMembership + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge +} + +"""All input for the `updateOrgMembership` mutation.""" +input UpdateOrgMembershipInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgMembershipPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean + isBanned: Boolean + isDisabled: Boolean + isActive: Boolean + isOwner: Boolean + isAdmin: Boolean + permissions: BitString + granted: BitString + actorId: UUID + entityId: UUID +} + +"""The output of our update `OrgInvite` mutation.""" +type 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 + + """The `OrgInvite` that was updated by this mutation.""" + orgInvite: OrgInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgInvite`. May be used by Relay 1.""" + orgInviteEdge( + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgInviteEdge +} + +"""All input for the `updateOrgInvite` mutation.""" +input UpdateOrgInviteInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgInvitePatch { + id: UUID + email: ConstructiveInternalTypeEmail + senderId: UUID + receiverId: UUID + inviteToken: String + inviteValid: Boolean + inviteLimit: Int + inviteCount: Int + multiple: Boolean + data: JSON + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime + entityId: UUID +} + +"""The output of our delete `OrgMember` mutation.""" +type 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 + + """The `OrgMember` that was deleted by this mutation.""" + orgMember: OrgMember + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMember`. May be used by Relay 1.""" + orgMemberEdge( + """The method to use when ordering `OrgMember`.""" + orderBy: [OrgMemberOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberEdge +} + +"""All input for the `deleteOrgMember` mutation.""" +input DeleteOrgMemberInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppPermissionDefault` mutation.""" +type 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 + + """The `AppPermissionDefault` that was deleted by this mutation.""" + appPermissionDefault: AppPermissionDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" + appPermissionDefaultEdge( + """The method to use when ordering `AppPermissionDefault`.""" + orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultEdge +} + +"""All input for the `deleteAppPermissionDefault` mutation.""" +input DeleteAppPermissionDefaultInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `OrgPermissionDefault` mutation.""" +type 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 + + """The `OrgPermissionDefault` that was deleted by this mutation.""" + orgPermissionDefault: OrgPermissionDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" + orgPermissionDefaultEdge( + """The method to use when ordering `OrgPermissionDefault`.""" + orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultEdge +} + +"""All input for the `deleteOrgPermissionDefault` mutation.""" +input DeleteOrgPermissionDefaultInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppAdminGrant` mutation.""" +type 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 + + """The `AppAdminGrant` that was deleted by this mutation.""" + appAdminGrant: AppAdminGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppAdminGrant`. May be used by Relay 1.""" + appAdminGrantEdge( + """The method to use when ordering `AppAdminGrant`.""" + orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAdminGrantEdge +} + +"""All input for the `deleteAppAdminGrant` mutation.""" +input DeleteAppAdminGrantInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppOwnerGrant` mutation.""" +type 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 + + """The `AppOwnerGrant` that was deleted by this mutation.""" + appOwnerGrant: AppOwnerGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" + appOwnerGrantEdge( + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppOwnerGrantEdge +} + +"""All input for the `deleteAppOwnerGrant` mutation.""" +input DeleteAppOwnerGrantInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppLimitDefault` mutation.""" +type 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 + + """The `AppLimitDefault` that was deleted by this mutation.""" + appLimitDefault: AppLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge +} + +"""All input for the `deleteAppLimitDefault` mutation.""" +input DeleteAppLimitDefaultInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `OrgLimitDefault` mutation.""" +type 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 + + """The `OrgLimitDefault` that was deleted by this mutation.""" + orgLimitDefault: OrgLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge +} + +"""All input for the `deleteOrgLimitDefault` mutation.""" +input DeleteOrgLimitDefaultInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `OrgAdminGrant` mutation.""" +type 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 + + """The `OrgAdminGrant` that was deleted by this mutation.""" + orgAdminGrant: OrgAdminGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" + orgAdminGrantEdge( + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgAdminGrantEdge +} + +"""All input for the `deleteOrgAdminGrant` mutation.""" +input DeleteOrgAdminGrantInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `OrgOwnerGrant` mutation.""" +type 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 + + """The `OrgOwnerGrant` that was deleted by this mutation.""" + orgOwnerGrant: OrgOwnerGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" + orgOwnerGrantEdge( + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantEdge +} + +"""All input for the `deleteOrgOwnerGrant` mutation.""" +input DeleteOrgOwnerGrantInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `MembershipType` mutation.""" +type 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 + + """The `MembershipType` that was deleted by this mutation.""" + membershipType: MembershipType + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge +} + +"""All input for the `deleteMembershipType` mutation.""" +input DeleteMembershipTypeInput { + """ + 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 + id: Int! +} + +"""The output of our delete `AppPermission` mutation.""" +type 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 + + """The `AppPermission` that was deleted by this mutation.""" + appPermission: AppPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge +} + +"""All input for the `deleteAppPermission` mutation.""" +input DeleteAppPermissionInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `OrgPermission` mutation.""" +type 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 + + """The `OrgPermission` that was deleted by this mutation.""" + orgPermission: OrgPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge +} + +"""All input for the `deleteOrgPermission` mutation.""" +input DeleteOrgPermissionInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppLimit` mutation.""" +type 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 + + """The `AppLimit` that was deleted by this mutation.""" + appLimit: AppLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge +} + +"""All input for the `deleteAppLimit` mutation.""" +input DeleteAppLimitInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppAchievement` mutation.""" +type 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 + + """The `AppAchievement` that was deleted by this mutation.""" + appAchievement: AppAchievement + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppAchievement`. May be used by Relay 1.""" + appAchievementEdge( + """The method to use when ordering `AppAchievement`.""" + orderBy: [AppAchievementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAchievementEdge +} + +"""All input for the `deleteAppAchievement` mutation.""" +input DeleteAppAchievementInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppStep` mutation.""" +type 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 + + """The `AppStep` that was deleted by this mutation.""" + appStep: AppStep + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppStep`. May be used by Relay 1.""" + appStepEdge( + """The method to use when ordering `AppStep`.""" + orderBy: [AppStepOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppStepEdge +} + +"""All input for the `deleteAppStep` mutation.""" +input DeleteAppStepInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `ClaimedInvite` mutation.""" +type 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 + + """The `ClaimedInvite` that was deleted by this mutation.""" + claimedInvite: ClaimedInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ClaimedInvite`. May be used by Relay 1.""" + claimedInviteEdge( + """The method to use when ordering `ClaimedInvite`.""" + orderBy: [ClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): ClaimedInviteEdge +} + +"""All input for the `deleteClaimedInvite` mutation.""" +input DeleteClaimedInviteInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppGrant` mutation.""" +type 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 + + """The `AppGrant` that was deleted by this mutation.""" + appGrant: AppGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppGrant`. May be used by Relay 1.""" + appGrantEdge( + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppGrantEdge +} + +"""All input for the `deleteAppGrant` mutation.""" +input DeleteAppGrantInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppMembershipDefault` mutation.""" +type 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 + + """The `AppMembershipDefault` that was deleted by this mutation.""" + appMembershipDefault: AppMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge +} + +"""All input for the `deleteAppMembershipDefault` mutation.""" +input DeleteAppMembershipDefaultInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `OrgLimit` mutation.""" +type 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 + + """The `OrgLimit` that was deleted by this mutation.""" + orgLimit: OrgLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge +} + +"""All input for the `deleteOrgLimit` mutation.""" +input DeleteOrgLimitInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `OrgClaimedInvite` mutation.""" +type 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 + + """The `OrgClaimedInvite` that was deleted by this mutation.""" + orgClaimedInvite: OrgClaimedInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" + orgClaimedInviteEdge( + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteEdge +} + +"""All input for the `deleteOrgClaimedInvite` mutation.""" +input DeleteOrgClaimedInviteInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `OrgGrant` mutation.""" +type 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 + + """The `OrgGrant` that was deleted by this mutation.""" + orgGrant: OrgGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgGrant`. May be used by Relay 1.""" + orgGrantEdge( + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgGrantEdge +} + +"""All input for the `deleteOrgGrant` mutation.""" +input DeleteOrgGrantInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `OrgMembershipDefault` mutation.""" +type 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 + + """The `OrgMembershipDefault` that was deleted by this mutation.""" + orgMembershipDefault: OrgMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge +} + +"""All input for the `deleteOrgMembershipDefault` mutation.""" +input DeleteOrgMembershipDefaultInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppLevelRequirement` mutation.""" +type 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 + + """The `AppLevelRequirement` that was deleted by this mutation.""" + appLevelRequirement: AppLevelRequirement + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLevelRequirement`. May be used by Relay 1.""" + appLevelRequirementEdge( + """The method to use when ordering `AppLevelRequirement`.""" + orderBy: [AppLevelRequirementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLevelRequirementEdge +} + +"""All input for the `deleteAppLevelRequirement` mutation.""" +input DeleteAppLevelRequirementInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppLevel` mutation.""" +type 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 + + """The `AppLevel` that was deleted by this mutation.""" + appLevel: AppLevel + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLevel`. May be used by Relay 1.""" + appLevelEdge( + """The method to use when ordering `AppLevel`.""" + orderBy: [AppLevelOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLevelEdge +} + +"""All input for the `deleteAppLevel` mutation.""" +input DeleteAppLevelInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `Invite` mutation.""" +type 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 + + """The `Invite` that was deleted by this mutation.""" + invite: Invite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Invite`. May be used by Relay 1.""" + inviteEdge( + """The method to use when ordering `Invite`.""" + orderBy: [InviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): InviteEdge +} + +"""All input for the `deleteInvite` mutation.""" +input DeleteInviteInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppMembership` mutation.""" +type 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 + + """The `AppMembership` that was deleted by this mutation.""" + appMembership: AppMembership + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge +} + +"""All input for the `deleteAppMembership` mutation.""" +input DeleteAppMembershipInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `OrgMembership` mutation.""" +type 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 + + """The `OrgMembership` that was deleted by this mutation.""" + orgMembership: OrgMembership + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge +} + +"""All input for the `deleteOrgMembership` mutation.""" +input DeleteOrgMembershipInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `OrgInvite` mutation.""" +type 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 + + """The `OrgInvite` that was deleted by this mutation.""" + orgInvite: OrgInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgInvite`. May be used by Relay 1.""" + orgInviteEdge( + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgInviteEdge +} + +"""All input for the `deleteOrgInvite` mutation.""" +input DeleteOrgInviteInput { + """ + 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 + id: UUID! +} \ No newline at end of file diff --git a/sdk/constructive-sdk/schemas/app.graphql b/sdk/constructive-sdk/schemas/app.graphql new file mode 100644 index 000000000..f29764a68 --- /dev/null +++ b/sdk/constructive-sdk/schemas/app.graphql @@ -0,0 +1,153 @@ +"""The root query type which gives access points into the data universe.""" +type Query { + """ + Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. + """ + _meta: MetaSchema +} + +"""Root meta schema type""" +type MetaSchema { + tables: [MetaTable!]! +} + +"""Information about a database table""" +type 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""" +type MetaField { + name: String! + type: MetaType! + isNotNull: Boolean! + hasDefault: Boolean! +} + +"""Information about a PostgreSQL type""" +type MetaType { + pgType: String! + gqlType: String! + isArray: Boolean! + isNotNull: Boolean + hasDefault: Boolean +} + +"""Information about a database index""" +type MetaIndex { + name: String! + isUnique: Boolean! + isPrimary: Boolean! + columns: [String!]! + fields: [MetaField!] +} + +"""Table constraints""" +type MetaConstraints { + primaryKey: MetaPrimaryKeyConstraint + unique: [MetaUniqueConstraint!]! + foreignKey: [MetaForeignKeyConstraint!]! +} + +"""Information about a primary key constraint""" +type MetaPrimaryKeyConstraint { + name: String! + fields: [MetaField!]! +} + +"""Information about a unique constraint""" +type MetaUniqueConstraint { + name: String! + fields: [MetaField!]! +} + +"""Information about a foreign key constraint""" +type MetaForeignKeyConstraint { + name: String! + fields: [MetaField!]! + referencedTable: String! + referencedFields: [String!]! + refFields: [MetaField!] + refTable: MetaRefTable +} + +"""Reference to a related table""" +type MetaRefTable { + name: String! +} + +"""Table relations""" +type MetaRelations { + belongsTo: [MetaBelongsToRelation!]! + has: [MetaHasRelation!]! + hasOne: [MetaHasRelation!]! + hasMany: [MetaHasRelation!]! + manyToMany: [MetaManyToManyRelation!]! +} + +"""A belongs-to (forward FK) relation""" +type MetaBelongsToRelation { + fieldName: String + isUnique: Boolean! + type: String + keys: [MetaField!]! + references: MetaRefTable! +} + +"""A has-one or has-many (reverse FK) relation""" +type MetaHasRelation { + fieldName: String + isUnique: Boolean! + type: String + keys: [MetaField!]! + referencedBy: MetaRefTable! +} + +"""A many-to-many relation via junction table""" +type MetaManyToManyRelation { + fieldName: String + type: String + junctionTable: MetaRefTable! + junctionLeftConstraint: MetaForeignKeyConstraint! + junctionLeftKeyAttributes: [MetaField!]! + junctionRightConstraint: MetaForeignKeyConstraint! + junctionRightKeyAttributes: [MetaField!]! + leftKeyAttributes: [MetaField!]! + rightKeyAttributes: [MetaField!]! + rightTable: MetaRefTable! +} + +"""Table inflection names""" +type MetaInflection { + tableType: String! + allRows: String! + connection: String! + edge: String! + filterType: String + orderByType: String! + conditionType: String! + patchType: String + createInputType: String! + createPayloadType: String! + updatePayloadType: String + deletePayloadType: String! +} + +"""Table query/mutation names""" +type MetaQuery { + all: String! + one: String + create: String + update: String + delete: String +} \ No newline at end of file diff --git a/sdk/constructive-sdk/schemas/auth.graphql b/sdk/constructive-sdk/schemas/auth.graphql new file mode 100644 index 000000000..ebef383be --- /dev/null +++ b/sdk/constructive-sdk/schemas/auth.graphql @@ -0,0 +1,3706 @@ +"""The root query type which gives access points into the data universe.""" +type Query { + currentIpAddress: InternetAddress + currentUserAgent: String + currentUserId: UUID + currentUser: User + + """Reads and enables pagination through a set of `RoleType`.""" + roleTypes( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: RoleTypeCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: RoleTypeFilter + + """The method to use when ordering `RoleType`.""" + orderBy: [RoleTypeOrderBy!] = [PRIMARY_KEY_ASC] + ): RoleTypeConnection + + """Reads and enables pagination through a set of `CryptoAddress`.""" + cryptoAddresses( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: CryptoAddressCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: CryptoAddressFilter + + """The method to use when ordering `CryptoAddress`.""" + orderBy: [CryptoAddressOrderBy!] = [PRIMARY_KEY_ASC] + ): CryptoAddressConnection + + """Reads and enables pagination through a set of `PhoneNumber`.""" + phoneNumbers( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: PhoneNumberCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: PhoneNumberFilter + + """The method to use when ordering `PhoneNumber`.""" + orderBy: [PhoneNumberOrderBy!] = [PRIMARY_KEY_ASC] + ): PhoneNumberConnection + + """Reads and enables pagination through a set of `ConnectedAccount`.""" + connectedAccounts( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ConnectedAccountCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ConnectedAccountFilter + + """The method to use when ordering `ConnectedAccount`.""" + orderBy: [ConnectedAccountOrderBy!] = [PRIMARY_KEY_ASC] + ): ConnectedAccountConnection + + """Reads and enables pagination through a set of `Email`.""" + emails( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: EmailCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: EmailFilter + + """The method to use when ordering `Email`.""" + orderBy: [EmailOrderBy!] = [PRIMARY_KEY_ASC] + ): EmailConnection + + """Reads and enables pagination through a set of `AuditLog`.""" + auditLogs( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AuditLogCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AuditLogFilter + + """The method to use when ordering `AuditLog`.""" + orderBy: [AuditLogOrderBy!] = [PRIMARY_KEY_ASC] + ): AuditLogConnection + + """Reads and enables pagination through a set of `User`.""" + users( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: UserCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: UserFilter + + """The method to use when ordering `User`.""" + orderBy: [UserOrderBy!] = [PRIMARY_KEY_ASC] + ): UserConnection + + """ + Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. + """ + _meta: MetaSchema +} + +"""An IPv4 or IPv6 host address, and optionally its subnet.""" +scalar InternetAddress + +""" +A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). +""" +scalar UUID + +type User { + id: UUID! + username: String + displayName: String + profilePicture: ConstructiveInternalTypeImage + searchTsv: FullText + type: Int! + createdAt: Datetime + updatedAt: Datetime + + """ + Full-text search ranking when filtered by `searchTsv`. Returns null when no search condition is active. + """ + searchTsvRank: Float + + """Reads a single `RoleType` that is related to this `User`.""" + roleType: RoleType +} + +scalar ConstructiveInternalTypeImage + +"""A full-text search tsvector value represented as a string.""" +scalar FullText + +""" +A point in time as described by the [ISO +8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC +3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values +that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead +to unexpected results. +""" +scalar Datetime + +type RoleType { + id: Int! + name: String! +} + +"""A connection to a list of `RoleType` values.""" +type RoleTypeConnection { + """A list of `RoleType` objects.""" + nodes: [RoleType]! + + """ + A list of edges which contains the `RoleType` and cursor to aid in pagination. + """ + edges: [RoleTypeEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `RoleType` you could get from the connection.""" + totalCount: Int! +} + +"""A `RoleType` edge in the connection.""" +type RoleTypeEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `RoleType` at the end of the edge.""" + node: RoleType +} + +"""A location in a connection that can be used for resuming pagination.""" +scalar Cursor + +"""Information about pagination in a connection.""" +type 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: Cursor + + """When paginating forwards, the cursor to continue.""" + endCursor: Cursor +} + +""" +A condition to be used against `RoleType` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input RoleTypeCondition { + """Checks for equality with the object’s `id` field.""" + id: Int + + """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.’ +""" +input 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 filter to be used against Int fields. All fields are combined with a logical ‘and.’ +""" +input IntFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: Int + + """Not equal to the specified value.""" + notEqualTo: Int + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Int + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Int + + """Included in the specified list.""" + in: [Int!] + + """Not included in the specified list.""" + notIn: [Int!] + + """Less than the specified value.""" + lessThan: Int + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Int + + """Greater than the specified value.""" + greaterThan: Int + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Int +} + +""" +A filter to be used against String fields. All fields are combined with a logical ‘and.’ +""" +input StringFilter { + """ + 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: String + + """Does not contain the specified string (case-insensitive).""" + notIncludesInsensitive: String + + """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: String + + """Does not start with the specified string (case-insensitive).""" + notStartsWithInsensitive: String + + """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: String + + """Does not end with the specified string (case-insensitive).""" + notEndsWithInsensitive: String + + """ + 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: String + + """ + 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: String + + """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 +} + +"""Methods to use when ordering `RoleType`.""" +enum RoleTypeOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC +} + +"""A connection to a list of `CryptoAddress` values.""" +type CryptoAddressConnection { + """A list of `CryptoAddress` objects.""" + nodes: [CryptoAddress]! + + """ + A list of edges which contains the `CryptoAddress` and cursor to aid in pagination. + """ + edges: [CryptoAddressEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `CryptoAddress` you could get from the connection.""" + totalCount: Int! +} + +type CryptoAddress { + id: UUID! + ownerId: UUID! + address: String! + isVerified: Boolean! + isPrimary: Boolean! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `CryptoAddress`.""" + owner: User +} + +"""A `CryptoAddress` edge in the connection.""" +type CryptoAddressEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `CryptoAddress` at the end of the edge.""" + node: CryptoAddress +} + +""" +A condition to be used against `CryptoAddress` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input CryptoAddressCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `ownerId` field.""" + ownerId: UUID + + """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: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `CryptoAddress` object types. All fields are combined with a logical ‘and.’ +""" +input 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 filter to be used against UUID fields. All fields are combined with a logical ‘and.’ +""" +input UUIDFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: UUID + + """Not equal to the specified value.""" + notEqualTo: UUID + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: UUID + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: UUID + + """Included in the specified list.""" + in: [UUID!] + + """Not included in the specified list.""" + notIn: [UUID!] + + """Less than the specified value.""" + lessThan: UUID + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: UUID + + """Greater than the specified value.""" + greaterThan: UUID + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: UUID +} + +""" +A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ +""" +input BooleanFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: Boolean + + """Not equal to the specified value.""" + notEqualTo: Boolean + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Boolean + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Boolean + + """Included in the specified list.""" + in: [Boolean!] + + """Not included in the specified list.""" + notIn: [Boolean!] + + """Less than the specified value.""" + lessThan: Boolean + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Boolean + + """Greater than the specified value.""" + greaterThan: Boolean + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Boolean +} + +""" +A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ +""" +input DatetimeFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: Datetime + + """Not equal to the specified value.""" + notEqualTo: Datetime + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Datetime + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Datetime + + """Included in the specified list.""" + in: [Datetime!] + + """Not included in the specified list.""" + notIn: [Datetime!] + + """Less than the specified value.""" + lessThan: Datetime + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Datetime + + """Greater than the specified value.""" + greaterThan: Datetime + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Datetime +} + +"""Methods to use when ordering `CryptoAddress`.""" +enum 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 +} + +"""A connection to a list of `PhoneNumber` values.""" +type PhoneNumberConnection { + """A list of `PhoneNumber` objects.""" + nodes: [PhoneNumber]! + + """ + A list of edges which contains the `PhoneNumber` and cursor to aid in pagination. + """ + edges: [PhoneNumberEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `PhoneNumber` you could get from the connection.""" + totalCount: Int! +} + +type PhoneNumber { + id: UUID! + ownerId: UUID! + cc: String! + number: String! + isVerified: Boolean! + isPrimary: Boolean! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `PhoneNumber`.""" + owner: User +} + +"""A `PhoneNumber` edge in the connection.""" +type PhoneNumberEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PhoneNumber` at the end of the edge.""" + node: PhoneNumber +} + +""" +A condition to be used against `PhoneNumber` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input PhoneNumberCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `ownerId` field.""" + ownerId: UUID + + """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: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `PhoneNumber` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `PhoneNumber`.""" +enum 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 +} + +"""A connection to a list of `ConnectedAccount` values.""" +type ConnectedAccountConnection { + """A list of `ConnectedAccount` objects.""" + nodes: [ConnectedAccount]! + + """ + A list of edges which contains the `ConnectedAccount` and cursor to aid in pagination. + """ + edges: [ConnectedAccountEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `ConnectedAccount` you could get from the connection. + """ + totalCount: Int! +} + +type ConnectedAccount { + id: UUID! + ownerId: UUID! + + """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: JSON! + isVerified: Boolean! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `ConnectedAccount`.""" + owner: User +} + +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON + +"""A `ConnectedAccount` edge in the connection.""" +type ConnectedAccountEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ConnectedAccount` at the end of the edge.""" + node: ConnectedAccount +} + +""" +A condition to be used against `ConnectedAccount` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input ConnectedAccountCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `ownerId` field.""" + ownerId: UUID + + """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: JSON + + """Checks for equality with the object’s `isVerified` field.""" + isVerified: Boolean + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `ConnectedAccount` object types. All fields are combined with a logical ‘and.’ +""" +input 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 filter to be used against JSON fields. All fields are combined with a logical ‘and.’ +""" +input JSONFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: JSON + + """Not equal to the specified value.""" + notEqualTo: JSON + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: JSON + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: JSON + + """Included in the specified list.""" + in: [JSON!] + + """Not included in the specified list.""" + notIn: [JSON!] + + """Less than the specified value.""" + lessThan: JSON + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: JSON + + """Greater than the specified value.""" + greaterThan: JSON + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: JSON + + """Contains the specified JSON.""" + contains: JSON + + """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: JSON +} + +"""Methods to use when ordering `ConnectedAccount`.""" +enum 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 +} + +"""A connection to a list of `Email` values.""" +type EmailConnection { + """A list of `Email` objects.""" + nodes: [Email]! + + """ + A list of edges which contains the `Email` and cursor to aid in pagination. + """ + edges: [EmailEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Email` you could get from the connection.""" + totalCount: Int! +} + +type Email { + id: UUID! + ownerId: UUID! + email: ConstructiveInternalTypeEmail! + isVerified: Boolean! + isPrimary: Boolean! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `Email`.""" + owner: User +} + +scalar ConstructiveInternalTypeEmail + +"""A `Email` edge in the connection.""" +type EmailEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Email` at the end of the edge.""" + node: Email +} + +""" +A condition to be used against `Email` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input EmailCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `ownerId` field.""" + ownerId: UUID + + """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: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ +""" +input 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.’ +""" +input 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 +} + +"""Methods to use when ordering `Email`.""" +enum 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 +} + +"""A connection to a list of `AuditLog` values.""" +type AuditLogConnection { + """A list of `AuditLog` objects.""" + nodes: [AuditLog]! + + """ + A list of edges which contains the `AuditLog` and cursor to aid in pagination. + """ + edges: [AuditLogEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AuditLog` you could get from the connection.""" + totalCount: Int! +} + +type AuditLog { + id: UUID! + event: String! + actorId: UUID! + origin: ConstructiveInternalTypeOrigin + userAgent: String + ipAddress: InternetAddress + success: Boolean! + createdAt: Datetime! + + """Reads a single `User` that is related to this `AuditLog`.""" + actor: User +} + +scalar ConstructiveInternalTypeOrigin + +"""A `AuditLog` edge in the connection.""" +type AuditLogEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AuditLog` at the end of the edge.""" + node: AuditLog +} + +""" +A condition to be used against `AuditLog` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input AuditLogCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `event` field.""" + event: String + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """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: InternetAddress + + """Checks for equality with the object’s `success` field.""" + success: Boolean + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime +} + +""" +A filter to be used against `AuditLog` object types. All fields are combined with a logical ‘and.’ +""" +input 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.’ +""" +input 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 filter to be used against InternetAddress fields. All fields are combined with a logical ‘and.’ +""" +input InternetAddressFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: InternetAddress + + """Not equal to the specified value.""" + notEqualTo: InternetAddress + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: InternetAddress + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: InternetAddress + + """Included in the specified list.""" + in: [InternetAddress!] + + """Not included in the specified list.""" + notIn: [InternetAddress!] + + """Less than the specified value.""" + lessThan: InternetAddress + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: InternetAddress + + """Greater than the specified value.""" + greaterThan: InternetAddress + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: InternetAddress + + """Contains the specified internet address.""" + contains: InternetAddress + + """Contains or equal to the specified internet address.""" + containsOrEqualTo: InternetAddress + + """Contained by the specified internet address.""" + containedBy: InternetAddress + + """Contained by or equal to the specified internet address.""" + containedByOrEqualTo: InternetAddress + + """Contains or contained by the specified internet address.""" + containsOrContainedBy: InternetAddress +} + +"""Methods to use when ordering `AuditLog`.""" +enum AuditLogOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + EVENT_ASC + EVENT_DESC +} + +"""A connection to a list of `User` values.""" +type UserConnection { + """A list of `User` objects.""" + nodes: [User]! + + """ + A list of edges which contains the `User` and cursor to aid in pagination. + """ + edges: [UserEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `User` you could get from the connection.""" + totalCount: Int! +} + +"""A `User` edge in the connection.""" +type UserEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `User` at the end of the edge.""" + node: User +} + +""" +A condition to be used against `User` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input UserCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """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: FullText + + """Checks for equality with the object’s `type` field.""" + type: Int + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime + + """ + 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.’ +""" +input 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.’ +""" +input 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 filter to be used against FullText fields. All fields are combined with a logical ‘and.’ +""" +input FullTextFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: FullText + + """Not equal to the specified value.""" + notEqualTo: FullText + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: FullText + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: FullText + + """Included in the specified list.""" + in: [FullText!] + + """Not included in the specified list.""" + notIn: [FullText!] + + """Performs a full text search on the field.""" + matches: String +} + +"""Methods to use when ordering `User`.""" +enum 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 +} + +"""Root meta schema type""" +type MetaSchema { + tables: [MetaTable!]! +} + +"""Information about a database table""" +type 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""" +type MetaField { + name: String! + type: MetaType! + isNotNull: Boolean! + hasDefault: Boolean! +} + +"""Information about a PostgreSQL type""" +type MetaType { + pgType: String! + gqlType: String! + isArray: Boolean! + isNotNull: Boolean + hasDefault: Boolean +} + +"""Information about a database index""" +type MetaIndex { + name: String! + isUnique: Boolean! + isPrimary: Boolean! + columns: [String!]! + fields: [MetaField!] +} + +"""Table constraints""" +type MetaConstraints { + primaryKey: MetaPrimaryKeyConstraint + unique: [MetaUniqueConstraint!]! + foreignKey: [MetaForeignKeyConstraint!]! +} + +"""Information about a primary key constraint""" +type MetaPrimaryKeyConstraint { + name: String! + fields: [MetaField!]! +} + +"""Information about a unique constraint""" +type MetaUniqueConstraint { + name: String! + fields: [MetaField!]! +} + +"""Information about a foreign key constraint""" +type MetaForeignKeyConstraint { + name: String! + fields: [MetaField!]! + referencedTable: String! + referencedFields: [String!]! + refFields: [MetaField!] + refTable: MetaRefTable +} + +"""Reference to a related table""" +type MetaRefTable { + name: String! +} + +"""Table relations""" +type MetaRelations { + belongsTo: [MetaBelongsToRelation!]! + has: [MetaHasRelation!]! + hasOne: [MetaHasRelation!]! + hasMany: [MetaHasRelation!]! + manyToMany: [MetaManyToManyRelation!]! +} + +"""A belongs-to (forward FK) relation""" +type MetaBelongsToRelation { + fieldName: String + isUnique: Boolean! + type: String + keys: [MetaField!]! + references: MetaRefTable! +} + +"""A has-one or has-many (reverse FK) relation""" +type MetaHasRelation { + fieldName: String + isUnique: Boolean! + type: String + keys: [MetaField!]! + referencedBy: MetaRefTable! +} + +"""A many-to-many relation via junction table""" +type MetaManyToManyRelation { + fieldName: String + type: String + junctionTable: MetaRefTable! + junctionLeftConstraint: MetaForeignKeyConstraint! + junctionLeftKeyAttributes: [MetaField!]! + junctionRightConstraint: MetaForeignKeyConstraint! + junctionRightKeyAttributes: [MetaField!]! + leftKeyAttributes: [MetaField!]! + rightKeyAttributes: [MetaField!]! + rightTable: MetaRefTable! +} + +"""Table inflection names""" +type MetaInflection { + tableType: String! + allRows: String! + connection: String! + edge: String! + filterType: String + orderByType: String! + conditionType: String! + patchType: String + createInputType: String! + createPayloadType: String! + updatePayloadType: String + deletePayloadType: String! +} + +"""Table query/mutation names""" +type MetaQuery { + all: String! + one: String + create: String + update: String + delete: String +} + +""" +The root mutation type which contains root level fields which mutate data. +""" +type Mutation { + signOut( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SignOutInput! + ): SignOutPayload + sendAccountDeletionEmail( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SendAccountDeletionEmailInput! + ): SendAccountDeletionEmailPayload + checkPassword( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CheckPasswordInput! + ): CheckPasswordPayload + confirmDeleteAccount( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ConfirmDeleteAccountInput! + ): ConfirmDeleteAccountPayload + setPassword( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SetPasswordInput! + ): SetPasswordPayload + verifyEmail( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: VerifyEmailInput! + ): VerifyEmailPayload + resetPassword( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ResetPasswordInput! + ): ResetPasswordPayload + signInOneTimeToken( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SignInOneTimeTokenInput! + ): SignInOneTimeTokenPayload + signIn( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SignInInput! + ): SignInPayload + signUp( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SignUpInput! + ): SignUpPayload + oneTimeToken( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: OneTimeTokenInput! + ): OneTimeTokenPayload + extendTokenExpires( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ExtendTokenExpiresInput! + ): ExtendTokenExpiresPayload + forgotPassword( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ForgotPasswordInput! + ): ForgotPasswordPayload + sendVerificationEmail( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SendVerificationEmailInput! + ): SendVerificationEmailPayload + verifyPassword( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: VerifyPasswordInput! + ): VerifyPasswordPayload + verifyTotp( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: VerifyTotpInput! + ): VerifyTotpPayload + + """Creates a single `RoleType`.""" + createRoleType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRoleTypeInput! + ): CreateRoleTypePayload + + """Creates a single `CryptoAddress`.""" + createCryptoAddress( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateCryptoAddressInput! + ): CreateCryptoAddressPayload + + """Creates a single `PhoneNumber`.""" + createPhoneNumber( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePhoneNumberInput! + ): CreatePhoneNumberPayload + + """Creates a single `ConnectedAccount`.""" + createConnectedAccount( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateConnectedAccountInput! + ): CreateConnectedAccountPayload + + """Creates a single `Email`.""" + createEmail( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateEmailInput! + ): CreateEmailPayload + + """Creates a single `AuditLog`.""" + createAuditLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAuditLogInput! + ): CreateAuditLogPayload + + """Creates a single `User`.""" + createUser( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateUserInput! + ): CreateUserPayload + + """Updates a single `RoleType` using a unique key and a patch.""" + updateRoleType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRoleTypeInput! + ): UpdateRoleTypePayload + + """Updates a single `CryptoAddress` using a unique key and a patch.""" + updateCryptoAddress( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateCryptoAddressInput! + ): UpdateCryptoAddressPayload + + """Updates a single `PhoneNumber` using a unique key and a patch.""" + updatePhoneNumber( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePhoneNumberInput! + ): UpdatePhoneNumberPayload + + """Updates a single `ConnectedAccount` using a unique key and a patch.""" + updateConnectedAccount( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateConnectedAccountInput! + ): UpdateConnectedAccountPayload + + """Updates a single `Email` using a unique key and a patch.""" + updateEmail( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateEmailInput! + ): UpdateEmailPayload + + """Updates a single `AuditLog` using a unique key and a patch.""" + updateAuditLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAuditLogInput! + ): UpdateAuditLogPayload + + """Updates a single `User` using a unique key and a patch.""" + updateUser( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateUserInput! + ): UpdateUserPayload + + """Deletes a single `RoleType` using a unique key.""" + deleteRoleType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRoleTypeInput! + ): DeleteRoleTypePayload + + """Deletes a single `CryptoAddress` using a unique key.""" + deleteCryptoAddress( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteCryptoAddressInput! + ): DeleteCryptoAddressPayload + + """Deletes a single `PhoneNumber` using a unique key.""" + deletePhoneNumber( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePhoneNumberInput! + ): DeletePhoneNumberPayload + + """Deletes a single `ConnectedAccount` using a unique key.""" + deleteConnectedAccount( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteConnectedAccountInput! + ): DeleteConnectedAccountPayload + + """Deletes a single `Email` using a unique key.""" + deleteEmail( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteEmailInput! + ): DeleteEmailPayload + + """Deletes a single `AuditLog` using a unique key.""" + deleteAuditLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAuditLogInput! + ): DeleteAuditLogPayload + + """Deletes a single `User` using a unique key.""" + deleteUser( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteUserInput! + ): DeleteUserPayload +} + +"""The output of our `signOut` mutation.""" +type 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 + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `signOut` mutation.""" +input 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 +} + +"""The output of our `sendAccountDeletionEmail` mutation.""" +type 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 + result: Boolean + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `sendAccountDeletionEmail` mutation.""" +input 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 +} + +"""The output of our `checkPassword` mutation.""" +type 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 + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `checkPassword` mutation.""" +input 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 +} + +"""The output of our `confirmDeleteAccount` mutation.""" +type 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 + result: Boolean + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `confirmDeleteAccount` mutation.""" +input 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: UUID + token: String +} + +"""The output of our `setPassword` mutation.""" +type 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 + result: Boolean + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `setPassword` mutation.""" +input 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 +} + +"""The output of our `verifyEmail` mutation.""" +type 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 + result: Boolean + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `verifyEmail` mutation.""" +input 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: UUID + token: String +} + +"""The output of our `resetPassword` mutation.""" +type 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 + result: Boolean + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `resetPassword` mutation.""" +input 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: UUID + resetToken: String + newPassword: String +} + +"""The output of our `signInOneTimeToken` mutation.""" +type 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 + result: SignInOneTimeTokenRecord + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type SignInOneTimeTokenRecord { + id: UUID + userId: UUID + accessToken: String + accessTokenExpiresAt: Datetime + isVerified: Boolean + totpEnabled: Boolean +} + +"""All input for the `signInOneTimeToken` mutation.""" +input 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 +} + +"""The output of our `signIn` mutation.""" +type 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 + result: SignInRecord + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type SignInRecord { + id: UUID + userId: UUID + accessToken: String + accessTokenExpiresAt: Datetime + isVerified: Boolean + totpEnabled: Boolean +} + +"""All input for the `signIn` mutation.""" +input 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 + rememberMe: Boolean + credentialKind: String + csrfToken: String +} + +"""The output of our `signUp` mutation.""" +type 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 + result: SignUpRecord + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type SignUpRecord { + id: UUID + userId: UUID + accessToken: String + accessTokenExpiresAt: Datetime + isVerified: Boolean + totpEnabled: Boolean +} + +"""All input for the `signUp` mutation.""" +input 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 + rememberMe: Boolean + credentialKind: String + csrfToken: String +} + +"""The output of our `oneTimeToken` mutation.""" +type 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 + result: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `oneTimeToken` mutation.""" +input 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 +} + +"""The output of our `extendTokenExpires` mutation.""" +type 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 + result: [ExtendTokenExpiresRecord] + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type ExtendTokenExpiresRecord { + id: UUID + sessionId: UUID + expiresAt: Datetime +} + +"""All input for the `extendTokenExpires` mutation.""" +input 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 +} + +""" +An interval of time that has passed where the smallest distinct unit is a second. +""" +input 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: Float + + """A quantity of minutes.""" + minutes: Int + + """A quantity of hours.""" + hours: Int + + """A quantity of days.""" + days: Int + + """A quantity of months.""" + months: Int + + """A quantity of years.""" + years: Int +} + +"""The output of our `forgotPassword` mutation.""" +type 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 + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `forgotPassword` mutation.""" +input 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 +} + +"""The output of our `sendVerificationEmail` mutation.""" +type 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 + result: Boolean + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `sendVerificationEmail` mutation.""" +input 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 +} + +"""The output of our `verifyPassword` mutation.""" +type 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 + result: Session + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type Session { + id: UUID! + userId: UUID + isAnonymous: Boolean! + expiresAt: Datetime! + revokedAt: Datetime + origin: ConstructiveInternalTypeOrigin + ip: InternetAddress + uagent: String + fingerprintMode: String! + lastPasswordVerified: Datetime + lastMfaVerified: Datetime + csrfSecret: String + createdAt: Datetime + updatedAt: Datetime +} + +"""All input for the `verifyPassword` mutation.""" +input 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! +} + +"""The output of our `verifyTotp` mutation.""" +type 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 + result: Session + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `verifyTotp` mutation.""" +input 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! +} + +"""The output of our create `RoleType` mutation.""" +type 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 + + """The `RoleType` that was created by this mutation.""" + roleType: RoleType + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `RoleType`. May be used by Relay 1.""" + roleTypeEdge( + """The method to use when ordering `RoleType`.""" + orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): RoleTypeEdge +} + +"""All input for the create `RoleType` mutation.""" +input CreateRoleTypeInput { + """ + 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 + + """The `RoleType` to be created by this mutation.""" + roleType: RoleTypeInput! +} + +"""An input for mutations affecting `RoleType`""" +input RoleTypeInput { + id: Int! + name: String! +} + +"""The output of our create `CryptoAddress` mutation.""" +type 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 + + """The `CryptoAddress` that was created by this mutation.""" + cryptoAddress: CryptoAddress + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `CryptoAddress`. May be used by Relay 1.""" + cryptoAddressEdge( + """The method to use when ordering `CryptoAddress`.""" + orderBy: [CryptoAddressOrderBy!]! = [PRIMARY_KEY_ASC] + ): CryptoAddressEdge +} + +"""All input for the create `CryptoAddress` mutation.""" +input CreateCryptoAddressInput { + """ + 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 + + """The `CryptoAddress` to be created by this mutation.""" + cryptoAddress: CryptoAddressInput! +} + +"""An input for mutations affecting `CryptoAddress`""" +input CryptoAddressInput { + id: UUID + ownerId: UUID + address: String! + isVerified: Boolean + isPrimary: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `PhoneNumber` mutation.""" +type 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 + + """The `PhoneNumber` that was created by this mutation.""" + phoneNumber: PhoneNumber + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PhoneNumber`. May be used by Relay 1.""" + phoneNumberEdge( + """The method to use when ordering `PhoneNumber`.""" + orderBy: [PhoneNumberOrderBy!]! = [PRIMARY_KEY_ASC] + ): PhoneNumberEdge +} + +"""All input for the create `PhoneNumber` mutation.""" +input CreatePhoneNumberInput { + """ + 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 + + """The `PhoneNumber` to be created by this mutation.""" + phoneNumber: PhoneNumberInput! +} + +"""An input for mutations affecting `PhoneNumber`""" +input PhoneNumberInput { + id: UUID + ownerId: UUID + cc: String! + number: String! + isVerified: Boolean + isPrimary: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `ConnectedAccount` mutation.""" +type 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 + + """The `ConnectedAccount` that was created by this mutation.""" + connectedAccount: ConnectedAccount + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConnectedAccount`. May be used by Relay 1.""" + connectedAccountEdge( + """The method to use when ordering `ConnectedAccount`.""" + orderBy: [ConnectedAccountOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConnectedAccountEdge +} + +"""All input for the create `ConnectedAccount` mutation.""" +input CreateConnectedAccountInput { + """ + 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 + + """The `ConnectedAccount` to be created by this mutation.""" + connectedAccount: ConnectedAccountInput! +} + +"""An input for mutations affecting `ConnectedAccount`""" +input ConnectedAccountInput { + id: UUID + ownerId: UUID + + """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: JSON! + isVerified: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `Email` mutation.""" +type 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 + + """The `Email` that was created by this mutation.""" + email: Email + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Email`. May be used by Relay 1.""" + emailEdge( + """The method to use when ordering `Email`.""" + orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailEdge +} + +"""All input for the create `Email` mutation.""" +input CreateEmailInput { + """ + 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 + + """The `Email` to be created by this mutation.""" + email: EmailInput! +} + +"""An input for mutations affecting `Email`""" +input EmailInput { + id: UUID + ownerId: UUID + email: ConstructiveInternalTypeEmail! + isVerified: Boolean + isPrimary: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `AuditLog` mutation.""" +type 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 + + """The `AuditLog` that was created by this mutation.""" + auditLog: AuditLog + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AuditLog`. May be used by Relay 1.""" + auditLogEdge( + """The method to use when ordering `AuditLog`.""" + orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] + ): AuditLogEdge +} + +"""All input for the create `AuditLog` mutation.""" +input CreateAuditLogInput { + """ + 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 + + """The `AuditLog` to be created by this mutation.""" + auditLog: AuditLogInput! +} + +"""An input for mutations affecting `AuditLog`""" +input AuditLogInput { + id: UUID + event: String! + actorId: UUID + origin: ConstructiveInternalTypeOrigin + userAgent: String + ipAddress: InternetAddress + success: Boolean! + createdAt: Datetime +} + +"""The output of our create `User` mutation.""" +type 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 + + """The `User` that was created by this mutation.""" + user: User + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `User`. May be used by Relay 1.""" + userEdge( + """The method to use when ordering `User`.""" + orderBy: [UserOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserEdge +} + +"""All input for the create `User` mutation.""" +input CreateUserInput { + """ + 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 + + """The `User` to be created by this mutation.""" + user: UserInput! +} + +"""An input for mutations affecting `User`""" +input UserInput { + id: UUID + username: String + displayName: String + profilePicture: ConstructiveInternalTypeImage + searchTsv: FullText + type: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `RoleType` mutation.""" +type 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 + + """The `RoleType` that was updated by this mutation.""" + roleType: RoleType + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `RoleType`. May be used by Relay 1.""" + roleTypeEdge( + """The method to use when ordering `RoleType`.""" + orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): RoleTypeEdge +} + +"""All input for the `updateRoleType` mutation.""" +input UpdateRoleTypeInput { + """ + 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 + id: Int! + + """ + 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. +""" +input RoleTypePatch { + id: Int + name: String +} + +"""The output of our update `CryptoAddress` mutation.""" +type 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 + + """The `CryptoAddress` that was updated by this mutation.""" + cryptoAddress: CryptoAddress + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `CryptoAddress`. May be used by Relay 1.""" + cryptoAddressEdge( + """The method to use when ordering `CryptoAddress`.""" + orderBy: [CryptoAddressOrderBy!]! = [PRIMARY_KEY_ASC] + ): CryptoAddressEdge +} + +"""All input for the `updateCryptoAddress` mutation.""" +input UpdateCryptoAddressInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input CryptoAddressPatch { + id: UUID + ownerId: UUID + address: String + isVerified: Boolean + isPrimary: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `PhoneNumber` mutation.""" +type 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 + + """The `PhoneNumber` that was updated by this mutation.""" + phoneNumber: PhoneNumber + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PhoneNumber`. May be used by Relay 1.""" + phoneNumberEdge( + """The method to use when ordering `PhoneNumber`.""" + orderBy: [PhoneNumberOrderBy!]! = [PRIMARY_KEY_ASC] + ): PhoneNumberEdge +} + +"""All input for the `updatePhoneNumber` mutation.""" +input UpdatePhoneNumberInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input PhoneNumberPatch { + id: UUID + ownerId: UUID + cc: String + number: String + isVerified: Boolean + isPrimary: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `ConnectedAccount` mutation.""" +type 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 + + """The `ConnectedAccount` that was updated by this mutation.""" + connectedAccount: ConnectedAccount + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConnectedAccount`. May be used by Relay 1.""" + connectedAccountEdge( + """The method to use when ordering `ConnectedAccount`.""" + orderBy: [ConnectedAccountOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConnectedAccountEdge +} + +"""All input for the `updateConnectedAccount` mutation.""" +input UpdateConnectedAccountInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input ConnectedAccountPatch { + id: UUID + ownerId: UUID + + """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: JSON + isVerified: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `Email` mutation.""" +type 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 + + """The `Email` that was updated by this mutation.""" + email: Email + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Email`. May be used by Relay 1.""" + emailEdge( + """The method to use when ordering `Email`.""" + orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailEdge +} + +"""All input for the `updateEmail` mutation.""" +input UpdateEmailInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input EmailPatch { + id: UUID + ownerId: UUID + email: ConstructiveInternalTypeEmail + isVerified: Boolean + isPrimary: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `AuditLog` mutation.""" +type 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 + + """The `AuditLog` that was updated by this mutation.""" + auditLog: AuditLog + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AuditLog`. May be used by Relay 1.""" + auditLogEdge( + """The method to use when ordering `AuditLog`.""" + orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] + ): AuditLogEdge +} + +"""All input for the `updateAuditLog` mutation.""" +input UpdateAuditLogInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AuditLogPatch { + id: UUID + event: String + actorId: UUID + origin: ConstructiveInternalTypeOrigin + userAgent: String + ipAddress: InternetAddress + success: Boolean + createdAt: Datetime +} + +"""The output of our update `User` mutation.""" +type 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 + + """The `User` that was updated by this mutation.""" + user: User + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `User`. May be used by Relay 1.""" + userEdge( + """The method to use when ordering `User`.""" + orderBy: [UserOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserEdge +} + +"""All input for the `updateUser` mutation.""" +input UpdateUserInput { + """ + 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 + id: UUID! + + """ + 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.""" +input UserPatch { + id: UUID + username: String + displayName: String + profilePicture: ConstructiveInternalTypeImage + searchTsv: FullText + type: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our delete `RoleType` mutation.""" +type 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 + + """The `RoleType` that was deleted by this mutation.""" + roleType: RoleType + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `RoleType`. May be used by Relay 1.""" + roleTypeEdge( + """The method to use when ordering `RoleType`.""" + orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): RoleTypeEdge +} + +"""All input for the `deleteRoleType` mutation.""" +input DeleteRoleTypeInput { + """ + 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 + id: Int! +} + +"""The output of our delete `CryptoAddress` mutation.""" +type 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 + + """The `CryptoAddress` that was deleted by this mutation.""" + cryptoAddress: CryptoAddress + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `CryptoAddress`. May be used by Relay 1.""" + cryptoAddressEdge( + """The method to use when ordering `CryptoAddress`.""" + orderBy: [CryptoAddressOrderBy!]! = [PRIMARY_KEY_ASC] + ): CryptoAddressEdge +} + +"""All input for the `deleteCryptoAddress` mutation.""" +input DeleteCryptoAddressInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `PhoneNumber` mutation.""" +type 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 + + """The `PhoneNumber` that was deleted by this mutation.""" + phoneNumber: PhoneNumber + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PhoneNumber`. May be used by Relay 1.""" + phoneNumberEdge( + """The method to use when ordering `PhoneNumber`.""" + orderBy: [PhoneNumberOrderBy!]! = [PRIMARY_KEY_ASC] + ): PhoneNumberEdge +} + +"""All input for the `deletePhoneNumber` mutation.""" +input DeletePhoneNumberInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `ConnectedAccount` mutation.""" +type 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 + + """The `ConnectedAccount` that was deleted by this mutation.""" + connectedAccount: ConnectedAccount + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConnectedAccount`. May be used by Relay 1.""" + connectedAccountEdge( + """The method to use when ordering `ConnectedAccount`.""" + orderBy: [ConnectedAccountOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConnectedAccountEdge +} + +"""All input for the `deleteConnectedAccount` mutation.""" +input DeleteConnectedAccountInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `Email` mutation.""" +type 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 + + """The `Email` that was deleted by this mutation.""" + email: Email + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Email`. May be used by Relay 1.""" + emailEdge( + """The method to use when ordering `Email`.""" + orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailEdge +} + +"""All input for the `deleteEmail` mutation.""" +input DeleteEmailInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AuditLog` mutation.""" +type 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 + + """The `AuditLog` that was deleted by this mutation.""" + auditLog: AuditLog + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AuditLog`. May be used by Relay 1.""" + auditLogEdge( + """The method to use when ordering `AuditLog`.""" + orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] + ): AuditLogEdge +} + +"""All input for the `deleteAuditLog` mutation.""" +input DeleteAuditLogInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `User` mutation.""" +type 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 + + """The `User` that was deleted by this mutation.""" + user: User + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `User`. May be used by Relay 1.""" + userEdge( + """The method to use when ordering `User`.""" + orderBy: [UserOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserEdge +} + +"""All input for the `deleteUser` mutation.""" +input DeleteUserInput { + """ + 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 + id: UUID! +} \ No newline at end of file diff --git a/sdk/constructive-sdk/schemas/objects.graphql b/sdk/constructive-sdk/schemas/objects.graphql new file mode 100644 index 000000000..d4da1d2eb --- /dev/null +++ b/sdk/constructive-sdk/schemas/objects.graphql @@ -0,0 +1,2263 @@ +"""The root query type which gives access points into the data universe.""" +type Query { + revParse(dbId: UUID, storeId: UUID, refname: String): UUID + + """Reads and enables pagination through a set of `GetAllRecord`.""" + getAll( + databaseId: UUID + id: UUID + + """Only read the first `n` values of the set.""" + first: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set after (below) this cursor.""" + after: Cursor + ): GetAllConnection + + """Reads and enables pagination through a set of `Object`.""" + getAllObjectsFromRoot( + databaseId: UUID + id: UUID + + """Only read the first `n` values of the set.""" + first: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set after (below) this cursor.""" + after: Cursor + ): ObjectConnection + getNodeAtPath(databaseId: UUID, id: UUID, path: [String]): Object + + """Reads and enables pagination through a set of `Object`.""" + getPathObjectsFromRoot( + databaseId: UUID + id: UUID + path: [String] + + """Only read the first `n` values of the set.""" + first: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set after (below) this cursor.""" + after: Cursor + ): ObjectConnection + getObjectAtPath(dbId: UUID, storeId: UUID, path: [String], refname: String): Object + + """Reads and enables pagination through a set of `Ref`.""" + refs( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: RefCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: RefFilter + + """The method to use when ordering `Ref`.""" + orderBy: [RefOrderBy!] = [PRIMARY_KEY_ASC] + ): RefConnection + + """Reads and enables pagination through a set of `Store`.""" + stores( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: StoreCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: StoreFilter + + """The method to use when ordering `Store`.""" + orderBy: [StoreOrderBy!] = [PRIMARY_KEY_ASC] + ): StoreConnection + + """Reads and enables pagination through a set of `Commit`.""" + commits( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: CommitCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: CommitFilter + + """The method to use when ordering `Commit`.""" + orderBy: [CommitOrderBy!] = [PRIMARY_KEY_ASC] + ): CommitConnection + + """Reads and enables pagination through a set of `Object`.""" + objects( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ObjectCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ObjectFilter + + """The method to use when ordering `Object`.""" + orderBy: [ObjectOrderBy!] = [PRIMARY_KEY_ASC] + ): ObjectConnection + + """ + Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. + """ + _meta: MetaSchema +} + +""" +A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). +""" +scalar UUID + +"""A connection to a list of `GetAllRecord` values.""" +type GetAllConnection { + """A list of `GetAllRecord` objects.""" + nodes: [GetAllRecord]! + + """ + A list of edges which contains the `GetAllRecord` and cursor to aid in pagination. + """ + edges: [GetAllEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `GetAllRecord` you could get from the connection.""" + totalCount: Int! +} + +type GetAllRecord { + path: [String] + data: JSON +} + +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON + +"""A `GetAllRecord` edge in the connection.""" +type GetAllEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `GetAllRecord` at the end of the edge.""" + node: GetAllRecord +} + +"""A location in a connection that can be used for resuming pagination.""" +scalar Cursor + +"""Information about pagination in a connection.""" +type 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: Cursor + + """When paginating forwards, the cursor to continue.""" + endCursor: Cursor +} + +"""A connection to a list of `Object` values.""" +type 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: Int! +} + +type Object { + hashUuid: UUID + id: UUID! + databaseId: UUID! + kids: [UUID] + ktree: [String] + data: JSON + frzn: Boolean + createdAt: Datetime +} + +""" +A point in time as described by the [ISO +8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC +3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values +that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead +to unexpected results. +""" +scalar Datetime + +"""A `Object` edge in the connection.""" +type ObjectEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Object` at the end of the edge.""" + node: Object +} + +"""A connection to a list of `Ref` values.""" +type RefConnection { + """A list of `Ref` objects.""" + nodes: [Ref]! + + """ + A list of edges which contains the `Ref` and cursor to aid in pagination. + """ + edges: [RefEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Ref` you could get from the connection.""" + totalCount: Int! +} + +"""A ref is a data structure for pointing to a commit.""" +type Ref { + """The primary unique identifier for the ref.""" + id: UUID! + + """The name of the ref or branch""" + name: String! + databaseId: UUID! + storeId: UUID! + commitId: UUID +} + +"""A `Ref` edge in the connection.""" +type RefEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Ref` at the end of the edge.""" + node: Ref +} + +""" +A condition to be used against `Ref` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input RefCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `storeId` field.""" + storeId: UUID + + """Checks for equality with the object’s `commitId` field.""" + commitId: UUID +} + +""" +A filter to be used against `Ref` object types. All fields are combined with a logical ‘and.’ +""" +input 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 filter to be used against UUID fields. All fields are combined with a logical ‘and.’ +""" +input UUIDFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: UUID + + """Not equal to the specified value.""" + notEqualTo: UUID + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: UUID + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: UUID + + """Included in the specified list.""" + in: [UUID!] + + """Not included in the specified list.""" + notIn: [UUID!] + + """Less than the specified value.""" + lessThan: UUID + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: UUID + + """Greater than the specified value.""" + greaterThan: UUID + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: UUID +} + +""" +A filter to be used against String fields. All fields are combined with a logical ‘and.’ +""" +input StringFilter { + """ + 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: String + + """Does not contain the specified string (case-insensitive).""" + notIncludesInsensitive: String + + """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: String + + """Does not start with the specified string (case-insensitive).""" + notStartsWithInsensitive: String + + """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: String + + """Does not end with the specified string (case-insensitive).""" + notEndsWithInsensitive: String + + """ + 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: String + + """ + 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: String + + """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 +} + +"""Methods to use when ordering `Ref`.""" +enum RefOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + STORE_ID_ASC + STORE_ID_DESC +} + +"""A connection to a list of `Store` values.""" +type StoreConnection { + """A list of `Store` objects.""" + nodes: [Store]! + + """ + A list of edges which contains the `Store` and cursor to aid in pagination. + """ + edges: [StoreEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Store` you could get from the connection.""" + totalCount: Int! +} + +"""A store represents an isolated object repository within a database.""" +type Store { + """The primary unique identifier for the store.""" + id: UUID! + + """The name of the store (e.g., metaschema, migrations).""" + name: String! + + """The database this store belongs to.""" + databaseId: UUID! + + """The current head tree_id for this store.""" + hash: UUID + createdAt: Datetime +} + +"""A `Store` edge in the connection.""" +type StoreEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Store` at the end of the edge.""" + node: Store +} + +""" +A condition to be used against `Store` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input StoreCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `hash` field.""" + hash: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime +} + +""" +A filter to be used against `Store` object types. All fields are combined with a logical ‘and.’ +""" +input 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 filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ +""" +input DatetimeFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: Datetime + + """Not equal to the specified value.""" + notEqualTo: Datetime + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Datetime + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Datetime + + """Included in the specified list.""" + in: [Datetime!] + + """Not included in the specified list.""" + notIn: [Datetime!] + + """Less than the specified value.""" + lessThan: Datetime + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Datetime + + """Greater than the specified value.""" + greaterThan: Datetime + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Datetime +} + +"""Methods to use when ordering `Store`.""" +enum StoreOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `Commit` values.""" +type CommitConnection { + """A list of `Commit` objects.""" + nodes: [Commit]! + + """ + A list of edges which contains the `Commit` and cursor to aid in pagination. + """ + edges: [CommitEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Commit` you could get from the connection.""" + totalCount: Int! +} + +"""A commit records changes to the repository.""" +type Commit { + """The primary unique identifier for the commit.""" + id: UUID! + + """The commit message""" + message: String + + """The repository identifier""" + databaseId: UUID! + storeId: UUID! + + """Parent commits""" + parentIds: [UUID] + + """The author of the commit""" + authorId: UUID + + """The committer of the commit""" + committerId: UUID + + """The root of the tree""" + treeId: UUID + date: Datetime! +} + +"""A `Commit` edge in the connection.""" +type CommitEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Commit` at the end of the edge.""" + node: Commit +} + +""" +A condition to be used against `Commit` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input CommitCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `message` field.""" + message: String + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `storeId` field.""" + storeId: UUID + + """Checks for equality with the object’s `parentIds` field.""" + parentIds: [UUID] + + """Checks for equality with the object’s `authorId` field.""" + authorId: UUID + + """Checks for equality with the object’s `committerId` field.""" + committerId: UUID + + """Checks for equality with the object’s `treeId` field.""" + treeId: UUID + + """Checks for equality with the object’s `date` field.""" + date: Datetime +} + +""" +A filter to be used against `Commit` object types. All fields are combined with a logical ‘and.’ +""" +input 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 filter to be used against UUID List fields. All fields are combined with a logical ‘and.’ +""" +input UUIDListFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: [UUID] + + """Not equal to the specified value.""" + notEqualTo: [UUID] + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: [UUID] + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: [UUID] + + """Less than the specified value.""" + lessThan: [UUID] + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: [UUID] + + """Greater than the specified value.""" + greaterThan: [UUID] + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: [UUID] + + """Contains the specified list of values.""" + contains: [UUID] + + """Contained by the specified list of values.""" + containedBy: [UUID] + + """Overlaps the specified list of values.""" + overlaps: [UUID] + + """Any array item is equal to the specified value.""" + anyEqualTo: UUID + + """Any array item is not equal to the specified value.""" + anyNotEqualTo: UUID + + """Any array item is less than the specified value.""" + anyLessThan: UUID + + """Any array item is less than or equal to the specified value.""" + anyLessThanOrEqualTo: UUID + + """Any array item is greater than the specified value.""" + anyGreaterThan: UUID + + """Any array item is greater than or equal to the specified value.""" + anyGreaterThanOrEqualTo: UUID +} + +"""Methods to use when ordering `Commit`.""" +enum CommitOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +""" +A condition to be used against `Object` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input ObjectCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `kids` field.""" + kids: [UUID] + + """Checks for equality with the object’s `ktree` field.""" + ktree: [String] + + """Checks for equality with the object’s `data` field.""" + data: JSON + + """Checks for equality with the object’s `frzn` field.""" + frzn: Boolean + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime +} + +""" +A filter to be used against `Object` object types. All fields are combined with a logical ‘and.’ +""" +input 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 filter to be used against String List fields. All fields are combined with a logical ‘and.’ +""" +input StringListFilter { + """ + 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] + + """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 list of values.""" + contains: [String] + + """Contained by the specified list of values.""" + containedBy: [String] + + """Overlaps the specified list of values.""" + overlaps: [String] + + """Any array item is equal to the specified value.""" + anyEqualTo: String + + """Any array item is not equal to the specified value.""" + anyNotEqualTo: String + + """Any array item is less than the specified value.""" + anyLessThan: String + + """Any array item is less than or equal to the specified value.""" + anyLessThanOrEqualTo: String + + """Any array item is greater than the specified value.""" + anyGreaterThan: String + + """Any array item is greater than or equal to the specified value.""" + anyGreaterThanOrEqualTo: String +} + +""" +A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ +""" +input JSONFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: JSON + + """Not equal to the specified value.""" + notEqualTo: JSON + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: JSON + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: JSON + + """Included in the specified list.""" + in: [JSON!] + + """Not included in the specified list.""" + notIn: [JSON!] + + """Less than the specified value.""" + lessThan: JSON + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: JSON + + """Greater than the specified value.""" + greaterThan: JSON + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: JSON + + """Contains the specified JSON.""" + contains: JSON + + """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: JSON +} + +""" +A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ +""" +input BooleanFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: Boolean + + """Not equal to the specified value.""" + notEqualTo: Boolean + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Boolean + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Boolean + + """Included in the specified list.""" + in: [Boolean!] + + """Not included in the specified list.""" + notIn: [Boolean!] + + """Less than the specified value.""" + lessThan: Boolean + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Boolean + + """Greater than the specified value.""" + greaterThan: Boolean + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Boolean +} + +"""Methods to use when ordering `Object`.""" +enum ObjectOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + FRZN_ASC + FRZN_DESC +} + +"""Root meta schema type""" +type MetaSchema { + tables: [MetaTable!]! +} + +"""Information about a database table""" +type 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""" +type MetaField { + name: String! + type: MetaType! + isNotNull: Boolean! + hasDefault: Boolean! +} + +"""Information about a PostgreSQL type""" +type MetaType { + pgType: String! + gqlType: String! + isArray: Boolean! + isNotNull: Boolean + hasDefault: Boolean +} + +"""Information about a database index""" +type MetaIndex { + name: String! + isUnique: Boolean! + isPrimary: Boolean! + columns: [String!]! + fields: [MetaField!] +} + +"""Table constraints""" +type MetaConstraints { + primaryKey: MetaPrimaryKeyConstraint + unique: [MetaUniqueConstraint!]! + foreignKey: [MetaForeignKeyConstraint!]! +} + +"""Information about a primary key constraint""" +type MetaPrimaryKeyConstraint { + name: String! + fields: [MetaField!]! +} + +"""Information about a unique constraint""" +type MetaUniqueConstraint { + name: String! + fields: [MetaField!]! +} + +"""Information about a foreign key constraint""" +type MetaForeignKeyConstraint { + name: String! + fields: [MetaField!]! + referencedTable: String! + referencedFields: [String!]! + refFields: [MetaField!] + refTable: MetaRefTable +} + +"""Reference to a related table""" +type MetaRefTable { + name: String! +} + +"""Table relations""" +type MetaRelations { + belongsTo: [MetaBelongsToRelation!]! + has: [MetaHasRelation!]! + hasOne: [MetaHasRelation!]! + hasMany: [MetaHasRelation!]! + manyToMany: [MetaManyToManyRelation!]! +} + +"""A belongs-to (forward FK) relation""" +type MetaBelongsToRelation { + fieldName: String + isUnique: Boolean! + type: String + keys: [MetaField!]! + references: MetaRefTable! +} + +"""A has-one or has-many (reverse FK) relation""" +type MetaHasRelation { + fieldName: String + isUnique: Boolean! + type: String + keys: [MetaField!]! + referencedBy: MetaRefTable! +} + +"""A many-to-many relation via junction table""" +type MetaManyToManyRelation { + fieldName: String + type: String + junctionTable: MetaRefTable! + junctionLeftConstraint: MetaForeignKeyConstraint! + junctionLeftKeyAttributes: [MetaField!]! + junctionRightConstraint: MetaForeignKeyConstraint! + junctionRightKeyAttributes: [MetaField!]! + leftKeyAttributes: [MetaField!]! + rightKeyAttributes: [MetaField!]! + rightTable: MetaRefTable! +} + +"""Table inflection names""" +type MetaInflection { + tableType: String! + allRows: String! + connection: String! + edge: String! + filterType: String + orderByType: String! + conditionType: String! + patchType: String + createInputType: String! + createPayloadType: String! + updatePayloadType: String + deletePayloadType: String! +} + +"""Table query/mutation names""" +type MetaQuery { + all: String! + one: String + create: String + update: String + delete: String +} + +""" +The root mutation type which contains root level fields which mutate data. +""" +type Mutation { + freezeObjects( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: FreezeObjectsInput! + ): FreezeObjectsPayload + initEmptyRepo( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: InitEmptyRepoInput! + ): InitEmptyRepoPayload + removeNodeAtPath( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: RemoveNodeAtPathInput! + ): RemoveNodeAtPathPayload + setDataAtPath( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SetDataAtPathInput! + ): SetDataAtPathPayload + setPropsAndCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SetPropsAndCommitInput! + ): SetPropsAndCommitPayload + insertNodeAtPath( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: InsertNodeAtPathInput! + ): InsertNodeAtPathPayload + updateNodeAtPath( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateNodeAtPathInput! + ): UpdateNodeAtPathPayload + setAndCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SetAndCommitInput! + ): SetAndCommitPayload + + """Creates a single `Ref`.""" + createRef( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRefInput! + ): CreateRefPayload + + """Creates a single `Store`.""" + createStore( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateStoreInput! + ): CreateStorePayload + + """Creates a single `Commit`.""" + createCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateCommitInput! + ): CreateCommitPayload + + """Creates a single `Object`.""" + createObject( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateObjectInput! + ): CreateObjectPayload + + """Updates a single `Ref` using a unique key and a patch.""" + updateRef( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRefInput! + ): UpdateRefPayload + + """Updates a single `Store` using a unique key and a patch.""" + updateStore( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateStoreInput! + ): UpdateStorePayload + + """Updates a single `Commit` using a unique key and a patch.""" + updateCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateCommitInput! + ): UpdateCommitPayload + + """Updates a single `Object` using a unique key and a patch.""" + updateObject( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateObjectInput! + ): UpdateObjectPayload + + """Deletes a single `Ref` using a unique key.""" + deleteRef( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRefInput! + ): DeleteRefPayload + + """Deletes a single `Store` using a unique key.""" + deleteStore( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteStoreInput! + ): DeleteStorePayload + + """Deletes a single `Commit` using a unique key.""" + deleteCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteCommitInput! + ): DeleteCommitPayload + + """Deletes a single `Object` using a unique key.""" + deleteObject( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteObjectInput! + ): DeleteObjectPayload +} + +"""The output of our `freezeObjects` mutation.""" +type 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 + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `freezeObjects` mutation.""" +input 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: UUID + id: UUID +} + +"""The output of our `initEmptyRepo` mutation.""" +type 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 + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `initEmptyRepo` mutation.""" +input 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: UUID + storeId: UUID +} + +"""The output of our `removeNodeAtPath` mutation.""" +type 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 + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `removeNodeAtPath` mutation.""" +input 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: UUID + root: UUID + path: [String] +} + +"""The output of our `setDataAtPath` mutation.""" +type 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 + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `setDataAtPath` mutation.""" +input 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: UUID + root: UUID + path: [String] + data: JSON +} + +"""The output of our `setPropsAndCommit` mutation.""" +type 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 + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `setPropsAndCommit` mutation.""" +input 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: UUID + storeId: UUID + refname: String + path: [String] + data: JSON +} + +"""The output of our `insertNodeAtPath` mutation.""" +type 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 + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `insertNodeAtPath` mutation.""" +input 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: UUID + root: UUID + path: [String] + data: JSON + kids: [UUID] + ktree: [String] +} + +"""The output of our `updateNodeAtPath` mutation.""" +type 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 + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updateNodeAtPath` mutation.""" +input 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: UUID + root: UUID + path: [String] + data: JSON + kids: [UUID] + ktree: [String] +} + +"""The output of our `setAndCommit` mutation.""" +type 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 + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `setAndCommit` mutation.""" +input 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: UUID + storeId: UUID + refname: String + path: [String] + data: JSON + kids: [UUID] + ktree: [String] +} + +"""The output of our create `Ref` mutation.""" +type 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 + + """The `Ref` that was created by this mutation.""" + ref: Ref + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Ref`. May be used by Relay 1.""" + refEdge( + """The method to use when ordering `Ref`.""" + orderBy: [RefOrderBy!]! = [PRIMARY_KEY_ASC] + ): RefEdge +} + +"""All input for the create `Ref` mutation.""" +input CreateRefInput { + """ + 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 + + """The `Ref` to be created by this mutation.""" + ref: RefInput! +} + +"""An input for mutations affecting `Ref`""" +input RefInput { + """The primary unique identifier for the ref.""" + id: UUID + + """The name of the ref or branch""" + name: String! + databaseId: UUID! + storeId: UUID! + commitId: UUID +} + +"""The output of our create `Store` mutation.""" +type 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 + + """The `Store` that was created by this mutation.""" + store: Store + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Store`. May be used by Relay 1.""" + storeEdge( + """The method to use when ordering `Store`.""" + orderBy: [StoreOrderBy!]! = [PRIMARY_KEY_ASC] + ): StoreEdge +} + +"""All input for the create `Store` mutation.""" +input CreateStoreInput { + """ + 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 + + """The `Store` to be created by this mutation.""" + store: StoreInput! +} + +"""An input for mutations affecting `Store`""" +input StoreInput { + """The primary unique identifier for the store.""" + id: UUID + + """The name of the store (e.g., metaschema, migrations).""" + name: String! + + """The database this store belongs to.""" + databaseId: UUID! + + """The current head tree_id for this store.""" + hash: UUID + createdAt: Datetime +} + +"""The output of our create `Commit` mutation.""" +type 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 + + """The `Commit` that was created by this mutation.""" + commit: Commit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Commit`. May be used by Relay 1.""" + commitEdge( + """The method to use when ordering `Commit`.""" + orderBy: [CommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): CommitEdge +} + +"""All input for the create `Commit` mutation.""" +input CreateCommitInput { + """ + 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 + + """The `Commit` to be created by this mutation.""" + commit: CommitInput! +} + +"""An input for mutations affecting `Commit`""" +input CommitInput { + """The primary unique identifier for the commit.""" + id: UUID + + """The commit message""" + message: String + + """The repository identifier""" + databaseId: UUID! + storeId: UUID! + + """Parent commits""" + parentIds: [UUID] + + """The author of the commit""" + authorId: UUID + + """The committer of the commit""" + committerId: UUID + + """The root of the tree""" + treeId: UUID + date: Datetime +} + +"""The output of our create `Object` mutation.""" +type 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 + + """The `Object` that was created by this mutation.""" + object: Object + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Object`. May be used by Relay 1.""" + objectEdge( + """The method to use when ordering `Object`.""" + orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): ObjectEdge +} + +"""All input for the create `Object` mutation.""" +input CreateObjectInput { + """ + 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 + + """The `Object` to be created by this mutation.""" + object: ObjectInput! +} + +"""An input for mutations affecting `Object`""" +input ObjectInput { + id: UUID! + databaseId: UUID! + kids: [UUID] + ktree: [String] + data: JSON + frzn: Boolean + createdAt: Datetime +} + +"""The output of our update `Ref` mutation.""" +type 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 + + """The `Ref` that was updated by this mutation.""" + ref: Ref + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Ref`. May be used by Relay 1.""" + refEdge( + """The method to use when ordering `Ref`.""" + orderBy: [RefOrderBy!]! = [PRIMARY_KEY_ASC] + ): RefEdge +} + +"""All input for the `updateRef` mutation.""" +input UpdateRefInput { + """ + 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 + + """The primary unique identifier for the ref.""" + id: UUID! + databaseId: UUID! + + """ + 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.""" +input RefPatch { + """The primary unique identifier for the ref.""" + id: UUID + + """The name of the ref or branch""" + name: String + databaseId: UUID + storeId: UUID + commitId: UUID +} + +"""The output of our update `Store` mutation.""" +type 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 + + """The `Store` that was updated by this mutation.""" + store: Store + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Store`. May be used by Relay 1.""" + storeEdge( + """The method to use when ordering `Store`.""" + orderBy: [StoreOrderBy!]! = [PRIMARY_KEY_ASC] + ): StoreEdge +} + +"""All input for the `updateStore` mutation.""" +input UpdateStoreInput { + """ + 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 + + """The primary unique identifier for the store.""" + id: UUID! + + """ + 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. +""" +input StorePatch { + """The primary unique identifier for the store.""" + id: UUID + + """The name of the store (e.g., metaschema, migrations).""" + name: String + + """The database this store belongs to.""" + databaseId: UUID + + """The current head tree_id for this store.""" + hash: UUID + createdAt: Datetime +} + +"""The output of our update `Commit` mutation.""" +type 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 + + """The `Commit` that was updated by this mutation.""" + commit: Commit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Commit`. May be used by Relay 1.""" + commitEdge( + """The method to use when ordering `Commit`.""" + orderBy: [CommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): CommitEdge +} + +"""All input for the `updateCommit` mutation.""" +input UpdateCommitInput { + """ + 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 + + """The primary unique identifier for the commit.""" + id: UUID! + + """The repository identifier""" + databaseId: UUID! + + """ + 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. +""" +input CommitPatch { + """The primary unique identifier for the commit.""" + id: UUID + + """The commit message""" + message: String + + """The repository identifier""" + databaseId: UUID + storeId: UUID + + """Parent commits""" + parentIds: [UUID] + + """The author of the commit""" + authorId: UUID + + """The committer of the commit""" + committerId: UUID + + """The root of the tree""" + treeId: UUID + date: Datetime +} + +"""The output of our update `Object` mutation.""" +type 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 + + """The `Object` that was updated by this mutation.""" + object: Object + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Object`. May be used by Relay 1.""" + objectEdge( + """The method to use when ordering `Object`.""" + orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): ObjectEdge +} + +"""All input for the `updateObject` mutation.""" +input UpdateObjectInput { + """ + 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 + id: UUID! + databaseId: UUID! + + """ + 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. +""" +input ObjectPatch { + id: UUID + databaseId: UUID + kids: [UUID] + ktree: [String] + data: JSON + frzn: Boolean + createdAt: Datetime +} + +"""The output of our delete `Ref` mutation.""" +type 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 + + """The `Ref` that was deleted by this mutation.""" + ref: Ref + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Ref`. May be used by Relay 1.""" + refEdge( + """The method to use when ordering `Ref`.""" + orderBy: [RefOrderBy!]! = [PRIMARY_KEY_ASC] + ): RefEdge +} + +"""All input for the `deleteRef` mutation.""" +input DeleteRefInput { + """ + 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 + + """The primary unique identifier for the ref.""" + id: UUID! + databaseId: UUID! +} + +"""The output of our delete `Store` mutation.""" +type 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 + + """The `Store` that was deleted by this mutation.""" + store: Store + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Store`. May be used by Relay 1.""" + storeEdge( + """The method to use when ordering `Store`.""" + orderBy: [StoreOrderBy!]! = [PRIMARY_KEY_ASC] + ): StoreEdge +} + +"""All input for the `deleteStore` mutation.""" +input DeleteStoreInput { + """ + 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 + + """The primary unique identifier for the store.""" + id: UUID! +} + +"""The output of our delete `Commit` mutation.""" +type 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 + + """The `Commit` that was deleted by this mutation.""" + commit: Commit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Commit`. May be used by Relay 1.""" + commitEdge( + """The method to use when ordering `Commit`.""" + orderBy: [CommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): CommitEdge +} + +"""All input for the `deleteCommit` mutation.""" +input DeleteCommitInput { + """ + 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 + + """The primary unique identifier for the commit.""" + id: UUID! + + """The repository identifier""" + databaseId: UUID! +} + +"""The output of our delete `Object` mutation.""" +type 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 + + """The `Object` that was deleted by this mutation.""" + object: Object + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Object`. May be used by Relay 1.""" + objectEdge( + """The method to use when ordering `Object`.""" + orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): ObjectEdge +} + +"""All input for the `deleteObject` mutation.""" +input DeleteObjectInput { + """ + 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 + id: UUID! + databaseId: UUID! +} \ No newline at end of file diff --git a/sdk/constructive-sdk/schemas/public.graphql b/sdk/constructive-sdk/schemas/public.graphql new file mode 100644 index 000000000..351cd494f --- /dev/null +++ b/sdk/constructive-sdk/schemas/public.graphql @@ -0,0 +1,39394 @@ +"""The root query type which gives access points into the data universe.""" +type Query { + currentUserId: UUID + currentIpAddress: InternetAddress + currentUserAgent: String + appPermissionsGetPaddedMask(mask: BitString): BitString + orgPermissionsGetPaddedMask(mask: BitString): BitString + stepsAchieved(vlevel: String, vroleId: UUID): Boolean + revParse(dbId: UUID, storeId: UUID, refname: String): UUID + + """Reads and enables pagination through a set of `GetAllRecord`.""" + getAll( + databaseId: UUID + id: UUID + + """Only read the first `n` values of the set.""" + first: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set after (below) this cursor.""" + after: Cursor + ): GetAllConnection + appPermissionsGetMask(ids: [UUID]): BitString + orgPermissionsGetMask(ids: [UUID]): BitString + appPermissionsGetMaskByNames(names: [String]): BitString + orgPermissionsGetMaskByNames(names: [String]): BitString + + """Reads and enables pagination through a set of `AppPermission`.""" + appPermissionsGetByMask( + mask: BitString + + """Only read the first `n` values of the set.""" + first: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set after (below) this cursor.""" + after: Cursor + ): AppPermissionConnection + + """Reads and enables pagination through a set of `OrgPermission`.""" + orgPermissionsGetByMask( + mask: BitString + + """Only read the first `n` values of the set.""" + first: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set after (below) this cursor.""" + after: Cursor + ): OrgPermissionConnection + + """Reads and enables pagination through a set of `Object`.""" + getAllObjectsFromRoot( + databaseId: UUID + id: UUID + + """Only read the first `n` values of the set.""" + first: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set after (below) this cursor.""" + after: Cursor + ): ObjectConnection + getNodeAtPath(databaseId: UUID, id: UUID, path: [String]): Object + + """Reads and enables pagination through a set of `Object`.""" + getPathObjectsFromRoot( + databaseId: UUID + id: UUID + path: [String] + + """Only read the first `n` values of the set.""" + first: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set after (below) this cursor.""" + after: Cursor + ): ObjectConnection + getObjectAtPath(dbId: UUID, storeId: UUID, path: [String], refname: String): Object + + """Reads and enables pagination through a set of `AppLevelRequirement`.""" + stepsRequired( + vlevel: String + vroleId: UUID + + """Only read the first `n` values of the set.""" + first: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set after (below) this cursor.""" + after: Cursor + ): AppLevelRequirementConnection + currentUser: User + + """Reads and enables pagination through a set of `DefaultIdsModule`.""" + defaultIdsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: DefaultIdsModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: DefaultIdsModuleFilter + + """The method to use when ordering `DefaultIdsModule`.""" + orderBy: [DefaultIdsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): DefaultIdsModuleConnection + + """Reads and enables pagination through a set of `ViewTable`.""" + viewTables( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ViewTableCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ViewTableFilter + + """The method to use when ordering `ViewTable`.""" + orderBy: [ViewTableOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewTableConnection + + """Reads and enables pagination through a set of `ApiSchema`.""" + apiSchemas( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ApiSchemaCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ApiSchemaFilter + + """The method to use when ordering `ApiSchema`.""" + orderBy: [ApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiSchemaConnection + + """Reads and enables pagination through a set of `SiteTheme`.""" + siteThemes( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: SiteThemeCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: SiteThemeFilter + + """The method to use when ordering `SiteTheme`.""" + orderBy: [SiteThemeOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteThemeConnection + + """Reads and enables pagination through a set of `OrgMember`.""" + orgMembers( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgMemberCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgMemberFilter + + """The method to use when ordering `OrgMember`.""" + orderBy: [OrgMemberOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMemberConnection + + """Reads and enables pagination through a set of `AppPermissionDefault`.""" + appPermissionDefaults( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppPermissionDefaultCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppPermissionDefaultFilter + + """The method to use when ordering `AppPermissionDefault`.""" + orderBy: [AppPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultConnection + + """Reads and enables pagination through a set of `Ref`.""" + refs( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: RefCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: RefFilter + + """The method to use when ordering `Ref`.""" + orderBy: [RefOrderBy!] = [PRIMARY_KEY_ASC] + ): RefConnection + + """Reads and enables pagination through a set of `Store`.""" + stores( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: StoreCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: StoreFilter + + """The method to use when ordering `Store`.""" + orderBy: [StoreOrderBy!] = [PRIMARY_KEY_ASC] + ): StoreConnection + + """Reads and enables pagination through a set of `ApiModule`.""" + apiModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ApiModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ApiModuleFilter + + """The method to use when ordering `ApiModule`.""" + orderBy: [ApiModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiModuleConnection + + """Reads and enables pagination through a set of `SiteModule`.""" + siteModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: SiteModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: SiteModuleFilter + + """The method to use when ordering `SiteModule`.""" + orderBy: [SiteModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteModuleConnection + + """ + Reads and enables pagination through a set of `EncryptedSecretsModule`. + """ + encryptedSecretsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: EncryptedSecretsModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: EncryptedSecretsModuleFilter + + """The method to use when ordering `EncryptedSecretsModule`.""" + orderBy: [EncryptedSecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): EncryptedSecretsModuleConnection + + """Reads and enables pagination through a set of `MembershipTypesModule`.""" + membershipTypesModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: MembershipTypesModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: MembershipTypesModuleFilter + + """The method to use when ordering `MembershipTypesModule`.""" + orderBy: [MembershipTypesModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): MembershipTypesModuleConnection + + """Reads and enables pagination through a set of `SecretsModule`.""" + secretsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: SecretsModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: SecretsModuleFilter + + """The method to use when ordering `SecretsModule`.""" + orderBy: [SecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): SecretsModuleConnection + + """Reads and enables pagination through a set of `UuidModule`.""" + uuidModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: UuidModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: UuidModuleFilter + + """The method to use when ordering `UuidModule`.""" + orderBy: [UuidModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): UuidModuleConnection + + """Reads and enables pagination through a set of `RoleType`.""" + roleTypes( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: RoleTypeCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: RoleTypeFilter + + """The method to use when ordering `RoleType`.""" + orderBy: [RoleTypeOrderBy!] = [PRIMARY_KEY_ASC] + ): RoleTypeConnection + + """Reads and enables pagination through a set of `OrgPermissionDefault`.""" + orgPermissionDefaults( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgPermissionDefaultCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgPermissionDefaultFilter + + """The method to use when ordering `OrgPermissionDefault`.""" + orderBy: [OrgPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultConnection + + """Reads and enables pagination through a set of `SchemaGrant`.""" + schemaGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: SchemaGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: SchemaGrantFilter + + """The method to use when ordering `SchemaGrant`.""" + orderBy: [SchemaGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): SchemaGrantConnection + + """Reads and enables pagination through a set of `TriggerFunction`.""" + triggerFunctions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: TriggerFunctionCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: TriggerFunctionFilter + + """The method to use when ordering `TriggerFunction`.""" + orderBy: [TriggerFunctionOrderBy!] = [PRIMARY_KEY_ASC] + ): TriggerFunctionConnection + + """Reads and enables pagination through a set of `ViewGrant`.""" + viewGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ViewGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ViewGrantFilter + + """The method to use when ordering `ViewGrant`.""" + orderBy: [ViewGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewGrantConnection + + """Reads and enables pagination through a set of `ViewRule`.""" + viewRules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ViewRuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ViewRuleFilter + + """The method to use when ordering `ViewRule`.""" + orderBy: [ViewRuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewRuleConnection + + """Reads and enables pagination through a set of `AppAdminGrant`.""" + appAdminGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppAdminGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppAdminGrantFilter + + """The method to use when ordering `AppAdminGrant`.""" + orderBy: [AppAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppAdminGrantConnection + + """Reads and enables pagination through a set of `AppOwnerGrant`.""" + appOwnerGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppOwnerGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppOwnerGrantFilter + + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppOwnerGrantConnection + + """Reads and enables pagination through a set of `AppLimitDefault`.""" + appLimitDefaults( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppLimitDefaultCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppLimitDefaultFilter + + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitDefaultConnection + + """Reads and enables pagination through a set of `OrgLimitDefault`.""" + orgLimitDefaults( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgLimitDefaultCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgLimitDefaultFilter + + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultConnection + + """Reads and enables pagination through a set of `Api`.""" + apis( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ApiCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ApiFilter + + """The method to use when ordering `Api`.""" + orderBy: [ApiOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiConnection + + """ + Reads and enables pagination through a set of `ConnectedAccountsModule`. + """ + connectedAccountsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ConnectedAccountsModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ConnectedAccountsModuleFilter + + """The method to use when ordering `ConnectedAccountsModule`.""" + orderBy: [ConnectedAccountsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ConnectedAccountsModuleConnection + + """Reads and enables pagination through a set of `EmailsModule`.""" + emailsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: EmailsModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: EmailsModuleFilter + + """The method to use when ordering `EmailsModule`.""" + orderBy: [EmailsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): EmailsModuleConnection + + """Reads and enables pagination through a set of `PhoneNumbersModule`.""" + phoneNumbersModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: PhoneNumbersModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: PhoneNumbersModuleFilter + + """The method to use when ordering `PhoneNumbersModule`.""" + orderBy: [PhoneNumbersModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): PhoneNumbersModuleConnection + + """Reads and enables pagination through a set of `TableModule`.""" + tableModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: TableModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: TableModuleFilter + + """The method to use when ordering `TableModule`.""" + orderBy: [TableModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): TableModuleConnection + + """Reads and enables pagination through a set of `UsersModule`.""" + usersModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: UsersModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: UsersModuleFilter + + """The method to use when ordering `UsersModule`.""" + orderBy: [UsersModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): UsersModuleConnection + + """Reads and enables pagination through a set of `OrgAdminGrant`.""" + orgAdminGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgAdminGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgAdminGrantFilter + + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgAdminGrantConnection + + """Reads and enables pagination through a set of `OrgOwnerGrant`.""" + orgOwnerGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgOwnerGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgOwnerGrantFilter + + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantConnection + + """Reads and enables pagination through a set of `CryptoAddress`.""" + cryptoAddresses( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: CryptoAddressCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: CryptoAddressFilter + + """The method to use when ordering `CryptoAddress`.""" + orderBy: [CryptoAddressOrderBy!] = [PRIMARY_KEY_ASC] + ): CryptoAddressConnection + + """Reads and enables pagination through a set of `MembershipType`.""" + membershipTypes( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: MembershipTypeCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: MembershipTypeFilter + + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!] = [PRIMARY_KEY_ASC] + ): MembershipTypeConnection + + """Reads and enables pagination through a set of `Database`.""" + databases( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: DatabaseCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: DatabaseFilter + + """The method to use when ordering `Database`.""" + orderBy: [DatabaseOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseConnection + + """Reads and enables pagination through a set of `LimitFunction`.""" + limitFunctions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: LimitFunctionCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: LimitFunctionFilter + + """The method to use when ordering `LimitFunction`.""" + orderBy: [LimitFunctionOrderBy!] = [PRIMARY_KEY_ASC] + ): LimitFunctionConnection + + """Reads and enables pagination through a set of `TableGrant`.""" + tableGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: TableGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: TableGrantFilter + + """The method to use when ordering `TableGrant`.""" + orderBy: [TableGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): TableGrantConnection + + """Reads and enables pagination through a set of `CryptoAddressesModule`.""" + cryptoAddressesModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: CryptoAddressesModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: CryptoAddressesModuleFilter + + """The method to use when ordering `CryptoAddressesModule`.""" + orderBy: [CryptoAddressesModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): CryptoAddressesModuleConnection + + """Reads and enables pagination through a set of `ConnectedAccount`.""" + connectedAccounts( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ConnectedAccountCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ConnectedAccountFilter + + """The method to use when ordering `ConnectedAccount`.""" + orderBy: [ConnectedAccountOrderBy!] = [PRIMARY_KEY_ASC] + ): ConnectedAccountConnection + + """Reads and enables pagination through a set of `PhoneNumber`.""" + phoneNumbers( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: PhoneNumberCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: PhoneNumberFilter + + """The method to use when ordering `PhoneNumber`.""" + orderBy: [PhoneNumberOrderBy!] = [PRIMARY_KEY_ASC] + ): PhoneNumberConnection + + """Reads and enables pagination through a set of `AppPermission`.""" + appPermissions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppPermissionCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppPermissionFilter + + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!] = [PRIMARY_KEY_ASC] + ): AppPermissionConnection + + """Reads and enables pagination through a set of `OrgPermission`.""" + orgPermissions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgPermissionCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgPermissionFilter + + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgPermissionConnection + + """Reads and enables pagination through a set of `AppLimit`.""" + appLimits( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppLimitCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppLimitFilter + + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitConnection + + """Reads and enables pagination through a set of `AppAchievement`.""" + appAchievements( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppAchievementCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppAchievementFilter + + """The method to use when ordering `AppAchievement`.""" + orderBy: [AppAchievementOrderBy!] = [PRIMARY_KEY_ASC] + ): AppAchievementConnection + + """Reads and enables pagination through a set of `AppStep`.""" + appSteps( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppStepCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppStepFilter + + """The method to use when ordering `AppStep`.""" + orderBy: [AppStepOrderBy!] = [PRIMARY_KEY_ASC] + ): AppStepConnection + + """Reads and enables pagination through a set of `ClaimedInvite`.""" + claimedInvites( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ClaimedInviteCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ClaimedInviteFilter + + """The method to use when ordering `ClaimedInvite`.""" + orderBy: [ClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): ClaimedInviteConnection + + """Reads and enables pagination through a set of `AppMembershipDefault`.""" + appMembershipDefaults( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppMembershipDefaultCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppMembershipDefaultFilter + + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultConnection + + """Reads and enables pagination through a set of `SiteMetadatum`.""" + siteMetadata( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: SiteMetadatumCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: SiteMetadatumFilter + + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteMetadatumConnection + + """Reads and enables pagination through a set of `FieldModule`.""" + fieldModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: FieldModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: FieldModuleFilter + + """The method to use when ordering `FieldModule`.""" + orderBy: [FieldModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): FieldModuleConnection + + """Reads and enables pagination through a set of `TableTemplateModule`.""" + tableTemplateModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: TableTemplateModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: TableTemplateModuleFilter + + """The method to use when ordering `TableTemplateModule`.""" + orderBy: [TableTemplateModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): TableTemplateModuleConnection + + """Reads and enables pagination through a set of `NodeTypeRegistry`.""" + nodeTypeRegistries( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: NodeTypeRegistryCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: NodeTypeRegistryFilter + + """The method to use when ordering `NodeTypeRegistry`.""" + orderBy: [NodeTypeRegistryOrderBy!] = [PRIMARY_KEY_ASC] + ): NodeTypeRegistryConnection + + """Reads and enables pagination through a set of `Object`.""" + objects( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ObjectCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ObjectFilter + + """The method to use when ordering `Object`.""" + orderBy: [ObjectOrderBy!] = [PRIMARY_KEY_ASC] + ): ObjectConnection + + """Reads and enables pagination through a set of `FullTextSearch`.""" + fullTextSearches( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: FullTextSearchCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: FullTextSearchFilter + + """The method to use when ordering `FullTextSearch`.""" + orderBy: [FullTextSearchOrderBy!] = [PRIMARY_KEY_ASC] + ): FullTextSearchConnection + + """Reads and enables pagination through a set of `Commit`.""" + commits( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: CommitCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: CommitFilter + + """The method to use when ordering `Commit`.""" + orderBy: [CommitOrderBy!] = [PRIMARY_KEY_ASC] + ): CommitConnection + + """Reads and enables pagination through a set of `OrgLimit`.""" + orgLimits( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgLimitCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgLimitFilter + + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitConnection + + """Reads and enables pagination through a set of `AppGrant`.""" + appGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppGrantFilter + + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppGrantConnection + + """Reads and enables pagination through a set of `OrgClaimedInvite`.""" + orgClaimedInvites( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgClaimedInviteCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgClaimedInviteFilter + + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteConnection + + """Reads and enables pagination through a set of `Domain`.""" + domains( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: DomainCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: DomainFilter + + """The method to use when ordering `Domain`.""" + orderBy: [DomainOrderBy!] = [PRIMARY_KEY_ASC] + ): DomainConnection + + """Reads and enables pagination through a set of `OrgGrant`.""" + orgGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgGrantFilter + + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgGrantConnection + + """Reads and enables pagination through a set of `OrgMembershipDefault`.""" + orgMembershipDefaults( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgMembershipDefaultCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgMembershipDefaultFilter + + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultConnection + + """Reads and enables pagination through a set of `SessionsModule`.""" + sessionsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: SessionsModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: SessionsModuleFilter + + """The method to use when ordering `SessionsModule`.""" + orderBy: [SessionsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): SessionsModuleConnection + + """Reads and enables pagination through a set of `Email`.""" + emails( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: EmailCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: EmailFilter + + """The method to use when ordering `Email`.""" + orderBy: [EmailOrderBy!] = [PRIMARY_KEY_ASC] + ): EmailConnection + + """Reads and enables pagination through a set of `AppLevelRequirement`.""" + appLevelRequirements( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppLevelRequirementCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppLevelRequirementFilter + + """The method to use when ordering `AppLevelRequirement`.""" + orderBy: [AppLevelRequirementOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLevelRequirementConnection + + """Reads and enables pagination through a set of `AuditLog`.""" + auditLogs( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AuditLogCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AuditLogFilter + + """The method to use when ordering `AuditLog`.""" + orderBy: [AuditLogOrderBy!] = [PRIMARY_KEY_ASC] + ): AuditLogConnection + + """Reads and enables pagination through a set of `AppLevel`.""" + appLevels( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppLevelCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppLevelFilter + + """The method to use when ordering `AppLevel`.""" + orderBy: [AppLevelOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLevelConnection + + """Reads and enables pagination through a set of `RlsModule`.""" + rlsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: RlsModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: RlsModuleFilter + + """The method to use when ordering `RlsModule`.""" + orderBy: [RlsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): RlsModuleConnection + + """ + Reads and enables pagination through a set of `DenormalizedTableField`. + """ + denormalizedTableFields( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: DenormalizedTableFieldCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: DenormalizedTableFieldFilter + + """The method to use when ordering `DenormalizedTableField`.""" + orderBy: [DenormalizedTableFieldOrderBy!] = [PRIMARY_KEY_ASC] + ): DenormalizedTableFieldConnection + + """Reads and enables pagination through a set of `SqlMigration`.""" + sqlMigrations( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: SqlMigrationCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: SqlMigrationFilter + + """The method to use when ordering `SqlMigration`.""" + orderBy: [SqlMigrationOrderBy!] = [NATURAL] + ): SqlMigrationConnection + + """Reads and enables pagination through a set of `CryptoAuthModule`.""" + cryptoAuthModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: CryptoAuthModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: CryptoAuthModuleFilter + + """The method to use when ordering `CryptoAuthModule`.""" + orderBy: [CryptoAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): CryptoAuthModuleConnection + + """ + Reads and enables pagination through a set of `DatabaseProvisionModule`. + """ + databaseProvisionModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: DatabaseProvisionModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: DatabaseProvisionModuleFilter + + """The method to use when ordering `DatabaseProvisionModule`.""" + orderBy: [DatabaseProvisionModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseProvisionModuleConnection + + """Reads and enables pagination through a set of `InvitesModule`.""" + invitesModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: InvitesModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: InvitesModuleFilter + + """The method to use when ordering `InvitesModule`.""" + orderBy: [InvitesModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): InvitesModuleConnection + + """Reads and enables pagination through a set of `View`.""" + views( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ViewCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ViewFilter + + """The method to use when ordering `View`.""" + orderBy: [ViewOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewConnection + + """Reads and enables pagination through a set of `AstMigration`.""" + astMigrations( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AstMigrationCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AstMigrationFilter + + """The method to use when ordering `AstMigration`.""" + orderBy: [AstMigrationOrderBy!] = [NATURAL] + ): AstMigrationConnection + + """Reads and enables pagination through a set of `AppMembership`.""" + appMemberships( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppMembershipCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppMembershipFilter + + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!] = [PRIMARY_KEY_ASC] + ): AppMembershipConnection + + """Reads and enables pagination through a set of `OrgMembership`.""" + orgMemberships( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgMembershipCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgMembershipFilter + + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipConnection + + """Reads and enables pagination through a set of `App`.""" + apps( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppFilter + + """The method to use when ordering `App`.""" + orderBy: [AppOrderBy!] = [PRIMARY_KEY_ASC] + ): AppConnection + + """Reads and enables pagination through a set of `Site`.""" + sites( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: SiteCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: SiteFilter + + """The method to use when ordering `Site`.""" + orderBy: [SiteOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteConnection + + """Reads and enables pagination through a set of `User`.""" + users( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: UserCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: UserFilter + + """The method to use when ordering `User`.""" + orderBy: [UserOrderBy!] = [PRIMARY_KEY_ASC] + ): UserConnection + + """Reads and enables pagination through a set of `PermissionsModule`.""" + permissionsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: PermissionsModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: PermissionsModuleFilter + + """The method to use when ordering `PermissionsModule`.""" + orderBy: [PermissionsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): PermissionsModuleConnection + + """Reads and enables pagination through a set of `PrimaryKeyConstraint`.""" + primaryKeyConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: PrimaryKeyConstraintCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: PrimaryKeyConstraintFilter + + """The method to use when ordering `PrimaryKeyConstraint`.""" + orderBy: [PrimaryKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): PrimaryKeyConstraintConnection + + """Reads and enables pagination through a set of `Trigger`.""" + triggers( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: TriggerCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: TriggerFilter + + """The method to use when ordering `Trigger`.""" + orderBy: [TriggerOrderBy!] = [PRIMARY_KEY_ASC] + ): TriggerConnection + + """Reads and enables pagination through a set of `CheckConstraint`.""" + checkConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: CheckConstraintCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: CheckConstraintFilter + + """The method to use when ordering `CheckConstraint`.""" + orderBy: [CheckConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): CheckConstraintConnection + + """Reads and enables pagination through a set of `UniqueConstraint`.""" + uniqueConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: UniqueConstraintCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: UniqueConstraintFilter + + """The method to use when ordering `UniqueConstraint`.""" + orderBy: [UniqueConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): UniqueConstraintConnection + + """Reads and enables pagination through a set of `Procedure`.""" + procedures( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ProcedureCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ProcedureFilter + + """The method to use when ordering `Procedure`.""" + orderBy: [ProcedureOrderBy!] = [PRIMARY_KEY_ASC] + ): ProcedureConnection + + """Reads and enables pagination through a set of `Policy`.""" + policies( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: PolicyCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: PolicyFilter + + """The method to use when ordering `Policy`.""" + orderBy: [PolicyOrderBy!] = [PRIMARY_KEY_ASC] + ): PolicyConnection + + """Reads and enables pagination through a set of `Invite`.""" + invites( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: InviteCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: InviteFilter + + """The method to use when ordering `Invite`.""" + orderBy: [InviteOrderBy!] = [PRIMARY_KEY_ASC] + ): InviteConnection + + """Reads and enables pagination through a set of `Index`.""" + indices( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: IndexCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: IndexFilter + + """The method to use when ordering `Index`.""" + orderBy: [IndexOrderBy!] = [PRIMARY_KEY_ASC] + ): IndexConnection + + """Reads and enables pagination through a set of `LimitsModule`.""" + limitsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: LimitsModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: LimitsModuleFilter + + """The method to use when ordering `LimitsModule`.""" + orderBy: [LimitsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): LimitsModuleConnection + + """Reads and enables pagination through a set of `Schema`.""" + schemas( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: SchemaCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: SchemaFilter + + """The method to use when ordering `Schema`.""" + orderBy: [SchemaOrderBy!] = [PRIMARY_KEY_ASC] + ): SchemaConnection + + """Reads and enables pagination through a set of `ProfilesModule`.""" + profilesModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ProfilesModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ProfilesModuleFilter + + """The method to use when ordering `ProfilesModule`.""" + orderBy: [ProfilesModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ProfilesModuleConnection + + """Reads and enables pagination through a set of `OrgInvite`.""" + orgInvites( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgInviteCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgInviteFilter + + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgInviteConnection + + """Reads and enables pagination through a set of `HierarchyModule`.""" + hierarchyModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: HierarchyModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: HierarchyModuleFilter + + """The method to use when ordering `HierarchyModule`.""" + orderBy: [HierarchyModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): HierarchyModuleConnection + + """Reads and enables pagination through a set of `ForeignKeyConstraint`.""" + foreignKeyConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ForeignKeyConstraintCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ForeignKeyConstraintFilter + + """The method to use when ordering `ForeignKeyConstraint`.""" + orderBy: [ForeignKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): ForeignKeyConstraintConnection + + """Reads and enables pagination through a set of `Table`.""" + tables( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: TableCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: TableFilter + + """The method to use when ordering `Table`.""" + orderBy: [TableOrderBy!] = [PRIMARY_KEY_ASC] + ): TableConnection + + """Reads and enables pagination through a set of `LevelsModule`.""" + levelsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: LevelsModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: LevelsModuleFilter + + """The method to use when ordering `LevelsModule`.""" + orderBy: [LevelsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): LevelsModuleConnection + + """Reads and enables pagination through a set of `UserAuthModule`.""" + userAuthModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: UserAuthModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: UserAuthModuleFilter + + """The method to use when ordering `UserAuthModule`.""" + orderBy: [UserAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): UserAuthModuleConnection + + """Reads and enables pagination through a set of `Field`.""" + fields( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: FieldCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: FieldFilter + + """The method to use when ordering `Field`.""" + orderBy: [FieldOrderBy!] = [PRIMARY_KEY_ASC] + ): FieldConnection + + """Reads and enables pagination through a set of `MembershipsModule`.""" + membershipsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: MembershipsModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: MembershipsModuleFilter + + """The method to use when ordering `MembershipsModule`.""" + orderBy: [MembershipsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): MembershipsModuleConnection + + """ + Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. + """ + _meta: MetaSchema +} + +""" +A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122). +""" +scalar UUID + +"""An IPv4 or IPv6 host address, and optionally its subnet.""" +scalar InternetAddress + +"""A string representing a series of binary bits""" +scalar BitString + +"""A connection to a list of `GetAllRecord` values.""" +type GetAllConnection { + """A list of `GetAllRecord` objects.""" + nodes: [GetAllRecord]! + + """ + A list of edges which contains the `GetAllRecord` and cursor to aid in pagination. + """ + edges: [GetAllEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `GetAllRecord` you could get from the connection.""" + totalCount: Int! +} + +type GetAllRecord { + path: [String] + data: JSON +} + +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON + +"""A `GetAllRecord` edge in the connection.""" +type GetAllEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `GetAllRecord` at the end of the edge.""" + node: GetAllRecord +} + +"""A location in a connection that can be used for resuming pagination.""" +scalar Cursor + +"""Information about pagination in a connection.""" +type 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: Cursor + + """When paginating forwards, the cursor to continue.""" + endCursor: Cursor +} + +"""A connection to a list of `AppPermission` values.""" +type 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: Int! +} + +type AppPermission { + id: UUID! + name: String + bitnum: Int + bitstr: BitString! + description: String +} + +"""A `AppPermission` edge in the connection.""" +type AppPermissionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppPermission` at the end of the edge.""" + node: AppPermission +} + +"""A connection to a list of `OrgPermission` values.""" +type 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: Int! +} + +type OrgPermission { + id: UUID! + name: String + bitnum: Int + bitstr: BitString! + description: String +} + +"""A `OrgPermission` edge in the connection.""" +type OrgPermissionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgPermission` at the end of the edge.""" + node: OrgPermission +} + +"""A connection to a list of `Object` values.""" +type 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: Int! +} + +type Object { + hashUuid: UUID + id: UUID! + databaseId: UUID! + kids: [UUID] + ktree: [String] + data: JSON + frzn: Boolean + createdAt: Datetime +} + +""" +A point in time as described by the [ISO +8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC +3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values +that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead +to unexpected results. +""" +scalar Datetime + +"""A `Object` edge in the connection.""" +type ObjectEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Object` at the end of the edge.""" + node: Object +} + +"""A connection to a list of `AppLevelRequirement` values.""" +type 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: Int! +} + +"""Requirements to achieve a level""" +type AppLevelRequirement { + id: UUID! + name: String! + level: String! + description: String + requiredCount: Int! + priority: Int! + createdAt: Datetime + updatedAt: Datetime +} + +"""A `AppLevelRequirement` edge in the connection.""" +type AppLevelRequirementEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLevelRequirement` at the end of the edge.""" + node: AppLevelRequirement +} + +type User { + id: UUID! + username: String + displayName: String + profilePicture: ConstructiveInternalTypeImage + searchTsv: FullText + type: Int! + createdAt: Datetime + updatedAt: Datetime + + """ + Full-text search ranking when filtered by `searchTsv`. Returns null when no search condition is active. + """ + searchTsvRank: Float + + """Reads a single `RoleType` that is related to this `User`.""" + roleType: RoleType + + """Reads and enables pagination through a set of `Database`.""" + ownedDatabases( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: DatabaseCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: DatabaseFilter + + """The method to use when ordering `Database`.""" + orderBy: [DatabaseOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseConnection! + + """Reads a single `AppMembership` that is related to this `User`.""" + appMembershipByActorId: AppMembership + + """Reads and enables pagination through a set of `AppAdminGrant`.""" + appAdminGrantsByGrantorId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppAdminGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppAdminGrantFilter + + """The method to use when ordering `AppAdminGrant`.""" + orderBy: [AppAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppAdminGrantConnection! + + """Reads and enables pagination through a set of `AppOwnerGrant`.""" + appOwnerGrantsByGrantorId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppOwnerGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppOwnerGrantFilter + + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppOwnerGrantConnection! + + """Reads and enables pagination through a set of `AppGrant`.""" + appGrantsByGrantorId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppGrantFilter + + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppGrantConnection! + + """Reads and enables pagination through a set of `OrgMembership`.""" + orgMembershipsByActorId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgMembershipCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgMembershipFilter + + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipConnection! + + """Reads and enables pagination through a set of `OrgMembership`.""" + orgMembershipsByEntityId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgMembershipCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgMembershipFilter + + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipConnection! + + """Reads a single `OrgMembershipDefault` that is related to this `User`.""" + orgMembershipDefaultByEntityId: OrgMembershipDefault + + """Reads and enables pagination through a set of `OrgMember`.""" + orgMembersByActorId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgMemberCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgMemberFilter + + """The method to use when ordering `OrgMember`.""" + orderBy: [OrgMemberOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMemberConnection! + + """Reads and enables pagination through a set of `OrgMember`.""" + orgMembersByEntityId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgMemberCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgMemberFilter + + """The method to use when ordering `OrgMember`.""" + orderBy: [OrgMemberOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMemberConnection! + + """Reads and enables pagination through a set of `OrgAdminGrant`.""" + orgAdminGrantsByEntityId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgAdminGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgAdminGrantFilter + + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgAdminGrantConnection! + + """Reads and enables pagination through a set of `OrgAdminGrant`.""" + orgAdminGrantsByGrantorId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgAdminGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgAdminGrantFilter + + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgAdminGrantConnection! + + """Reads and enables pagination through a set of `OrgOwnerGrant`.""" + orgOwnerGrantsByEntityId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgOwnerGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgOwnerGrantFilter + + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantConnection! + + """Reads and enables pagination through a set of `OrgOwnerGrant`.""" + orgOwnerGrantsByGrantorId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgOwnerGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgOwnerGrantFilter + + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantConnection! + + """Reads and enables pagination through a set of `OrgGrant`.""" + orgGrantsByEntityId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgGrantFilter + + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgGrantConnection! + + """Reads and enables pagination through a set of `OrgGrant`.""" + orgGrantsByGrantorId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgGrantFilter + + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgGrantConnection! + + """Reads and enables pagination through a set of `AppLimit`.""" + appLimitsByActorId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppLimitCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppLimitFilter + + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitConnection! + + """Reads and enables pagination through a set of `OrgLimit`.""" + orgLimitsByActorId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgLimitCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgLimitFilter + + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitConnection! + + """Reads and enables pagination through a set of `OrgLimit`.""" + orgLimitsByEntityId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgLimitCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgLimitFilter + + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitConnection! + + """Reads and enables pagination through a set of `AppStep`.""" + appStepsByActorId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppStepCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppStepFilter + + """The method to use when ordering `AppStep`.""" + orderBy: [AppStepOrderBy!] = [PRIMARY_KEY_ASC] + ): AppStepConnection! + + """Reads and enables pagination through a set of `AppAchievement`.""" + appAchievementsByActorId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppAchievementCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppAchievementFilter + + """The method to use when ordering `AppAchievement`.""" + orderBy: [AppAchievementOrderBy!] = [PRIMARY_KEY_ASC] + ): AppAchievementConnection! + + """Reads and enables pagination through a set of `Invite`.""" + invitesBySenderId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: InviteCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: InviteFilter + + """The method to use when ordering `Invite`.""" + orderBy: [InviteOrderBy!] = [PRIMARY_KEY_ASC] + ): InviteConnection! + + """Reads and enables pagination through a set of `ClaimedInvite`.""" + claimedInvitesByReceiverId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ClaimedInviteCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ClaimedInviteFilter + + """The method to use when ordering `ClaimedInvite`.""" + orderBy: [ClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): ClaimedInviteConnection! + + """Reads and enables pagination through a set of `ClaimedInvite`.""" + claimedInvitesBySenderId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ClaimedInviteCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ClaimedInviteFilter + + """The method to use when ordering `ClaimedInvite`.""" + orderBy: [ClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): ClaimedInviteConnection! + + """Reads and enables pagination through a set of `OrgInvite`.""" + orgInvitesByEntityId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgInviteCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgInviteFilter + + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgInviteConnection! + + """Reads and enables pagination through a set of `OrgInvite`.""" + orgInvitesBySenderId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgInviteCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgInviteFilter + + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgInviteConnection! + + """Reads and enables pagination through a set of `OrgClaimedInvite`.""" + orgClaimedInvitesByReceiverId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgClaimedInviteCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgClaimedInviteFilter + + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteConnection! + + """Reads and enables pagination through a set of `OrgClaimedInvite`.""" + orgClaimedInvitesBySenderId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: OrgClaimedInviteCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: OrgClaimedInviteFilter + + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteConnection! +} + +scalar ConstructiveInternalTypeImage + +"""A full-text search tsvector value represented as a string.""" +scalar FullText + +type RoleType { + id: Int! + name: String! +} + +"""A connection to a list of `Database` values.""" +type DatabaseConnection { + """A list of `Database` objects.""" + nodes: [Database]! + + """ + A list of edges which contains the `Database` and cursor to aid in pagination. + """ + edges: [DatabaseEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Database` you could get from the connection.""" + totalCount: Int! +} + +type Database { + id: UUID! + ownerId: UUID + schemaHash: String + name: String + label: String + hash: UUID + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `Database`.""" + owner: User + + """Reads and enables pagination through a set of `Schema`.""" + schemas( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: SchemaCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: SchemaFilter + + """The method to use when ordering `Schema`.""" + orderBy: [SchemaOrderBy!] = [PRIMARY_KEY_ASC] + ): SchemaConnection! + + """Reads and enables pagination through a set of `Table`.""" + tables( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: TableCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: TableFilter + + """The method to use when ordering `Table`.""" + orderBy: [TableOrderBy!] = [PRIMARY_KEY_ASC] + ): TableConnection! + + """Reads and enables pagination through a set of `CheckConstraint`.""" + checkConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: CheckConstraintCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: CheckConstraintFilter + + """The method to use when ordering `CheckConstraint`.""" + orderBy: [CheckConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): CheckConstraintConnection! + + """Reads and enables pagination through a set of `Field`.""" + fields( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: FieldCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: FieldFilter + + """The method to use when ordering `Field`.""" + orderBy: [FieldOrderBy!] = [PRIMARY_KEY_ASC] + ): FieldConnection! + + """Reads and enables pagination through a set of `ForeignKeyConstraint`.""" + foreignKeyConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ForeignKeyConstraintCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ForeignKeyConstraintFilter + + """The method to use when ordering `ForeignKeyConstraint`.""" + orderBy: [ForeignKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): ForeignKeyConstraintConnection! + + """Reads and enables pagination through a set of `FullTextSearch`.""" + fullTextSearches( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: FullTextSearchCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: FullTextSearchFilter + + """The method to use when ordering `FullTextSearch`.""" + orderBy: [FullTextSearchOrderBy!] = [PRIMARY_KEY_ASC] + ): FullTextSearchConnection! + + """Reads and enables pagination through a set of `Index`.""" + indices( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: IndexCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: IndexFilter + + """The method to use when ordering `Index`.""" + orderBy: [IndexOrderBy!] = [PRIMARY_KEY_ASC] + ): IndexConnection! + + """Reads and enables pagination through a set of `LimitFunction`.""" + limitFunctions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: LimitFunctionCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: LimitFunctionFilter + + """The method to use when ordering `LimitFunction`.""" + orderBy: [LimitFunctionOrderBy!] = [PRIMARY_KEY_ASC] + ): LimitFunctionConnection! + + """Reads and enables pagination through a set of `Policy`.""" + policies( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: PolicyCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: PolicyFilter + + """The method to use when ordering `Policy`.""" + orderBy: [PolicyOrderBy!] = [PRIMARY_KEY_ASC] + ): PolicyConnection! + + """Reads and enables pagination through a set of `PrimaryKeyConstraint`.""" + primaryKeyConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: PrimaryKeyConstraintCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: PrimaryKeyConstraintFilter + + """The method to use when ordering `PrimaryKeyConstraint`.""" + orderBy: [PrimaryKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): PrimaryKeyConstraintConnection! + + """Reads and enables pagination through a set of `Procedure`.""" + procedures( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ProcedureCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ProcedureFilter + + """The method to use when ordering `Procedure`.""" + orderBy: [ProcedureOrderBy!] = [PRIMARY_KEY_ASC] + ): ProcedureConnection! + + """Reads and enables pagination through a set of `SchemaGrant`.""" + schemaGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: SchemaGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: SchemaGrantFilter + + """The method to use when ordering `SchemaGrant`.""" + orderBy: [SchemaGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): SchemaGrantConnection! + + """Reads and enables pagination through a set of `TableGrant`.""" + tableGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: TableGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: TableGrantFilter + + """The method to use when ordering `TableGrant`.""" + orderBy: [TableGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): TableGrantConnection! + + """Reads and enables pagination through a set of `TriggerFunction`.""" + triggerFunctions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: TriggerFunctionCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: TriggerFunctionFilter + + """The method to use when ordering `TriggerFunction`.""" + orderBy: [TriggerFunctionOrderBy!] = [PRIMARY_KEY_ASC] + ): TriggerFunctionConnection! + + """Reads and enables pagination through a set of `Trigger`.""" + triggers( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: TriggerCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: TriggerFilter + + """The method to use when ordering `Trigger`.""" + orderBy: [TriggerOrderBy!] = [PRIMARY_KEY_ASC] + ): TriggerConnection! + + """Reads and enables pagination through a set of `UniqueConstraint`.""" + uniqueConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: UniqueConstraintCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: UniqueConstraintFilter + + """The method to use when ordering `UniqueConstraint`.""" + orderBy: [UniqueConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): UniqueConstraintConnection! + + """Reads and enables pagination through a set of `View`.""" + views( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ViewCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ViewFilter + + """The method to use when ordering `View`.""" + orderBy: [ViewOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewConnection! + + """Reads and enables pagination through a set of `ViewGrant`.""" + viewGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ViewGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ViewGrantFilter + + """The method to use when ordering `ViewGrant`.""" + orderBy: [ViewGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewGrantConnection! + + """Reads and enables pagination through a set of `ViewRule`.""" + viewRules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ViewRuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ViewRuleFilter + + """The method to use when ordering `ViewRule`.""" + orderBy: [ViewRuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewRuleConnection! + + """Reads and enables pagination through a set of `Api`.""" + apis( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ApiCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ApiFilter + + """The method to use when ordering `Api`.""" + orderBy: [ApiOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiConnection! + + """Reads and enables pagination through a set of `ApiModule`.""" + apiModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ApiModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ApiModuleFilter + + """The method to use when ordering `ApiModule`.""" + orderBy: [ApiModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiModuleConnection! + + """Reads and enables pagination through a set of `ApiSchema`.""" + apiSchemas( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ApiSchemaCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ApiSchemaFilter + + """The method to use when ordering `ApiSchema`.""" + orderBy: [ApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiSchemaConnection! + + """Reads and enables pagination through a set of `Site`.""" + sites( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: SiteCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: SiteFilter + + """The method to use when ordering `Site`.""" + orderBy: [SiteOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteConnection! + + """Reads and enables pagination through a set of `App`.""" + apps( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: AppCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: AppFilter + + """The method to use when ordering `App`.""" + orderBy: [AppOrderBy!] = [PRIMARY_KEY_ASC] + ): AppConnection! + + """Reads and enables pagination through a set of `Domain`.""" + domains( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: DomainCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: DomainFilter + + """The method to use when ordering `Domain`.""" + orderBy: [DomainOrderBy!] = [PRIMARY_KEY_ASC] + ): DomainConnection! + + """Reads and enables pagination through a set of `SiteMetadatum`.""" + siteMetadata( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: SiteMetadatumCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: SiteMetadatumFilter + + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteMetadatumConnection! + + """Reads and enables pagination through a set of `SiteModule`.""" + siteModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: SiteModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: SiteModuleFilter + + """The method to use when ordering `SiteModule`.""" + orderBy: [SiteModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteModuleConnection! + + """Reads and enables pagination through a set of `SiteTheme`.""" + siteThemes( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: SiteThemeCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: SiteThemeFilter + + """The method to use when ordering `SiteTheme`.""" + orderBy: [SiteThemeOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteThemeConnection! + + """ + Reads and enables pagination through a set of `ConnectedAccountsModule`. + """ + connectedAccountsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ConnectedAccountsModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ConnectedAccountsModuleFilter + + """The method to use when ordering `ConnectedAccountsModule`.""" + orderBy: [ConnectedAccountsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ConnectedAccountsModuleConnection! + + """Reads and enables pagination through a set of `CryptoAddressesModule`.""" + cryptoAddressesModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: CryptoAddressesModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: CryptoAddressesModuleFilter + + """The method to use when ordering `CryptoAddressesModule`.""" + orderBy: [CryptoAddressesModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): CryptoAddressesModuleConnection! + + """Reads and enables pagination through a set of `CryptoAuthModule`.""" + cryptoAuthModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: CryptoAuthModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: CryptoAuthModuleFilter + + """The method to use when ordering `CryptoAuthModule`.""" + orderBy: [CryptoAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): CryptoAuthModuleConnection! + + """Reads and enables pagination through a set of `DefaultIdsModule`.""" + defaultIdsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: DefaultIdsModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: DefaultIdsModuleFilter + + """The method to use when ordering `DefaultIdsModule`.""" + orderBy: [DefaultIdsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): DefaultIdsModuleConnection! + + """ + Reads and enables pagination through a set of `DenormalizedTableField`. + """ + denormalizedTableFields( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: DenormalizedTableFieldCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: DenormalizedTableFieldFilter + + """The method to use when ordering `DenormalizedTableField`.""" + orderBy: [DenormalizedTableFieldOrderBy!] = [PRIMARY_KEY_ASC] + ): DenormalizedTableFieldConnection! + + """Reads and enables pagination through a set of `EmailsModule`.""" + emailsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: EmailsModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: EmailsModuleFilter + + """The method to use when ordering `EmailsModule`.""" + orderBy: [EmailsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): EmailsModuleConnection! + + """ + Reads and enables pagination through a set of `EncryptedSecretsModule`. + """ + encryptedSecretsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: EncryptedSecretsModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: EncryptedSecretsModuleFilter + + """The method to use when ordering `EncryptedSecretsModule`.""" + orderBy: [EncryptedSecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): EncryptedSecretsModuleConnection! + + """Reads and enables pagination through a set of `FieldModule`.""" + fieldModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: FieldModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: FieldModuleFilter + + """The method to use when ordering `FieldModule`.""" + orderBy: [FieldModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): FieldModuleConnection! + + """Reads and enables pagination through a set of `TableModule`.""" + tableModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: TableModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: TableModuleFilter + + """The method to use when ordering `TableModule`.""" + orderBy: [TableModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): TableModuleConnection! + + """Reads and enables pagination through a set of `InvitesModule`.""" + invitesModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: InvitesModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: InvitesModuleFilter + + """The method to use when ordering `InvitesModule`.""" + orderBy: [InvitesModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): InvitesModuleConnection! + + """Reads and enables pagination through a set of `LevelsModule`.""" + levelsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: LevelsModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: LevelsModuleFilter + + """The method to use when ordering `LevelsModule`.""" + orderBy: [LevelsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): LevelsModuleConnection! + + """Reads and enables pagination through a set of `LimitsModule`.""" + limitsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: LimitsModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: LimitsModuleFilter + + """The method to use when ordering `LimitsModule`.""" + orderBy: [LimitsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): LimitsModuleConnection! + + """Reads and enables pagination through a set of `MembershipTypesModule`.""" + membershipTypesModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: MembershipTypesModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: MembershipTypesModuleFilter + + """The method to use when ordering `MembershipTypesModule`.""" + orderBy: [MembershipTypesModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): MembershipTypesModuleConnection! + + """Reads and enables pagination through a set of `MembershipsModule`.""" + membershipsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: MembershipsModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: MembershipsModuleFilter + + """The method to use when ordering `MembershipsModule`.""" + orderBy: [MembershipsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): MembershipsModuleConnection! + + """Reads and enables pagination through a set of `PermissionsModule`.""" + permissionsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: PermissionsModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: PermissionsModuleFilter + + """The method to use when ordering `PermissionsModule`.""" + orderBy: [PermissionsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): PermissionsModuleConnection! + + """Reads and enables pagination through a set of `PhoneNumbersModule`.""" + phoneNumbersModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: PhoneNumbersModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: PhoneNumbersModuleFilter + + """The method to use when ordering `PhoneNumbersModule`.""" + orderBy: [PhoneNumbersModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): PhoneNumbersModuleConnection! + + """Reads and enables pagination through a set of `ProfilesModule`.""" + profilesModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ProfilesModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ProfilesModuleFilter + + """The method to use when ordering `ProfilesModule`.""" + orderBy: [ProfilesModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ProfilesModuleConnection! + + """Reads and enables pagination through a set of `RlsModule`.""" + rlsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: RlsModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: RlsModuleFilter + + """The method to use when ordering `RlsModule`.""" + orderBy: [RlsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): RlsModuleConnection! + + """Reads and enables pagination through a set of `SecretsModule`.""" + secretsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: SecretsModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: SecretsModuleFilter + + """The method to use when ordering `SecretsModule`.""" + orderBy: [SecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): SecretsModuleConnection! + + """Reads and enables pagination through a set of `SessionsModule`.""" + sessionsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: SessionsModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: SessionsModuleFilter + + """The method to use when ordering `SessionsModule`.""" + orderBy: [SessionsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): SessionsModuleConnection! + + """Reads and enables pagination through a set of `UserAuthModule`.""" + userAuthModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: UserAuthModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: UserAuthModuleFilter + + """The method to use when ordering `UserAuthModule`.""" + orderBy: [UserAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): UserAuthModuleConnection! + + """Reads and enables pagination through a set of `UsersModule`.""" + usersModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: UsersModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: UsersModuleFilter + + """The method to use when ordering `UsersModule`.""" + orderBy: [UsersModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): UsersModuleConnection! + + """Reads and enables pagination through a set of `UuidModule`.""" + uuidModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: UuidModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: UuidModuleFilter + + """The method to use when ordering `UuidModule`.""" + orderBy: [UuidModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): UuidModuleConnection! + + """Reads a single `HierarchyModule` that is related to this `Database`.""" + hierarchyModule: HierarchyModule + + """Reads and enables pagination through a set of `TableTemplateModule`.""" + tableTemplateModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: TableTemplateModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: TableTemplateModuleFilter + + """The method to use when ordering `TableTemplateModule`.""" + orderBy: [TableTemplateModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): TableTemplateModuleConnection! + + """ + Reads and enables pagination through a set of `DatabaseProvisionModule`. + """ + databaseProvisionModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: DatabaseProvisionModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: DatabaseProvisionModuleFilter + + """The method to use when ordering `DatabaseProvisionModule`.""" + orderBy: [DatabaseProvisionModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseProvisionModuleConnection! +} + +"""A connection to a list of `Schema` values.""" +type SchemaConnection { + """A list of `Schema` objects.""" + nodes: [Schema]! + + """ + A list of edges which contains the `Schema` and cursor to aid in pagination. + """ + edges: [SchemaEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Schema` you could get from the connection.""" + totalCount: Int! +} + +type Schema { + id: UUID! + databaseId: UUID! + name: String! + schemaName: String! + label: String + description: String + smartTags: JSON + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + isPublic: Boolean! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `Schema`.""" + database: Database + + """Reads and enables pagination through a set of `Table`.""" + tables( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: TableCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: TableFilter + + """The method to use when ordering `Table`.""" + orderBy: [TableOrderBy!] = [PRIMARY_KEY_ASC] + ): TableConnection! + + """Reads and enables pagination through a set of `SchemaGrant`.""" + schemaGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: SchemaGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: SchemaGrantFilter + + """The method to use when ordering `SchemaGrant`.""" + orderBy: [SchemaGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): SchemaGrantConnection! + + """Reads and enables pagination through a set of `View`.""" + views( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ViewCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ViewFilter + + """The method to use when ordering `View`.""" + orderBy: [ViewOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewConnection! + + """Reads and enables pagination through a set of `ApiSchema`.""" + apiSchemas( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ApiSchemaCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ApiSchemaFilter + + """The method to use when ordering `ApiSchema`.""" + orderBy: [ApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiSchemaConnection! + + """Reads and enables pagination through a set of `TableTemplateModule`.""" + tableTemplateModulesByPrivateSchemaId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: TableTemplateModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: TableTemplateModuleFilter + + """The method to use when ordering `TableTemplateModule`.""" + orderBy: [TableTemplateModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): TableTemplateModuleConnection! + + """Reads and enables pagination through a set of `TableTemplateModule`.""" + tableTemplateModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: TableTemplateModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: TableTemplateModuleFilter + + """The method to use when ordering `TableTemplateModule`.""" + orderBy: [TableTemplateModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): TableTemplateModuleConnection! +} + +enum ObjectCategory { + CORE + MODULE + APP +} + +"""A connection to a list of `Table` values.""" +type TableConnection { + """A list of `Table` objects.""" + nodes: [Table]! + + """ + A list of edges which contains the `Table` and cursor to aid in pagination. + """ + edges: [TableEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Table` you could get from the connection.""" + totalCount: Int! +} + +type Table { + id: UUID! + databaseId: UUID! + schemaId: UUID! + name: String! + label: String + description: String + smartTags: JSON + category: ObjectCategory! + module: String + scope: Int + useRls: Boolean! + timestamps: Boolean! + peoplestamps: Boolean! + pluralName: String + singularName: String + tags: [String]! + inheritsId: UUID + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `Table`.""" + database: Database + + """Reads a single `Schema` that is related to this `Table`.""" + schema: Schema + + """Reads a single `Table` that is related to this `Table`.""" + inherits: Table + + """Reads and enables pagination through a set of `CheckConstraint`.""" + checkConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: CheckConstraintCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: CheckConstraintFilter + + """The method to use when ordering `CheckConstraint`.""" + orderBy: [CheckConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): CheckConstraintConnection! + + """Reads and enables pagination through a set of `Field`.""" + fields( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: FieldCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: FieldFilter + + """The method to use when ordering `Field`.""" + orderBy: [FieldOrderBy!] = [PRIMARY_KEY_ASC] + ): FieldConnection! + + """Reads and enables pagination through a set of `ForeignKeyConstraint`.""" + foreignKeyConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ForeignKeyConstraintCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ForeignKeyConstraintFilter + + """The method to use when ordering `ForeignKeyConstraint`.""" + orderBy: [ForeignKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): ForeignKeyConstraintConnection! + + """Reads and enables pagination through a set of `FullTextSearch`.""" + fullTextSearches( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: FullTextSearchCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: FullTextSearchFilter + + """The method to use when ordering `FullTextSearch`.""" + orderBy: [FullTextSearchOrderBy!] = [PRIMARY_KEY_ASC] + ): FullTextSearchConnection! + + """Reads and enables pagination through a set of `Index`.""" + indices( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: IndexCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: IndexFilter + + """The method to use when ordering `Index`.""" + orderBy: [IndexOrderBy!] = [PRIMARY_KEY_ASC] + ): IndexConnection! + + """Reads and enables pagination through a set of `LimitFunction`.""" + limitFunctions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: LimitFunctionCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: LimitFunctionFilter + + """The method to use when ordering `LimitFunction`.""" + orderBy: [LimitFunctionOrderBy!] = [PRIMARY_KEY_ASC] + ): LimitFunctionConnection! + + """Reads and enables pagination through a set of `Policy`.""" + policies( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: PolicyCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: PolicyFilter + + """The method to use when ordering `Policy`.""" + orderBy: [PolicyOrderBy!] = [PRIMARY_KEY_ASC] + ): PolicyConnection! + + """Reads and enables pagination through a set of `PrimaryKeyConstraint`.""" + primaryKeyConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: PrimaryKeyConstraintCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: PrimaryKeyConstraintFilter + + """The method to use when ordering `PrimaryKeyConstraint`.""" + orderBy: [PrimaryKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): PrimaryKeyConstraintConnection! + + """Reads and enables pagination through a set of `TableGrant`.""" + tableGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: TableGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: TableGrantFilter + + """The method to use when ordering `TableGrant`.""" + orderBy: [TableGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): TableGrantConnection! + + """Reads and enables pagination through a set of `Trigger`.""" + triggers( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: TriggerCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: TriggerFilter + + """The method to use when ordering `Trigger`.""" + orderBy: [TriggerOrderBy!] = [PRIMARY_KEY_ASC] + ): TriggerConnection! + + """Reads and enables pagination through a set of `UniqueConstraint`.""" + uniqueConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: UniqueConstraintCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: UniqueConstraintFilter + + """The method to use when ordering `UniqueConstraint`.""" + orderBy: [UniqueConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): UniqueConstraintConnection! + + """Reads and enables pagination through a set of `View`.""" + views( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ViewCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ViewFilter + + """The method to use when ordering `View`.""" + orderBy: [ViewOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewConnection! + + """Reads and enables pagination through a set of `ViewTable`.""" + viewTables( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ViewTableCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ViewTableFilter + + """The method to use when ordering `ViewTable`.""" + orderBy: [ViewTableOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewTableConnection! + + """Reads and enables pagination through a set of `TableModule`.""" + tableModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: TableModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: TableModuleFilter + + """The method to use when ordering `TableModule`.""" + orderBy: [TableModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): TableModuleConnection! + + """Reads and enables pagination through a set of `TableTemplateModule`.""" + tableTemplateModulesByOwnerTableId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: TableTemplateModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: TableTemplateModuleFilter + + """The method to use when ordering `TableTemplateModule`.""" + orderBy: [TableTemplateModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): TableTemplateModuleConnection! + + """Reads and enables pagination through a set of `TableTemplateModule`.""" + tableTemplateModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: TableTemplateModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: TableTemplateModuleFilter + + """The method to use when ordering `TableTemplateModule`.""" + orderBy: [TableTemplateModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): TableTemplateModuleConnection! +} + +"""A connection to a list of `CheckConstraint` values.""" +type CheckConstraintConnection { + """A list of `CheckConstraint` objects.""" + nodes: [CheckConstraint]! + + """ + A list of edges which contains the `CheckConstraint` and cursor to aid in pagination. + """ + edges: [CheckConstraintEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `CheckConstraint` you could get from the connection. + """ + totalCount: Int! +} + +type CheckConstraint { + id: UUID! + databaseId: UUID! + tableId: UUID! + name: String + type: String + fieldIds: [UUID]! + expr: JSON + smartTags: JSON + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `CheckConstraint`.""" + database: Database + + """Reads a single `Table` that is related to this `CheckConstraint`.""" + table: Table +} + +"""A `CheckConstraint` edge in the connection.""" +type CheckConstraintEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `CheckConstraint` at the end of the edge.""" + node: CheckConstraint +} + +""" +A condition to be used against `CheckConstraint` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input CheckConstraintCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """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: [UUID] + + """Checks for equality with the object’s `expr` field.""" + expr: JSON + + """Checks for equality with the object’s `smartTags` field.""" + smartTags: JSON + + """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: Int + + """Checks for equality with the object’s `tags` field.""" + tags: [String] + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `CheckConstraint` object types. All fields are combined with a logical ‘and.’ +""" +input 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 UUID fields. All fields are combined with a logical ‘and.’ +""" +input UUIDFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: UUID + + """Not equal to the specified value.""" + notEqualTo: UUID + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: UUID + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: UUID + + """Included in the specified list.""" + in: [UUID!] + + """Not included in the specified list.""" + notIn: [UUID!] + + """Less than the specified value.""" + lessThan: UUID + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: UUID + + """Greater than the specified value.""" + greaterThan: UUID + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: UUID +} + +""" +A filter to be used against String fields. All fields are combined with a logical ‘and.’ +""" +input StringFilter { + """ + 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: String + + """Does not contain the specified string (case-insensitive).""" + notIncludesInsensitive: String + + """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: String + + """Does not start with the specified string (case-insensitive).""" + notStartsWithInsensitive: String + + """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: String + + """Does not end with the specified string (case-insensitive).""" + notEndsWithInsensitive: String + + """ + 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: String + + """ + 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: String + + """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 filter to be used against UUID List fields. All fields are combined with a logical ‘and.’ +""" +input UUIDListFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: [UUID] + + """Not equal to the specified value.""" + notEqualTo: [UUID] + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: [UUID] + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: [UUID] + + """Less than the specified value.""" + lessThan: [UUID] + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: [UUID] + + """Greater than the specified value.""" + greaterThan: [UUID] + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: [UUID] + + """Contains the specified list of values.""" + contains: [UUID] + + """Contained by the specified list of values.""" + containedBy: [UUID] + + """Overlaps the specified list of values.""" + overlaps: [UUID] + + """Any array item is equal to the specified value.""" + anyEqualTo: UUID + + """Any array item is not equal to the specified value.""" + anyNotEqualTo: UUID + + """Any array item is less than the specified value.""" + anyLessThan: UUID + + """Any array item is less than or equal to the specified value.""" + anyLessThanOrEqualTo: UUID + + """Any array item is greater than the specified value.""" + anyGreaterThan: UUID + + """Any array item is greater than or equal to the specified value.""" + anyGreaterThanOrEqualTo: UUID +} + +""" +A filter to be used against JSON fields. All fields are combined with a logical ‘and.’ +""" +input JSONFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: JSON + + """Not equal to the specified value.""" + notEqualTo: JSON + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: JSON + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: JSON + + """Included in the specified list.""" + in: [JSON!] + + """Not included in the specified list.""" + notIn: [JSON!] + + """Less than the specified value.""" + lessThan: JSON + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: JSON + + """Greater than the specified value.""" + greaterThan: JSON + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: JSON + + """Contains the specified JSON.""" + contains: JSON + + """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: JSON +} + +""" +A filter to be used against ObjectCategory fields. All fields are combined with a logical ‘and.’ +""" +input 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 filter to be used against Int fields. All fields are combined with a logical ‘and.’ +""" +input IntFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: Int + + """Not equal to the specified value.""" + notEqualTo: Int + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Int + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Int + + """Included in the specified list.""" + in: [Int!] + + """Not included in the specified list.""" + notIn: [Int!] + + """Less than the specified value.""" + lessThan: Int + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Int + + """Greater than the specified value.""" + greaterThan: Int + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Int +} + +""" +A filter to be used against String List fields. All fields are combined with a logical ‘and.’ +""" +input StringListFilter { + """ + 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] + + """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 list of values.""" + contains: [String] + + """Contained by the specified list of values.""" + containedBy: [String] + + """Overlaps the specified list of values.""" + overlaps: [String] + + """Any array item is equal to the specified value.""" + anyEqualTo: String + + """Any array item is not equal to the specified value.""" + anyNotEqualTo: String + + """Any array item is less than the specified value.""" + anyLessThan: String + + """Any array item is less than or equal to the specified value.""" + anyLessThanOrEqualTo: String + + """Any array item is greater than the specified value.""" + anyGreaterThan: String + + """Any array item is greater than or equal to the specified value.""" + anyGreaterThanOrEqualTo: String +} + +""" +A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ +""" +input DatetimeFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: Datetime + + """Not equal to the specified value.""" + notEqualTo: Datetime + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Datetime + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Datetime + + """Included in the specified list.""" + in: [Datetime!] + + """Not included in the specified list.""" + notIn: [Datetime!] + + """Less than the specified value.""" + lessThan: Datetime + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Datetime + + """Greater than the specified value.""" + greaterThan: Datetime + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Datetime +} + +"""Methods to use when ordering `CheckConstraint`.""" +enum 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 +} + +"""A connection to a list of `Field` values.""" +type FieldConnection { + """A list of `Field` objects.""" + nodes: [Field]! + + """ + A list of edges which contains the `Field` and cursor to aid in pagination. + """ + edges: [FieldEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Field` you could get from the connection.""" + totalCount: Int! +} + +type Field { + id: UUID! + databaseId: UUID! + tableId: UUID! + name: String! + label: String + description: String + smartTags: JSON + isRequired: Boolean! + defaultValue: String + defaultValueAst: JSON + isHidden: Boolean! + type: String! + fieldOrder: Int! + regexp: String + chk: JSON + chkExpr: JSON + min: Float + max: Float + tags: [String]! + category: ObjectCategory! + module: String + scope: Int + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `Field`.""" + database: Database + + """Reads a single `Table` that is related to this `Field`.""" + table: Table +} + +"""A `Field` edge in the connection.""" +type FieldEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Field` at the end of the edge.""" + node: Field +} + +""" +A condition to be used against `Field` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input FieldCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """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: JSON + + """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: JSON + + """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: Int + + """Checks for equality with the object’s `regexp` field.""" + regexp: String + + """Checks for equality with the object’s `chk` field.""" + chk: JSON + + """Checks for equality with the object’s `chkExpr` field.""" + chkExpr: JSON + + """Checks for equality with the object’s `min` field.""" + min: Float + + """Checks for equality with the object’s `max` field.""" + max: Float + + """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: Int + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `Field` object types. All fields are combined with a logical ‘and.’ +""" +input 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 filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ +""" +input BooleanFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: Boolean + + """Not equal to the specified value.""" + notEqualTo: Boolean + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Boolean + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Boolean + + """Included in the specified list.""" + in: [Boolean!] + + """Not included in the specified list.""" + notIn: [Boolean!] + + """Less than the specified value.""" + lessThan: Boolean + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Boolean + + """Greater than the specified value.""" + greaterThan: Boolean + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Boolean +} + +""" +A filter to be used against Float fields. All fields are combined with a logical ‘and.’ +""" +input FloatFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: Float + + """Not equal to the specified value.""" + notEqualTo: Float + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Float + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Float + + """Included in the specified list.""" + in: [Float!] + + """Not included in the specified list.""" + notIn: [Float!] + + """Less than the specified value.""" + lessThan: Float + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Float + + """Greater than the specified value.""" + greaterThan: Float + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Float +} + +"""Methods to use when ordering `Field`.""" +enum 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 +} + +"""A connection to a list of `ForeignKeyConstraint` values.""" +type ForeignKeyConstraintConnection { + """A list of `ForeignKeyConstraint` objects.""" + nodes: [ForeignKeyConstraint]! + + """ + A list of edges which contains the `ForeignKeyConstraint` and cursor to aid in pagination. + """ + edges: [ForeignKeyConstraintEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `ForeignKeyConstraint` you could get from the connection. + """ + totalCount: Int! +} + +type ForeignKeyConstraint { + id: UUID! + databaseId: UUID! + tableId: UUID! + name: String + description: String + smartTags: JSON + type: String + fieldIds: [UUID]! + refTableId: UUID! + refFieldIds: [UUID]! + deleteAction: String + updateAction: String + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + createdAt: Datetime + updatedAt: Datetime + + """ + Reads a single `Database` that is related to this `ForeignKeyConstraint`. + """ + database: Database + + """Reads a single `Table` that is related to this `ForeignKeyConstraint`.""" + refTable: Table + + """Reads a single `Table` that is related to this `ForeignKeyConstraint`.""" + table: Table +} + +"""A `ForeignKeyConstraint` edge in the connection.""" +type ForeignKeyConstraintEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ForeignKeyConstraint` at the end of the edge.""" + node: ForeignKeyConstraint +} + +""" +A condition to be used against `ForeignKeyConstraint` object types. All fields +are tested for equality and combined with a logical ‘and.’ +""" +input ForeignKeyConstraintCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """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: JSON + + """Checks for equality with the object’s `type` field.""" + type: String + + """Checks for equality with the object’s `fieldIds` field.""" + fieldIds: [UUID] + + """Checks for equality with the object’s `refTableId` field.""" + refTableId: UUID + + """Checks for equality with the object’s `refFieldIds` field.""" + refFieldIds: [UUID] + + """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: Int + + """Checks for equality with the object’s `tags` field.""" + tags: [String] + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `ForeignKeyConstraint`.""" +enum 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 +} + +"""A connection to a list of `FullTextSearch` values.""" +type FullTextSearchConnection { + """A list of `FullTextSearch` objects.""" + nodes: [FullTextSearch]! + + """ + A list of edges which contains the `FullTextSearch` and cursor to aid in pagination. + """ + edges: [FullTextSearchEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `FullTextSearch` you could get from the connection.""" + totalCount: Int! +} + +type FullTextSearch { + id: UUID! + databaseId: UUID! + tableId: UUID! + fieldId: UUID! + fieldIds: [UUID]! + weights: [String]! + langs: [String]! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `FullTextSearch`.""" + database: Database + + """Reads a single `Table` that is related to this `FullTextSearch`.""" + table: Table +} + +"""A `FullTextSearch` edge in the connection.""" +type FullTextSearchEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FullTextSearch` at the end of the edge.""" + node: FullTextSearch +} + +""" +A condition to be used against `FullTextSearch` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input FullTextSearchCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """Checks for equality with the object’s `fieldId` field.""" + fieldId: UUID + + """Checks for equality with the object’s `fieldIds` field.""" + fieldIds: [UUID] + + """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: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `FullTextSearch` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `FullTextSearch`.""" +enum 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 +} + +"""A connection to a list of `Index` values.""" +type IndexConnection { + """A list of `Index` objects.""" + nodes: [Index]! + + """ + A list of edges which contains the `Index` and cursor to aid in pagination. + """ + edges: [IndexEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Index` you could get from the connection.""" + totalCount: Int! +} + +type Index { + id: UUID! + databaseId: UUID! + tableId: UUID! + name: String! + fieldIds: [UUID] + includeFieldIds: [UUID] + accessMethod: String! + indexParams: JSON + whereClause: JSON + isUnique: Boolean! + smartTags: JSON + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `Index`.""" + database: Database + + """Reads a single `Table` that is related to this `Index`.""" + table: Table +} + +"""A `Index` edge in the connection.""" +type IndexEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Index` at the end of the edge.""" + node: Index +} + +""" +A condition to be used against `Index` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input IndexCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `fieldIds` field.""" + fieldIds: [UUID] + + """Checks for equality with the object’s `includeFieldIds` field.""" + includeFieldIds: [UUID] + + """Checks for equality with the object’s `accessMethod` field.""" + accessMethod: String + + """Checks for equality with the object’s `indexParams` field.""" + indexParams: JSON + + """Checks for equality with the object’s `whereClause` field.""" + whereClause: JSON + + """Checks for equality with the object’s `isUnique` field.""" + isUnique: Boolean + + """Checks for equality with the object’s `smartTags` field.""" + smartTags: JSON + + """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: Int + + """Checks for equality with the object’s `tags` field.""" + tags: [String] + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `Index` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `Index`.""" +enum 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 +} + +"""A connection to a list of `LimitFunction` values.""" +type LimitFunctionConnection { + """A list of `LimitFunction` objects.""" + nodes: [LimitFunction]! + + """ + A list of edges which contains the `LimitFunction` and cursor to aid in pagination. + """ + edges: [LimitFunctionEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `LimitFunction` you could get from the connection.""" + totalCount: Int! +} + +type LimitFunction { + id: UUID! + databaseId: UUID! + tableId: UUID! + name: String + label: String + description: String + data: JSON + security: Int + + """Reads a single `Database` that is related to this `LimitFunction`.""" + database: Database + + """Reads a single `Table` that is related to this `LimitFunction`.""" + table: Table +} + +"""A `LimitFunction` edge in the connection.""" +type LimitFunctionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `LimitFunction` at the end of the edge.""" + node: LimitFunction +} + +""" +A condition to be used against `LimitFunction` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input LimitFunctionCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """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: JSON + + """Checks for equality with the object’s `security` field.""" + security: Int +} + +""" +A filter to be used against `LimitFunction` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `LimitFunction`.""" +enum 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 +} + +"""A connection to a list of `Policy` values.""" +type PolicyConnection { + """A list of `Policy` objects.""" + nodes: [Policy]! + + """ + A list of edges which contains the `Policy` and cursor to aid in pagination. + """ + edges: [PolicyEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Policy` you could get from the connection.""" + totalCount: Int! +} + +type Policy { + id: UUID! + databaseId: UUID! + tableId: UUID! + name: String + roleName: String + privilege: String + permissive: Boolean + disabled: Boolean + policyType: String + data: JSON + smartTags: JSON + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `Policy`.""" + database: Database + + """Reads a single `Table` that is related to this `Policy`.""" + table: Table +} + +"""A `Policy` edge in the connection.""" +type PolicyEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Policy` at the end of the edge.""" + node: Policy +} + +""" +A condition to be used against `Policy` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input PolicyCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """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: JSON + + """Checks for equality with the object’s `smartTags` field.""" + smartTags: JSON + + """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: Int + + """Checks for equality with the object’s `tags` field.""" + tags: [String] + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `Policy` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `Policy`.""" +enum 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 +} + +"""A connection to a list of `PrimaryKeyConstraint` values.""" +type PrimaryKeyConstraintConnection { + """A list of `PrimaryKeyConstraint` objects.""" + nodes: [PrimaryKeyConstraint]! + + """ + A list of edges which contains the `PrimaryKeyConstraint` and cursor to aid in pagination. + """ + edges: [PrimaryKeyConstraintEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PrimaryKeyConstraint` you could get from the connection. + """ + totalCount: Int! +} + +type PrimaryKeyConstraint { + id: UUID! + databaseId: UUID! + tableId: UUID! + name: String + type: String + fieldIds: [UUID]! + smartTags: JSON + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + createdAt: Datetime + updatedAt: Datetime + + """ + Reads a single `Database` that is related to this `PrimaryKeyConstraint`. + """ + database: Database + + """Reads a single `Table` that is related to this `PrimaryKeyConstraint`.""" + table: Table +} + +"""A `PrimaryKeyConstraint` edge in the connection.""" +type PrimaryKeyConstraintEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PrimaryKeyConstraint` at the end of the edge.""" + node: PrimaryKeyConstraint +} + +""" +A condition to be used against `PrimaryKeyConstraint` object types. All fields +are tested for equality and combined with a logical ‘and.’ +""" +input PrimaryKeyConstraintCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """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: [UUID] + + """Checks for equality with the object’s `smartTags` field.""" + smartTags: JSON + + """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: Int + + """Checks for equality with the object’s `tags` field.""" + tags: [String] + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `PrimaryKeyConstraint`.""" +enum 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 +} + +"""A connection to a list of `TableGrant` values.""" +type TableGrantConnection { + """A list of `TableGrant` objects.""" + nodes: [TableGrant]! + + """ + A list of edges which contains the `TableGrant` and cursor to aid in pagination. + """ + edges: [TableGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `TableGrant` you could get from the connection.""" + totalCount: Int! +} + +type TableGrant { + id: UUID! + databaseId: UUID! + tableId: UUID! + privilege: String! + roleName: String! + fieldIds: [UUID] + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `TableGrant`.""" + database: Database + + """Reads a single `Table` that is related to this `TableGrant`.""" + table: Table +} + +"""A `TableGrant` edge in the connection.""" +type TableGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `TableGrant` at the end of the edge.""" + node: TableGrant +} + +""" +A condition to be used against `TableGrant` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input TableGrantCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """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: [UUID] + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `TableGrant` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `TableGrant`.""" +enum 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 +} + +"""A connection to a list of `Trigger` values.""" +type TriggerConnection { + """A list of `Trigger` objects.""" + nodes: [Trigger]! + + """ + A list of edges which contains the `Trigger` and cursor to aid in pagination. + """ + edges: [TriggerEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Trigger` you could get from the connection.""" + totalCount: Int! +} + +type Trigger { + id: UUID! + databaseId: UUID! + tableId: UUID! + name: String! + event: String + functionName: String + smartTags: JSON + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `Trigger`.""" + database: Database + + """Reads a single `Table` that is related to this `Trigger`.""" + table: Table +} + +"""A `Trigger` edge in the connection.""" +type TriggerEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Trigger` at the end of the edge.""" + node: Trigger +} + +""" +A condition to be used against `Trigger` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input TriggerCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """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: JSON + + """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: Int + + """Checks for equality with the object’s `tags` field.""" + tags: [String] + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `Trigger` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `Trigger`.""" +enum 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 +} + +"""A connection to a list of `UniqueConstraint` values.""" +type UniqueConstraintConnection { + """A list of `UniqueConstraint` objects.""" + nodes: [UniqueConstraint]! + + """ + A list of edges which contains the `UniqueConstraint` and cursor to aid in pagination. + """ + edges: [UniqueConstraintEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `UniqueConstraint` you could get from the connection. + """ + totalCount: Int! +} + +type UniqueConstraint { + id: UUID! + databaseId: UUID! + tableId: UUID! + name: String + description: String + smartTags: JSON + type: String + fieldIds: [UUID]! + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `UniqueConstraint`.""" + database: Database + + """Reads a single `Table` that is related to this `UniqueConstraint`.""" + table: Table +} + +"""A `UniqueConstraint` edge in the connection.""" +type UniqueConstraintEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `UniqueConstraint` at the end of the edge.""" + node: UniqueConstraint +} + +""" +A condition to be used against `UniqueConstraint` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input UniqueConstraintCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """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: JSON + + """Checks for equality with the object’s `type` field.""" + type: String + + """Checks for equality with the object’s `fieldIds` field.""" + fieldIds: [UUID] + + """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: Int + + """Checks for equality with the object’s `tags` field.""" + tags: [String] + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `UniqueConstraint`.""" +enum 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 +} + +"""A connection to a list of `View` values.""" +type ViewConnection { + """A list of `View` objects.""" + nodes: [View]! + + """ + A list of edges which contains the `View` and cursor to aid in pagination. + """ + edges: [ViewEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `View` you could get from the connection.""" + totalCount: Int! +} + +type View { + id: UUID! + databaseId: UUID! + schemaId: UUID! + name: String! + tableId: UUID + viewType: String! + data: JSON + filterType: String + filterData: JSON + securityInvoker: Boolean + isReadOnly: Boolean + smartTags: JSON + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + + """Reads a single `Database` that is related to this `View`.""" + database: Database + + """Reads a single `Schema` that is related to this `View`.""" + schema: Schema + + """Reads a single `Table` that is related to this `View`.""" + table: Table + + """Reads and enables pagination through a set of `ViewTable`.""" + viewTables( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ViewTableCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ViewTableFilter + + """The method to use when ordering `ViewTable`.""" + orderBy: [ViewTableOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewTableConnection! + + """Reads and enables pagination through a set of `ViewGrant`.""" + viewGrants( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ViewGrantCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ViewGrantFilter + + """The method to use when ordering `ViewGrant`.""" + orderBy: [ViewGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewGrantConnection! + + """Reads and enables pagination through a set of `ViewRule`.""" + viewRules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ViewRuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ViewRuleFilter + + """The method to use when ordering `ViewRule`.""" + orderBy: [ViewRuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewRuleConnection! +} + +"""A connection to a list of `ViewTable` values.""" +type ViewTableConnection { + """A list of `ViewTable` objects.""" + nodes: [ViewTable]! + + """ + A list of edges which contains the `ViewTable` and cursor to aid in pagination. + """ + edges: [ViewTableEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ViewTable` you could get from the connection.""" + totalCount: Int! +} + +""" +Junction table linking views to their joined tables for referential integrity +""" +type ViewTable { + id: UUID! + viewId: UUID! + tableId: UUID! + joinOrder: Int! + + """Reads a single `Table` that is related to this `ViewTable`.""" + table: Table + + """Reads a single `View` that is related to this `ViewTable`.""" + view: View +} + +"""A `ViewTable` edge in the connection.""" +type ViewTableEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ViewTable` at the end of the edge.""" + node: ViewTable +} + +""" +A condition to be used against `ViewTable` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input ViewTableCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `viewId` field.""" + viewId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """Checks for equality with the object’s `joinOrder` field.""" + joinOrder: Int +} + +""" +A filter to be used against `ViewTable` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `ViewTable`.""" +enum ViewTableOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + VIEW_ID_ASC + VIEW_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC +} + +"""A connection to a list of `ViewGrant` values.""" +type ViewGrantConnection { + """A list of `ViewGrant` objects.""" + nodes: [ViewGrant]! + + """ + A list of edges which contains the `ViewGrant` and cursor to aid in pagination. + """ + edges: [ViewGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ViewGrant` you could get from the connection.""" + totalCount: Int! +} + +type ViewGrant { + id: UUID! + databaseId: UUID! + viewId: UUID! + roleName: String! + privilege: String! + withGrantOption: Boolean + + """Reads a single `Database` that is related to this `ViewGrant`.""" + database: Database + + """Reads a single `View` that is related to this `ViewGrant`.""" + view: View +} + +"""A `ViewGrant` edge in the connection.""" +type ViewGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ViewGrant` at the end of the edge.""" + node: ViewGrant +} + +""" +A condition to be used against `ViewGrant` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input ViewGrantCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `viewId` field.""" + viewId: UUID + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `ViewGrant`.""" +enum 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 +} + +"""A connection to a list of `ViewRule` values.""" +type ViewRuleConnection { + """A list of `ViewRule` objects.""" + nodes: [ViewRule]! + + """ + A list of edges which contains the `ViewRule` and cursor to aid in pagination. + """ + edges: [ViewRuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ViewRule` you could get from the connection.""" + totalCount: Int! +} + +"""DO INSTEAD rules for views (e.g., read-only enforcement)""" +type ViewRule { + id: UUID! + databaseId: UUID! + viewId: UUID! + name: String! + + """INSERT, UPDATE, or DELETE""" + event: String! + + """NOTHING (for read-only) or custom action""" + action: String! + + """Reads a single `Database` that is related to this `ViewRule`.""" + database: Database + + """Reads a single `View` that is related to this `ViewRule`.""" + view: View +} + +"""A `ViewRule` edge in the connection.""" +type ViewRuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ViewRule` at the end of the edge.""" + node: ViewRule +} + +""" +A condition to be used against `ViewRule` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input ViewRuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `viewId` field.""" + viewId: UUID + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `ViewRule`.""" +enum 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 +} + +"""A `View` edge in the connection.""" +type ViewEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `View` at the end of the edge.""" + node: View +} + +""" +A condition to be used against `View` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input ViewCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """Checks for equality with the object’s `viewType` field.""" + viewType: String + + """Checks for equality with the object’s `data` field.""" + data: JSON + + """Checks for equality with the object’s `filterType` field.""" + filterType: String + + """Checks for equality with the object’s `filterData` field.""" + filterData: JSON + + """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: JSON + + """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: Int + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `View`.""" +enum 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 +} + +"""A connection to a list of `TableModule` values.""" +type TableModuleConnection { + """A list of `TableModule` objects.""" + nodes: [TableModule]! + + """ + A list of edges which contains the `TableModule` and cursor to aid in pagination. + """ + edges: [TableModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `TableModule` you could get from the connection.""" + totalCount: Int! +} + +type TableModule { + id: UUID! + databaseId: UUID! + privateSchemaId: UUID! + tableId: UUID! + nodeType: String! + data: JSON! + fields: [UUID] + + """Reads a single `Database` that is related to this `TableModule`.""" + database: Database + + """Reads a single `Schema` that is related to this `TableModule`.""" + privateSchema: Schema + + """Reads a single `Table` that is related to this `TableModule`.""" + table: Table +} + +"""A `TableModule` edge in the connection.""" +type TableModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `TableModule` at the end of the edge.""" + node: TableModule +} + +""" +A condition to be used against `TableModule` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input TableModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `privateSchemaId` field.""" + privateSchemaId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """Checks for equality with the object’s `nodeType` field.""" + nodeType: String + + """Checks for equality with the object’s `data` field.""" + data: JSON + + """Checks for equality with the object’s `fields` field.""" + fields: [UUID] +} + +""" +A filter to be used against `TableModule` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `TableModule`.""" +enum 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 +} + +"""A connection to a list of `TableTemplateModule` values.""" +type TableTemplateModuleConnection { + """A list of `TableTemplateModule` objects.""" + nodes: [TableTemplateModule]! + + """ + A list of edges which contains the `TableTemplateModule` and cursor to aid in pagination. + """ + edges: [TableTemplateModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `TableTemplateModule` you could get from the connection. + """ + totalCount: Int! +} + +type TableTemplateModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + tableId: UUID! + ownerTableId: UUID! + tableName: String! + nodeType: String! + data: JSON! + + """ + Reads a single `Database` that is related to this `TableTemplateModule`. + """ + database: Database + + """Reads a single `Table` that is related to this `TableTemplateModule`.""" + ownerTable: Table + + """Reads a single `Schema` that is related to this `TableTemplateModule`.""" + privateSchema: Schema + + """Reads a single `Schema` that is related to this `TableTemplateModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `TableTemplateModule`.""" + table: Table +} + +"""A `TableTemplateModule` edge in the connection.""" +type TableTemplateModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `TableTemplateModule` at the end of the edge.""" + node: TableTemplateModule +} + +""" +A condition to be used against `TableTemplateModule` object types. All fields +are tested for equality and combined with a logical ‘and.’ +""" +input TableTemplateModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `privateSchemaId` field.""" + privateSchemaId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """Checks for equality with the object’s `ownerTableId` field.""" + ownerTableId: UUID + + """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: JSON +} + +""" +A filter to be used against `TableTemplateModule` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `TableTemplateModule`.""" +enum 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 +} + +"""A `Table` edge in the connection.""" +type TableEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Table` at the end of the edge.""" + node: Table +} + +""" +A condition to be used against `Table` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input TableCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """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: JSON + + """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: Int + + """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: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `Table` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `Table`.""" +enum 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 +} + +"""A connection to a list of `SchemaGrant` values.""" +type SchemaGrantConnection { + """A list of `SchemaGrant` objects.""" + nodes: [SchemaGrant]! + + """ + A list of edges which contains the `SchemaGrant` and cursor to aid in pagination. + """ + edges: [SchemaGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `SchemaGrant` you could get from the connection.""" + totalCount: Int! +} + +type SchemaGrant { + id: UUID! + databaseId: UUID! + schemaId: UUID! + granteeName: String! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `SchemaGrant`.""" + database: Database + + """Reads a single `Schema` that is related to this `SchemaGrant`.""" + schema: Schema +} + +"""A `SchemaGrant` edge in the connection.""" +type SchemaGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `SchemaGrant` at the end of the edge.""" + node: SchemaGrant +} + +""" +A condition to be used against `SchemaGrant` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input SchemaGrantCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `granteeName` field.""" + granteeName: String + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `SchemaGrant` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `SchemaGrant`.""" +enum 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 +} + +"""A connection to a list of `ApiSchema` values.""" +type ApiSchemaConnection { + """A list of `ApiSchema` objects.""" + nodes: [ApiSchema]! + + """ + A list of edges which contains the `ApiSchema` and cursor to aid in pagination. + """ + edges: [ApiSchemaEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ApiSchema` you could get from the connection.""" + totalCount: Int! +} + +type ApiSchema { + id: UUID! + databaseId: UUID! + schemaId: UUID! + apiId: UUID! + + """Reads a single `Api` that is related to this `ApiSchema`.""" + api: Api + + """Reads a single `Database` that is related to this `ApiSchema`.""" + database: Database + + """Reads a single `Schema` that is related to this `ApiSchema`.""" + schema: Schema +} + +type Api { + id: UUID! + databaseId: UUID! + name: String! + dbname: String! + roleName: String! + anonRole: String! + isPublic: Boolean! + + """Reads a single `Database` that is related to this `Api`.""" + database: Database + + """Reads and enables pagination through a set of `ApiModule`.""" + apiModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ApiModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ApiModuleFilter + + """The method to use when ordering `ApiModule`.""" + orderBy: [ApiModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiModuleConnection! + + """Reads and enables pagination through a set of `ApiSchema`.""" + apiSchemas( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: ApiSchemaCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: ApiSchemaFilter + + """The method to use when ordering `ApiSchema`.""" + orderBy: [ApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiSchemaConnection! + + """Reads and enables pagination through a set of `Domain`.""" + domains( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: DomainCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: DomainFilter + + """The method to use when ordering `Domain`.""" + orderBy: [DomainOrderBy!] = [PRIMARY_KEY_ASC] + ): DomainConnection! + + """Reads a single `RlsModule` that is related to this `Api`.""" + rlsModule: RlsModule +} + +"""A connection to a list of `ApiModule` values.""" +type ApiModuleConnection { + """A list of `ApiModule` objects.""" + nodes: [ApiModule]! + + """ + A list of edges which contains the `ApiModule` and cursor to aid in pagination. + """ + edges: [ApiModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ApiModule` you could get from the connection.""" + totalCount: Int! +} + +type ApiModule { + id: UUID! + databaseId: UUID! + apiId: UUID! + name: String! + data: JSON! + + """Reads a single `Api` that is related to this `ApiModule`.""" + api: Api + + """Reads a single `Database` that is related to this `ApiModule`.""" + database: Database +} + +"""A `ApiModule` edge in the connection.""" +type ApiModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ApiModule` at the end of the edge.""" + node: ApiModule +} + +""" +A condition to be used against `ApiModule` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input ApiModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `apiId` field.""" + apiId: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `data` field.""" + data: JSON +} + +""" +A filter to be used against `ApiModule` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `ApiModule`.""" +enum ApiModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + API_ID_ASC + API_ID_DESC +} + +""" +A condition to be used against `ApiSchema` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input ApiSchemaCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `apiId` field.""" + apiId: UUID +} + +""" +A filter to be used against `ApiSchema` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `ApiSchema`.""" +enum 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 +} + +"""A connection to a list of `Domain` values.""" +type DomainConnection { + """A list of `Domain` objects.""" + nodes: [Domain]! + + """ + A list of edges which contains the `Domain` and cursor to aid in pagination. + """ + edges: [DomainEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Domain` you could get from the connection.""" + totalCount: Int! +} + +type Domain { + id: UUID! + databaseId: UUID! + apiId: UUID + siteId: UUID + subdomain: ConstructiveInternalTypeHostname + domain: ConstructiveInternalTypeHostname + + """Reads a single `Api` that is related to this `Domain`.""" + api: Api + + """Reads a single `Database` that is related to this `Domain`.""" + database: Database + + """Reads a single `Site` that is related to this `Domain`.""" + site: Site +} + +scalar ConstructiveInternalTypeHostname + +type Site { + id: UUID! + databaseId: UUID! + title: String + description: String + ogImage: ConstructiveInternalTypeImage + favicon: ConstructiveInternalTypeAttachment + appleTouchIcon: ConstructiveInternalTypeImage + logo: ConstructiveInternalTypeImage + dbname: String! + + """Reads a single `Database` that is related to this `Site`.""" + database: Database + + """Reads a single `App` that is related to this `Site`.""" + app: App + + """Reads and enables pagination through a set of `Domain`.""" + domains( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: DomainCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: DomainFilter + + """The method to use when ordering `Domain`.""" + orderBy: [DomainOrderBy!] = [PRIMARY_KEY_ASC] + ): DomainConnection! + + """Reads and enables pagination through a set of `SiteMetadatum`.""" + siteMetadata( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: SiteMetadatumCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: SiteMetadatumFilter + + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteMetadatumConnection! + + """Reads and enables pagination through a set of `SiteModule`.""" + siteModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: SiteModuleCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: SiteModuleFilter + + """The method to use when ordering `SiteModule`.""" + orderBy: [SiteModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteModuleConnection! + + """Reads and enables pagination through a set of `SiteTheme`.""" + siteThemes( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A condition to be used in determining which values should be returned by the collection. + """ + condition: SiteThemeCondition + + """ + A filter to be used in determining which values should be returned by the collection. + """ + filter: SiteThemeFilter + + """The method to use when ordering `SiteTheme`.""" + orderBy: [SiteThemeOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteThemeConnection! +} + +scalar ConstructiveInternalTypeAttachment + +type App { + id: UUID! + databaseId: UUID! + siteId: UUID! + name: String + appImage: ConstructiveInternalTypeImage + appStoreLink: ConstructiveInternalTypeUrl + appStoreId: String + appIdPrefix: String + playStoreLink: ConstructiveInternalTypeUrl + + """Reads a single `Site` that is related to this `App`.""" + site: Site + + """Reads a single `Database` that is related to this `App`.""" + database: Database +} + +scalar ConstructiveInternalTypeUrl + +""" +A condition to be used against `Domain` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input DomainCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `apiId` field.""" + apiId: UUID + + """Checks for equality with the object’s `siteId` field.""" + siteId: UUID + + """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.’ +""" +input 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.’ +""" +input 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 +} + +"""Methods to use when ordering `Domain`.""" +enum 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 +} + +"""A connection to a list of `SiteMetadatum` values.""" +type SiteMetadatumConnection { + """A list of `SiteMetadatum` objects.""" + nodes: [SiteMetadatum]! + + """ + A list of edges which contains the `SiteMetadatum` and cursor to aid in pagination. + """ + edges: [SiteMetadatumEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `SiteMetadatum` you could get from the connection.""" + totalCount: Int! +} + +type SiteMetadatum { + id: UUID! + databaseId: UUID! + siteId: UUID! + title: String + description: String + ogImage: ConstructiveInternalTypeImage + + """Reads a single `Database` that is related to this `SiteMetadatum`.""" + database: Database + + """Reads a single `Site` that is related to this `SiteMetadatum`.""" + site: Site +} + +"""A `SiteMetadatum` edge in the connection.""" +type SiteMetadatumEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `SiteMetadatum` at the end of the edge.""" + node: SiteMetadatum +} + +""" +A condition to be used against `SiteMetadatum` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input SiteMetadatumCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `siteId` field.""" + siteId: UUID + + """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.’ +""" +input 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.’ +""" +input 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 +} + +"""Methods to use when ordering `SiteMetadatum`.""" +enum SiteMetadatumOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SITE_ID_ASC + SITE_ID_DESC +} + +"""A connection to a list of `SiteModule` values.""" +type SiteModuleConnection { + """A list of `SiteModule` objects.""" + nodes: [SiteModule]! + + """ + A list of edges which contains the `SiteModule` and cursor to aid in pagination. + """ + edges: [SiteModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `SiteModule` you could get from the connection.""" + totalCount: Int! +} + +type SiteModule { + id: UUID! + databaseId: UUID! + siteId: UUID! + name: String! + data: JSON! + + """Reads a single `Database` that is related to this `SiteModule`.""" + database: Database + + """Reads a single `Site` that is related to this `SiteModule`.""" + site: Site +} + +"""A `SiteModule` edge in the connection.""" +type SiteModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `SiteModule` at the end of the edge.""" + node: SiteModule +} + +""" +A condition to be used against `SiteModule` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input SiteModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `siteId` field.""" + siteId: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `data` field.""" + data: JSON +} + +""" +A filter to be used against `SiteModule` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `SiteModule`.""" +enum SiteModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SITE_ID_ASC + SITE_ID_DESC +} + +"""A connection to a list of `SiteTheme` values.""" +type SiteThemeConnection { + """A list of `SiteTheme` objects.""" + nodes: [SiteTheme]! + + """ + A list of edges which contains the `SiteTheme` and cursor to aid in pagination. + """ + edges: [SiteThemeEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `SiteTheme` you could get from the connection.""" + totalCount: Int! +} + +type SiteTheme { + id: UUID! + databaseId: UUID! + siteId: UUID! + theme: JSON! + + """Reads a single `Database` that is related to this `SiteTheme`.""" + database: Database + + """Reads a single `Site` that is related to this `SiteTheme`.""" + site: Site +} + +"""A `SiteTheme` edge in the connection.""" +type SiteThemeEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `SiteTheme` at the end of the edge.""" + node: SiteTheme +} + +""" +A condition to be used against `SiteTheme` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input SiteThemeCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `siteId` field.""" + siteId: UUID + + """Checks for equality with the object’s `theme` field.""" + theme: JSON +} + +""" +A filter to be used against `SiteTheme` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `SiteTheme`.""" +enum SiteThemeOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SITE_ID_ASC + SITE_ID_DESC +} + +"""A `Domain` edge in the connection.""" +type DomainEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Domain` at the end of the edge.""" + node: Domain +} + +type RlsModule { + id: UUID! + databaseId: UUID! + apiId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + sessionCredentialsTableId: UUID! + sessionsTableId: UUID! + usersTableId: UUID! + authenticate: String! + authenticateStrict: String! + currentRole: String! + currentRoleId: String! + + """Reads a single `Api` that is related to this `RlsModule`.""" + api: Api + + """Reads a single `Database` that is related to this `RlsModule`.""" + database: Database + + """Reads a single `Schema` that is related to this `RlsModule`.""" + privateSchema: Schema + + """Reads a single `Schema` that is related to this `RlsModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `RlsModule`.""" + sessionCredentialsTable: Table + + """Reads a single `Table` that is related to this `RlsModule`.""" + sessionsTable: Table + + """Reads a single `Table` that is related to this `RlsModule`.""" + usersTable: Table +} + +"""A `ApiSchema` edge in the connection.""" +type ApiSchemaEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ApiSchema` at the end of the edge.""" + node: ApiSchema +} + +"""A `Schema` edge in the connection.""" +type SchemaEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Schema` at the end of the edge.""" + node: Schema +} + +""" +A condition to be used against `Schema` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input SchemaCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """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: JSON + + """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: Int + + """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: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `Schema` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `Schema`.""" +enum 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 +} + +"""A connection to a list of `Procedure` values.""" +type ProcedureConnection { + """A list of `Procedure` objects.""" + nodes: [Procedure]! + + """ + A list of edges which contains the `Procedure` and cursor to aid in pagination. + """ + edges: [ProcedureEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Procedure` you could get from the connection.""" + totalCount: Int! +} + +type Procedure { + id: UUID! + databaseId: UUID! + name: String! + argnames: [String] + argtypes: [String] + argdefaults: [String] + langName: String + definition: String + smartTags: JSON + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `Procedure`.""" + database: Database +} + +"""A `Procedure` edge in the connection.""" +type ProcedureEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Procedure` at the end of the edge.""" + node: Procedure +} + +""" +A condition to be used against `Procedure` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input ProcedureCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """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: JSON + + """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: Int + + """Checks for equality with the object’s `tags` field.""" + tags: [String] + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `Procedure` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `Procedure`.""" +enum 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 +} + +"""A connection to a list of `TriggerFunction` values.""" +type TriggerFunctionConnection { + """A list of `TriggerFunction` objects.""" + nodes: [TriggerFunction]! + + """ + A list of edges which contains the `TriggerFunction` and cursor to aid in pagination. + """ + edges: [TriggerFunctionEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `TriggerFunction` you could get from the connection. + """ + totalCount: Int! +} + +type TriggerFunction { + id: UUID! + databaseId: UUID! + name: String! + code: String + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Database` that is related to this `TriggerFunction`.""" + database: Database +} + +"""A `TriggerFunction` edge in the connection.""" +type TriggerFunctionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `TriggerFunction` at the end of the edge.""" + node: TriggerFunction +} + +""" +A condition to be used against `TriggerFunction` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input TriggerFunctionCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """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: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `TriggerFunction` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `TriggerFunction`.""" +enum 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 +} + +"""A connection to a list of `Api` values.""" +type ApiConnection { + """A list of `Api` objects.""" + nodes: [Api]! + + """ + A list of edges which contains the `Api` and cursor to aid in pagination. + """ + edges: [ApiEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Api` you could get from the connection.""" + totalCount: Int! +} + +"""A `Api` edge in the connection.""" +type ApiEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Api` at the end of the edge.""" + node: Api +} + +""" +A condition to be used against `Api` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input ApiCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `Api`.""" +enum ApiOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + NAME_ASC + NAME_DESC +} + +"""A connection to a list of `Site` values.""" +type SiteConnection { + """A list of `Site` objects.""" + nodes: [Site]! + + """ + A list of edges which contains the `Site` and cursor to aid in pagination. + """ + edges: [SiteEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Site` you could get from the connection.""" + totalCount: Int! +} + +"""A `Site` edge in the connection.""" +type SiteEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Site` at the end of the edge.""" + node: Site +} + +""" +A condition to be used against `Site` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input SiteCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """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.’ +""" +input 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.’ +""" +input 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 +} + +"""Methods to use when ordering `Site`.""" +enum SiteOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `App` values.""" +type AppConnection { + """A list of `App` objects.""" + nodes: [App]! + + """ + A list of edges which contains the `App` and cursor to aid in pagination. + """ + edges: [AppEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `App` you could get from the connection.""" + totalCount: Int! +} + +"""A `App` edge in the connection.""" +type AppEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `App` at the end of the edge.""" + node: App +} + +""" +A condition to be used against `App` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input AppCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `siteId` field.""" + siteId: UUID + + """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.’ +""" +input 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.’ +""" +input 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 +} + +"""Methods to use when ordering `App`.""" +enum AppOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SITE_ID_ASC + SITE_ID_DESC +} + +"""A connection to a list of `ConnectedAccountsModule` values.""" +type ConnectedAccountsModuleConnection { + """A list of `ConnectedAccountsModule` objects.""" + nodes: [ConnectedAccountsModule]! + + """ + A list of edges which contains the `ConnectedAccountsModule` and cursor to aid in pagination. + """ + edges: [ConnectedAccountsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `ConnectedAccountsModule` you could get from the connection. + """ + totalCount: Int! +} + +type ConnectedAccountsModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + tableId: UUID! + ownerTableId: UUID! + tableName: String! + + """ + Reads a single `Database` that is related to this `ConnectedAccountsModule`. + """ + database: Database + + """ + Reads a single `Table` that is related to this `ConnectedAccountsModule`. + """ + ownerTable: Table + + """ + Reads a single `Schema` that is related to this `ConnectedAccountsModule`. + """ + privateSchema: Schema + + """ + Reads a single `Schema` that is related to this `ConnectedAccountsModule`. + """ + schema: Schema + + """ + Reads a single `Table` that is related to this `ConnectedAccountsModule`. + """ + table: Table +} + +"""A `ConnectedAccountsModule` edge in the connection.""" +type ConnectedAccountsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ConnectedAccountsModule` at the end of the edge.""" + node: ConnectedAccountsModule +} + +""" +A condition to be used against `ConnectedAccountsModule` object types. All +fields are tested for equality and combined with a logical ‘and.’ +""" +input ConnectedAccountsModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `privateSchemaId` field.""" + privateSchemaId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """Checks for equality with the object’s `ownerTableId` field.""" + ownerTableId: UUID + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `ConnectedAccountsModule`.""" +enum ConnectedAccountsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `CryptoAddressesModule` values.""" +type CryptoAddressesModuleConnection { + """A list of `CryptoAddressesModule` objects.""" + nodes: [CryptoAddressesModule]! + + """ + A list of edges which contains the `CryptoAddressesModule` and cursor to aid in pagination. + """ + edges: [CryptoAddressesModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `CryptoAddressesModule` you could get from the connection. + """ + totalCount: Int! +} + +type CryptoAddressesModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + tableId: UUID! + ownerTableId: UUID! + tableName: String! + cryptoNetwork: String! + + """ + Reads a single `Database` that is related to this `CryptoAddressesModule`. + """ + database: Database + + """ + Reads a single `Table` that is related to this `CryptoAddressesModule`. + """ + ownerTable: Table + + """ + Reads a single `Schema` that is related to this `CryptoAddressesModule`. + """ + privateSchema: Schema + + """ + Reads a single `Schema` that is related to this `CryptoAddressesModule`. + """ + schema: Schema + + """ + Reads a single `Table` that is related to this `CryptoAddressesModule`. + """ + table: Table +} + +"""A `CryptoAddressesModule` edge in the connection.""" +type CryptoAddressesModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `CryptoAddressesModule` at the end of the edge.""" + node: CryptoAddressesModule +} + +""" +A condition to be used against `CryptoAddressesModule` object types. All fields +are tested for equality and combined with a logical ‘and.’ +""" +input CryptoAddressesModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `privateSchemaId` field.""" + privateSchemaId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """Checks for equality with the object’s `ownerTableId` field.""" + ownerTableId: UUID + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `CryptoAddressesModule`.""" +enum CryptoAddressesModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `CryptoAuthModule` values.""" +type CryptoAuthModuleConnection { + """A list of `CryptoAuthModule` objects.""" + nodes: [CryptoAuthModule]! + + """ + A list of edges which contains the `CryptoAuthModule` and cursor to aid in pagination. + """ + edges: [CryptoAuthModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `CryptoAuthModule` you could get from the connection. + """ + totalCount: Int! +} + +type CryptoAuthModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + usersTableId: UUID! + secretsTableId: UUID! + sessionsTableId: UUID! + sessionCredentialsTableId: UUID! + addressesTableId: UUID! + userField: String! + cryptoNetwork: String! + signInRequestChallenge: String! + signInRecordFailure: String! + signUpWithKey: String! + signInWithChallenge: String! + + """Reads a single `Database` that is related to this `CryptoAuthModule`.""" + database: Database + + """Reads a single `Schema` that is related to this `CryptoAuthModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `CryptoAuthModule`.""" + secretsTable: Table + + """Reads a single `Table` that is related to this `CryptoAuthModule`.""" + sessionCredentialsTable: Table + + """Reads a single `Table` that is related to this `CryptoAuthModule`.""" + sessionsTable: Table + + """Reads a single `Table` that is related to this `CryptoAuthModule`.""" + usersTable: Table +} + +"""A `CryptoAuthModule` edge in the connection.""" +type CryptoAuthModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `CryptoAuthModule` at the end of the edge.""" + node: CryptoAuthModule +} + +""" +A condition to be used against `CryptoAuthModule` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input CryptoAuthModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `usersTableId` field.""" + usersTableId: UUID + + """Checks for equality with the object’s `secretsTableId` field.""" + secretsTableId: UUID + + """Checks for equality with the object’s `sessionsTableId` field.""" + sessionsTableId: UUID + + """ + Checks for equality with the object’s `sessionCredentialsTableId` field. + """ + sessionCredentialsTableId: UUID + + """Checks for equality with the object’s `addressesTableId` field.""" + addressesTableId: UUID + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `CryptoAuthModule`.""" +enum CryptoAuthModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `DefaultIdsModule` values.""" +type DefaultIdsModuleConnection { + """A list of `DefaultIdsModule` objects.""" + nodes: [DefaultIdsModule]! + + """ + A list of edges which contains the `DefaultIdsModule` and cursor to aid in pagination. + """ + edges: [DefaultIdsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `DefaultIdsModule` you could get from the connection. + """ + totalCount: Int! +} + +type DefaultIdsModule { + id: UUID! + databaseId: UUID! + + """Reads a single `Database` that is related to this `DefaultIdsModule`.""" + database: Database +} + +"""A `DefaultIdsModule` edge in the connection.""" +type DefaultIdsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `DefaultIdsModule` at the end of the edge.""" + node: DefaultIdsModule +} + +""" +A condition to be used against `DefaultIdsModule` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input DefaultIdsModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID +} + +""" +A filter to be used against `DefaultIdsModule` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `DefaultIdsModule`.""" +enum DefaultIdsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `DenormalizedTableField` values.""" +type DenormalizedTableFieldConnection { + """A list of `DenormalizedTableField` objects.""" + nodes: [DenormalizedTableField]! + + """ + A list of edges which contains the `DenormalizedTableField` and cursor to aid in pagination. + """ + edges: [DenormalizedTableFieldEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `DenormalizedTableField` you could get from the connection. + """ + totalCount: Int! +} + +type DenormalizedTableField { + id: UUID! + databaseId: UUID! + tableId: UUID! + fieldId: UUID! + setIds: [UUID] + refTableId: UUID! + refFieldId: UUID! + refIds: [UUID] + useUpdates: Boolean! + updateDefaults: Boolean! + funcName: String + funcOrder: Int! + + """ + Reads a single `Database` that is related to this `DenormalizedTableField`. + """ + database: Database + + """ + Reads a single `Field` that is related to this `DenormalizedTableField`. + """ + field: Field + + """ + Reads a single `Field` that is related to this `DenormalizedTableField`. + """ + refField: Field + + """ + Reads a single `Table` that is related to this `DenormalizedTableField`. + """ + refTable: Table + + """ + Reads a single `Table` that is related to this `DenormalizedTableField`. + """ + table: Table +} + +"""A `DenormalizedTableField` edge in the connection.""" +type DenormalizedTableFieldEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `DenormalizedTableField` at the end of the edge.""" + node: DenormalizedTableField +} + +""" +A condition to be used against `DenormalizedTableField` object types. All fields +are tested for equality and combined with a logical ‘and.’ +""" +input DenormalizedTableFieldCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """Checks for equality with the object’s `fieldId` field.""" + fieldId: UUID + + """Checks for equality with the object’s `setIds` field.""" + setIds: [UUID] + + """Checks for equality with the object’s `refTableId` field.""" + refTableId: UUID + + """Checks for equality with the object’s `refFieldId` field.""" + refFieldId: UUID + + """Checks for equality with the object’s `refIds` field.""" + refIds: [UUID] + + """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: Int +} + +""" +A filter to be used against `DenormalizedTableField` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `DenormalizedTableField`.""" +enum DenormalizedTableFieldOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `EmailsModule` values.""" +type EmailsModuleConnection { + """A list of `EmailsModule` objects.""" + nodes: [EmailsModule]! + + """ + A list of edges which contains the `EmailsModule` and cursor to aid in pagination. + """ + edges: [EmailsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `EmailsModule` you could get from the connection.""" + totalCount: Int! +} + +type EmailsModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + tableId: UUID! + ownerTableId: UUID! + tableName: String! + + """Reads a single `Database` that is related to this `EmailsModule`.""" + database: Database + + """Reads a single `Table` that is related to this `EmailsModule`.""" + ownerTable: Table + + """Reads a single `Schema` that is related to this `EmailsModule`.""" + privateSchema: Schema + + """Reads a single `Schema` that is related to this `EmailsModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `EmailsModule`.""" + table: Table +} + +"""A `EmailsModule` edge in the connection.""" +type EmailsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `EmailsModule` at the end of the edge.""" + node: EmailsModule +} + +""" +A condition to be used against `EmailsModule` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input EmailsModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `privateSchemaId` field.""" + privateSchemaId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """Checks for equality with the object’s `ownerTableId` field.""" + ownerTableId: UUID + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `EmailsModule`.""" +enum EmailsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `EncryptedSecretsModule` values.""" +type EncryptedSecretsModuleConnection { + """A list of `EncryptedSecretsModule` objects.""" + nodes: [EncryptedSecretsModule]! + + """ + A list of edges which contains the `EncryptedSecretsModule` and cursor to aid in pagination. + """ + edges: [EncryptedSecretsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `EncryptedSecretsModule` you could get from the connection. + """ + totalCount: Int! +} + +type EncryptedSecretsModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + tableId: UUID! + tableName: String! + + """ + Reads a single `Database` that is related to this `EncryptedSecretsModule`. + """ + database: Database + + """ + Reads a single `Schema` that is related to this `EncryptedSecretsModule`. + """ + schema: Schema + + """ + Reads a single `Table` that is related to this `EncryptedSecretsModule`. + """ + table: Table +} + +"""A `EncryptedSecretsModule` edge in the connection.""" +type EncryptedSecretsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `EncryptedSecretsModule` at the end of the edge.""" + node: EncryptedSecretsModule +} + +""" +A condition to be used against `EncryptedSecretsModule` object types. All fields +are tested for equality and combined with a logical ‘and.’ +""" +input EncryptedSecretsModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `EncryptedSecretsModule`.""" +enum EncryptedSecretsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `FieldModule` values.""" +type FieldModuleConnection { + """A list of `FieldModule` objects.""" + nodes: [FieldModule]! + + """ + A list of edges which contains the `FieldModule` and cursor to aid in pagination. + """ + edges: [FieldModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `FieldModule` you could get from the connection.""" + totalCount: Int! +} + +type FieldModule { + id: UUID! + databaseId: UUID! + privateSchemaId: UUID! + tableId: UUID! + fieldId: UUID! + nodeType: String! + data: JSON! + triggers: [String] + functions: [String] + + """Reads a single `Database` that is related to this `FieldModule`.""" + database: Database + + """Reads a single `Field` that is related to this `FieldModule`.""" + field: Field + + """Reads a single `Schema` that is related to this `FieldModule`.""" + privateSchema: Schema + + """Reads a single `Table` that is related to this `FieldModule`.""" + table: Table +} + +"""A `FieldModule` edge in the connection.""" +type FieldModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `FieldModule` at the end of the edge.""" + node: FieldModule +} + +""" +A condition to be used against `FieldModule` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input FieldModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `privateSchemaId` field.""" + privateSchemaId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """Checks for equality with the object’s `fieldId` field.""" + fieldId: UUID + + """Checks for equality with the object’s `nodeType` field.""" + nodeType: String + + """Checks for equality with the object’s `data` field.""" + data: JSON + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `FieldModule`.""" +enum FieldModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + NODE_TYPE_ASC + NODE_TYPE_DESC +} + +"""A connection to a list of `InvitesModule` values.""" +type InvitesModuleConnection { + """A list of `InvitesModule` objects.""" + nodes: [InvitesModule]! + + """ + A list of edges which contains the `InvitesModule` and cursor to aid in pagination. + """ + edges: [InvitesModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `InvitesModule` you could get from the connection.""" + totalCount: Int! +} + +type InvitesModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + emailsTableId: UUID! + usersTableId: UUID! + invitesTableId: UUID! + claimedInvitesTableId: UUID! + invitesTableName: String! + claimedInvitesTableName: String! + submitInviteCodeFunction: String! + prefix: String + membershipType: Int! + entityTableId: UUID + + """Reads a single `Table` that is related to this `InvitesModule`.""" + claimedInvitesTable: Table + + """Reads a single `Database` that is related to this `InvitesModule`.""" + database: Database + + """Reads a single `Table` that is related to this `InvitesModule`.""" + emailsTable: Table + + """Reads a single `Table` that is related to this `InvitesModule`.""" + entityTable: Table + + """Reads a single `Table` that is related to this `InvitesModule`.""" + invitesTable: Table + + """Reads a single `Schema` that is related to this `InvitesModule`.""" + privateSchema: Schema + + """Reads a single `Schema` that is related to this `InvitesModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `InvitesModule`.""" + usersTable: Table +} + +"""A `InvitesModule` edge in the connection.""" +type InvitesModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `InvitesModule` at the end of the edge.""" + node: InvitesModule +} + +""" +A condition to be used against `InvitesModule` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input InvitesModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `privateSchemaId` field.""" + privateSchemaId: UUID + + """Checks for equality with the object’s `emailsTableId` field.""" + emailsTableId: UUID + + """Checks for equality with the object’s `usersTableId` field.""" + usersTableId: UUID + + """Checks for equality with the object’s `invitesTableId` field.""" + invitesTableId: UUID + + """Checks for equality with the object’s `claimedInvitesTableId` field.""" + claimedInvitesTableId: UUID + + """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: Int + + """Checks for equality with the object’s `entityTableId` field.""" + entityTableId: UUID +} + +""" +A filter to be used against `InvitesModule` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `InvitesModule`.""" +enum InvitesModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `LevelsModule` values.""" +type LevelsModuleConnection { + """A list of `LevelsModule` objects.""" + nodes: [LevelsModule]! + + """ + A list of edges which contains the `LevelsModule` and cursor to aid in pagination. + """ + edges: [LevelsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `LevelsModule` you could get from the connection.""" + totalCount: Int! +} + +type LevelsModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + stepsTableId: UUID! + stepsTableName: String! + achievementsTableId: UUID! + achievementsTableName: String! + levelsTableId: UUID! + levelsTableName: String! + levelRequirementsTableId: UUID! + 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: Int! + entityTableId: UUID + actorTableId: UUID! + + """Reads a single `Table` that is related to this `LevelsModule`.""" + achievementsTable: Table + + """Reads a single `Table` that is related to this `LevelsModule`.""" + actorTable: Table + + """Reads a single `Database` that is related to this `LevelsModule`.""" + database: Database + + """Reads a single `Table` that is related to this `LevelsModule`.""" + entityTable: Table + + """Reads a single `Table` that is related to this `LevelsModule`.""" + levelRequirementsTable: Table + + """Reads a single `Table` that is related to this `LevelsModule`.""" + levelsTable: Table + + """Reads a single `Schema` that is related to this `LevelsModule`.""" + privateSchema: Schema + + """Reads a single `Schema` that is related to this `LevelsModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `LevelsModule`.""" + stepsTable: Table +} + +"""A `LevelsModule` edge in the connection.""" +type LevelsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `LevelsModule` at the end of the edge.""" + node: LevelsModule +} + +""" +A condition to be used against `LevelsModule` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input LevelsModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `privateSchemaId` field.""" + privateSchemaId: UUID + + """Checks for equality with the object’s `stepsTableId` field.""" + stepsTableId: UUID + + """Checks for equality with the object’s `stepsTableName` field.""" + stepsTableName: String + + """Checks for equality with the object’s `achievementsTableId` field.""" + achievementsTableId: UUID + + """Checks for equality with the object’s `achievementsTableName` field.""" + achievementsTableName: String + + """Checks for equality with the object’s `levelsTableId` field.""" + levelsTableId: UUID + + """Checks for equality with the object’s `levelsTableName` field.""" + levelsTableName: String + + """ + Checks for equality with the object’s `levelRequirementsTableId` field. + """ + levelRequirementsTableId: UUID + + """ + 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: Int + + """Checks for equality with the object’s `entityTableId` field.""" + entityTableId: UUID + + """Checks for equality with the object’s `actorTableId` field.""" + actorTableId: UUID +} + +""" +A filter to be used against `LevelsModule` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `LevelsModule`.""" +enum LevelsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `LimitsModule` values.""" +type LimitsModuleConnection { + """A list of `LimitsModule` objects.""" + nodes: [LimitsModule]! + + """ + A list of edges which contains the `LimitsModule` and cursor to aid in pagination. + """ + edges: [LimitsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `LimitsModule` you could get from the connection.""" + totalCount: Int! +} + +type LimitsModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + tableId: UUID! + tableName: String! + defaultTableId: UUID! + defaultTableName: String! + limitIncrementFunction: String! + limitDecrementFunction: String! + limitIncrementTrigger: String! + limitDecrementTrigger: String! + limitUpdateTrigger: String! + limitCheckFunction: String! + prefix: String + membershipType: Int! + entityTableId: UUID + actorTableId: UUID! + + """Reads a single `Table` that is related to this `LimitsModule`.""" + actorTable: Table + + """Reads a single `Database` that is related to this `LimitsModule`.""" + database: Database + + """Reads a single `Table` that is related to this `LimitsModule`.""" + defaultTable: Table + + """Reads a single `Table` that is related to this `LimitsModule`.""" + entityTable: Table + + """Reads a single `Schema` that is related to this `LimitsModule`.""" + privateSchema: Schema + + """Reads a single `Schema` that is related to this `LimitsModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `LimitsModule`.""" + table: Table +} + +"""A `LimitsModule` edge in the connection.""" +type LimitsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `LimitsModule` at the end of the edge.""" + node: LimitsModule +} + +""" +A condition to be used against `LimitsModule` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input LimitsModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `privateSchemaId` field.""" + privateSchemaId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """Checks for equality with the object’s `tableName` field.""" + tableName: String + + """Checks for equality with the object’s `defaultTableId` field.""" + defaultTableId: UUID + + """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: Int + + """Checks for equality with the object’s `entityTableId` field.""" + entityTableId: UUID + + """Checks for equality with the object’s `actorTableId` field.""" + actorTableId: UUID +} + +""" +A filter to be used against `LimitsModule` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `LimitsModule`.""" +enum LimitsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `MembershipTypesModule` values.""" +type MembershipTypesModuleConnection { + """A list of `MembershipTypesModule` objects.""" + nodes: [MembershipTypesModule]! + + """ + A list of edges which contains the `MembershipTypesModule` and cursor to aid in pagination. + """ + edges: [MembershipTypesModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `MembershipTypesModule` you could get from the connection. + """ + totalCount: Int! +} + +type MembershipTypesModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + tableId: UUID! + tableName: String! + + """ + Reads a single `Database` that is related to this `MembershipTypesModule`. + """ + database: Database + + """ + Reads a single `Schema` that is related to this `MembershipTypesModule`. + """ + schema: Schema + + """ + Reads a single `Table` that is related to this `MembershipTypesModule`. + """ + table: Table +} + +"""A `MembershipTypesModule` edge in the connection.""" +type MembershipTypesModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `MembershipTypesModule` at the end of the edge.""" + node: MembershipTypesModule +} + +""" +A condition to be used against `MembershipTypesModule` object types. All fields +are tested for equality and combined with a logical ‘and.’ +""" +input MembershipTypesModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `MembershipTypesModule`.""" +enum MembershipTypesModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `MembershipsModule` values.""" +type MembershipsModuleConnection { + """A list of `MembershipsModule` objects.""" + nodes: [MembershipsModule]! + + """ + A list of edges which contains the `MembershipsModule` and cursor to aid in pagination. + """ + edges: [MembershipsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `MembershipsModule` you could get from the connection. + """ + totalCount: Int! +} + +type MembershipsModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + membershipsTableId: UUID! + membershipsTableName: String! + membersTableId: UUID! + membersTableName: String! + membershipDefaultsTableId: UUID! + membershipDefaultsTableName: String! + grantsTableId: UUID! + grantsTableName: String! + actorTableId: UUID! + limitsTableId: UUID! + defaultLimitsTableId: UUID! + permissionsTableId: UUID! + defaultPermissionsTableId: UUID! + sprtTableId: UUID! + adminGrantsTableId: UUID! + adminGrantsTableName: String! + ownerGrantsTableId: UUID! + ownerGrantsTableName: String! + membershipType: Int! + entityTableId: UUID + entityTableOwnerId: UUID + prefix: String + actorMaskCheck: String! + actorPermCheck: String! + entityIdsByMask: String + entityIdsByPerm: String + entityIdsFunction: String + + """Reads a single `Table` that is related to this `MembershipsModule`.""" + actorTable: Table + + """Reads a single `Database` that is related to this `MembershipsModule`.""" + database: Database + + """Reads a single `Table` that is related to this `MembershipsModule`.""" + defaultLimitsTable: Table + + """Reads a single `Table` that is related to this `MembershipsModule`.""" + defaultPermissionsTable: Table + + """Reads a single `Table` that is related to this `MembershipsModule`.""" + entityTable: Table + + """Reads a single `Field` that is related to this `MembershipsModule`.""" + entityTableOwner: Field + + """Reads a single `Table` that is related to this `MembershipsModule`.""" + grantsTable: Table + + """Reads a single `Table` that is related to this `MembershipsModule`.""" + limitsTable: Table + + """Reads a single `Table` that is related to this `MembershipsModule`.""" + membersTable: Table + + """Reads a single `Table` that is related to this `MembershipsModule`.""" + membershipDefaultsTable: Table + + """Reads a single `Table` that is related to this `MembershipsModule`.""" + membershipsTable: Table + + """Reads a single `Table` that is related to this `MembershipsModule`.""" + permissionsTable: Table + + """Reads a single `Schema` that is related to this `MembershipsModule`.""" + privateSchema: Schema + + """Reads a single `Schema` that is related to this `MembershipsModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `MembershipsModule`.""" + sprtTable: Table +} + +"""A `MembershipsModule` edge in the connection.""" +type MembershipsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `MembershipsModule` at the end of the edge.""" + node: MembershipsModule +} + +""" +A condition to be used against `MembershipsModule` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input MembershipsModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `privateSchemaId` field.""" + privateSchemaId: UUID + + """Checks for equality with the object’s `membershipsTableId` field.""" + membershipsTableId: UUID + + """Checks for equality with the object’s `membershipsTableName` field.""" + membershipsTableName: String + + """Checks for equality with the object’s `membersTableId` field.""" + membersTableId: UUID + + """Checks for equality with the object’s `membersTableName` field.""" + membersTableName: String + + """ + Checks for equality with the object’s `membershipDefaultsTableId` field. + """ + membershipDefaultsTableId: UUID + + """ + Checks for equality with the object’s `membershipDefaultsTableName` field. + """ + membershipDefaultsTableName: String + + """Checks for equality with the object’s `grantsTableId` field.""" + grantsTableId: UUID + + """Checks for equality with the object’s `grantsTableName` field.""" + grantsTableName: String + + """Checks for equality with the object’s `actorTableId` field.""" + actorTableId: UUID + + """Checks for equality with the object’s `limitsTableId` field.""" + limitsTableId: UUID + + """Checks for equality with the object’s `defaultLimitsTableId` field.""" + defaultLimitsTableId: UUID + + """Checks for equality with the object’s `permissionsTableId` field.""" + permissionsTableId: UUID + + """ + Checks for equality with the object’s `defaultPermissionsTableId` field. + """ + defaultPermissionsTableId: UUID + + """Checks for equality with the object’s `sprtTableId` field.""" + sprtTableId: UUID + + """Checks for equality with the object’s `adminGrantsTableId` field.""" + adminGrantsTableId: UUID + + """Checks for equality with the object’s `adminGrantsTableName` field.""" + adminGrantsTableName: String + + """Checks for equality with the object’s `ownerGrantsTableId` field.""" + ownerGrantsTableId: UUID + + """Checks for equality with the object’s `ownerGrantsTableName` field.""" + ownerGrantsTableName: String + + """Checks for equality with the object’s `membershipType` field.""" + membershipType: Int + + """Checks for equality with the object’s `entityTableId` field.""" + entityTableId: UUID + + """Checks for equality with the object’s `entityTableOwnerId` field.""" + entityTableOwnerId: UUID + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `MembershipsModule`.""" +enum MembershipsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `PermissionsModule` values.""" +type PermissionsModuleConnection { + """A list of `PermissionsModule` objects.""" + nodes: [PermissionsModule]! + + """ + A list of edges which contains the `PermissionsModule` and cursor to aid in pagination. + """ + edges: [PermissionsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PermissionsModule` you could get from the connection. + """ + totalCount: Int! +} + +type PermissionsModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + tableId: UUID! + tableName: String! + defaultTableId: UUID! + defaultTableName: String! + bitlen: Int! + membershipType: Int! + entityTableId: UUID + actorTableId: UUID! + prefix: String + getPaddedMask: String! + getMask: String! + getByMask: String! + getMaskByName: String! + + """Reads a single `Table` that is related to this `PermissionsModule`.""" + actorTable: Table + + """Reads a single `Database` that is related to this `PermissionsModule`.""" + database: Database + + """Reads a single `Table` that is related to this `PermissionsModule`.""" + defaultTable: Table + + """Reads a single `Table` that is related to this `PermissionsModule`.""" + entityTable: Table + + """Reads a single `Schema` that is related to this `PermissionsModule`.""" + privateSchema: Schema + + """Reads a single `Schema` that is related to this `PermissionsModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `PermissionsModule`.""" + table: Table +} + +"""A `PermissionsModule` edge in the connection.""" +type PermissionsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PermissionsModule` at the end of the edge.""" + node: PermissionsModule +} + +""" +A condition to be used against `PermissionsModule` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input PermissionsModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `privateSchemaId` field.""" + privateSchemaId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """Checks for equality with the object’s `tableName` field.""" + tableName: String + + """Checks for equality with the object’s `defaultTableId` field.""" + defaultTableId: UUID + + """Checks for equality with the object’s `defaultTableName` field.""" + defaultTableName: String + + """Checks for equality with the object’s `bitlen` field.""" + bitlen: Int + + """Checks for equality with the object’s `membershipType` field.""" + membershipType: Int + + """Checks for equality with the object’s `entityTableId` field.""" + entityTableId: UUID + + """Checks for equality with the object’s `actorTableId` field.""" + actorTableId: UUID + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `PermissionsModule`.""" +enum PermissionsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `PhoneNumbersModule` values.""" +type PhoneNumbersModuleConnection { + """A list of `PhoneNumbersModule` objects.""" + nodes: [PhoneNumbersModule]! + + """ + A list of edges which contains the `PhoneNumbersModule` and cursor to aid in pagination. + """ + edges: [PhoneNumbersModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PhoneNumbersModule` you could get from the connection. + """ + totalCount: Int! +} + +type PhoneNumbersModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + tableId: UUID! + ownerTableId: UUID! + tableName: String! + + """ + Reads a single `Database` that is related to this `PhoneNumbersModule`. + """ + database: Database + + """Reads a single `Table` that is related to this `PhoneNumbersModule`.""" + ownerTable: Table + + """Reads a single `Schema` that is related to this `PhoneNumbersModule`.""" + privateSchema: Schema + + """Reads a single `Schema` that is related to this `PhoneNumbersModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `PhoneNumbersModule`.""" + table: Table +} + +"""A `PhoneNumbersModule` edge in the connection.""" +type PhoneNumbersModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PhoneNumbersModule` at the end of the edge.""" + node: PhoneNumbersModule +} + +""" +A condition to be used against `PhoneNumbersModule` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input PhoneNumbersModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `privateSchemaId` field.""" + privateSchemaId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """Checks for equality with the object’s `ownerTableId` field.""" + ownerTableId: UUID + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `PhoneNumbersModule`.""" +enum PhoneNumbersModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `ProfilesModule` values.""" +type ProfilesModuleConnection { + """A list of `ProfilesModule` objects.""" + nodes: [ProfilesModule]! + + """ + A list of edges which contains the `ProfilesModule` and cursor to aid in pagination. + """ + edges: [ProfilesModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ProfilesModule` you could get from the connection.""" + totalCount: Int! +} + +type ProfilesModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + tableId: UUID! + tableName: String! + profilePermissionsTableId: UUID! + profilePermissionsTableName: String! + profileGrantsTableId: UUID! + profileGrantsTableName: String! + profileDefinitionGrantsTableId: UUID! + profileDefinitionGrantsTableName: String! + bitlen: Int! + membershipType: Int! + entityTableId: UUID + actorTableId: UUID! + permissionsTableId: UUID! + membershipsTableId: UUID! + prefix: String + + """Reads a single `Table` that is related to this `ProfilesModule`.""" + actorTable: Table + + """Reads a single `Database` that is related to this `ProfilesModule`.""" + database: Database + + """Reads a single `Table` that is related to this `ProfilesModule`.""" + entityTable: Table + + """Reads a single `Table` that is related to this `ProfilesModule`.""" + membershipsTable: Table + + """Reads a single `Table` that is related to this `ProfilesModule`.""" + permissionsTable: Table + + """Reads a single `Schema` that is related to this `ProfilesModule`.""" + privateSchema: Schema + + """Reads a single `Table` that is related to this `ProfilesModule`.""" + profileDefinitionGrantsTable: Table + + """Reads a single `Table` that is related to this `ProfilesModule`.""" + profileGrantsTable: Table + + """Reads a single `Table` that is related to this `ProfilesModule`.""" + profilePermissionsTable: Table + + """Reads a single `Schema` that is related to this `ProfilesModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `ProfilesModule`.""" + table: Table +} + +"""A `ProfilesModule` edge in the connection.""" +type ProfilesModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ProfilesModule` at the end of the edge.""" + node: ProfilesModule +} + +""" +A condition to be used against `ProfilesModule` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input ProfilesModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `privateSchemaId` field.""" + privateSchemaId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """Checks for equality with the object’s `tableName` field.""" + tableName: String + + """ + Checks for equality with the object’s `profilePermissionsTableId` field. + """ + profilePermissionsTableId: UUID + + """ + Checks for equality with the object’s `profilePermissionsTableName` field. + """ + profilePermissionsTableName: String + + """Checks for equality with the object’s `profileGrantsTableId` field.""" + profileGrantsTableId: UUID + + """Checks for equality with the object’s `profileGrantsTableName` field.""" + profileGrantsTableName: String + + """ + Checks for equality with the object’s `profileDefinitionGrantsTableId` field. + """ + profileDefinitionGrantsTableId: UUID + + """ + Checks for equality with the object’s `profileDefinitionGrantsTableName` field. + """ + profileDefinitionGrantsTableName: String + + """Checks for equality with the object’s `bitlen` field.""" + bitlen: Int + + """Checks for equality with the object’s `membershipType` field.""" + membershipType: Int + + """Checks for equality with the object’s `entityTableId` field.""" + entityTableId: UUID + + """Checks for equality with the object’s `actorTableId` field.""" + actorTableId: UUID + + """Checks for equality with the object’s `permissionsTableId` field.""" + permissionsTableId: UUID + + """Checks for equality with the object’s `membershipsTableId` field.""" + membershipsTableId: UUID + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `ProfilesModule`.""" +enum ProfilesModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + MEMBERSHIP_TYPE_ASC + MEMBERSHIP_TYPE_DESC +} + +"""A connection to a list of `RlsModule` values.""" +type RlsModuleConnection { + """A list of `RlsModule` objects.""" + nodes: [RlsModule]! + + """ + A list of edges which contains the `RlsModule` and cursor to aid in pagination. + """ + edges: [RlsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `RlsModule` you could get from the connection.""" + totalCount: Int! +} + +"""A `RlsModule` edge in the connection.""" +type RlsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `RlsModule` at the end of the edge.""" + node: RlsModule +} + +""" +A condition to be used against `RlsModule` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input RlsModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `apiId` field.""" + apiId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `privateSchemaId` field.""" + privateSchemaId: UUID + + """ + Checks for equality with the object’s `sessionCredentialsTableId` field. + """ + sessionCredentialsTableId: UUID + + """Checks for equality with the object’s `sessionsTableId` field.""" + sessionsTableId: UUID + + """Checks for equality with the object’s `usersTableId` field.""" + usersTableId: UUID + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `RlsModule`.""" +enum RlsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + API_ID_ASC + API_ID_DESC +} + +"""A connection to a list of `SecretsModule` values.""" +type SecretsModuleConnection { + """A list of `SecretsModule` objects.""" + nodes: [SecretsModule]! + + """ + A list of edges which contains the `SecretsModule` and cursor to aid in pagination. + """ + edges: [SecretsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `SecretsModule` you could get from the connection.""" + totalCount: Int! +} + +type SecretsModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + tableId: UUID! + tableName: String! + + """Reads a single `Database` that is related to this `SecretsModule`.""" + database: Database + + """Reads a single `Schema` that is related to this `SecretsModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `SecretsModule`.""" + table: Table +} + +"""A `SecretsModule` edge in the connection.""" +type SecretsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `SecretsModule` at the end of the edge.""" + node: SecretsModule +} + +""" +A condition to be used against `SecretsModule` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input SecretsModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `SecretsModule`.""" +enum SecretsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `SessionsModule` values.""" +type SessionsModuleConnection { + """A list of `SessionsModule` objects.""" + nodes: [SessionsModule]! + + """ + A list of edges which contains the `SessionsModule` and cursor to aid in pagination. + """ + edges: [SessionsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `SessionsModule` you could get from the connection.""" + totalCount: Int! +} + +type SessionsModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + sessionsTableId: UUID! + sessionCredentialsTableId: UUID! + authSettingsTableId: UUID! + usersTableId: UUID! + sessionsDefaultExpiration: Interval! + sessionsTable: String! + sessionCredentialsTable: String! + authSettingsTable: String! + + """Reads a single `Table` that is related to this `SessionsModule`.""" + authSettingsTableByAuthSettingsTableId: Table + + """Reads a single `Database` that is related to this `SessionsModule`.""" + database: Database + + """Reads a single `Schema` that is related to this `SessionsModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `SessionsModule`.""" + sessionCredentialsTableBySessionCredentialsTableId: Table + + """Reads a single `Table` that is related to this `SessionsModule`.""" + sessionsTableBySessionsTableId: Table + + """Reads a single `Table` that is related to this `SessionsModule`.""" + usersTable: Table +} + +""" +An interval of time that has passed where the smallest distinct unit is a second. +""" +type Interval { + """ + 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: Float + + """A quantity of minutes.""" + minutes: Int + + """A quantity of hours.""" + hours: Int + + """A quantity of days.""" + days: Int + + """A quantity of months.""" + months: Int + + """A quantity of years.""" + years: Int +} + +"""A `SessionsModule` edge in the connection.""" +type SessionsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `SessionsModule` at the end of the edge.""" + node: SessionsModule +} + +""" +A condition to be used against `SessionsModule` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input SessionsModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `sessionsTableId` field.""" + sessionsTableId: UUID + + """ + Checks for equality with the object’s `sessionCredentialsTableId` field. + """ + sessionCredentialsTableId: UUID + + """Checks for equality with the object’s `authSettingsTableId` field.""" + authSettingsTableId: UUID + + """Checks for equality with the object’s `usersTableId` field.""" + usersTableId: UUID + + """ + 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. +""" +input 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: Float + + """A quantity of minutes.""" + minutes: Int + + """A quantity of hours.""" + hours: Int + + """A quantity of days.""" + days: Int + + """A quantity of months.""" + months: Int + + """A quantity of years.""" + years: Int +} + +""" +A filter to be used against `SessionsModule` object types. All fields are combined with a logical ‘and.’ +""" +input 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.’ +""" +input 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 +} + +"""Methods to use when ordering `SessionsModule`.""" +enum SessionsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `UserAuthModule` values.""" +type UserAuthModuleConnection { + """A list of `UserAuthModule` objects.""" + nodes: [UserAuthModule]! + + """ + A list of edges which contains the `UserAuthModule` and cursor to aid in pagination. + """ + edges: [UserAuthModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `UserAuthModule` you could get from the connection.""" + totalCount: Int! +} + +type UserAuthModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + emailsTableId: UUID! + usersTableId: UUID! + secretsTableId: UUID! + encryptedTableId: UUID! + sessionsTableId: UUID! + sessionCredentialsTableId: UUID! + auditsTableId: UUID! + 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! + + """Reads a single `Database` that is related to this `UserAuthModule`.""" + database: Database + + """Reads a single `Table` that is related to this `UserAuthModule`.""" + emailsTable: Table + + """Reads a single `Table` that is related to this `UserAuthModule`.""" + encryptedTable: Table + + """Reads a single `Schema` that is related to this `UserAuthModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `UserAuthModule`.""" + secretsTable: Table + + """Reads a single `Table` that is related to this `UserAuthModule`.""" + sessionCredentialsTable: Table + + """Reads a single `Table` that is related to this `UserAuthModule`.""" + sessionsTable: Table + + """Reads a single `Table` that is related to this `UserAuthModule`.""" + usersTable: Table +} + +"""A `UserAuthModule` edge in the connection.""" +type UserAuthModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `UserAuthModule` at the end of the edge.""" + node: UserAuthModule +} + +""" +A condition to be used against `UserAuthModule` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input UserAuthModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `emailsTableId` field.""" + emailsTableId: UUID + + """Checks for equality with the object’s `usersTableId` field.""" + usersTableId: UUID + + """Checks for equality with the object’s `secretsTableId` field.""" + secretsTableId: UUID + + """Checks for equality with the object’s `encryptedTableId` field.""" + encryptedTableId: UUID + + """Checks for equality with the object’s `sessionsTableId` field.""" + sessionsTableId: UUID + + """ + Checks for equality with the object’s `sessionCredentialsTableId` field. + """ + sessionCredentialsTableId: UUID + + """Checks for equality with the object’s `auditsTableId` field.""" + auditsTableId: UUID + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `UserAuthModule`.""" +enum UserAuthModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `UsersModule` values.""" +type UsersModuleConnection { + """A list of `UsersModule` objects.""" + nodes: [UsersModule]! + + """ + A list of edges which contains the `UsersModule` and cursor to aid in pagination. + """ + edges: [UsersModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `UsersModule` you could get from the connection.""" + totalCount: Int! +} + +type UsersModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + tableId: UUID! + tableName: String! + typeTableId: UUID! + typeTableName: String! + + """Reads a single `Database` that is related to this `UsersModule`.""" + database: Database + + """Reads a single `Schema` that is related to this `UsersModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `UsersModule`.""" + table: Table + + """Reads a single `Table` that is related to this `UsersModule`.""" + typeTable: Table +} + +"""A `UsersModule` edge in the connection.""" +type UsersModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `UsersModule` at the end of the edge.""" + node: UsersModule +} + +""" +A condition to be used against `UsersModule` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input UsersModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `tableId` field.""" + tableId: UUID + + """Checks for equality with the object’s `tableName` field.""" + tableName: String + + """Checks for equality with the object’s `typeTableId` field.""" + typeTableId: UUID + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `UsersModule`.""" +enum UsersModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `UuidModule` values.""" +type UuidModuleConnection { + """A list of `UuidModule` objects.""" + nodes: [UuidModule]! + + """ + A list of edges which contains the `UuidModule` and cursor to aid in pagination. + """ + edges: [UuidModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `UuidModule` you could get from the connection.""" + totalCount: Int! +} + +type UuidModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + uuidFunction: String! + uuidSeed: String! + + """Reads a single `Database` that is related to this `UuidModule`.""" + database: Database + + """Reads a single `Schema` that is related to this `UuidModule`.""" + schema: Schema +} + +"""A `UuidModule` edge in the connection.""" +type UuidModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `UuidModule` at the end of the edge.""" + node: UuidModule +} + +""" +A condition to be used against `UuidModule` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input UuidModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `UuidModule`.""" +enum UuidModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +type HierarchyModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + chartEdgesTableId: UUID! + chartEdgesTableName: String! + hierarchySprtTableId: UUID! + hierarchySprtTableName: String! + chartEdgeGrantsTableId: UUID! + chartEdgeGrantsTableName: String! + entityTableId: UUID! + usersTableId: UUID! + prefix: String! + privateSchemaName: String! + sprtTableName: String! + rebuildHierarchyFunction: String! + getSubordinatesFunction: String! + getManagersFunction: String! + isManagerOfFunction: String! + createdAt: Datetime! + + """Reads a single `Table` that is related to this `HierarchyModule`.""" + chartEdgeGrantsTable: Table + + """Reads a single `Table` that is related to this `HierarchyModule`.""" + chartEdgesTable: Table + + """Reads a single `Database` that is related to this `HierarchyModule`.""" + database: Database + + """Reads a single `Table` that is related to this `HierarchyModule`.""" + entityTable: Table + + """Reads a single `Table` that is related to this `HierarchyModule`.""" + hierarchySprtTable: Table + + """Reads a single `Schema` that is related to this `HierarchyModule`.""" + privateSchema: Schema + + """Reads a single `Schema` that is related to this `HierarchyModule`.""" + schema: Schema + + """Reads a single `Table` that is related to this `HierarchyModule`.""" + usersTable: Table +} + +"""A connection to a list of `DatabaseProvisionModule` values.""" +type DatabaseProvisionModuleConnection { + """A list of `DatabaseProvisionModule` objects.""" + nodes: [DatabaseProvisionModule]! + + """ + A list of edges which contains the `DatabaseProvisionModule` and cursor to aid in pagination. + """ + edges: [DatabaseProvisionModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `DatabaseProvisionModule` you could get from the connection. + """ + totalCount: Int! +} + +""" +Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. +""" +type DatabaseProvisionModule { + id: UUID! + + """The name for the new database""" + databaseName: String! + + """UUID of the user who owns this database""" + ownerId: UUID! + + """ + 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: JSON! + + """ + 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: UUID + createdAt: Datetime! + updatedAt: Datetime! + completedAt: Datetime + + """ + Reads a single `Database` that is related to this `DatabaseProvisionModule`. + """ + database: Database +} + +"""A `DatabaseProvisionModule` edge in the connection.""" +type DatabaseProvisionModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `DatabaseProvisionModule` at the end of the edge.""" + node: DatabaseProvisionModule +} + +""" +A condition to be used against `DatabaseProvisionModule` object types. All +fields are tested for equality and combined with a logical ‘and.’ +""" +input DatabaseProvisionModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseName` field.""" + databaseName: String + + """Checks for equality with the object’s `ownerId` field.""" + ownerId: UUID + + """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: JSON + + """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: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime + + """Checks for equality with the object’s `completedAt` field.""" + completedAt: Datetime +} + +""" +A filter to be used against `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `DatabaseProvisionModule`.""" +enum 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 +} + +"""A `Database` edge in the connection.""" +type DatabaseEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Database` at the end of the edge.""" + node: Database +} + +""" +A condition to be used against `Database` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input DatabaseCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `ownerId` field.""" + ownerId: UUID + + """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: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `Database` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `Database`.""" +enum 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 +} + +type AppMembership { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean! + isBanned: Boolean! + isDisabled: Boolean! + isVerified: Boolean! + isActive: Boolean! + isOwner: Boolean! + isAdmin: Boolean! + permissions: BitString! + granted: BitString! + actorId: UUID! + + """Reads a single `User` that is related to this `AppMembership`.""" + actor: User +} + +"""A connection to a list of `AppAdminGrant` values.""" +type AppAdminGrantConnection { + """A list of `AppAdminGrant` objects.""" + nodes: [AppAdminGrant]! + + """ + A list of edges which contains the `AppAdminGrant` and cursor to aid in pagination. + """ + edges: [AppAdminGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppAdminGrant` you could get from the connection.""" + totalCount: Int! +} + +type AppAdminGrant { + id: UUID! + isGrant: Boolean! + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `AppAdminGrant`.""" + actor: User + + """Reads a single `User` that is related to this `AppAdminGrant`.""" + grantor: User +} + +"""A `AppAdminGrant` edge in the connection.""" +type AppAdminGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppAdminGrant` at the end of the edge.""" + node: AppAdminGrant +} + +""" +A condition to be used against `AppAdminGrant` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input AppAdminGrantCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `isGrant` field.""" + isGrant: Boolean + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `grantorId` field.""" + grantorId: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `AppAdminGrant`.""" +enum 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 +} + +"""A connection to a list of `AppOwnerGrant` values.""" +type AppOwnerGrantConnection { + """A list of `AppOwnerGrant` objects.""" + nodes: [AppOwnerGrant]! + + """ + A list of edges which contains the `AppOwnerGrant` and cursor to aid in pagination. + """ + edges: [AppOwnerGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppOwnerGrant` you could get from the connection.""" + totalCount: Int! +} + +type AppOwnerGrant { + id: UUID! + isGrant: Boolean! + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `AppOwnerGrant`.""" + actor: User + + """Reads a single `User` that is related to this `AppOwnerGrant`.""" + grantor: User +} + +"""A `AppOwnerGrant` edge in the connection.""" +type AppOwnerGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppOwnerGrant` at the end of the edge.""" + node: AppOwnerGrant +} + +""" +A condition to be used against `AppOwnerGrant` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input AppOwnerGrantCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `isGrant` field.""" + isGrant: Boolean + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `grantorId` field.""" + grantorId: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `AppOwnerGrant`.""" +enum 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 +} + +"""A connection to a list of `AppGrant` values.""" +type AppGrantConnection { + """A list of `AppGrant` objects.""" + nodes: [AppGrant]! + + """ + A list of edges which contains the `AppGrant` and cursor to aid in pagination. + """ + edges: [AppGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppGrant` you could get from the connection.""" + totalCount: Int! +} + +type AppGrant { + id: UUID! + permissions: BitString! + isGrant: Boolean! + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `AppGrant`.""" + actor: User + + """Reads a single `User` that is related to this `AppGrant`.""" + grantor: User +} + +"""A `AppGrant` edge in the connection.""" +type AppGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppGrant` at the end of the edge.""" + node: AppGrant +} + +""" +A condition to be used against `AppGrant` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input AppGrantCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `permissions` field.""" + permissions: BitString + + """Checks for equality with the object’s `isGrant` field.""" + isGrant: Boolean + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `grantorId` field.""" + grantorId: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `AppGrant` object types. All fields are combined with a logical ‘and.’ +""" +input 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 filter to be used against BitString fields. All fields are combined with a logical ‘and.’ +""" +input BitStringFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: BitString + + """Not equal to the specified value.""" + notEqualTo: BitString + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: BitString + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: BitString + + """Included in the specified list.""" + in: [BitString!] + + """Not included in the specified list.""" + notIn: [BitString!] + + """Less than the specified value.""" + lessThan: BitString + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: BitString + + """Greater than the specified value.""" + greaterThan: BitString + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: BitString +} + +"""Methods to use when ordering `AppGrant`.""" +enum 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 +} + +"""A connection to a list of `OrgMembership` values.""" +type OrgMembershipConnection { + """A list of `OrgMembership` objects.""" + nodes: [OrgMembership]! + + """ + A list of edges which contains the `OrgMembership` and cursor to aid in pagination. + """ + edges: [OrgMembershipEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgMembership` you could get from the connection.""" + totalCount: Int! +} + +type OrgMembership { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean! + isBanned: Boolean! + isDisabled: Boolean! + isActive: Boolean! + isOwner: Boolean! + isAdmin: Boolean! + permissions: BitString! + granted: BitString! + actorId: UUID! + entityId: UUID! + + """Reads a single `User` that is related to this `OrgMembership`.""" + actor: User + + """Reads a single `User` that is related to this `OrgMembership`.""" + entity: User +} + +"""A `OrgMembership` edge in the connection.""" +type OrgMembershipEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgMembership` at the end of the edge.""" + node: OrgMembership +} + +""" +A condition to be used against `OrgMembership` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input OrgMembershipCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime + + """Checks for equality with the object’s `createdBy` field.""" + createdBy: UUID + + """Checks for equality with the object’s `updatedBy` field.""" + updatedBy: UUID + + """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: BitString + + """Checks for equality with the object’s `granted` field.""" + granted: BitString + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `entityId` field.""" + entityId: UUID +} + +""" +A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgMembership`.""" +enum 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 +} + +type OrgMembershipDefault { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean! + entityId: UUID! + deleteMemberCascadeGroups: Boolean! + createGroupsCascadeMembers: Boolean! + + """Reads a single `User` that is related to this `OrgMembershipDefault`.""" + entity: User +} + +"""A connection to a list of `OrgMember` values.""" +type OrgMemberConnection { + """A list of `OrgMember` objects.""" + nodes: [OrgMember]! + + """ + A list of edges which contains the `OrgMember` and cursor to aid in pagination. + """ + edges: [OrgMemberEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgMember` you could get from the connection.""" + totalCount: Int! +} + +type OrgMember { + id: UUID! + isAdmin: Boolean! + actorId: UUID! + entityId: UUID! + + """Reads a single `User` that is related to this `OrgMember`.""" + actor: User + + """Reads a single `User` that is related to this `OrgMember`.""" + entity: User +} + +"""A `OrgMember` edge in the connection.""" +type OrgMemberEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgMember` at the end of the edge.""" + node: OrgMember +} + +""" +A condition to be used against `OrgMember` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input OrgMemberCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `isAdmin` field.""" + isAdmin: Boolean + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `entityId` field.""" + entityId: UUID +} + +""" +A filter to be used against `OrgMember` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgMember`.""" +enum 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 +} + +"""A connection to a list of `OrgAdminGrant` values.""" +type OrgAdminGrantConnection { + """A list of `OrgAdminGrant` objects.""" + nodes: [OrgAdminGrant]! + + """ + A list of edges which contains the `OrgAdminGrant` and cursor to aid in pagination. + """ + edges: [OrgAdminGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgAdminGrant` you could get from the connection.""" + totalCount: Int! +} + +type OrgAdminGrant { + id: UUID! + isGrant: Boolean! + actorId: UUID! + entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `OrgAdminGrant`.""" + actor: User + + """Reads a single `User` that is related to this `OrgAdminGrant`.""" + entity: User + + """Reads a single `User` that is related to this `OrgAdminGrant`.""" + grantor: User +} + +"""A `OrgAdminGrant` edge in the connection.""" +type OrgAdminGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgAdminGrant` at the end of the edge.""" + node: OrgAdminGrant +} + +""" +A condition to be used against `OrgAdminGrant` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input OrgAdminGrantCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `isGrant` field.""" + isGrant: Boolean + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `entityId` field.""" + entityId: UUID + + """Checks for equality with the object’s `grantorId` field.""" + grantorId: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgAdminGrant`.""" +enum 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 +} + +"""A connection to a list of `OrgOwnerGrant` values.""" +type OrgOwnerGrantConnection { + """A list of `OrgOwnerGrant` objects.""" + nodes: [OrgOwnerGrant]! + + """ + A list of edges which contains the `OrgOwnerGrant` and cursor to aid in pagination. + """ + edges: [OrgOwnerGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgOwnerGrant` you could get from the connection.""" + totalCount: Int! +} + +type OrgOwnerGrant { + id: UUID! + isGrant: Boolean! + actorId: UUID! + entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `OrgOwnerGrant`.""" + actor: User + + """Reads a single `User` that is related to this `OrgOwnerGrant`.""" + entity: User + + """Reads a single `User` that is related to this `OrgOwnerGrant`.""" + grantor: User +} + +"""A `OrgOwnerGrant` edge in the connection.""" +type OrgOwnerGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgOwnerGrant` at the end of the edge.""" + node: OrgOwnerGrant +} + +""" +A condition to be used against `OrgOwnerGrant` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input OrgOwnerGrantCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `isGrant` field.""" + isGrant: Boolean + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `entityId` field.""" + entityId: UUID + + """Checks for equality with the object’s `grantorId` field.""" + grantorId: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgOwnerGrant`.""" +enum 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 +} + +"""A connection to a list of `OrgGrant` values.""" +type OrgGrantConnection { + """A list of `OrgGrant` objects.""" + nodes: [OrgGrant]! + + """ + A list of edges which contains the `OrgGrant` and cursor to aid in pagination. + """ + edges: [OrgGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgGrant` you could get from the connection.""" + totalCount: Int! +} + +type OrgGrant { + id: UUID! + permissions: BitString! + isGrant: Boolean! + actorId: UUID! + entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `OrgGrant`.""" + actor: User + + """Reads a single `User` that is related to this `OrgGrant`.""" + entity: User + + """Reads a single `User` that is related to this `OrgGrant`.""" + grantor: User +} + +"""A `OrgGrant` edge in the connection.""" +type OrgGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgGrant` at the end of the edge.""" + node: OrgGrant +} + +""" +A condition to be used against `OrgGrant` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input OrgGrantCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `permissions` field.""" + permissions: BitString + + """Checks for equality with the object’s `isGrant` field.""" + isGrant: Boolean + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `entityId` field.""" + entityId: UUID + + """Checks for equality with the object’s `grantorId` field.""" + grantorId: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgGrant`.""" +enum 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 +} + +"""A connection to a list of `AppLimit` values.""" +type AppLimitConnection { + """A list of `AppLimit` objects.""" + nodes: [AppLimit]! + + """ + A list of edges which contains the `AppLimit` and cursor to aid in pagination. + """ + edges: [AppLimitEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppLimit` you could get from the connection.""" + totalCount: Int! +} + +type AppLimit { + id: UUID! + name: String + actorId: UUID! + num: Int + max: Int + + """Reads a single `User` that is related to this `AppLimit`.""" + actor: User +} + +"""A `AppLimit` edge in the connection.""" +type AppLimitEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLimit` at the end of the edge.""" + node: AppLimit +} + +""" +A condition to be used against `AppLimit` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input AppLimitCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `num` field.""" + num: Int + + """Checks for equality with the object’s `max` field.""" + max: Int +} + +""" +A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `AppLimit`.""" +enum AppLimitOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC +} + +"""A connection to a list of `OrgLimit` values.""" +type OrgLimitConnection { + """A list of `OrgLimit` objects.""" + nodes: [OrgLimit]! + + """ + A list of edges which contains the `OrgLimit` and cursor to aid in pagination. + """ + edges: [OrgLimitEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgLimit` you could get from the connection.""" + totalCount: Int! +} + +type OrgLimit { + id: UUID! + name: String + actorId: UUID! + num: Int + max: Int + entityId: UUID! + + """Reads a single `User` that is related to this `OrgLimit`.""" + actor: User + + """Reads a single `User` that is related to this `OrgLimit`.""" + entity: User +} + +"""A `OrgLimit` edge in the connection.""" +type OrgLimitEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgLimit` at the end of the edge.""" + node: OrgLimit +} + +""" +A condition to be used against `OrgLimit` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input OrgLimitCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `num` field.""" + num: Int + + """Checks for equality with the object’s `max` field.""" + max: Int + + """Checks for equality with the object’s `entityId` field.""" + entityId: UUID +} + +""" +A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgLimit`.""" +enum 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 +} + +"""A connection to a list of `AppStep` values.""" +type AppStepConnection { + """A list of `AppStep` objects.""" + nodes: [AppStep]! + + """ + A list of edges which contains the `AppStep` and cursor to aid in pagination. + """ + edges: [AppStepEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppStep` you could get from the connection.""" + totalCount: Int! +} + +""" +The user achieving a requirement for a level. Log table that has every single step ever taken. +""" +type AppStep { + id: UUID! + actorId: UUID! + name: String! + count: Int! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `AppStep`.""" + actor: User +} + +"""A `AppStep` edge in the connection.""" +type AppStepEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppStep` at the end of the edge.""" + node: AppStep +} + +""" +A condition to be used against `AppStep` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input AppStepCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `count` field.""" + count: Int + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `AppStep` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `AppStep`.""" +enum 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 +} + +"""A connection to a list of `AppAchievement` values.""" +type AppAchievementConnection { + """A list of `AppAchievement` objects.""" + nodes: [AppAchievement]! + + """ + A list of edges which contains the `AppAchievement` and cursor to aid in pagination. + """ + edges: [AppAchievementEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppAchievement` you could get from the connection.""" + totalCount: Int! +} + +""" +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. +""" +type AppAchievement { + id: UUID! + actorId: UUID! + name: String! + count: Int! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `AppAchievement`.""" + actor: User +} + +"""A `AppAchievement` edge in the connection.""" +type AppAchievementEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppAchievement` at the end of the edge.""" + node: AppAchievement +} + +""" +A condition to be used against `AppAchievement` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input AppAchievementCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `count` field.""" + count: Int + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `AppAchievement` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `AppAchievement`.""" +enum 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 +} + +"""A connection to a list of `Invite` values.""" +type InviteConnection { + """A list of `Invite` objects.""" + nodes: [Invite]! + + """ + A list of edges which contains the `Invite` and cursor to aid in pagination. + """ + edges: [InviteEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Invite` you could get from the connection.""" + totalCount: Int! +} + +type Invite { + id: UUID! + email: ConstructiveInternalTypeEmail + senderId: UUID! + inviteToken: String! + inviteValid: Boolean! + inviteLimit: Int! + inviteCount: Int! + multiple: Boolean! + data: JSON + expiresAt: Datetime! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `Invite`.""" + sender: User +} + +scalar ConstructiveInternalTypeEmail + +"""A `Invite` edge in the connection.""" +type InviteEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Invite` at the end of the edge.""" + node: Invite +} + +""" +A condition to be used against `Invite` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input InviteCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `email` field.""" + email: ConstructiveInternalTypeEmail + + """Checks for equality with the object’s `senderId` field.""" + senderId: UUID + + """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: Int + + """Checks for equality with the object’s `inviteCount` field.""" + inviteCount: Int + + """Checks for equality with the object’s `multiple` field.""" + multiple: Boolean + + """Checks for equality with the object’s `data` field.""" + data: JSON + + """Checks for equality with the object’s `expiresAt` field.""" + expiresAt: Datetime + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `Invite` object types. All fields are combined with a logical ‘and.’ +""" +input 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.’ +""" +input 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 +} + +"""Methods to use when ordering `Invite`.""" +enum 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 +} + +"""A connection to a list of `ClaimedInvite` values.""" +type ClaimedInviteConnection { + """A list of `ClaimedInvite` objects.""" + nodes: [ClaimedInvite]! + + """ + A list of edges which contains the `ClaimedInvite` and cursor to aid in pagination. + """ + edges: [ClaimedInviteEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `ClaimedInvite` you could get from the connection.""" + totalCount: Int! +} + +type ClaimedInvite { + id: UUID! + data: JSON + senderId: UUID + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `ClaimedInvite`.""" + receiver: User + + """Reads a single `User` that is related to this `ClaimedInvite`.""" + sender: User +} + +"""A `ClaimedInvite` edge in the connection.""" +type ClaimedInviteEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ClaimedInvite` at the end of the edge.""" + node: ClaimedInvite +} + +""" +A condition to be used against `ClaimedInvite` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input ClaimedInviteCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `data` field.""" + data: JSON + + """Checks for equality with the object’s `senderId` field.""" + senderId: UUID + + """Checks for equality with the object’s `receiverId` field.""" + receiverId: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `ClaimedInvite` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `ClaimedInvite`.""" +enum 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 +} + +"""A connection to a list of `OrgInvite` values.""" +type OrgInviteConnection { + """A list of `OrgInvite` objects.""" + nodes: [OrgInvite]! + + """ + A list of edges which contains the `OrgInvite` and cursor to aid in pagination. + """ + edges: [OrgInviteEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgInvite` you could get from the connection.""" + totalCount: Int! +} + +type OrgInvite { + id: UUID! + email: ConstructiveInternalTypeEmail + senderId: UUID! + receiverId: UUID + inviteToken: String! + inviteValid: Boolean! + inviteLimit: Int! + inviteCount: Int! + multiple: Boolean! + data: JSON + expiresAt: Datetime! + createdAt: Datetime + updatedAt: Datetime + entityId: UUID! + + """Reads a single `User` that is related to this `OrgInvite`.""" + entity: User + + """Reads a single `User` that is related to this `OrgInvite`.""" + receiver: User + + """Reads a single `User` that is related to this `OrgInvite`.""" + sender: User +} + +"""A `OrgInvite` edge in the connection.""" +type OrgInviteEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgInvite` at the end of the edge.""" + node: OrgInvite +} + +""" +A condition to be used against `OrgInvite` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input OrgInviteCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `email` field.""" + email: ConstructiveInternalTypeEmail + + """Checks for equality with the object’s `senderId` field.""" + senderId: UUID + + """Checks for equality with the object’s `receiverId` field.""" + receiverId: UUID + + """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: Int + + """Checks for equality with the object’s `inviteCount` field.""" + inviteCount: Int + + """Checks for equality with the object’s `multiple` field.""" + multiple: Boolean + + """Checks for equality with the object’s `data` field.""" + data: JSON + + """Checks for equality with the object’s `expiresAt` field.""" + expiresAt: Datetime + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime + + """Checks for equality with the object’s `entityId` field.""" + entityId: UUID +} + +""" +A filter to be used against `OrgInvite` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgInvite`.""" +enum 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 connection to a list of `OrgClaimedInvite` values.""" +type OrgClaimedInviteConnection { + """A list of `OrgClaimedInvite` objects.""" + nodes: [OrgClaimedInvite]! + + """ + A list of edges which contains the `OrgClaimedInvite` and cursor to aid in pagination. + """ + edges: [OrgClaimedInviteEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgClaimedInvite` you could get from the connection. + """ + totalCount: Int! +} + +type OrgClaimedInvite { + id: UUID! + data: JSON + senderId: UUID + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime + entityId: UUID! + + """Reads a single `User` that is related to this `OrgClaimedInvite`.""" + entity: User + + """Reads a single `User` that is related to this `OrgClaimedInvite`.""" + receiver: User + + """Reads a single `User` that is related to this `OrgClaimedInvite`.""" + sender: User +} + +"""A `OrgClaimedInvite` edge in the connection.""" +type OrgClaimedInviteEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgClaimedInvite` at the end of the edge.""" + node: OrgClaimedInvite +} + +""" +A condition to be used against `OrgClaimedInvite` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input OrgClaimedInviteCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `data` field.""" + data: JSON + + """Checks for equality with the object’s `senderId` field.""" + senderId: UUID + + """Checks for equality with the object’s `receiverId` field.""" + receiverId: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime + + """Checks for equality with the object’s `entityId` field.""" + entityId: UUID +} + +""" +A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgClaimedInvite`.""" +enum 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 +} + +"""A connection to a list of `AppPermissionDefault` values.""" +type AppPermissionDefaultConnection { + """A list of `AppPermissionDefault` objects.""" + nodes: [AppPermissionDefault]! + + """ + A list of edges which contains the `AppPermissionDefault` and cursor to aid in pagination. + """ + edges: [AppPermissionDefaultEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `AppPermissionDefault` you could get from the connection. + """ + totalCount: Int! +} + +type AppPermissionDefault { + id: UUID! + permissions: BitString! +} + +"""A `AppPermissionDefault` edge in the connection.""" +type AppPermissionDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppPermissionDefault` at the end of the edge.""" + node: AppPermissionDefault +} + +""" +A condition to be used against `AppPermissionDefault` object types. All fields +are tested for equality and combined with a logical ‘and.’ +""" +input AppPermissionDefaultCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `permissions` field.""" + permissions: BitString +} + +""" +A filter to be used against `AppPermissionDefault` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `AppPermissionDefault`.""" +enum AppPermissionDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC +} + +"""A connection to a list of `Ref` values.""" +type RefConnection { + """A list of `Ref` objects.""" + nodes: [Ref]! + + """ + A list of edges which contains the `Ref` and cursor to aid in pagination. + """ + edges: [RefEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Ref` you could get from the connection.""" + totalCount: Int! +} + +"""A ref is a data structure for pointing to a commit.""" +type Ref { + """The primary unique identifier for the ref.""" + id: UUID! + + """The name of the ref or branch""" + name: String! + databaseId: UUID! + storeId: UUID! + commitId: UUID +} + +"""A `Ref` edge in the connection.""" +type RefEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Ref` at the end of the edge.""" + node: Ref +} + +""" +A condition to be used against `Ref` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input RefCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `storeId` field.""" + storeId: UUID + + """Checks for equality with the object’s `commitId` field.""" + commitId: UUID +} + +""" +A filter to be used against `Ref` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `Ref`.""" +enum RefOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + STORE_ID_ASC + STORE_ID_DESC +} + +"""A connection to a list of `Store` values.""" +type StoreConnection { + """A list of `Store` objects.""" + nodes: [Store]! + + """ + A list of edges which contains the `Store` and cursor to aid in pagination. + """ + edges: [StoreEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Store` you could get from the connection.""" + totalCount: Int! +} + +"""A store represents an isolated object repository within a database.""" +type Store { + """The primary unique identifier for the store.""" + id: UUID! + + """The name of the store (e.g., metaschema, migrations).""" + name: String! + + """The database this store belongs to.""" + databaseId: UUID! + + """The current head tree_id for this store.""" + hash: UUID + createdAt: Datetime +} + +"""A `Store` edge in the connection.""" +type StoreEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Store` at the end of the edge.""" + node: Store +} + +""" +A condition to be used against `Store` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input StoreCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `hash` field.""" + hash: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime +} + +""" +A filter to be used against `Store` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `Store`.""" +enum StoreOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `RoleType` values.""" +type RoleTypeConnection { + """A list of `RoleType` objects.""" + nodes: [RoleType]! + + """ + A list of edges which contains the `RoleType` and cursor to aid in pagination. + """ + edges: [RoleTypeEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `RoleType` you could get from the connection.""" + totalCount: Int! +} + +"""A `RoleType` edge in the connection.""" +type RoleTypeEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `RoleType` at the end of the edge.""" + node: RoleType +} + +""" +A condition to be used against `RoleType` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input RoleTypeCondition { + """Checks for equality with the object’s `id` field.""" + id: Int + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `RoleType`.""" +enum RoleTypeOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC +} + +"""A connection to a list of `OrgPermissionDefault` values.""" +type OrgPermissionDefaultConnection { + """A list of `OrgPermissionDefault` objects.""" + nodes: [OrgPermissionDefault]! + + """ + A list of edges which contains the `OrgPermissionDefault` and cursor to aid in pagination. + """ + edges: [OrgPermissionDefaultEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgPermissionDefault` you could get from the connection. + """ + totalCount: Int! +} + +type OrgPermissionDefault { + id: UUID! + permissions: BitString! + entityId: UUID! + + """Reads a single `User` that is related to this `OrgPermissionDefault`.""" + entity: User +} + +"""A `OrgPermissionDefault` edge in the connection.""" +type OrgPermissionDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgPermissionDefault` at the end of the edge.""" + node: OrgPermissionDefault +} + +""" +A condition to be used against `OrgPermissionDefault` object types. All fields +are tested for equality and combined with a logical ‘and.’ +""" +input OrgPermissionDefaultCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `permissions` field.""" + permissions: BitString + + """Checks for equality with the object’s `entityId` field.""" + entityId: UUID +} + +""" +A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgPermissionDefault`.""" +enum OrgPermissionDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC +} + +"""A connection to a list of `AppLimitDefault` values.""" +type AppLimitDefaultConnection { + """A list of `AppLimitDefault` objects.""" + nodes: [AppLimitDefault]! + + """ + A list of edges which contains the `AppLimitDefault` and cursor to aid in pagination. + """ + edges: [AppLimitDefaultEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `AppLimitDefault` you could get from the connection. + """ + totalCount: Int! +} + +type AppLimitDefault { + id: UUID! + name: String! + max: Int +} + +"""A `AppLimitDefault` edge in the connection.""" +type AppLimitDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLimitDefault` at the end of the edge.""" + node: AppLimitDefault +} + +""" +A condition to be used against `AppLimitDefault` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input AppLimitDefaultCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `max` field.""" + max: Int +} + +""" +A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `AppLimitDefault`.""" +enum AppLimitDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC +} + +"""A connection to a list of `OrgLimitDefault` values.""" +type OrgLimitDefaultConnection { + """A list of `OrgLimitDefault` objects.""" + nodes: [OrgLimitDefault]! + + """ + A list of edges which contains the `OrgLimitDefault` and cursor to aid in pagination. + """ + edges: [OrgLimitDefaultEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgLimitDefault` you could get from the connection. + """ + totalCount: Int! +} + +type OrgLimitDefault { + id: UUID! + name: String! + max: Int +} + +"""A `OrgLimitDefault` edge in the connection.""" +type OrgLimitDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgLimitDefault` at the end of the edge.""" + node: OrgLimitDefault +} + +""" +A condition to be used against `OrgLimitDefault` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input OrgLimitDefaultCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `max` field.""" + max: Int +} + +""" +A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgLimitDefault`.""" +enum OrgLimitDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC +} + +"""A connection to a list of `CryptoAddress` values.""" +type CryptoAddressConnection { + """A list of `CryptoAddress` objects.""" + nodes: [CryptoAddress]! + + """ + A list of edges which contains the `CryptoAddress` and cursor to aid in pagination. + """ + edges: [CryptoAddressEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `CryptoAddress` you could get from the connection.""" + totalCount: Int! +} + +type CryptoAddress { + id: UUID! + ownerId: UUID! + address: String! + isVerified: Boolean! + isPrimary: Boolean! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `CryptoAddress`.""" + owner: User +} + +"""A `CryptoAddress` edge in the connection.""" +type CryptoAddressEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `CryptoAddress` at the end of the edge.""" + node: CryptoAddress +} + +""" +A condition to be used against `CryptoAddress` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input CryptoAddressCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `ownerId` field.""" + ownerId: UUID + + """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: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `CryptoAddress` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `CryptoAddress`.""" +enum 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 +} + +"""A connection to a list of `MembershipType` values.""" +type MembershipTypeConnection { + """A list of `MembershipType` objects.""" + nodes: [MembershipType]! + + """ + A list of edges which contains the `MembershipType` and cursor to aid in pagination. + """ + edges: [MembershipTypeEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `MembershipType` you could get from the connection.""" + totalCount: Int! +} + +type MembershipType { + id: Int! + name: String! + description: String! + prefix: String! +} + +"""A `MembershipType` edge in the connection.""" +type MembershipTypeEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `MembershipType` at the end of the edge.""" + node: MembershipType +} + +""" +A condition to be used against `MembershipType` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input MembershipTypeCondition { + """Checks for equality with the object’s `id` field.""" + id: Int + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `MembershipType`.""" +enum MembershipTypeOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC +} + +"""A connection to a list of `ConnectedAccount` values.""" +type ConnectedAccountConnection { + """A list of `ConnectedAccount` objects.""" + nodes: [ConnectedAccount]! + + """ + A list of edges which contains the `ConnectedAccount` and cursor to aid in pagination. + """ + edges: [ConnectedAccountEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `ConnectedAccount` you could get from the connection. + """ + totalCount: Int! +} + +type ConnectedAccount { + id: UUID! + ownerId: UUID! + + """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: JSON! + isVerified: Boolean! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `ConnectedAccount`.""" + owner: User +} + +"""A `ConnectedAccount` edge in the connection.""" +type ConnectedAccountEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ConnectedAccount` at the end of the edge.""" + node: ConnectedAccount +} + +""" +A condition to be used against `ConnectedAccount` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input ConnectedAccountCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `ownerId` field.""" + ownerId: UUID + + """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: JSON + + """Checks for equality with the object’s `isVerified` field.""" + isVerified: Boolean + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `ConnectedAccount` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `ConnectedAccount`.""" +enum 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 +} + +"""A connection to a list of `PhoneNumber` values.""" +type PhoneNumberConnection { + """A list of `PhoneNumber` objects.""" + nodes: [PhoneNumber]! + + """ + A list of edges which contains the `PhoneNumber` and cursor to aid in pagination. + """ + edges: [PhoneNumberEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `PhoneNumber` you could get from the connection.""" + totalCount: Int! +} + +type PhoneNumber { + id: UUID! + ownerId: UUID! + cc: String! + number: String! + isVerified: Boolean! + isPrimary: Boolean! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `PhoneNumber`.""" + owner: User +} + +"""A `PhoneNumber` edge in the connection.""" +type PhoneNumberEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PhoneNumber` at the end of the edge.""" + node: PhoneNumber +} + +""" +A condition to be used against `PhoneNumber` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input PhoneNumberCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `ownerId` field.""" + ownerId: UUID + + """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: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `PhoneNumber` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `PhoneNumber`.""" +enum 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 +} + +""" +A condition to be used against `AppPermission` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input AppPermissionCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `bitnum` field.""" + bitnum: Int + + """Checks for equality with the object’s `bitstr` field.""" + bitstr: BitString + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `AppPermission`.""" +enum AppPermissionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + BITNUM_ASC + BITNUM_DESC +} + +""" +A condition to be used against `OrgPermission` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input OrgPermissionCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `bitnum` field.""" + bitnum: Int + + """Checks for equality with the object’s `bitstr` field.""" + bitstr: BitString + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgPermission`.""" +enum OrgPermissionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + BITNUM_ASC + BITNUM_DESC +} + +"""A connection to a list of `AppMembershipDefault` values.""" +type AppMembershipDefaultConnection { + """A list of `AppMembershipDefault` objects.""" + nodes: [AppMembershipDefault]! + + """ + A list of edges which contains the `AppMembershipDefault` and cursor to aid in pagination. + """ + edges: [AppMembershipDefaultEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `AppMembershipDefault` you could get from the connection. + """ + totalCount: Int! +} + +type AppMembershipDefault { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean! + isVerified: Boolean! +} + +"""A `AppMembershipDefault` edge in the connection.""" +type AppMembershipDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppMembershipDefault` at the end of the edge.""" + node: AppMembershipDefault +} + +""" +A condition to be used against `AppMembershipDefault` object types. All fields +are tested for equality and combined with a logical ‘and.’ +""" +input AppMembershipDefaultCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime + + """Checks for equality with the object’s `createdBy` field.""" + createdBy: UUID + + """Checks for equality with the object’s `updatedBy` field.""" + updatedBy: UUID + + """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.’ +""" +input 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 +} + +"""Methods to use when ordering `AppMembershipDefault`.""" +enum 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 +} + +"""A connection to a list of `NodeTypeRegistry` values.""" +type NodeTypeRegistryConnection { + """A list of `NodeTypeRegistry` objects.""" + nodes: [NodeTypeRegistry]! + + """ + A list of edges which contains the `NodeTypeRegistry` and cursor to aid in pagination. + """ + edges: [NodeTypeRegistryEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `NodeTypeRegistry` you could get from the connection. + """ + totalCount: Int! +} + +""" +Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). +""" +type NodeTypeRegistry { + """ + 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: JSON + + """ + Tags for categorization and filtering (e.g., ownership, membership, temporal, rls) + """ + tags: [String]! + createdAt: Datetime! + updatedAt: Datetime! +} + +"""A `NodeTypeRegistry` edge in the connection.""" +type NodeTypeRegistryEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `NodeTypeRegistry` at the end of the edge.""" + node: NodeTypeRegistry +} + +""" +A condition to be used against `NodeTypeRegistry` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input 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: JSON + + """Checks for equality with the object’s `tags` field.""" + tags: [String] + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `NodeTypeRegistry` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `NodeTypeRegistry`.""" +enum NodeTypeRegistryOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + NAME_ASC + NAME_DESC + SLUG_ASC + SLUG_DESC + CATEGORY_ASC + CATEGORY_DESC +} + +""" +A condition to be used against `Object` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input ObjectCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `kids` field.""" + kids: [UUID] + + """Checks for equality with the object’s `ktree` field.""" + ktree: [String] + + """Checks for equality with the object’s `data` field.""" + data: JSON + + """Checks for equality with the object’s `frzn` field.""" + frzn: Boolean + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime +} + +""" +A filter to be used against `Object` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `Object`.""" +enum ObjectOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + FRZN_ASC + FRZN_DESC +} + +"""A connection to a list of `Commit` values.""" +type CommitConnection { + """A list of `Commit` objects.""" + nodes: [Commit]! + + """ + A list of edges which contains the `Commit` and cursor to aid in pagination. + """ + edges: [CommitEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Commit` you could get from the connection.""" + totalCount: Int! +} + +"""A commit records changes to the repository.""" +type Commit { + """The primary unique identifier for the commit.""" + id: UUID! + + """The commit message""" + message: String + + """The repository identifier""" + databaseId: UUID! + storeId: UUID! + + """Parent commits""" + parentIds: [UUID] + + """The author of the commit""" + authorId: UUID + + """The committer of the commit""" + committerId: UUID + + """The root of the tree""" + treeId: UUID + date: Datetime! +} + +"""A `Commit` edge in the connection.""" +type CommitEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Commit` at the end of the edge.""" + node: Commit +} + +""" +A condition to be used against `Commit` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input CommitCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `message` field.""" + message: String + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `storeId` field.""" + storeId: UUID + + """Checks for equality with the object’s `parentIds` field.""" + parentIds: [UUID] + + """Checks for equality with the object’s `authorId` field.""" + authorId: UUID + + """Checks for equality with the object’s `committerId` field.""" + committerId: UUID + + """Checks for equality with the object’s `treeId` field.""" + treeId: UUID + + """Checks for equality with the object’s `date` field.""" + date: Datetime +} + +""" +A filter to be used against `Commit` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `Commit`.""" +enum CommitOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""A connection to a list of `OrgMembershipDefault` values.""" +type OrgMembershipDefaultConnection { + """A list of `OrgMembershipDefault` objects.""" + nodes: [OrgMembershipDefault]! + + """ + A list of edges which contains the `OrgMembershipDefault` and cursor to aid in pagination. + """ + edges: [OrgMembershipDefaultEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgMembershipDefault` you could get from the connection. + """ + totalCount: Int! +} + +"""A `OrgMembershipDefault` edge in the connection.""" +type OrgMembershipDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgMembershipDefault` at the end of the edge.""" + node: OrgMembershipDefault +} + +""" +A condition to be used against `OrgMembershipDefault` object types. All fields +are tested for equality and combined with a logical ‘and.’ +""" +input OrgMembershipDefaultCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime + + """Checks for equality with the object’s `createdBy` field.""" + createdBy: UUID + + """Checks for equality with the object’s `updatedBy` field.""" + updatedBy: UUID + + """Checks for equality with the object’s `isApproved` field.""" + isApproved: Boolean + + """Checks for equality with the object’s `entityId` field.""" + entityId: UUID + + """ + 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.’ +""" +input 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 +} + +"""Methods to use when ordering `OrgMembershipDefault`.""" +enum 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 +} + +"""A connection to a list of `Email` values.""" +type EmailConnection { + """A list of `Email` objects.""" + nodes: [Email]! + + """ + A list of edges which contains the `Email` and cursor to aid in pagination. + """ + edges: [EmailEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Email` you could get from the connection.""" + totalCount: Int! +} + +type Email { + id: UUID! + ownerId: UUID! + email: ConstructiveInternalTypeEmail! + isVerified: Boolean! + isPrimary: Boolean! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `Email`.""" + owner: User +} + +"""A `Email` edge in the connection.""" +type EmailEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Email` at the end of the edge.""" + node: Email +} + +""" +A condition to be used against `Email` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input EmailCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `ownerId` field.""" + ownerId: UUID + + """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: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `Email`.""" +enum 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 +} + +""" +A condition to be used against `AppLevelRequirement` object types. All fields +are tested for equality and combined with a logical ‘and.’ +""" +input AppLevelRequirementCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """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: Int + + """Checks for equality with the object’s `priority` field.""" + priority: Int + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `AppLevelRequirement` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `AppLevelRequirement`.""" +enum 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 +} + +"""A connection to a list of `AuditLog` values.""" +type AuditLogConnection { + """A list of `AuditLog` objects.""" + nodes: [AuditLog]! + + """ + A list of edges which contains the `AuditLog` and cursor to aid in pagination. + """ + edges: [AuditLogEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AuditLog` you could get from the connection.""" + totalCount: Int! +} + +type AuditLog { + id: UUID! + event: String! + actorId: UUID! + origin: ConstructiveInternalTypeOrigin + userAgent: String + ipAddress: InternetAddress + success: Boolean! + createdAt: Datetime! + + """Reads a single `User` that is related to this `AuditLog`.""" + actor: User +} + +scalar ConstructiveInternalTypeOrigin + +"""A `AuditLog` edge in the connection.""" +type AuditLogEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AuditLog` at the end of the edge.""" + node: AuditLog +} + +""" +A condition to be used against `AuditLog` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input AuditLogCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `event` field.""" + event: String + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID + + """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: InternetAddress + + """Checks for equality with the object’s `success` field.""" + success: Boolean + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime +} + +""" +A filter to be used against `AuditLog` object types. All fields are combined with a logical ‘and.’ +""" +input 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.’ +""" +input 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 filter to be used against InternetAddress fields. All fields are combined with a logical ‘and.’ +""" +input InternetAddressFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: InternetAddress + + """Not equal to the specified value.""" + notEqualTo: InternetAddress + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: InternetAddress + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: InternetAddress + + """Included in the specified list.""" + in: [InternetAddress!] + + """Not included in the specified list.""" + notIn: [InternetAddress!] + + """Less than the specified value.""" + lessThan: InternetAddress + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: InternetAddress + + """Greater than the specified value.""" + greaterThan: InternetAddress + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: InternetAddress + + """Contains the specified internet address.""" + contains: InternetAddress + + """Contains or equal to the specified internet address.""" + containsOrEqualTo: InternetAddress + + """Contained by the specified internet address.""" + containedBy: InternetAddress + + """Contained by or equal to the specified internet address.""" + containedByOrEqualTo: InternetAddress + + """Contains or contained by the specified internet address.""" + containsOrContainedBy: InternetAddress +} + +"""Methods to use when ordering `AuditLog`.""" +enum AuditLogOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + EVENT_ASC + EVENT_DESC +} + +"""A connection to a list of `AppLevel` values.""" +type AppLevelConnection { + """A list of `AppLevel` objects.""" + nodes: [AppLevel]! + + """ + A list of edges which contains the `AppLevel` and cursor to aid in pagination. + """ + edges: [AppLevelEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppLevel` you could get from the connection.""" + totalCount: Int! +} + +"""Levels for achievement""" +type AppLevel { + id: UUID! + name: String! + description: String + image: ConstructiveInternalTypeImage + ownerId: UUID + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `AppLevel`.""" + owner: User +} + +"""A `AppLevel` edge in the connection.""" +type AppLevelEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLevel` at the end of the edge.""" + node: AppLevel +} + +""" +A condition to be used against `AppLevel` object types. All fields are tested +for equality and combined with a logical ‘and.’ +""" +input AppLevelCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """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: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime +} + +""" +A filter to be used against `AppLevel` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `AppLevel`.""" +enum 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 +} + +"""A connection to a list of `SqlMigration` values.""" +type SqlMigrationConnection { + """A list of `SqlMigration` objects.""" + nodes: [SqlMigration]! + + """ + A list of edges which contains the `SqlMigration` and cursor to aid in pagination. + """ + edges: [SqlMigrationEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `SqlMigration` you could get from the connection.""" + totalCount: Int! +} + +type SqlMigration { + id: Int + name: String + databaseId: UUID + deploy: String + deps: [String] + payload: JSON + content: String + revert: String + verify: String + createdAt: Datetime + action: String + actionId: UUID + actorId: UUID +} + +"""A `SqlMigration` edge in the connection.""" +type SqlMigrationEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `SqlMigration` at the end of the edge.""" + node: SqlMigration +} + +""" +A condition to be used against `SqlMigration` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input SqlMigrationCondition { + """Checks for equality with the object’s `id` field.""" + id: Int + + """Checks for equality with the object’s `name` field.""" + name: String + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """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: JSON + + """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: Datetime + + """Checks for equality with the object’s `action` field.""" + action: String + + """Checks for equality with the object’s `actionId` field.""" + actionId: UUID + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID +} + +""" +A filter to be used against `SqlMigration` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `SqlMigration`.""" +enum 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 +} + +"""A connection to a list of `AstMigration` values.""" +type AstMigrationConnection { + """A list of `AstMigration` objects.""" + nodes: [AstMigration]! + + """ + A list of edges which contains the `AstMigration` and cursor to aid in pagination. + """ + edges: [AstMigrationEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AstMigration` you could get from the connection.""" + totalCount: Int! +} + +type AstMigration { + id: Int + databaseId: UUID + name: String + requires: [String] + payload: JSON + deploys: String + deploy: JSON + revert: JSON + verify: JSON + createdAt: Datetime + action: String + actionId: UUID + actorId: UUID +} + +"""A `AstMigration` edge in the connection.""" +type AstMigrationEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AstMigration` at the end of the edge.""" + node: AstMigration +} + +""" +A condition to be used against `AstMigration` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input AstMigrationCondition { + """Checks for equality with the object’s `id` field.""" + id: Int + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """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: JSON + + """Checks for equality with the object’s `deploys` field.""" + deploys: String + + """Checks for equality with the object’s `deploy` field.""" + deploy: JSON + + """Checks for equality with the object’s `revert` field.""" + revert: JSON + + """Checks for equality with the object’s `verify` field.""" + verify: JSON + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `action` field.""" + action: String + + """Checks for equality with the object’s `actionId` field.""" + actionId: UUID + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID +} + +""" +A filter to be used against `AstMigration` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `AstMigration`.""" +enum 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 +} + +"""A connection to a list of `AppMembership` values.""" +type AppMembershipConnection { + """A list of `AppMembership` objects.""" + nodes: [AppMembership]! + + """ + A list of edges which contains the `AppMembership` and cursor to aid in pagination. + """ + edges: [AppMembershipEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppMembership` you could get from the connection.""" + totalCount: Int! +} + +"""A `AppMembership` edge in the connection.""" +type AppMembershipEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppMembership` at the end of the edge.""" + node: AppMembership +} + +""" +A condition to be used against `AppMembership` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input AppMembershipCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime + + """Checks for equality with the object’s `createdBy` field.""" + createdBy: UUID + + """Checks for equality with the object’s `updatedBy` field.""" + updatedBy: UUID + + """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: BitString + + """Checks for equality with the object’s `granted` field.""" + granted: BitString + + """Checks for equality with the object’s `actorId` field.""" + actorId: UUID +} + +""" +A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `AppMembership`.""" +enum 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 +} + +"""A connection to a list of `User` values.""" +type UserConnection { + """A list of `User` objects.""" + nodes: [User]! + + """ + A list of edges which contains the `User` and cursor to aid in pagination. + """ + edges: [UserEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `User` you could get from the connection.""" + totalCount: Int! +} + +"""A `User` edge in the connection.""" +type UserEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `User` at the end of the edge.""" + node: User +} + +""" +A condition to be used against `User` object types. All fields are tested for equality and combined with a logical ‘and.’ +""" +input UserCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """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: FullText + + """Checks for equality with the object’s `type` field.""" + type: Int + + """Checks for equality with the object’s `createdAt` field.""" + createdAt: Datetime + + """Checks for equality with the object’s `updatedAt` field.""" + updatedAt: Datetime + + """ + 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.’ +""" +input 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 FullText fields. All fields are combined with a logical ‘and.’ +""" +input FullTextFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: FullText + + """Not equal to the specified value.""" + notEqualTo: FullText + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: FullText + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: FullText + + """Included in the specified list.""" + in: [FullText!] + + """Not included in the specified list.""" + notIn: [FullText!] + + """Performs a full text search on the field.""" + matches: String +} + +"""Methods to use when ordering `User`.""" +enum 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 connection to a list of `HierarchyModule` values.""" +type HierarchyModuleConnection { + """A list of `HierarchyModule` objects.""" + nodes: [HierarchyModule]! + + """ + A list of edges which contains the `HierarchyModule` and cursor to aid in pagination. + """ + edges: [HierarchyModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `HierarchyModule` you could get from the connection. + """ + totalCount: Int! +} + +"""A `HierarchyModule` edge in the connection.""" +type HierarchyModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `HierarchyModule` at the end of the edge.""" + node: HierarchyModule +} + +""" +A condition to be used against `HierarchyModule` object types. All fields are +tested for equality and combined with a logical ‘and.’ +""" +input HierarchyModuleCondition { + """Checks for equality with the object’s `id` field.""" + id: UUID + + """Checks for equality with the object’s `databaseId` field.""" + databaseId: UUID + + """Checks for equality with the object’s `schemaId` field.""" + schemaId: UUID + + """Checks for equality with the object’s `privateSchemaId` field.""" + privateSchemaId: UUID + + """Checks for equality with the object’s `chartEdgesTableId` field.""" + chartEdgesTableId: UUID + + """Checks for equality with the object’s `chartEdgesTableName` field.""" + chartEdgesTableName: String + + """Checks for equality with the object’s `hierarchySprtTableId` field.""" + hierarchySprtTableId: UUID + + """Checks for equality with the object’s `hierarchySprtTableName` field.""" + hierarchySprtTableName: String + + """Checks for equality with the object’s `chartEdgeGrantsTableId` field.""" + chartEdgeGrantsTableId: UUID + + """ + Checks for equality with the object’s `chartEdgeGrantsTableName` field. + """ + chartEdgeGrantsTableName: String + + """Checks for equality with the object’s `entityTableId` field.""" + entityTableId: UUID + + """Checks for equality with the object’s `usersTableId` field.""" + usersTableId: UUID + + """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: Datetime +} + +""" +A filter to be used against `HierarchyModule` object types. All fields are combined with a logical ‘and.’ +""" +input 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 +} + +"""Methods to use when ordering `HierarchyModule`.""" +enum HierarchyModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC +} + +"""Root meta schema type""" +type MetaSchema { + tables: [MetaTable!]! +} + +"""Information about a database table""" +type 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""" +type MetaField { + name: String! + type: MetaType! + isNotNull: Boolean! + hasDefault: Boolean! +} + +"""Information about a PostgreSQL type""" +type MetaType { + pgType: String! + gqlType: String! + isArray: Boolean! + isNotNull: Boolean + hasDefault: Boolean +} + +"""Information about a database index""" +type MetaIndex { + name: String! + isUnique: Boolean! + isPrimary: Boolean! + columns: [String!]! + fields: [MetaField!] +} + +"""Table constraints""" +type MetaConstraints { + primaryKey: MetaPrimaryKeyConstraint + unique: [MetaUniqueConstraint!]! + foreignKey: [MetaForeignKeyConstraint!]! +} + +"""Information about a primary key constraint""" +type MetaPrimaryKeyConstraint { + name: String! + fields: [MetaField!]! +} + +"""Information about a unique constraint""" +type MetaUniqueConstraint { + name: String! + fields: [MetaField!]! +} + +"""Information about a foreign key constraint""" +type MetaForeignKeyConstraint { + name: String! + fields: [MetaField!]! + referencedTable: String! + referencedFields: [String!]! + refFields: [MetaField!] + refTable: MetaRefTable +} + +"""Reference to a related table""" +type MetaRefTable { + name: String! +} + +"""Table relations""" +type MetaRelations { + belongsTo: [MetaBelongsToRelation!]! + has: [MetaHasRelation!]! + hasOne: [MetaHasRelation!]! + hasMany: [MetaHasRelation!]! + manyToMany: [MetaManyToManyRelation!]! +} + +"""A belongs-to (forward FK) relation""" +type MetaBelongsToRelation { + fieldName: String + isUnique: Boolean! + type: String + keys: [MetaField!]! + references: MetaRefTable! +} + +"""A has-one or has-many (reverse FK) relation""" +type MetaHasRelation { + fieldName: String + isUnique: Boolean! + type: String + keys: [MetaField!]! + referencedBy: MetaRefTable! +} + +"""A many-to-many relation via junction table""" +type MetaManyToManyRelation { + fieldName: String + type: String + junctionTable: MetaRefTable! + junctionLeftConstraint: MetaForeignKeyConstraint! + junctionLeftKeyAttributes: [MetaField!]! + junctionRightConstraint: MetaForeignKeyConstraint! + junctionRightKeyAttributes: [MetaField!]! + leftKeyAttributes: [MetaField!]! + rightKeyAttributes: [MetaField!]! + rightTable: MetaRefTable! +} + +"""Table inflection names""" +type MetaInflection { + tableType: String! + allRows: String! + connection: String! + edge: String! + filterType: String + orderByType: String! + conditionType: String! + patchType: String + createInputType: String! + createPayloadType: String! + updatePayloadType: String + deletePayloadType: String! +} + +"""Table query/mutation names""" +type MetaQuery { + all: String! + one: String + create: String + update: String + delete: String +} + +""" +The root mutation type which contains root level fields which mutate data. +""" +type Mutation { + signOut( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SignOutInput! + ): SignOutPayload + sendAccountDeletionEmail( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SendAccountDeletionEmailInput! + ): SendAccountDeletionEmailPayload + checkPassword( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CheckPasswordInput! + ): CheckPasswordPayload + submitInviteCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SubmitInviteCodeInput! + ): SubmitInviteCodePayload + submitOrgInviteCode( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SubmitOrgInviteCodeInput! + ): SubmitOrgInviteCodePayload + freezeObjects( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: FreezeObjectsInput! + ): FreezeObjectsPayload + initEmptyRepo( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: InitEmptyRepoInput! + ): InitEmptyRepoPayload + confirmDeleteAccount( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ConfirmDeleteAccountInput! + ): ConfirmDeleteAccountPayload + setPassword( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SetPasswordInput! + ): SetPasswordPayload + verifyEmail( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: VerifyEmailInput! + ): VerifyEmailPayload + resetPassword( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ResetPasswordInput! + ): ResetPasswordPayload + removeNodeAtPath( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: RemoveNodeAtPathInput! + ): RemoveNodeAtPathPayload + bootstrapUser( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: BootstrapUserInput! + ): BootstrapUserPayload + setDataAtPath( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SetDataAtPathInput! + ): SetDataAtPathPayload + setPropsAndCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SetPropsAndCommitInput! + ): SetPropsAndCommitPayload + provisionDatabaseWithUser( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ProvisionDatabaseWithUserInput! + ): ProvisionDatabaseWithUserPayload + signInOneTimeToken( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SignInOneTimeTokenInput! + ): SignInOneTimeTokenPayload + + "Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include levels/achievements (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n" + createUserDatabase( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateUserDatabaseInput! + ): CreateUserDatabasePayload + extendTokenExpires( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ExtendTokenExpiresInput! + ): ExtendTokenExpiresPayload + signIn( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SignInInput! + ): SignInPayload + signUp( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SignUpInput! + ): SignUpPayload + setFieldOrder( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SetFieldOrderInput! + ): SetFieldOrderPayload + oneTimeToken( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: OneTimeTokenInput! + ): OneTimeTokenPayload + insertNodeAtPath( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: InsertNodeAtPathInput! + ): InsertNodeAtPathPayload + updateNodeAtPath( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateNodeAtPathInput! + ): UpdateNodeAtPathPayload + setAndCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SetAndCommitInput! + ): SetAndCommitPayload + applyRls( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ApplyRlsInput! + ): ApplyRlsPayload + forgotPassword( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ForgotPasswordInput! + ): ForgotPasswordPayload + sendVerificationEmail( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SendVerificationEmailInput! + ): SendVerificationEmailPayload + verifyPassword( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: VerifyPasswordInput! + ): VerifyPasswordPayload + verifyTotp( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: VerifyTotpInput! + ): VerifyTotpPayload + + """Creates a single `DefaultIdsModule`.""" + createDefaultIdsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDefaultIdsModuleInput! + ): CreateDefaultIdsModulePayload + + """Creates a single `ViewTable`.""" + createViewTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateViewTableInput! + ): CreateViewTablePayload + + """Creates a single `ApiSchema`.""" + createApiSchema( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateApiSchemaInput! + ): CreateApiSchemaPayload + + """Creates a single `SiteTheme`.""" + createSiteTheme( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSiteThemeInput! + ): CreateSiteThemePayload + + """Creates a single `OrgMember`.""" + createOrgMember( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMemberInput! + ): CreateOrgMemberPayload + + """Creates a single `AppPermissionDefault`.""" + createAppPermissionDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppPermissionDefaultInput! + ): CreateAppPermissionDefaultPayload + + """Creates a single `Ref`.""" + createRef( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRefInput! + ): CreateRefPayload + + """Creates a single `Store`.""" + createStore( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateStoreInput! + ): CreateStorePayload + + """Creates a single `ApiModule`.""" + createApiModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateApiModuleInput! + ): CreateApiModulePayload + + """Creates a single `SiteModule`.""" + createSiteModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSiteModuleInput! + ): CreateSiteModulePayload + + """Creates a single `EncryptedSecretsModule`.""" + createEncryptedSecretsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateEncryptedSecretsModuleInput! + ): CreateEncryptedSecretsModulePayload + + """Creates a single `MembershipTypesModule`.""" + createMembershipTypesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateMembershipTypesModuleInput! + ): CreateMembershipTypesModulePayload + + """Creates a single `SecretsModule`.""" + createSecretsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSecretsModuleInput! + ): CreateSecretsModulePayload + + """Creates a single `UuidModule`.""" + createUuidModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateUuidModuleInput! + ): CreateUuidModulePayload + + """Creates a single `RoleType`.""" + createRoleType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRoleTypeInput! + ): CreateRoleTypePayload + + """Creates a single `OrgPermissionDefault`.""" + createOrgPermissionDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgPermissionDefaultInput! + ): CreateOrgPermissionDefaultPayload + + """Creates a single `SchemaGrant`.""" + createSchemaGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSchemaGrantInput! + ): CreateSchemaGrantPayload + + """Creates a single `TriggerFunction`.""" + createTriggerFunction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateTriggerFunctionInput! + ): CreateTriggerFunctionPayload + + """Creates a single `ViewGrant`.""" + createViewGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateViewGrantInput! + ): CreateViewGrantPayload + + """Creates a single `ViewRule`.""" + createViewRule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateViewRuleInput! + ): CreateViewRulePayload + + """Creates a single `AppAdminGrant`.""" + createAppAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppAdminGrantInput! + ): CreateAppAdminGrantPayload + + """Creates a single `AppOwnerGrant`.""" + createAppOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppOwnerGrantInput! + ): CreateAppOwnerGrantPayload + + """Creates a single `AppLimitDefault`.""" + createAppLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitDefaultInput! + ): CreateAppLimitDefaultPayload + + """Creates a single `OrgLimitDefault`.""" + createOrgLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitDefaultInput! + ): CreateOrgLimitDefaultPayload + + """Creates a single `Api`.""" + createApi( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateApiInput! + ): CreateApiPayload + + """Creates a single `ConnectedAccountsModule`.""" + createConnectedAccountsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateConnectedAccountsModuleInput! + ): CreateConnectedAccountsModulePayload + + """Creates a single `EmailsModule`.""" + createEmailsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateEmailsModuleInput! + ): CreateEmailsModulePayload + + """Creates a single `PhoneNumbersModule`.""" + createPhoneNumbersModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePhoneNumbersModuleInput! + ): CreatePhoneNumbersModulePayload + + """Creates a single `TableModule`.""" + createTableModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateTableModuleInput! + ): CreateTableModulePayload + + """Creates a single `UsersModule`.""" + createUsersModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateUsersModuleInput! + ): CreateUsersModulePayload + + """Creates a single `OrgAdminGrant`.""" + createOrgAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgAdminGrantInput! + ): CreateOrgAdminGrantPayload + + """Creates a single `OrgOwnerGrant`.""" + createOrgOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgOwnerGrantInput! + ): CreateOrgOwnerGrantPayload + + """Creates a single `CryptoAddress`.""" + createCryptoAddress( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateCryptoAddressInput! + ): CreateCryptoAddressPayload + + """Creates a single `MembershipType`.""" + createMembershipType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateMembershipTypeInput! + ): CreateMembershipTypePayload + + """Creates a single `Database`.""" + createDatabase( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDatabaseInput! + ): CreateDatabasePayload + + """Creates a single `LimitFunction`.""" + createLimitFunction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateLimitFunctionInput! + ): CreateLimitFunctionPayload + + """Creates a single `TableGrant`.""" + createTableGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateTableGrantInput! + ): CreateTableGrantPayload + + """Creates a single `CryptoAddressesModule`.""" + createCryptoAddressesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateCryptoAddressesModuleInput! + ): CreateCryptoAddressesModulePayload + + """Creates a single `ConnectedAccount`.""" + createConnectedAccount( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateConnectedAccountInput! + ): CreateConnectedAccountPayload + + """Creates a single `PhoneNumber`.""" + createPhoneNumber( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePhoneNumberInput! + ): CreatePhoneNumberPayload + + """Creates a single `AppPermission`.""" + createAppPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppPermissionInput! + ): CreateAppPermissionPayload + + """Creates a single `OrgPermission`.""" + createOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgPermissionInput! + ): CreateOrgPermissionPayload + + """Creates a single `AppLimit`.""" + createAppLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitInput! + ): CreateAppLimitPayload + + """Creates a single `AppAchievement`.""" + createAppAchievement( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppAchievementInput! + ): CreateAppAchievementPayload + + """Creates a single `AppStep`.""" + createAppStep( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppStepInput! + ): CreateAppStepPayload + + """Creates a single `ClaimedInvite`.""" + createClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateClaimedInviteInput! + ): CreateClaimedInvitePayload + + """Creates a single `AppMembershipDefault`.""" + createAppMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppMembershipDefaultInput! + ): CreateAppMembershipDefaultPayload + + """Creates a single `SiteMetadatum`.""" + createSiteMetadatum( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSiteMetadatumInput! + ): CreateSiteMetadatumPayload + + """Creates a single `FieldModule`.""" + createFieldModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFieldModuleInput! + ): CreateFieldModulePayload + + """Creates a single `TableTemplateModule`.""" + createTableTemplateModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateTableTemplateModuleInput! + ): CreateTableTemplateModulePayload + + """Creates a single `NodeTypeRegistry`.""" + createNodeTypeRegistry( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateNodeTypeRegistryInput! + ): CreateNodeTypeRegistryPayload + + """Creates a single `Object`.""" + createObject( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateObjectInput! + ): CreateObjectPayload + + """Creates a single `FullTextSearch`.""" + createFullTextSearch( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFullTextSearchInput! + ): CreateFullTextSearchPayload + + """Creates a single `Commit`.""" + createCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateCommitInput! + ): CreateCommitPayload + + """Creates a single `OrgLimit`.""" + createOrgLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitInput! + ): CreateOrgLimitPayload + + """Creates a single `AppGrant`.""" + createAppGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppGrantInput! + ): CreateAppGrantPayload + + """Creates a single `OrgClaimedInvite`.""" + createOrgClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgClaimedInviteInput! + ): CreateOrgClaimedInvitePayload + + """Creates a single `Domain`.""" + createDomain( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDomainInput! + ): CreateDomainPayload + + """Creates a single `OrgGrant`.""" + createOrgGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgGrantInput! + ): CreateOrgGrantPayload + + """Creates a single `OrgMembershipDefault`.""" + createOrgMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMembershipDefaultInput! + ): CreateOrgMembershipDefaultPayload + + """Creates a single `SessionsModule`.""" + createSessionsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSessionsModuleInput! + ): CreateSessionsModulePayload + + """Creates a single `Email`.""" + createEmail( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateEmailInput! + ): CreateEmailPayload + + """Creates a single `AppLevelRequirement`.""" + createAppLevelRequirement( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLevelRequirementInput! + ): CreateAppLevelRequirementPayload + + """Creates a single `AuditLog`.""" + createAuditLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAuditLogInput! + ): CreateAuditLogPayload + + """Creates a single `AppLevel`.""" + createAppLevel( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLevelInput! + ): CreateAppLevelPayload + + """Creates a single `RlsModule`.""" + createRlsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRlsModuleInput! + ): CreateRlsModulePayload + + """Creates a single `DenormalizedTableField`.""" + createDenormalizedTableField( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDenormalizedTableFieldInput! + ): CreateDenormalizedTableFieldPayload + + """Creates a single `SqlMigration`.""" + createSqlMigration( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSqlMigrationInput! + ): CreateSqlMigrationPayload + + """Creates a single `CryptoAuthModule`.""" + createCryptoAuthModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateCryptoAuthModuleInput! + ): CreateCryptoAuthModulePayload + + """Creates a single `DatabaseProvisionModule`.""" + createDatabaseProvisionModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDatabaseProvisionModuleInput! + ): CreateDatabaseProvisionModulePayload + + """Creates a single `InvitesModule`.""" + createInvitesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateInvitesModuleInput! + ): CreateInvitesModulePayload + + """Creates a single `View`.""" + createView( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateViewInput! + ): CreateViewPayload + + """Creates a single `AstMigration`.""" + createAstMigration( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAstMigrationInput! + ): CreateAstMigrationPayload + + """Creates a single `AppMembership`.""" + createAppMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppMembershipInput! + ): CreateAppMembershipPayload + + """Creates a single `OrgMembership`.""" + createOrgMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMembershipInput! + ): CreateOrgMembershipPayload + + """Creates a single `App`.""" + createApp( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppInput! + ): CreateAppPayload + + """Creates a single `Site`.""" + createSite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSiteInput! + ): CreateSitePayload + + """Creates a single `User`.""" + createUser( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateUserInput! + ): CreateUserPayload + + """Creates a single `PermissionsModule`.""" + createPermissionsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePermissionsModuleInput! + ): CreatePermissionsModulePayload + + """Creates a single `PrimaryKeyConstraint`.""" + createPrimaryKeyConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePrimaryKeyConstraintInput! + ): CreatePrimaryKeyConstraintPayload + + """Creates a single `Trigger`.""" + createTrigger( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateTriggerInput! + ): CreateTriggerPayload + + """Creates a single `CheckConstraint`.""" + createCheckConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateCheckConstraintInput! + ): CreateCheckConstraintPayload + + """Creates a single `UniqueConstraint`.""" + createUniqueConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateUniqueConstraintInput! + ): CreateUniqueConstraintPayload + + """Creates a single `Procedure`.""" + createProcedure( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateProcedureInput! + ): CreateProcedurePayload + + """Creates a single `Policy`.""" + createPolicy( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePolicyInput! + ): CreatePolicyPayload + + """Creates a single `Invite`.""" + createInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateInviteInput! + ): CreateInvitePayload + + """Creates a single `Index`.""" + createIndex( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateIndexInput! + ): CreateIndexPayload + + """Creates a single `LimitsModule`.""" + createLimitsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateLimitsModuleInput! + ): CreateLimitsModulePayload + + """Creates a single `Schema`.""" + createSchema( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSchemaInput! + ): CreateSchemaPayload + + """Creates a single `ProfilesModule`.""" + createProfilesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateProfilesModuleInput! + ): CreateProfilesModulePayload + + """Creates a single `OrgInvite`.""" + createOrgInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgInviteInput! + ): CreateOrgInvitePayload + + """Creates a single `HierarchyModule`.""" + createHierarchyModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateHierarchyModuleInput! + ): CreateHierarchyModulePayload + + """Creates a single `ForeignKeyConstraint`.""" + createForeignKeyConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateForeignKeyConstraintInput! + ): CreateForeignKeyConstraintPayload + + """Creates a single `Table`.""" + createTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateTableInput! + ): CreateTablePayload + + """Creates a single `LevelsModule`.""" + createLevelsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateLevelsModuleInput! + ): CreateLevelsModulePayload + + """Creates a single `UserAuthModule`.""" + createUserAuthModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateUserAuthModuleInput! + ): CreateUserAuthModulePayload + + """Creates a single `Field`.""" + createField( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFieldInput! + ): CreateFieldPayload + + """Creates a single `MembershipsModule`.""" + createMembershipsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateMembershipsModuleInput! + ): CreateMembershipsModulePayload + + """Updates a single `DefaultIdsModule` using a unique key and a patch.""" + updateDefaultIdsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDefaultIdsModuleInput! + ): UpdateDefaultIdsModulePayload + + """Updates a single `ViewTable` using a unique key and a patch.""" + updateViewTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateViewTableInput! + ): UpdateViewTablePayload + + """Updates a single `ApiSchema` using a unique key and a patch.""" + updateApiSchema( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateApiSchemaInput! + ): UpdateApiSchemaPayload + + """Updates a single `SiteTheme` using a unique key and a patch.""" + updateSiteTheme( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSiteThemeInput! + ): UpdateSiteThemePayload + + """Updates a single `OrgMember` using a unique key and a patch.""" + updateOrgMember( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMemberInput! + ): UpdateOrgMemberPayload + + """ + Updates a single `AppPermissionDefault` using a unique key and a patch. + """ + updateAppPermissionDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppPermissionDefaultInput! + ): UpdateAppPermissionDefaultPayload + + """Updates a single `Ref` using a unique key and a patch.""" + updateRef( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRefInput! + ): UpdateRefPayload + + """Updates a single `Store` using a unique key and a patch.""" + updateStore( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateStoreInput! + ): UpdateStorePayload + + """Updates a single `ApiModule` using a unique key and a patch.""" + updateApiModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateApiModuleInput! + ): UpdateApiModulePayload + + """Updates a single `SiteModule` using a unique key and a patch.""" + updateSiteModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSiteModuleInput! + ): UpdateSiteModulePayload + + """ + Updates a single `EncryptedSecretsModule` using a unique key and a patch. + """ + updateEncryptedSecretsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateEncryptedSecretsModuleInput! + ): UpdateEncryptedSecretsModulePayload + + """ + Updates a single `MembershipTypesModule` using a unique key and a patch. + """ + updateMembershipTypesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateMembershipTypesModuleInput! + ): UpdateMembershipTypesModulePayload + + """Updates a single `SecretsModule` using a unique key and a patch.""" + updateSecretsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSecretsModuleInput! + ): UpdateSecretsModulePayload + + """Updates a single `UuidModule` using a unique key and a patch.""" + updateUuidModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateUuidModuleInput! + ): UpdateUuidModulePayload + + """Updates a single `RoleType` using a unique key and a patch.""" + updateRoleType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRoleTypeInput! + ): UpdateRoleTypePayload + + """ + Updates a single `OrgPermissionDefault` using a unique key and a patch. + """ + updateOrgPermissionDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgPermissionDefaultInput! + ): UpdateOrgPermissionDefaultPayload + + """Updates a single `SchemaGrant` using a unique key and a patch.""" + updateSchemaGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSchemaGrantInput! + ): UpdateSchemaGrantPayload + + """Updates a single `TriggerFunction` using a unique key and a patch.""" + updateTriggerFunction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateTriggerFunctionInput! + ): UpdateTriggerFunctionPayload + + """Updates a single `ViewGrant` using a unique key and a patch.""" + updateViewGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateViewGrantInput! + ): UpdateViewGrantPayload + + """Updates a single `ViewRule` using a unique key and a patch.""" + updateViewRule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateViewRuleInput! + ): UpdateViewRulePayload + + """Updates a single `AppAdminGrant` using a unique key and a patch.""" + updateAppAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppAdminGrantInput! + ): UpdateAppAdminGrantPayload + + """Updates a single `AppOwnerGrant` using a unique key and a patch.""" + updateAppOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppOwnerGrantInput! + ): UpdateAppOwnerGrantPayload + + """Updates a single `AppLimitDefault` using a unique key and a patch.""" + updateAppLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitDefaultInput! + ): UpdateAppLimitDefaultPayload + + """Updates a single `OrgLimitDefault` using a unique key and a patch.""" + updateOrgLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitDefaultInput! + ): UpdateOrgLimitDefaultPayload + + """Updates a single `Api` using a unique key and a patch.""" + updateApi( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateApiInput! + ): UpdateApiPayload + + """ + Updates a single `ConnectedAccountsModule` using a unique key and a patch. + """ + updateConnectedAccountsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateConnectedAccountsModuleInput! + ): UpdateConnectedAccountsModulePayload + + """Updates a single `EmailsModule` using a unique key and a patch.""" + updateEmailsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateEmailsModuleInput! + ): UpdateEmailsModulePayload + + """Updates a single `PhoneNumbersModule` using a unique key and a patch.""" + updatePhoneNumbersModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePhoneNumbersModuleInput! + ): UpdatePhoneNumbersModulePayload + + """Updates a single `TableModule` using a unique key and a patch.""" + updateTableModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateTableModuleInput! + ): UpdateTableModulePayload + + """Updates a single `UsersModule` using a unique key and a patch.""" + updateUsersModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateUsersModuleInput! + ): UpdateUsersModulePayload + + """Updates a single `OrgAdminGrant` using a unique key and a patch.""" + updateOrgAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgAdminGrantInput! + ): UpdateOrgAdminGrantPayload + + """Updates a single `OrgOwnerGrant` using a unique key and a patch.""" + updateOrgOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgOwnerGrantInput! + ): UpdateOrgOwnerGrantPayload + + """Updates a single `CryptoAddress` using a unique key and a patch.""" + updateCryptoAddress( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateCryptoAddressInput! + ): UpdateCryptoAddressPayload + + """Updates a single `MembershipType` using a unique key and a patch.""" + updateMembershipType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateMembershipTypeInput! + ): UpdateMembershipTypePayload + + """Updates a single `Database` using a unique key and a patch.""" + updateDatabase( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDatabaseInput! + ): UpdateDatabasePayload + + """Updates a single `LimitFunction` using a unique key and a patch.""" + updateLimitFunction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateLimitFunctionInput! + ): UpdateLimitFunctionPayload + + """Updates a single `TableGrant` using a unique key and a patch.""" + updateTableGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateTableGrantInput! + ): UpdateTableGrantPayload + + """ + Updates a single `CryptoAddressesModule` using a unique key and a patch. + """ + updateCryptoAddressesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateCryptoAddressesModuleInput! + ): UpdateCryptoAddressesModulePayload + + """Updates a single `ConnectedAccount` using a unique key and a patch.""" + updateConnectedAccount( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateConnectedAccountInput! + ): UpdateConnectedAccountPayload + + """Updates a single `PhoneNumber` using a unique key and a patch.""" + updatePhoneNumber( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePhoneNumberInput! + ): UpdatePhoneNumberPayload + + """Updates a single `AppPermission` using a unique key and a patch.""" + updateAppPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppPermissionInput! + ): UpdateAppPermissionPayload + + """Updates a single `OrgPermission` using a unique key and a patch.""" + updateOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgPermissionInput! + ): UpdateOrgPermissionPayload + + """Updates a single `AppLimit` using a unique key and a patch.""" + updateAppLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitInput! + ): UpdateAppLimitPayload + + """Updates a single `AppAchievement` using a unique key and a patch.""" + updateAppAchievement( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppAchievementInput! + ): UpdateAppAchievementPayload + + """Updates a single `AppStep` using a unique key and a patch.""" + updateAppStep( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppStepInput! + ): UpdateAppStepPayload + + """Updates a single `ClaimedInvite` using a unique key and a patch.""" + updateClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateClaimedInviteInput! + ): UpdateClaimedInvitePayload + + """ + Updates a single `AppMembershipDefault` using a unique key and a patch. + """ + updateAppMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppMembershipDefaultInput! + ): UpdateAppMembershipDefaultPayload + + """Updates a single `SiteMetadatum` using a unique key and a patch.""" + updateSiteMetadatum( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSiteMetadatumInput! + ): UpdateSiteMetadatumPayload + + """Updates a single `FieldModule` using a unique key and a patch.""" + updateFieldModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFieldModuleInput! + ): UpdateFieldModulePayload + + """Updates a single `TableTemplateModule` using a unique key and a patch.""" + updateTableTemplateModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateTableTemplateModuleInput! + ): UpdateTableTemplateModulePayload + + """Updates a single `NodeTypeRegistry` using a unique key and a patch.""" + updateNodeTypeRegistry( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateNodeTypeRegistryInput! + ): UpdateNodeTypeRegistryPayload + + """Updates a single `Object` using a unique key and a patch.""" + updateObject( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateObjectInput! + ): UpdateObjectPayload + + """Updates a single `FullTextSearch` using a unique key and a patch.""" + updateFullTextSearch( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFullTextSearchInput! + ): UpdateFullTextSearchPayload + + """Updates a single `Commit` using a unique key and a patch.""" + updateCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateCommitInput! + ): UpdateCommitPayload + + """Updates a single `OrgLimit` using a unique key and a patch.""" + updateOrgLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitInput! + ): UpdateOrgLimitPayload + + """Updates a single `AppGrant` using a unique key and a patch.""" + updateAppGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppGrantInput! + ): UpdateAppGrantPayload + + """Updates a single `OrgClaimedInvite` using a unique key and a patch.""" + updateOrgClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgClaimedInviteInput! + ): UpdateOrgClaimedInvitePayload + + """Updates a single `Domain` using a unique key and a patch.""" + updateDomain( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDomainInput! + ): UpdateDomainPayload + + """Updates a single `OrgGrant` using a unique key and a patch.""" + updateOrgGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgGrantInput! + ): UpdateOrgGrantPayload + + """ + Updates a single `OrgMembershipDefault` using a unique key and a patch. + """ + updateOrgMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMembershipDefaultInput! + ): UpdateOrgMembershipDefaultPayload + + """Updates a single `SessionsModule` using a unique key and a patch.""" + updateSessionsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSessionsModuleInput! + ): UpdateSessionsModulePayload + + """Updates a single `Email` using a unique key and a patch.""" + updateEmail( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateEmailInput! + ): UpdateEmailPayload + + """Updates a single `AppLevelRequirement` using a unique key and a patch.""" + updateAppLevelRequirement( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLevelRequirementInput! + ): UpdateAppLevelRequirementPayload + + """Updates a single `AuditLog` using a unique key and a patch.""" + updateAuditLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAuditLogInput! + ): UpdateAuditLogPayload + + """Updates a single `AppLevel` using a unique key and a patch.""" + updateAppLevel( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLevelInput! + ): UpdateAppLevelPayload + + """Updates a single `RlsModule` using a unique key and a patch.""" + updateRlsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRlsModuleInput! + ): UpdateRlsModulePayload + + """ + Updates a single `DenormalizedTableField` using a unique key and a patch. + """ + updateDenormalizedTableField( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDenormalizedTableFieldInput! + ): UpdateDenormalizedTableFieldPayload + + """Updates a single `CryptoAuthModule` using a unique key and a patch.""" + updateCryptoAuthModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateCryptoAuthModuleInput! + ): UpdateCryptoAuthModulePayload + + """ + Updates a single `DatabaseProvisionModule` using a unique key and a patch. + """ + updateDatabaseProvisionModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDatabaseProvisionModuleInput! + ): UpdateDatabaseProvisionModulePayload + + """Updates a single `InvitesModule` using a unique key and a patch.""" + updateInvitesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateInvitesModuleInput! + ): UpdateInvitesModulePayload + + """Updates a single `View` using a unique key and a patch.""" + updateView( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateViewInput! + ): UpdateViewPayload + + """Updates a single `AppMembership` using a unique key and a patch.""" + updateAppMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppMembershipInput! + ): UpdateAppMembershipPayload + + """Updates a single `OrgMembership` using a unique key and a patch.""" + updateOrgMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMembershipInput! + ): UpdateOrgMembershipPayload + + """Updates a single `App` using a unique key and a patch.""" + updateApp( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppInput! + ): UpdateAppPayload + + """Updates a single `Site` using a unique key and a patch.""" + updateSite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSiteInput! + ): UpdateSitePayload + + """Updates a single `User` using a unique key and a patch.""" + updateUser( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateUserInput! + ): UpdateUserPayload + + """Updates a single `PermissionsModule` using a unique key and a patch.""" + updatePermissionsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePermissionsModuleInput! + ): UpdatePermissionsModulePayload + + """ + Updates a single `PrimaryKeyConstraint` using a unique key and a patch. + """ + updatePrimaryKeyConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePrimaryKeyConstraintInput! + ): UpdatePrimaryKeyConstraintPayload + + """Updates a single `Trigger` using a unique key and a patch.""" + updateTrigger( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateTriggerInput! + ): UpdateTriggerPayload + + """Updates a single `CheckConstraint` using a unique key and a patch.""" + updateCheckConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateCheckConstraintInput! + ): UpdateCheckConstraintPayload + + """Updates a single `UniqueConstraint` using a unique key and a patch.""" + updateUniqueConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateUniqueConstraintInput! + ): UpdateUniqueConstraintPayload + + """Updates a single `Procedure` using a unique key and a patch.""" + updateProcedure( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateProcedureInput! + ): UpdateProcedurePayload + + """Updates a single `Policy` using a unique key and a patch.""" + updatePolicy( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePolicyInput! + ): UpdatePolicyPayload + + """Updates a single `Invite` using a unique key and a patch.""" + updateInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateInviteInput! + ): UpdateInvitePayload + + """Updates a single `Index` using a unique key and a patch.""" + updateIndex( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateIndexInput! + ): UpdateIndexPayload + + """Updates a single `LimitsModule` using a unique key and a patch.""" + updateLimitsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateLimitsModuleInput! + ): UpdateLimitsModulePayload + + """Updates a single `Schema` using a unique key and a patch.""" + updateSchema( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSchemaInput! + ): UpdateSchemaPayload + + """Updates a single `ProfilesModule` using a unique key and a patch.""" + updateProfilesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateProfilesModuleInput! + ): UpdateProfilesModulePayload + + """Updates a single `OrgInvite` using a unique key and a patch.""" + updateOrgInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgInviteInput! + ): UpdateOrgInvitePayload + + """Updates a single `HierarchyModule` using a unique key and a patch.""" + updateHierarchyModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateHierarchyModuleInput! + ): UpdateHierarchyModulePayload + + """ + Updates a single `ForeignKeyConstraint` using a unique key and a patch. + """ + updateForeignKeyConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateForeignKeyConstraintInput! + ): UpdateForeignKeyConstraintPayload + + """Updates a single `Table` using a unique key and a patch.""" + updateTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateTableInput! + ): UpdateTablePayload + + """Updates a single `LevelsModule` using a unique key and a patch.""" + updateLevelsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateLevelsModuleInput! + ): UpdateLevelsModulePayload + + """Updates a single `UserAuthModule` using a unique key and a patch.""" + updateUserAuthModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateUserAuthModuleInput! + ): UpdateUserAuthModulePayload + + """Updates a single `Field` using a unique key and a patch.""" + updateField( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFieldInput! + ): UpdateFieldPayload + + """Updates a single `MembershipsModule` using a unique key and a patch.""" + updateMembershipsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateMembershipsModuleInput! + ): UpdateMembershipsModulePayload + + """Deletes a single `DefaultIdsModule` using a unique key.""" + deleteDefaultIdsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDefaultIdsModuleInput! + ): DeleteDefaultIdsModulePayload + + """Deletes a single `ViewTable` using a unique key.""" + deleteViewTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteViewTableInput! + ): DeleteViewTablePayload + + """Deletes a single `ApiSchema` using a unique key.""" + deleteApiSchema( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteApiSchemaInput! + ): DeleteApiSchemaPayload + + """Deletes a single `SiteTheme` using a unique key.""" + deleteSiteTheme( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSiteThemeInput! + ): DeleteSiteThemePayload + + """Deletes a single `OrgMember` using a unique key.""" + deleteOrgMember( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMemberInput! + ): DeleteOrgMemberPayload + + """Deletes a single `AppPermissionDefault` using a unique key.""" + deleteAppPermissionDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppPermissionDefaultInput! + ): DeleteAppPermissionDefaultPayload + + """Deletes a single `Ref` using a unique key.""" + deleteRef( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRefInput! + ): DeleteRefPayload + + """Deletes a single `Store` using a unique key.""" + deleteStore( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteStoreInput! + ): DeleteStorePayload + + """Deletes a single `ApiModule` using a unique key.""" + deleteApiModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteApiModuleInput! + ): DeleteApiModulePayload + + """Deletes a single `SiteModule` using a unique key.""" + deleteSiteModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSiteModuleInput! + ): DeleteSiteModulePayload + + """Deletes a single `EncryptedSecretsModule` using a unique key.""" + deleteEncryptedSecretsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteEncryptedSecretsModuleInput! + ): DeleteEncryptedSecretsModulePayload + + """Deletes a single `MembershipTypesModule` using a unique key.""" + deleteMembershipTypesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteMembershipTypesModuleInput! + ): DeleteMembershipTypesModulePayload + + """Deletes a single `SecretsModule` using a unique key.""" + deleteSecretsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSecretsModuleInput! + ): DeleteSecretsModulePayload + + """Deletes a single `UuidModule` using a unique key.""" + deleteUuidModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteUuidModuleInput! + ): DeleteUuidModulePayload + + """Deletes a single `RoleType` using a unique key.""" + deleteRoleType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRoleTypeInput! + ): DeleteRoleTypePayload + + """Deletes a single `OrgPermissionDefault` using a unique key.""" + deleteOrgPermissionDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgPermissionDefaultInput! + ): DeleteOrgPermissionDefaultPayload + + """Deletes a single `SchemaGrant` using a unique key.""" + deleteSchemaGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSchemaGrantInput! + ): DeleteSchemaGrantPayload + + """Deletes a single `TriggerFunction` using a unique key.""" + deleteTriggerFunction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteTriggerFunctionInput! + ): DeleteTriggerFunctionPayload + + """Deletes a single `ViewGrant` using a unique key.""" + deleteViewGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteViewGrantInput! + ): DeleteViewGrantPayload + + """Deletes a single `ViewRule` using a unique key.""" + deleteViewRule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteViewRuleInput! + ): DeleteViewRulePayload + + """Deletes a single `AppAdminGrant` using a unique key.""" + deleteAppAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppAdminGrantInput! + ): DeleteAppAdminGrantPayload + + """Deletes a single `AppOwnerGrant` using a unique key.""" + deleteAppOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppOwnerGrantInput! + ): DeleteAppOwnerGrantPayload + + """Deletes a single `AppLimitDefault` using a unique key.""" + deleteAppLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitDefaultInput! + ): DeleteAppLimitDefaultPayload + + """Deletes a single `OrgLimitDefault` using a unique key.""" + deleteOrgLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitDefaultInput! + ): DeleteOrgLimitDefaultPayload + + """Deletes a single `Api` using a unique key.""" + deleteApi( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteApiInput! + ): DeleteApiPayload + + """Deletes a single `ConnectedAccountsModule` using a unique key.""" + deleteConnectedAccountsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteConnectedAccountsModuleInput! + ): DeleteConnectedAccountsModulePayload + + """Deletes a single `EmailsModule` using a unique key.""" + deleteEmailsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteEmailsModuleInput! + ): DeleteEmailsModulePayload + + """Deletes a single `PhoneNumbersModule` using a unique key.""" + deletePhoneNumbersModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePhoneNumbersModuleInput! + ): DeletePhoneNumbersModulePayload + + """Deletes a single `TableModule` using a unique key.""" + deleteTableModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteTableModuleInput! + ): DeleteTableModulePayload + + """Deletes a single `UsersModule` using a unique key.""" + deleteUsersModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteUsersModuleInput! + ): DeleteUsersModulePayload + + """Deletes a single `OrgAdminGrant` using a unique key.""" + deleteOrgAdminGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgAdminGrantInput! + ): DeleteOrgAdminGrantPayload + + """Deletes a single `OrgOwnerGrant` using a unique key.""" + deleteOrgOwnerGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgOwnerGrantInput! + ): DeleteOrgOwnerGrantPayload + + """Deletes a single `CryptoAddress` using a unique key.""" + deleteCryptoAddress( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteCryptoAddressInput! + ): DeleteCryptoAddressPayload + + """Deletes a single `MembershipType` using a unique key.""" + deleteMembershipType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteMembershipTypeInput! + ): DeleteMembershipTypePayload + + """Deletes a single `Database` using a unique key.""" + deleteDatabase( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDatabaseInput! + ): DeleteDatabasePayload + + """Deletes a single `LimitFunction` using a unique key.""" + deleteLimitFunction( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteLimitFunctionInput! + ): DeleteLimitFunctionPayload + + """Deletes a single `TableGrant` using a unique key.""" + deleteTableGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteTableGrantInput! + ): DeleteTableGrantPayload + + """Deletes a single `CryptoAddressesModule` using a unique key.""" + deleteCryptoAddressesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteCryptoAddressesModuleInput! + ): DeleteCryptoAddressesModulePayload + + """Deletes a single `ConnectedAccount` using a unique key.""" + deleteConnectedAccount( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteConnectedAccountInput! + ): DeleteConnectedAccountPayload + + """Deletes a single `PhoneNumber` using a unique key.""" + deletePhoneNumber( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePhoneNumberInput! + ): DeletePhoneNumberPayload + + """Deletes a single `AppPermission` using a unique key.""" + deleteAppPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppPermissionInput! + ): DeleteAppPermissionPayload + + """Deletes a single `OrgPermission` using a unique key.""" + deleteOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgPermissionInput! + ): DeleteOrgPermissionPayload + + """Deletes a single `AppLimit` using a unique key.""" + deleteAppLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitInput! + ): DeleteAppLimitPayload + + """Deletes a single `AppAchievement` using a unique key.""" + deleteAppAchievement( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppAchievementInput! + ): DeleteAppAchievementPayload + + """Deletes a single `AppStep` using a unique key.""" + deleteAppStep( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppStepInput! + ): DeleteAppStepPayload + + """Deletes a single `ClaimedInvite` using a unique key.""" + deleteClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteClaimedInviteInput! + ): DeleteClaimedInvitePayload + + """Deletes a single `AppMembershipDefault` using a unique key.""" + deleteAppMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppMembershipDefaultInput! + ): DeleteAppMembershipDefaultPayload + + """Deletes a single `SiteMetadatum` using a unique key.""" + deleteSiteMetadatum( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSiteMetadatumInput! + ): DeleteSiteMetadatumPayload + + """Deletes a single `FieldModule` using a unique key.""" + deleteFieldModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFieldModuleInput! + ): DeleteFieldModulePayload + + """Deletes a single `TableTemplateModule` using a unique key.""" + deleteTableTemplateModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteTableTemplateModuleInput! + ): DeleteTableTemplateModulePayload + + """Deletes a single `NodeTypeRegistry` using a unique key.""" + deleteNodeTypeRegistry( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteNodeTypeRegistryInput! + ): DeleteNodeTypeRegistryPayload + + """Deletes a single `Object` using a unique key.""" + deleteObject( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteObjectInput! + ): DeleteObjectPayload + + """Deletes a single `FullTextSearch` using a unique key.""" + deleteFullTextSearch( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFullTextSearchInput! + ): DeleteFullTextSearchPayload + + """Deletes a single `Commit` using a unique key.""" + deleteCommit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteCommitInput! + ): DeleteCommitPayload + + """Deletes a single `OrgLimit` using a unique key.""" + deleteOrgLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitInput! + ): DeleteOrgLimitPayload + + """Deletes a single `AppGrant` using a unique key.""" + deleteAppGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppGrantInput! + ): DeleteAppGrantPayload + + """Deletes a single `OrgClaimedInvite` using a unique key.""" + deleteOrgClaimedInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgClaimedInviteInput! + ): DeleteOrgClaimedInvitePayload + + """Deletes a single `Domain` using a unique key.""" + deleteDomain( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDomainInput! + ): DeleteDomainPayload + + """Deletes a single `OrgGrant` using a unique key.""" + deleteOrgGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgGrantInput! + ): DeleteOrgGrantPayload + + """Deletes a single `OrgMembershipDefault` using a unique key.""" + deleteOrgMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMembershipDefaultInput! + ): DeleteOrgMembershipDefaultPayload + + """Deletes a single `SessionsModule` using a unique key.""" + deleteSessionsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSessionsModuleInput! + ): DeleteSessionsModulePayload + + """Deletes a single `Email` using a unique key.""" + deleteEmail( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteEmailInput! + ): DeleteEmailPayload + + """Deletes a single `AppLevelRequirement` using a unique key.""" + deleteAppLevelRequirement( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLevelRequirementInput! + ): DeleteAppLevelRequirementPayload + + """Deletes a single `AuditLog` using a unique key.""" + deleteAuditLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAuditLogInput! + ): DeleteAuditLogPayload + + """Deletes a single `AppLevel` using a unique key.""" + deleteAppLevel( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLevelInput! + ): DeleteAppLevelPayload + + """Deletes a single `RlsModule` using a unique key.""" + deleteRlsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRlsModuleInput! + ): DeleteRlsModulePayload + + """Deletes a single `DenormalizedTableField` using a unique key.""" + deleteDenormalizedTableField( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDenormalizedTableFieldInput! + ): DeleteDenormalizedTableFieldPayload + + """Deletes a single `CryptoAuthModule` using a unique key.""" + deleteCryptoAuthModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteCryptoAuthModuleInput! + ): DeleteCryptoAuthModulePayload + + """Deletes a single `DatabaseProvisionModule` using a unique key.""" + deleteDatabaseProvisionModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDatabaseProvisionModuleInput! + ): DeleteDatabaseProvisionModulePayload + + """Deletes a single `InvitesModule` using a unique key.""" + deleteInvitesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteInvitesModuleInput! + ): DeleteInvitesModulePayload + + """Deletes a single `View` using a unique key.""" + deleteView( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteViewInput! + ): DeleteViewPayload + + """Deletes a single `AppMembership` using a unique key.""" + deleteAppMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppMembershipInput! + ): DeleteAppMembershipPayload + + """Deletes a single `OrgMembership` using a unique key.""" + deleteOrgMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMembershipInput! + ): DeleteOrgMembershipPayload + + """Deletes a single `App` using a unique key.""" + deleteApp( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppInput! + ): DeleteAppPayload + + """Deletes a single `Site` using a unique key.""" + deleteSite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSiteInput! + ): DeleteSitePayload + + """Deletes a single `User` using a unique key.""" + deleteUser( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteUserInput! + ): DeleteUserPayload + + """Deletes a single `PermissionsModule` using a unique key.""" + deletePermissionsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePermissionsModuleInput! + ): DeletePermissionsModulePayload + + """Deletes a single `PrimaryKeyConstraint` using a unique key.""" + deletePrimaryKeyConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePrimaryKeyConstraintInput! + ): DeletePrimaryKeyConstraintPayload + + """Deletes a single `Trigger` using a unique key.""" + deleteTrigger( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteTriggerInput! + ): DeleteTriggerPayload + + """Deletes a single `CheckConstraint` using a unique key.""" + deleteCheckConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteCheckConstraintInput! + ): DeleteCheckConstraintPayload + + """Deletes a single `UniqueConstraint` using a unique key.""" + deleteUniqueConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteUniqueConstraintInput! + ): DeleteUniqueConstraintPayload + + """Deletes a single `Procedure` using a unique key.""" + deleteProcedure( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteProcedureInput! + ): DeleteProcedurePayload + + """Deletes a single `Policy` using a unique key.""" + deletePolicy( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePolicyInput! + ): DeletePolicyPayload + + """Deletes a single `Invite` using a unique key.""" + deleteInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteInviteInput! + ): DeleteInvitePayload + + """Deletes a single `Index` using a unique key.""" + deleteIndex( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteIndexInput! + ): DeleteIndexPayload + + """Deletes a single `LimitsModule` using a unique key.""" + deleteLimitsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteLimitsModuleInput! + ): DeleteLimitsModulePayload + + """Deletes a single `Schema` using a unique key.""" + deleteSchema( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSchemaInput! + ): DeleteSchemaPayload + + """Deletes a single `ProfilesModule` using a unique key.""" + deleteProfilesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteProfilesModuleInput! + ): DeleteProfilesModulePayload + + """Deletes a single `OrgInvite` using a unique key.""" + deleteOrgInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgInviteInput! + ): DeleteOrgInvitePayload + + """Deletes a single `HierarchyModule` using a unique key.""" + deleteHierarchyModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteHierarchyModuleInput! + ): DeleteHierarchyModulePayload + + """Deletes a single `ForeignKeyConstraint` using a unique key.""" + deleteForeignKeyConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteForeignKeyConstraintInput! + ): DeleteForeignKeyConstraintPayload + + """Deletes a single `Table` using a unique key.""" + deleteTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteTableInput! + ): DeleteTablePayload + + """Deletes a single `LevelsModule` using a unique key.""" + deleteLevelsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteLevelsModuleInput! + ): DeleteLevelsModulePayload + + """Deletes a single `UserAuthModule` using a unique key.""" + deleteUserAuthModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteUserAuthModuleInput! + ): DeleteUserAuthModulePayload + + """Deletes a single `Field` using a unique key.""" + deleteField( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFieldInput! + ): DeleteFieldPayload + + """Deletes a single `MembershipsModule` using a unique key.""" + deleteMembershipsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteMembershipsModuleInput! + ): DeleteMembershipsModulePayload +} + +"""The output of our `signOut` mutation.""" +type 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 + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `signOut` mutation.""" +input 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 +} + +"""The output of our `sendAccountDeletionEmail` mutation.""" +type 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 + result: Boolean + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `sendAccountDeletionEmail` mutation.""" +input 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 +} + +"""The output of our `checkPassword` mutation.""" +type 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 + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `checkPassword` mutation.""" +input 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 +} + +"""The output of our `submitInviteCode` mutation.""" +type 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 + result: Boolean + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `submitInviteCode` mutation.""" +input 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 +} + +"""The output of our `submitOrgInviteCode` mutation.""" +type 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 + result: Boolean + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `submitOrgInviteCode` mutation.""" +input 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 +} + +"""The output of our `freezeObjects` mutation.""" +type 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 + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `freezeObjects` mutation.""" +input 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: UUID + id: UUID +} + +"""The output of our `initEmptyRepo` mutation.""" +type 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 + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `initEmptyRepo` mutation.""" +input 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: UUID + storeId: UUID +} + +"""The output of our `confirmDeleteAccount` mutation.""" +type 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 + result: Boolean + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `confirmDeleteAccount` mutation.""" +input 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: UUID + token: String +} + +"""The output of our `setPassword` mutation.""" +type 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 + result: Boolean + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `setPassword` mutation.""" +input 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 +} + +"""The output of our `verifyEmail` mutation.""" +type 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 + result: Boolean + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `verifyEmail` mutation.""" +input 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: UUID + token: String +} + +"""The output of our `resetPassword` mutation.""" +type 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 + result: Boolean + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `resetPassword` mutation.""" +input 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: UUID + resetToken: String + newPassword: String +} + +"""The output of our `removeNodeAtPath` mutation.""" +type 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 + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `removeNodeAtPath` mutation.""" +input 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: UUID + root: UUID + path: [String] +} + +"""The output of our `bootstrapUser` mutation.""" +type 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 + result: [BootstrapUserRecord] + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type BootstrapUserRecord { + outUserId: UUID + outEmail: String + outUsername: String + outDisplayName: String + outIsAdmin: Boolean + outIsOwner: Boolean + outIsSudo: Boolean + outApiKey: String +} + +"""All input for the `bootstrapUser` mutation.""" +input 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: UUID + password: String + isAdmin: Boolean + isOwner: Boolean + username: String + displayName: String + returnApiKey: Boolean +} + +"""The output of our `setDataAtPath` mutation.""" +type 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 + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `setDataAtPath` mutation.""" +input 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: UUID + root: UUID + path: [String] + data: JSON +} + +"""The output of our `setPropsAndCommit` mutation.""" +type 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 + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `setPropsAndCommit` mutation.""" +input 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: UUID + storeId: UUID + refname: String + path: [String] + data: JSON +} + +"""The output of our `provisionDatabaseWithUser` mutation.""" +type 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 + result: [ProvisionDatabaseWithUserRecord] + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type ProvisionDatabaseWithUserRecord { + outDatabaseId: UUID + outApiKey: String +} + +"""All input for the `provisionDatabaseWithUser` mutation.""" +input 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 + pSubdomain: String + pModules: [String] + pOptions: JSON +} + +"""The output of our `signInOneTimeToken` mutation.""" +type 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 + result: SignInOneTimeTokenRecord + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type SignInOneTimeTokenRecord { + id: UUID + userId: UUID + accessToken: String + accessTokenExpiresAt: Datetime + isVerified: Boolean + totpEnabled: Boolean +} + +"""All input for the `signInOneTimeToken` mutation.""" +input 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 +} + +"""The output of our `createUserDatabase` mutation.""" +type 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 + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `createUserDatabase` mutation.""" +input 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: UUID + includeInvites: Boolean + includeGroups: Boolean + includeLevels: Boolean + bitlen: Int + tokensExpiration: IntervalInput +} + +"""The output of our `extendTokenExpires` mutation.""" +type 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 + result: [ExtendTokenExpiresRecord] + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type ExtendTokenExpiresRecord { + id: UUID + sessionId: UUID + expiresAt: Datetime +} + +"""All input for the `extendTokenExpires` mutation.""" +input 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 +} + +"""The output of our `signIn` mutation.""" +type 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 + result: SignInRecord + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type SignInRecord { + id: UUID + userId: UUID + accessToken: String + accessTokenExpiresAt: Datetime + isVerified: Boolean + totpEnabled: Boolean +} + +"""All input for the `signIn` mutation.""" +input 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 + rememberMe: Boolean + credentialKind: String + csrfToken: String +} + +"""The output of our `signUp` mutation.""" +type 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 + result: SignUpRecord + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type SignUpRecord { + id: UUID + userId: UUID + accessToken: String + accessTokenExpiresAt: Datetime + isVerified: Boolean + totpEnabled: Boolean +} + +"""All input for the `signUp` mutation.""" +input 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 + rememberMe: Boolean + credentialKind: String + csrfToken: String +} + +"""The output of our `setFieldOrder` mutation.""" +type 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 + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `setFieldOrder` mutation.""" +input 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: [UUID] +} + +"""The output of our `oneTimeToken` mutation.""" +type 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 + result: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `oneTimeToken` mutation.""" +input 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 +} + +"""The output of our `insertNodeAtPath` mutation.""" +type 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 + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `insertNodeAtPath` mutation.""" +input 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: UUID + root: UUID + path: [String] + data: JSON + kids: [UUID] + ktree: [String] +} + +"""The output of our `updateNodeAtPath` mutation.""" +type 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 + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `updateNodeAtPath` mutation.""" +input 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: UUID + root: UUID + path: [String] + data: JSON + kids: [UUID] + ktree: [String] +} + +"""The output of our `setAndCommit` mutation.""" +type 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 + result: UUID + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `setAndCommit` mutation.""" +input 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: UUID + storeId: UUID + refname: String + path: [String] + data: JSON + kids: [UUID] + ktree: [String] +} + +"""The output of our `applyRls` mutation.""" +type 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 + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `applyRls` mutation.""" +input 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: UUID + grants: JSON + policyType: String + vars: JSON + fieldIds: [UUID] + permissive: Boolean + name: String +} + +"""The output of our `forgotPassword` mutation.""" +type 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 + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `forgotPassword` mutation.""" +input 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 +} + +"""The output of our `sendVerificationEmail` mutation.""" +type 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 + result: Boolean + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `sendVerificationEmail` mutation.""" +input 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 +} + +"""The output of our `verifyPassword` mutation.""" +type 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 + result: Session + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type Session { + id: UUID! + userId: UUID + isAnonymous: Boolean! + expiresAt: Datetime! + revokedAt: Datetime + origin: ConstructiveInternalTypeOrigin + ip: InternetAddress + uagent: String + fingerprintMode: String! + lastPasswordVerified: Datetime + lastMfaVerified: Datetime + csrfSecret: String + createdAt: Datetime + updatedAt: Datetime +} + +"""All input for the `verifyPassword` mutation.""" +input 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! +} + +"""The output of our `verifyTotp` mutation.""" +type 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 + result: Session + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `verifyTotp` mutation.""" +input 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! +} + +"""The output of our create `DefaultIdsModule` mutation.""" +type 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 + + """The `DefaultIdsModule` that was created by this mutation.""" + defaultIdsModule: DefaultIdsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DefaultIdsModule`. May be used by Relay 1.""" + defaultIdsModuleEdge( + """The method to use when ordering `DefaultIdsModule`.""" + orderBy: [DefaultIdsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DefaultIdsModuleEdge +} + +"""All input for the create `DefaultIdsModule` mutation.""" +input CreateDefaultIdsModuleInput { + """ + 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 + + """The `DefaultIdsModule` to be created by this mutation.""" + defaultIdsModule: DefaultIdsModuleInput! +} + +"""An input for mutations affecting `DefaultIdsModule`""" +input DefaultIdsModuleInput { + id: UUID + databaseId: UUID! +} + +"""The output of our create `ViewTable` mutation.""" +type 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 + + """The `ViewTable` that was created by this mutation.""" + viewTable: ViewTable + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ViewTable`. May be used by Relay 1.""" + viewTableEdge( + """The method to use when ordering `ViewTable`.""" + orderBy: [ViewTableOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewTableEdge +} + +"""All input for the create `ViewTable` mutation.""" +input CreateViewTableInput { + """ + 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 + + """The `ViewTable` to be created by this mutation.""" + viewTable: ViewTableInput! +} + +"""An input for mutations affecting `ViewTable`""" +input ViewTableInput { + id: UUID + viewId: UUID! + tableId: UUID! + joinOrder: Int +} + +"""The output of our create `ApiSchema` mutation.""" +type 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 + + """The `ApiSchema` that was created by this mutation.""" + apiSchema: ApiSchema + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ApiSchema`. May be used by Relay 1.""" + apiSchemaEdge( + """The method to use when ordering `ApiSchema`.""" + orderBy: [ApiSchemaOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiSchemaEdge +} + +"""All input for the create `ApiSchema` mutation.""" +input CreateApiSchemaInput { + """ + 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 + + """The `ApiSchema` to be created by this mutation.""" + apiSchema: ApiSchemaInput! +} + +"""An input for mutations affecting `ApiSchema`""" +input ApiSchemaInput { + id: UUID + databaseId: UUID! + schemaId: UUID! + apiId: UUID! +} + +"""The output of our create `SiteTheme` mutation.""" +type 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 + + """The `SiteTheme` that was created by this mutation.""" + siteTheme: SiteTheme + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteTheme`. May be used by Relay 1.""" + siteThemeEdge( + """The method to use when ordering `SiteTheme`.""" + orderBy: [SiteThemeOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteThemeEdge +} + +"""All input for the create `SiteTheme` mutation.""" +input CreateSiteThemeInput { + """ + 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 + + """The `SiteTheme` to be created by this mutation.""" + siteTheme: SiteThemeInput! +} + +"""An input for mutations affecting `SiteTheme`""" +input SiteThemeInput { + id: UUID + databaseId: UUID! + siteId: UUID! + theme: JSON! +} + +"""The output of our create `OrgMember` mutation.""" +type 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 + + """The `OrgMember` that was created by this mutation.""" + orgMember: OrgMember + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMember`. May be used by Relay 1.""" + orgMemberEdge( + """The method to use when ordering `OrgMember`.""" + orderBy: [OrgMemberOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberEdge +} + +"""All input for the create `OrgMember` mutation.""" +input CreateOrgMemberInput { + """ + 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 + + """The `OrgMember` to be created by this mutation.""" + orgMember: OrgMemberInput! +} + +"""An input for mutations affecting `OrgMember`""" +input OrgMemberInput { + id: UUID + isAdmin: Boolean + actorId: UUID! + entityId: UUID! +} + +"""The output of our create `AppPermissionDefault` mutation.""" +type 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 + + """The `AppPermissionDefault` that was created by this mutation.""" + appPermissionDefault: AppPermissionDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" + appPermissionDefaultEdge( + """The method to use when ordering `AppPermissionDefault`.""" + orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultEdge +} + +"""All input for the create `AppPermissionDefault` mutation.""" +input CreateAppPermissionDefaultInput { + """ + 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 + + """The `AppPermissionDefault` to be created by this mutation.""" + appPermissionDefault: AppPermissionDefaultInput! +} + +"""An input for mutations affecting `AppPermissionDefault`""" +input AppPermissionDefaultInput { + id: UUID + permissions: BitString +} + +"""The output of our create `Ref` mutation.""" +type 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 + + """The `Ref` that was created by this mutation.""" + ref: Ref + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Ref`. May be used by Relay 1.""" + refEdge( + """The method to use when ordering `Ref`.""" + orderBy: [RefOrderBy!]! = [PRIMARY_KEY_ASC] + ): RefEdge +} + +"""All input for the create `Ref` mutation.""" +input CreateRefInput { + """ + 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 + + """The `Ref` to be created by this mutation.""" + ref: RefInput! +} + +"""An input for mutations affecting `Ref`""" +input RefInput { + """The primary unique identifier for the ref.""" + id: UUID + + """The name of the ref or branch""" + name: String! + databaseId: UUID! + storeId: UUID! + commitId: UUID +} + +"""The output of our create `Store` mutation.""" +type 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 + + """The `Store` that was created by this mutation.""" + store: Store + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Store`. May be used by Relay 1.""" + storeEdge( + """The method to use when ordering `Store`.""" + orderBy: [StoreOrderBy!]! = [PRIMARY_KEY_ASC] + ): StoreEdge +} + +"""All input for the create `Store` mutation.""" +input CreateStoreInput { + """ + 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 + + """The `Store` to be created by this mutation.""" + store: StoreInput! +} + +"""An input for mutations affecting `Store`""" +input StoreInput { + """The primary unique identifier for the store.""" + id: UUID + + """The name of the store (e.g., metaschema, migrations).""" + name: String! + + """The database this store belongs to.""" + databaseId: UUID! + + """The current head tree_id for this store.""" + hash: UUID + createdAt: Datetime +} + +"""The output of our create `ApiModule` mutation.""" +type 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 + + """The `ApiModule` that was created by this mutation.""" + apiModule: ApiModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ApiModule`. May be used by Relay 1.""" + apiModuleEdge( + """The method to use when ordering `ApiModule`.""" + orderBy: [ApiModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiModuleEdge +} + +"""All input for the create `ApiModule` mutation.""" +input CreateApiModuleInput { + """ + 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 + + """The `ApiModule` to be created by this mutation.""" + apiModule: ApiModuleInput! +} + +"""An input for mutations affecting `ApiModule`""" +input ApiModuleInput { + id: UUID + databaseId: UUID! + apiId: UUID! + name: String! + data: JSON! +} + +"""The output of our create `SiteModule` mutation.""" +type 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 + + """The `SiteModule` that was created by this mutation.""" + siteModule: SiteModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteModule`. May be used by Relay 1.""" + siteModuleEdge( + """The method to use when ordering `SiteModule`.""" + orderBy: [SiteModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteModuleEdge +} + +"""All input for the create `SiteModule` mutation.""" +input CreateSiteModuleInput { + """ + 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 + + """The `SiteModule` to be created by this mutation.""" + siteModule: SiteModuleInput! +} + +"""An input for mutations affecting `SiteModule`""" +input SiteModuleInput { + id: UUID + databaseId: UUID! + siteId: UUID! + name: String! + data: JSON! +} + +"""The output of our create `EncryptedSecretsModule` mutation.""" +type 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 + + """The `EncryptedSecretsModule` that was created by this mutation.""" + encryptedSecretsModule: EncryptedSecretsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `EncryptedSecretsModule`. May be used by Relay 1.""" + encryptedSecretsModuleEdge( + """The method to use when ordering `EncryptedSecretsModule`.""" + orderBy: [EncryptedSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): EncryptedSecretsModuleEdge +} + +"""All input for the create `EncryptedSecretsModule` mutation.""" +input CreateEncryptedSecretsModuleInput { + """ + 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 + + """The `EncryptedSecretsModule` to be created by this mutation.""" + encryptedSecretsModule: EncryptedSecretsModuleInput! +} + +"""An input for mutations affecting `EncryptedSecretsModule`""" +input EncryptedSecretsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + tableId: UUID + tableName: String +} + +"""The output of our create `MembershipTypesModule` mutation.""" +type 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 + + """The `MembershipTypesModule` that was created by this mutation.""" + membershipTypesModule: MembershipTypesModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipTypesModule`. May be used by Relay 1.""" + membershipTypesModuleEdge( + """The method to use when ordering `MembershipTypesModule`.""" + orderBy: [MembershipTypesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypesModuleEdge +} + +"""All input for the create `MembershipTypesModule` mutation.""" +input CreateMembershipTypesModuleInput { + """ + 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 + + """The `MembershipTypesModule` to be created by this mutation.""" + membershipTypesModule: MembershipTypesModuleInput! +} + +"""An input for mutations affecting `MembershipTypesModule`""" +input MembershipTypesModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + tableId: UUID + tableName: String +} + +"""The output of our create `SecretsModule` mutation.""" +type 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 + + """The `SecretsModule` that was created by this mutation.""" + secretsModule: SecretsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SecretsModule`. May be used by Relay 1.""" + secretsModuleEdge( + """The method to use when ordering `SecretsModule`.""" + orderBy: [SecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): SecretsModuleEdge +} + +"""All input for the create `SecretsModule` mutation.""" +input CreateSecretsModuleInput { + """ + 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 + + """The `SecretsModule` to be created by this mutation.""" + secretsModule: SecretsModuleInput! +} + +"""An input for mutations affecting `SecretsModule`""" +input SecretsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + tableId: UUID + tableName: String +} + +"""The output of our create `UuidModule` mutation.""" +type 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 + + """The `UuidModule` that was created by this mutation.""" + uuidModule: UuidModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `UuidModule`. May be used by Relay 1.""" + uuidModuleEdge( + """The method to use when ordering `UuidModule`.""" + orderBy: [UuidModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UuidModuleEdge +} + +"""All input for the create `UuidModule` mutation.""" +input CreateUuidModuleInput { + """ + 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 + + """The `UuidModule` to be created by this mutation.""" + uuidModule: UuidModuleInput! +} + +"""An input for mutations affecting `UuidModule`""" +input UuidModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + uuidFunction: String + uuidSeed: String! +} + +"""The output of our create `RoleType` mutation.""" +type 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 + + """The `RoleType` that was created by this mutation.""" + roleType: RoleType + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `RoleType`. May be used by Relay 1.""" + roleTypeEdge( + """The method to use when ordering `RoleType`.""" + orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): RoleTypeEdge +} + +"""All input for the create `RoleType` mutation.""" +input CreateRoleTypeInput { + """ + 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 + + """The `RoleType` to be created by this mutation.""" + roleType: RoleTypeInput! +} + +"""An input for mutations affecting `RoleType`""" +input RoleTypeInput { + id: Int! + name: String! +} + +"""The output of our create `OrgPermissionDefault` mutation.""" +type 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 + + """The `OrgPermissionDefault` that was created by this mutation.""" + orgPermissionDefault: OrgPermissionDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" + orgPermissionDefaultEdge( + """The method to use when ordering `OrgPermissionDefault`.""" + orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultEdge +} + +"""All input for the create `OrgPermissionDefault` mutation.""" +input CreateOrgPermissionDefaultInput { + """ + 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 + + """The `OrgPermissionDefault` to be created by this mutation.""" + orgPermissionDefault: OrgPermissionDefaultInput! +} + +"""An input for mutations affecting `OrgPermissionDefault`""" +input OrgPermissionDefaultInput { + id: UUID + permissions: BitString + entityId: UUID! +} + +"""The output of our create `SchemaGrant` mutation.""" +type 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 + + """The `SchemaGrant` that was created by this mutation.""" + schemaGrant: SchemaGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SchemaGrant`. May be used by Relay 1.""" + schemaGrantEdge( + """The method to use when ordering `SchemaGrant`.""" + orderBy: [SchemaGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): SchemaGrantEdge +} + +"""All input for the create `SchemaGrant` mutation.""" +input CreateSchemaGrantInput { + """ + 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 + + """The `SchemaGrant` to be created by this mutation.""" + schemaGrant: SchemaGrantInput! +} + +"""An input for mutations affecting `SchemaGrant`""" +input SchemaGrantInput { + id: UUID + databaseId: UUID + schemaId: UUID! + granteeName: String! + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `TriggerFunction` mutation.""" +type 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 + + """The `TriggerFunction` that was created by this mutation.""" + triggerFunction: TriggerFunction + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TriggerFunction`. May be used by Relay 1.""" + triggerFunctionEdge( + """The method to use when ordering `TriggerFunction`.""" + orderBy: [TriggerFunctionOrderBy!]! = [PRIMARY_KEY_ASC] + ): TriggerFunctionEdge +} + +"""All input for the create `TriggerFunction` mutation.""" +input CreateTriggerFunctionInput { + """ + 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 + + """The `TriggerFunction` to be created by this mutation.""" + triggerFunction: TriggerFunctionInput! +} + +"""An input for mutations affecting `TriggerFunction`""" +input TriggerFunctionInput { + id: UUID + databaseId: UUID! + name: String! + code: String + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `ViewGrant` mutation.""" +type 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 + + """The `ViewGrant` that was created by this mutation.""" + viewGrant: ViewGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ViewGrant`. May be used by Relay 1.""" + viewGrantEdge( + """The method to use when ordering `ViewGrant`.""" + orderBy: [ViewGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewGrantEdge +} + +"""All input for the create `ViewGrant` mutation.""" +input CreateViewGrantInput { + """ + 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 + + """The `ViewGrant` to be created by this mutation.""" + viewGrant: ViewGrantInput! +} + +"""An input for mutations affecting `ViewGrant`""" +input ViewGrantInput { + id: UUID + databaseId: UUID + viewId: UUID! + roleName: String! + privilege: String! + withGrantOption: Boolean +} + +"""The output of our create `ViewRule` mutation.""" +type 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 + + """The `ViewRule` that was created by this mutation.""" + viewRule: ViewRule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ViewRule`. May be used by Relay 1.""" + viewRuleEdge( + """The method to use when ordering `ViewRule`.""" + orderBy: [ViewRuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewRuleEdge +} + +"""All input for the create `ViewRule` mutation.""" +input CreateViewRuleInput { + """ + 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 + + """The `ViewRule` to be created by this mutation.""" + viewRule: ViewRuleInput! +} + +"""An input for mutations affecting `ViewRule`""" +input ViewRuleInput { + id: UUID + databaseId: UUID + viewId: UUID! + name: String! + + """INSERT, UPDATE, or DELETE""" + event: String! + + """NOTHING (for read-only) or custom action""" + action: String +} + +"""The output of our create `AppAdminGrant` mutation.""" +type 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 + + """The `AppAdminGrant` that was created by this mutation.""" + appAdminGrant: AppAdminGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppAdminGrant`. May be used by Relay 1.""" + appAdminGrantEdge( + """The method to use when ordering `AppAdminGrant`.""" + orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAdminGrantEdge +} + +"""All input for the create `AppAdminGrant` mutation.""" +input CreateAppAdminGrantInput { + """ + 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 + + """The `AppAdminGrant` to be created by this mutation.""" + appAdminGrant: AppAdminGrantInput! +} + +"""An input for mutations affecting `AppAdminGrant`""" +input AppAdminGrantInput { + id: UUID + isGrant: Boolean + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `AppOwnerGrant` mutation.""" +type 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 + + """The `AppOwnerGrant` that was created by this mutation.""" + appOwnerGrant: AppOwnerGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" + appOwnerGrantEdge( + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppOwnerGrantEdge +} + +"""All input for the create `AppOwnerGrant` mutation.""" +input CreateAppOwnerGrantInput { + """ + 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 + + """The `AppOwnerGrant` to be created by this mutation.""" + appOwnerGrant: AppOwnerGrantInput! +} + +"""An input for mutations affecting `AppOwnerGrant`""" +input AppOwnerGrantInput { + id: UUID + isGrant: Boolean + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `AppLimitDefault` mutation.""" +type 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 + + """The `AppLimitDefault` that was created by this mutation.""" + appLimitDefault: AppLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge +} + +"""All input for the create `AppLimitDefault` mutation.""" +input CreateAppLimitDefaultInput { + """ + 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 + + """The `AppLimitDefault` to be created by this mutation.""" + appLimitDefault: AppLimitDefaultInput! +} + +"""An input for mutations affecting `AppLimitDefault`""" +input AppLimitDefaultInput { + id: UUID + name: String! + max: Int +} + +"""The output of our create `OrgLimitDefault` mutation.""" +type 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 + + """The `OrgLimitDefault` that was created by this mutation.""" + orgLimitDefault: OrgLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge +} + +"""All input for the create `OrgLimitDefault` mutation.""" +input CreateOrgLimitDefaultInput { + """ + 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 + + """The `OrgLimitDefault` to be created by this mutation.""" + orgLimitDefault: OrgLimitDefaultInput! +} + +"""An input for mutations affecting `OrgLimitDefault`""" +input OrgLimitDefaultInput { + id: UUID + name: String! + max: Int +} + +"""The output of our create `Api` mutation.""" +type 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 + + """The `Api` that was created by this mutation.""" + api: Api + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Api`. May be used by Relay 1.""" + apiEdge( + """The method to use when ordering `Api`.""" + orderBy: [ApiOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiEdge +} + +"""All input for the create `Api` mutation.""" +input CreateApiInput { + """ + 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 + + """The `Api` to be created by this mutation.""" + api: ApiInput! +} + +"""An input for mutations affecting `Api`""" +input ApiInput { + id: UUID + databaseId: UUID! + name: String! + dbname: String + roleName: String + anonRole: String + isPublic: Boolean +} + +"""The output of our create `ConnectedAccountsModule` mutation.""" +type 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 + + """The `ConnectedAccountsModule` that was created by this mutation.""" + connectedAccountsModule: ConnectedAccountsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConnectedAccountsModule`. May be used by Relay 1.""" + connectedAccountsModuleEdge( + """The method to use when ordering `ConnectedAccountsModule`.""" + orderBy: [ConnectedAccountsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConnectedAccountsModuleEdge +} + +"""All input for the create `ConnectedAccountsModule` mutation.""" +input CreateConnectedAccountsModuleInput { + """ + 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 + + """The `ConnectedAccountsModule` to be created by this mutation.""" + connectedAccountsModule: ConnectedAccountsModuleInput! +} + +"""An input for mutations affecting `ConnectedAccountsModule`""" +input ConnectedAccountsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + ownerTableId: UUID + tableName: String! +} + +"""The output of our create `EmailsModule` mutation.""" +type 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 + + """The `EmailsModule` that was created by this mutation.""" + emailsModule: EmailsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `EmailsModule`. May be used by Relay 1.""" + emailsModuleEdge( + """The method to use when ordering `EmailsModule`.""" + orderBy: [EmailsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailsModuleEdge +} + +"""All input for the create `EmailsModule` mutation.""" +input CreateEmailsModuleInput { + """ + 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 + + """The `EmailsModule` to be created by this mutation.""" + emailsModule: EmailsModuleInput! +} + +"""An input for mutations affecting `EmailsModule`""" +input EmailsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + ownerTableId: UUID + tableName: String! +} + +"""The output of our create `PhoneNumbersModule` mutation.""" +type 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 + + """The `PhoneNumbersModule` that was created by this mutation.""" + phoneNumbersModule: PhoneNumbersModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PhoneNumbersModule`. May be used by Relay 1.""" + phoneNumbersModuleEdge( + """The method to use when ordering `PhoneNumbersModule`.""" + orderBy: [PhoneNumbersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PhoneNumbersModuleEdge +} + +"""All input for the create `PhoneNumbersModule` mutation.""" +input CreatePhoneNumbersModuleInput { + """ + 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 + + """The `PhoneNumbersModule` to be created by this mutation.""" + phoneNumbersModule: PhoneNumbersModuleInput! +} + +"""An input for mutations affecting `PhoneNumbersModule`""" +input PhoneNumbersModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + ownerTableId: UUID + tableName: String! +} + +"""The output of our create `TableModule` mutation.""" +type 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 + + """The `TableModule` that was created by this mutation.""" + tableModule: TableModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TableModule`. May be used by Relay 1.""" + tableModuleEdge( + """The method to use when ordering `TableModule`.""" + orderBy: [TableModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): TableModuleEdge +} + +"""All input for the create `TableModule` mutation.""" +input CreateTableModuleInput { + """ + 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 + + """The `TableModule` to be created by this mutation.""" + tableModule: TableModuleInput! +} + +"""An input for mutations affecting `TableModule`""" +input TableModuleInput { + id: UUID + databaseId: UUID! + privateSchemaId: UUID + tableId: UUID! + nodeType: String! + data: JSON + fields: [UUID] +} + +"""The output of our create `UsersModule` mutation.""" +type 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 + + """The `UsersModule` that was created by this mutation.""" + usersModule: UsersModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `UsersModule`. May be used by Relay 1.""" + usersModuleEdge( + """The method to use when ordering `UsersModule`.""" + orderBy: [UsersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UsersModuleEdge +} + +"""All input for the create `UsersModule` mutation.""" +input CreateUsersModuleInput { + """ + 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 + + """The `UsersModule` to be created by this mutation.""" + usersModule: UsersModuleInput! +} + +"""An input for mutations affecting `UsersModule`""" +input UsersModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + tableId: UUID + tableName: String + typeTableId: UUID + typeTableName: String +} + +"""The output of our create `OrgAdminGrant` mutation.""" +type 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 + + """The `OrgAdminGrant` that was created by this mutation.""" + orgAdminGrant: OrgAdminGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" + orgAdminGrantEdge( + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgAdminGrantEdge +} + +"""All input for the create `OrgAdminGrant` mutation.""" +input CreateOrgAdminGrantInput { + """ + 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 + + """The `OrgAdminGrant` to be created by this mutation.""" + orgAdminGrant: OrgAdminGrantInput! +} + +"""An input for mutations affecting `OrgAdminGrant`""" +input OrgAdminGrantInput { + id: UUID + isGrant: Boolean + actorId: UUID! + entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `OrgOwnerGrant` mutation.""" +type 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 + + """The `OrgOwnerGrant` that was created by this mutation.""" + orgOwnerGrant: OrgOwnerGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" + orgOwnerGrantEdge( + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantEdge +} + +"""All input for the create `OrgOwnerGrant` mutation.""" +input CreateOrgOwnerGrantInput { + """ + 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 + + """The `OrgOwnerGrant` to be created by this mutation.""" + orgOwnerGrant: OrgOwnerGrantInput! +} + +"""An input for mutations affecting `OrgOwnerGrant`""" +input OrgOwnerGrantInput { + id: UUID + isGrant: Boolean + actorId: UUID! + entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `CryptoAddress` mutation.""" +type 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 + + """The `CryptoAddress` that was created by this mutation.""" + cryptoAddress: CryptoAddress + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `CryptoAddress`. May be used by Relay 1.""" + cryptoAddressEdge( + """The method to use when ordering `CryptoAddress`.""" + orderBy: [CryptoAddressOrderBy!]! = [PRIMARY_KEY_ASC] + ): CryptoAddressEdge +} + +"""All input for the create `CryptoAddress` mutation.""" +input CreateCryptoAddressInput { + """ + 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 + + """The `CryptoAddress` to be created by this mutation.""" + cryptoAddress: CryptoAddressInput! +} + +"""An input for mutations affecting `CryptoAddress`""" +input CryptoAddressInput { + id: UUID + ownerId: UUID + address: String! + isVerified: Boolean + isPrimary: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `MembershipType` mutation.""" +type 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 + + """The `MembershipType` that was created by this mutation.""" + membershipType: MembershipType + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge +} + +"""All input for the create `MembershipType` mutation.""" +input CreateMembershipTypeInput { + """ + 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 + + """The `MembershipType` to be created by this mutation.""" + membershipType: MembershipTypeInput! +} + +"""An input for mutations affecting `MembershipType`""" +input MembershipTypeInput { + id: Int! + name: String! + description: String! + prefix: String! +} + +"""The output of our create `Database` mutation.""" +type 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 + + """The `Database` that was created by this mutation.""" + database: Database + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Database`. May be used by Relay 1.""" + databaseEdge( + """The method to use when ordering `Database`.""" + orderBy: [DatabaseOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseEdge +} + +"""All input for the create `Database` mutation.""" +input CreateDatabaseInput { + """ + 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 + + """The `Database` to be created by this mutation.""" + database: DatabaseInput! +} + +"""An input for mutations affecting `Database`""" +input DatabaseInput { + id: UUID + ownerId: UUID + schemaHash: String + name: String + label: String + hash: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `LimitFunction` mutation.""" +type 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 + + """The `LimitFunction` that was created by this mutation.""" + limitFunction: LimitFunction + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `LimitFunction`. May be used by Relay 1.""" + limitFunctionEdge( + """The method to use when ordering `LimitFunction`.""" + orderBy: [LimitFunctionOrderBy!]! = [PRIMARY_KEY_ASC] + ): LimitFunctionEdge +} + +"""All input for the create `LimitFunction` mutation.""" +input CreateLimitFunctionInput { + """ + 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 + + """The `LimitFunction` to be created by this mutation.""" + limitFunction: LimitFunctionInput! +} + +"""An input for mutations affecting `LimitFunction`""" +input LimitFunctionInput { + id: UUID + databaseId: UUID + tableId: UUID! + name: String + label: String + description: String + data: JSON + security: Int +} + +"""The output of our create `TableGrant` mutation.""" +type 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 + + """The `TableGrant` that was created by this mutation.""" + tableGrant: TableGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TableGrant`. May be used by Relay 1.""" + tableGrantEdge( + """The method to use when ordering `TableGrant`.""" + orderBy: [TableGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): TableGrantEdge +} + +"""All input for the create `TableGrant` mutation.""" +input CreateTableGrantInput { + """ + 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 + + """The `TableGrant` to be created by this mutation.""" + tableGrant: TableGrantInput! +} + +"""An input for mutations affecting `TableGrant`""" +input TableGrantInput { + id: UUID + databaseId: UUID + tableId: UUID! + privilege: String! + roleName: String! + fieldIds: [UUID] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `CryptoAddressesModule` mutation.""" +type 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 + + """The `CryptoAddressesModule` that was created by this mutation.""" + cryptoAddressesModule: CryptoAddressesModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `CryptoAddressesModule`. May be used by Relay 1.""" + cryptoAddressesModuleEdge( + """The method to use when ordering `CryptoAddressesModule`.""" + orderBy: [CryptoAddressesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): CryptoAddressesModuleEdge +} + +"""All input for the create `CryptoAddressesModule` mutation.""" +input CreateCryptoAddressesModuleInput { + """ + 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 + + """The `CryptoAddressesModule` to be created by this mutation.""" + cryptoAddressesModule: CryptoAddressesModuleInput! +} + +"""An input for mutations affecting `CryptoAddressesModule`""" +input CryptoAddressesModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + ownerTableId: UUID + tableName: String! + cryptoNetwork: String +} + +"""The output of our create `ConnectedAccount` mutation.""" +type 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 + + """The `ConnectedAccount` that was created by this mutation.""" + connectedAccount: ConnectedAccount + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConnectedAccount`. May be used by Relay 1.""" + connectedAccountEdge( + """The method to use when ordering `ConnectedAccount`.""" + orderBy: [ConnectedAccountOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConnectedAccountEdge +} + +"""All input for the create `ConnectedAccount` mutation.""" +input CreateConnectedAccountInput { + """ + 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 + + """The `ConnectedAccount` to be created by this mutation.""" + connectedAccount: ConnectedAccountInput! +} + +"""An input for mutations affecting `ConnectedAccount`""" +input ConnectedAccountInput { + id: UUID + ownerId: UUID + + """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: JSON! + isVerified: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `PhoneNumber` mutation.""" +type 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 + + """The `PhoneNumber` that was created by this mutation.""" + phoneNumber: PhoneNumber + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PhoneNumber`. May be used by Relay 1.""" + phoneNumberEdge( + """The method to use when ordering `PhoneNumber`.""" + orderBy: [PhoneNumberOrderBy!]! = [PRIMARY_KEY_ASC] + ): PhoneNumberEdge +} + +"""All input for the create `PhoneNumber` mutation.""" +input CreatePhoneNumberInput { + """ + 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 + + """The `PhoneNumber` to be created by this mutation.""" + phoneNumber: PhoneNumberInput! +} + +"""An input for mutations affecting `PhoneNumber`""" +input PhoneNumberInput { + id: UUID + ownerId: UUID + cc: String! + number: String! + isVerified: Boolean + isPrimary: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `AppPermission` mutation.""" +type 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 + + """The `AppPermission` that was created by this mutation.""" + appPermission: AppPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge +} + +"""All input for the create `AppPermission` mutation.""" +input CreateAppPermissionInput { + """ + 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 + + """The `AppPermission` to be created by this mutation.""" + appPermission: AppPermissionInput! +} + +"""An input for mutations affecting `AppPermission`""" +input AppPermissionInput { + id: UUID + name: String + bitnum: Int + bitstr: BitString + description: String +} + +"""The output of our create `OrgPermission` mutation.""" +type 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 + + """The `OrgPermission` that was created by this mutation.""" + orgPermission: OrgPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge +} + +"""All input for the create `OrgPermission` mutation.""" +input CreateOrgPermissionInput { + """ + 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 + + """The `OrgPermission` to be created by this mutation.""" + orgPermission: OrgPermissionInput! +} + +"""An input for mutations affecting `OrgPermission`""" +input OrgPermissionInput { + id: UUID + name: String + bitnum: Int + bitstr: BitString + description: String +} + +"""The output of our create `AppLimit` mutation.""" +type 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 + + """The `AppLimit` that was created by this mutation.""" + appLimit: AppLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge +} + +"""All input for the create `AppLimit` mutation.""" +input CreateAppLimitInput { + """ + 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 + + """The `AppLimit` to be created by this mutation.""" + appLimit: AppLimitInput! +} + +"""An input for mutations affecting `AppLimit`""" +input AppLimitInput { + id: UUID + name: String + actorId: UUID! + num: Int + max: Int +} + +"""The output of our create `AppAchievement` mutation.""" +type 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 + + """The `AppAchievement` that was created by this mutation.""" + appAchievement: AppAchievement + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppAchievement`. May be used by Relay 1.""" + appAchievementEdge( + """The method to use when ordering `AppAchievement`.""" + orderBy: [AppAchievementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAchievementEdge +} + +"""All input for the create `AppAchievement` mutation.""" +input CreateAppAchievementInput { + """ + 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 + + """The `AppAchievement` to be created by this mutation.""" + appAchievement: AppAchievementInput! +} + +"""An input for mutations affecting `AppAchievement`""" +input AppAchievementInput { + id: UUID + actorId: UUID + name: String! + count: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `AppStep` mutation.""" +type 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 + + """The `AppStep` that was created by this mutation.""" + appStep: AppStep + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppStep`. May be used by Relay 1.""" + appStepEdge( + """The method to use when ordering `AppStep`.""" + orderBy: [AppStepOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppStepEdge +} + +"""All input for the create `AppStep` mutation.""" +input CreateAppStepInput { + """ + 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 + + """The `AppStep` to be created by this mutation.""" + appStep: AppStepInput! +} + +"""An input for mutations affecting `AppStep`""" +input AppStepInput { + id: UUID + actorId: UUID + name: String! + count: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `ClaimedInvite` mutation.""" +type 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 + + """The `ClaimedInvite` that was created by this mutation.""" + claimedInvite: ClaimedInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ClaimedInvite`. May be used by Relay 1.""" + claimedInviteEdge( + """The method to use when ordering `ClaimedInvite`.""" + orderBy: [ClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): ClaimedInviteEdge +} + +"""All input for the create `ClaimedInvite` mutation.""" +input CreateClaimedInviteInput { + """ + 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 + + """The `ClaimedInvite` to be created by this mutation.""" + claimedInvite: ClaimedInviteInput! +} + +"""An input for mutations affecting `ClaimedInvite`""" +input ClaimedInviteInput { + id: UUID + data: JSON + senderId: UUID + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `AppMembershipDefault` mutation.""" +type 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 + + """The `AppMembershipDefault` that was created by this mutation.""" + appMembershipDefault: AppMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge +} + +"""All input for the create `AppMembershipDefault` mutation.""" +input CreateAppMembershipDefaultInput { + """ + 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 + + """The `AppMembershipDefault` to be created by this mutation.""" + appMembershipDefault: AppMembershipDefaultInput! +} + +"""An input for mutations affecting `AppMembershipDefault`""" +input AppMembershipDefaultInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean + isVerified: Boolean +} + +"""The output of our create `SiteMetadatum` mutation.""" +type 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 + + """The `SiteMetadatum` that was created by this mutation.""" + siteMetadatum: SiteMetadatum + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteMetadatum`. May be used by Relay 1.""" + siteMetadatumEdge( + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteMetadatumEdge +} + +"""All input for the create `SiteMetadatum` mutation.""" +input CreateSiteMetadatumInput { + """ + 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 + + """The `SiteMetadatum` to be created by this mutation.""" + siteMetadatum: SiteMetadatumInput! +} + +"""An input for mutations affecting `SiteMetadatum`""" +input SiteMetadatumInput { + id: UUID + databaseId: UUID! + siteId: UUID! + title: String + description: String + ogImage: ConstructiveInternalTypeImage +} + +"""The output of our create `FieldModule` mutation.""" +type 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 + + """The `FieldModule` that was created by this mutation.""" + fieldModule: FieldModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `FieldModule`. May be used by Relay 1.""" + fieldModuleEdge( + """The method to use when ordering `FieldModule`.""" + orderBy: [FieldModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): FieldModuleEdge +} + +"""All input for the create `FieldModule` mutation.""" +input CreateFieldModuleInput { + """ + 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 + + """The `FieldModule` to be created by this mutation.""" + fieldModule: FieldModuleInput! +} + +"""An input for mutations affecting `FieldModule`""" +input FieldModuleInput { + id: UUID + databaseId: UUID! + privateSchemaId: UUID + tableId: UUID + fieldId: UUID + nodeType: String! + data: JSON + triggers: [String] + functions: [String] +} + +"""The output of our create `TableTemplateModule` mutation.""" +type 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 + + """The `TableTemplateModule` that was created by this mutation.""" + tableTemplateModule: TableTemplateModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TableTemplateModule`. May be used by Relay 1.""" + tableTemplateModuleEdge( + """The method to use when ordering `TableTemplateModule`.""" + orderBy: [TableTemplateModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): TableTemplateModuleEdge +} + +"""All input for the create `TableTemplateModule` mutation.""" +input CreateTableTemplateModuleInput { + """ + 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 + + """The `TableTemplateModule` to be created by this mutation.""" + tableTemplateModule: TableTemplateModuleInput! +} + +"""An input for mutations affecting `TableTemplateModule`""" +input TableTemplateModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + ownerTableId: UUID + tableName: String! + nodeType: String! + data: JSON +} + +"""The output of our create `NodeTypeRegistry` mutation.""" +type 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 + + """The `NodeTypeRegistry` that was created by this mutation.""" + nodeTypeRegistry: NodeTypeRegistry + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `NodeTypeRegistry`. May be used by Relay 1.""" + nodeTypeRegistryEdge( + """The method to use when ordering `NodeTypeRegistry`.""" + orderBy: [NodeTypeRegistryOrderBy!]! = [PRIMARY_KEY_ASC] + ): NodeTypeRegistryEdge +} + +"""All input for the create `NodeTypeRegistry` mutation.""" +input CreateNodeTypeRegistryInput { + """ + 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 + + """The `NodeTypeRegistry` to be created by this mutation.""" + nodeTypeRegistry: NodeTypeRegistryInput! +} + +"""An input for mutations affecting `NodeTypeRegistry`""" +input 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: JSON + + """ + Tags for categorization and filtering (e.g., ownership, membership, temporal, rls) + """ + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `Object` mutation.""" +type 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 + + """The `Object` that was created by this mutation.""" + object: Object + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Object`. May be used by Relay 1.""" + objectEdge( + """The method to use when ordering `Object`.""" + orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): ObjectEdge +} + +"""All input for the create `Object` mutation.""" +input CreateObjectInput { + """ + 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 + + """The `Object` to be created by this mutation.""" + object: ObjectInput! +} + +"""An input for mutations affecting `Object`""" +input ObjectInput { + id: UUID! + databaseId: UUID! + kids: [UUID] + ktree: [String] + data: JSON + frzn: Boolean + createdAt: Datetime +} + +"""The output of our create `FullTextSearch` mutation.""" +type 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 + + """The `FullTextSearch` that was created by this mutation.""" + fullTextSearch: FullTextSearch + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `FullTextSearch`. May be used by Relay 1.""" + fullTextSearchEdge( + """The method to use when ordering `FullTextSearch`.""" + orderBy: [FullTextSearchOrderBy!]! = [PRIMARY_KEY_ASC] + ): FullTextSearchEdge +} + +"""All input for the create `FullTextSearch` mutation.""" +input CreateFullTextSearchInput { + """ + 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 + + """The `FullTextSearch` to be created by this mutation.""" + fullTextSearch: FullTextSearchInput! +} + +"""An input for mutations affecting `FullTextSearch`""" +input FullTextSearchInput { + id: UUID + databaseId: UUID + tableId: UUID! + fieldId: UUID! + fieldIds: [UUID]! + weights: [String]! + langs: [String]! + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `Commit` mutation.""" +type 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 + + """The `Commit` that was created by this mutation.""" + commit: Commit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Commit`. May be used by Relay 1.""" + commitEdge( + """The method to use when ordering `Commit`.""" + orderBy: [CommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): CommitEdge +} + +"""All input for the create `Commit` mutation.""" +input CreateCommitInput { + """ + 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 + + """The `Commit` to be created by this mutation.""" + commit: CommitInput! +} + +"""An input for mutations affecting `Commit`""" +input CommitInput { + """The primary unique identifier for the commit.""" + id: UUID + + """The commit message""" + message: String + + """The repository identifier""" + databaseId: UUID! + storeId: UUID! + + """Parent commits""" + parentIds: [UUID] + + """The author of the commit""" + authorId: UUID + + """The committer of the commit""" + committerId: UUID + + """The root of the tree""" + treeId: UUID + date: Datetime +} + +"""The output of our create `OrgLimit` mutation.""" +type 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 + + """The `OrgLimit` that was created by this mutation.""" + orgLimit: OrgLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge +} + +"""All input for the create `OrgLimit` mutation.""" +input CreateOrgLimitInput { + """ + 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 + + """The `OrgLimit` to be created by this mutation.""" + orgLimit: OrgLimitInput! +} + +"""An input for mutations affecting `OrgLimit`""" +input OrgLimitInput { + id: UUID + name: String + actorId: UUID! + num: Int + max: Int + entityId: UUID! +} + +"""The output of our create `AppGrant` mutation.""" +type 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 + + """The `AppGrant` that was created by this mutation.""" + appGrant: AppGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppGrant`. May be used by Relay 1.""" + appGrantEdge( + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppGrantEdge +} + +"""All input for the create `AppGrant` mutation.""" +input CreateAppGrantInput { + """ + 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 + + """The `AppGrant` to be created by this mutation.""" + appGrant: AppGrantInput! +} + +"""An input for mutations affecting `AppGrant`""" +input AppGrantInput { + id: UUID + permissions: BitString + isGrant: Boolean + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `OrgClaimedInvite` mutation.""" +type 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 + + """The `OrgClaimedInvite` that was created by this mutation.""" + orgClaimedInvite: OrgClaimedInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" + orgClaimedInviteEdge( + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteEdge +} + +"""All input for the create `OrgClaimedInvite` mutation.""" +input CreateOrgClaimedInviteInput { + """ + 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 + + """The `OrgClaimedInvite` to be created by this mutation.""" + orgClaimedInvite: OrgClaimedInviteInput! +} + +"""An input for mutations affecting `OrgClaimedInvite`""" +input OrgClaimedInviteInput { + id: UUID + data: JSON + senderId: UUID + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime + entityId: UUID! +} + +"""The output of our create `Domain` mutation.""" +type 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 + + """The `Domain` that was created by this mutation.""" + domain: Domain + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Domain`. May be used by Relay 1.""" + domainEdge( + """The method to use when ordering `Domain`.""" + orderBy: [DomainOrderBy!]! = [PRIMARY_KEY_ASC] + ): DomainEdge +} + +"""All input for the create `Domain` mutation.""" +input CreateDomainInput { + """ + 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 + + """The `Domain` to be created by this mutation.""" + domain: DomainInput! +} + +"""An input for mutations affecting `Domain`""" +input DomainInput { + id: UUID + databaseId: UUID! + apiId: UUID + siteId: UUID + subdomain: ConstructiveInternalTypeHostname + domain: ConstructiveInternalTypeHostname +} + +"""The output of our create `OrgGrant` mutation.""" +type 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 + + """The `OrgGrant` that was created by this mutation.""" + orgGrant: OrgGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgGrant`. May be used by Relay 1.""" + orgGrantEdge( + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgGrantEdge +} + +"""All input for the create `OrgGrant` mutation.""" +input CreateOrgGrantInput { + """ + 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 + + """The `OrgGrant` to be created by this mutation.""" + orgGrant: OrgGrantInput! +} + +"""An input for mutations affecting `OrgGrant`""" +input OrgGrantInput { + id: UUID + permissions: BitString + isGrant: Boolean + actorId: UUID! + entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `OrgMembershipDefault` mutation.""" +type 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 + + """The `OrgMembershipDefault` that was created by this mutation.""" + orgMembershipDefault: OrgMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge +} + +"""All input for the create `OrgMembershipDefault` mutation.""" +input CreateOrgMembershipDefaultInput { + """ + 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 + + """The `OrgMembershipDefault` to be created by this mutation.""" + orgMembershipDefault: OrgMembershipDefaultInput! +} + +"""An input for mutations affecting `OrgMembershipDefault`""" +input OrgMembershipDefaultInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean + entityId: UUID! + deleteMemberCascadeGroups: Boolean + createGroupsCascadeMembers: Boolean +} + +"""The output of our create `SessionsModule` mutation.""" +type 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 + + """The `SessionsModule` that was created by this mutation.""" + sessionsModule: SessionsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SessionsModule`. May be used by Relay 1.""" + sessionsModuleEdge( + """The method to use when ordering `SessionsModule`.""" + orderBy: [SessionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): SessionsModuleEdge +} + +"""All input for the create `SessionsModule` mutation.""" +input CreateSessionsModuleInput { + """ + 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 + + """The `SessionsModule` to be created by this mutation.""" + sessionsModule: SessionsModuleInput! +} + +"""An input for mutations affecting `SessionsModule`""" +input SessionsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + sessionsTableId: UUID + sessionCredentialsTableId: UUID + authSettingsTableId: UUID + usersTableId: UUID + sessionsDefaultExpiration: IntervalInput + sessionsTable: String + sessionCredentialsTable: String + authSettingsTable: String +} + +"""The output of our create `Email` mutation.""" +type 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 + + """The `Email` that was created by this mutation.""" + email: Email + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Email`. May be used by Relay 1.""" + emailEdge( + """The method to use when ordering `Email`.""" + orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailEdge +} + +"""All input for the create `Email` mutation.""" +input CreateEmailInput { + """ + 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 + + """The `Email` to be created by this mutation.""" + email: EmailInput! +} + +"""An input for mutations affecting `Email`""" +input EmailInput { + id: UUID + ownerId: UUID + email: ConstructiveInternalTypeEmail! + isVerified: Boolean + isPrimary: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `AppLevelRequirement` mutation.""" +type 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 + + """The `AppLevelRequirement` that was created by this mutation.""" + appLevelRequirement: AppLevelRequirement + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLevelRequirement`. May be used by Relay 1.""" + appLevelRequirementEdge( + """The method to use when ordering `AppLevelRequirement`.""" + orderBy: [AppLevelRequirementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLevelRequirementEdge +} + +"""All input for the create `AppLevelRequirement` mutation.""" +input CreateAppLevelRequirementInput { + """ + 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 + + """The `AppLevelRequirement` to be created by this mutation.""" + appLevelRequirement: AppLevelRequirementInput! +} + +"""An input for mutations affecting `AppLevelRequirement`""" +input AppLevelRequirementInput { + id: UUID + name: String! + level: String! + description: String + requiredCount: Int + priority: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `AuditLog` mutation.""" +type 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 + + """The `AuditLog` that was created by this mutation.""" + auditLog: AuditLog + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AuditLog`. May be used by Relay 1.""" + auditLogEdge( + """The method to use when ordering `AuditLog`.""" + orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] + ): AuditLogEdge +} + +"""All input for the create `AuditLog` mutation.""" +input CreateAuditLogInput { + """ + 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 + + """The `AuditLog` to be created by this mutation.""" + auditLog: AuditLogInput! +} + +"""An input for mutations affecting `AuditLog`""" +input AuditLogInput { + id: UUID + event: String! + actorId: UUID + origin: ConstructiveInternalTypeOrigin + userAgent: String + ipAddress: InternetAddress + success: Boolean! + createdAt: Datetime +} + +"""The output of our create `AppLevel` mutation.""" +type 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 + + """The `AppLevel` that was created by this mutation.""" + appLevel: AppLevel + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLevel`. May be used by Relay 1.""" + appLevelEdge( + """The method to use when ordering `AppLevel`.""" + orderBy: [AppLevelOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLevelEdge +} + +"""All input for the create `AppLevel` mutation.""" +input CreateAppLevelInput { + """ + 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 + + """The `AppLevel` to be created by this mutation.""" + appLevel: AppLevelInput! +} + +"""An input for mutations affecting `AppLevel`""" +input AppLevelInput { + id: UUID + name: String! + description: String + image: ConstructiveInternalTypeImage + ownerId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `RlsModule` mutation.""" +type 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 + + """The `RlsModule` that was created by this mutation.""" + rlsModule: RlsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `RlsModule`. May be used by Relay 1.""" + rlsModuleEdge( + """The method to use when ordering `RlsModule`.""" + orderBy: [RlsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RlsModuleEdge +} + +"""All input for the create `RlsModule` mutation.""" +input CreateRlsModuleInput { + """ + 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 + + """The `RlsModule` to be created by this mutation.""" + rlsModule: RlsModuleInput! +} + +"""An input for mutations affecting `RlsModule`""" +input RlsModuleInput { + id: UUID + databaseId: UUID! + apiId: UUID + schemaId: UUID + privateSchemaId: UUID + sessionCredentialsTableId: UUID + sessionsTableId: UUID + usersTableId: UUID + authenticate: String + authenticateStrict: String + currentRole: String + currentRoleId: String +} + +"""The output of our create `DenormalizedTableField` mutation.""" +type 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 + + """The `DenormalizedTableField` that was created by this mutation.""" + denormalizedTableField: DenormalizedTableField + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DenormalizedTableField`. May be used by Relay 1.""" + denormalizedTableFieldEdge( + """The method to use when ordering `DenormalizedTableField`.""" + orderBy: [DenormalizedTableFieldOrderBy!]! = [PRIMARY_KEY_ASC] + ): DenormalizedTableFieldEdge +} + +"""All input for the create `DenormalizedTableField` mutation.""" +input CreateDenormalizedTableFieldInput { + """ + 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 + + """The `DenormalizedTableField` to be created by this mutation.""" + denormalizedTableField: DenormalizedTableFieldInput! +} + +"""An input for mutations affecting `DenormalizedTableField`""" +input DenormalizedTableFieldInput { + id: UUID + databaseId: UUID! + tableId: UUID! + fieldId: UUID! + setIds: [UUID] + refTableId: UUID! + refFieldId: UUID! + refIds: [UUID] + useUpdates: Boolean + updateDefaults: Boolean + funcName: String + funcOrder: Int +} + +"""The output of our create `SqlMigration` mutation.""" +type 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 + + """The `SqlMigration` that was created by this mutation.""" + sqlMigration: SqlMigration + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `SqlMigration` mutation.""" +input CreateSqlMigrationInput { + """ + 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 + + """The `SqlMigration` to be created by this mutation.""" + sqlMigration: SqlMigrationInput! +} + +"""An input for mutations affecting `SqlMigration`""" +input SqlMigrationInput { + id: Int + name: String + databaseId: UUID + deploy: String + deps: [String] + payload: JSON + content: String + revert: String + verify: String + createdAt: Datetime + action: String + actionId: UUID + actorId: UUID +} + +"""The output of our create `CryptoAuthModule` mutation.""" +type 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 + + """The `CryptoAuthModule` that was created by this mutation.""" + cryptoAuthModule: CryptoAuthModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `CryptoAuthModule`. May be used by Relay 1.""" + cryptoAuthModuleEdge( + """The method to use when ordering `CryptoAuthModule`.""" + orderBy: [CryptoAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): CryptoAuthModuleEdge +} + +"""All input for the create `CryptoAuthModule` mutation.""" +input CreateCryptoAuthModuleInput { + """ + 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 + + """The `CryptoAuthModule` to be created by this mutation.""" + cryptoAuthModule: CryptoAuthModuleInput! +} + +"""An input for mutations affecting `CryptoAuthModule`""" +input CryptoAuthModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + usersTableId: UUID + secretsTableId: UUID + sessionsTableId: UUID + sessionCredentialsTableId: UUID + addressesTableId: UUID + userField: String! + cryptoNetwork: String + signInRequestChallenge: String + signInRecordFailure: String + signUpWithKey: String + signInWithChallenge: String +} + +"""The output of our create `DatabaseProvisionModule` mutation.""" +type 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 + + """The `DatabaseProvisionModule` that was created by this mutation.""" + databaseProvisionModule: DatabaseProvisionModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DatabaseProvisionModule`. May be used by Relay 1.""" + databaseProvisionModuleEdge( + """The method to use when ordering `DatabaseProvisionModule`.""" + orderBy: [DatabaseProvisionModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseProvisionModuleEdge +} + +"""All input for the create `DatabaseProvisionModule` mutation.""" +input CreateDatabaseProvisionModuleInput { + """ + 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 + + """The `DatabaseProvisionModule` to be created by this mutation.""" + databaseProvisionModule: DatabaseProvisionModuleInput! +} + +"""An input for mutations affecting `DatabaseProvisionModule`""" +input DatabaseProvisionModuleInput { + id: UUID + + """The name for the new database""" + databaseName: String! + + """UUID of the user who owns this database""" + ownerId: UUID! + + """ + 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: JSON + + """ + 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: UUID + createdAt: Datetime + updatedAt: Datetime + completedAt: Datetime +} + +"""The output of our create `InvitesModule` mutation.""" +type 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 + + """The `InvitesModule` that was created by this mutation.""" + invitesModule: InvitesModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `InvitesModule`. May be used by Relay 1.""" + invitesModuleEdge( + """The method to use when ordering `InvitesModule`.""" + orderBy: [InvitesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InvitesModuleEdge +} + +"""All input for the create `InvitesModule` mutation.""" +input CreateInvitesModuleInput { + """ + 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 + + """The `InvitesModule` to be created by this mutation.""" + invitesModule: InvitesModuleInput! +} + +"""An input for mutations affecting `InvitesModule`""" +input InvitesModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + emailsTableId: UUID + usersTableId: UUID + invitesTableId: UUID + claimedInvitesTableId: UUID + invitesTableName: String + claimedInvitesTableName: String + submitInviteCodeFunction: String + prefix: String + membershipType: Int! + entityTableId: UUID +} + +"""The output of our create `View` mutation.""" +type 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 + + """The `View` that was created by this mutation.""" + view: View + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `View`. May be used by Relay 1.""" + viewEdge( + """The method to use when ordering `View`.""" + orderBy: [ViewOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewEdge +} + +"""All input for the create `View` mutation.""" +input CreateViewInput { + """ + 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 + + """The `View` to be created by this mutation.""" + view: ViewInput! +} + +"""An input for mutations affecting `View`""" +input ViewInput { + id: UUID + databaseId: UUID + schemaId: UUID! + name: String! + tableId: UUID + viewType: String! + data: JSON + filterType: String + filterData: JSON + securityInvoker: Boolean + isReadOnly: Boolean + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] +} + +"""The output of our create `AstMigration` mutation.""" +type 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 + + """The `AstMigration` that was created by this mutation.""" + astMigration: AstMigration + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `AstMigration` mutation.""" +input CreateAstMigrationInput { + """ + 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 + + """The `AstMigration` to be created by this mutation.""" + astMigration: AstMigrationInput! +} + +"""An input for mutations affecting `AstMigration`""" +input AstMigrationInput { + id: Int + databaseId: UUID + name: String + requires: [String] + payload: JSON + deploys: String + deploy: JSON + revert: JSON + verify: JSON + createdAt: Datetime + action: String + actionId: UUID + actorId: UUID +} + +"""The output of our create `AppMembership` mutation.""" +type 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 + + """The `AppMembership` that was created by this mutation.""" + appMembership: AppMembership + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge +} + +"""All input for the create `AppMembership` mutation.""" +input CreateAppMembershipInput { + """ + 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 + + """The `AppMembership` to be created by this mutation.""" + appMembership: AppMembershipInput! +} + +"""An input for mutations affecting `AppMembership`""" +input AppMembershipInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean + isBanned: Boolean + isDisabled: Boolean + isVerified: Boolean + isActive: Boolean + isOwner: Boolean + isAdmin: Boolean + permissions: BitString + granted: BitString + actorId: UUID! +} + +"""The output of our create `OrgMembership` mutation.""" +type 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 + + """The `OrgMembership` that was created by this mutation.""" + orgMembership: OrgMembership + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge +} + +"""All input for the create `OrgMembership` mutation.""" +input CreateOrgMembershipInput { + """ + 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 + + """The `OrgMembership` to be created by this mutation.""" + orgMembership: OrgMembershipInput! +} + +"""An input for mutations affecting `OrgMembership`""" +input OrgMembershipInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean + isBanned: Boolean + isDisabled: Boolean + isActive: Boolean + isOwner: Boolean + isAdmin: Boolean + permissions: BitString + granted: BitString + actorId: UUID! + entityId: UUID! +} + +"""The output of our create `App` mutation.""" +type 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 + + """The `App` that was created by this mutation.""" + app: App + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `App`. May be used by Relay 1.""" + appEdge( + """The method to use when ordering `App`.""" + orderBy: [AppOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppEdge +} + +"""All input for the create `App` mutation.""" +input CreateAppInput { + """ + 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 + + """The `App` to be created by this mutation.""" + app: AppInput! +} + +"""An input for mutations affecting `App`""" +input AppInput { + id: UUID + databaseId: UUID! + siteId: UUID! + name: String + appImage: ConstructiveInternalTypeImage + appStoreLink: ConstructiveInternalTypeUrl + appStoreId: String + appIdPrefix: String + playStoreLink: ConstructiveInternalTypeUrl +} + +"""The output of our create `Site` mutation.""" +type 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 + + """The `Site` that was created by this mutation.""" + site: Site + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Site`. May be used by Relay 1.""" + siteEdge( + """The method to use when ordering `Site`.""" + orderBy: [SiteOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteEdge +} + +"""All input for the create `Site` mutation.""" +input CreateSiteInput { + """ + 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 + + """The `Site` to be created by this mutation.""" + site: SiteInput! +} + +"""An input for mutations affecting `Site`""" +input SiteInput { + id: UUID + databaseId: UUID! + title: String + description: String + ogImage: ConstructiveInternalTypeImage + favicon: ConstructiveInternalTypeAttachment + appleTouchIcon: ConstructiveInternalTypeImage + logo: ConstructiveInternalTypeImage + dbname: String +} + +"""The output of our create `User` mutation.""" +type 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 + + """The `User` that was created by this mutation.""" + user: User + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `User`. May be used by Relay 1.""" + userEdge( + """The method to use when ordering `User`.""" + orderBy: [UserOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserEdge +} + +"""All input for the create `User` mutation.""" +input CreateUserInput { + """ + 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 + + """The `User` to be created by this mutation.""" + user: UserInput! +} + +"""An input for mutations affecting `User`""" +input UserInput { + id: UUID + username: String + displayName: String + profilePicture: ConstructiveInternalTypeImage + searchTsv: FullText + type: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `PermissionsModule` mutation.""" +type 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 + + """The `PermissionsModule` that was created by this mutation.""" + permissionsModule: PermissionsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PermissionsModule`. May be used by Relay 1.""" + permissionsModuleEdge( + """The method to use when ordering `PermissionsModule`.""" + orderBy: [PermissionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PermissionsModuleEdge +} + +"""All input for the create `PermissionsModule` mutation.""" +input CreatePermissionsModuleInput { + """ + 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 + + """The `PermissionsModule` to be created by this mutation.""" + permissionsModule: PermissionsModuleInput! +} + +"""An input for mutations affecting `PermissionsModule`""" +input PermissionsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + tableName: String + defaultTableId: UUID + defaultTableName: String + bitlen: Int + membershipType: Int! + entityTableId: UUID + actorTableId: UUID + prefix: String + getPaddedMask: String + getMask: String + getByMask: String + getMaskByName: String +} + +"""The output of our create `PrimaryKeyConstraint` mutation.""" +type 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 + + """The `PrimaryKeyConstraint` that was created by this mutation.""" + primaryKeyConstraint: PrimaryKeyConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PrimaryKeyConstraint`. May be used by Relay 1.""" + primaryKeyConstraintEdge( + """The method to use when ordering `PrimaryKeyConstraint`.""" + orderBy: [PrimaryKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): PrimaryKeyConstraintEdge +} + +"""All input for the create `PrimaryKeyConstraint` mutation.""" +input CreatePrimaryKeyConstraintInput { + """ + 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 + + """The `PrimaryKeyConstraint` to be created by this mutation.""" + primaryKeyConstraint: PrimaryKeyConstraintInput! +} + +"""An input for mutations affecting `PrimaryKeyConstraint`""" +input PrimaryKeyConstraintInput { + id: UUID + databaseId: UUID + tableId: UUID! + name: String + type: String + fieldIds: [UUID]! + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `Trigger` mutation.""" +type 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 + + """The `Trigger` that was created by this mutation.""" + trigger: Trigger + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Trigger`. May be used by Relay 1.""" + triggerEdge( + """The method to use when ordering `Trigger`.""" + orderBy: [TriggerOrderBy!]! = [PRIMARY_KEY_ASC] + ): TriggerEdge +} + +"""All input for the create `Trigger` mutation.""" +input CreateTriggerInput { + """ + 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 + + """The `Trigger` to be created by this mutation.""" + trigger: TriggerInput! +} + +"""An input for mutations affecting `Trigger`""" +input TriggerInput { + id: UUID + databaseId: UUID + tableId: UUID! + name: String! + event: String + functionName: String + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `CheckConstraint` mutation.""" +type 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 + + """The `CheckConstraint` that was created by this mutation.""" + checkConstraint: CheckConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `CheckConstraint`. May be used by Relay 1.""" + checkConstraintEdge( + """The method to use when ordering `CheckConstraint`.""" + orderBy: [CheckConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): CheckConstraintEdge +} + +"""All input for the create `CheckConstraint` mutation.""" +input CreateCheckConstraintInput { + """ + 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 + + """The `CheckConstraint` to be created by this mutation.""" + checkConstraint: CheckConstraintInput! +} + +"""An input for mutations affecting `CheckConstraint`""" +input CheckConstraintInput { + id: UUID + databaseId: UUID + tableId: UUID! + name: String + type: String + fieldIds: [UUID]! + expr: JSON + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `UniqueConstraint` mutation.""" +type 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 + + """The `UniqueConstraint` that was created by this mutation.""" + uniqueConstraint: UniqueConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `UniqueConstraint`. May be used by Relay 1.""" + uniqueConstraintEdge( + """The method to use when ordering `UniqueConstraint`.""" + orderBy: [UniqueConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): UniqueConstraintEdge +} + +"""All input for the create `UniqueConstraint` mutation.""" +input CreateUniqueConstraintInput { + """ + 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 + + """The `UniqueConstraint` to be created by this mutation.""" + uniqueConstraint: UniqueConstraintInput! +} + +"""An input for mutations affecting `UniqueConstraint`""" +input UniqueConstraintInput { + id: UUID + databaseId: UUID + tableId: UUID! + name: String + description: String + smartTags: JSON + type: String + fieldIds: [UUID]! + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `Procedure` mutation.""" +type 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 + + """The `Procedure` that was created by this mutation.""" + procedure: Procedure + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Procedure`. May be used by Relay 1.""" + procedureEdge( + """The method to use when ordering `Procedure`.""" + orderBy: [ProcedureOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProcedureEdge +} + +"""All input for the create `Procedure` mutation.""" +input CreateProcedureInput { + """ + 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 + + """The `Procedure` to be created by this mutation.""" + procedure: ProcedureInput! +} + +"""An input for mutations affecting `Procedure`""" +input ProcedureInput { + id: UUID + databaseId: UUID + name: String! + argnames: [String] + argtypes: [String] + argdefaults: [String] + langName: String + definition: String + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `Policy` mutation.""" +type 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 + + """The `Policy` that was created by this mutation.""" + policy: Policy + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Policy`. May be used by Relay 1.""" + policyEdge( + """The method to use when ordering `Policy`.""" + orderBy: [PolicyOrderBy!]! = [PRIMARY_KEY_ASC] + ): PolicyEdge +} + +"""All input for the create `Policy` mutation.""" +input CreatePolicyInput { + """ + 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 + + """The `Policy` to be created by this mutation.""" + policy: PolicyInput! +} + +"""An input for mutations affecting `Policy`""" +input PolicyInput { + id: UUID + databaseId: UUID + tableId: UUID! + name: String + roleName: String + privilege: String + permissive: Boolean + disabled: Boolean + policyType: String + data: JSON + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `Invite` mutation.""" +type 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 + + """The `Invite` that was created by this mutation.""" + invite: Invite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Invite`. May be used by Relay 1.""" + inviteEdge( + """The method to use when ordering `Invite`.""" + orderBy: [InviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): InviteEdge +} + +"""All input for the create `Invite` mutation.""" +input CreateInviteInput { + """ + 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 + + """The `Invite` to be created by this mutation.""" + invite: InviteInput! +} + +"""An input for mutations affecting `Invite`""" +input InviteInput { + id: UUID + email: ConstructiveInternalTypeEmail + senderId: UUID + inviteToken: String + inviteValid: Boolean + inviteLimit: Int + inviteCount: Int + multiple: Boolean + data: JSON + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `Index` mutation.""" +type 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 + + """The `Index` that was created by this mutation.""" + index: Index + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Index`. May be used by Relay 1.""" + indexEdge( + """The method to use when ordering `Index`.""" + orderBy: [IndexOrderBy!]! = [PRIMARY_KEY_ASC] + ): IndexEdge +} + +"""All input for the create `Index` mutation.""" +input CreateIndexInput { + """ + 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 + + """The `Index` to be created by this mutation.""" + index: IndexInput! +} + +"""An input for mutations affecting `Index`""" +input IndexInput { + id: UUID + databaseId: UUID! + tableId: UUID! + name: String + fieldIds: [UUID] + includeFieldIds: [UUID] + accessMethod: String + indexParams: JSON + whereClause: JSON + isUnique: Boolean + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `LimitsModule` mutation.""" +type 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 + + """The `LimitsModule` that was created by this mutation.""" + limitsModule: LimitsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `LimitsModule`. May be used by Relay 1.""" + limitsModuleEdge( + """The method to use when ordering `LimitsModule`.""" + orderBy: [LimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): LimitsModuleEdge +} + +"""All input for the create `LimitsModule` mutation.""" +input CreateLimitsModuleInput { + """ + 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 + + """The `LimitsModule` to be created by this mutation.""" + limitsModule: LimitsModuleInput! +} + +"""An input for mutations affecting `LimitsModule`""" +input LimitsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + tableName: String + defaultTableId: UUID + defaultTableName: String + limitIncrementFunction: String + limitDecrementFunction: String + limitIncrementTrigger: String + limitDecrementTrigger: String + limitUpdateTrigger: String + limitCheckFunction: String + prefix: String + membershipType: Int! + entityTableId: UUID + actorTableId: UUID +} + +"""The output of our create `Schema` mutation.""" +type 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 + + """The `Schema` that was created by this mutation.""" + schema: Schema + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Schema`. May be used by Relay 1.""" + schemaEdge( + """The method to use when ordering `Schema`.""" + orderBy: [SchemaOrderBy!]! = [PRIMARY_KEY_ASC] + ): SchemaEdge +} + +"""All input for the create `Schema` mutation.""" +input CreateSchemaInput { + """ + 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 + + """The `Schema` to be created by this mutation.""" + schema: SchemaInput! +} + +"""An input for mutations affecting `Schema`""" +input SchemaInput { + id: UUID + databaseId: UUID! + name: String! + schemaName: String! + label: String + description: String + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + isPublic: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `ProfilesModule` mutation.""" +type 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 + + """The `ProfilesModule` that was created by this mutation.""" + profilesModule: ProfilesModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ProfilesModule`. May be used by Relay 1.""" + profilesModuleEdge( + """The method to use when ordering `ProfilesModule`.""" + orderBy: [ProfilesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProfilesModuleEdge +} + +"""All input for the create `ProfilesModule` mutation.""" +input CreateProfilesModuleInput { + """ + 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 + + """The `ProfilesModule` to be created by this mutation.""" + profilesModule: ProfilesModuleInput! +} + +"""An input for mutations affecting `ProfilesModule`""" +input ProfilesModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + tableName: String + profilePermissionsTableId: UUID + profilePermissionsTableName: String + profileGrantsTableId: UUID + profileGrantsTableName: String + profileDefinitionGrantsTableId: UUID + profileDefinitionGrantsTableName: String + bitlen: Int + membershipType: Int! + entityTableId: UUID + actorTableId: UUID + permissionsTableId: UUID + membershipsTableId: UUID + prefix: String +} + +"""The output of our create `OrgInvite` mutation.""" +type 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 + + """The `OrgInvite` that was created by this mutation.""" + orgInvite: OrgInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgInvite`. May be used by Relay 1.""" + orgInviteEdge( + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgInviteEdge +} + +"""All input for the create `OrgInvite` mutation.""" +input CreateOrgInviteInput { + """ + 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 + + """The `OrgInvite` to be created by this mutation.""" + orgInvite: OrgInviteInput! +} + +"""An input for mutations affecting `OrgInvite`""" +input OrgInviteInput { + id: UUID + email: ConstructiveInternalTypeEmail + senderId: UUID + receiverId: UUID + inviteToken: String + inviteValid: Boolean + inviteLimit: Int + inviteCount: Int + multiple: Boolean + data: JSON + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime + entityId: UUID! +} + +"""The output of our create `HierarchyModule` mutation.""" +type 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 + + """The `HierarchyModule` that was created by this mutation.""" + hierarchyModule: HierarchyModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `HierarchyModule`. May be used by Relay 1.""" + hierarchyModuleEdge( + """The method to use when ordering `HierarchyModule`.""" + orderBy: [HierarchyModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): HierarchyModuleEdge +} + +"""All input for the create `HierarchyModule` mutation.""" +input CreateHierarchyModuleInput { + """ + 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 + + """The `HierarchyModule` to be created by this mutation.""" + hierarchyModule: HierarchyModuleInput! +} + +"""An input for mutations affecting `HierarchyModule`""" +input HierarchyModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + chartEdgesTableId: UUID + chartEdgesTableName: String + hierarchySprtTableId: UUID + hierarchySprtTableName: String + chartEdgeGrantsTableId: UUID + chartEdgeGrantsTableName: String + entityTableId: UUID! + usersTableId: UUID! + prefix: String + privateSchemaName: String + sprtTableName: String + rebuildHierarchyFunction: String + getSubordinatesFunction: String + getManagersFunction: String + isManagerOfFunction: String + createdAt: Datetime +} + +"""The output of our create `ForeignKeyConstraint` mutation.""" +type 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 + + """The `ForeignKeyConstraint` that was created by this mutation.""" + foreignKeyConstraint: ForeignKeyConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ForeignKeyConstraint`. May be used by Relay 1.""" + foreignKeyConstraintEdge( + """The method to use when ordering `ForeignKeyConstraint`.""" + orderBy: [ForeignKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): ForeignKeyConstraintEdge +} + +"""All input for the create `ForeignKeyConstraint` mutation.""" +input CreateForeignKeyConstraintInput { + """ + 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 + + """The `ForeignKeyConstraint` to be created by this mutation.""" + foreignKeyConstraint: ForeignKeyConstraintInput! +} + +"""An input for mutations affecting `ForeignKeyConstraint`""" +input ForeignKeyConstraintInput { + id: UUID + databaseId: UUID + tableId: UUID! + name: String + description: String + smartTags: JSON + type: String + fieldIds: [UUID]! + refTableId: UUID! + refFieldIds: [UUID]! + deleteAction: String + updateAction: String + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `Table` mutation.""" +type 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 + + """The `Table` that was created by this mutation.""" + table: Table + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Table`. May be used by Relay 1.""" + tableEdge( + """The method to use when ordering `Table`.""" + orderBy: [TableOrderBy!]! = [PRIMARY_KEY_ASC] + ): TableEdge +} + +"""All input for the create `Table` mutation.""" +input CreateTableInput { + """ + 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 + + """The `Table` to be created by this mutation.""" + table: TableInput! +} + +"""An input for mutations affecting `Table`""" +input TableInput { + id: UUID + databaseId: UUID + schemaId: UUID! + name: String! + label: String + description: String + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + useRls: Boolean + timestamps: Boolean + peoplestamps: Boolean + pluralName: String + singularName: String + tags: [String] + inheritsId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `LevelsModule` mutation.""" +type 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 + + """The `LevelsModule` that was created by this mutation.""" + levelsModule: LevelsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `LevelsModule`. May be used by Relay 1.""" + levelsModuleEdge( + """The method to use when ordering `LevelsModule`.""" + orderBy: [LevelsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): LevelsModuleEdge +} + +"""All input for the create `LevelsModule` mutation.""" +input CreateLevelsModuleInput { + """ + 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 + + """The `LevelsModule` to be created by this mutation.""" + levelsModule: LevelsModuleInput! +} + +"""An input for mutations affecting `LevelsModule`""" +input LevelsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + stepsTableId: UUID + stepsTableName: String + achievementsTableId: UUID + achievementsTableName: String + levelsTableId: UUID + levelsTableName: String + levelRequirementsTableId: UUID + 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: Int! + entityTableId: UUID + actorTableId: UUID +} + +"""The output of our create `UserAuthModule` mutation.""" +type 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 + + """The `UserAuthModule` that was created by this mutation.""" + userAuthModule: UserAuthModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `UserAuthModule`. May be used by Relay 1.""" + userAuthModuleEdge( + """The method to use when ordering `UserAuthModule`.""" + orderBy: [UserAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserAuthModuleEdge +} + +"""All input for the create `UserAuthModule` mutation.""" +input CreateUserAuthModuleInput { + """ + 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 + + """The `UserAuthModule` to be created by this mutation.""" + userAuthModule: UserAuthModuleInput! +} + +"""An input for mutations affecting `UserAuthModule`""" +input UserAuthModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + emailsTableId: UUID + usersTableId: UUID + secretsTableId: UUID + encryptedTableId: UUID + sessionsTableId: UUID + sessionCredentialsTableId: UUID + auditsTableId: UUID + 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 +} + +"""The output of our create `Field` mutation.""" +type 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 + + """The `Field` that was created by this mutation.""" + field: Field + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Field`. May be used by Relay 1.""" + fieldEdge( + """The method to use when ordering `Field`.""" + orderBy: [FieldOrderBy!]! = [PRIMARY_KEY_ASC] + ): FieldEdge +} + +"""All input for the create `Field` mutation.""" +input CreateFieldInput { + """ + 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 + + """The `Field` to be created by this mutation.""" + field: FieldInput! +} + +"""An input for mutations affecting `Field`""" +input FieldInput { + id: UUID + databaseId: UUID + tableId: UUID! + name: String! + label: String + description: String + smartTags: JSON + isRequired: Boolean + defaultValue: String + defaultValueAst: JSON + isHidden: Boolean + type: String! + fieldOrder: Int + regexp: String + chk: JSON + chkExpr: JSON + min: Float + max: Float + tags: [String] + category: ObjectCategory + module: String + scope: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `MembershipsModule` mutation.""" +type 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 + + """The `MembershipsModule` that was created by this mutation.""" + membershipsModule: MembershipsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipsModule`. May be used by Relay 1.""" + membershipsModuleEdge( + """The method to use when ordering `MembershipsModule`.""" + orderBy: [MembershipsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipsModuleEdge +} + +"""All input for the create `MembershipsModule` mutation.""" +input CreateMembershipsModuleInput { + """ + 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 + + """The `MembershipsModule` to be created by this mutation.""" + membershipsModule: MembershipsModuleInput! +} + +"""An input for mutations affecting `MembershipsModule`""" +input MembershipsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + membershipsTableId: UUID + membershipsTableName: String + membersTableId: UUID + membersTableName: String + membershipDefaultsTableId: UUID + membershipDefaultsTableName: String + grantsTableId: UUID + grantsTableName: String + actorTableId: UUID + limitsTableId: UUID + defaultLimitsTableId: UUID + permissionsTableId: UUID + defaultPermissionsTableId: UUID + sprtTableId: UUID + adminGrantsTableId: UUID + adminGrantsTableName: String + ownerGrantsTableId: UUID + ownerGrantsTableName: String + membershipType: Int! + entityTableId: UUID + entityTableOwnerId: UUID + prefix: String + actorMaskCheck: String + actorPermCheck: String + entityIdsByMask: String + entityIdsByPerm: String + entityIdsFunction: String +} + +"""The output of our update `DefaultIdsModule` mutation.""" +type 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 + + """The `DefaultIdsModule` that was updated by this mutation.""" + defaultIdsModule: DefaultIdsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DefaultIdsModule`. May be used by Relay 1.""" + defaultIdsModuleEdge( + """The method to use when ordering `DefaultIdsModule`.""" + orderBy: [DefaultIdsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DefaultIdsModuleEdge +} + +"""All input for the `updateDefaultIdsModule` mutation.""" +input UpdateDefaultIdsModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input DefaultIdsModulePatch { + id: UUID + databaseId: UUID +} + +"""The output of our update `ViewTable` mutation.""" +type 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 + + """The `ViewTable` that was updated by this mutation.""" + viewTable: ViewTable + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ViewTable`. May be used by Relay 1.""" + viewTableEdge( + """The method to use when ordering `ViewTable`.""" + orderBy: [ViewTableOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewTableEdge +} + +"""All input for the `updateViewTable` mutation.""" +input UpdateViewTableInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input ViewTablePatch { + id: UUID + viewId: UUID + tableId: UUID + joinOrder: Int +} + +"""The output of our update `ApiSchema` mutation.""" +type 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 + + """The `ApiSchema` that was updated by this mutation.""" + apiSchema: ApiSchema + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ApiSchema`. May be used by Relay 1.""" + apiSchemaEdge( + """The method to use when ordering `ApiSchema`.""" + orderBy: [ApiSchemaOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiSchemaEdge +} + +"""All input for the `updateApiSchema` mutation.""" +input UpdateApiSchemaInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input ApiSchemaPatch { + id: UUID + databaseId: UUID + schemaId: UUID + apiId: UUID +} + +"""The output of our update `SiteTheme` mutation.""" +type 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 + + """The `SiteTheme` that was updated by this mutation.""" + siteTheme: SiteTheme + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteTheme`. May be used by Relay 1.""" + siteThemeEdge( + """The method to use when ordering `SiteTheme`.""" + orderBy: [SiteThemeOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteThemeEdge +} + +"""All input for the `updateSiteTheme` mutation.""" +input UpdateSiteThemeInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input SiteThemePatch { + id: UUID + databaseId: UUID + siteId: UUID + theme: JSON +} + +"""The output of our update `OrgMember` mutation.""" +type 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 + + """The `OrgMember` that was updated by this mutation.""" + orgMember: OrgMember + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMember`. May be used by Relay 1.""" + orgMemberEdge( + """The method to use when ordering `OrgMember`.""" + orderBy: [OrgMemberOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberEdge +} + +"""All input for the `updateOrgMember` mutation.""" +input UpdateOrgMemberInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgMemberPatch { + id: UUID + isAdmin: Boolean + actorId: UUID + entityId: UUID +} + +"""The output of our update `AppPermissionDefault` mutation.""" +type 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 + + """The `AppPermissionDefault` that was updated by this mutation.""" + appPermissionDefault: AppPermissionDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" + appPermissionDefaultEdge( + """The method to use when ordering `AppPermissionDefault`.""" + orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultEdge +} + +"""All input for the `updateAppPermissionDefault` mutation.""" +input UpdateAppPermissionDefaultInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppPermissionDefaultPatch { + id: UUID + permissions: BitString +} + +"""The output of our update `Ref` mutation.""" +type 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 + + """The `Ref` that was updated by this mutation.""" + ref: Ref + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Ref`. May be used by Relay 1.""" + refEdge( + """The method to use when ordering `Ref`.""" + orderBy: [RefOrderBy!]! = [PRIMARY_KEY_ASC] + ): RefEdge +} + +"""All input for the `updateRef` mutation.""" +input UpdateRefInput { + """ + 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 + + """The primary unique identifier for the ref.""" + id: UUID! + databaseId: UUID! + + """ + 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.""" +input RefPatch { + """The primary unique identifier for the ref.""" + id: UUID + + """The name of the ref or branch""" + name: String + databaseId: UUID + storeId: UUID + commitId: UUID +} + +"""The output of our update `Store` mutation.""" +type 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 + + """The `Store` that was updated by this mutation.""" + store: Store + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Store`. May be used by Relay 1.""" + storeEdge( + """The method to use when ordering `Store`.""" + orderBy: [StoreOrderBy!]! = [PRIMARY_KEY_ASC] + ): StoreEdge +} + +"""All input for the `updateStore` mutation.""" +input UpdateStoreInput { + """ + 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 + + """The primary unique identifier for the store.""" + id: UUID! + + """ + 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. +""" +input StorePatch { + """The primary unique identifier for the store.""" + id: UUID + + """The name of the store (e.g., metaschema, migrations).""" + name: String + + """The database this store belongs to.""" + databaseId: UUID + + """The current head tree_id for this store.""" + hash: UUID + createdAt: Datetime +} + +"""The output of our update `ApiModule` mutation.""" +type 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 + + """The `ApiModule` that was updated by this mutation.""" + apiModule: ApiModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ApiModule`. May be used by Relay 1.""" + apiModuleEdge( + """The method to use when ordering `ApiModule`.""" + orderBy: [ApiModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiModuleEdge +} + +"""All input for the `updateApiModule` mutation.""" +input UpdateApiModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input ApiModulePatch { + id: UUID + databaseId: UUID + apiId: UUID + name: String + data: JSON +} + +"""The output of our update `SiteModule` mutation.""" +type 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 + + """The `SiteModule` that was updated by this mutation.""" + siteModule: SiteModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteModule`. May be used by Relay 1.""" + siteModuleEdge( + """The method to use when ordering `SiteModule`.""" + orderBy: [SiteModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteModuleEdge +} + +"""All input for the `updateSiteModule` mutation.""" +input UpdateSiteModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input SiteModulePatch { + id: UUID + databaseId: UUID + siteId: UUID + name: String + data: JSON +} + +"""The output of our update `EncryptedSecretsModule` mutation.""" +type 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 + + """The `EncryptedSecretsModule` that was updated by this mutation.""" + encryptedSecretsModule: EncryptedSecretsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `EncryptedSecretsModule`. May be used by Relay 1.""" + encryptedSecretsModuleEdge( + """The method to use when ordering `EncryptedSecretsModule`.""" + orderBy: [EncryptedSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): EncryptedSecretsModuleEdge +} + +"""All input for the `updateEncryptedSecretsModule` mutation.""" +input UpdateEncryptedSecretsModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input EncryptedSecretsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + tableId: UUID + tableName: String +} + +"""The output of our update `MembershipTypesModule` mutation.""" +type 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 + + """The `MembershipTypesModule` that was updated by this mutation.""" + membershipTypesModule: MembershipTypesModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipTypesModule`. May be used by Relay 1.""" + membershipTypesModuleEdge( + """The method to use when ordering `MembershipTypesModule`.""" + orderBy: [MembershipTypesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypesModuleEdge +} + +"""All input for the `updateMembershipTypesModule` mutation.""" +input UpdateMembershipTypesModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input MembershipTypesModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + tableId: UUID + tableName: String +} + +"""The output of our update `SecretsModule` mutation.""" +type 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 + + """The `SecretsModule` that was updated by this mutation.""" + secretsModule: SecretsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SecretsModule`. May be used by Relay 1.""" + secretsModuleEdge( + """The method to use when ordering `SecretsModule`.""" + orderBy: [SecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): SecretsModuleEdge +} + +"""All input for the `updateSecretsModule` mutation.""" +input UpdateSecretsModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input SecretsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + tableId: UUID + tableName: String +} + +"""The output of our update `UuidModule` mutation.""" +type 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 + + """The `UuidModule` that was updated by this mutation.""" + uuidModule: UuidModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `UuidModule`. May be used by Relay 1.""" + uuidModuleEdge( + """The method to use when ordering `UuidModule`.""" + orderBy: [UuidModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UuidModuleEdge +} + +"""All input for the `updateUuidModule` mutation.""" +input UpdateUuidModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input UuidModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + uuidFunction: String + uuidSeed: String +} + +"""The output of our update `RoleType` mutation.""" +type 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 + + """The `RoleType` that was updated by this mutation.""" + roleType: RoleType + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `RoleType`. May be used by Relay 1.""" + roleTypeEdge( + """The method to use when ordering `RoleType`.""" + orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): RoleTypeEdge +} + +"""All input for the `updateRoleType` mutation.""" +input UpdateRoleTypeInput { + """ + 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 + id: Int! + + """ + 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. +""" +input RoleTypePatch { + id: Int + name: String +} + +"""The output of our update `OrgPermissionDefault` mutation.""" +type 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 + + """The `OrgPermissionDefault` that was updated by this mutation.""" + orgPermissionDefault: OrgPermissionDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" + orgPermissionDefaultEdge( + """The method to use when ordering `OrgPermissionDefault`.""" + orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultEdge +} + +"""All input for the `updateOrgPermissionDefault` mutation.""" +input UpdateOrgPermissionDefaultInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgPermissionDefaultPatch { + id: UUID + permissions: BitString + entityId: UUID +} + +"""The output of our update `SchemaGrant` mutation.""" +type 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 + + """The `SchemaGrant` that was updated by this mutation.""" + schemaGrant: SchemaGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SchemaGrant`. May be used by Relay 1.""" + schemaGrantEdge( + """The method to use when ordering `SchemaGrant`.""" + orderBy: [SchemaGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): SchemaGrantEdge +} + +"""All input for the `updateSchemaGrant` mutation.""" +input UpdateSchemaGrantInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input SchemaGrantPatch { + id: UUID + databaseId: UUID + schemaId: UUID + granteeName: String + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `TriggerFunction` mutation.""" +type 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 + + """The `TriggerFunction` that was updated by this mutation.""" + triggerFunction: TriggerFunction + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TriggerFunction`. May be used by Relay 1.""" + triggerFunctionEdge( + """The method to use when ordering `TriggerFunction`.""" + orderBy: [TriggerFunctionOrderBy!]! = [PRIMARY_KEY_ASC] + ): TriggerFunctionEdge +} + +"""All input for the `updateTriggerFunction` mutation.""" +input UpdateTriggerFunctionInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input TriggerFunctionPatch { + id: UUID + databaseId: UUID + name: String + code: String + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `ViewGrant` mutation.""" +type 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 + + """The `ViewGrant` that was updated by this mutation.""" + viewGrant: ViewGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ViewGrant`. May be used by Relay 1.""" + viewGrantEdge( + """The method to use when ordering `ViewGrant`.""" + orderBy: [ViewGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewGrantEdge +} + +"""All input for the `updateViewGrant` mutation.""" +input UpdateViewGrantInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input ViewGrantPatch { + id: UUID + databaseId: UUID + viewId: UUID + roleName: String + privilege: String + withGrantOption: Boolean +} + +"""The output of our update `ViewRule` mutation.""" +type 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 + + """The `ViewRule` that was updated by this mutation.""" + viewRule: ViewRule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ViewRule`. May be used by Relay 1.""" + viewRuleEdge( + """The method to use when ordering `ViewRule`.""" + orderBy: [ViewRuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewRuleEdge +} + +"""All input for the `updateViewRule` mutation.""" +input UpdateViewRuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input ViewRulePatch { + id: UUID + databaseId: UUID + viewId: UUID + name: String + + """INSERT, UPDATE, or DELETE""" + event: String + + """NOTHING (for read-only) or custom action""" + action: String +} + +"""The output of our update `AppAdminGrant` mutation.""" +type 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 + + """The `AppAdminGrant` that was updated by this mutation.""" + appAdminGrant: AppAdminGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppAdminGrant`. May be used by Relay 1.""" + appAdminGrantEdge( + """The method to use when ordering `AppAdminGrant`.""" + orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAdminGrantEdge +} + +"""All input for the `updateAppAdminGrant` mutation.""" +input UpdateAppAdminGrantInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppAdminGrantPatch { + id: UUID + isGrant: Boolean + actorId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `AppOwnerGrant` mutation.""" +type 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 + + """The `AppOwnerGrant` that was updated by this mutation.""" + appOwnerGrant: AppOwnerGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" + appOwnerGrantEdge( + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppOwnerGrantEdge +} + +"""All input for the `updateAppOwnerGrant` mutation.""" +input UpdateAppOwnerGrantInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppOwnerGrantPatch { + id: UUID + isGrant: Boolean + actorId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `AppLimitDefault` mutation.""" +type 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 + + """The `AppLimitDefault` that was updated by this mutation.""" + appLimitDefault: AppLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge +} + +"""All input for the `updateAppLimitDefault` mutation.""" +input UpdateAppLimitDefaultInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppLimitDefaultPatch { + id: UUID + name: String + max: Int +} + +"""The output of our update `OrgLimitDefault` mutation.""" +type 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 + + """The `OrgLimitDefault` that was updated by this mutation.""" + orgLimitDefault: OrgLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge +} + +"""All input for the `updateOrgLimitDefault` mutation.""" +input UpdateOrgLimitDefaultInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgLimitDefaultPatch { + id: UUID + name: String + max: Int +} + +"""The output of our update `Api` mutation.""" +type 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 + + """The `Api` that was updated by this mutation.""" + api: Api + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Api`. May be used by Relay 1.""" + apiEdge( + """The method to use when ordering `Api`.""" + orderBy: [ApiOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiEdge +} + +"""All input for the `updateApi` mutation.""" +input UpdateApiInput { + """ + 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 + id: UUID! + + """ + 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.""" +input ApiPatch { + id: UUID + databaseId: UUID + name: String + dbname: String + roleName: String + anonRole: String + isPublic: Boolean +} + +"""The output of our update `ConnectedAccountsModule` mutation.""" +type 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 + + """The `ConnectedAccountsModule` that was updated by this mutation.""" + connectedAccountsModule: ConnectedAccountsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConnectedAccountsModule`. May be used by Relay 1.""" + connectedAccountsModuleEdge( + """The method to use when ordering `ConnectedAccountsModule`.""" + orderBy: [ConnectedAccountsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConnectedAccountsModuleEdge +} + +"""All input for the `updateConnectedAccountsModule` mutation.""" +input UpdateConnectedAccountsModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input ConnectedAccountsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + ownerTableId: UUID + tableName: String +} + +"""The output of our update `EmailsModule` mutation.""" +type 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 + + """The `EmailsModule` that was updated by this mutation.""" + emailsModule: EmailsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `EmailsModule`. May be used by Relay 1.""" + emailsModuleEdge( + """The method to use when ordering `EmailsModule`.""" + orderBy: [EmailsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailsModuleEdge +} + +"""All input for the `updateEmailsModule` mutation.""" +input UpdateEmailsModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input EmailsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + ownerTableId: UUID + tableName: String +} + +"""The output of our update `PhoneNumbersModule` mutation.""" +type 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 + + """The `PhoneNumbersModule` that was updated by this mutation.""" + phoneNumbersModule: PhoneNumbersModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PhoneNumbersModule`. May be used by Relay 1.""" + phoneNumbersModuleEdge( + """The method to use when ordering `PhoneNumbersModule`.""" + orderBy: [PhoneNumbersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PhoneNumbersModuleEdge +} + +"""All input for the `updatePhoneNumbersModule` mutation.""" +input UpdatePhoneNumbersModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input PhoneNumbersModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + ownerTableId: UUID + tableName: String +} + +"""The output of our update `TableModule` mutation.""" +type 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 + + """The `TableModule` that was updated by this mutation.""" + tableModule: TableModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TableModule`. May be used by Relay 1.""" + tableModuleEdge( + """The method to use when ordering `TableModule`.""" + orderBy: [TableModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): TableModuleEdge +} + +"""All input for the `updateTableModule` mutation.""" +input UpdateTableModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input TableModulePatch { + id: UUID + databaseId: UUID + privateSchemaId: UUID + tableId: UUID + nodeType: String + data: JSON + fields: [UUID] +} + +"""The output of our update `UsersModule` mutation.""" +type 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 + + """The `UsersModule` that was updated by this mutation.""" + usersModule: UsersModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `UsersModule`. May be used by Relay 1.""" + usersModuleEdge( + """The method to use when ordering `UsersModule`.""" + orderBy: [UsersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UsersModuleEdge +} + +"""All input for the `updateUsersModule` mutation.""" +input UpdateUsersModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input UsersModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + tableId: UUID + tableName: String + typeTableId: UUID + typeTableName: String +} + +"""The output of our update `OrgAdminGrant` mutation.""" +type 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 + + """The `OrgAdminGrant` that was updated by this mutation.""" + orgAdminGrant: OrgAdminGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" + orgAdminGrantEdge( + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgAdminGrantEdge +} + +"""All input for the `updateOrgAdminGrant` mutation.""" +input UpdateOrgAdminGrantInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgAdminGrantPatch { + id: UUID + isGrant: Boolean + actorId: UUID + entityId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `OrgOwnerGrant` mutation.""" +type 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 + + """The `OrgOwnerGrant` that was updated by this mutation.""" + orgOwnerGrant: OrgOwnerGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" + orgOwnerGrantEdge( + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantEdge +} + +"""All input for the `updateOrgOwnerGrant` mutation.""" +input UpdateOrgOwnerGrantInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgOwnerGrantPatch { + id: UUID + isGrant: Boolean + actorId: UUID + entityId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `CryptoAddress` mutation.""" +type 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 + + """The `CryptoAddress` that was updated by this mutation.""" + cryptoAddress: CryptoAddress + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `CryptoAddress`. May be used by Relay 1.""" + cryptoAddressEdge( + """The method to use when ordering `CryptoAddress`.""" + orderBy: [CryptoAddressOrderBy!]! = [PRIMARY_KEY_ASC] + ): CryptoAddressEdge +} + +"""All input for the `updateCryptoAddress` mutation.""" +input UpdateCryptoAddressInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input CryptoAddressPatch { + id: UUID + ownerId: UUID + address: String + isVerified: Boolean + isPrimary: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `MembershipType` mutation.""" +type 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 + + """The `MembershipType` that was updated by this mutation.""" + membershipType: MembershipType + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge +} + +"""All input for the `updateMembershipType` mutation.""" +input UpdateMembershipTypeInput { + """ + 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 + id: Int! + + """ + 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. +""" +input MembershipTypePatch { + id: Int + name: String + description: String + prefix: String +} + +"""The output of our update `Database` mutation.""" +type 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 + + """The `Database` that was updated by this mutation.""" + database: Database + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Database`. May be used by Relay 1.""" + databaseEdge( + """The method to use when ordering `Database`.""" + orderBy: [DatabaseOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseEdge +} + +"""All input for the `updateDatabase` mutation.""" +input UpdateDatabaseInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input DatabasePatch { + id: UUID + ownerId: UUID + schemaHash: String + name: String + label: String + hash: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `LimitFunction` mutation.""" +type 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 + + """The `LimitFunction` that was updated by this mutation.""" + limitFunction: LimitFunction + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `LimitFunction`. May be used by Relay 1.""" + limitFunctionEdge( + """The method to use when ordering `LimitFunction`.""" + orderBy: [LimitFunctionOrderBy!]! = [PRIMARY_KEY_ASC] + ): LimitFunctionEdge +} + +"""All input for the `updateLimitFunction` mutation.""" +input UpdateLimitFunctionInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input LimitFunctionPatch { + id: UUID + databaseId: UUID + tableId: UUID + name: String + label: String + description: String + data: JSON + security: Int +} + +"""The output of our update `TableGrant` mutation.""" +type 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 + + """The `TableGrant` that was updated by this mutation.""" + tableGrant: TableGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TableGrant`. May be used by Relay 1.""" + tableGrantEdge( + """The method to use when ordering `TableGrant`.""" + orderBy: [TableGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): TableGrantEdge +} + +"""All input for the `updateTableGrant` mutation.""" +input UpdateTableGrantInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input TableGrantPatch { + id: UUID + databaseId: UUID + tableId: UUID + privilege: String + roleName: String + fieldIds: [UUID] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `CryptoAddressesModule` mutation.""" +type 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 + + """The `CryptoAddressesModule` that was updated by this mutation.""" + cryptoAddressesModule: CryptoAddressesModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `CryptoAddressesModule`. May be used by Relay 1.""" + cryptoAddressesModuleEdge( + """The method to use when ordering `CryptoAddressesModule`.""" + orderBy: [CryptoAddressesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): CryptoAddressesModuleEdge +} + +"""All input for the `updateCryptoAddressesModule` mutation.""" +input UpdateCryptoAddressesModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input CryptoAddressesModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + ownerTableId: UUID + tableName: String + cryptoNetwork: String +} + +"""The output of our update `ConnectedAccount` mutation.""" +type 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 + + """The `ConnectedAccount` that was updated by this mutation.""" + connectedAccount: ConnectedAccount + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConnectedAccount`. May be used by Relay 1.""" + connectedAccountEdge( + """The method to use when ordering `ConnectedAccount`.""" + orderBy: [ConnectedAccountOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConnectedAccountEdge +} + +"""All input for the `updateConnectedAccount` mutation.""" +input UpdateConnectedAccountInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input ConnectedAccountPatch { + id: UUID + ownerId: UUID + + """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: JSON + isVerified: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `PhoneNumber` mutation.""" +type 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 + + """The `PhoneNumber` that was updated by this mutation.""" + phoneNumber: PhoneNumber + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PhoneNumber`. May be used by Relay 1.""" + phoneNumberEdge( + """The method to use when ordering `PhoneNumber`.""" + orderBy: [PhoneNumberOrderBy!]! = [PRIMARY_KEY_ASC] + ): PhoneNumberEdge +} + +"""All input for the `updatePhoneNumber` mutation.""" +input UpdatePhoneNumberInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input PhoneNumberPatch { + id: UUID + ownerId: UUID + cc: String + number: String + isVerified: Boolean + isPrimary: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `AppPermission` mutation.""" +type 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 + + """The `AppPermission` that was updated by this mutation.""" + appPermission: AppPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge +} + +"""All input for the `updateAppPermission` mutation.""" +input UpdateAppPermissionInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppPermissionPatch { + id: UUID + name: String + bitnum: Int + bitstr: BitString + description: String +} + +"""The output of our update `OrgPermission` mutation.""" +type 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 + + """The `OrgPermission` that was updated by this mutation.""" + orgPermission: OrgPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge +} + +"""All input for the `updateOrgPermission` mutation.""" +input UpdateOrgPermissionInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgPermissionPatch { + id: UUID + name: String + bitnum: Int + bitstr: BitString + description: String +} + +"""The output of our update `AppLimit` mutation.""" +type 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 + + """The `AppLimit` that was updated by this mutation.""" + appLimit: AppLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge +} + +"""All input for the `updateAppLimit` mutation.""" +input UpdateAppLimitInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppLimitPatch { + id: UUID + name: String + actorId: UUID + num: Int + max: Int +} + +"""The output of our update `AppAchievement` mutation.""" +type 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 + + """The `AppAchievement` that was updated by this mutation.""" + appAchievement: AppAchievement + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppAchievement`. May be used by Relay 1.""" + appAchievementEdge( + """The method to use when ordering `AppAchievement`.""" + orderBy: [AppAchievementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAchievementEdge +} + +"""All input for the `updateAppAchievement` mutation.""" +input UpdateAppAchievementInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppAchievementPatch { + id: UUID + actorId: UUID + name: String + count: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `AppStep` mutation.""" +type 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 + + """The `AppStep` that was updated by this mutation.""" + appStep: AppStep + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppStep`. May be used by Relay 1.""" + appStepEdge( + """The method to use when ordering `AppStep`.""" + orderBy: [AppStepOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppStepEdge +} + +"""All input for the `updateAppStep` mutation.""" +input UpdateAppStepInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppStepPatch { + id: UUID + actorId: UUID + name: String + count: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `ClaimedInvite` mutation.""" +type 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 + + """The `ClaimedInvite` that was updated by this mutation.""" + claimedInvite: ClaimedInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ClaimedInvite`. May be used by Relay 1.""" + claimedInviteEdge( + """The method to use when ordering `ClaimedInvite`.""" + orderBy: [ClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): ClaimedInviteEdge +} + +"""All input for the `updateClaimedInvite` mutation.""" +input UpdateClaimedInviteInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input ClaimedInvitePatch { + id: UUID + data: JSON + senderId: UUID + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `AppMembershipDefault` mutation.""" +type 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 + + """The `AppMembershipDefault` that was updated by this mutation.""" + appMembershipDefault: AppMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge +} + +"""All input for the `updateAppMembershipDefault` mutation.""" +input UpdateAppMembershipDefaultInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppMembershipDefaultPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean + isVerified: Boolean +} + +"""The output of our update `SiteMetadatum` mutation.""" +type 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 + + """The `SiteMetadatum` that was updated by this mutation.""" + siteMetadatum: SiteMetadatum + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteMetadatum`. May be used by Relay 1.""" + siteMetadatumEdge( + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteMetadatumEdge +} + +"""All input for the `updateSiteMetadatum` mutation.""" +input UpdateSiteMetadatumInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input SiteMetadatumPatch { + id: UUID + databaseId: UUID + siteId: UUID + title: String + description: String + ogImage: ConstructiveInternalTypeImage +} + +"""The output of our update `FieldModule` mutation.""" +type 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 + + """The `FieldModule` that was updated by this mutation.""" + fieldModule: FieldModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `FieldModule`. May be used by Relay 1.""" + fieldModuleEdge( + """The method to use when ordering `FieldModule`.""" + orderBy: [FieldModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): FieldModuleEdge +} + +"""All input for the `updateFieldModule` mutation.""" +input UpdateFieldModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input FieldModulePatch { + id: UUID + databaseId: UUID + privateSchemaId: UUID + tableId: UUID + fieldId: UUID + nodeType: String + data: JSON + triggers: [String] + functions: [String] +} + +"""The output of our update `TableTemplateModule` mutation.""" +type 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 + + """The `TableTemplateModule` that was updated by this mutation.""" + tableTemplateModule: TableTemplateModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TableTemplateModule`. May be used by Relay 1.""" + tableTemplateModuleEdge( + """The method to use when ordering `TableTemplateModule`.""" + orderBy: [TableTemplateModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): TableTemplateModuleEdge +} + +"""All input for the `updateTableTemplateModule` mutation.""" +input UpdateTableTemplateModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input TableTemplateModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + ownerTableId: UUID + tableName: String + nodeType: String + data: JSON +} + +"""The output of our update `NodeTypeRegistry` mutation.""" +type 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 + + """The `NodeTypeRegistry` that was updated by this mutation.""" + nodeTypeRegistry: NodeTypeRegistry + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `NodeTypeRegistry`. May be used by Relay 1.""" + nodeTypeRegistryEdge( + """The method to use when ordering `NodeTypeRegistry`.""" + orderBy: [NodeTypeRegistryOrderBy!]! = [PRIMARY_KEY_ASC] + ): NodeTypeRegistryEdge +} + +"""All input for the `updateNodeTypeRegistry` mutation.""" +input UpdateNodeTypeRegistryInput { + """ + 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 + + """ + 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. +""" +input 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: JSON + + """ + Tags for categorization and filtering (e.g., ownership, membership, temporal, rls) + """ + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `Object` mutation.""" +type 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 + + """The `Object` that was updated by this mutation.""" + object: Object + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Object`. May be used by Relay 1.""" + objectEdge( + """The method to use when ordering `Object`.""" + orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): ObjectEdge +} + +"""All input for the `updateObject` mutation.""" +input UpdateObjectInput { + """ + 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 + id: UUID! + databaseId: UUID! + + """ + 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. +""" +input ObjectPatch { + id: UUID + databaseId: UUID + kids: [UUID] + ktree: [String] + data: JSON + frzn: Boolean + createdAt: Datetime +} + +"""The output of our update `FullTextSearch` mutation.""" +type 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 + + """The `FullTextSearch` that was updated by this mutation.""" + fullTextSearch: FullTextSearch + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `FullTextSearch`. May be used by Relay 1.""" + fullTextSearchEdge( + """The method to use when ordering `FullTextSearch`.""" + orderBy: [FullTextSearchOrderBy!]! = [PRIMARY_KEY_ASC] + ): FullTextSearchEdge +} + +"""All input for the `updateFullTextSearch` mutation.""" +input UpdateFullTextSearchInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input FullTextSearchPatch { + id: UUID + databaseId: UUID + tableId: UUID + fieldId: UUID + fieldIds: [UUID] + weights: [String] + langs: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `Commit` mutation.""" +type 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 + + """The `Commit` that was updated by this mutation.""" + commit: Commit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Commit`. May be used by Relay 1.""" + commitEdge( + """The method to use when ordering `Commit`.""" + orderBy: [CommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): CommitEdge +} + +"""All input for the `updateCommit` mutation.""" +input UpdateCommitInput { + """ + 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 + + """The primary unique identifier for the commit.""" + id: UUID! + + """The repository identifier""" + databaseId: UUID! + + """ + 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. +""" +input CommitPatch { + """The primary unique identifier for the commit.""" + id: UUID + + """The commit message""" + message: String + + """The repository identifier""" + databaseId: UUID + storeId: UUID + + """Parent commits""" + parentIds: [UUID] + + """The author of the commit""" + authorId: UUID + + """The committer of the commit""" + committerId: UUID + + """The root of the tree""" + treeId: UUID + date: Datetime +} + +"""The output of our update `OrgLimit` mutation.""" +type 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 + + """The `OrgLimit` that was updated by this mutation.""" + orgLimit: OrgLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge +} + +"""All input for the `updateOrgLimit` mutation.""" +input UpdateOrgLimitInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgLimitPatch { + id: UUID + name: String + actorId: UUID + num: Int + max: Int + entityId: UUID +} + +"""The output of our update `AppGrant` mutation.""" +type 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 + + """The `AppGrant` that was updated by this mutation.""" + appGrant: AppGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppGrant`. May be used by Relay 1.""" + appGrantEdge( + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppGrantEdge +} + +"""All input for the `updateAppGrant` mutation.""" +input UpdateAppGrantInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppGrantPatch { + id: UUID + permissions: BitString + isGrant: Boolean + actorId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `OrgClaimedInvite` mutation.""" +type 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 + + """The `OrgClaimedInvite` that was updated by this mutation.""" + orgClaimedInvite: OrgClaimedInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" + orgClaimedInviteEdge( + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteEdge +} + +"""All input for the `updateOrgClaimedInvite` mutation.""" +input UpdateOrgClaimedInviteInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgClaimedInvitePatch { + id: UUID + data: JSON + senderId: UUID + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime + entityId: UUID +} + +"""The output of our update `Domain` mutation.""" +type 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 + + """The `Domain` that was updated by this mutation.""" + domain: Domain + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Domain`. May be used by Relay 1.""" + domainEdge( + """The method to use when ordering `Domain`.""" + orderBy: [DomainOrderBy!]! = [PRIMARY_KEY_ASC] + ): DomainEdge +} + +"""All input for the `updateDomain` mutation.""" +input UpdateDomainInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input DomainPatch { + id: UUID + databaseId: UUID + apiId: UUID + siteId: UUID + subdomain: ConstructiveInternalTypeHostname + domain: ConstructiveInternalTypeHostname +} + +"""The output of our update `OrgGrant` mutation.""" +type 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 + + """The `OrgGrant` that was updated by this mutation.""" + orgGrant: OrgGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgGrant`. May be used by Relay 1.""" + orgGrantEdge( + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgGrantEdge +} + +"""All input for the `updateOrgGrant` mutation.""" +input UpdateOrgGrantInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgGrantPatch { + id: UUID + permissions: BitString + isGrant: Boolean + actorId: UUID + entityId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `OrgMembershipDefault` mutation.""" +type 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 + + """The `OrgMembershipDefault` that was updated by this mutation.""" + orgMembershipDefault: OrgMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge +} + +"""All input for the `updateOrgMembershipDefault` mutation.""" +input UpdateOrgMembershipDefaultInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgMembershipDefaultPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean + entityId: UUID + deleteMemberCascadeGroups: Boolean + createGroupsCascadeMembers: Boolean +} + +"""The output of our update `SessionsModule` mutation.""" +type 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 + + """The `SessionsModule` that was updated by this mutation.""" + sessionsModule: SessionsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SessionsModule`. May be used by Relay 1.""" + sessionsModuleEdge( + """The method to use when ordering `SessionsModule`.""" + orderBy: [SessionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): SessionsModuleEdge +} + +"""All input for the `updateSessionsModule` mutation.""" +input UpdateSessionsModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input SessionsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + sessionsTableId: UUID + sessionCredentialsTableId: UUID + authSettingsTableId: UUID + usersTableId: UUID + sessionsDefaultExpiration: IntervalInput + sessionsTable: String + sessionCredentialsTable: String + authSettingsTable: String +} + +"""The output of our update `Email` mutation.""" +type 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 + + """The `Email` that was updated by this mutation.""" + email: Email + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Email`. May be used by Relay 1.""" + emailEdge( + """The method to use when ordering `Email`.""" + orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailEdge +} + +"""All input for the `updateEmail` mutation.""" +input UpdateEmailInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input EmailPatch { + id: UUID + ownerId: UUID + email: ConstructiveInternalTypeEmail + isVerified: Boolean + isPrimary: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `AppLevelRequirement` mutation.""" +type 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 + + """The `AppLevelRequirement` that was updated by this mutation.""" + appLevelRequirement: AppLevelRequirement + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLevelRequirement`. May be used by Relay 1.""" + appLevelRequirementEdge( + """The method to use when ordering `AppLevelRequirement`.""" + orderBy: [AppLevelRequirementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLevelRequirementEdge +} + +"""All input for the `updateAppLevelRequirement` mutation.""" +input UpdateAppLevelRequirementInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppLevelRequirementPatch { + id: UUID + name: String + level: String + description: String + requiredCount: Int + priority: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `AuditLog` mutation.""" +type 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 + + """The `AuditLog` that was updated by this mutation.""" + auditLog: AuditLog + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AuditLog`. May be used by Relay 1.""" + auditLogEdge( + """The method to use when ordering `AuditLog`.""" + orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] + ): AuditLogEdge +} + +"""All input for the `updateAuditLog` mutation.""" +input UpdateAuditLogInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AuditLogPatch { + id: UUID + event: String + actorId: UUID + origin: ConstructiveInternalTypeOrigin + userAgent: String + ipAddress: InternetAddress + success: Boolean + createdAt: Datetime +} + +"""The output of our update `AppLevel` mutation.""" +type 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 + + """The `AppLevel` that was updated by this mutation.""" + appLevel: AppLevel + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLevel`. May be used by Relay 1.""" + appLevelEdge( + """The method to use when ordering `AppLevel`.""" + orderBy: [AppLevelOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLevelEdge +} + +"""All input for the `updateAppLevel` mutation.""" +input UpdateAppLevelInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppLevelPatch { + id: UUID + name: String + description: String + image: ConstructiveInternalTypeImage + ownerId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `RlsModule` mutation.""" +type 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 + + """The `RlsModule` that was updated by this mutation.""" + rlsModule: RlsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `RlsModule`. May be used by Relay 1.""" + rlsModuleEdge( + """The method to use when ordering `RlsModule`.""" + orderBy: [RlsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RlsModuleEdge +} + +"""All input for the `updateRlsModule` mutation.""" +input UpdateRlsModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input RlsModulePatch { + id: UUID + databaseId: UUID + apiId: UUID + schemaId: UUID + privateSchemaId: UUID + sessionCredentialsTableId: UUID + sessionsTableId: UUID + usersTableId: UUID + authenticate: String + authenticateStrict: String + currentRole: String + currentRoleId: String +} + +"""The output of our update `DenormalizedTableField` mutation.""" +type 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 + + """The `DenormalizedTableField` that was updated by this mutation.""" + denormalizedTableField: DenormalizedTableField + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DenormalizedTableField`. May be used by Relay 1.""" + denormalizedTableFieldEdge( + """The method to use when ordering `DenormalizedTableField`.""" + orderBy: [DenormalizedTableFieldOrderBy!]! = [PRIMARY_KEY_ASC] + ): DenormalizedTableFieldEdge +} + +"""All input for the `updateDenormalizedTableField` mutation.""" +input UpdateDenormalizedTableFieldInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input DenormalizedTableFieldPatch { + id: UUID + databaseId: UUID + tableId: UUID + fieldId: UUID + setIds: [UUID] + refTableId: UUID + refFieldId: UUID + refIds: [UUID] + useUpdates: Boolean + updateDefaults: Boolean + funcName: String + funcOrder: Int +} + +"""The output of our update `CryptoAuthModule` mutation.""" +type 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 + + """The `CryptoAuthModule` that was updated by this mutation.""" + cryptoAuthModule: CryptoAuthModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `CryptoAuthModule`. May be used by Relay 1.""" + cryptoAuthModuleEdge( + """The method to use when ordering `CryptoAuthModule`.""" + orderBy: [CryptoAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): CryptoAuthModuleEdge +} + +"""All input for the `updateCryptoAuthModule` mutation.""" +input UpdateCryptoAuthModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input CryptoAuthModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + usersTableId: UUID + secretsTableId: UUID + sessionsTableId: UUID + sessionCredentialsTableId: UUID + addressesTableId: UUID + userField: String + cryptoNetwork: String + signInRequestChallenge: String + signInRecordFailure: String + signUpWithKey: String + signInWithChallenge: String +} + +"""The output of our update `DatabaseProvisionModule` mutation.""" +type 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 + + """The `DatabaseProvisionModule` that was updated by this mutation.""" + databaseProvisionModule: DatabaseProvisionModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DatabaseProvisionModule`. May be used by Relay 1.""" + databaseProvisionModuleEdge( + """The method to use when ordering `DatabaseProvisionModule`.""" + orderBy: [DatabaseProvisionModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseProvisionModuleEdge +} + +"""All input for the `updateDatabaseProvisionModule` mutation.""" +input UpdateDatabaseProvisionModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input DatabaseProvisionModulePatch { + id: UUID + + """The name for the new database""" + databaseName: String + + """UUID of the user who owns this database""" + ownerId: UUID + + """ + 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: JSON + + """ + 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: UUID + createdAt: Datetime + updatedAt: Datetime + completedAt: Datetime +} + +"""The output of our update `InvitesModule` mutation.""" +type 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 + + """The `InvitesModule` that was updated by this mutation.""" + invitesModule: InvitesModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `InvitesModule`. May be used by Relay 1.""" + invitesModuleEdge( + """The method to use when ordering `InvitesModule`.""" + orderBy: [InvitesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InvitesModuleEdge +} + +"""All input for the `updateInvitesModule` mutation.""" +input UpdateInvitesModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input InvitesModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + emailsTableId: UUID + usersTableId: UUID + invitesTableId: UUID + claimedInvitesTableId: UUID + invitesTableName: String + claimedInvitesTableName: String + submitInviteCodeFunction: String + prefix: String + membershipType: Int + entityTableId: UUID +} + +"""The output of our update `View` mutation.""" +type 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 + + """The `View` that was updated by this mutation.""" + view: View + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `View`. May be used by Relay 1.""" + viewEdge( + """The method to use when ordering `View`.""" + orderBy: [ViewOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewEdge +} + +"""All input for the `updateView` mutation.""" +input UpdateViewInput { + """ + 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 + id: UUID! + + """ + 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.""" +input ViewPatch { + id: UUID + databaseId: UUID + schemaId: UUID + name: String + tableId: UUID + viewType: String + data: JSON + filterType: String + filterData: JSON + securityInvoker: Boolean + isReadOnly: Boolean + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] +} + +"""The output of our update `AppMembership` mutation.""" +type 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 + + """The `AppMembership` that was updated by this mutation.""" + appMembership: AppMembership + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge +} + +"""All input for the `updateAppMembership` mutation.""" +input UpdateAppMembershipInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input AppMembershipPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean + isBanned: Boolean + isDisabled: Boolean + isVerified: Boolean + isActive: Boolean + isOwner: Boolean + isAdmin: Boolean + permissions: BitString + granted: BitString + actorId: UUID +} + +"""The output of our update `OrgMembership` mutation.""" +type 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 + + """The `OrgMembership` that was updated by this mutation.""" + orgMembership: OrgMembership + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge +} + +"""All input for the `updateOrgMembership` mutation.""" +input UpdateOrgMembershipInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgMembershipPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + isApproved: Boolean + isBanned: Boolean + isDisabled: Boolean + isActive: Boolean + isOwner: Boolean + isAdmin: Boolean + permissions: BitString + granted: BitString + actorId: UUID + entityId: UUID +} + +"""The output of our update `App` mutation.""" +type 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 + + """The `App` that was updated by this mutation.""" + app: App + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `App`. May be used by Relay 1.""" + appEdge( + """The method to use when ordering `App`.""" + orderBy: [AppOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppEdge +} + +"""All input for the `updateApp` mutation.""" +input UpdateAppInput { + """ + 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 + id: UUID! + + """ + 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.""" +input AppPatch { + id: UUID + databaseId: UUID + siteId: UUID + name: String + appImage: ConstructiveInternalTypeImage + appStoreLink: ConstructiveInternalTypeUrl + appStoreId: String + appIdPrefix: String + playStoreLink: ConstructiveInternalTypeUrl +} + +"""The output of our update `Site` mutation.""" +type 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 + + """The `Site` that was updated by this mutation.""" + site: Site + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Site`. May be used by Relay 1.""" + siteEdge( + """The method to use when ordering `Site`.""" + orderBy: [SiteOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteEdge +} + +"""All input for the `updateSite` mutation.""" +input UpdateSiteInput { + """ + 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 + id: UUID! + + """ + 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.""" +input SitePatch { + id: UUID + databaseId: UUID + title: String + description: String + ogImage: ConstructiveInternalTypeImage + favicon: ConstructiveInternalTypeAttachment + appleTouchIcon: ConstructiveInternalTypeImage + logo: ConstructiveInternalTypeImage + dbname: String +} + +"""The output of our update `User` mutation.""" +type 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 + + """The `User` that was updated by this mutation.""" + user: User + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `User`. May be used by Relay 1.""" + userEdge( + """The method to use when ordering `User`.""" + orderBy: [UserOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserEdge +} + +"""All input for the `updateUser` mutation.""" +input UpdateUserInput { + """ + 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 + id: UUID! + + """ + 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.""" +input UserPatch { + id: UUID + username: String + displayName: String + profilePicture: ConstructiveInternalTypeImage + searchTsv: FullText + type: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `PermissionsModule` mutation.""" +type 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 + + """The `PermissionsModule` that was updated by this mutation.""" + permissionsModule: PermissionsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PermissionsModule`. May be used by Relay 1.""" + permissionsModuleEdge( + """The method to use when ordering `PermissionsModule`.""" + orderBy: [PermissionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PermissionsModuleEdge +} + +"""All input for the `updatePermissionsModule` mutation.""" +input UpdatePermissionsModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input PermissionsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + tableName: String + defaultTableId: UUID + defaultTableName: String + bitlen: Int + membershipType: Int + entityTableId: UUID + actorTableId: UUID + prefix: String + getPaddedMask: String + getMask: String + getByMask: String + getMaskByName: String +} + +"""The output of our update `PrimaryKeyConstraint` mutation.""" +type 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 + + """The `PrimaryKeyConstraint` that was updated by this mutation.""" + primaryKeyConstraint: PrimaryKeyConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PrimaryKeyConstraint`. May be used by Relay 1.""" + primaryKeyConstraintEdge( + """The method to use when ordering `PrimaryKeyConstraint`.""" + orderBy: [PrimaryKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): PrimaryKeyConstraintEdge +} + +"""All input for the `updatePrimaryKeyConstraint` mutation.""" +input UpdatePrimaryKeyConstraintInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input PrimaryKeyConstraintPatch { + id: UUID + databaseId: UUID + tableId: UUID + name: String + type: String + fieldIds: [UUID] + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `Trigger` mutation.""" +type 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 + + """The `Trigger` that was updated by this mutation.""" + trigger: Trigger + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Trigger`. May be used by Relay 1.""" + triggerEdge( + """The method to use when ordering `Trigger`.""" + orderBy: [TriggerOrderBy!]! = [PRIMARY_KEY_ASC] + ): TriggerEdge +} + +"""All input for the `updateTrigger` mutation.""" +input UpdateTriggerInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input TriggerPatch { + id: UUID + databaseId: UUID + tableId: UUID + name: String + event: String + functionName: String + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `CheckConstraint` mutation.""" +type 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 + + """The `CheckConstraint` that was updated by this mutation.""" + checkConstraint: CheckConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `CheckConstraint`. May be used by Relay 1.""" + checkConstraintEdge( + """The method to use when ordering `CheckConstraint`.""" + orderBy: [CheckConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): CheckConstraintEdge +} + +"""All input for the `updateCheckConstraint` mutation.""" +input UpdateCheckConstraintInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input CheckConstraintPatch { + id: UUID + databaseId: UUID + tableId: UUID + name: String + type: String + fieldIds: [UUID] + expr: JSON + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `UniqueConstraint` mutation.""" +type 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 + + """The `UniqueConstraint` that was updated by this mutation.""" + uniqueConstraint: UniqueConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `UniqueConstraint`. May be used by Relay 1.""" + uniqueConstraintEdge( + """The method to use when ordering `UniqueConstraint`.""" + orderBy: [UniqueConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): UniqueConstraintEdge +} + +"""All input for the `updateUniqueConstraint` mutation.""" +input UpdateUniqueConstraintInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input UniqueConstraintPatch { + id: UUID + databaseId: UUID + tableId: UUID + name: String + description: String + smartTags: JSON + type: String + fieldIds: [UUID] + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `Procedure` mutation.""" +type 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 + + """The `Procedure` that was updated by this mutation.""" + procedure: Procedure + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Procedure`. May be used by Relay 1.""" + procedureEdge( + """The method to use when ordering `Procedure`.""" + orderBy: [ProcedureOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProcedureEdge +} + +"""All input for the `updateProcedure` mutation.""" +input UpdateProcedureInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input ProcedurePatch { + id: UUID + databaseId: UUID + name: String + argnames: [String] + argtypes: [String] + argdefaults: [String] + langName: String + definition: String + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `Policy` mutation.""" +type 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 + + """The `Policy` that was updated by this mutation.""" + policy: Policy + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Policy`. May be used by Relay 1.""" + policyEdge( + """The method to use when ordering `Policy`.""" + orderBy: [PolicyOrderBy!]! = [PRIMARY_KEY_ASC] + ): PolicyEdge +} + +"""All input for the `updatePolicy` mutation.""" +input UpdatePolicyInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input PolicyPatch { + id: UUID + databaseId: UUID + tableId: UUID + name: String + roleName: String + privilege: String + permissive: Boolean + disabled: Boolean + policyType: String + data: JSON + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `Invite` mutation.""" +type 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 + + """The `Invite` that was updated by this mutation.""" + invite: Invite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Invite`. May be used by Relay 1.""" + inviteEdge( + """The method to use when ordering `Invite`.""" + orderBy: [InviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): InviteEdge +} + +"""All input for the `updateInvite` mutation.""" +input UpdateInviteInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input InvitePatch { + id: UUID + email: ConstructiveInternalTypeEmail + senderId: UUID + inviteToken: String + inviteValid: Boolean + inviteLimit: Int + inviteCount: Int + multiple: Boolean + data: JSON + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `Index` mutation.""" +type 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 + + """The `Index` that was updated by this mutation.""" + index: Index + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Index`. May be used by Relay 1.""" + indexEdge( + """The method to use when ordering `Index`.""" + orderBy: [IndexOrderBy!]! = [PRIMARY_KEY_ASC] + ): IndexEdge +} + +"""All input for the `updateIndex` mutation.""" +input UpdateIndexInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input IndexPatch { + id: UUID + databaseId: UUID + tableId: UUID + name: String + fieldIds: [UUID] + includeFieldIds: [UUID] + accessMethod: String + indexParams: JSON + whereClause: JSON + isUnique: Boolean + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `LimitsModule` mutation.""" +type 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 + + """The `LimitsModule` that was updated by this mutation.""" + limitsModule: LimitsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `LimitsModule`. May be used by Relay 1.""" + limitsModuleEdge( + """The method to use when ordering `LimitsModule`.""" + orderBy: [LimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): LimitsModuleEdge +} + +"""All input for the `updateLimitsModule` mutation.""" +input UpdateLimitsModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input LimitsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + tableName: String + defaultTableId: UUID + defaultTableName: String + limitIncrementFunction: String + limitDecrementFunction: String + limitIncrementTrigger: String + limitDecrementTrigger: String + limitUpdateTrigger: String + limitCheckFunction: String + prefix: String + membershipType: Int + entityTableId: UUID + actorTableId: UUID +} + +"""The output of our update `Schema` mutation.""" +type 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 + + """The `Schema` that was updated by this mutation.""" + schema: Schema + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Schema`. May be used by Relay 1.""" + schemaEdge( + """The method to use when ordering `Schema`.""" + orderBy: [SchemaOrderBy!]! = [PRIMARY_KEY_ASC] + ): SchemaEdge +} + +"""All input for the `updateSchema` mutation.""" +input UpdateSchemaInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input SchemaPatch { + id: UUID + databaseId: UUID + name: String + schemaName: String + label: String + description: String + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + isPublic: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `ProfilesModule` mutation.""" +type 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 + + """The `ProfilesModule` that was updated by this mutation.""" + profilesModule: ProfilesModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ProfilesModule`. May be used by Relay 1.""" + profilesModuleEdge( + """The method to use when ordering `ProfilesModule`.""" + orderBy: [ProfilesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProfilesModuleEdge +} + +"""All input for the `updateProfilesModule` mutation.""" +input UpdateProfilesModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input ProfilesModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + tableName: String + profilePermissionsTableId: UUID + profilePermissionsTableName: String + profileGrantsTableId: UUID + profileGrantsTableName: String + profileDefinitionGrantsTableId: UUID + profileDefinitionGrantsTableName: String + bitlen: Int + membershipType: Int + entityTableId: UUID + actorTableId: UUID + permissionsTableId: UUID + membershipsTableId: UUID + prefix: String +} + +"""The output of our update `OrgInvite` mutation.""" +type 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 + + """The `OrgInvite` that was updated by this mutation.""" + orgInvite: OrgInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgInvite`. May be used by Relay 1.""" + orgInviteEdge( + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgInviteEdge +} + +"""All input for the `updateOrgInvite` mutation.""" +input UpdateOrgInviteInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input OrgInvitePatch { + id: UUID + email: ConstructiveInternalTypeEmail + senderId: UUID + receiverId: UUID + inviteToken: String + inviteValid: Boolean + inviteLimit: Int + inviteCount: Int + multiple: Boolean + data: JSON + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime + entityId: UUID +} + +"""The output of our update `HierarchyModule` mutation.""" +type 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 + + """The `HierarchyModule` that was updated by this mutation.""" + hierarchyModule: HierarchyModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `HierarchyModule`. May be used by Relay 1.""" + hierarchyModuleEdge( + """The method to use when ordering `HierarchyModule`.""" + orderBy: [HierarchyModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): HierarchyModuleEdge +} + +"""All input for the `updateHierarchyModule` mutation.""" +input UpdateHierarchyModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input HierarchyModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + chartEdgesTableId: UUID + chartEdgesTableName: String + hierarchySprtTableId: UUID + hierarchySprtTableName: String + chartEdgeGrantsTableId: UUID + chartEdgeGrantsTableName: String + entityTableId: UUID + usersTableId: UUID + prefix: String + privateSchemaName: String + sprtTableName: String + rebuildHierarchyFunction: String + getSubordinatesFunction: String + getManagersFunction: String + isManagerOfFunction: String + createdAt: Datetime +} + +"""The output of our update `ForeignKeyConstraint` mutation.""" +type 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 + + """The `ForeignKeyConstraint` that was updated by this mutation.""" + foreignKeyConstraint: ForeignKeyConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ForeignKeyConstraint`. May be used by Relay 1.""" + foreignKeyConstraintEdge( + """The method to use when ordering `ForeignKeyConstraint`.""" + orderBy: [ForeignKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): ForeignKeyConstraintEdge +} + +"""All input for the `updateForeignKeyConstraint` mutation.""" +input UpdateForeignKeyConstraintInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input ForeignKeyConstraintPatch { + id: UUID + databaseId: UUID + tableId: UUID + name: String + description: String + smartTags: JSON + type: String + fieldIds: [UUID] + refTableId: UUID + refFieldIds: [UUID] + deleteAction: String + updateAction: String + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `Table` mutation.""" +type 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 + + """The `Table` that was updated by this mutation.""" + table: Table + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Table`. May be used by Relay 1.""" + tableEdge( + """The method to use when ordering `Table`.""" + orderBy: [TableOrderBy!]! = [PRIMARY_KEY_ASC] + ): TableEdge +} + +"""All input for the `updateTable` mutation.""" +input UpdateTableInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input TablePatch { + id: UUID + databaseId: UUID + schemaId: UUID + name: String + label: String + description: String + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + useRls: Boolean + timestamps: Boolean + peoplestamps: Boolean + pluralName: String + singularName: String + tags: [String] + inheritsId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `LevelsModule` mutation.""" +type 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 + + """The `LevelsModule` that was updated by this mutation.""" + levelsModule: LevelsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `LevelsModule`. May be used by Relay 1.""" + levelsModuleEdge( + """The method to use when ordering `LevelsModule`.""" + orderBy: [LevelsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): LevelsModuleEdge +} + +"""All input for the `updateLevelsModule` mutation.""" +input UpdateLevelsModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input LevelsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + stepsTableId: UUID + stepsTableName: String + achievementsTableId: UUID + achievementsTableName: String + levelsTableId: UUID + levelsTableName: String + levelRequirementsTableId: UUID + 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: Int + entityTableId: UUID + actorTableId: UUID +} + +"""The output of our update `UserAuthModule` mutation.""" +type 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 + + """The `UserAuthModule` that was updated by this mutation.""" + userAuthModule: UserAuthModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `UserAuthModule`. May be used by Relay 1.""" + userAuthModuleEdge( + """The method to use when ordering `UserAuthModule`.""" + orderBy: [UserAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserAuthModuleEdge +} + +"""All input for the `updateUserAuthModule` mutation.""" +input UpdateUserAuthModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input UserAuthModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + emailsTableId: UUID + usersTableId: UUID + secretsTableId: UUID + encryptedTableId: UUID + sessionsTableId: UUID + sessionCredentialsTableId: UUID + auditsTableId: UUID + 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 +} + +"""The output of our update `Field` mutation.""" +type 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 + + """The `Field` that was updated by this mutation.""" + field: Field + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Field`. May be used by Relay 1.""" + fieldEdge( + """The method to use when ordering `Field`.""" + orderBy: [FieldOrderBy!]! = [PRIMARY_KEY_ASC] + ): FieldEdge +} + +"""All input for the `updateField` mutation.""" +input UpdateFieldInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input FieldPatch { + id: UUID + databaseId: UUID + tableId: UUID + name: String + label: String + description: String + smartTags: JSON + isRequired: Boolean + defaultValue: String + defaultValueAst: JSON + isHidden: Boolean + type: String + fieldOrder: Int + regexp: String + chk: JSON + chkExpr: JSON + min: Float + max: Float + tags: [String] + category: ObjectCategory + module: String + scope: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `MembershipsModule` mutation.""" +type 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 + + """The `MembershipsModule` that was updated by this mutation.""" + membershipsModule: MembershipsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipsModule`. May be used by Relay 1.""" + membershipsModuleEdge( + """The method to use when ordering `MembershipsModule`.""" + orderBy: [MembershipsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipsModuleEdge +} + +"""All input for the `updateMembershipsModule` mutation.""" +input UpdateMembershipsModuleInput { + """ + 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 + id: UUID! + + """ + 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. +""" +input MembershipsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + membershipsTableId: UUID + membershipsTableName: String + membersTableId: UUID + membersTableName: String + membershipDefaultsTableId: UUID + membershipDefaultsTableName: String + grantsTableId: UUID + grantsTableName: String + actorTableId: UUID + limitsTableId: UUID + defaultLimitsTableId: UUID + permissionsTableId: UUID + defaultPermissionsTableId: UUID + sprtTableId: UUID + adminGrantsTableId: UUID + adminGrantsTableName: String + ownerGrantsTableId: UUID + ownerGrantsTableName: String + membershipType: Int + entityTableId: UUID + entityTableOwnerId: UUID + prefix: String + actorMaskCheck: String + actorPermCheck: String + entityIdsByMask: String + entityIdsByPerm: String + entityIdsFunction: String +} + +"""The output of our delete `DefaultIdsModule` mutation.""" +type 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 + + """The `DefaultIdsModule` that was deleted by this mutation.""" + defaultIdsModule: DefaultIdsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DefaultIdsModule`. May be used by Relay 1.""" + defaultIdsModuleEdge( + """The method to use when ordering `DefaultIdsModule`.""" + orderBy: [DefaultIdsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DefaultIdsModuleEdge +} + +"""All input for the `deleteDefaultIdsModule` mutation.""" +input DeleteDefaultIdsModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `ViewTable` mutation.""" +type 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 + + """The `ViewTable` that was deleted by this mutation.""" + viewTable: ViewTable + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ViewTable`. May be used by Relay 1.""" + viewTableEdge( + """The method to use when ordering `ViewTable`.""" + orderBy: [ViewTableOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewTableEdge +} + +"""All input for the `deleteViewTable` mutation.""" +input DeleteViewTableInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `ApiSchema` mutation.""" +type 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 + + """The `ApiSchema` that was deleted by this mutation.""" + apiSchema: ApiSchema + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ApiSchema`. May be used by Relay 1.""" + apiSchemaEdge( + """The method to use when ordering `ApiSchema`.""" + orderBy: [ApiSchemaOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiSchemaEdge +} + +"""All input for the `deleteApiSchema` mutation.""" +input DeleteApiSchemaInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `SiteTheme` mutation.""" +type 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 + + """The `SiteTheme` that was deleted by this mutation.""" + siteTheme: SiteTheme + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteTheme`. May be used by Relay 1.""" + siteThemeEdge( + """The method to use when ordering `SiteTheme`.""" + orderBy: [SiteThemeOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteThemeEdge +} + +"""All input for the `deleteSiteTheme` mutation.""" +input DeleteSiteThemeInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `OrgMember` mutation.""" +type 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 + + """The `OrgMember` that was deleted by this mutation.""" + orgMember: OrgMember + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMember`. May be used by Relay 1.""" + orgMemberEdge( + """The method to use when ordering `OrgMember`.""" + orderBy: [OrgMemberOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberEdge +} + +"""All input for the `deleteOrgMember` mutation.""" +input DeleteOrgMemberInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppPermissionDefault` mutation.""" +type 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 + + """The `AppPermissionDefault` that was deleted by this mutation.""" + appPermissionDefault: AppPermissionDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" + appPermissionDefaultEdge( + """The method to use when ordering `AppPermissionDefault`.""" + orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultEdge +} + +"""All input for the `deleteAppPermissionDefault` mutation.""" +input DeleteAppPermissionDefaultInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `Ref` mutation.""" +type 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 + + """The `Ref` that was deleted by this mutation.""" + ref: Ref + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Ref`. May be used by Relay 1.""" + refEdge( + """The method to use when ordering `Ref`.""" + orderBy: [RefOrderBy!]! = [PRIMARY_KEY_ASC] + ): RefEdge +} + +"""All input for the `deleteRef` mutation.""" +input DeleteRefInput { + """ + 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 + + """The primary unique identifier for the ref.""" + id: UUID! + databaseId: UUID! +} + +"""The output of our delete `Store` mutation.""" +type 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 + + """The `Store` that was deleted by this mutation.""" + store: Store + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Store`. May be used by Relay 1.""" + storeEdge( + """The method to use when ordering `Store`.""" + orderBy: [StoreOrderBy!]! = [PRIMARY_KEY_ASC] + ): StoreEdge +} + +"""All input for the `deleteStore` mutation.""" +input DeleteStoreInput { + """ + 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 + + """The primary unique identifier for the store.""" + id: UUID! +} + +"""The output of our delete `ApiModule` mutation.""" +type 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 + + """The `ApiModule` that was deleted by this mutation.""" + apiModule: ApiModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ApiModule`. May be used by Relay 1.""" + apiModuleEdge( + """The method to use when ordering `ApiModule`.""" + orderBy: [ApiModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiModuleEdge +} + +"""All input for the `deleteApiModule` mutation.""" +input DeleteApiModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `SiteModule` mutation.""" +type 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 + + """The `SiteModule` that was deleted by this mutation.""" + siteModule: SiteModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteModule`. May be used by Relay 1.""" + siteModuleEdge( + """The method to use when ordering `SiteModule`.""" + orderBy: [SiteModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteModuleEdge +} + +"""All input for the `deleteSiteModule` mutation.""" +input DeleteSiteModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `EncryptedSecretsModule` mutation.""" +type 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 + + """The `EncryptedSecretsModule` that was deleted by this mutation.""" + encryptedSecretsModule: EncryptedSecretsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `EncryptedSecretsModule`. May be used by Relay 1.""" + encryptedSecretsModuleEdge( + """The method to use when ordering `EncryptedSecretsModule`.""" + orderBy: [EncryptedSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): EncryptedSecretsModuleEdge +} + +"""All input for the `deleteEncryptedSecretsModule` mutation.""" +input DeleteEncryptedSecretsModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `MembershipTypesModule` mutation.""" +type 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 + + """The `MembershipTypesModule` that was deleted by this mutation.""" + membershipTypesModule: MembershipTypesModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipTypesModule`. May be used by Relay 1.""" + membershipTypesModuleEdge( + """The method to use when ordering `MembershipTypesModule`.""" + orderBy: [MembershipTypesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypesModuleEdge +} + +"""All input for the `deleteMembershipTypesModule` mutation.""" +input DeleteMembershipTypesModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `SecretsModule` mutation.""" +type 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 + + """The `SecretsModule` that was deleted by this mutation.""" + secretsModule: SecretsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SecretsModule`. May be used by Relay 1.""" + secretsModuleEdge( + """The method to use when ordering `SecretsModule`.""" + orderBy: [SecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): SecretsModuleEdge +} + +"""All input for the `deleteSecretsModule` mutation.""" +input DeleteSecretsModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `UuidModule` mutation.""" +type 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 + + """The `UuidModule` that was deleted by this mutation.""" + uuidModule: UuidModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `UuidModule`. May be used by Relay 1.""" + uuidModuleEdge( + """The method to use when ordering `UuidModule`.""" + orderBy: [UuidModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UuidModuleEdge +} + +"""All input for the `deleteUuidModule` mutation.""" +input DeleteUuidModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `RoleType` mutation.""" +type 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 + + """The `RoleType` that was deleted by this mutation.""" + roleType: RoleType + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `RoleType`. May be used by Relay 1.""" + roleTypeEdge( + """The method to use when ordering `RoleType`.""" + orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): RoleTypeEdge +} + +"""All input for the `deleteRoleType` mutation.""" +input DeleteRoleTypeInput { + """ + 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 + id: Int! +} + +"""The output of our delete `OrgPermissionDefault` mutation.""" +type 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 + + """The `OrgPermissionDefault` that was deleted by this mutation.""" + orgPermissionDefault: OrgPermissionDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" + orgPermissionDefaultEdge( + """The method to use when ordering `OrgPermissionDefault`.""" + orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultEdge +} + +"""All input for the `deleteOrgPermissionDefault` mutation.""" +input DeleteOrgPermissionDefaultInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `SchemaGrant` mutation.""" +type 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 + + """The `SchemaGrant` that was deleted by this mutation.""" + schemaGrant: SchemaGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SchemaGrant`. May be used by Relay 1.""" + schemaGrantEdge( + """The method to use when ordering `SchemaGrant`.""" + orderBy: [SchemaGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): SchemaGrantEdge +} + +"""All input for the `deleteSchemaGrant` mutation.""" +input DeleteSchemaGrantInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `TriggerFunction` mutation.""" +type 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 + + """The `TriggerFunction` that was deleted by this mutation.""" + triggerFunction: TriggerFunction + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TriggerFunction`. May be used by Relay 1.""" + triggerFunctionEdge( + """The method to use when ordering `TriggerFunction`.""" + orderBy: [TriggerFunctionOrderBy!]! = [PRIMARY_KEY_ASC] + ): TriggerFunctionEdge +} + +"""All input for the `deleteTriggerFunction` mutation.""" +input DeleteTriggerFunctionInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `ViewGrant` mutation.""" +type 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 + + """The `ViewGrant` that was deleted by this mutation.""" + viewGrant: ViewGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ViewGrant`. May be used by Relay 1.""" + viewGrantEdge( + """The method to use when ordering `ViewGrant`.""" + orderBy: [ViewGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewGrantEdge +} + +"""All input for the `deleteViewGrant` mutation.""" +input DeleteViewGrantInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `ViewRule` mutation.""" +type 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 + + """The `ViewRule` that was deleted by this mutation.""" + viewRule: ViewRule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ViewRule`. May be used by Relay 1.""" + viewRuleEdge( + """The method to use when ordering `ViewRule`.""" + orderBy: [ViewRuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewRuleEdge +} + +"""All input for the `deleteViewRule` mutation.""" +input DeleteViewRuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppAdminGrant` mutation.""" +type 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 + + """The `AppAdminGrant` that was deleted by this mutation.""" + appAdminGrant: AppAdminGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppAdminGrant`. May be used by Relay 1.""" + appAdminGrantEdge( + """The method to use when ordering `AppAdminGrant`.""" + orderBy: [AppAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAdminGrantEdge +} + +"""All input for the `deleteAppAdminGrant` mutation.""" +input DeleteAppAdminGrantInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppOwnerGrant` mutation.""" +type 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 + + """The `AppOwnerGrant` that was deleted by this mutation.""" + appOwnerGrant: AppOwnerGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppOwnerGrant`. May be used by Relay 1.""" + appOwnerGrantEdge( + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppOwnerGrantEdge +} + +"""All input for the `deleteAppOwnerGrant` mutation.""" +input DeleteAppOwnerGrantInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppLimitDefault` mutation.""" +type 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 + + """The `AppLimitDefault` that was deleted by this mutation.""" + appLimitDefault: AppLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge +} + +"""All input for the `deleteAppLimitDefault` mutation.""" +input DeleteAppLimitDefaultInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `OrgLimitDefault` mutation.""" +type 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 + + """The `OrgLimitDefault` that was deleted by this mutation.""" + orgLimitDefault: OrgLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge +} + +"""All input for the `deleteOrgLimitDefault` mutation.""" +input DeleteOrgLimitDefaultInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `Api` mutation.""" +type 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 + + """The `Api` that was deleted by this mutation.""" + api: Api + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Api`. May be used by Relay 1.""" + apiEdge( + """The method to use when ordering `Api`.""" + orderBy: [ApiOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiEdge +} + +"""All input for the `deleteApi` mutation.""" +input DeleteApiInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `ConnectedAccountsModule` mutation.""" +type 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 + + """The `ConnectedAccountsModule` that was deleted by this mutation.""" + connectedAccountsModule: ConnectedAccountsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConnectedAccountsModule`. May be used by Relay 1.""" + connectedAccountsModuleEdge( + """The method to use when ordering `ConnectedAccountsModule`.""" + orderBy: [ConnectedAccountsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConnectedAccountsModuleEdge +} + +"""All input for the `deleteConnectedAccountsModule` mutation.""" +input DeleteConnectedAccountsModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `EmailsModule` mutation.""" +type 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 + + """The `EmailsModule` that was deleted by this mutation.""" + emailsModule: EmailsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `EmailsModule`. May be used by Relay 1.""" + emailsModuleEdge( + """The method to use when ordering `EmailsModule`.""" + orderBy: [EmailsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailsModuleEdge +} + +"""All input for the `deleteEmailsModule` mutation.""" +input DeleteEmailsModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `PhoneNumbersModule` mutation.""" +type 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 + + """The `PhoneNumbersModule` that was deleted by this mutation.""" + phoneNumbersModule: PhoneNumbersModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PhoneNumbersModule`. May be used by Relay 1.""" + phoneNumbersModuleEdge( + """The method to use when ordering `PhoneNumbersModule`.""" + orderBy: [PhoneNumbersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PhoneNumbersModuleEdge +} + +"""All input for the `deletePhoneNumbersModule` mutation.""" +input DeletePhoneNumbersModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `TableModule` mutation.""" +type 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 + + """The `TableModule` that was deleted by this mutation.""" + tableModule: TableModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TableModule`. May be used by Relay 1.""" + tableModuleEdge( + """The method to use when ordering `TableModule`.""" + orderBy: [TableModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): TableModuleEdge +} + +"""All input for the `deleteTableModule` mutation.""" +input DeleteTableModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `UsersModule` mutation.""" +type 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 + + """The `UsersModule` that was deleted by this mutation.""" + usersModule: UsersModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `UsersModule`. May be used by Relay 1.""" + usersModuleEdge( + """The method to use when ordering `UsersModule`.""" + orderBy: [UsersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UsersModuleEdge +} + +"""All input for the `deleteUsersModule` mutation.""" +input DeleteUsersModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `OrgAdminGrant` mutation.""" +type 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 + + """The `OrgAdminGrant` that was deleted by this mutation.""" + orgAdminGrant: OrgAdminGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgAdminGrant`. May be used by Relay 1.""" + orgAdminGrantEdge( + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgAdminGrantEdge +} + +"""All input for the `deleteOrgAdminGrant` mutation.""" +input DeleteOrgAdminGrantInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `OrgOwnerGrant` mutation.""" +type 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 + + """The `OrgOwnerGrant` that was deleted by this mutation.""" + orgOwnerGrant: OrgOwnerGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgOwnerGrant`. May be used by Relay 1.""" + orgOwnerGrantEdge( + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantEdge +} + +"""All input for the `deleteOrgOwnerGrant` mutation.""" +input DeleteOrgOwnerGrantInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `CryptoAddress` mutation.""" +type 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 + + """The `CryptoAddress` that was deleted by this mutation.""" + cryptoAddress: CryptoAddress + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `CryptoAddress`. May be used by Relay 1.""" + cryptoAddressEdge( + """The method to use when ordering `CryptoAddress`.""" + orderBy: [CryptoAddressOrderBy!]! = [PRIMARY_KEY_ASC] + ): CryptoAddressEdge +} + +"""All input for the `deleteCryptoAddress` mutation.""" +input DeleteCryptoAddressInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `MembershipType` mutation.""" +type 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 + + """The `MembershipType` that was deleted by this mutation.""" + membershipType: MembershipType + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge +} + +"""All input for the `deleteMembershipType` mutation.""" +input DeleteMembershipTypeInput { + """ + 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 + id: Int! +} + +"""The output of our delete `Database` mutation.""" +type 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 + + """The `Database` that was deleted by this mutation.""" + database: Database + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Database`. May be used by Relay 1.""" + databaseEdge( + """The method to use when ordering `Database`.""" + orderBy: [DatabaseOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseEdge +} + +"""All input for the `deleteDatabase` mutation.""" +input DeleteDatabaseInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `LimitFunction` mutation.""" +type 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 + + """The `LimitFunction` that was deleted by this mutation.""" + limitFunction: LimitFunction + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `LimitFunction`. May be used by Relay 1.""" + limitFunctionEdge( + """The method to use when ordering `LimitFunction`.""" + orderBy: [LimitFunctionOrderBy!]! = [PRIMARY_KEY_ASC] + ): LimitFunctionEdge +} + +"""All input for the `deleteLimitFunction` mutation.""" +input DeleteLimitFunctionInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `TableGrant` mutation.""" +type 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 + + """The `TableGrant` that was deleted by this mutation.""" + tableGrant: TableGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TableGrant`. May be used by Relay 1.""" + tableGrantEdge( + """The method to use when ordering `TableGrant`.""" + orderBy: [TableGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): TableGrantEdge +} + +"""All input for the `deleteTableGrant` mutation.""" +input DeleteTableGrantInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `CryptoAddressesModule` mutation.""" +type 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 + + """The `CryptoAddressesModule` that was deleted by this mutation.""" + cryptoAddressesModule: CryptoAddressesModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `CryptoAddressesModule`. May be used by Relay 1.""" + cryptoAddressesModuleEdge( + """The method to use when ordering `CryptoAddressesModule`.""" + orderBy: [CryptoAddressesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): CryptoAddressesModuleEdge +} + +"""All input for the `deleteCryptoAddressesModule` mutation.""" +input DeleteCryptoAddressesModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `ConnectedAccount` mutation.""" +type 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 + + """The `ConnectedAccount` that was deleted by this mutation.""" + connectedAccount: ConnectedAccount + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConnectedAccount`. May be used by Relay 1.""" + connectedAccountEdge( + """The method to use when ordering `ConnectedAccount`.""" + orderBy: [ConnectedAccountOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConnectedAccountEdge +} + +"""All input for the `deleteConnectedAccount` mutation.""" +input DeleteConnectedAccountInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `PhoneNumber` mutation.""" +type 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 + + """The `PhoneNumber` that was deleted by this mutation.""" + phoneNumber: PhoneNumber + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PhoneNumber`. May be used by Relay 1.""" + phoneNumberEdge( + """The method to use when ordering `PhoneNumber`.""" + orderBy: [PhoneNumberOrderBy!]! = [PRIMARY_KEY_ASC] + ): PhoneNumberEdge +} + +"""All input for the `deletePhoneNumber` mutation.""" +input DeletePhoneNumberInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppPermission` mutation.""" +type 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 + + """The `AppPermission` that was deleted by this mutation.""" + appPermission: AppPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge +} + +"""All input for the `deleteAppPermission` mutation.""" +input DeleteAppPermissionInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `OrgPermission` mutation.""" +type 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 + + """The `OrgPermission` that was deleted by this mutation.""" + orgPermission: OrgPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge +} + +"""All input for the `deleteOrgPermission` mutation.""" +input DeleteOrgPermissionInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppLimit` mutation.""" +type 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 + + """The `AppLimit` that was deleted by this mutation.""" + appLimit: AppLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge +} + +"""All input for the `deleteAppLimit` mutation.""" +input DeleteAppLimitInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppAchievement` mutation.""" +type 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 + + """The `AppAchievement` that was deleted by this mutation.""" + appAchievement: AppAchievement + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppAchievement`. May be used by Relay 1.""" + appAchievementEdge( + """The method to use when ordering `AppAchievement`.""" + orderBy: [AppAchievementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAchievementEdge +} + +"""All input for the `deleteAppAchievement` mutation.""" +input DeleteAppAchievementInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppStep` mutation.""" +type 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 + + """The `AppStep` that was deleted by this mutation.""" + appStep: AppStep + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppStep`. May be used by Relay 1.""" + appStepEdge( + """The method to use when ordering `AppStep`.""" + orderBy: [AppStepOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppStepEdge +} + +"""All input for the `deleteAppStep` mutation.""" +input DeleteAppStepInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `ClaimedInvite` mutation.""" +type 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 + + """The `ClaimedInvite` that was deleted by this mutation.""" + claimedInvite: ClaimedInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ClaimedInvite`. May be used by Relay 1.""" + claimedInviteEdge( + """The method to use when ordering `ClaimedInvite`.""" + orderBy: [ClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): ClaimedInviteEdge +} + +"""All input for the `deleteClaimedInvite` mutation.""" +input DeleteClaimedInviteInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppMembershipDefault` mutation.""" +type 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 + + """The `AppMembershipDefault` that was deleted by this mutation.""" + appMembershipDefault: AppMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge +} + +"""All input for the `deleteAppMembershipDefault` mutation.""" +input DeleteAppMembershipDefaultInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `SiteMetadatum` mutation.""" +type 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 + + """The `SiteMetadatum` that was deleted by this mutation.""" + siteMetadatum: SiteMetadatum + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteMetadatum`. May be used by Relay 1.""" + siteMetadatumEdge( + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteMetadatumEdge +} + +"""All input for the `deleteSiteMetadatum` mutation.""" +input DeleteSiteMetadatumInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `FieldModule` mutation.""" +type 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 + + """The `FieldModule` that was deleted by this mutation.""" + fieldModule: FieldModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `FieldModule`. May be used by Relay 1.""" + fieldModuleEdge( + """The method to use when ordering `FieldModule`.""" + orderBy: [FieldModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): FieldModuleEdge +} + +"""All input for the `deleteFieldModule` mutation.""" +input DeleteFieldModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `TableTemplateModule` mutation.""" +type 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 + + """The `TableTemplateModule` that was deleted by this mutation.""" + tableTemplateModule: TableTemplateModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `TableTemplateModule`. May be used by Relay 1.""" + tableTemplateModuleEdge( + """The method to use when ordering `TableTemplateModule`.""" + orderBy: [TableTemplateModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): TableTemplateModuleEdge +} + +"""All input for the `deleteTableTemplateModule` mutation.""" +input DeleteTableTemplateModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `NodeTypeRegistry` mutation.""" +type 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 + + """The `NodeTypeRegistry` that was deleted by this mutation.""" + nodeTypeRegistry: NodeTypeRegistry + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `NodeTypeRegistry`. May be used by Relay 1.""" + nodeTypeRegistryEdge( + """The method to use when ordering `NodeTypeRegistry`.""" + orderBy: [NodeTypeRegistryOrderBy!]! = [PRIMARY_KEY_ASC] + ): NodeTypeRegistryEdge +} + +"""All input for the `deleteNodeTypeRegistry` mutation.""" +input DeleteNodeTypeRegistryInput { + """ + 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 + + """ + PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) + """ + name: String! +} + +"""The output of our delete `Object` mutation.""" +type 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 + + """The `Object` that was deleted by this mutation.""" + object: Object + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Object`. May be used by Relay 1.""" + objectEdge( + """The method to use when ordering `Object`.""" + orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): ObjectEdge +} + +"""All input for the `deleteObject` mutation.""" +input DeleteObjectInput { + """ + 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 + id: UUID! + databaseId: UUID! +} + +"""The output of our delete `FullTextSearch` mutation.""" +type 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 + + """The `FullTextSearch` that was deleted by this mutation.""" + fullTextSearch: FullTextSearch + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `FullTextSearch`. May be used by Relay 1.""" + fullTextSearchEdge( + """The method to use when ordering `FullTextSearch`.""" + orderBy: [FullTextSearchOrderBy!]! = [PRIMARY_KEY_ASC] + ): FullTextSearchEdge +} + +"""All input for the `deleteFullTextSearch` mutation.""" +input DeleteFullTextSearchInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `Commit` mutation.""" +type 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 + + """The `Commit` that was deleted by this mutation.""" + commit: Commit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Commit`. May be used by Relay 1.""" + commitEdge( + """The method to use when ordering `Commit`.""" + orderBy: [CommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): CommitEdge +} + +"""All input for the `deleteCommit` mutation.""" +input DeleteCommitInput { + """ + 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 + + """The primary unique identifier for the commit.""" + id: UUID! + + """The repository identifier""" + databaseId: UUID! +} + +"""The output of our delete `OrgLimit` mutation.""" +type 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 + + """The `OrgLimit` that was deleted by this mutation.""" + orgLimit: OrgLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge +} + +"""All input for the `deleteOrgLimit` mutation.""" +input DeleteOrgLimitInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppGrant` mutation.""" +type 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 + + """The `AppGrant` that was deleted by this mutation.""" + appGrant: AppGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppGrant`. May be used by Relay 1.""" + appGrantEdge( + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppGrantEdge +} + +"""All input for the `deleteAppGrant` mutation.""" +input DeleteAppGrantInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `OrgClaimedInvite` mutation.""" +type 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 + + """The `OrgClaimedInvite` that was deleted by this mutation.""" + orgClaimedInvite: OrgClaimedInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" + orgClaimedInviteEdge( + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteEdge +} + +"""All input for the `deleteOrgClaimedInvite` mutation.""" +input DeleteOrgClaimedInviteInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `Domain` mutation.""" +type 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 + + """The `Domain` that was deleted by this mutation.""" + domain: Domain + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Domain`. May be used by Relay 1.""" + domainEdge( + """The method to use when ordering `Domain`.""" + orderBy: [DomainOrderBy!]! = [PRIMARY_KEY_ASC] + ): DomainEdge +} + +"""All input for the `deleteDomain` mutation.""" +input DeleteDomainInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `OrgGrant` mutation.""" +type 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 + + """The `OrgGrant` that was deleted by this mutation.""" + orgGrant: OrgGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgGrant`. May be used by Relay 1.""" + orgGrantEdge( + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgGrantEdge +} + +"""All input for the `deleteOrgGrant` mutation.""" +input DeleteOrgGrantInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `OrgMembershipDefault` mutation.""" +type 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 + + """The `OrgMembershipDefault` that was deleted by this mutation.""" + orgMembershipDefault: OrgMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge +} + +"""All input for the `deleteOrgMembershipDefault` mutation.""" +input DeleteOrgMembershipDefaultInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `SessionsModule` mutation.""" +type 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 + + """The `SessionsModule` that was deleted by this mutation.""" + sessionsModule: SessionsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SessionsModule`. May be used by Relay 1.""" + sessionsModuleEdge( + """The method to use when ordering `SessionsModule`.""" + orderBy: [SessionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): SessionsModuleEdge +} + +"""All input for the `deleteSessionsModule` mutation.""" +input DeleteSessionsModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `Email` mutation.""" +type 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 + + """The `Email` that was deleted by this mutation.""" + email: Email + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Email`. May be used by Relay 1.""" + emailEdge( + """The method to use when ordering `Email`.""" + orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailEdge +} + +"""All input for the `deleteEmail` mutation.""" +input DeleteEmailInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppLevelRequirement` mutation.""" +type 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 + + """The `AppLevelRequirement` that was deleted by this mutation.""" + appLevelRequirement: AppLevelRequirement + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLevelRequirement`. May be used by Relay 1.""" + appLevelRequirementEdge( + """The method to use when ordering `AppLevelRequirement`.""" + orderBy: [AppLevelRequirementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLevelRequirementEdge +} + +"""All input for the `deleteAppLevelRequirement` mutation.""" +input DeleteAppLevelRequirementInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AuditLog` mutation.""" +type 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 + + """The `AuditLog` that was deleted by this mutation.""" + auditLog: AuditLog + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AuditLog`. May be used by Relay 1.""" + auditLogEdge( + """The method to use when ordering `AuditLog`.""" + orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] + ): AuditLogEdge +} + +"""All input for the `deleteAuditLog` mutation.""" +input DeleteAuditLogInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppLevel` mutation.""" +type 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 + + """The `AppLevel` that was deleted by this mutation.""" + appLevel: AppLevel + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLevel`. May be used by Relay 1.""" + appLevelEdge( + """The method to use when ordering `AppLevel`.""" + orderBy: [AppLevelOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLevelEdge +} + +"""All input for the `deleteAppLevel` mutation.""" +input DeleteAppLevelInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `RlsModule` mutation.""" +type 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 + + """The `RlsModule` that was deleted by this mutation.""" + rlsModule: RlsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `RlsModule`. May be used by Relay 1.""" + rlsModuleEdge( + """The method to use when ordering `RlsModule`.""" + orderBy: [RlsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RlsModuleEdge +} + +"""All input for the `deleteRlsModule` mutation.""" +input DeleteRlsModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `DenormalizedTableField` mutation.""" +type 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 + + """The `DenormalizedTableField` that was deleted by this mutation.""" + denormalizedTableField: DenormalizedTableField + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DenormalizedTableField`. May be used by Relay 1.""" + denormalizedTableFieldEdge( + """The method to use when ordering `DenormalizedTableField`.""" + orderBy: [DenormalizedTableFieldOrderBy!]! = [PRIMARY_KEY_ASC] + ): DenormalizedTableFieldEdge +} + +"""All input for the `deleteDenormalizedTableField` mutation.""" +input DeleteDenormalizedTableFieldInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `CryptoAuthModule` mutation.""" +type 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 + + """The `CryptoAuthModule` that was deleted by this mutation.""" + cryptoAuthModule: CryptoAuthModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `CryptoAuthModule`. May be used by Relay 1.""" + cryptoAuthModuleEdge( + """The method to use when ordering `CryptoAuthModule`.""" + orderBy: [CryptoAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): CryptoAuthModuleEdge +} + +"""All input for the `deleteCryptoAuthModule` mutation.""" +input DeleteCryptoAuthModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `DatabaseProvisionModule` mutation.""" +type 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 + + """The `DatabaseProvisionModule` that was deleted by this mutation.""" + databaseProvisionModule: DatabaseProvisionModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DatabaseProvisionModule`. May be used by Relay 1.""" + databaseProvisionModuleEdge( + """The method to use when ordering `DatabaseProvisionModule`.""" + orderBy: [DatabaseProvisionModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseProvisionModuleEdge +} + +"""All input for the `deleteDatabaseProvisionModule` mutation.""" +input DeleteDatabaseProvisionModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `InvitesModule` mutation.""" +type 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 + + """The `InvitesModule` that was deleted by this mutation.""" + invitesModule: InvitesModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `InvitesModule`. May be used by Relay 1.""" + invitesModuleEdge( + """The method to use when ordering `InvitesModule`.""" + orderBy: [InvitesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InvitesModuleEdge +} + +"""All input for the `deleteInvitesModule` mutation.""" +input DeleteInvitesModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `View` mutation.""" +type 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 + + """The `View` that was deleted by this mutation.""" + view: View + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `View`. May be used by Relay 1.""" + viewEdge( + """The method to use when ordering `View`.""" + orderBy: [ViewOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewEdge +} + +"""All input for the `deleteView` mutation.""" +input DeleteViewInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `AppMembership` mutation.""" +type 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 + + """The `AppMembership` that was deleted by this mutation.""" + appMembership: AppMembership + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge +} + +"""All input for the `deleteAppMembership` mutation.""" +input DeleteAppMembershipInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `OrgMembership` mutation.""" +type 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 + + """The `OrgMembership` that was deleted by this mutation.""" + orgMembership: OrgMembership + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge +} + +"""All input for the `deleteOrgMembership` mutation.""" +input DeleteOrgMembershipInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `App` mutation.""" +type 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 + + """The `App` that was deleted by this mutation.""" + app: App + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `App`. May be used by Relay 1.""" + appEdge( + """The method to use when ordering `App`.""" + orderBy: [AppOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppEdge +} + +"""All input for the `deleteApp` mutation.""" +input DeleteAppInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `Site` mutation.""" +type 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 + + """The `Site` that was deleted by this mutation.""" + site: Site + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Site`. May be used by Relay 1.""" + siteEdge( + """The method to use when ordering `Site`.""" + orderBy: [SiteOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteEdge +} + +"""All input for the `deleteSite` mutation.""" +input DeleteSiteInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `User` mutation.""" +type 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 + + """The `User` that was deleted by this mutation.""" + user: User + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `User`. May be used by Relay 1.""" + userEdge( + """The method to use when ordering `User`.""" + orderBy: [UserOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserEdge +} + +"""All input for the `deleteUser` mutation.""" +input DeleteUserInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `PermissionsModule` mutation.""" +type 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 + + """The `PermissionsModule` that was deleted by this mutation.""" + permissionsModule: PermissionsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PermissionsModule`. May be used by Relay 1.""" + permissionsModuleEdge( + """The method to use when ordering `PermissionsModule`.""" + orderBy: [PermissionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PermissionsModuleEdge +} + +"""All input for the `deletePermissionsModule` mutation.""" +input DeletePermissionsModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `PrimaryKeyConstraint` mutation.""" +type 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 + + """The `PrimaryKeyConstraint` that was deleted by this mutation.""" + primaryKeyConstraint: PrimaryKeyConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PrimaryKeyConstraint`. May be used by Relay 1.""" + primaryKeyConstraintEdge( + """The method to use when ordering `PrimaryKeyConstraint`.""" + orderBy: [PrimaryKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): PrimaryKeyConstraintEdge +} + +"""All input for the `deletePrimaryKeyConstraint` mutation.""" +input DeletePrimaryKeyConstraintInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `Trigger` mutation.""" +type 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 + + """The `Trigger` that was deleted by this mutation.""" + trigger: Trigger + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Trigger`. May be used by Relay 1.""" + triggerEdge( + """The method to use when ordering `Trigger`.""" + orderBy: [TriggerOrderBy!]! = [PRIMARY_KEY_ASC] + ): TriggerEdge +} + +"""All input for the `deleteTrigger` mutation.""" +input DeleteTriggerInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `CheckConstraint` mutation.""" +type 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 + + """The `CheckConstraint` that was deleted by this mutation.""" + checkConstraint: CheckConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `CheckConstraint`. May be used by Relay 1.""" + checkConstraintEdge( + """The method to use when ordering `CheckConstraint`.""" + orderBy: [CheckConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): CheckConstraintEdge +} + +"""All input for the `deleteCheckConstraint` mutation.""" +input DeleteCheckConstraintInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `UniqueConstraint` mutation.""" +type 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 + + """The `UniqueConstraint` that was deleted by this mutation.""" + uniqueConstraint: UniqueConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `UniqueConstraint`. May be used by Relay 1.""" + uniqueConstraintEdge( + """The method to use when ordering `UniqueConstraint`.""" + orderBy: [UniqueConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): UniqueConstraintEdge +} + +"""All input for the `deleteUniqueConstraint` mutation.""" +input DeleteUniqueConstraintInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `Procedure` mutation.""" +type 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 + + """The `Procedure` that was deleted by this mutation.""" + procedure: Procedure + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Procedure`. May be used by Relay 1.""" + procedureEdge( + """The method to use when ordering `Procedure`.""" + orderBy: [ProcedureOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProcedureEdge +} + +"""All input for the `deleteProcedure` mutation.""" +input DeleteProcedureInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `Policy` mutation.""" +type 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 + + """The `Policy` that was deleted by this mutation.""" + policy: Policy + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Policy`. May be used by Relay 1.""" + policyEdge( + """The method to use when ordering `Policy`.""" + orderBy: [PolicyOrderBy!]! = [PRIMARY_KEY_ASC] + ): PolicyEdge +} + +"""All input for the `deletePolicy` mutation.""" +input DeletePolicyInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `Invite` mutation.""" +type 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 + + """The `Invite` that was deleted by this mutation.""" + invite: Invite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Invite`. May be used by Relay 1.""" + inviteEdge( + """The method to use when ordering `Invite`.""" + orderBy: [InviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): InviteEdge +} + +"""All input for the `deleteInvite` mutation.""" +input DeleteInviteInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `Index` mutation.""" +type 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 + + """The `Index` that was deleted by this mutation.""" + index: Index + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Index`. May be used by Relay 1.""" + indexEdge( + """The method to use when ordering `Index`.""" + orderBy: [IndexOrderBy!]! = [PRIMARY_KEY_ASC] + ): IndexEdge +} + +"""All input for the `deleteIndex` mutation.""" +input DeleteIndexInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `LimitsModule` mutation.""" +type 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 + + """The `LimitsModule` that was deleted by this mutation.""" + limitsModule: LimitsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `LimitsModule`. May be used by Relay 1.""" + limitsModuleEdge( + """The method to use when ordering `LimitsModule`.""" + orderBy: [LimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): LimitsModuleEdge +} + +"""All input for the `deleteLimitsModule` mutation.""" +input DeleteLimitsModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `Schema` mutation.""" +type 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 + + """The `Schema` that was deleted by this mutation.""" + schema: Schema + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Schema`. May be used by Relay 1.""" + schemaEdge( + """The method to use when ordering `Schema`.""" + orderBy: [SchemaOrderBy!]! = [PRIMARY_KEY_ASC] + ): SchemaEdge +} + +"""All input for the `deleteSchema` mutation.""" +input DeleteSchemaInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `ProfilesModule` mutation.""" +type 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 + + """The `ProfilesModule` that was deleted by this mutation.""" + profilesModule: ProfilesModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ProfilesModule`. May be used by Relay 1.""" + profilesModuleEdge( + """The method to use when ordering `ProfilesModule`.""" + orderBy: [ProfilesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProfilesModuleEdge +} + +"""All input for the `deleteProfilesModule` mutation.""" +input DeleteProfilesModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `OrgInvite` mutation.""" +type 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 + + """The `OrgInvite` that was deleted by this mutation.""" + orgInvite: OrgInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgInvite`. May be used by Relay 1.""" + orgInviteEdge( + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgInviteEdge +} + +"""All input for the `deleteOrgInvite` mutation.""" +input DeleteOrgInviteInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `HierarchyModule` mutation.""" +type 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 + + """The `HierarchyModule` that was deleted by this mutation.""" + hierarchyModule: HierarchyModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `HierarchyModule`. May be used by Relay 1.""" + hierarchyModuleEdge( + """The method to use when ordering `HierarchyModule`.""" + orderBy: [HierarchyModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): HierarchyModuleEdge +} + +"""All input for the `deleteHierarchyModule` mutation.""" +input DeleteHierarchyModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `ForeignKeyConstraint` mutation.""" +type 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 + + """The `ForeignKeyConstraint` that was deleted by this mutation.""" + foreignKeyConstraint: ForeignKeyConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ForeignKeyConstraint`. May be used by Relay 1.""" + foreignKeyConstraintEdge( + """The method to use when ordering `ForeignKeyConstraint`.""" + orderBy: [ForeignKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): ForeignKeyConstraintEdge +} + +"""All input for the `deleteForeignKeyConstraint` mutation.""" +input DeleteForeignKeyConstraintInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `Table` mutation.""" +type 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 + + """The `Table` that was deleted by this mutation.""" + table: Table + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Table`. May be used by Relay 1.""" + tableEdge( + """The method to use when ordering `Table`.""" + orderBy: [TableOrderBy!]! = [PRIMARY_KEY_ASC] + ): TableEdge +} + +"""All input for the `deleteTable` mutation.""" +input DeleteTableInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `LevelsModule` mutation.""" +type 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 + + """The `LevelsModule` that was deleted by this mutation.""" + levelsModule: LevelsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `LevelsModule`. May be used by Relay 1.""" + levelsModuleEdge( + """The method to use when ordering `LevelsModule`.""" + orderBy: [LevelsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): LevelsModuleEdge +} + +"""All input for the `deleteLevelsModule` mutation.""" +input DeleteLevelsModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `UserAuthModule` mutation.""" +type 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 + + """The `UserAuthModule` that was deleted by this mutation.""" + userAuthModule: UserAuthModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `UserAuthModule`. May be used by Relay 1.""" + userAuthModuleEdge( + """The method to use when ordering `UserAuthModule`.""" + orderBy: [UserAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): UserAuthModuleEdge +} + +"""All input for the `deleteUserAuthModule` mutation.""" +input DeleteUserAuthModuleInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `Field` mutation.""" +type 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 + + """The `Field` that was deleted by this mutation.""" + field: Field + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Field`. May be used by Relay 1.""" + fieldEdge( + """The method to use when ordering `Field`.""" + orderBy: [FieldOrderBy!]! = [PRIMARY_KEY_ASC] + ): FieldEdge +} + +"""All input for the `deleteField` mutation.""" +input DeleteFieldInput { + """ + 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 + id: UUID! +} + +"""The output of our delete `MembershipsModule` mutation.""" +type 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 + + """The `MembershipsModule` that was deleted by this mutation.""" + membershipsModule: MembershipsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipsModule`. May be used by Relay 1.""" + membershipsModuleEdge( + """The method to use when ordering `MembershipsModule`.""" + orderBy: [MembershipsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipsModuleEdge +} + +"""All input for the `deleteMembershipsModule` mutation.""" +input DeleteMembershipsModuleInput { + """ + 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 + id: UUID! +} \ No newline at end of file diff --git a/sdk/constructive-sdk/scripts/generate-sdk.ts b/sdk/constructive-sdk/scripts/generate-sdk.ts new file mode 100644 index 000000000..600abe198 --- /dev/null +++ b/sdk/constructive-sdk/scripts/generate-sdk.ts @@ -0,0 +1,68 @@ +import { + generateMulti, + expandSchemaDirToMultiTarget, +} from '@constructive-io/graphql-codegen'; + +const SCHEMA_DIR = '../constructive-sdk/schemas'; + +const EXCLUDE_TARGETS = ['private']; + +async function main() { + console.log('Generating SDK from schema files...'); + console.log(`Schema directory: ${SCHEMA_DIR}`); + + const baseConfig = { + schemaDir: SCHEMA_DIR, + output: './src', + orm: true, + verbose: 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('\nSDK generation failed for one or more targets'); + process.exit(1); + } + + console.log('\nSDK generation completed successfully!'); +} + +main().catch((err) => { + console.error('Fatal error:', err); + process.exit(1); +}); diff --git a/sdk/constructive-sdk/src/admin/README.md b/sdk/constructive-sdk/src/admin/README.md new file mode 100644 index 000000000..18018ea8a --- /dev/null +++ b/sdk/constructive-sdk/src/admin/README.md @@ -0,0 +1,41 @@ +# Generated GraphQL SDK + +

+ +

+ +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +## Overview + +- **Tables:** 28 +- **Custom queries:** 10 +- **Custom mutations:** 2 + +**Generators:** ORM + +## 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. + +--- + +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-sdk/src/admin/index.ts b/sdk/constructive-sdk/src/admin/index.ts new file mode 100644 index 000000000..51e77d3d4 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/index.ts @@ -0,0 +1,5 @@ +/** + * Generated SDK - auto-generated, do not edit + * @generated by @constructive-io/graphql-codegen + */ +export * from './orm'; diff --git a/sdk/constructive-sdk/src/admin/orm/AGENTS.md b/sdk/constructive-sdk/src/admin/orm/AGENTS.md new file mode 100644 index 000000000..b8c521b66 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/AGENTS.md @@ -0,0 +1,1222 @@ +# ORM Client - Agent Reference + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT +> This document is structured for LLM/agent consumption. + +## OVERVIEW + +Prisma-like ORM client for interacting with a GraphQL API. +All methods return a query builder. Call `.execute()` to run the query. + +## SETUP + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## MODELS + +### MODEL: appPermission + +Access: `db.appPermission` + +``` +METHODS: + db.appPermission.findMany({ select, where?, orderBy?, first?, offset? }) + db.appPermission.findOne({ where: { id }, select }) + db.appPermission.create({ data: { name, bitnum, bitstr, description }, select }) + db.appPermission.update({ where: { id }, data, select }) + db.appPermission.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + name: string + bitnum: number + bitstr: string + description: string + +EDITABLE FIELDS: + name: string + bitnum: number + bitstr: string + description: string + +OUTPUT: Promise + findMany: [{ id, name, bitnum, bitstr, description }] + findOne: { id, name, bitnum, bitstr, description } + create: { id, name, bitnum, bitstr, description } + update: { id, name, bitnum, bitstr, description } + delete: { id } +``` + +### MODEL: orgPermission + +Access: `db.orgPermission` + +``` +METHODS: + db.orgPermission.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgPermission.findOne({ where: { id }, select }) + db.orgPermission.create({ data: { name, bitnum, bitstr, description }, select }) + db.orgPermission.update({ where: { id }, data, select }) + db.orgPermission.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + name: string + bitnum: number + bitstr: string + description: string + +EDITABLE FIELDS: + name: string + bitnum: number + bitstr: string + description: string + +OUTPUT: Promise + findMany: [{ id, name, bitnum, bitstr, description }] + findOne: { id, name, bitnum, bitstr, description } + create: { id, name, bitnum, bitstr, description } + update: { id, name, bitnum, bitstr, description } + delete: { id } +``` + +### MODEL: appLevelRequirement + +Access: `db.appLevelRequirement` + +``` +METHODS: + db.appLevelRequirement.findMany({ select, where?, orderBy?, first?, offset? }) + db.appLevelRequirement.findOne({ where: { id }, select }) + db.appLevelRequirement.create({ data: { name, level, description, requiredCount, priority }, select }) + db.appLevelRequirement.update({ where: { id }, data, select }) + db.appLevelRequirement.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + name: string + level: string + description: string + requiredCount: number + priority: number + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + name: string + level: string + description: string + requiredCount: number + priority: number + +OUTPUT: Promise + findMany: [{ id, name, level, description, requiredCount, priority, createdAt, updatedAt }] + findOne: { id, name, level, description, requiredCount, priority, createdAt, updatedAt } + create: { id, name, level, description, requiredCount, priority, createdAt, updatedAt } + update: { id, name, level, description, requiredCount, priority, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: orgMember + +Access: `db.orgMember` + +``` +METHODS: + db.orgMember.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgMember.findOne({ where: { id }, select }) + db.orgMember.create({ data: { isAdmin, actorId, entityId }, select }) + db.orgMember.update({ where: { id }, data, select }) + db.orgMember.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + isAdmin: boolean + actorId: string + entityId: string + +EDITABLE FIELDS: + isAdmin: boolean + actorId: string + entityId: string + +OUTPUT: Promise + findMany: [{ id, isAdmin, actorId, entityId }] + findOne: { id, isAdmin, actorId, entityId } + create: { id, isAdmin, actorId, entityId } + update: { id, isAdmin, actorId, entityId } + delete: { id } +``` + +### MODEL: appPermissionDefault + +Access: `db.appPermissionDefault` + +``` +METHODS: + db.appPermissionDefault.findMany({ select, where?, orderBy?, first?, offset? }) + db.appPermissionDefault.findOne({ where: { id }, select }) + db.appPermissionDefault.create({ data: { permissions }, select }) + db.appPermissionDefault.update({ where: { id }, data, select }) + db.appPermissionDefault.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + permissions: string + +EDITABLE FIELDS: + permissions: string + +OUTPUT: Promise + findMany: [{ id, permissions }] + findOne: { id, permissions } + create: { id, permissions } + update: { id, permissions } + delete: { id } +``` + +### MODEL: orgPermissionDefault + +Access: `db.orgPermissionDefault` + +``` +METHODS: + db.orgPermissionDefault.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgPermissionDefault.findOne({ where: { id }, select }) + db.orgPermissionDefault.create({ data: { permissions, entityId }, select }) + db.orgPermissionDefault.update({ where: { id }, data, select }) + db.orgPermissionDefault.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + permissions: string + entityId: string + +EDITABLE FIELDS: + permissions: string + entityId: string + +OUTPUT: Promise + findMany: [{ id, permissions, entityId }] + findOne: { id, permissions, entityId } + create: { id, permissions, entityId } + update: { id, permissions, entityId } + delete: { id } +``` + +### MODEL: appAdminGrant + +Access: `db.appAdminGrant` + +``` +METHODS: + db.appAdminGrant.findMany({ select, where?, orderBy?, first?, offset? }) + db.appAdminGrant.findOne({ where: { id }, select }) + db.appAdminGrant.create({ data: { isGrant, actorId, grantorId }, select }) + db.appAdminGrant.update({ where: { id }, data, select }) + db.appAdminGrant.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + isGrant: boolean + actorId: string + grantorId: string + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + isGrant: boolean + actorId: string + grantorId: string + +OUTPUT: Promise + findMany: [{ id, isGrant, actorId, grantorId, createdAt, updatedAt }] + findOne: { id, isGrant, actorId, grantorId, createdAt, updatedAt } + create: { id, isGrant, actorId, grantorId, createdAt, updatedAt } + update: { id, isGrant, actorId, grantorId, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: appOwnerGrant + +Access: `db.appOwnerGrant` + +``` +METHODS: + db.appOwnerGrant.findMany({ select, where?, orderBy?, first?, offset? }) + db.appOwnerGrant.findOne({ where: { id }, select }) + db.appOwnerGrant.create({ data: { isGrant, actorId, grantorId }, select }) + db.appOwnerGrant.update({ where: { id }, data, select }) + db.appOwnerGrant.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + isGrant: boolean + actorId: string + grantorId: string + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + isGrant: boolean + actorId: string + grantorId: string + +OUTPUT: Promise + findMany: [{ id, isGrant, actorId, grantorId, createdAt, updatedAt }] + findOne: { id, isGrant, actorId, grantorId, createdAt, updatedAt } + create: { id, isGrant, actorId, grantorId, createdAt, updatedAt } + update: { id, isGrant, actorId, grantorId, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: appLimitDefault + +Access: `db.appLimitDefault` + +``` +METHODS: + db.appLimitDefault.findMany({ select, where?, orderBy?, first?, offset? }) + db.appLimitDefault.findOne({ where: { id }, select }) + db.appLimitDefault.create({ data: { name, max }, select }) + db.appLimitDefault.update({ where: { id }, data, select }) + db.appLimitDefault.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + name: string + max: number + +EDITABLE FIELDS: + name: string + max: number + +OUTPUT: Promise + findMany: [{ id, name, max }] + findOne: { id, name, max } + create: { id, name, max } + update: { id, name, max } + delete: { id } +``` + +### MODEL: orgLimitDefault + +Access: `db.orgLimitDefault` + +``` +METHODS: + db.orgLimitDefault.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgLimitDefault.findOne({ where: { id }, select }) + db.orgLimitDefault.create({ data: { name, max }, select }) + db.orgLimitDefault.update({ where: { id }, data, select }) + db.orgLimitDefault.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + name: string + max: number + +EDITABLE FIELDS: + name: string + max: number + +OUTPUT: Promise + findMany: [{ id, name, max }] + findOne: { id, name, max } + create: { id, name, max } + update: { id, name, max } + delete: { id } +``` + +### MODEL: orgAdminGrant + +Access: `db.orgAdminGrant` + +``` +METHODS: + db.orgAdminGrant.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgAdminGrant.findOne({ where: { id }, select }) + db.orgAdminGrant.create({ data: { isGrant, actorId, entityId, grantorId }, select }) + db.orgAdminGrant.update({ where: { id }, data, select }) + db.orgAdminGrant.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + isGrant: boolean + actorId: string + entityId: string + grantorId: string + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + isGrant: boolean + actorId: string + entityId: string + grantorId: string + +OUTPUT: Promise + findMany: [{ id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt }] + findOne: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } + create: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } + update: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: orgOwnerGrant + +Access: `db.orgOwnerGrant` + +``` +METHODS: + db.orgOwnerGrant.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgOwnerGrant.findOne({ where: { id }, select }) + db.orgOwnerGrant.create({ data: { isGrant, actorId, entityId, grantorId }, select }) + db.orgOwnerGrant.update({ where: { id }, data, select }) + db.orgOwnerGrant.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + isGrant: boolean + actorId: string + entityId: string + grantorId: string + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + isGrant: boolean + actorId: string + entityId: string + grantorId: string + +OUTPUT: Promise + findMany: [{ id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt }] + findOne: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } + create: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } + update: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: membershipType + +Access: `db.membershipType` + +``` +METHODS: + db.membershipType.findMany({ select, where?, orderBy?, first?, offset? }) + db.membershipType.findOne({ where: { id }, select }) + db.membershipType.create({ data: { name, description, prefix }, select }) + db.membershipType.update({ where: { id }, data, select }) + db.membershipType.delete({ where: { id } }) + +FIELDS: + id: number (primary key) + name: string + description: string + prefix: string + +EDITABLE FIELDS: + name: string + description: string + prefix: string + +OUTPUT: Promise + findMany: [{ id, name, description, prefix }] + findOne: { id, name, description, prefix } + create: { id, name, description, prefix } + update: { id, name, description, prefix } + delete: { id } +``` + +### MODEL: appLimit + +Access: `db.appLimit` + +``` +METHODS: + db.appLimit.findMany({ select, where?, orderBy?, first?, offset? }) + db.appLimit.findOne({ where: { id }, select }) + db.appLimit.create({ data: { name, actorId, num, max }, select }) + db.appLimit.update({ where: { id }, data, select }) + db.appLimit.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + name: string + actorId: string + num: number + max: number + +EDITABLE FIELDS: + name: string + actorId: string + num: number + max: number + +OUTPUT: Promise + findMany: [{ id, name, actorId, num, max }] + findOne: { id, name, actorId, num, max } + create: { id, name, actorId, num, max } + update: { id, name, actorId, num, max } + delete: { id } +``` + +### MODEL: appAchievement + +Access: `db.appAchievement` + +``` +METHODS: + db.appAchievement.findMany({ select, where?, orderBy?, first?, offset? }) + db.appAchievement.findOne({ where: { id }, select }) + db.appAchievement.create({ data: { actorId, name, count }, select }) + db.appAchievement.update({ where: { id }, data, select }) + db.appAchievement.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + actorId: string + name: string + count: number + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + actorId: string + name: string + count: number + +OUTPUT: Promise + findMany: [{ id, actorId, name, count, createdAt, updatedAt }] + findOne: { id, actorId, name, count, createdAt, updatedAt } + create: { id, actorId, name, count, createdAt, updatedAt } + update: { id, actorId, name, count, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: appStep + +Access: `db.appStep` + +``` +METHODS: + db.appStep.findMany({ select, where?, orderBy?, first?, offset? }) + db.appStep.findOne({ where: { id }, select }) + db.appStep.create({ data: { actorId, name, count }, select }) + db.appStep.update({ where: { id }, data, select }) + db.appStep.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + actorId: string + name: string + count: number + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + actorId: string + name: string + count: number + +OUTPUT: Promise + findMany: [{ id, actorId, name, count, createdAt, updatedAt }] + findOne: { id, actorId, name, count, createdAt, updatedAt } + create: { id, actorId, name, count, createdAt, updatedAt } + update: { id, actorId, name, count, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: claimedInvite + +Access: `db.claimedInvite` + +``` +METHODS: + db.claimedInvite.findMany({ select, where?, orderBy?, first?, offset? }) + db.claimedInvite.findOne({ where: { id }, select }) + db.claimedInvite.create({ data: { data, senderId, receiverId }, select }) + db.claimedInvite.update({ where: { id }, data, select }) + db.claimedInvite.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + data: unknown + senderId: string + receiverId: string + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + data: unknown + senderId: string + receiverId: string + +OUTPUT: Promise + findMany: [{ id, data, senderId, receiverId, createdAt, updatedAt }] + findOne: { id, data, senderId, receiverId, createdAt, updatedAt } + create: { id, data, senderId, receiverId, createdAt, updatedAt } + update: { id, data, senderId, receiverId, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: appGrant + +Access: `db.appGrant` + +``` +METHODS: + db.appGrant.findMany({ select, where?, orderBy?, first?, offset? }) + db.appGrant.findOne({ where: { id }, select }) + db.appGrant.create({ data: { permissions, isGrant, actorId, grantorId }, select }) + db.appGrant.update({ where: { id }, data, select }) + db.appGrant.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + permissions: string + isGrant: boolean + actorId: string + grantorId: string + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + permissions: string + isGrant: boolean + actorId: string + grantorId: string + +OUTPUT: Promise + findMany: [{ id, permissions, isGrant, actorId, grantorId, createdAt, updatedAt }] + findOne: { id, permissions, isGrant, actorId, grantorId, createdAt, updatedAt } + create: { id, permissions, isGrant, actorId, grantorId, createdAt, updatedAt } + update: { id, permissions, isGrant, actorId, grantorId, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: appMembershipDefault + +Access: `db.appMembershipDefault` + +``` +METHODS: + db.appMembershipDefault.findMany({ select, where?, orderBy?, first?, offset? }) + db.appMembershipDefault.findOne({ where: { id }, select }) + db.appMembershipDefault.create({ data: { createdBy, updatedBy, isApproved, isVerified }, select }) + db.appMembershipDefault.update({ where: { id }, data, select }) + db.appMembershipDefault.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + createdAt: string + updatedAt: string + createdBy: string + updatedBy: string + isApproved: boolean + isVerified: boolean + +EDITABLE FIELDS: + createdBy: string + updatedBy: string + isApproved: boolean + isVerified: boolean + +OUTPUT: Promise + findMany: [{ id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isVerified }] + findOne: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isVerified } + create: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isVerified } + update: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isVerified } + delete: { id } +``` + +### MODEL: orgLimit + +Access: `db.orgLimit` + +``` +METHODS: + db.orgLimit.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgLimit.findOne({ where: { id }, select }) + db.orgLimit.create({ data: { name, actorId, num, max, entityId }, select }) + db.orgLimit.update({ where: { id }, data, select }) + db.orgLimit.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + name: string + actorId: string + num: number + max: number + entityId: string + +EDITABLE FIELDS: + name: string + actorId: string + num: number + max: number + entityId: string + +OUTPUT: Promise + findMany: [{ id, name, actorId, num, max, entityId }] + findOne: { id, name, actorId, num, max, entityId } + create: { id, name, actorId, num, max, entityId } + update: { id, name, actorId, num, max, entityId } + delete: { id } +``` + +### MODEL: orgClaimedInvite + +Access: `db.orgClaimedInvite` + +``` +METHODS: + db.orgClaimedInvite.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgClaimedInvite.findOne({ where: { id }, select }) + db.orgClaimedInvite.create({ data: { data, senderId, receiverId, entityId }, select }) + db.orgClaimedInvite.update({ where: { id }, data, select }) + db.orgClaimedInvite.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + data: unknown + senderId: string + receiverId: string + createdAt: string + updatedAt: string + entityId: string + +EDITABLE FIELDS: + data: unknown + senderId: string + receiverId: string + entityId: string + +OUTPUT: Promise + findMany: [{ id, data, senderId, receiverId, createdAt, updatedAt, entityId }] + findOne: { id, data, senderId, receiverId, createdAt, updatedAt, entityId } + create: { id, data, senderId, receiverId, createdAt, updatedAt, entityId } + update: { id, data, senderId, receiverId, createdAt, updatedAt, entityId } + delete: { id } +``` + +### MODEL: orgGrant + +Access: `db.orgGrant` + +``` +METHODS: + db.orgGrant.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgGrant.findOne({ where: { id }, select }) + db.orgGrant.create({ data: { permissions, isGrant, actorId, entityId, grantorId }, select }) + db.orgGrant.update({ where: { id }, data, select }) + db.orgGrant.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + permissions: string + isGrant: boolean + actorId: string + entityId: string + grantorId: string + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + permissions: string + isGrant: boolean + actorId: string + entityId: string + grantorId: string + +OUTPUT: Promise + findMany: [{ id, permissions, isGrant, actorId, entityId, grantorId, createdAt, updatedAt }] + findOne: { id, permissions, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } + create: { id, permissions, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } + update: { id, permissions, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: orgMembershipDefault + +Access: `db.orgMembershipDefault` + +``` +METHODS: + db.orgMembershipDefault.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgMembershipDefault.findOne({ where: { id }, select }) + db.orgMembershipDefault.create({ data: { createdBy, updatedBy, isApproved, entityId, deleteMemberCascadeGroups, createGroupsCascadeMembers }, select }) + db.orgMembershipDefault.update({ where: { id }, data, select }) + db.orgMembershipDefault.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + createdAt: string + updatedAt: string + createdBy: string + updatedBy: string + isApproved: boolean + entityId: string + deleteMemberCascadeGroups: boolean + createGroupsCascadeMembers: boolean + +EDITABLE FIELDS: + createdBy: string + updatedBy: string + isApproved: boolean + entityId: string + deleteMemberCascadeGroups: boolean + createGroupsCascadeMembers: boolean + +OUTPUT: Promise + findMany: [{ id, createdAt, updatedAt, createdBy, updatedBy, isApproved, entityId, deleteMemberCascadeGroups, createGroupsCascadeMembers }] + findOne: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, entityId, deleteMemberCascadeGroups, createGroupsCascadeMembers } + create: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, entityId, deleteMemberCascadeGroups, createGroupsCascadeMembers } + update: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, entityId, deleteMemberCascadeGroups, createGroupsCascadeMembers } + delete: { id } +``` + +### MODEL: appLevel + +Access: `db.appLevel` + +``` +METHODS: + db.appLevel.findMany({ select, where?, orderBy?, first?, offset? }) + db.appLevel.findOne({ where: { id }, select }) + db.appLevel.create({ data: { name, description, image, ownerId }, select }) + db.appLevel.update({ where: { id }, data, select }) + db.appLevel.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + name: string + description: string + image: ConstructiveInternalTypeImage + ownerId: string + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + name: string + description: string + image: ConstructiveInternalTypeImage + ownerId: string + +OUTPUT: Promise + findMany: [{ id, name, description, image, ownerId, createdAt, updatedAt }] + findOne: { id, name, description, image, ownerId, createdAt, updatedAt } + create: { id, name, description, image, ownerId, createdAt, updatedAt } + update: { id, name, description, image, ownerId, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: invite + +Access: `db.invite` + +``` +METHODS: + db.invite.findMany({ select, where?, orderBy?, first?, offset? }) + db.invite.findOne({ where: { id }, select }) + db.invite.create({ data: { email, senderId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt }, select }) + db.invite.update({ where: { id }, data, select }) + db.invite.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + email: ConstructiveInternalTypeEmail + senderId: string + inviteToken: string + inviteValid: boolean + inviteLimit: number + inviteCount: number + multiple: boolean + data: unknown + expiresAt: string + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + email: ConstructiveInternalTypeEmail + senderId: string + inviteToken: string + inviteValid: boolean + inviteLimit: number + inviteCount: number + multiple: boolean + data: unknown + expiresAt: string + +OUTPUT: Promise + findMany: [{ id, email, senderId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt }] + findOne: { id, email, senderId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt } + create: { id, email, senderId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt } + update: { id, email, senderId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: appMembership + +Access: `db.appMembership` + +``` +METHODS: + db.appMembership.findMany({ select, where?, orderBy?, first?, offset? }) + db.appMembership.findOne({ where: { id }, select }) + db.appMembership.create({ data: { createdBy, updatedBy, isApproved, isBanned, isDisabled, isVerified, isActive, isOwner, isAdmin, permissions, granted, actorId }, select }) + db.appMembership.update({ where: { id }, data, select }) + db.appMembership.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + createdBy: string + updatedBy: string + isApproved: boolean + isBanned: boolean + isDisabled: boolean + isVerified: boolean + isActive: boolean + isOwner: boolean + isAdmin: boolean + permissions: string + granted: string + actorId: string + +OUTPUT: Promise + findMany: [{ id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isVerified, isActive, isOwner, isAdmin, permissions, granted, actorId }] + findOne: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isVerified, isActive, isOwner, isAdmin, permissions, granted, actorId } + create: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isVerified, isActive, isOwner, isAdmin, permissions, granted, actorId } + update: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isVerified, isActive, isOwner, isAdmin, permissions, granted, actorId } + delete: { id } +``` + +### MODEL: orgMembership + +Access: `db.orgMembership` + +``` +METHODS: + db.orgMembership.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgMembership.findOne({ where: { id }, select }) + db.orgMembership.create({ data: { createdBy, updatedBy, isApproved, isBanned, isDisabled, isActive, isOwner, isAdmin, permissions, granted, actorId, entityId }, select }) + db.orgMembership.update({ where: { id }, data, select }) + db.orgMembership.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + createdBy: string + updatedBy: string + isApproved: boolean + isBanned: boolean + isDisabled: boolean + isActive: boolean + isOwner: boolean + isAdmin: boolean + permissions: string + granted: string + actorId: string + entityId: string + +OUTPUT: Promise + findMany: [{ id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isActive, isOwner, isAdmin, permissions, granted, actorId, entityId }] + findOne: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isActive, isOwner, isAdmin, permissions, granted, actorId, entityId } + create: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isActive, isOwner, isAdmin, permissions, granted, actorId, entityId } + update: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isActive, isOwner, isAdmin, permissions, granted, actorId, entityId } + delete: { id } +``` + +### MODEL: orgInvite + +Access: `db.orgInvite` + +``` +METHODS: + db.orgInvite.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgInvite.findOne({ where: { id }, select }) + db.orgInvite.create({ data: { email, senderId, receiverId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, entityId }, select }) + db.orgInvite.update({ where: { id }, data, select }) + db.orgInvite.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + email: ConstructiveInternalTypeEmail + senderId: string + receiverId: string + inviteToken: string + inviteValid: boolean + inviteLimit: number + inviteCount: number + multiple: boolean + data: unknown + expiresAt: string + entityId: string + +OUTPUT: Promise + findMany: [{ id, email, senderId, receiverId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt, entityId }] + findOne: { id, email, senderId, receiverId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt, entityId } + create: { id, email, senderId, receiverId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt, entityId } + update: { id, email, senderId, receiverId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt, entityId } + delete: { id } +``` + +## CUSTOM OPERATIONS + +### OPERATION: appPermissionsGetPaddedMask + +appPermissionsGetPaddedMask + +``` +TYPE: query +ACCESS: db.query.appPermissionsGetPaddedMask +USAGE: db.query.appPermissionsGetPaddedMask({ mask: }).execute() + +INPUT: + mask: BitString + +OUTPUT: Promise +``` + +### OPERATION: orgPermissionsGetPaddedMask + +orgPermissionsGetPaddedMask + +``` +TYPE: query +ACCESS: db.query.orgPermissionsGetPaddedMask +USAGE: db.query.orgPermissionsGetPaddedMask({ mask: }).execute() + +INPUT: + mask: BitString + +OUTPUT: Promise +``` + +### OPERATION: stepsAchieved + +stepsAchieved + +``` +TYPE: query +ACCESS: db.query.stepsAchieved +USAGE: db.query.stepsAchieved({ vlevel: , vroleId: }).execute() + +INPUT: + vlevel: String + vroleId: UUID + +OUTPUT: Promise +``` + +### OPERATION: appPermissionsGetMask + +appPermissionsGetMask + +``` +TYPE: query +ACCESS: db.query.appPermissionsGetMask +USAGE: db.query.appPermissionsGetMask({ ids: }).execute() + +INPUT: + ids: [UUID] + +OUTPUT: Promise +``` + +### OPERATION: orgPermissionsGetMask + +orgPermissionsGetMask + +``` +TYPE: query +ACCESS: db.query.orgPermissionsGetMask +USAGE: db.query.orgPermissionsGetMask({ ids: }).execute() + +INPUT: + ids: [UUID] + +OUTPUT: Promise +``` + +### OPERATION: appPermissionsGetMaskByNames + +appPermissionsGetMaskByNames + +``` +TYPE: query +ACCESS: db.query.appPermissionsGetMaskByNames +USAGE: db.query.appPermissionsGetMaskByNames({ names: }).execute() + +INPUT: + names: [String] + +OUTPUT: Promise +``` + +### OPERATION: orgPermissionsGetMaskByNames + +orgPermissionsGetMaskByNames + +``` +TYPE: query +ACCESS: db.query.orgPermissionsGetMaskByNames +USAGE: db.query.orgPermissionsGetMaskByNames({ names: }).execute() + +INPUT: + names: [String] + +OUTPUT: Promise +``` + +### OPERATION: appPermissionsGetByMask + +Reads and enables pagination through a set of `AppPermission`. + +``` +TYPE: query +ACCESS: db.query.appPermissionsGetByMask +USAGE: db.query.appPermissionsGetByMask({ mask: , first: , offset: , after: }).execute() + +INPUT: + mask: BitString + first: Int + offset: Int + after: Cursor + +OUTPUT: Promise +``` + +### OPERATION: orgPermissionsGetByMask + +Reads and enables pagination through a set of `OrgPermission`. + +``` +TYPE: query +ACCESS: db.query.orgPermissionsGetByMask +USAGE: db.query.orgPermissionsGetByMask({ mask: , first: , offset: , after: }).execute() + +INPUT: + mask: BitString + first: Int + offset: Int + after: Cursor + +OUTPUT: Promise +``` + +### OPERATION: stepsRequired + +Reads and enables pagination through a set of `AppLevelRequirement`. + +``` +TYPE: query +ACCESS: db.query.stepsRequired +USAGE: db.query.stepsRequired({ vlevel: , vroleId: , first: , offset: , after: }).execute() + +INPUT: + vlevel: String + vroleId: UUID + first: Int + offset: Int + after: Cursor + +OUTPUT: Promise +``` + +### OPERATION: submitInviteCode + +submitInviteCode + +``` +TYPE: mutation +ACCESS: db.mutation.submitInviteCode +USAGE: db.mutation.submitInviteCode({ input: }).execute() + +INPUT: + input: SubmitInviteCodeInput (required) + +OUTPUT: Promise +``` + +### OPERATION: submitOrgInviteCode + +submitOrgInviteCode + +``` +TYPE: mutation +ACCESS: db.mutation.submitOrgInviteCode +USAGE: db.mutation.submitOrgInviteCode({ input: }).execute() + +INPUT: + input: SubmitOrgInviteCodeInput (required) + +OUTPUT: Promise +``` + +## PATTERNS + +```typescript +// All methods require .execute() to run +const result = await db.modelName.findMany({ select: { id: true } }).execute(); + +// Select specific fields +const partial = await db.modelName.findMany({ select: { id: true, name: true } }).execute(); + +// Filter with where clause +const filtered = await db.modelName.findMany({ select: { id: true }, where: { name: 'test' } }).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/README.md b/sdk/constructive-sdk/src/admin/orm/README.md new file mode 100644 index 000000000..c83410516 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/README.md @@ -0,0 +1,1233 @@ +# ORM Client + +

+ +

+ +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +## 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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-sdk/src/admin/orm/client.ts b/sdk/constructive-sdk/src/admin/orm/client.ts new file mode 100644 index 000000000..c0f12c466 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/index.ts b/sdk/constructive-sdk/src/admin/orm/index.ts new file mode 100644 index 000000000..877700d3e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/input-types.ts b/sdk/constructive-sdk/src/admin/orm/input-types.ts new file mode 100644 index 000000000..1cad8315b --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/input-types.ts @@ -0,0 +1,4142 @@ +/** + * 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; +} +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; +} +export interface AppAchievement { + id: string; + actorId?: string | null; + name?: string | null; + count?: number | null; + createdAt?: string | null; + updatedAt?: string | null; +} +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; +} +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; +} +// ============ 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; +}; +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; +}; +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; + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export type CreateAppPermissionPayloadSelect = { + clientMutationId?: boolean; + appPermission?: { + select: AppPermissionSelect; + }; + appPermissionEdge?: { + select: AppPermissionEdgeSelect; + }; +}; +export interface UpdateAppPermissionPayload { + clientMutationId?: string | null; + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export type UpdateAppPermissionPayloadSelect = { + clientMutationId?: boolean; + appPermission?: { + select: AppPermissionSelect; + }; + appPermissionEdge?: { + select: AppPermissionEdgeSelect; + }; +}; +export interface DeleteAppPermissionPayload { + clientMutationId?: string | null; + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export type DeleteAppPermissionPayloadSelect = { + clientMutationId?: boolean; + appPermission?: { + select: AppPermissionSelect; + }; + appPermissionEdge?: { + select: AppPermissionEdgeSelect; + }; +}; +export interface CreateOrgPermissionPayload { + clientMutationId?: string | null; + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export type CreateOrgPermissionPayloadSelect = { + clientMutationId?: boolean; + orgPermission?: { + select: OrgPermissionSelect; + }; + orgPermissionEdge?: { + select: OrgPermissionEdgeSelect; + }; +}; +export interface UpdateOrgPermissionPayload { + clientMutationId?: string | null; + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export type UpdateOrgPermissionPayloadSelect = { + clientMutationId?: boolean; + orgPermission?: { + select: OrgPermissionSelect; + }; + orgPermissionEdge?: { + select: OrgPermissionEdgeSelect; + }; +}; +export interface DeleteOrgPermissionPayload { + clientMutationId?: string | null; + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export type DeleteOrgPermissionPayloadSelect = { + clientMutationId?: boolean; + orgPermission?: { + select: OrgPermissionSelect; + }; + orgPermissionEdge?: { + select: OrgPermissionEdgeSelect; + }; +}; +export interface CreateAppLevelRequirementPayload { + clientMutationId?: string | null; + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; +} +export type CreateAppLevelRequirementPayloadSelect = { + clientMutationId?: boolean; + appLevelRequirement?: { + select: AppLevelRequirementSelect; + }; + appLevelRequirementEdge?: { + select: AppLevelRequirementEdgeSelect; + }; +}; +export interface UpdateAppLevelRequirementPayload { + clientMutationId?: string | null; + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; +} +export type UpdateAppLevelRequirementPayloadSelect = { + clientMutationId?: boolean; + appLevelRequirement?: { + select: AppLevelRequirementSelect; + }; + appLevelRequirementEdge?: { + select: AppLevelRequirementEdgeSelect; + }; +}; +export interface DeleteAppLevelRequirementPayload { + clientMutationId?: string | null; + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; +} +export type DeleteAppLevelRequirementPayloadSelect = { + clientMutationId?: boolean; + appLevelRequirement?: { + select: AppLevelRequirementSelect; + }; + appLevelRequirementEdge?: { + select: AppLevelRequirementEdgeSelect; + }; +}; +export interface CreateOrgMemberPayload { + clientMutationId?: string | null; + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; +} +export type CreateOrgMemberPayloadSelect = { + clientMutationId?: boolean; + orgMember?: { + select: OrgMemberSelect; + }; + orgMemberEdge?: { + select: OrgMemberEdgeSelect; + }; +}; +export interface UpdateOrgMemberPayload { + clientMutationId?: string | null; + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; +} +export type UpdateOrgMemberPayloadSelect = { + clientMutationId?: boolean; + orgMember?: { + select: OrgMemberSelect; + }; + orgMemberEdge?: { + select: OrgMemberEdgeSelect; + }; +}; +export interface DeleteOrgMemberPayload { + clientMutationId?: string | null; + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; +} +export type DeleteOrgMemberPayloadSelect = { + clientMutationId?: boolean; + orgMember?: { + select: OrgMemberSelect; + }; + orgMemberEdge?: { + select: OrgMemberEdgeSelect; + }; +}; +export interface CreateAppPermissionDefaultPayload { + clientMutationId?: string | null; + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export type CreateAppPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; + }; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; + }; +}; +export interface UpdateAppPermissionDefaultPayload { + clientMutationId?: string | null; + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export type UpdateAppPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; + }; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; + }; +}; +export interface DeleteAppPermissionDefaultPayload { + clientMutationId?: string | null; + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export type DeleteAppPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; + }; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; + }; +}; +export interface CreateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type CreateOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; + }; +}; +export interface UpdateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type UpdateOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; + }; +}; +export interface DeleteOrgPermissionDefaultPayload { + clientMutationId?: string | null; + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type DeleteOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; + }; +}; +export interface CreateAppAdminGrantPayload { + clientMutationId?: string | null; + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export type CreateAppAdminGrantPayloadSelect = { + clientMutationId?: boolean; + appAdminGrant?: { + select: AppAdminGrantSelect; + }; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; + }; +}; +export interface UpdateAppAdminGrantPayload { + clientMutationId?: string | null; + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export type UpdateAppAdminGrantPayloadSelect = { + clientMutationId?: boolean; + appAdminGrant?: { + select: AppAdminGrantSelect; + }; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; + }; +}; +export interface DeleteAppAdminGrantPayload { + clientMutationId?: string | null; + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export type DeleteAppAdminGrantPayloadSelect = { + clientMutationId?: boolean; + appAdminGrant?: { + select: AppAdminGrantSelect; + }; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; + }; +}; +export interface CreateAppOwnerGrantPayload { + clientMutationId?: string | null; + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type CreateAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface UpdateAppOwnerGrantPayload { + clientMutationId?: string | null; + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type UpdateAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface DeleteAppOwnerGrantPayload { + clientMutationId?: string | null; + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type DeleteAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface CreateAppLimitDefaultPayload { + clientMutationId?: string | null; + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type CreateAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; + }; +}; +export interface UpdateAppLimitDefaultPayload { + clientMutationId?: string | null; + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type UpdateAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; + }; +}; +export interface DeleteAppLimitDefaultPayload { + clientMutationId?: string | null; + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type DeleteAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; + }; +}; +export interface CreateOrgLimitDefaultPayload { + clientMutationId?: string | null; + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export type CreateOrgLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; + }; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; + }; +}; +export interface UpdateOrgLimitDefaultPayload { + clientMutationId?: string | null; + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export type UpdateOrgLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; + }; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; + }; +}; +export interface DeleteOrgLimitDefaultPayload { + clientMutationId?: string | null; + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export type DeleteOrgLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; + }; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; + }; +}; +export interface CreateOrgAdminGrantPayload { + clientMutationId?: string | null; + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export type CreateOrgAdminGrantPayloadSelect = { + clientMutationId?: boolean; + orgAdminGrant?: { + select: OrgAdminGrantSelect; + }; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; + }; +}; +export interface UpdateOrgAdminGrantPayload { + clientMutationId?: string | null; + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export type UpdateOrgAdminGrantPayloadSelect = { + clientMutationId?: boolean; + orgAdminGrant?: { + select: OrgAdminGrantSelect; + }; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; + }; +}; +export interface DeleteOrgAdminGrantPayload { + clientMutationId?: string | null; + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export type DeleteOrgAdminGrantPayloadSelect = { + clientMutationId?: boolean; + orgAdminGrant?: { + select: OrgAdminGrantSelect; + }; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; + }; +}; +export interface CreateOrgOwnerGrantPayload { + clientMutationId?: string | null; + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export type CreateOrgOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; + }; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; + }; +}; +export interface UpdateOrgOwnerGrantPayload { + clientMutationId?: string | null; + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export type UpdateOrgOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; + }; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; + }; +}; +export interface DeleteOrgOwnerGrantPayload { + clientMutationId?: string | null; + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export type DeleteOrgOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; + }; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; + }; +}; +export interface CreateMembershipTypePayload { + clientMutationId?: string | null; + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export type CreateMembershipTypePayloadSelect = { + clientMutationId?: boolean; + membershipType?: { + select: MembershipTypeSelect; + }; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; + }; +}; +export interface UpdateMembershipTypePayload { + clientMutationId?: string | null; + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export type UpdateMembershipTypePayloadSelect = { + clientMutationId?: boolean; + membershipType?: { + select: MembershipTypeSelect; + }; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; + }; +}; +export interface DeleteMembershipTypePayload { + clientMutationId?: string | null; + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export type DeleteMembershipTypePayloadSelect = { + clientMutationId?: boolean; + membershipType?: { + select: MembershipTypeSelect; + }; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; + }; +}; +export interface CreateAppLimitPayload { + clientMutationId?: string | null; + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type CreateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface UpdateAppLimitPayload { + clientMutationId?: string | null; + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type UpdateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface DeleteAppLimitPayload { + clientMutationId?: string | null; + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type DeleteAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface CreateAppAchievementPayload { + clientMutationId?: string | null; + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export type CreateAppAchievementPayloadSelect = { + clientMutationId?: boolean; + appAchievement?: { + select: AppAchievementSelect; + }; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; + }; +}; +export interface UpdateAppAchievementPayload { + clientMutationId?: string | null; + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export type UpdateAppAchievementPayloadSelect = { + clientMutationId?: boolean; + appAchievement?: { + select: AppAchievementSelect; + }; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; + }; +}; +export interface DeleteAppAchievementPayload { + clientMutationId?: string | null; + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export type DeleteAppAchievementPayloadSelect = { + clientMutationId?: boolean; + appAchievement?: { + select: AppAchievementSelect; + }; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; + }; +}; +export interface CreateAppStepPayload { + clientMutationId?: string | null; + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export type CreateAppStepPayloadSelect = { + clientMutationId?: boolean; + appStep?: { + select: AppStepSelect; + }; + appStepEdge?: { + select: AppStepEdgeSelect; + }; +}; +export interface UpdateAppStepPayload { + clientMutationId?: string | null; + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export type UpdateAppStepPayloadSelect = { + clientMutationId?: boolean; + appStep?: { + select: AppStepSelect; + }; + appStepEdge?: { + select: AppStepEdgeSelect; + }; +}; +export interface DeleteAppStepPayload { + clientMutationId?: string | null; + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export type DeleteAppStepPayloadSelect = { + clientMutationId?: boolean; + appStep?: { + select: AppStepSelect; + }; + appStepEdge?: { + select: AppStepEdgeSelect; + }; +}; +export interface CreateClaimedInvitePayload { + clientMutationId?: string | null; + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export type CreateClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + claimedInvite?: { + select: ClaimedInviteSelect; + }; + claimedInviteEdge?: { + select: ClaimedInviteEdgeSelect; + }; +}; +export interface UpdateClaimedInvitePayload { + clientMutationId?: string | null; + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export type UpdateClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + claimedInvite?: { + select: ClaimedInviteSelect; + }; + claimedInviteEdge?: { + select: ClaimedInviteEdgeSelect; + }; +}; +export interface DeleteClaimedInvitePayload { + clientMutationId?: string | null; + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export type DeleteClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + claimedInvite?: { + select: ClaimedInviteSelect; + }; + claimedInviteEdge?: { + select: ClaimedInviteEdgeSelect; + }; +}; +export interface CreateAppGrantPayload { + clientMutationId?: string | null; + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export type CreateAppGrantPayloadSelect = { + clientMutationId?: boolean; + appGrant?: { + select: AppGrantSelect; + }; + appGrantEdge?: { + select: AppGrantEdgeSelect; + }; +}; +export interface UpdateAppGrantPayload { + clientMutationId?: string | null; + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export type UpdateAppGrantPayloadSelect = { + clientMutationId?: boolean; + appGrant?: { + select: AppGrantSelect; + }; + appGrantEdge?: { + select: AppGrantEdgeSelect; + }; +}; +export interface DeleteAppGrantPayload { + clientMutationId?: string | null; + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export type DeleteAppGrantPayloadSelect = { + clientMutationId?: boolean; + appGrant?: { + select: AppGrantSelect; + }; + appGrantEdge?: { + select: AppGrantEdgeSelect; + }; +}; +export interface CreateAppMembershipDefaultPayload { + clientMutationId?: string | null; + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type CreateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateAppMembershipDefaultPayload { + clientMutationId?: string | null; + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type UpdateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface DeleteAppMembershipDefaultPayload { + clientMutationId?: string | null; + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type DeleteAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface CreateOrgLimitPayload { + clientMutationId?: string | null; + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type CreateOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; + }; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; + }; +}; +export interface UpdateOrgLimitPayload { + clientMutationId?: string | null; + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type UpdateOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; + }; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; + }; +}; +export interface DeleteOrgLimitPayload { + clientMutationId?: string | null; + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type DeleteOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; + }; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; + }; +}; +export interface CreateOrgClaimedInvitePayload { + clientMutationId?: string | null; + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export type CreateOrgClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + orgClaimedInvite?: { + select: OrgClaimedInviteSelect; + }; + orgClaimedInviteEdge?: { + select: OrgClaimedInviteEdgeSelect; + }; +}; +export interface UpdateOrgClaimedInvitePayload { + clientMutationId?: string | null; + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export type UpdateOrgClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + orgClaimedInvite?: { + select: OrgClaimedInviteSelect; + }; + orgClaimedInviteEdge?: { + select: OrgClaimedInviteEdgeSelect; + }; +}; +export interface DeleteOrgClaimedInvitePayload { + clientMutationId?: string | null; + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export type DeleteOrgClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + orgClaimedInvite?: { + select: OrgClaimedInviteSelect; + }; + orgClaimedInviteEdge?: { + select: OrgClaimedInviteEdgeSelect; + }; +}; +export interface CreateOrgGrantPayload { + clientMutationId?: string | null; + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export type CreateOrgGrantPayloadSelect = { + clientMutationId?: boolean; + orgGrant?: { + select: OrgGrantSelect; + }; + orgGrantEdge?: { + select: OrgGrantEdgeSelect; + }; +}; +export interface UpdateOrgGrantPayload { + clientMutationId?: string | null; + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export type UpdateOrgGrantPayloadSelect = { + clientMutationId?: boolean; + orgGrant?: { + select: OrgGrantSelect; + }; + orgGrantEdge?: { + select: OrgGrantEdgeSelect; + }; +}; +export interface DeleteOrgGrantPayload { + clientMutationId?: string | null; + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export type DeleteOrgGrantPayloadSelect = { + clientMutationId?: boolean; + orgGrant?: { + select: OrgGrantSelect; + }; + orgGrantEdge?: { + select: OrgGrantEdgeSelect; + }; +}; +export interface CreateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type CreateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type UpdateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; + }; +}; +export interface DeleteOrgMembershipDefaultPayload { + clientMutationId?: string | null; + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type DeleteOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; + }; +}; +export interface CreateAppLevelPayload { + clientMutationId?: string | null; + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type CreateAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface UpdateAppLevelPayload { + clientMutationId?: string | null; + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type UpdateAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface DeleteAppLevelPayload { + clientMutationId?: string | null; + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type DeleteAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface CreateInvitePayload { + clientMutationId?: string | null; + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export type CreateInvitePayloadSelect = { + clientMutationId?: boolean; + invite?: { + select: InviteSelect; + }; + inviteEdge?: { + select: InviteEdgeSelect; + }; +}; +export interface UpdateInvitePayload { + clientMutationId?: string | null; + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export type UpdateInvitePayloadSelect = { + clientMutationId?: boolean; + invite?: { + select: InviteSelect; + }; + inviteEdge?: { + select: InviteEdgeSelect; + }; +}; +export interface DeleteInvitePayload { + clientMutationId?: string | null; + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export type DeleteInvitePayloadSelect = { + clientMutationId?: boolean; + invite?: { + select: InviteSelect; + }; + inviteEdge?: { + select: InviteEdgeSelect; + }; +}; +export interface CreateAppMembershipPayload { + clientMutationId?: string | null; + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type CreateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface UpdateAppMembershipPayload { + clientMutationId?: string | null; + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type UpdateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface DeleteAppMembershipPayload { + clientMutationId?: string | null; + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type DeleteAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface CreateOrgMembershipPayload { + clientMutationId?: string | null; + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export type CreateOrgMembershipPayloadSelect = { + clientMutationId?: boolean; + orgMembership?: { + select: OrgMembershipSelect; + }; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; + }; +}; +export interface UpdateOrgMembershipPayload { + clientMutationId?: string | null; + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export type UpdateOrgMembershipPayloadSelect = { + clientMutationId?: boolean; + orgMembership?: { + select: OrgMembershipSelect; + }; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; + }; +}; +export interface DeleteOrgMembershipPayload { + clientMutationId?: string | null; + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export type DeleteOrgMembershipPayloadSelect = { + clientMutationId?: boolean; + orgMembership?: { + select: OrgMembershipSelect; + }; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; + }; +}; +export interface CreateOrgInvitePayload { + clientMutationId?: string | null; + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +export type CreateOrgInvitePayloadSelect = { + clientMutationId?: boolean; + orgInvite?: { + select: OrgInviteSelect; + }; + orgInviteEdge?: { + select: OrgInviteEdgeSelect; + }; +}; +export interface UpdateOrgInvitePayload { + clientMutationId?: string | null; + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +export type UpdateOrgInvitePayloadSelect = { + clientMutationId?: boolean; + orgInvite?: { + select: OrgInviteSelect; + }; + orgInviteEdge?: { + select: OrgInviteEdgeSelect; + }; +}; +export interface DeleteOrgInvitePayload { + clientMutationId?: string | null; + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +export type DeleteOrgInvitePayloadSelect = { + clientMutationId?: boolean; + orgInvite?: { + select: OrgInviteSelect; + }; + orgInviteEdge?: { + select: OrgInviteEdgeSelect; + }; +}; +export interface AppPermissionEdge { + cursor?: string | null; + node?: AppPermission | null; +} +export type AppPermissionEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionSelect; + }; +}; +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} +export type PageInfoSelect = { + hasNextPage?: boolean; + hasPreviousPage?: boolean; + startCursor?: boolean; + endCursor?: boolean; +}; +export interface OrgPermissionEdge { + cursor?: string | null; + node?: OrgPermission | null; +} +export type OrgPermissionEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgPermissionSelect; + }; +}; +export interface AppLevelRequirementEdge { + cursor?: string | null; + node?: AppLevelRequirement | null; +} +export type AppLevelRequirementEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLevelRequirementSelect; + }; +}; +export interface OrgMemberEdge { + cursor?: string | null; + node?: OrgMember | null; +} +export type OrgMemberEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMemberSelect; + }; +}; +export interface AppPermissionDefaultEdge { + cursor?: string | null; + node?: AppPermissionDefault | null; +} +export type AppPermissionDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionDefaultSelect; + }; +}; +export interface OrgPermissionDefaultEdge { + cursor?: string | null; + node?: OrgPermissionDefault | null; +} +export type OrgPermissionDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgPermissionDefaultSelect; + }; +}; +export interface AppAdminGrantEdge { + cursor?: string | null; + node?: AppAdminGrant | null; +} +export type AppAdminGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: AppAdminGrantSelect; + }; +}; +export interface AppOwnerGrantEdge { + cursor?: string | null; + node?: AppOwnerGrant | null; +} +export type AppOwnerGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: AppOwnerGrantSelect; + }; +}; +export interface AppLimitDefaultEdge { + cursor?: string | null; + node?: AppLimitDefault | null; +} +export type AppLimitDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitDefaultSelect; + }; +}; +export interface OrgLimitDefaultEdge { + cursor?: string | null; + node?: OrgLimitDefault | null; +} +export type OrgLimitDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitDefaultSelect; + }; +}; +export interface OrgAdminGrantEdge { + cursor?: string | null; + node?: OrgAdminGrant | null; +} +export type OrgAdminGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgAdminGrantSelect; + }; +}; +export interface OrgOwnerGrantEdge { + cursor?: string | null; + node?: OrgOwnerGrant | null; +} +export type OrgOwnerGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgOwnerGrantSelect; + }; +}; +export interface MembershipTypeEdge { + cursor?: string | null; + node?: MembershipType | null; +} +export type MembershipTypeEdgeSelect = { + cursor?: boolean; + node?: { + select: MembershipTypeSelect; + }; +}; +export interface AppLimitEdge { + cursor?: string | null; + node?: AppLimit | null; +} +export type AppLimitEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitSelect; + }; +}; +export interface AppAchievementEdge { + cursor?: string | null; + node?: AppAchievement | null; +} +export type AppAchievementEdgeSelect = { + cursor?: boolean; + node?: { + select: AppAchievementSelect; + }; +}; +export interface AppStepEdge { + cursor?: string | null; + node?: AppStep | null; +} +export type AppStepEdgeSelect = { + cursor?: boolean; + node?: { + select: AppStepSelect; + }; +}; +export interface ClaimedInviteEdge { + cursor?: string | null; + node?: ClaimedInvite | null; +} +export type ClaimedInviteEdgeSelect = { + cursor?: boolean; + node?: { + select: ClaimedInviteSelect; + }; +}; +export interface AppGrantEdge { + cursor?: string | null; + node?: AppGrant | null; +} +export type AppGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: AppGrantSelect; + }; +}; +export interface AppMembershipDefaultEdge { + cursor?: string | null; + node?: AppMembershipDefault | null; +} +export type AppMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppMembershipDefaultSelect; + }; +}; +export interface OrgLimitEdge { + cursor?: string | null; + node?: OrgLimit | null; +} +export type OrgLimitEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitSelect; + }; +}; +export interface OrgClaimedInviteEdge { + cursor?: string | null; + node?: OrgClaimedInvite | null; +} +export type OrgClaimedInviteEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgClaimedInviteSelect; + }; +}; +export interface OrgGrantEdge { + cursor?: string | null; + node?: OrgGrant | null; +} +export type OrgGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgGrantSelect; + }; +}; +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + node?: OrgMembershipDefault | null; +} +export type OrgMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipDefaultSelect; + }; +}; +export interface AppLevelEdge { + cursor?: string | null; + node?: AppLevel | null; +} +export type AppLevelEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLevelSelect; + }; +}; +export interface InviteEdge { + cursor?: string | null; + node?: Invite | null; +} +export type InviteEdgeSelect = { + cursor?: boolean; + node?: { + select: InviteSelect; + }; +}; +export interface AppMembershipEdge { + cursor?: string | null; + node?: AppMembership | null; +} +export type AppMembershipEdgeSelect = { + cursor?: boolean; + node?: { + select: AppMembershipSelect; + }; +}; +export interface OrgMembershipEdge { + cursor?: string | null; + node?: OrgMembership | null; +} +export type OrgMembershipEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipSelect; + }; +}; +export interface OrgInviteEdge { + cursor?: string | null; + node?: OrgInvite | null; +} +export type OrgInviteEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgInviteSelect; + }; +}; diff --git a/sdk/constructive-sdk/src/admin/orm/models/appAchievement.ts b/sdk/constructive-sdk/src/admin/orm/models/appAchievement.ts new file mode 100644 index 000000000..c26bd04df --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/appAdminGrant.ts b/sdk/constructive-sdk/src/admin/orm/models/appAdminGrant.ts new file mode 100644 index 000000000..994dcd67d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/appGrant.ts b/sdk/constructive-sdk/src/admin/orm/models/appGrant.ts new file mode 100644 index 000000000..df4f3ac72 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/appLevel.ts b/sdk/constructive-sdk/src/admin/orm/models/appLevel.ts new file mode 100644 index 000000000..16a46df57 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/appLevelRequirement.ts b/sdk/constructive-sdk/src/admin/orm/models/appLevelRequirement.ts new file mode 100644 index 000000000..a67824ec2 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/appLimit.ts b/sdk/constructive-sdk/src/admin/orm/models/appLimit.ts new file mode 100644 index 000000000..6671f9d37 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/appLimitDefault.ts b/sdk/constructive-sdk/src/admin/orm/models/appLimitDefault.ts new file mode 100644 index 000000000..8d926da0a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/appMembership.ts b/sdk/constructive-sdk/src/admin/orm/models/appMembership.ts new file mode 100644 index 000000000..2631ec415 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/appMembershipDefault.ts b/sdk/constructive-sdk/src/admin/orm/models/appMembershipDefault.ts new file mode 100644 index 000000000..ba0c3ce53 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/appOwnerGrant.ts b/sdk/constructive-sdk/src/admin/orm/models/appOwnerGrant.ts new file mode 100644 index 000000000..a18dd21c4 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/appPermission.ts b/sdk/constructive-sdk/src/admin/orm/models/appPermission.ts new file mode 100644 index 000000000..ab24d7bfc --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/appPermissionDefault.ts b/sdk/constructive-sdk/src/admin/orm/models/appPermissionDefault.ts new file mode 100644 index 000000000..3951ef4bb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/appStep.ts b/sdk/constructive-sdk/src/admin/orm/models/appStep.ts new file mode 100644 index 000000000..7c4ab983c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/claimedInvite.ts b/sdk/constructive-sdk/src/admin/orm/models/claimedInvite.ts new file mode 100644 index 000000000..9a679a488 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/index.ts b/sdk/constructive-sdk/src/admin/orm/models/index.ts new file mode 100644 index 000000000..635d44b66 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/invite.ts b/sdk/constructive-sdk/src/admin/orm/models/invite.ts new file mode 100644 index 000000000..ffacfa690 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/membershipType.ts b/sdk/constructive-sdk/src/admin/orm/models/membershipType.ts new file mode 100644 index 000000000..c8f385b4e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/orgAdminGrant.ts b/sdk/constructive-sdk/src/admin/orm/models/orgAdminGrant.ts new file mode 100644 index 000000000..ad34ec08c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/orgClaimedInvite.ts b/sdk/constructive-sdk/src/admin/orm/models/orgClaimedInvite.ts new file mode 100644 index 000000000..7b1a668ce --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/orgGrant.ts b/sdk/constructive-sdk/src/admin/orm/models/orgGrant.ts new file mode 100644 index 000000000..51ffe25e0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/orgInvite.ts b/sdk/constructive-sdk/src/admin/orm/models/orgInvite.ts new file mode 100644 index 000000000..351f866ab --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/orgLimit.ts b/sdk/constructive-sdk/src/admin/orm/models/orgLimit.ts new file mode 100644 index 000000000..787dd2e18 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/orgLimitDefault.ts b/sdk/constructive-sdk/src/admin/orm/models/orgLimitDefault.ts new file mode 100644 index 000000000..b66e270b4 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/orgMember.ts b/sdk/constructive-sdk/src/admin/orm/models/orgMember.ts new file mode 100644 index 000000000..9045b10e0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/orgMembership.ts b/sdk/constructive-sdk/src/admin/orm/models/orgMembership.ts new file mode 100644 index 000000000..7c5133b07 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/orgMembershipDefault.ts b/sdk/constructive-sdk/src/admin/orm/models/orgMembershipDefault.ts new file mode 100644 index 000000000..c4863e35b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/orgOwnerGrant.ts b/sdk/constructive-sdk/src/admin/orm/models/orgOwnerGrant.ts new file mode 100644 index 000000000..57596aecd --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/orgPermission.ts b/sdk/constructive-sdk/src/admin/orm/models/orgPermission.ts new file mode 100644 index 000000000..9a2c0461f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/models/orgPermissionDefault.ts b/sdk/constructive-sdk/src/admin/orm/models/orgPermissionDefault.ts new file mode 100644 index 000000000..d6c204515 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/mutation/index.ts b/sdk/constructive-sdk/src/admin/orm/mutation/index.ts new file mode 100644 index 000000000..7c2c241a1 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/query-builder.ts b/sdk/constructive-sdk/src/admin/orm/query-builder.ts new file mode 100644 index 000000000..67c3992b5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/query/index.ts b/sdk/constructive-sdk/src/admin/orm/query/index.ts new file mode 100644 index 000000000..9f38b3ff6 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/query/index.ts @@ -0,0 +1,393 @@ +/** + * 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; + first?: number; + offset?: number; + after?: string; +} +export interface OrgPermissionsGetByMaskVariables { + mask?: string; + first?: number; + offset?: number; + after?: string; +} +export interface StepsRequiredVariables { + vlevel?: string; + vroleId?: string; + first?: number; + offset?: number; + 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-sdk/src/admin/orm/select-types.ts b/sdk/constructive-sdk/src/admin/orm/select-types.ts new file mode 100644 index 000000000..80165efa6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/orm/types.ts b/sdk/constructive-sdk/src/admin/orm/types.ts new file mode 100644 index 000000000..7c1120bcd --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/README.md b/sdk/constructive-sdk/src/auth/README.md new file mode 100644 index 000000000..875494c39 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/README.md @@ -0,0 +1,41 @@ +# Generated GraphQL SDK + +

+ +

+ +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +## Overview + +- **Tables:** 7 +- **Custom queries:** 4 +- **Custom mutations:** 16 + +**Generators:** ORM + +## 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. + +--- + +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-sdk/src/auth/index.ts b/sdk/constructive-sdk/src/auth/index.ts new file mode 100644 index 000000000..51e77d3d4 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/index.ts @@ -0,0 +1,5 @@ +/** + * Generated SDK - auto-generated, do not edit + * @generated by @constructive-io/graphql-codegen + */ +export * from './orm'; diff --git a/sdk/constructive-sdk/src/auth/orm/AGENTS.md b/sdk/constructive-sdk/src/auth/orm/AGENTS.md new file mode 100644 index 000000000..955b44c73 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/AGENTS.md @@ -0,0 +1,581 @@ +# ORM Client - Agent Reference + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT +> This document is structured for LLM/agent consumption. + +## OVERVIEW + +Prisma-like ORM client for interacting with a GraphQL API. +All methods return a query builder. Call `.execute()` to run the query. + +## SETUP + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## MODELS + +### MODEL: roleType + +Access: `db.roleType` + +``` +METHODS: + db.roleType.findMany({ select, where?, orderBy?, first?, offset? }) + db.roleType.findOne({ where: { id }, select }) + db.roleType.create({ data: { name }, select }) + db.roleType.update({ where: { id }, data, select }) + db.roleType.delete({ where: { id } }) + +FIELDS: + id: number (primary key) + name: string + +EDITABLE FIELDS: + name: string + +OUTPUT: Promise + findMany: [{ id, name }] + findOne: { id, name } + create: { id, name } + update: { id, name } + delete: { id } +``` + +### MODEL: cryptoAddress + +Access: `db.cryptoAddress` + +``` +METHODS: + db.cryptoAddress.findMany({ select, where?, orderBy?, first?, offset? }) + db.cryptoAddress.findOne({ where: { id }, select }) + db.cryptoAddress.create({ data: { ownerId, address, isVerified, isPrimary }, select }) + db.cryptoAddress.update({ where: { id }, data, select }) + db.cryptoAddress.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + ownerId: string + address: string + isVerified: boolean + isPrimary: boolean + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + ownerId: string + address: string + isVerified: boolean + isPrimary: boolean + +OUTPUT: Promise + findMany: [{ id, ownerId, address, isVerified, isPrimary, createdAt, updatedAt }] + findOne: { id, ownerId, address, isVerified, isPrimary, createdAt, updatedAt } + create: { id, ownerId, address, isVerified, isPrimary, createdAt, updatedAt } + update: { id, ownerId, address, isVerified, isPrimary, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: phoneNumber + +Access: `db.phoneNumber` + +``` +METHODS: + db.phoneNumber.findMany({ select, where?, orderBy?, first?, offset? }) + db.phoneNumber.findOne({ where: { id }, select }) + db.phoneNumber.create({ data: { ownerId, cc, number, isVerified, isPrimary }, select }) + db.phoneNumber.update({ where: { id }, data, select }) + db.phoneNumber.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + ownerId: string + cc: string + number: string + isVerified: boolean + isPrimary: boolean + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + ownerId: string + cc: string + number: string + isVerified: boolean + isPrimary: boolean + +OUTPUT: Promise + findMany: [{ id, ownerId, cc, number, isVerified, isPrimary, createdAt, updatedAt }] + findOne: { id, ownerId, cc, number, isVerified, isPrimary, createdAt, updatedAt } + create: { id, ownerId, cc, number, isVerified, isPrimary, createdAt, updatedAt } + update: { id, ownerId, cc, number, isVerified, isPrimary, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: connectedAccount + +Access: `db.connectedAccount` + +``` +METHODS: + db.connectedAccount.findMany({ select, where?, orderBy?, first?, offset? }) + db.connectedAccount.findOne({ where: { id }, select }) + db.connectedAccount.create({ data: { ownerId, service, identifier, details, isVerified }, select }) + db.connectedAccount.update({ where: { id }, data, select }) + db.connectedAccount.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + ownerId: string + service: string + identifier: string + details: unknown + isVerified: boolean + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + ownerId: string + service: string + identifier: string + details: unknown + isVerified: boolean + +OUTPUT: Promise + findMany: [{ id, ownerId, service, identifier, details, isVerified, createdAt, updatedAt }] + findOne: { id, ownerId, service, identifier, details, isVerified, createdAt, updatedAt } + create: { id, ownerId, service, identifier, details, isVerified, createdAt, updatedAt } + update: { id, ownerId, service, identifier, details, isVerified, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: email + +Access: `db.email` + +``` +METHODS: + db.email.findMany({ select, where?, orderBy?, first?, offset? }) + db.email.findOne({ where: { id }, select }) + db.email.create({ data: { ownerId, email, isVerified, isPrimary }, select }) + db.email.update({ where: { id }, data, select }) + db.email.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + ownerId: string + email: ConstructiveInternalTypeEmail + isVerified: boolean + isPrimary: boolean + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + ownerId: string + email: ConstructiveInternalTypeEmail + isVerified: boolean + isPrimary: boolean + +OUTPUT: Promise + findMany: [{ id, ownerId, email, isVerified, isPrimary, createdAt, updatedAt }] + findOne: { id, ownerId, email, isVerified, isPrimary, createdAt, updatedAt } + create: { id, ownerId, email, isVerified, isPrimary, createdAt, updatedAt } + update: { id, ownerId, email, isVerified, isPrimary, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: auditLog + +Access: `db.auditLog` + +``` +METHODS: + db.auditLog.findMany({ select, where?, orderBy?, first?, offset? }) + db.auditLog.findOne({ where: { id }, select }) + db.auditLog.create({ data: { event, actorId, origin, userAgent, ipAddress, success }, select }) + db.auditLog.update({ where: { id }, data, select }) + db.auditLog.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + event: string + actorId: string + origin: ConstructiveInternalTypeOrigin + userAgent: string + ipAddress: string + success: boolean + createdAt: string + +EDITABLE FIELDS: + event: string + actorId: string + origin: ConstructiveInternalTypeOrigin + userAgent: string + ipAddress: string + success: boolean + +OUTPUT: Promise + findMany: [{ id, event, actorId, origin, userAgent, ipAddress, success, createdAt }] + findOne: { id, event, actorId, origin, userAgent, ipAddress, success, createdAt } + create: { id, event, actorId, origin, userAgent, ipAddress, success, createdAt } + update: { id, event, actorId, origin, userAgent, ipAddress, success, createdAt } + delete: { id } +``` + +### MODEL: user + +Access: `db.user` + +``` +METHODS: + db.user.findMany({ select, where?, orderBy?, first?, offset? }) + db.user.findOne({ where: { id }, select }) + db.user.create({ data: { username, displayName, profilePicture, searchTsv, type, searchTsvRank }, select }) + db.user.update({ where: { id }, data, select }) + db.user.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + username: string + displayName: string + profilePicture: ConstructiveInternalTypeImage + searchTsv: string + type: number + createdAt: string + updatedAt: string + searchTsvRank: number + +EDITABLE FIELDS: + username: string + displayName: string + profilePicture: ConstructiveInternalTypeImage + searchTsv: string + type: number + searchTsvRank: number + +OUTPUT: Promise + findMany: [{ id, username, displayName, profilePicture, searchTsv, type, createdAt, updatedAt, searchTsvRank }] + findOne: { id, username, displayName, profilePicture, searchTsv, type, createdAt, updatedAt, searchTsvRank } + create: { id, username, displayName, profilePicture, searchTsv, type, createdAt, updatedAt, searchTsvRank } + update: { id, username, displayName, profilePicture, searchTsv, type, createdAt, updatedAt, searchTsvRank } + delete: { id } +``` + +## CUSTOM OPERATIONS + +### OPERATION: currentIpAddress + +currentIpAddress + +``` +TYPE: query +ACCESS: db.query.currentIpAddress +USAGE: db.query.currentIpAddress().execute() + +INPUT: none + +OUTPUT: Promise +``` + +### OPERATION: currentUserAgent + +currentUserAgent + +``` +TYPE: query +ACCESS: db.query.currentUserAgent +USAGE: db.query.currentUserAgent().execute() + +INPUT: none + +OUTPUT: Promise +``` + +### OPERATION: currentUserId + +currentUserId + +``` +TYPE: query +ACCESS: db.query.currentUserId +USAGE: db.query.currentUserId().execute() + +INPUT: none + +OUTPUT: Promise +``` + +### OPERATION: currentUser + +currentUser + +``` +TYPE: query +ACCESS: db.query.currentUser +USAGE: db.query.currentUser().execute() + +INPUT: none + +OUTPUT: Promise +``` + +### OPERATION: signOut + +signOut + +``` +TYPE: mutation +ACCESS: db.mutation.signOut +USAGE: db.mutation.signOut({ input: }).execute() + +INPUT: + input: SignOutInput (required) + +OUTPUT: Promise +``` + +### OPERATION: sendAccountDeletionEmail + +sendAccountDeletionEmail + +``` +TYPE: mutation +ACCESS: db.mutation.sendAccountDeletionEmail +USAGE: db.mutation.sendAccountDeletionEmail({ input: }).execute() + +INPUT: + input: SendAccountDeletionEmailInput (required) + +OUTPUT: Promise +``` + +### OPERATION: checkPassword + +checkPassword + +``` +TYPE: mutation +ACCESS: db.mutation.checkPassword +USAGE: db.mutation.checkPassword({ input: }).execute() + +INPUT: + input: CheckPasswordInput (required) + +OUTPUT: Promise +``` + +### OPERATION: confirmDeleteAccount + +confirmDeleteAccount + +``` +TYPE: mutation +ACCESS: db.mutation.confirmDeleteAccount +USAGE: db.mutation.confirmDeleteAccount({ input: }).execute() + +INPUT: + input: ConfirmDeleteAccountInput (required) + +OUTPUT: Promise +``` + +### OPERATION: setPassword + +setPassword + +``` +TYPE: mutation +ACCESS: db.mutation.setPassword +USAGE: db.mutation.setPassword({ input: }).execute() + +INPUT: + input: SetPasswordInput (required) + +OUTPUT: Promise +``` + +### OPERATION: verifyEmail + +verifyEmail + +``` +TYPE: mutation +ACCESS: db.mutation.verifyEmail +USAGE: db.mutation.verifyEmail({ input: }).execute() + +INPUT: + input: VerifyEmailInput (required) + +OUTPUT: Promise +``` + +### OPERATION: resetPassword + +resetPassword + +``` +TYPE: mutation +ACCESS: db.mutation.resetPassword +USAGE: db.mutation.resetPassword({ input: }).execute() + +INPUT: + input: ResetPasswordInput (required) + +OUTPUT: Promise +``` + +### OPERATION: signInOneTimeToken + +signInOneTimeToken + +``` +TYPE: mutation +ACCESS: db.mutation.signInOneTimeToken +USAGE: db.mutation.signInOneTimeToken({ input: }).execute() + +INPUT: + input: SignInOneTimeTokenInput (required) + +OUTPUT: Promise +``` + +### OPERATION: signIn + +signIn + +``` +TYPE: mutation +ACCESS: db.mutation.signIn +USAGE: db.mutation.signIn({ input: }).execute() + +INPUT: + input: SignInInput (required) + +OUTPUT: Promise +``` + +### OPERATION: signUp + +signUp + +``` +TYPE: mutation +ACCESS: db.mutation.signUp +USAGE: db.mutation.signUp({ input: }).execute() + +INPUT: + input: SignUpInput (required) + +OUTPUT: Promise +``` + +### OPERATION: oneTimeToken + +oneTimeToken + +``` +TYPE: mutation +ACCESS: db.mutation.oneTimeToken +USAGE: db.mutation.oneTimeToken({ input: }).execute() + +INPUT: + input: OneTimeTokenInput (required) + +OUTPUT: Promise +``` + +### OPERATION: extendTokenExpires + +extendTokenExpires + +``` +TYPE: mutation +ACCESS: db.mutation.extendTokenExpires +USAGE: db.mutation.extendTokenExpires({ input: }).execute() + +INPUT: + input: ExtendTokenExpiresInput (required) + +OUTPUT: Promise +``` + +### OPERATION: forgotPassword + +forgotPassword + +``` +TYPE: mutation +ACCESS: db.mutation.forgotPassword +USAGE: db.mutation.forgotPassword({ input: }).execute() + +INPUT: + input: ForgotPasswordInput (required) + +OUTPUT: Promise +``` + +### OPERATION: sendVerificationEmail + +sendVerificationEmail + +``` +TYPE: mutation +ACCESS: db.mutation.sendVerificationEmail +USAGE: db.mutation.sendVerificationEmail({ input: }).execute() + +INPUT: + input: SendVerificationEmailInput (required) + +OUTPUT: Promise +``` + +### OPERATION: verifyPassword + +verifyPassword + +``` +TYPE: mutation +ACCESS: db.mutation.verifyPassword +USAGE: db.mutation.verifyPassword({ input: }).execute() + +INPUT: + input: VerifyPasswordInput (required) + +OUTPUT: Promise +``` + +### OPERATION: verifyTotp + +verifyTotp + +``` +TYPE: mutation +ACCESS: db.mutation.verifyTotp +USAGE: db.mutation.verifyTotp({ input: }).execute() + +INPUT: + input: VerifyTotpInput (required) + +OUTPUT: Promise +``` + +## PATTERNS + +```typescript +// All methods require .execute() to run +const result = await db.modelName.findMany({ select: { id: true } }).execute(); + +// Select specific fields +const partial = await db.modelName.findMany({ select: { id: true, name: true } }).execute(); + +// Filter with where clause +const filtered = await db.modelName.findMany({ select: { id: true }, where: { name: 'test' } }).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/README.md b/sdk/constructive-sdk/src/auth/orm/README.md new file mode 100644 index 000000000..439705e28 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/README.md @@ -0,0 +1,573 @@ +# ORM Client + +

+ +

+ +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +## 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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-sdk/src/auth/orm/client.ts b/sdk/constructive-sdk/src/auth/orm/client.ts new file mode 100644 index 000000000..c0f12c466 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/orm/index.ts b/sdk/constructive-sdk/src/auth/orm/index.ts new file mode 100644 index 000000000..da3c30436 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/orm/input-types.ts b/sdk/constructive-sdk/src/auth/orm/input-types.ts new file mode 100644 index 000000000..1e04b53c2 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/input-types.ts @@ -0,0 +1,1544 @@ +/** + * 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; + service?: string | null; + identifier?: string | null; + 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; + 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; +} +export interface IntervalInput { + seconds?: number; + minutes?: number; + hours?: number; + days?: number; + months?: number; + 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; + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export type CreateRoleTypePayloadSelect = { + clientMutationId?: boolean; + roleType?: { + select: RoleTypeSelect; + }; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface UpdateRoleTypePayload { + clientMutationId?: string | null; + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export type UpdateRoleTypePayloadSelect = { + clientMutationId?: boolean; + roleType?: { + select: RoleTypeSelect; + }; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface DeleteRoleTypePayload { + clientMutationId?: string | null; + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export type DeleteRoleTypePayloadSelect = { + clientMutationId?: boolean; + roleType?: { + select: RoleTypeSelect; + }; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface CreateCryptoAddressPayload { + clientMutationId?: string | null; + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type CreateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface UpdateCryptoAddressPayload { + clientMutationId?: string | null; + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type UpdateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface DeleteCryptoAddressPayload { + clientMutationId?: string | null; + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type DeleteCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface CreatePhoneNumberPayload { + clientMutationId?: string | null; + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export type CreatePhoneNumberPayloadSelect = { + clientMutationId?: boolean; + phoneNumber?: { + select: PhoneNumberSelect; + }; + phoneNumberEdge?: { + select: PhoneNumberEdgeSelect; + }; +}; +export interface UpdatePhoneNumberPayload { + clientMutationId?: string | null; + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export type UpdatePhoneNumberPayloadSelect = { + clientMutationId?: boolean; + phoneNumber?: { + select: PhoneNumberSelect; + }; + phoneNumberEdge?: { + select: PhoneNumberEdgeSelect; + }; +}; +export interface DeletePhoneNumberPayload { + clientMutationId?: string | null; + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export type DeletePhoneNumberPayloadSelect = { + clientMutationId?: boolean; + phoneNumber?: { + select: PhoneNumberSelect; + }; + phoneNumberEdge?: { + select: PhoneNumberEdgeSelect; + }; +}; +export interface CreateConnectedAccountPayload { + clientMutationId?: string | null; + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} +export type CreateConnectedAccountPayloadSelect = { + clientMutationId?: boolean; + connectedAccount?: { + select: ConnectedAccountSelect; + }; + connectedAccountEdge?: { + select: ConnectedAccountEdgeSelect; + }; +}; +export interface UpdateConnectedAccountPayload { + clientMutationId?: string | null; + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} +export type UpdateConnectedAccountPayloadSelect = { + clientMutationId?: boolean; + connectedAccount?: { + select: ConnectedAccountSelect; + }; + connectedAccountEdge?: { + select: ConnectedAccountEdgeSelect; + }; +}; +export interface DeleteConnectedAccountPayload { + clientMutationId?: string | null; + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} +export type DeleteConnectedAccountPayloadSelect = { + clientMutationId?: boolean; + connectedAccount?: { + select: ConnectedAccountSelect; + }; + connectedAccountEdge?: { + select: ConnectedAccountEdgeSelect; + }; +}; +export interface CreateEmailPayload { + clientMutationId?: string | null; + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type CreateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface UpdateEmailPayload { + clientMutationId?: string | null; + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type UpdateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface DeleteEmailPayload { + clientMutationId?: string | null; + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type DeleteEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface CreateAuditLogPayload { + clientMutationId?: string | null; + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export type CreateAuditLogPayloadSelect = { + clientMutationId?: boolean; + auditLog?: { + select: AuditLogSelect; + }; + auditLogEdge?: { + select: AuditLogEdgeSelect; + }; +}; +export interface UpdateAuditLogPayload { + clientMutationId?: string | null; + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export type UpdateAuditLogPayloadSelect = { + clientMutationId?: boolean; + auditLog?: { + select: AuditLogSelect; + }; + auditLogEdge?: { + select: AuditLogEdgeSelect; + }; +}; +export interface DeleteAuditLogPayload { + clientMutationId?: string | null; + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export type DeleteAuditLogPayloadSelect = { + clientMutationId?: boolean; + auditLog?: { + select: AuditLogSelect; + }; + auditLogEdge?: { + select: AuditLogEdgeSelect; + }; +}; +export interface CreateUserPayload { + clientMutationId?: string | null; + user?: User | null; + userEdge?: UserEdge | null; +} +export type CreateUserPayloadSelect = { + clientMutationId?: boolean; + user?: { + select: UserSelect; + }; + userEdge?: { + select: UserEdgeSelect; + }; +}; +export interface UpdateUserPayload { + clientMutationId?: string | null; + user?: User | null; + userEdge?: UserEdge | null; +} +export type UpdateUserPayloadSelect = { + clientMutationId?: boolean; + user?: { + select: UserSelect; + }; + userEdge?: { + select: UserEdgeSelect; + }; +}; +export interface DeleteUserPayload { + clientMutationId?: string | null; + 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; +}; +export interface RoleTypeEdge { + cursor?: string | null; + node?: RoleType | null; +} +export type RoleTypeEdgeSelect = { + cursor?: boolean; + node?: { + select: RoleTypeSelect; + }; +}; +export interface CryptoAddressEdge { + cursor?: string | null; + node?: CryptoAddress | null; +} +export type CryptoAddressEdgeSelect = { + cursor?: boolean; + node?: { + select: CryptoAddressSelect; + }; +}; +export interface PhoneNumberEdge { + cursor?: string | null; + node?: PhoneNumber | null; +} +export type PhoneNumberEdgeSelect = { + cursor?: boolean; + node?: { + select: PhoneNumberSelect; + }; +}; +export interface ConnectedAccountEdge { + cursor?: string | null; + node?: ConnectedAccount | null; +} +export type ConnectedAccountEdgeSelect = { + cursor?: boolean; + node?: { + select: ConnectedAccountSelect; + }; +}; +export interface EmailEdge { + cursor?: string | null; + node?: Email | null; +} +export type EmailEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailSelect; + }; +}; +export interface AuditLogEdge { + cursor?: string | null; + node?: AuditLog | null; +} +export type AuditLogEdgeSelect = { + cursor?: boolean; + node?: { + select: AuditLogSelect; + }; +}; +export interface UserEdge { + cursor?: string | null; + node?: User | null; +} +export type UserEdgeSelect = { + cursor?: boolean; + node?: { + select: UserSelect; + }; +}; diff --git a/sdk/constructive-sdk/src/auth/orm/models/auditLog.ts b/sdk/constructive-sdk/src/auth/orm/models/auditLog.ts new file mode 100644 index 000000000..3d6aacb4e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/orm/models/connectedAccount.ts b/sdk/constructive-sdk/src/auth/orm/models/connectedAccount.ts new file mode 100644 index 000000000..0f2523553 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/orm/models/cryptoAddress.ts b/sdk/constructive-sdk/src/auth/orm/models/cryptoAddress.ts new file mode 100644 index 000000000..8d0c9b387 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/orm/models/email.ts b/sdk/constructive-sdk/src/auth/orm/models/email.ts new file mode 100644 index 000000000..d03c2180b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/orm/models/index.ts b/sdk/constructive-sdk/src/auth/orm/models/index.ts new file mode 100644 index 000000000..f0e6c6b1f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/orm/models/phoneNumber.ts b/sdk/constructive-sdk/src/auth/orm/models/phoneNumber.ts new file mode 100644 index 000000000..8122dff00 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/orm/models/roleType.ts b/sdk/constructive-sdk/src/auth/orm/models/roleType.ts new file mode 100644 index 000000000..dce555ddb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/orm/models/user.ts b/sdk/constructive-sdk/src/auth/orm/models/user.ts new file mode 100644 index 000000000..7adeca16a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/orm/mutation/index.ts b/sdk/constructive-sdk/src/auth/orm/mutation/index.ts new file mode 100644 index 000000000..4428311bb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/orm/query-builder.ts b/sdk/constructive-sdk/src/auth/orm/query-builder.ts new file mode 100644 index 000000000..67c3992b5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/orm/query/index.ts b/sdk/constructive-sdk/src/auth/orm/query/index.ts new file mode 100644 index 000000000..69150c6c7 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/orm/select-types.ts b/sdk/constructive-sdk/src/auth/orm/select-types.ts new file mode 100644 index 000000000..80165efa6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/orm/types.ts b/sdk/constructive-sdk/src/auth/orm/types.ts new file mode 100644 index 000000000..7c1120bcd --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/index.ts b/sdk/constructive-sdk/src/index.ts new file mode 100644 index 000000000..68342b399 --- /dev/null +++ b/sdk/constructive-sdk/src/index.ts @@ -0,0 +1,13 @@ +/** + * @constructive-io/sdk + * + * Auto-generated GraphQL types and ORM client. + * Run `pnpm run generate` to populate this package from the schema files. + * + * @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-sdk/src/objects/README.md b/sdk/constructive-sdk/src/objects/README.md new file mode 100644 index 000000000..29fb287ff --- /dev/null +++ b/sdk/constructive-sdk/src/objects/README.md @@ -0,0 +1,41 @@ +# Generated GraphQL SDK + +

+ +

+ +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +## Overview + +- **Tables:** 5 +- **Custom queries:** 4 +- **Custom mutations:** 8 + +**Generators:** ORM + +## 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. + +--- + +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-sdk/src/objects/index.ts b/sdk/constructive-sdk/src/objects/index.ts new file mode 100644 index 000000000..51e77d3d4 --- /dev/null +++ b/sdk/constructive-sdk/src/objects/index.ts @@ -0,0 +1,5 @@ +/** + * Generated SDK - auto-generated, do not edit + * @generated by @constructive-io/graphql-codegen + */ +export * from './orm'; diff --git a/sdk/constructive-sdk/src/objects/orm/AGENTS.md b/sdk/constructive-sdk/src/objects/orm/AGENTS.md new file mode 100644 index 000000000..c39bc1a26 --- /dev/null +++ b/sdk/constructive-sdk/src/objects/orm/AGENTS.md @@ -0,0 +1,403 @@ +# ORM Client - Agent Reference + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT +> This document is structured for LLM/agent consumption. + +## OVERVIEW + +Prisma-like ORM client for interacting with a GraphQL API. +All methods return a query builder. Call `.execute()` to run the query. + +## SETUP + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## MODELS + +### MODEL: getAllRecord + +Access: `db.getAllRecord` + +``` +METHODS: + db.getAllRecord.findMany({ select, where?, orderBy?, first?, offset? }) + db.getAllRecord.findOne({ where: { id }, select }) + db.getAllRecord.create({ data: { path, data }, select }) + db.getAllRecord.update({ where: { id }, data, select }) + db.getAllRecord.delete({ where: { id } }) + +FIELDS: + path: string[] + data: unknown + +EDITABLE FIELDS: + path: string[] + data: unknown + +OUTPUT: Promise + findMany: [{ path, data }] + findOne: { path, data } + create: { path, data } + update: { path, data } + delete: { id } +``` + +### MODEL: object + +Access: `db.object` + +``` +METHODS: + db.object.findMany({ select, where?, orderBy?, first?, offset? }) + db.object.findOne({ where: { id }, select }) + db.object.create({ data: { hashUuid, databaseId, kids, ktree, data, frzn }, select }) + db.object.update({ where: { id }, data, select }) + db.object.delete({ where: { id } }) + +FIELDS: + hashUuid: string + id: string (primary key) + databaseId: string + kids: string[] + ktree: string[] + data: unknown + frzn: boolean + createdAt: string + +EDITABLE FIELDS: + hashUuid: string + databaseId: string + kids: string[] + ktree: string[] + data: unknown + frzn: boolean + +OUTPUT: Promise + findMany: [{ hashUuid, id, databaseId, kids, ktree, data, frzn, createdAt }] + findOne: { hashUuid, id, databaseId, kids, ktree, data, frzn, createdAt } + create: { hashUuid, id, databaseId, kids, ktree, data, frzn, createdAt } + update: { hashUuid, id, databaseId, kids, ktree, data, frzn, createdAt } + delete: { id } +``` + +### MODEL: ref + +Access: `db.ref` + +``` +METHODS: + db.ref.findMany({ select, where?, orderBy?, first?, offset? }) + db.ref.findOne({ where: { id }, select }) + db.ref.create({ data: { name, databaseId, storeId, commitId }, select }) + db.ref.update({ where: { id }, data, select }) + db.ref.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + name: string + databaseId: string + storeId: string + commitId: string + +EDITABLE FIELDS: + name: string + databaseId: string + storeId: string + commitId: string + +OUTPUT: Promise + findMany: [{ id, name, databaseId, storeId, commitId }] + findOne: { id, name, databaseId, storeId, commitId } + create: { id, name, databaseId, storeId, commitId } + update: { id, name, databaseId, storeId, commitId } + delete: { id } +``` + +### MODEL: store + +Access: `db.store` + +``` +METHODS: + db.store.findMany({ select, where?, orderBy?, first?, offset? }) + db.store.findOne({ where: { id }, select }) + db.store.create({ data: { name, databaseId, hash }, select }) + db.store.update({ where: { id }, data, select }) + db.store.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + name: string + databaseId: string + hash: string + createdAt: string + +EDITABLE FIELDS: + name: string + databaseId: string + hash: string + +OUTPUT: Promise + findMany: [{ id, name, databaseId, hash, createdAt }] + findOne: { id, name, databaseId, hash, createdAt } + create: { id, name, databaseId, hash, createdAt } + update: { id, name, databaseId, hash, createdAt } + delete: { id } +``` + +### MODEL: commit + +Access: `db.commit` + +``` +METHODS: + db.commit.findMany({ select, where?, orderBy?, first?, offset? }) + db.commit.findOne({ where: { id }, select }) + db.commit.create({ data: { message, databaseId, storeId, parentIds, authorId, committerId, treeId, date }, select }) + db.commit.update({ where: { id }, data, select }) + db.commit.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + message: string + databaseId: string + storeId: string + parentIds: string[] + authorId: string + committerId: string + treeId: string + date: string + +EDITABLE FIELDS: + message: string + databaseId: string + storeId: string + parentIds: string[] + authorId: string + committerId: string + treeId: string + date: string + +OUTPUT: Promise + findMany: [{ id, message, databaseId, storeId, parentIds, authorId, committerId, treeId, date }] + findOne: { id, message, databaseId, storeId, parentIds, authorId, committerId, treeId, date } + create: { id, message, databaseId, storeId, parentIds, authorId, committerId, treeId, date } + update: { id, message, databaseId, storeId, parentIds, authorId, committerId, treeId, date } + delete: { id } +``` + +## CUSTOM OPERATIONS + +### OPERATION: revParse + +revParse + +``` +TYPE: query +ACCESS: db.query.revParse +USAGE: db.query.revParse({ dbId: , storeId: , refname: }).execute() + +INPUT: + dbId: UUID + storeId: UUID + refname: String + +OUTPUT: Promise +``` + +### OPERATION: getAllObjectsFromRoot + +Reads and enables pagination through a set of `Object`. + +``` +TYPE: query +ACCESS: db.query.getAllObjectsFromRoot +USAGE: db.query.getAllObjectsFromRoot({ databaseId: , id: , first: , offset: , after: }).execute() + +INPUT: + databaseId: UUID + id: UUID + first: Int + offset: Int + after: Cursor + +OUTPUT: Promise +``` + +### OPERATION: getPathObjectsFromRoot + +Reads and enables pagination through a set of `Object`. + +``` +TYPE: query +ACCESS: db.query.getPathObjectsFromRoot +USAGE: db.query.getPathObjectsFromRoot({ databaseId: , id: , path: , first: , offset: , after: }).execute() + +INPUT: + databaseId: UUID + id: UUID + path: [String] + first: Int + offset: Int + after: Cursor + +OUTPUT: Promise +``` + +### OPERATION: getObjectAtPath + +getObjectAtPath + +``` +TYPE: query +ACCESS: db.query.getObjectAtPath +USAGE: db.query.getObjectAtPath({ dbId: , storeId: , path: , refname: }).execute() + +INPUT: + dbId: UUID + storeId: UUID + path: [String] + refname: String + +OUTPUT: Promise +``` + +### OPERATION: freezeObjects + +freezeObjects + +``` +TYPE: mutation +ACCESS: db.mutation.freezeObjects +USAGE: db.mutation.freezeObjects({ input: }).execute() + +INPUT: + input: FreezeObjectsInput (required) + +OUTPUT: Promise +``` + +### OPERATION: initEmptyRepo + +initEmptyRepo + +``` +TYPE: mutation +ACCESS: db.mutation.initEmptyRepo +USAGE: db.mutation.initEmptyRepo({ input: }).execute() + +INPUT: + input: InitEmptyRepoInput (required) + +OUTPUT: Promise +``` + +### OPERATION: removeNodeAtPath + +removeNodeAtPath + +``` +TYPE: mutation +ACCESS: db.mutation.removeNodeAtPath +USAGE: db.mutation.removeNodeAtPath({ input: }).execute() + +INPUT: + input: RemoveNodeAtPathInput (required) + +OUTPUT: Promise +``` + +### OPERATION: setDataAtPath + +setDataAtPath + +``` +TYPE: mutation +ACCESS: db.mutation.setDataAtPath +USAGE: db.mutation.setDataAtPath({ input: }).execute() + +INPUT: + input: SetDataAtPathInput (required) + +OUTPUT: Promise +``` + +### OPERATION: setPropsAndCommit + +setPropsAndCommit + +``` +TYPE: mutation +ACCESS: db.mutation.setPropsAndCommit +USAGE: db.mutation.setPropsAndCommit({ input: }).execute() + +INPUT: + input: SetPropsAndCommitInput (required) + +OUTPUT: Promise +``` + +### OPERATION: insertNodeAtPath + +insertNodeAtPath + +``` +TYPE: mutation +ACCESS: db.mutation.insertNodeAtPath +USAGE: db.mutation.insertNodeAtPath({ input: }).execute() + +INPUT: + input: InsertNodeAtPathInput (required) + +OUTPUT: Promise +``` + +### OPERATION: updateNodeAtPath + +updateNodeAtPath + +``` +TYPE: mutation +ACCESS: db.mutation.updateNodeAtPath +USAGE: db.mutation.updateNodeAtPath({ input: }).execute() + +INPUT: + input: UpdateNodeAtPathInput (required) + +OUTPUT: Promise +``` + +### OPERATION: setAndCommit + +setAndCommit + +``` +TYPE: mutation +ACCESS: db.mutation.setAndCommit +USAGE: db.mutation.setAndCommit({ input: }).execute() + +INPUT: + input: SetAndCommitInput (required) + +OUTPUT: Promise +``` + +## PATTERNS + +```typescript +// All methods require .execute() to run +const result = await db.modelName.findMany({ select: { id: true } }).execute(); + +// Select specific fields +const partial = await db.modelName.findMany({ select: { id: true, name: true } }).execute(); + +// Filter with where clause +const filtered = await db.modelName.findMany({ select: { id: true }, where: { name: 'test' } }).execute(); +``` diff --git a/sdk/constructive-sdk/src/objects/orm/README.md b/sdk/constructive-sdk/src/objects/orm/README.md new file mode 100644 index 000000000..8c3466567 --- /dev/null +++ b/sdk/constructive-sdk/src/objects/orm/README.md @@ -0,0 +1,405 @@ +# ORM Client + +

+ +

+ +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +## 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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-sdk/src/objects/orm/client.ts b/sdk/constructive-sdk/src/objects/orm/client.ts new file mode 100644 index 000000000..c0f12c466 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/orm/index.ts b/sdk/constructive-sdk/src/objects/orm/index.ts new file mode 100644 index 000000000..231687e0d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/orm/input-types.ts b/sdk/constructive-sdk/src/objects/orm/input-types.ts new file mode 100644 index 000000000..de471f5c7 --- /dev/null +++ b/sdk/constructive-sdk/src/objects/orm/input-types.ts @@ -0,0 +1,990 @@ +/** + * 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; +} +export interface Ref { + id: string; + name?: string | null; + databaseId?: string | null; + storeId?: string | null; + commitId?: string | null; +} +export interface Store { + id: string; + name?: string | null; + databaseId?: string | null; + hash?: string | null; + createdAt?: string | null; +} +export interface Commit { + id: string; + message?: string | null; + databaseId?: string | null; + storeId?: string | null; + parentIds?: string | null; + authorId?: string | null; + committerId?: string | null; + 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[]; +} +// ============ 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; + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type CreateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface UpdateObjectPayload { + clientMutationId?: string | null; + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type UpdateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface DeleteObjectPayload { + clientMutationId?: string | null; + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type DeleteObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface CreateRefPayload { + clientMutationId?: string | null; + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export type CreateRefPayloadSelect = { + clientMutationId?: boolean; + ref?: { + select: RefSelect; + }; + refEdge?: { + select: RefEdgeSelect; + }; +}; +export interface UpdateRefPayload { + clientMutationId?: string | null; + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export type UpdateRefPayloadSelect = { + clientMutationId?: boolean; + ref?: { + select: RefSelect; + }; + refEdge?: { + select: RefEdgeSelect; + }; +}; +export interface DeleteRefPayload { + clientMutationId?: string | null; + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export type DeleteRefPayloadSelect = { + clientMutationId?: boolean; + ref?: { + select: RefSelect; + }; + refEdge?: { + select: RefEdgeSelect; + }; +}; +export interface CreateStorePayload { + clientMutationId?: string | null; + store?: Store | null; + storeEdge?: StoreEdge | null; +} +export type CreateStorePayloadSelect = { + clientMutationId?: boolean; + store?: { + select: StoreSelect; + }; + storeEdge?: { + select: StoreEdgeSelect; + }; +}; +export interface UpdateStorePayload { + clientMutationId?: string | null; + store?: Store | null; + storeEdge?: StoreEdge | null; +} +export type UpdateStorePayloadSelect = { + clientMutationId?: boolean; + store?: { + select: StoreSelect; + }; + storeEdge?: { + select: StoreEdgeSelect; + }; +}; +export interface DeleteStorePayload { + clientMutationId?: string | null; + store?: Store | null; + storeEdge?: StoreEdge | null; +} +export type DeleteStorePayloadSelect = { + clientMutationId?: boolean; + store?: { + select: StoreSelect; + }; + storeEdge?: { + select: StoreEdgeSelect; + }; +}; +export interface CreateCommitPayload { + clientMutationId?: string | null; + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export type CreateCommitPayloadSelect = { + clientMutationId?: boolean; + commit?: { + select: CommitSelect; + }; + commitEdge?: { + select: CommitEdgeSelect; + }; +}; +export interface UpdateCommitPayload { + clientMutationId?: string | null; + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export type UpdateCommitPayloadSelect = { + clientMutationId?: boolean; + commit?: { + select: CommitSelect; + }; + commitEdge?: { + select: CommitEdgeSelect; + }; +}; +export interface DeleteCommitPayload { + clientMutationId?: string | null; + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export type DeleteCommitPayloadSelect = { + clientMutationId?: boolean; + commit?: { + select: CommitSelect; + }; + commitEdge?: { + select: CommitEdgeSelect; + }; +}; +export interface ObjectEdge { + cursor?: string | null; + node?: Object | null; +} +export type ObjectEdgeSelect = { + cursor?: boolean; + node?: { + select: ObjectSelect; + }; +}; +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} +export type PageInfoSelect = { + hasNextPage?: boolean; + hasPreviousPage?: boolean; + startCursor?: boolean; + endCursor?: boolean; +}; +export interface RefEdge { + cursor?: string | null; + node?: Ref | null; +} +export type RefEdgeSelect = { + cursor?: boolean; + node?: { + select: RefSelect; + }; +}; +export interface StoreEdge { + cursor?: string | null; + node?: Store | null; +} +export type StoreEdgeSelect = { + cursor?: boolean; + node?: { + select: StoreSelect; + }; +}; +export interface CommitEdge { + cursor?: string | null; + node?: Commit | null; +} +export type CommitEdgeSelect = { + cursor?: boolean; + node?: { + select: CommitSelect; + }; +}; diff --git a/sdk/constructive-sdk/src/objects/orm/models/commit.ts b/sdk/constructive-sdk/src/objects/orm/models/commit.ts new file mode 100644 index 000000000..257e233ae --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/orm/models/getAllRecord.ts b/sdk/constructive-sdk/src/objects/orm/models/getAllRecord.ts new file mode 100644 index 000000000..53873a0f3 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/orm/models/index.ts b/sdk/constructive-sdk/src/objects/orm/models/index.ts new file mode 100644 index 000000000..c842d8341 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/orm/models/object.ts b/sdk/constructive-sdk/src/objects/orm/models/object.ts new file mode 100644 index 000000000..72f7b0da4 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/orm/models/ref.ts b/sdk/constructive-sdk/src/objects/orm/models/ref.ts new file mode 100644 index 000000000..ec666a8e7 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/orm/models/store.ts b/sdk/constructive-sdk/src/objects/orm/models/store.ts new file mode 100644 index 000000000..d6f5e0450 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/orm/mutation/index.ts b/sdk/constructive-sdk/src/objects/orm/mutation/index.ts new file mode 100644 index 000000000..a45680406 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/orm/query-builder.ts b/sdk/constructive-sdk/src/objects/orm/query-builder.ts new file mode 100644 index 000000000..67c3992b5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/orm/query/index.ts b/sdk/constructive-sdk/src/objects/orm/query/index.ts new file mode 100644 index 000000000..cfc74941a --- /dev/null +++ b/sdk/constructive-sdk/src/objects/orm/query/index.ts @@ -0,0 +1,212 @@ +/** + * 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; + first?: number; + offset?: number; + after?: string; +} +export interface GetPathObjectsFromRootVariables { + databaseId?: string; + id?: string; + path?: string[]; + first?: number; + offset?: number; + 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-sdk/src/objects/orm/select-types.ts b/sdk/constructive-sdk/src/objects/orm/select-types.ts new file mode 100644 index 000000000..80165efa6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/orm/types.ts b/sdk/constructive-sdk/src/objects/orm/types.ts new file mode 100644 index 000000000..7c1120bcd --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/README.md b/sdk/constructive-sdk/src/public/README.md new file mode 100644 index 000000000..391c86f88 --- /dev/null +++ b/sdk/constructive-sdk/src/public/README.md @@ -0,0 +1,41 @@ +# Generated GraphQL SDK + +

+ +

+ +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +## Overview + +- **Tables:** 99 +- **Custom queries:** 18 +- **Custom mutations:** 31 + +**Generators:** ORM + +## 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. + +--- + +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-sdk/src/public/index.ts b/sdk/constructive-sdk/src/public/index.ts new file mode 100644 index 000000000..51e77d3d4 --- /dev/null +++ b/sdk/constructive-sdk/src/public/index.ts @@ -0,0 +1,5 @@ +/** + * Generated SDK - auto-generated, do not edit + * @generated by @constructive-io/graphql-codegen + */ +export * from './orm'; diff --git a/sdk/constructive-sdk/src/public/orm/AGENTS.md b/sdk/constructive-sdk/src/public/orm/AGENTS.md new file mode 100644 index 000000000..8bd2f1c1b --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/AGENTS.md @@ -0,0 +1,4865 @@ +# ORM Client - Agent Reference + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT +> This document is structured for LLM/agent consumption. + +## OVERVIEW + +Prisma-like ORM client for interacting with a GraphQL API. +All methods return a query builder. Call `.execute()` to run the query. + +## SETUP + +```typescript +import { createClient } from './orm'; + +const db = createClient({ + endpoint: 'https://api.example.com/graphql', + headers: { Authorization: 'Bearer ' }, +}); +``` + +## MODELS + +### MODEL: getAllRecord + +Access: `db.getAllRecord` + +``` +METHODS: + db.getAllRecord.findMany({ select, where?, orderBy?, first?, offset? }) + db.getAllRecord.findOne({ where: { id }, select }) + db.getAllRecord.create({ data: { path, data }, select }) + db.getAllRecord.update({ where: { id }, data, select }) + db.getAllRecord.delete({ where: { id } }) + +FIELDS: + path: string[] + data: unknown + +EDITABLE FIELDS: + path: string[] + data: unknown + +OUTPUT: Promise + findMany: [{ path, data }] + findOne: { path, data } + create: { path, data } + update: { path, data } + delete: { id } +``` + +### MODEL: appPermission + +Access: `db.appPermission` + +``` +METHODS: + db.appPermission.findMany({ select, where?, orderBy?, first?, offset? }) + db.appPermission.findOne({ where: { id }, select }) + db.appPermission.create({ data: { name, bitnum, bitstr, description }, select }) + db.appPermission.update({ where: { id }, data, select }) + db.appPermission.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + name: string + bitnum: number + bitstr: string + description: string + +EDITABLE FIELDS: + name: string + bitnum: number + bitstr: string + description: string + +OUTPUT: Promise + findMany: [{ id, name, bitnum, bitstr, description }] + findOne: { id, name, bitnum, bitstr, description } + create: { id, name, bitnum, bitstr, description } + update: { id, name, bitnum, bitstr, description } + delete: { id } +``` + +### MODEL: orgPermission + +Access: `db.orgPermission` + +``` +METHODS: + db.orgPermission.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgPermission.findOne({ where: { id }, select }) + db.orgPermission.create({ data: { name, bitnum, bitstr, description }, select }) + db.orgPermission.update({ where: { id }, data, select }) + db.orgPermission.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + name: string + bitnum: number + bitstr: string + description: string + +EDITABLE FIELDS: + name: string + bitnum: number + bitstr: string + description: string + +OUTPUT: Promise + findMany: [{ id, name, bitnum, bitstr, description }] + findOne: { id, name, bitnum, bitstr, description } + create: { id, name, bitnum, bitstr, description } + update: { id, name, bitnum, bitstr, description } + delete: { id } +``` + +### MODEL: object + +Access: `db.object` + +``` +METHODS: + db.object.findMany({ select, where?, orderBy?, first?, offset? }) + db.object.findOne({ where: { id }, select }) + db.object.create({ data: { hashUuid, databaseId, kids, ktree, data, frzn }, select }) + db.object.update({ where: { id }, data, select }) + db.object.delete({ where: { id } }) + +FIELDS: + hashUuid: string + id: string (primary key) + databaseId: string + kids: string[] + ktree: string[] + data: unknown + frzn: boolean + createdAt: string + +EDITABLE FIELDS: + hashUuid: string + databaseId: string + kids: string[] + ktree: string[] + data: unknown + frzn: boolean + +OUTPUT: Promise + findMany: [{ hashUuid, id, databaseId, kids, ktree, data, frzn, createdAt }] + findOne: { hashUuid, id, databaseId, kids, ktree, data, frzn, createdAt } + create: { hashUuid, id, databaseId, kids, ktree, data, frzn, createdAt } + update: { hashUuid, id, databaseId, kids, ktree, data, frzn, createdAt } + delete: { id } +``` + +### MODEL: appLevelRequirement + +Access: `db.appLevelRequirement` + +``` +METHODS: + db.appLevelRequirement.findMany({ select, where?, orderBy?, first?, offset? }) + db.appLevelRequirement.findOne({ where: { id }, select }) + db.appLevelRequirement.create({ data: { name, level, description, requiredCount, priority }, select }) + db.appLevelRequirement.update({ where: { id }, data, select }) + db.appLevelRequirement.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + name: string + level: string + description: string + requiredCount: number + priority: number + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + name: string + level: string + description: string + requiredCount: number + priority: number + +OUTPUT: Promise + findMany: [{ id, name, level, description, requiredCount, priority, createdAt, updatedAt }] + findOne: { id, name, level, description, requiredCount, priority, createdAt, updatedAt } + create: { id, name, level, description, requiredCount, priority, createdAt, updatedAt } + update: { id, name, level, description, requiredCount, priority, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: database + +Access: `db.database` + +``` +METHODS: + db.database.findMany({ select, where?, orderBy?, first?, offset? }) + db.database.findOne({ where: { id }, select }) + db.database.create({ data: { ownerId, schemaHash, name, label, hash }, select }) + db.database.update({ where: { id }, data, select }) + db.database.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + ownerId: string + schemaHash: string + name: string + label: string + hash: string + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + ownerId: string + schemaHash: string + name: string + label: string + hash: string + +OUTPUT: Promise + findMany: [{ id, ownerId, schemaHash, name, label, hash, createdAt, updatedAt }] + findOne: { id, ownerId, schemaHash, name, label, hash, createdAt, updatedAt } + create: { id, ownerId, schemaHash, name, label, hash, createdAt, updatedAt } + update: { id, ownerId, schemaHash, name, label, hash, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: schema + +Access: `db.schema` + +``` +METHODS: + db.schema.findMany({ select, where?, orderBy?, first?, offset? }) + db.schema.findOne({ where: { id }, select }) + db.schema.create({ data: { databaseId, name, schemaName, label, description, smartTags, category, module, scope, tags, isPublic }, select }) + db.schema.update({ where: { id }, data, select }) + db.schema.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + databaseId: string + name: string + schemaName: string + label: string + description: string + smartTags: unknown + category: ObjectCategory + module: string + scope: number + tags: string[] + isPublic: boolean + +OUTPUT: Promise + findMany: [{ id, databaseId, name, schemaName, label, description, smartTags, category, module, scope, tags, isPublic, createdAt, updatedAt }] + findOne: { id, databaseId, name, schemaName, label, description, smartTags, category, module, scope, tags, isPublic, createdAt, updatedAt } + create: { id, databaseId, name, schemaName, label, description, smartTags, category, module, scope, tags, isPublic, createdAt, updatedAt } + update: { id, databaseId, name, schemaName, label, description, smartTags, category, module, scope, tags, isPublic, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: table + +Access: `db.table` + +``` +METHODS: + db.table.findMany({ select, where?, orderBy?, first?, offset? }) + db.table.findOne({ where: { id }, select }) + db.table.create({ data: { databaseId, schemaId, name, label, description, smartTags, category, module, scope, useRls, timestamps, peoplestamps, pluralName, singularName, tags, inheritsId }, select }) + db.table.update({ where: { id }, data, select }) + db.table.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + 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 + +OUTPUT: Promise + findMany: [{ id, databaseId, schemaId, name, label, description, smartTags, category, module, scope, useRls, timestamps, peoplestamps, pluralName, singularName, tags, inheritsId, createdAt, updatedAt }] + findOne: { id, databaseId, schemaId, name, label, description, smartTags, category, module, scope, useRls, timestamps, peoplestamps, pluralName, singularName, tags, inheritsId, createdAt, updatedAt } + create: { id, databaseId, schemaId, name, label, description, smartTags, category, module, scope, useRls, timestamps, peoplestamps, pluralName, singularName, tags, inheritsId, createdAt, updatedAt } + update: { id, databaseId, schemaId, name, label, description, smartTags, category, module, scope, useRls, timestamps, peoplestamps, pluralName, singularName, tags, inheritsId, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: checkConstraint + +Access: `db.checkConstraint` + +``` +METHODS: + db.checkConstraint.findMany({ select, where?, orderBy?, first?, offset? }) + db.checkConstraint.findOne({ where: { id }, select }) + db.checkConstraint.create({ data: { databaseId, tableId, name, type, fieldIds, expr, smartTags, category, module, scope, tags }, select }) + db.checkConstraint.update({ where: { id }, data, select }) + db.checkConstraint.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + databaseId: string + tableId: string + name: string + type: string + fieldIds: string[] + expr: unknown + smartTags: unknown + category: ObjectCategory + module: string + scope: number + tags: string[] + +OUTPUT: Promise + findMany: [{ id, databaseId, tableId, name, type, fieldIds, expr, smartTags, category, module, scope, tags, createdAt, updatedAt }] + findOne: { id, databaseId, tableId, name, type, fieldIds, expr, smartTags, category, module, scope, tags, createdAt, updatedAt } + create: { id, databaseId, tableId, name, type, fieldIds, expr, smartTags, category, module, scope, tags, createdAt, updatedAt } + update: { id, databaseId, tableId, name, type, fieldIds, expr, smartTags, category, module, scope, tags, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: field + +Access: `db.field` + +``` +METHODS: + db.field.findMany({ select, where?, orderBy?, first?, offset? }) + db.field.findOne({ where: { id }, select }) + 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 }) + db.field.update({ where: { id }, data, select }) + db.field.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + 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 + +OUTPUT: Promise + findMany: [{ id, databaseId, tableId, name, label, description, smartTags, isRequired, defaultValue, defaultValueAst, isHidden, type, fieldOrder, regexp, chk, chkExpr, min, max, tags, category, module, scope, createdAt, updatedAt }] + findOne: { id, databaseId, tableId, name, label, description, smartTags, isRequired, defaultValue, defaultValueAst, isHidden, type, fieldOrder, regexp, chk, chkExpr, min, max, tags, category, module, scope, createdAt, updatedAt } + create: { id, databaseId, tableId, name, label, description, smartTags, isRequired, defaultValue, defaultValueAst, isHidden, type, fieldOrder, regexp, chk, chkExpr, min, max, tags, category, module, scope, createdAt, updatedAt } + update: { id, databaseId, tableId, name, label, description, smartTags, isRequired, defaultValue, defaultValueAst, isHidden, type, fieldOrder, regexp, chk, chkExpr, min, max, tags, category, module, scope, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: foreignKeyConstraint + +Access: `db.foreignKeyConstraint` + +``` +METHODS: + db.foreignKeyConstraint.findMany({ select, where?, orderBy?, first?, offset? }) + db.foreignKeyConstraint.findOne({ where: { id }, select }) + db.foreignKeyConstraint.create({ data: { databaseId, tableId, name, description, smartTags, type, fieldIds, refTableId, refFieldIds, deleteAction, updateAction, category, module, scope, tags }, select }) + db.foreignKeyConstraint.update({ where: { id }, data, select }) + db.foreignKeyConstraint.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + 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[] + +OUTPUT: Promise + findMany: [{ id, databaseId, tableId, name, description, smartTags, type, fieldIds, refTableId, refFieldIds, deleteAction, updateAction, category, module, scope, tags, createdAt, updatedAt }] + findOne: { id, databaseId, tableId, name, description, smartTags, type, fieldIds, refTableId, refFieldIds, deleteAction, updateAction, category, module, scope, tags, createdAt, updatedAt } + create: { id, databaseId, tableId, name, description, smartTags, type, fieldIds, refTableId, refFieldIds, deleteAction, updateAction, category, module, scope, tags, createdAt, updatedAt } + update: { id, databaseId, tableId, name, description, smartTags, type, fieldIds, refTableId, refFieldIds, deleteAction, updateAction, category, module, scope, tags, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: fullTextSearch + +Access: `db.fullTextSearch` + +``` +METHODS: + db.fullTextSearch.findMany({ select, where?, orderBy?, first?, offset? }) + db.fullTextSearch.findOne({ where: { id }, select }) + db.fullTextSearch.create({ data: { databaseId, tableId, fieldId, fieldIds, weights, langs }, select }) + db.fullTextSearch.update({ where: { id }, data, select }) + db.fullTextSearch.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + tableId: string + fieldId: string + fieldIds: string[] + weights: string[] + langs: string[] + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + databaseId: string + tableId: string + fieldId: string + fieldIds: string[] + weights: string[] + langs: string[] + +OUTPUT: Promise + findMany: [{ id, databaseId, tableId, fieldId, fieldIds, weights, langs, createdAt, updatedAt }] + findOne: { id, databaseId, tableId, fieldId, fieldIds, weights, langs, createdAt, updatedAt } + create: { id, databaseId, tableId, fieldId, fieldIds, weights, langs, createdAt, updatedAt } + update: { id, databaseId, tableId, fieldId, fieldIds, weights, langs, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: index + +Access: `db.index` + +``` +METHODS: + db.index.findMany({ select, where?, orderBy?, first?, offset? }) + db.index.findOne({ where: { id }, select }) + db.index.create({ data: { databaseId, tableId, name, fieldIds, includeFieldIds, accessMethod, indexParams, whereClause, isUnique, smartTags, category, module, scope, tags }, select }) + db.index.update({ where: { id }, data, select }) + db.index.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + 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[] + +OUTPUT: Promise + findMany: [{ id, databaseId, tableId, name, fieldIds, includeFieldIds, accessMethod, indexParams, whereClause, isUnique, smartTags, category, module, scope, tags, createdAt, updatedAt }] + findOne: { id, databaseId, tableId, name, fieldIds, includeFieldIds, accessMethod, indexParams, whereClause, isUnique, smartTags, category, module, scope, tags, createdAt, updatedAt } + create: { id, databaseId, tableId, name, fieldIds, includeFieldIds, accessMethod, indexParams, whereClause, isUnique, smartTags, category, module, scope, tags, createdAt, updatedAt } + update: { id, databaseId, tableId, name, fieldIds, includeFieldIds, accessMethod, indexParams, whereClause, isUnique, smartTags, category, module, scope, tags, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: limitFunction + +Access: `db.limitFunction` + +``` +METHODS: + db.limitFunction.findMany({ select, where?, orderBy?, first?, offset? }) + db.limitFunction.findOne({ where: { id }, select }) + db.limitFunction.create({ data: { databaseId, tableId, name, label, description, data, security }, select }) + db.limitFunction.update({ where: { id }, data, select }) + db.limitFunction.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + tableId: string + name: string + label: string + description: string + data: unknown + security: number + +EDITABLE FIELDS: + databaseId: string + tableId: string + name: string + label: string + description: string + data: unknown + security: number + +OUTPUT: Promise + findMany: [{ id, databaseId, tableId, name, label, description, data, security }] + findOne: { id, databaseId, tableId, name, label, description, data, security } + create: { id, databaseId, tableId, name, label, description, data, security } + update: { id, databaseId, tableId, name, label, description, data, security } + delete: { id } +``` + +### MODEL: policy + +Access: `db.policy` + +``` +METHODS: + db.policy.findMany({ select, where?, orderBy?, first?, offset? }) + db.policy.findOne({ where: { id }, select }) + db.policy.create({ data: { databaseId, tableId, name, roleName, privilege, permissive, disabled, policyType, data, smartTags, category, module, scope, tags }, select }) + db.policy.update({ where: { id }, data, select }) + db.policy.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + 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[] + +OUTPUT: Promise + findMany: [{ id, databaseId, tableId, name, roleName, privilege, permissive, disabled, policyType, data, smartTags, category, module, scope, tags, createdAt, updatedAt }] + findOne: { id, databaseId, tableId, name, roleName, privilege, permissive, disabled, policyType, data, smartTags, category, module, scope, tags, createdAt, updatedAt } + create: { id, databaseId, tableId, name, roleName, privilege, permissive, disabled, policyType, data, smartTags, category, module, scope, tags, createdAt, updatedAt } + update: { id, databaseId, tableId, name, roleName, privilege, permissive, disabled, policyType, data, smartTags, category, module, scope, tags, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: primaryKeyConstraint + +Access: `db.primaryKeyConstraint` + +``` +METHODS: + db.primaryKeyConstraint.findMany({ select, where?, orderBy?, first?, offset? }) + db.primaryKeyConstraint.findOne({ where: { id }, select }) + db.primaryKeyConstraint.create({ data: { databaseId, tableId, name, type, fieldIds, smartTags, category, module, scope, tags }, select }) + db.primaryKeyConstraint.update({ where: { id }, data, select }) + db.primaryKeyConstraint.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + tableId: string + name: string + type: string + fieldIds: string[] + smartTags: unknown + category: ObjectCategory + module: string + scope: number + tags: string[] + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + databaseId: string + tableId: string + name: string + type: string + fieldIds: string[] + smartTags: unknown + category: ObjectCategory + module: string + scope: number + tags: string[] + +OUTPUT: Promise + findMany: [{ id, databaseId, tableId, name, type, fieldIds, smartTags, category, module, scope, tags, createdAt, updatedAt }] + findOne: { id, databaseId, tableId, name, type, fieldIds, smartTags, category, module, scope, tags, createdAt, updatedAt } + create: { id, databaseId, tableId, name, type, fieldIds, smartTags, category, module, scope, tags, createdAt, updatedAt } + update: { id, databaseId, tableId, name, type, fieldIds, smartTags, category, module, scope, tags, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: tableGrant + +Access: `db.tableGrant` + +``` +METHODS: + db.tableGrant.findMany({ select, where?, orderBy?, first?, offset? }) + db.tableGrant.findOne({ where: { id }, select }) + db.tableGrant.create({ data: { databaseId, tableId, privilege, roleName, fieldIds }, select }) + db.tableGrant.update({ where: { id }, data, select }) + db.tableGrant.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + tableId: string + privilege: string + roleName: string + fieldIds: string[] + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + databaseId: string + tableId: string + privilege: string + roleName: string + fieldIds: string[] + +OUTPUT: Promise + findMany: [{ id, databaseId, tableId, privilege, roleName, fieldIds, createdAt, updatedAt }] + findOne: { id, databaseId, tableId, privilege, roleName, fieldIds, createdAt, updatedAt } + create: { id, databaseId, tableId, privilege, roleName, fieldIds, createdAt, updatedAt } + update: { id, databaseId, tableId, privilege, roleName, fieldIds, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: trigger + +Access: `db.trigger` + +``` +METHODS: + db.trigger.findMany({ select, where?, orderBy?, first?, offset? }) + db.trigger.findOne({ where: { id }, select }) + db.trigger.create({ data: { databaseId, tableId, name, event, functionName, smartTags, category, module, scope, tags }, select }) + db.trigger.update({ where: { id }, data, select }) + db.trigger.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + tableId: string + name: string + event: string + functionName: string + smartTags: unknown + category: ObjectCategory + module: string + scope: number + tags: string[] + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + databaseId: string + tableId: string + name: string + event: string + functionName: string + smartTags: unknown + category: ObjectCategory + module: string + scope: number + tags: string[] + +OUTPUT: Promise + findMany: [{ id, databaseId, tableId, name, event, functionName, smartTags, category, module, scope, tags, createdAt, updatedAt }] + findOne: { id, databaseId, tableId, name, event, functionName, smartTags, category, module, scope, tags, createdAt, updatedAt } + create: { id, databaseId, tableId, name, event, functionName, smartTags, category, module, scope, tags, createdAt, updatedAt } + update: { id, databaseId, tableId, name, event, functionName, smartTags, category, module, scope, tags, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: uniqueConstraint + +Access: `db.uniqueConstraint` + +``` +METHODS: + db.uniqueConstraint.findMany({ select, where?, orderBy?, first?, offset? }) + db.uniqueConstraint.findOne({ where: { id }, select }) + db.uniqueConstraint.create({ data: { databaseId, tableId, name, description, smartTags, type, fieldIds, category, module, scope, tags }, select }) + db.uniqueConstraint.update({ where: { id }, data, select }) + db.uniqueConstraint.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + databaseId: string + tableId: string + name: string + description: string + smartTags: unknown + type: string + fieldIds: string[] + category: ObjectCategory + module: string + scope: number + tags: string[] + +OUTPUT: Promise + findMany: [{ id, databaseId, tableId, name, description, smartTags, type, fieldIds, category, module, scope, tags, createdAt, updatedAt }] + findOne: { id, databaseId, tableId, name, description, smartTags, type, fieldIds, category, module, scope, tags, createdAt, updatedAt } + create: { id, databaseId, tableId, name, description, smartTags, type, fieldIds, category, module, scope, tags, createdAt, updatedAt } + update: { id, databaseId, tableId, name, description, smartTags, type, fieldIds, category, module, scope, tags, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: view + +Access: `db.view` + +``` +METHODS: + db.view.findMany({ select, where?, orderBy?, first?, offset? }) + db.view.findOne({ where: { id }, select }) + db.view.create({ data: { databaseId, schemaId, name, tableId, viewType, data, filterType, filterData, securityInvoker, isReadOnly, smartTags, category, module, scope, tags }, select }) + db.view.update({ where: { id }, data, select }) + db.view.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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[] + +EDITABLE FIELDS: + 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[] + +OUTPUT: Promise + findMany: [{ id, databaseId, schemaId, name, tableId, viewType, data, filterType, filterData, securityInvoker, isReadOnly, smartTags, category, module, scope, tags }] + findOne: { id, databaseId, schemaId, name, tableId, viewType, data, filterType, filterData, securityInvoker, isReadOnly, smartTags, category, module, scope, tags } + create: { id, databaseId, schemaId, name, tableId, viewType, data, filterType, filterData, securityInvoker, isReadOnly, smartTags, category, module, scope, tags } + update: { id, databaseId, schemaId, name, tableId, viewType, data, filterType, filterData, securityInvoker, isReadOnly, smartTags, category, module, scope, tags } + delete: { id } +``` + +### MODEL: viewTable + +Access: `db.viewTable` + +``` +METHODS: + db.viewTable.findMany({ select, where?, orderBy?, first?, offset? }) + db.viewTable.findOne({ where: { id }, select }) + db.viewTable.create({ data: { viewId, tableId, joinOrder }, select }) + db.viewTable.update({ where: { id }, data, select }) + db.viewTable.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + viewId: string + tableId: string + joinOrder: number + +EDITABLE FIELDS: + viewId: string + tableId: string + joinOrder: number + +OUTPUT: Promise + findMany: [{ id, viewId, tableId, joinOrder }] + findOne: { id, viewId, tableId, joinOrder } + create: { id, viewId, tableId, joinOrder } + update: { id, viewId, tableId, joinOrder } + delete: { id } +``` + +### MODEL: viewGrant + +Access: `db.viewGrant` + +``` +METHODS: + db.viewGrant.findMany({ select, where?, orderBy?, first?, offset? }) + db.viewGrant.findOne({ where: { id }, select }) + db.viewGrant.create({ data: { databaseId, viewId, roleName, privilege, withGrantOption }, select }) + db.viewGrant.update({ where: { id }, data, select }) + db.viewGrant.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + viewId: string + roleName: string + privilege: string + withGrantOption: boolean + +EDITABLE FIELDS: + databaseId: string + viewId: string + roleName: string + privilege: string + withGrantOption: boolean + +OUTPUT: Promise + findMany: [{ id, databaseId, viewId, roleName, privilege, withGrantOption }] + findOne: { id, databaseId, viewId, roleName, privilege, withGrantOption } + create: { id, databaseId, viewId, roleName, privilege, withGrantOption } + update: { id, databaseId, viewId, roleName, privilege, withGrantOption } + delete: { id } +``` + +### MODEL: viewRule + +Access: `db.viewRule` + +``` +METHODS: + db.viewRule.findMany({ select, where?, orderBy?, first?, offset? }) + db.viewRule.findOne({ where: { id }, select }) + db.viewRule.create({ data: { databaseId, viewId, name, event, action }, select }) + db.viewRule.update({ where: { id }, data, select }) + db.viewRule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + viewId: string + name: string + event: string + action: string + +EDITABLE FIELDS: + databaseId: string + viewId: string + name: string + event: string + action: string + +OUTPUT: Promise + findMany: [{ id, databaseId, viewId, name, event, action }] + findOne: { id, databaseId, viewId, name, event, action } + create: { id, databaseId, viewId, name, event, action } + update: { id, databaseId, viewId, name, event, action } + delete: { id } +``` + +### MODEL: tableModule + +Access: `db.tableModule` + +``` +METHODS: + db.tableModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.tableModule.findOne({ where: { id }, select }) + db.tableModule.create({ data: { databaseId, privateSchemaId, tableId, nodeType, data, fields }, select }) + db.tableModule.update({ where: { id }, data, select }) + db.tableModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + privateSchemaId: string + tableId: string + nodeType: string + data: unknown + fields: string[] + +EDITABLE FIELDS: + databaseId: string + privateSchemaId: string + tableId: string + nodeType: string + data: unknown + fields: string[] + +OUTPUT: Promise + findMany: [{ id, databaseId, privateSchemaId, tableId, nodeType, data, fields }] + findOne: { id, databaseId, privateSchemaId, tableId, nodeType, data, fields } + create: { id, databaseId, privateSchemaId, tableId, nodeType, data, fields } + update: { id, databaseId, privateSchemaId, tableId, nodeType, data, fields } + delete: { id } +``` + +### MODEL: tableTemplateModule + +Access: `db.tableTemplateModule` + +``` +METHODS: + db.tableTemplateModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.tableTemplateModule.findOne({ where: { id }, select }) + db.tableTemplateModule.create({ data: { databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName, nodeType, data }, select }) + db.tableTemplateModule.update({ where: { id }, data, select }) + db.tableTemplateModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + schemaId: string + privateSchemaId: string + tableId: string + ownerTableId: string + tableName: string + nodeType: string + data: unknown + +EDITABLE FIELDS: + databaseId: string + schemaId: string + privateSchemaId: string + tableId: string + ownerTableId: string + tableName: string + nodeType: string + data: unknown + +OUTPUT: Promise + findMany: [{ id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName, nodeType, data }] + findOne: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName, nodeType, data } + create: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName, nodeType, data } + update: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName, nodeType, data } + delete: { id } +``` + +### MODEL: schemaGrant + +Access: `db.schemaGrant` + +``` +METHODS: + db.schemaGrant.findMany({ select, where?, orderBy?, first?, offset? }) + db.schemaGrant.findOne({ where: { id }, select }) + db.schemaGrant.create({ data: { databaseId, schemaId, granteeName }, select }) + db.schemaGrant.update({ where: { id }, data, select }) + db.schemaGrant.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + schemaId: string + granteeName: string + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + databaseId: string + schemaId: string + granteeName: string + +OUTPUT: Promise + findMany: [{ id, databaseId, schemaId, granteeName, createdAt, updatedAt }] + findOne: { id, databaseId, schemaId, granteeName, createdAt, updatedAt } + create: { id, databaseId, schemaId, granteeName, createdAt, updatedAt } + update: { id, databaseId, schemaId, granteeName, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: apiSchema + +Access: `db.apiSchema` + +``` +METHODS: + db.apiSchema.findMany({ select, where?, orderBy?, first?, offset? }) + db.apiSchema.findOne({ where: { id }, select }) + db.apiSchema.create({ data: { databaseId, schemaId, apiId }, select }) + db.apiSchema.update({ where: { id }, data, select }) + db.apiSchema.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + schemaId: string + apiId: string + +EDITABLE FIELDS: + databaseId: string + schemaId: string + apiId: string + +OUTPUT: Promise + findMany: [{ id, databaseId, schemaId, apiId }] + findOne: { id, databaseId, schemaId, apiId } + create: { id, databaseId, schemaId, apiId } + update: { id, databaseId, schemaId, apiId } + delete: { id } +``` + +### MODEL: apiModule + +Access: `db.apiModule` + +``` +METHODS: + db.apiModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.apiModule.findOne({ where: { id }, select }) + db.apiModule.create({ data: { databaseId, apiId, name, data }, select }) + db.apiModule.update({ where: { id }, data, select }) + db.apiModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + apiId: string + name: string + data: unknown + +EDITABLE FIELDS: + databaseId: string + apiId: string + name: string + data: unknown + +OUTPUT: Promise + findMany: [{ id, databaseId, apiId, name, data }] + findOne: { id, databaseId, apiId, name, data } + create: { id, databaseId, apiId, name, data } + update: { id, databaseId, apiId, name, data } + delete: { id } +``` + +### MODEL: domain + +Access: `db.domain` + +``` +METHODS: + db.domain.findMany({ select, where?, orderBy?, first?, offset? }) + db.domain.findOne({ where: { id }, select }) + db.domain.create({ data: { databaseId, apiId, siteId, subdomain, domain }, select }) + db.domain.update({ where: { id }, data, select }) + db.domain.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + apiId: string + siteId: string + subdomain: ConstructiveInternalTypeHostname + domain: ConstructiveInternalTypeHostname + +EDITABLE FIELDS: + databaseId: string + apiId: string + siteId: string + subdomain: ConstructiveInternalTypeHostname + domain: ConstructiveInternalTypeHostname + +OUTPUT: Promise + findMany: [{ id, databaseId, apiId, siteId, subdomain, domain }] + findOne: { id, databaseId, apiId, siteId, subdomain, domain } + create: { id, databaseId, apiId, siteId, subdomain, domain } + update: { id, databaseId, apiId, siteId, subdomain, domain } + delete: { id } +``` + +### MODEL: siteMetadatum + +Access: `db.siteMetadatum` + +``` +METHODS: + db.siteMetadatum.findMany({ select, where?, orderBy?, first?, offset? }) + db.siteMetadatum.findOne({ where: { id }, select }) + db.siteMetadatum.create({ data: { databaseId, siteId, title, description, ogImage }, select }) + db.siteMetadatum.update({ where: { id }, data, select }) + db.siteMetadatum.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + siteId: string + title: string + description: string + ogImage: ConstructiveInternalTypeImage + +EDITABLE FIELDS: + databaseId: string + siteId: string + title: string + description: string + ogImage: ConstructiveInternalTypeImage + +OUTPUT: Promise + findMany: [{ id, databaseId, siteId, title, description, ogImage }] + findOne: { id, databaseId, siteId, title, description, ogImage } + create: { id, databaseId, siteId, title, description, ogImage } + update: { id, databaseId, siteId, title, description, ogImage } + delete: { id } +``` + +### MODEL: siteModule + +Access: `db.siteModule` + +``` +METHODS: + db.siteModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.siteModule.findOne({ where: { id }, select }) + db.siteModule.create({ data: { databaseId, siteId, name, data }, select }) + db.siteModule.update({ where: { id }, data, select }) + db.siteModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + siteId: string + name: string + data: unknown + +EDITABLE FIELDS: + databaseId: string + siteId: string + name: string + data: unknown + +OUTPUT: Promise + findMany: [{ id, databaseId, siteId, name, data }] + findOne: { id, databaseId, siteId, name, data } + create: { id, databaseId, siteId, name, data } + update: { id, databaseId, siteId, name, data } + delete: { id } +``` + +### MODEL: siteTheme + +Access: `db.siteTheme` + +``` +METHODS: + db.siteTheme.findMany({ select, where?, orderBy?, first?, offset? }) + db.siteTheme.findOne({ where: { id }, select }) + db.siteTheme.create({ data: { databaseId, siteId, theme }, select }) + db.siteTheme.update({ where: { id }, data, select }) + db.siteTheme.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + siteId: string + theme: unknown + +EDITABLE FIELDS: + databaseId: string + siteId: string + theme: unknown + +OUTPUT: Promise + findMany: [{ id, databaseId, siteId, theme }] + findOne: { id, databaseId, siteId, theme } + create: { id, databaseId, siteId, theme } + update: { id, databaseId, siteId, theme } + delete: { id } +``` + +### MODEL: procedure + +Access: `db.procedure` + +``` +METHODS: + db.procedure.findMany({ select, where?, orderBy?, first?, offset? }) + db.procedure.findOne({ where: { id }, select }) + db.procedure.create({ data: { databaseId, name, argnames, argtypes, argdefaults, langName, definition, smartTags, category, module, scope, tags }, select }) + db.procedure.update({ where: { id }, data, select }) + db.procedure.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + databaseId: string + name: string + argnames: string[] + argtypes: string[] + argdefaults: string[] + langName: string + definition: string + smartTags: unknown + category: ObjectCategory + module: string + scope: number + tags: string[] + +OUTPUT: Promise + findMany: [{ id, databaseId, name, argnames, argtypes, argdefaults, langName, definition, smartTags, category, module, scope, tags, createdAt, updatedAt }] + findOne: { id, databaseId, name, argnames, argtypes, argdefaults, langName, definition, smartTags, category, module, scope, tags, createdAt, updatedAt } + create: { id, databaseId, name, argnames, argtypes, argdefaults, langName, definition, smartTags, category, module, scope, tags, createdAt, updatedAt } + update: { id, databaseId, name, argnames, argtypes, argdefaults, langName, definition, smartTags, category, module, scope, tags, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: triggerFunction + +Access: `db.triggerFunction` + +``` +METHODS: + db.triggerFunction.findMany({ select, where?, orderBy?, first?, offset? }) + db.triggerFunction.findOne({ where: { id }, select }) + db.triggerFunction.create({ data: { databaseId, name, code }, select }) + db.triggerFunction.update({ where: { id }, data, select }) + db.triggerFunction.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + name: string + code: string + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + databaseId: string + name: string + code: string + +OUTPUT: Promise + findMany: [{ id, databaseId, name, code, createdAt, updatedAt }] + findOne: { id, databaseId, name, code, createdAt, updatedAt } + create: { id, databaseId, name, code, createdAt, updatedAt } + update: { id, databaseId, name, code, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: api + +Access: `db.api` + +``` +METHODS: + db.api.findMany({ select, where?, orderBy?, first?, offset? }) + db.api.findOne({ where: { id }, select }) + db.api.create({ data: { databaseId, name, dbname, roleName, anonRole, isPublic }, select }) + db.api.update({ where: { id }, data, select }) + db.api.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + name: string + dbname: string + roleName: string + anonRole: string + isPublic: boolean + +EDITABLE FIELDS: + databaseId: string + name: string + dbname: string + roleName: string + anonRole: string + isPublic: boolean + +OUTPUT: Promise + findMany: [{ id, databaseId, name, dbname, roleName, anonRole, isPublic }] + findOne: { id, databaseId, name, dbname, roleName, anonRole, isPublic } + create: { id, databaseId, name, dbname, roleName, anonRole, isPublic } + update: { id, databaseId, name, dbname, roleName, anonRole, isPublic } + delete: { id } +``` + +### MODEL: site + +Access: `db.site` + +``` +METHODS: + db.site.findMany({ select, where?, orderBy?, first?, offset? }) + db.site.findOne({ where: { id }, select }) + db.site.create({ data: { databaseId, title, description, ogImage, favicon, appleTouchIcon, logo, dbname }, select }) + db.site.update({ where: { id }, data, select }) + db.site.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + title: string + description: string + ogImage: ConstructiveInternalTypeImage + favicon: ConstructiveInternalTypeAttachment + appleTouchIcon: ConstructiveInternalTypeImage + logo: ConstructiveInternalTypeImage + dbname: string + +EDITABLE FIELDS: + databaseId: string + title: string + description: string + ogImage: ConstructiveInternalTypeImage + favicon: ConstructiveInternalTypeAttachment + appleTouchIcon: ConstructiveInternalTypeImage + logo: ConstructiveInternalTypeImage + dbname: string + +OUTPUT: Promise + findMany: [{ id, databaseId, title, description, ogImage, favicon, appleTouchIcon, logo, dbname }] + findOne: { id, databaseId, title, description, ogImage, favicon, appleTouchIcon, logo, dbname } + create: { id, databaseId, title, description, ogImage, favicon, appleTouchIcon, logo, dbname } + update: { id, databaseId, title, description, ogImage, favicon, appleTouchIcon, logo, dbname } + delete: { id } +``` + +### MODEL: app + +Access: `db.app` + +``` +METHODS: + db.app.findMany({ select, where?, orderBy?, first?, offset? }) + db.app.findOne({ where: { id }, select }) + db.app.create({ data: { databaseId, siteId, name, appImage, appStoreLink, appStoreId, appIdPrefix, playStoreLink }, select }) + db.app.update({ where: { id }, data, select }) + db.app.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + siteId: string + name: string + appImage: ConstructiveInternalTypeImage + appStoreLink: ConstructiveInternalTypeUrl + appStoreId: string + appIdPrefix: string + playStoreLink: ConstructiveInternalTypeUrl + +EDITABLE FIELDS: + databaseId: string + siteId: string + name: string + appImage: ConstructiveInternalTypeImage + appStoreLink: ConstructiveInternalTypeUrl + appStoreId: string + appIdPrefix: string + playStoreLink: ConstructiveInternalTypeUrl + +OUTPUT: Promise + findMany: [{ id, databaseId, siteId, name, appImage, appStoreLink, appStoreId, appIdPrefix, playStoreLink }] + findOne: { id, databaseId, siteId, name, appImage, appStoreLink, appStoreId, appIdPrefix, playStoreLink } + create: { id, databaseId, siteId, name, appImage, appStoreLink, appStoreId, appIdPrefix, playStoreLink } + update: { id, databaseId, siteId, name, appImage, appStoreLink, appStoreId, appIdPrefix, playStoreLink } + delete: { id } +``` + +### MODEL: connectedAccountsModule + +Access: `db.connectedAccountsModule` + +``` +METHODS: + db.connectedAccountsModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.connectedAccountsModule.findOne({ where: { id }, select }) + db.connectedAccountsModule.create({ data: { databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName }, select }) + db.connectedAccountsModule.update({ where: { id }, data, select }) + db.connectedAccountsModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + schemaId: string + privateSchemaId: string + tableId: string + ownerTableId: string + tableName: string + +EDITABLE FIELDS: + databaseId: string + schemaId: string + privateSchemaId: string + tableId: string + ownerTableId: string + tableName: string + +OUTPUT: Promise + findMany: [{ id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName }] + findOne: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName } + create: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName } + update: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName } + delete: { id } +``` + +### MODEL: cryptoAddressesModule + +Access: `db.cryptoAddressesModule` + +``` +METHODS: + db.cryptoAddressesModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.cryptoAddressesModule.findOne({ where: { id }, select }) + db.cryptoAddressesModule.create({ data: { databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName, cryptoNetwork }, select }) + db.cryptoAddressesModule.update({ where: { id }, data, select }) + db.cryptoAddressesModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + schemaId: string + privateSchemaId: string + tableId: string + ownerTableId: string + tableName: string + cryptoNetwork: string + +EDITABLE FIELDS: + databaseId: string + schemaId: string + privateSchemaId: string + tableId: string + ownerTableId: string + tableName: string + cryptoNetwork: string + +OUTPUT: Promise + findMany: [{ id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName, cryptoNetwork }] + findOne: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName, cryptoNetwork } + create: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName, cryptoNetwork } + update: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName, cryptoNetwork } + delete: { id } +``` + +### MODEL: cryptoAuthModule + +Access: `db.cryptoAuthModule` + +``` +METHODS: + db.cryptoAuthModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.cryptoAuthModule.findOne({ where: { id }, select }) + db.cryptoAuthModule.create({ data: { databaseId, schemaId, usersTableId, secretsTableId, sessionsTableId, sessionCredentialsTableId, addressesTableId, userField, cryptoNetwork, signInRequestChallenge, signInRecordFailure, signUpWithKey, signInWithChallenge }, select }) + db.cryptoAuthModule.update({ where: { id }, data, select }) + db.cryptoAuthModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + 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 + +OUTPUT: Promise + findMany: [{ id, databaseId, schemaId, usersTableId, secretsTableId, sessionsTableId, sessionCredentialsTableId, addressesTableId, userField, cryptoNetwork, signInRequestChallenge, signInRecordFailure, signUpWithKey, signInWithChallenge }] + findOne: { id, databaseId, schemaId, usersTableId, secretsTableId, sessionsTableId, sessionCredentialsTableId, addressesTableId, userField, cryptoNetwork, signInRequestChallenge, signInRecordFailure, signUpWithKey, signInWithChallenge } + create: { id, databaseId, schemaId, usersTableId, secretsTableId, sessionsTableId, sessionCredentialsTableId, addressesTableId, userField, cryptoNetwork, signInRequestChallenge, signInRecordFailure, signUpWithKey, signInWithChallenge } + update: { id, databaseId, schemaId, usersTableId, secretsTableId, sessionsTableId, sessionCredentialsTableId, addressesTableId, userField, cryptoNetwork, signInRequestChallenge, signInRecordFailure, signUpWithKey, signInWithChallenge } + delete: { id } +``` + +### MODEL: defaultIdsModule + +Access: `db.defaultIdsModule` + +``` +METHODS: + db.defaultIdsModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.defaultIdsModule.findOne({ where: { id }, select }) + db.defaultIdsModule.create({ data: { databaseId }, select }) + db.defaultIdsModule.update({ where: { id }, data, select }) + db.defaultIdsModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + +EDITABLE FIELDS: + databaseId: string + +OUTPUT: Promise + findMany: [{ id, databaseId }] + findOne: { id, databaseId } + create: { id, databaseId } + update: { id, databaseId } + delete: { id } +``` + +### MODEL: denormalizedTableField + +Access: `db.denormalizedTableField` + +``` +METHODS: + db.denormalizedTableField.findMany({ select, where?, orderBy?, first?, offset? }) + db.denormalizedTableField.findOne({ where: { id }, select }) + db.denormalizedTableField.create({ data: { databaseId, tableId, fieldId, setIds, refTableId, refFieldId, refIds, useUpdates, updateDefaults, funcName, funcOrder }, select }) + db.denormalizedTableField.update({ where: { id }, data, select }) + db.denormalizedTableField.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + tableId: string + fieldId: string + setIds: string[] + refTableId: string + refFieldId: string + refIds: string[] + useUpdates: boolean + updateDefaults: boolean + funcName: string + funcOrder: number + +EDITABLE FIELDS: + databaseId: string + tableId: string + fieldId: string + setIds: string[] + refTableId: string + refFieldId: string + refIds: string[] + useUpdates: boolean + updateDefaults: boolean + funcName: string + funcOrder: number + +OUTPUT: Promise + findMany: [{ id, databaseId, tableId, fieldId, setIds, refTableId, refFieldId, refIds, useUpdates, updateDefaults, funcName, funcOrder }] + findOne: { id, databaseId, tableId, fieldId, setIds, refTableId, refFieldId, refIds, useUpdates, updateDefaults, funcName, funcOrder } + create: { id, databaseId, tableId, fieldId, setIds, refTableId, refFieldId, refIds, useUpdates, updateDefaults, funcName, funcOrder } + update: { id, databaseId, tableId, fieldId, setIds, refTableId, refFieldId, refIds, useUpdates, updateDefaults, funcName, funcOrder } + delete: { id } +``` + +### MODEL: emailsModule + +Access: `db.emailsModule` + +``` +METHODS: + db.emailsModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.emailsModule.findOne({ where: { id }, select }) + db.emailsModule.create({ data: { databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName }, select }) + db.emailsModule.update({ where: { id }, data, select }) + db.emailsModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + schemaId: string + privateSchemaId: string + tableId: string + ownerTableId: string + tableName: string + +EDITABLE FIELDS: + databaseId: string + schemaId: string + privateSchemaId: string + tableId: string + ownerTableId: string + tableName: string + +OUTPUT: Promise + findMany: [{ id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName }] + findOne: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName } + create: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName } + update: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName } + delete: { id } +``` + +### MODEL: encryptedSecretsModule + +Access: `db.encryptedSecretsModule` + +``` +METHODS: + db.encryptedSecretsModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.encryptedSecretsModule.findOne({ where: { id }, select }) + db.encryptedSecretsModule.create({ data: { databaseId, schemaId, tableId, tableName }, select }) + db.encryptedSecretsModule.update({ where: { id }, data, select }) + db.encryptedSecretsModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + schemaId: string + tableId: string + tableName: string + +EDITABLE FIELDS: + databaseId: string + schemaId: string + tableId: string + tableName: string + +OUTPUT: Promise + findMany: [{ id, databaseId, schemaId, tableId, tableName }] + findOne: { id, databaseId, schemaId, tableId, tableName } + create: { id, databaseId, schemaId, tableId, tableName } + update: { id, databaseId, schemaId, tableId, tableName } + delete: { id } +``` + +### MODEL: fieldModule + +Access: `db.fieldModule` + +``` +METHODS: + db.fieldModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.fieldModule.findOne({ where: { id }, select }) + db.fieldModule.create({ data: { databaseId, privateSchemaId, tableId, fieldId, nodeType, data, triggers, functions }, select }) + db.fieldModule.update({ where: { id }, data, select }) + db.fieldModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + privateSchemaId: string + tableId: string + fieldId: string + nodeType: string + data: unknown + triggers: string[] + functions: string[] + +EDITABLE FIELDS: + databaseId: string + privateSchemaId: string + tableId: string + fieldId: string + nodeType: string + data: unknown + triggers: string[] + functions: string[] + +OUTPUT: Promise + findMany: [{ id, databaseId, privateSchemaId, tableId, fieldId, nodeType, data, triggers, functions }] + findOne: { id, databaseId, privateSchemaId, tableId, fieldId, nodeType, data, triggers, functions } + create: { id, databaseId, privateSchemaId, tableId, fieldId, nodeType, data, triggers, functions } + update: { id, databaseId, privateSchemaId, tableId, fieldId, nodeType, data, triggers, functions } + delete: { id } +``` + +### MODEL: invitesModule + +Access: `db.invitesModule` + +``` +METHODS: + db.invitesModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.invitesModule.findOne({ where: { id }, select }) + db.invitesModule.create({ data: { databaseId, schemaId, privateSchemaId, emailsTableId, usersTableId, invitesTableId, claimedInvitesTableId, invitesTableName, claimedInvitesTableName, submitInviteCodeFunction, prefix, membershipType, entityTableId }, select }) + db.invitesModule.update({ where: { id }, data, select }) + db.invitesModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + 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 + +OUTPUT: Promise + findMany: [{ id, databaseId, schemaId, privateSchemaId, emailsTableId, usersTableId, invitesTableId, claimedInvitesTableId, invitesTableName, claimedInvitesTableName, submitInviteCodeFunction, prefix, membershipType, entityTableId }] + findOne: { id, databaseId, schemaId, privateSchemaId, emailsTableId, usersTableId, invitesTableId, claimedInvitesTableId, invitesTableName, claimedInvitesTableName, submitInviteCodeFunction, prefix, membershipType, entityTableId } + create: { id, databaseId, schemaId, privateSchemaId, emailsTableId, usersTableId, invitesTableId, claimedInvitesTableId, invitesTableName, claimedInvitesTableName, submitInviteCodeFunction, prefix, membershipType, entityTableId } + update: { id, databaseId, schemaId, privateSchemaId, emailsTableId, usersTableId, invitesTableId, claimedInvitesTableId, invitesTableName, claimedInvitesTableName, submitInviteCodeFunction, prefix, membershipType, entityTableId } + delete: { id } +``` + +### MODEL: levelsModule + +Access: `db.levelsModule` + +``` +METHODS: + db.levelsModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.levelsModule.findOne({ where: { id }, select }) + 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 }) + db.levelsModule.update({ where: { id }, data, select }) + db.levelsModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + 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 + +OUTPUT: Promise + findMany: [{ id, 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 }] + findOne: { id, 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 } + create: { id, 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 } + update: { id, 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 } + delete: { id } +``` + +### MODEL: limitsModule + +Access: `db.limitsModule` + +``` +METHODS: + db.limitsModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.limitsModule.findOne({ where: { id }, select }) + db.limitsModule.create({ data: { databaseId, schemaId, privateSchemaId, tableId, tableName, defaultTableId, defaultTableName, limitIncrementFunction, limitDecrementFunction, limitIncrementTrigger, limitDecrementTrigger, limitUpdateTrigger, limitCheckFunction, prefix, membershipType, entityTableId, actorTableId }, select }) + db.limitsModule.update({ where: { id }, data, select }) + db.limitsModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + 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 + +OUTPUT: Promise + findMany: [{ id, databaseId, schemaId, privateSchemaId, tableId, tableName, defaultTableId, defaultTableName, limitIncrementFunction, limitDecrementFunction, limitIncrementTrigger, limitDecrementTrigger, limitUpdateTrigger, limitCheckFunction, prefix, membershipType, entityTableId, actorTableId }] + findOne: { id, databaseId, schemaId, privateSchemaId, tableId, tableName, defaultTableId, defaultTableName, limitIncrementFunction, limitDecrementFunction, limitIncrementTrigger, limitDecrementTrigger, limitUpdateTrigger, limitCheckFunction, prefix, membershipType, entityTableId, actorTableId } + create: { id, databaseId, schemaId, privateSchemaId, tableId, tableName, defaultTableId, defaultTableName, limitIncrementFunction, limitDecrementFunction, limitIncrementTrigger, limitDecrementTrigger, limitUpdateTrigger, limitCheckFunction, prefix, membershipType, entityTableId, actorTableId } + update: { id, databaseId, schemaId, privateSchemaId, tableId, tableName, defaultTableId, defaultTableName, limitIncrementFunction, limitDecrementFunction, limitIncrementTrigger, limitDecrementTrigger, limitUpdateTrigger, limitCheckFunction, prefix, membershipType, entityTableId, actorTableId } + delete: { id } +``` + +### MODEL: membershipTypesModule + +Access: `db.membershipTypesModule` + +``` +METHODS: + db.membershipTypesModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.membershipTypesModule.findOne({ where: { id }, select }) + db.membershipTypesModule.create({ data: { databaseId, schemaId, tableId, tableName }, select }) + db.membershipTypesModule.update({ where: { id }, data, select }) + db.membershipTypesModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + schemaId: string + tableId: string + tableName: string + +EDITABLE FIELDS: + databaseId: string + schemaId: string + tableId: string + tableName: string + +OUTPUT: Promise + findMany: [{ id, databaseId, schemaId, tableId, tableName }] + findOne: { id, databaseId, schemaId, tableId, tableName } + create: { id, databaseId, schemaId, tableId, tableName } + update: { id, databaseId, schemaId, tableId, tableName } + delete: { id } +``` + +### MODEL: membershipsModule + +Access: `db.membershipsModule` + +``` +METHODS: + db.membershipsModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.membershipsModule.findOne({ where: { id }, select }) + 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 }) + db.membershipsModule.update({ where: { id }, data, select }) + db.membershipsModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + 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 + +OUTPUT: Promise + findMany: [{ id, 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 }] + findOne: { id, 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 } + create: { id, 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 } + update: { id, 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 } + delete: { id } +``` + +### MODEL: permissionsModule + +Access: `db.permissionsModule` + +``` +METHODS: + db.permissionsModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.permissionsModule.findOne({ where: { id }, select }) + db.permissionsModule.create({ data: { databaseId, schemaId, privateSchemaId, tableId, tableName, defaultTableId, defaultTableName, bitlen, membershipType, entityTableId, actorTableId, prefix, getPaddedMask, getMask, getByMask, getMaskByName }, select }) + db.permissionsModule.update({ where: { id }, data, select }) + db.permissionsModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + 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 + +OUTPUT: Promise + findMany: [{ id, databaseId, schemaId, privateSchemaId, tableId, tableName, defaultTableId, defaultTableName, bitlen, membershipType, entityTableId, actorTableId, prefix, getPaddedMask, getMask, getByMask, getMaskByName }] + findOne: { id, databaseId, schemaId, privateSchemaId, tableId, tableName, defaultTableId, defaultTableName, bitlen, membershipType, entityTableId, actorTableId, prefix, getPaddedMask, getMask, getByMask, getMaskByName } + create: { id, databaseId, schemaId, privateSchemaId, tableId, tableName, defaultTableId, defaultTableName, bitlen, membershipType, entityTableId, actorTableId, prefix, getPaddedMask, getMask, getByMask, getMaskByName } + update: { id, databaseId, schemaId, privateSchemaId, tableId, tableName, defaultTableId, defaultTableName, bitlen, membershipType, entityTableId, actorTableId, prefix, getPaddedMask, getMask, getByMask, getMaskByName } + delete: { id } +``` + +### MODEL: phoneNumbersModule + +Access: `db.phoneNumbersModule` + +``` +METHODS: + db.phoneNumbersModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.phoneNumbersModule.findOne({ where: { id }, select }) + db.phoneNumbersModule.create({ data: { databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName }, select }) + db.phoneNumbersModule.update({ where: { id }, data, select }) + db.phoneNumbersModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + schemaId: string + privateSchemaId: string + tableId: string + ownerTableId: string + tableName: string + +EDITABLE FIELDS: + databaseId: string + schemaId: string + privateSchemaId: string + tableId: string + ownerTableId: string + tableName: string + +OUTPUT: Promise + findMany: [{ id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName }] + findOne: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName } + create: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName } + update: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName } + delete: { id } +``` + +### MODEL: profilesModule + +Access: `db.profilesModule` + +``` +METHODS: + db.profilesModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.profilesModule.findOne({ where: { id }, select }) + db.profilesModule.create({ data: { databaseId, schemaId, privateSchemaId, tableId, tableName, profilePermissionsTableId, profilePermissionsTableName, profileGrantsTableId, profileGrantsTableName, profileDefinitionGrantsTableId, profileDefinitionGrantsTableName, bitlen, membershipType, entityTableId, actorTableId, permissionsTableId, membershipsTableId, prefix }, select }) + db.profilesModule.update({ where: { id }, data, select }) + db.profilesModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + 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 + +OUTPUT: Promise + findMany: [{ id, databaseId, schemaId, privateSchemaId, tableId, tableName, profilePermissionsTableId, profilePermissionsTableName, profileGrantsTableId, profileGrantsTableName, profileDefinitionGrantsTableId, profileDefinitionGrantsTableName, bitlen, membershipType, entityTableId, actorTableId, permissionsTableId, membershipsTableId, prefix }] + findOne: { id, databaseId, schemaId, privateSchemaId, tableId, tableName, profilePermissionsTableId, profilePermissionsTableName, profileGrantsTableId, profileGrantsTableName, profileDefinitionGrantsTableId, profileDefinitionGrantsTableName, bitlen, membershipType, entityTableId, actorTableId, permissionsTableId, membershipsTableId, prefix } + create: { id, databaseId, schemaId, privateSchemaId, tableId, tableName, profilePermissionsTableId, profilePermissionsTableName, profileGrantsTableId, profileGrantsTableName, profileDefinitionGrantsTableId, profileDefinitionGrantsTableName, bitlen, membershipType, entityTableId, actorTableId, permissionsTableId, membershipsTableId, prefix } + update: { id, databaseId, schemaId, privateSchemaId, tableId, tableName, profilePermissionsTableId, profilePermissionsTableName, profileGrantsTableId, profileGrantsTableName, profileDefinitionGrantsTableId, profileDefinitionGrantsTableName, bitlen, membershipType, entityTableId, actorTableId, permissionsTableId, membershipsTableId, prefix } + delete: { id } +``` + +### MODEL: rlsModule + +Access: `db.rlsModule` + +``` +METHODS: + db.rlsModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.rlsModule.findOne({ where: { id }, select }) + db.rlsModule.create({ data: { databaseId, apiId, schemaId, privateSchemaId, sessionCredentialsTableId, sessionsTableId, usersTableId, authenticate, authenticateStrict, currentRole, currentRoleId }, select }) + db.rlsModule.update({ where: { id }, data, select }) + db.rlsModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + apiId: string + schemaId: string + privateSchemaId: string + sessionCredentialsTableId: string + sessionsTableId: string + usersTableId: string + authenticate: string + authenticateStrict: string + currentRole: string + currentRoleId: string + +EDITABLE FIELDS: + databaseId: string + apiId: string + schemaId: string + privateSchemaId: string + sessionCredentialsTableId: string + sessionsTableId: string + usersTableId: string + authenticate: string + authenticateStrict: string + currentRole: string + currentRoleId: string + +OUTPUT: Promise + findMany: [{ id, databaseId, apiId, schemaId, privateSchemaId, sessionCredentialsTableId, sessionsTableId, usersTableId, authenticate, authenticateStrict, currentRole, currentRoleId }] + findOne: { id, databaseId, apiId, schemaId, privateSchemaId, sessionCredentialsTableId, sessionsTableId, usersTableId, authenticate, authenticateStrict, currentRole, currentRoleId } + create: { id, databaseId, apiId, schemaId, privateSchemaId, sessionCredentialsTableId, sessionsTableId, usersTableId, authenticate, authenticateStrict, currentRole, currentRoleId } + update: { id, databaseId, apiId, schemaId, privateSchemaId, sessionCredentialsTableId, sessionsTableId, usersTableId, authenticate, authenticateStrict, currentRole, currentRoleId } + delete: { id } +``` + +### MODEL: secretsModule + +Access: `db.secretsModule` + +``` +METHODS: + db.secretsModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.secretsModule.findOne({ where: { id }, select }) + db.secretsModule.create({ data: { databaseId, schemaId, tableId, tableName }, select }) + db.secretsModule.update({ where: { id }, data, select }) + db.secretsModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + schemaId: string + tableId: string + tableName: string + +EDITABLE FIELDS: + databaseId: string + schemaId: string + tableId: string + tableName: string + +OUTPUT: Promise + findMany: [{ id, databaseId, schemaId, tableId, tableName }] + findOne: { id, databaseId, schemaId, tableId, tableName } + create: { id, databaseId, schemaId, tableId, tableName } + update: { id, databaseId, schemaId, tableId, tableName } + delete: { id } +``` + +### MODEL: sessionsModule + +Access: `db.sessionsModule` + +``` +METHODS: + db.sessionsModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.sessionsModule.findOne({ where: { id }, select }) + db.sessionsModule.create({ data: { databaseId, schemaId, sessionsTableId, sessionCredentialsTableId, authSettingsTableId, usersTableId, sessionsDefaultExpiration, sessionsTable, sessionCredentialsTable, authSettingsTable }, select }) + db.sessionsModule.update({ where: { id }, data, select }) + db.sessionsModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + schemaId: string + sessionsTableId: string + sessionCredentialsTableId: string + authSettingsTableId: string + usersTableId: string + sessionsDefaultExpiration: string + sessionsTable: string + sessionCredentialsTable: string + authSettingsTable: string + +EDITABLE FIELDS: + databaseId: string + schemaId: string + sessionsTableId: string + sessionCredentialsTableId: string + authSettingsTableId: string + usersTableId: string + sessionsDefaultExpiration: string + sessionsTable: string + sessionCredentialsTable: string + authSettingsTable: string + +OUTPUT: Promise + findMany: [{ id, databaseId, schemaId, sessionsTableId, sessionCredentialsTableId, authSettingsTableId, usersTableId, sessionsDefaultExpiration, sessionsTable, sessionCredentialsTable, authSettingsTable }] + findOne: { id, databaseId, schemaId, sessionsTableId, sessionCredentialsTableId, authSettingsTableId, usersTableId, sessionsDefaultExpiration, sessionsTable, sessionCredentialsTable, authSettingsTable } + create: { id, databaseId, schemaId, sessionsTableId, sessionCredentialsTableId, authSettingsTableId, usersTableId, sessionsDefaultExpiration, sessionsTable, sessionCredentialsTable, authSettingsTable } + update: { id, databaseId, schemaId, sessionsTableId, sessionCredentialsTableId, authSettingsTableId, usersTableId, sessionsDefaultExpiration, sessionsTable, sessionCredentialsTable, authSettingsTable } + delete: { id } +``` + +### MODEL: userAuthModule + +Access: `db.userAuthModule` + +``` +METHODS: + db.userAuthModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.userAuthModule.findOne({ where: { id }, select }) + 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 }) + db.userAuthModule.update({ where: { id }, data, select }) + db.userAuthModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + 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 + +OUTPUT: Promise + findMany: [{ id, 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 }] + findOne: { id, 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 } + create: { id, 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 } + update: { id, 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 } + delete: { id } +``` + +### MODEL: usersModule + +Access: `db.usersModule` + +``` +METHODS: + db.usersModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.usersModule.findOne({ where: { id }, select }) + db.usersModule.create({ data: { databaseId, schemaId, tableId, tableName, typeTableId, typeTableName }, select }) + db.usersModule.update({ where: { id }, data, select }) + db.usersModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + schemaId: string + tableId: string + tableName: string + typeTableId: string + typeTableName: string + +EDITABLE FIELDS: + databaseId: string + schemaId: string + tableId: string + tableName: string + typeTableId: string + typeTableName: string + +OUTPUT: Promise + findMany: [{ id, databaseId, schemaId, tableId, tableName, typeTableId, typeTableName }] + findOne: { id, databaseId, schemaId, tableId, tableName, typeTableId, typeTableName } + create: { id, databaseId, schemaId, tableId, tableName, typeTableId, typeTableName } + update: { id, databaseId, schemaId, tableId, tableName, typeTableId, typeTableName } + delete: { id } +``` + +### MODEL: uuidModule + +Access: `db.uuidModule` + +``` +METHODS: + db.uuidModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.uuidModule.findOne({ where: { id }, select }) + db.uuidModule.create({ data: { databaseId, schemaId, uuidFunction, uuidSeed }, select }) + db.uuidModule.update({ where: { id }, data, select }) + db.uuidModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseId: string + schemaId: string + uuidFunction: string + uuidSeed: string + +EDITABLE FIELDS: + databaseId: string + schemaId: string + uuidFunction: string + uuidSeed: string + +OUTPUT: Promise + findMany: [{ id, databaseId, schemaId, uuidFunction, uuidSeed }] + findOne: { id, databaseId, schemaId, uuidFunction, uuidSeed } + create: { id, databaseId, schemaId, uuidFunction, uuidSeed } + update: { id, databaseId, schemaId, uuidFunction, uuidSeed } + delete: { id } +``` + +### MODEL: databaseProvisionModule + +Access: `db.databaseProvisionModule` + +``` +METHODS: + db.databaseProvisionModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.databaseProvisionModule.findOne({ where: { id }, select }) + db.databaseProvisionModule.create({ data: { databaseName, ownerId, subdomain, domain, modules, options, bootstrapUser, status, errorMessage, databaseId, completedAt }, select }) + db.databaseProvisionModule.update({ where: { id }, data, select }) + db.databaseProvisionModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + databaseName: string + ownerId: string + subdomain: string + domain: string + modules: string[] + options: unknown + bootstrapUser: boolean + status: string + errorMessage: string + databaseId: string + createdAt: string + updatedAt: string + completedAt: string + +EDITABLE FIELDS: + databaseName: string + ownerId: string + subdomain: string + domain: string + modules: string[] + options: unknown + bootstrapUser: boolean + status: string + errorMessage: string + databaseId: string + completedAt: string + +OUTPUT: Promise + findMany: [{ id, databaseName, ownerId, subdomain, domain, modules, options, bootstrapUser, status, errorMessage, databaseId, createdAt, updatedAt, completedAt }] + findOne: { id, databaseName, ownerId, subdomain, domain, modules, options, bootstrapUser, status, errorMessage, databaseId, createdAt, updatedAt, completedAt } + create: { id, databaseName, ownerId, subdomain, domain, modules, options, bootstrapUser, status, errorMessage, databaseId, createdAt, updatedAt, completedAt } + update: { id, databaseName, ownerId, subdomain, domain, modules, options, bootstrapUser, status, errorMessage, databaseId, createdAt, updatedAt, completedAt } + delete: { id } +``` + +### MODEL: appAdminGrant + +Access: `db.appAdminGrant` + +``` +METHODS: + db.appAdminGrant.findMany({ select, where?, orderBy?, first?, offset? }) + db.appAdminGrant.findOne({ where: { id }, select }) + db.appAdminGrant.create({ data: { isGrant, actorId, grantorId }, select }) + db.appAdminGrant.update({ where: { id }, data, select }) + db.appAdminGrant.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + isGrant: boolean + actorId: string + grantorId: string + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + isGrant: boolean + actorId: string + grantorId: string + +OUTPUT: Promise + findMany: [{ id, isGrant, actorId, grantorId, createdAt, updatedAt }] + findOne: { id, isGrant, actorId, grantorId, createdAt, updatedAt } + create: { id, isGrant, actorId, grantorId, createdAt, updatedAt } + update: { id, isGrant, actorId, grantorId, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: appOwnerGrant + +Access: `db.appOwnerGrant` + +``` +METHODS: + db.appOwnerGrant.findMany({ select, where?, orderBy?, first?, offset? }) + db.appOwnerGrant.findOne({ where: { id }, select }) + db.appOwnerGrant.create({ data: { isGrant, actorId, grantorId }, select }) + db.appOwnerGrant.update({ where: { id }, data, select }) + db.appOwnerGrant.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + isGrant: boolean + actorId: string + grantorId: string + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + isGrant: boolean + actorId: string + grantorId: string + +OUTPUT: Promise + findMany: [{ id, isGrant, actorId, grantorId, createdAt, updatedAt }] + findOne: { id, isGrant, actorId, grantorId, createdAt, updatedAt } + create: { id, isGrant, actorId, grantorId, createdAt, updatedAt } + update: { id, isGrant, actorId, grantorId, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: appGrant + +Access: `db.appGrant` + +``` +METHODS: + db.appGrant.findMany({ select, where?, orderBy?, first?, offset? }) + db.appGrant.findOne({ where: { id }, select }) + db.appGrant.create({ data: { permissions, isGrant, actorId, grantorId }, select }) + db.appGrant.update({ where: { id }, data, select }) + db.appGrant.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + permissions: string + isGrant: boolean + actorId: string + grantorId: string + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + permissions: string + isGrant: boolean + actorId: string + grantorId: string + +OUTPUT: Promise + findMany: [{ id, permissions, isGrant, actorId, grantorId, createdAt, updatedAt }] + findOne: { id, permissions, isGrant, actorId, grantorId, createdAt, updatedAt } + create: { id, permissions, isGrant, actorId, grantorId, createdAt, updatedAt } + update: { id, permissions, isGrant, actorId, grantorId, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: orgMembership + +Access: `db.orgMembership` + +``` +METHODS: + db.orgMembership.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgMembership.findOne({ where: { id }, select }) + db.orgMembership.create({ data: { createdBy, updatedBy, isApproved, isBanned, isDisabled, isActive, isOwner, isAdmin, permissions, granted, actorId, entityId }, select }) + db.orgMembership.update({ where: { id }, data, select }) + db.orgMembership.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + createdBy: string + updatedBy: string + isApproved: boolean + isBanned: boolean + isDisabled: boolean + isActive: boolean + isOwner: boolean + isAdmin: boolean + permissions: string + granted: string + actorId: string + entityId: string + +OUTPUT: Promise + findMany: [{ id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isActive, isOwner, isAdmin, permissions, granted, actorId, entityId }] + findOne: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isActive, isOwner, isAdmin, permissions, granted, actorId, entityId } + create: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isActive, isOwner, isAdmin, permissions, granted, actorId, entityId } + update: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isActive, isOwner, isAdmin, permissions, granted, actorId, entityId } + delete: { id } +``` + +### MODEL: orgMember + +Access: `db.orgMember` + +``` +METHODS: + db.orgMember.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgMember.findOne({ where: { id }, select }) + db.orgMember.create({ data: { isAdmin, actorId, entityId }, select }) + db.orgMember.update({ where: { id }, data, select }) + db.orgMember.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + isAdmin: boolean + actorId: string + entityId: string + +EDITABLE FIELDS: + isAdmin: boolean + actorId: string + entityId: string + +OUTPUT: Promise + findMany: [{ id, isAdmin, actorId, entityId }] + findOne: { id, isAdmin, actorId, entityId } + create: { id, isAdmin, actorId, entityId } + update: { id, isAdmin, actorId, entityId } + delete: { id } +``` + +### MODEL: orgAdminGrant + +Access: `db.orgAdminGrant` + +``` +METHODS: + db.orgAdminGrant.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgAdminGrant.findOne({ where: { id }, select }) + db.orgAdminGrant.create({ data: { isGrant, actorId, entityId, grantorId }, select }) + db.orgAdminGrant.update({ where: { id }, data, select }) + db.orgAdminGrant.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + isGrant: boolean + actorId: string + entityId: string + grantorId: string + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + isGrant: boolean + actorId: string + entityId: string + grantorId: string + +OUTPUT: Promise + findMany: [{ id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt }] + findOne: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } + create: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } + update: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: orgOwnerGrant + +Access: `db.orgOwnerGrant` + +``` +METHODS: + db.orgOwnerGrant.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgOwnerGrant.findOne({ where: { id }, select }) + db.orgOwnerGrant.create({ data: { isGrant, actorId, entityId, grantorId }, select }) + db.orgOwnerGrant.update({ where: { id }, data, select }) + db.orgOwnerGrant.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + isGrant: boolean + actorId: string + entityId: string + grantorId: string + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + isGrant: boolean + actorId: string + entityId: string + grantorId: string + +OUTPUT: Promise + findMany: [{ id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt }] + findOne: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } + create: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } + update: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: orgGrant + +Access: `db.orgGrant` + +``` +METHODS: + db.orgGrant.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgGrant.findOne({ where: { id }, select }) + db.orgGrant.create({ data: { permissions, isGrant, actorId, entityId, grantorId }, select }) + db.orgGrant.update({ where: { id }, data, select }) + db.orgGrant.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + permissions: string + isGrant: boolean + actorId: string + entityId: string + grantorId: string + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + permissions: string + isGrant: boolean + actorId: string + entityId: string + grantorId: string + +OUTPUT: Promise + findMany: [{ id, permissions, isGrant, actorId, entityId, grantorId, createdAt, updatedAt }] + findOne: { id, permissions, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } + create: { id, permissions, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } + update: { id, permissions, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: appLimit + +Access: `db.appLimit` + +``` +METHODS: + db.appLimit.findMany({ select, where?, orderBy?, first?, offset? }) + db.appLimit.findOne({ where: { id }, select }) + db.appLimit.create({ data: { name, actorId, num, max }, select }) + db.appLimit.update({ where: { id }, data, select }) + db.appLimit.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + name: string + actorId: string + num: number + max: number + +EDITABLE FIELDS: + name: string + actorId: string + num: number + max: number + +OUTPUT: Promise + findMany: [{ id, name, actorId, num, max }] + findOne: { id, name, actorId, num, max } + create: { id, name, actorId, num, max } + update: { id, name, actorId, num, max } + delete: { id } +``` + +### MODEL: orgLimit + +Access: `db.orgLimit` + +``` +METHODS: + db.orgLimit.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgLimit.findOne({ where: { id }, select }) + db.orgLimit.create({ data: { name, actorId, num, max, entityId }, select }) + db.orgLimit.update({ where: { id }, data, select }) + db.orgLimit.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + name: string + actorId: string + num: number + max: number + entityId: string + +EDITABLE FIELDS: + name: string + actorId: string + num: number + max: number + entityId: string + +OUTPUT: Promise + findMany: [{ id, name, actorId, num, max, entityId }] + findOne: { id, name, actorId, num, max, entityId } + create: { id, name, actorId, num, max, entityId } + update: { id, name, actorId, num, max, entityId } + delete: { id } +``` + +### MODEL: appStep + +Access: `db.appStep` + +``` +METHODS: + db.appStep.findMany({ select, where?, orderBy?, first?, offset? }) + db.appStep.findOne({ where: { id }, select }) + db.appStep.create({ data: { actorId, name, count }, select }) + db.appStep.update({ where: { id }, data, select }) + db.appStep.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + actorId: string + name: string + count: number + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + actorId: string + name: string + count: number + +OUTPUT: Promise + findMany: [{ id, actorId, name, count, createdAt, updatedAt }] + findOne: { id, actorId, name, count, createdAt, updatedAt } + create: { id, actorId, name, count, createdAt, updatedAt } + update: { id, actorId, name, count, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: appAchievement + +Access: `db.appAchievement` + +``` +METHODS: + db.appAchievement.findMany({ select, where?, orderBy?, first?, offset? }) + db.appAchievement.findOne({ where: { id }, select }) + db.appAchievement.create({ data: { actorId, name, count }, select }) + db.appAchievement.update({ where: { id }, data, select }) + db.appAchievement.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + actorId: string + name: string + count: number + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + actorId: string + name: string + count: number + +OUTPUT: Promise + findMany: [{ id, actorId, name, count, createdAt, updatedAt }] + findOne: { id, actorId, name, count, createdAt, updatedAt } + create: { id, actorId, name, count, createdAt, updatedAt } + update: { id, actorId, name, count, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: invite + +Access: `db.invite` + +``` +METHODS: + db.invite.findMany({ select, where?, orderBy?, first?, offset? }) + db.invite.findOne({ where: { id }, select }) + db.invite.create({ data: { email, senderId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt }, select }) + db.invite.update({ where: { id }, data, select }) + db.invite.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + email: ConstructiveInternalTypeEmail + senderId: string + inviteToken: string + inviteValid: boolean + inviteLimit: number + inviteCount: number + multiple: boolean + data: unknown + expiresAt: string + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + email: ConstructiveInternalTypeEmail + senderId: string + inviteToken: string + inviteValid: boolean + inviteLimit: number + inviteCount: number + multiple: boolean + data: unknown + expiresAt: string + +OUTPUT: Promise + findMany: [{ id, email, senderId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt }] + findOne: { id, email, senderId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt } + create: { id, email, senderId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt } + update: { id, email, senderId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: claimedInvite + +Access: `db.claimedInvite` + +``` +METHODS: + db.claimedInvite.findMany({ select, where?, orderBy?, first?, offset? }) + db.claimedInvite.findOne({ where: { id }, select }) + db.claimedInvite.create({ data: { data, senderId, receiverId }, select }) + db.claimedInvite.update({ where: { id }, data, select }) + db.claimedInvite.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + data: unknown + senderId: string + receiverId: string + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + data: unknown + senderId: string + receiverId: string + +OUTPUT: Promise + findMany: [{ id, data, senderId, receiverId, createdAt, updatedAt }] + findOne: { id, data, senderId, receiverId, createdAt, updatedAt } + create: { id, data, senderId, receiverId, createdAt, updatedAt } + update: { id, data, senderId, receiverId, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: orgInvite + +Access: `db.orgInvite` + +``` +METHODS: + db.orgInvite.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgInvite.findOne({ where: { id }, select }) + db.orgInvite.create({ data: { email, senderId, receiverId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, entityId }, select }) + db.orgInvite.update({ where: { id }, data, select }) + db.orgInvite.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + email: ConstructiveInternalTypeEmail + senderId: string + receiverId: string + inviteToken: string + inviteValid: boolean + inviteLimit: number + inviteCount: number + multiple: boolean + data: unknown + expiresAt: string + entityId: string + +OUTPUT: Promise + findMany: [{ id, email, senderId, receiverId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt, entityId }] + findOne: { id, email, senderId, receiverId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt, entityId } + create: { id, email, senderId, receiverId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt, entityId } + update: { id, email, senderId, receiverId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt, entityId } + delete: { id } +``` + +### MODEL: orgClaimedInvite + +Access: `db.orgClaimedInvite` + +``` +METHODS: + db.orgClaimedInvite.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgClaimedInvite.findOne({ where: { id }, select }) + db.orgClaimedInvite.create({ data: { data, senderId, receiverId, entityId }, select }) + db.orgClaimedInvite.update({ where: { id }, data, select }) + db.orgClaimedInvite.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + data: unknown + senderId: string + receiverId: string + createdAt: string + updatedAt: string + entityId: string + +EDITABLE FIELDS: + data: unknown + senderId: string + receiverId: string + entityId: string + +OUTPUT: Promise + findMany: [{ id, data, senderId, receiverId, createdAt, updatedAt, entityId }] + findOne: { id, data, senderId, receiverId, createdAt, updatedAt, entityId } + create: { id, data, senderId, receiverId, createdAt, updatedAt, entityId } + update: { id, data, senderId, receiverId, createdAt, updatedAt, entityId } + delete: { id } +``` + +### MODEL: appPermissionDefault + +Access: `db.appPermissionDefault` + +``` +METHODS: + db.appPermissionDefault.findMany({ select, where?, orderBy?, first?, offset? }) + db.appPermissionDefault.findOne({ where: { id }, select }) + db.appPermissionDefault.create({ data: { permissions }, select }) + db.appPermissionDefault.update({ where: { id }, data, select }) + db.appPermissionDefault.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + permissions: string + +EDITABLE FIELDS: + permissions: string + +OUTPUT: Promise + findMany: [{ id, permissions }] + findOne: { id, permissions } + create: { id, permissions } + update: { id, permissions } + delete: { id } +``` + +### MODEL: ref + +Access: `db.ref` + +``` +METHODS: + db.ref.findMany({ select, where?, orderBy?, first?, offset? }) + db.ref.findOne({ where: { id }, select }) + db.ref.create({ data: { name, databaseId, storeId, commitId }, select }) + db.ref.update({ where: { id }, data, select }) + db.ref.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + name: string + databaseId: string + storeId: string + commitId: string + +EDITABLE FIELDS: + name: string + databaseId: string + storeId: string + commitId: string + +OUTPUT: Promise + findMany: [{ id, name, databaseId, storeId, commitId }] + findOne: { id, name, databaseId, storeId, commitId } + create: { id, name, databaseId, storeId, commitId } + update: { id, name, databaseId, storeId, commitId } + delete: { id } +``` + +### MODEL: store + +Access: `db.store` + +``` +METHODS: + db.store.findMany({ select, where?, orderBy?, first?, offset? }) + db.store.findOne({ where: { id }, select }) + db.store.create({ data: { name, databaseId, hash }, select }) + db.store.update({ where: { id }, data, select }) + db.store.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + name: string + databaseId: string + hash: string + createdAt: string + +EDITABLE FIELDS: + name: string + databaseId: string + hash: string + +OUTPUT: Promise + findMany: [{ id, name, databaseId, hash, createdAt }] + findOne: { id, name, databaseId, hash, createdAt } + create: { id, name, databaseId, hash, createdAt } + update: { id, name, databaseId, hash, createdAt } + delete: { id } +``` + +### MODEL: roleType + +Access: `db.roleType` + +``` +METHODS: + db.roleType.findMany({ select, where?, orderBy?, first?, offset? }) + db.roleType.findOne({ where: { id }, select }) + db.roleType.create({ data: { name }, select }) + db.roleType.update({ where: { id }, data, select }) + db.roleType.delete({ where: { id } }) + +FIELDS: + id: number (primary key) + name: string + +EDITABLE FIELDS: + name: string + +OUTPUT: Promise + findMany: [{ id, name }] + findOne: { id, name } + create: { id, name } + update: { id, name } + delete: { id } +``` + +### MODEL: orgPermissionDefault + +Access: `db.orgPermissionDefault` + +``` +METHODS: + db.orgPermissionDefault.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgPermissionDefault.findOne({ where: { id }, select }) + db.orgPermissionDefault.create({ data: { permissions, entityId }, select }) + db.orgPermissionDefault.update({ where: { id }, data, select }) + db.orgPermissionDefault.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + permissions: string + entityId: string + +EDITABLE FIELDS: + permissions: string + entityId: string + +OUTPUT: Promise + findMany: [{ id, permissions, entityId }] + findOne: { id, permissions, entityId } + create: { id, permissions, entityId } + update: { id, permissions, entityId } + delete: { id } +``` + +### MODEL: appLimitDefault + +Access: `db.appLimitDefault` + +``` +METHODS: + db.appLimitDefault.findMany({ select, where?, orderBy?, first?, offset? }) + db.appLimitDefault.findOne({ where: { id }, select }) + db.appLimitDefault.create({ data: { name, max }, select }) + db.appLimitDefault.update({ where: { id }, data, select }) + db.appLimitDefault.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + name: string + max: number + +EDITABLE FIELDS: + name: string + max: number + +OUTPUT: Promise + findMany: [{ id, name, max }] + findOne: { id, name, max } + create: { id, name, max } + update: { id, name, max } + delete: { id } +``` + +### MODEL: orgLimitDefault + +Access: `db.orgLimitDefault` + +``` +METHODS: + db.orgLimitDefault.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgLimitDefault.findOne({ where: { id }, select }) + db.orgLimitDefault.create({ data: { name, max }, select }) + db.orgLimitDefault.update({ where: { id }, data, select }) + db.orgLimitDefault.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + name: string + max: number + +EDITABLE FIELDS: + name: string + max: number + +OUTPUT: Promise + findMany: [{ id, name, max }] + findOne: { id, name, max } + create: { id, name, max } + update: { id, name, max } + delete: { id } +``` + +### MODEL: cryptoAddress + +Access: `db.cryptoAddress` + +``` +METHODS: + db.cryptoAddress.findMany({ select, where?, orderBy?, first?, offset? }) + db.cryptoAddress.findOne({ where: { id }, select }) + db.cryptoAddress.create({ data: { ownerId, address, isVerified, isPrimary }, select }) + db.cryptoAddress.update({ where: { id }, data, select }) + db.cryptoAddress.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + ownerId: string + address: string + isVerified: boolean + isPrimary: boolean + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + ownerId: string + address: string + isVerified: boolean + isPrimary: boolean + +OUTPUT: Promise + findMany: [{ id, ownerId, address, isVerified, isPrimary, createdAt, updatedAt }] + findOne: { id, ownerId, address, isVerified, isPrimary, createdAt, updatedAt } + create: { id, ownerId, address, isVerified, isPrimary, createdAt, updatedAt } + update: { id, ownerId, address, isVerified, isPrimary, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: membershipType + +Access: `db.membershipType` + +``` +METHODS: + db.membershipType.findMany({ select, where?, orderBy?, first?, offset? }) + db.membershipType.findOne({ where: { id }, select }) + db.membershipType.create({ data: { name, description, prefix }, select }) + db.membershipType.update({ where: { id }, data, select }) + db.membershipType.delete({ where: { id } }) + +FIELDS: + id: number (primary key) + name: string + description: string + prefix: string + +EDITABLE FIELDS: + name: string + description: string + prefix: string + +OUTPUT: Promise + findMany: [{ id, name, description, prefix }] + findOne: { id, name, description, prefix } + create: { id, name, description, prefix } + update: { id, name, description, prefix } + delete: { id } +``` + +### MODEL: connectedAccount + +Access: `db.connectedAccount` + +``` +METHODS: + db.connectedAccount.findMany({ select, where?, orderBy?, first?, offset? }) + db.connectedAccount.findOne({ where: { id }, select }) + db.connectedAccount.create({ data: { ownerId, service, identifier, details, isVerified }, select }) + db.connectedAccount.update({ where: { id }, data, select }) + db.connectedAccount.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + ownerId: string + service: string + identifier: string + details: unknown + isVerified: boolean + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + ownerId: string + service: string + identifier: string + details: unknown + isVerified: boolean + +OUTPUT: Promise + findMany: [{ id, ownerId, service, identifier, details, isVerified, createdAt, updatedAt }] + findOne: { id, ownerId, service, identifier, details, isVerified, createdAt, updatedAt } + create: { id, ownerId, service, identifier, details, isVerified, createdAt, updatedAt } + update: { id, ownerId, service, identifier, details, isVerified, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: phoneNumber + +Access: `db.phoneNumber` + +``` +METHODS: + db.phoneNumber.findMany({ select, where?, orderBy?, first?, offset? }) + db.phoneNumber.findOne({ where: { id }, select }) + db.phoneNumber.create({ data: { ownerId, cc, number, isVerified, isPrimary }, select }) + db.phoneNumber.update({ where: { id }, data, select }) + db.phoneNumber.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + ownerId: string + cc: string + number: string + isVerified: boolean + isPrimary: boolean + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + ownerId: string + cc: string + number: string + isVerified: boolean + isPrimary: boolean + +OUTPUT: Promise + findMany: [{ id, ownerId, cc, number, isVerified, isPrimary, createdAt, updatedAt }] + findOne: { id, ownerId, cc, number, isVerified, isPrimary, createdAt, updatedAt } + create: { id, ownerId, cc, number, isVerified, isPrimary, createdAt, updatedAt } + update: { id, ownerId, cc, number, isVerified, isPrimary, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: appMembershipDefault + +Access: `db.appMembershipDefault` + +``` +METHODS: + db.appMembershipDefault.findMany({ select, where?, orderBy?, first?, offset? }) + db.appMembershipDefault.findOne({ where: { id }, select }) + db.appMembershipDefault.create({ data: { createdBy, updatedBy, isApproved, isVerified }, select }) + db.appMembershipDefault.update({ where: { id }, data, select }) + db.appMembershipDefault.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + createdAt: string + updatedAt: string + createdBy: string + updatedBy: string + isApproved: boolean + isVerified: boolean + +EDITABLE FIELDS: + createdBy: string + updatedBy: string + isApproved: boolean + isVerified: boolean + +OUTPUT: Promise + findMany: [{ id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isVerified }] + findOne: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isVerified } + create: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isVerified } + update: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isVerified } + delete: { id } +``` + +### MODEL: nodeTypeRegistry + +Access: `db.nodeTypeRegistry` + +``` +METHODS: + db.nodeTypeRegistry.findMany({ select, where?, orderBy?, first?, offset? }) + db.nodeTypeRegistry.findOne({ where: { name }, select }) + db.nodeTypeRegistry.create({ data: { slug, category, displayName, description, parameterSchema, tags }, select }) + db.nodeTypeRegistry.update({ where: { name }, data, select }) + db.nodeTypeRegistry.delete({ where: { name } }) + +FIELDS: + name: string (primary key) + slug: string + category: string + displayName: string + description: string + parameterSchema: unknown + tags: string[] + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + slug: string + category: string + displayName: string + description: string + parameterSchema: unknown + tags: string[] + +OUTPUT: Promise + findMany: [{ name, slug, category, displayName, description, parameterSchema, tags, createdAt, updatedAt }] + findOne: { name, slug, category, displayName, description, parameterSchema, tags, createdAt, updatedAt } + create: { name, slug, category, displayName, description, parameterSchema, tags, createdAt, updatedAt } + update: { name, slug, category, displayName, description, parameterSchema, tags, createdAt, updatedAt } + delete: { name } +``` + +### MODEL: commit + +Access: `db.commit` + +``` +METHODS: + db.commit.findMany({ select, where?, orderBy?, first?, offset? }) + db.commit.findOne({ where: { id }, select }) + db.commit.create({ data: { message, databaseId, storeId, parentIds, authorId, committerId, treeId, date }, select }) + db.commit.update({ where: { id }, data, select }) + db.commit.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + message: string + databaseId: string + storeId: string + parentIds: string[] + authorId: string + committerId: string + treeId: string + date: string + +EDITABLE FIELDS: + message: string + databaseId: string + storeId: string + parentIds: string[] + authorId: string + committerId: string + treeId: string + date: string + +OUTPUT: Promise + findMany: [{ id, message, databaseId, storeId, parentIds, authorId, committerId, treeId, date }] + findOne: { id, message, databaseId, storeId, parentIds, authorId, committerId, treeId, date } + create: { id, message, databaseId, storeId, parentIds, authorId, committerId, treeId, date } + update: { id, message, databaseId, storeId, parentIds, authorId, committerId, treeId, date } + delete: { id } +``` + +### MODEL: orgMembershipDefault + +Access: `db.orgMembershipDefault` + +``` +METHODS: + db.orgMembershipDefault.findMany({ select, where?, orderBy?, first?, offset? }) + db.orgMembershipDefault.findOne({ where: { id }, select }) + db.orgMembershipDefault.create({ data: { createdBy, updatedBy, isApproved, entityId, deleteMemberCascadeGroups, createGroupsCascadeMembers }, select }) + db.orgMembershipDefault.update({ where: { id }, data, select }) + db.orgMembershipDefault.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + createdAt: string + updatedAt: string + createdBy: string + updatedBy: string + isApproved: boolean + entityId: string + deleteMemberCascadeGroups: boolean + createGroupsCascadeMembers: boolean + +EDITABLE FIELDS: + createdBy: string + updatedBy: string + isApproved: boolean + entityId: string + deleteMemberCascadeGroups: boolean + createGroupsCascadeMembers: boolean + +OUTPUT: Promise + findMany: [{ id, createdAt, updatedAt, createdBy, updatedBy, isApproved, entityId, deleteMemberCascadeGroups, createGroupsCascadeMembers }] + findOne: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, entityId, deleteMemberCascadeGroups, createGroupsCascadeMembers } + create: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, entityId, deleteMemberCascadeGroups, createGroupsCascadeMembers } + update: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, entityId, deleteMemberCascadeGroups, createGroupsCascadeMembers } + delete: { id } +``` + +### MODEL: email + +Access: `db.email` + +``` +METHODS: + db.email.findMany({ select, where?, orderBy?, first?, offset? }) + db.email.findOne({ where: { id }, select }) + db.email.create({ data: { ownerId, email, isVerified, isPrimary }, select }) + db.email.update({ where: { id }, data, select }) + db.email.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + ownerId: string + email: ConstructiveInternalTypeEmail + isVerified: boolean + isPrimary: boolean + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + ownerId: string + email: ConstructiveInternalTypeEmail + isVerified: boolean + isPrimary: boolean + +OUTPUT: Promise + findMany: [{ id, ownerId, email, isVerified, isPrimary, createdAt, updatedAt }] + findOne: { id, ownerId, email, isVerified, isPrimary, createdAt, updatedAt } + create: { id, ownerId, email, isVerified, isPrimary, createdAt, updatedAt } + update: { id, ownerId, email, isVerified, isPrimary, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: auditLog + +Access: `db.auditLog` + +``` +METHODS: + db.auditLog.findMany({ select, where?, orderBy?, first?, offset? }) + db.auditLog.findOne({ where: { id }, select }) + db.auditLog.create({ data: { event, actorId, origin, userAgent, ipAddress, success }, select }) + db.auditLog.update({ where: { id }, data, select }) + db.auditLog.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + event: string + actorId: string + origin: ConstructiveInternalTypeOrigin + userAgent: string + ipAddress: string + success: boolean + createdAt: string + +EDITABLE FIELDS: + event: string + actorId: string + origin: ConstructiveInternalTypeOrigin + userAgent: string + ipAddress: string + success: boolean + +OUTPUT: Promise + findMany: [{ id, event, actorId, origin, userAgent, ipAddress, success, createdAt }] + findOne: { id, event, actorId, origin, userAgent, ipAddress, success, createdAt } + create: { id, event, actorId, origin, userAgent, ipAddress, success, createdAt } + update: { id, event, actorId, origin, userAgent, ipAddress, success, createdAt } + delete: { id } +``` + +### MODEL: appLevel + +Access: `db.appLevel` + +``` +METHODS: + db.appLevel.findMany({ select, where?, orderBy?, first?, offset? }) + db.appLevel.findOne({ where: { id }, select }) + db.appLevel.create({ data: { name, description, image, ownerId }, select }) + db.appLevel.update({ where: { id }, data, select }) + db.appLevel.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + name: string + description: string + image: ConstructiveInternalTypeImage + ownerId: string + createdAt: string + updatedAt: string + +EDITABLE FIELDS: + name: string + description: string + image: ConstructiveInternalTypeImage + ownerId: string + +OUTPUT: Promise + findMany: [{ id, name, description, image, ownerId, createdAt, updatedAt }] + findOne: { id, name, description, image, ownerId, createdAt, updatedAt } + create: { id, name, description, image, ownerId, createdAt, updatedAt } + update: { id, name, description, image, ownerId, createdAt, updatedAt } + delete: { id } +``` + +### MODEL: sqlMigration + +Access: `db.sqlMigration` + +``` +METHODS: + db.sqlMigration.findMany({ select, where?, orderBy?, first?, offset? }) + db.sqlMigration.findOne({ where: { id }, select }) + db.sqlMigration.create({ data: { name, databaseId, deploy, deps, payload, content, revert, verify, action, actionId, actorId }, select }) + db.sqlMigration.update({ where: { id }, data, select }) + db.sqlMigration.delete({ where: { id } }) + +FIELDS: + id: number (primary key) + name: string + databaseId: string + deploy: string + deps: string[] + payload: unknown + content: string + revert: string + verify: string + createdAt: string + action: string + actionId: string + actorId: string + +EDITABLE FIELDS: + name: string + databaseId: string + deploy: string + deps: string[] + payload: unknown + content: string + revert: string + verify: string + action: string + actionId: string + actorId: string + +OUTPUT: Promise + findMany: [{ id, name, databaseId, deploy, deps, payload, content, revert, verify, createdAt, action, actionId, actorId }] + findOne: { id, name, databaseId, deploy, deps, payload, content, revert, verify, createdAt, action, actionId, actorId } + create: { id, name, databaseId, deploy, deps, payload, content, revert, verify, createdAt, action, actionId, actorId } + update: { id, name, databaseId, deploy, deps, payload, content, revert, verify, createdAt, action, actionId, actorId } + delete: { id } +``` + +### MODEL: astMigration + +Access: `db.astMigration` + +``` +METHODS: + db.astMigration.findMany({ select, where?, orderBy?, first?, offset? }) + db.astMigration.findOne({ where: { id }, select }) + db.astMigration.create({ data: { databaseId, name, requires, payload, deploys, deploy, revert, verify, action, actionId, actorId }, select }) + db.astMigration.update({ where: { id }, data, select }) + db.astMigration.delete({ where: { id } }) + +FIELDS: + id: number (primary key) + databaseId: string + name: string + requires: string[] + payload: unknown + deploys: string + deploy: unknown + revert: unknown + verify: unknown + createdAt: string + action: string + actionId: string + actorId: string + +EDITABLE FIELDS: + databaseId: string + name: string + requires: string[] + payload: unknown + deploys: string + deploy: unknown + revert: unknown + verify: unknown + action: string + actionId: string + actorId: string + +OUTPUT: Promise + findMany: [{ id, databaseId, name, requires, payload, deploys, deploy, revert, verify, createdAt, action, actionId, actorId }] + findOne: { id, databaseId, name, requires, payload, deploys, deploy, revert, verify, createdAt, action, actionId, actorId } + create: { id, databaseId, name, requires, payload, deploys, deploy, revert, verify, createdAt, action, actionId, actorId } + update: { id, databaseId, name, requires, payload, deploys, deploy, revert, verify, createdAt, action, actionId, actorId } + delete: { id } +``` + +### MODEL: appMembership + +Access: `db.appMembership` + +``` +METHODS: + db.appMembership.findMany({ select, where?, orderBy?, first?, offset? }) + db.appMembership.findOne({ where: { id }, select }) + db.appMembership.create({ data: { createdBy, updatedBy, isApproved, isBanned, isDisabled, isVerified, isActive, isOwner, isAdmin, permissions, granted, actorId }, select }) + db.appMembership.update({ where: { id }, data, select }) + db.appMembership.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + createdBy: string + updatedBy: string + isApproved: boolean + isBanned: boolean + isDisabled: boolean + isVerified: boolean + isActive: boolean + isOwner: boolean + isAdmin: boolean + permissions: string + granted: string + actorId: string + +OUTPUT: Promise + findMany: [{ id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isVerified, isActive, isOwner, isAdmin, permissions, granted, actorId }] + findOne: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isVerified, isActive, isOwner, isAdmin, permissions, granted, actorId } + create: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isVerified, isActive, isOwner, isAdmin, permissions, granted, actorId } + update: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isVerified, isActive, isOwner, isAdmin, permissions, granted, actorId } + delete: { id } +``` + +### MODEL: user + +Access: `db.user` + +``` +METHODS: + db.user.findMany({ select, where?, orderBy?, first?, offset? }) + db.user.findOne({ where: { id }, select }) + db.user.create({ data: { username, displayName, profilePicture, searchTsv, type, searchTsvRank }, select }) + db.user.update({ where: { id }, data, select }) + db.user.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + username: string + displayName: string + profilePicture: ConstructiveInternalTypeImage + searchTsv: string + type: number + createdAt: string + updatedAt: string + searchTsvRank: number + +EDITABLE FIELDS: + username: string + displayName: string + profilePicture: ConstructiveInternalTypeImage + searchTsv: string + type: number + searchTsvRank: number + +OUTPUT: Promise + findMany: [{ id, username, displayName, profilePicture, searchTsv, type, createdAt, updatedAt, searchTsvRank }] + findOne: { id, username, displayName, profilePicture, searchTsv, type, createdAt, updatedAt, searchTsvRank } + create: { id, username, displayName, profilePicture, searchTsv, type, createdAt, updatedAt, searchTsvRank } + update: { id, username, displayName, profilePicture, searchTsv, type, createdAt, updatedAt, searchTsvRank } + delete: { id } +``` + +### MODEL: hierarchyModule + +Access: `db.hierarchyModule` + +``` +METHODS: + db.hierarchyModule.findMany({ select, where?, orderBy?, first?, offset? }) + db.hierarchyModule.findOne({ where: { id }, select }) + db.hierarchyModule.create({ data: { databaseId, schemaId, privateSchemaId, chartEdgesTableId, chartEdgesTableName, hierarchySprtTableId, hierarchySprtTableName, chartEdgeGrantsTableId, chartEdgeGrantsTableName, entityTableId, usersTableId, prefix, privateSchemaName, sprtTableName, rebuildHierarchyFunction, getSubordinatesFunction, getManagersFunction, isManagerOfFunction }, select }) + db.hierarchyModule.update({ where: { id }, data, select }) + db.hierarchyModule.delete({ where: { id } }) + +FIELDS: + id: string (primary key) + 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 + +EDITABLE FIELDS: + 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 + +OUTPUT: Promise + findMany: [{ id, databaseId, schemaId, privateSchemaId, chartEdgesTableId, chartEdgesTableName, hierarchySprtTableId, hierarchySprtTableName, chartEdgeGrantsTableId, chartEdgeGrantsTableName, entityTableId, usersTableId, prefix, privateSchemaName, sprtTableName, rebuildHierarchyFunction, getSubordinatesFunction, getManagersFunction, isManagerOfFunction, createdAt }] + findOne: { id, databaseId, schemaId, privateSchemaId, chartEdgesTableId, chartEdgesTableName, hierarchySprtTableId, hierarchySprtTableName, chartEdgeGrantsTableId, chartEdgeGrantsTableName, entityTableId, usersTableId, prefix, privateSchemaName, sprtTableName, rebuildHierarchyFunction, getSubordinatesFunction, getManagersFunction, isManagerOfFunction, createdAt } + create: { id, databaseId, schemaId, privateSchemaId, chartEdgesTableId, chartEdgesTableName, hierarchySprtTableId, hierarchySprtTableName, chartEdgeGrantsTableId, chartEdgeGrantsTableName, entityTableId, usersTableId, prefix, privateSchemaName, sprtTableName, rebuildHierarchyFunction, getSubordinatesFunction, getManagersFunction, isManagerOfFunction, createdAt } + update: { id, databaseId, schemaId, privateSchemaId, chartEdgesTableId, chartEdgesTableName, hierarchySprtTableId, hierarchySprtTableName, chartEdgeGrantsTableId, chartEdgeGrantsTableName, entityTableId, usersTableId, prefix, privateSchemaName, sprtTableName, rebuildHierarchyFunction, getSubordinatesFunction, getManagersFunction, isManagerOfFunction, createdAt } + delete: { id } +``` + +## CUSTOM OPERATIONS + +### OPERATION: currentUserId + +currentUserId + +``` +TYPE: query +ACCESS: db.query.currentUserId +USAGE: db.query.currentUserId().execute() + +INPUT: none + +OUTPUT: Promise +``` + +### OPERATION: currentIpAddress + +currentIpAddress + +``` +TYPE: query +ACCESS: db.query.currentIpAddress +USAGE: db.query.currentIpAddress().execute() + +INPUT: none + +OUTPUT: Promise +``` + +### OPERATION: currentUserAgent + +currentUserAgent + +``` +TYPE: query +ACCESS: db.query.currentUserAgent +USAGE: db.query.currentUserAgent().execute() + +INPUT: none + +OUTPUT: Promise +``` + +### OPERATION: appPermissionsGetPaddedMask + +appPermissionsGetPaddedMask + +``` +TYPE: query +ACCESS: db.query.appPermissionsGetPaddedMask +USAGE: db.query.appPermissionsGetPaddedMask({ mask: }).execute() + +INPUT: + mask: BitString + +OUTPUT: Promise +``` + +### OPERATION: orgPermissionsGetPaddedMask + +orgPermissionsGetPaddedMask + +``` +TYPE: query +ACCESS: db.query.orgPermissionsGetPaddedMask +USAGE: db.query.orgPermissionsGetPaddedMask({ mask: }).execute() + +INPUT: + mask: BitString + +OUTPUT: Promise +``` + +### OPERATION: stepsAchieved + +stepsAchieved + +``` +TYPE: query +ACCESS: db.query.stepsAchieved +USAGE: db.query.stepsAchieved({ vlevel: , vroleId: }).execute() + +INPUT: + vlevel: String + vroleId: UUID + +OUTPUT: Promise +``` + +### OPERATION: revParse + +revParse + +``` +TYPE: query +ACCESS: db.query.revParse +USAGE: db.query.revParse({ dbId: , storeId: , refname: }).execute() + +INPUT: + dbId: UUID + storeId: UUID + refname: String + +OUTPUT: Promise +``` + +### OPERATION: appPermissionsGetMask + +appPermissionsGetMask + +``` +TYPE: query +ACCESS: db.query.appPermissionsGetMask +USAGE: db.query.appPermissionsGetMask({ ids: }).execute() + +INPUT: + ids: [UUID] + +OUTPUT: Promise +``` + +### OPERATION: orgPermissionsGetMask + +orgPermissionsGetMask + +``` +TYPE: query +ACCESS: db.query.orgPermissionsGetMask +USAGE: db.query.orgPermissionsGetMask({ ids: }).execute() + +INPUT: + ids: [UUID] + +OUTPUT: Promise +``` + +### OPERATION: appPermissionsGetMaskByNames + +appPermissionsGetMaskByNames + +``` +TYPE: query +ACCESS: db.query.appPermissionsGetMaskByNames +USAGE: db.query.appPermissionsGetMaskByNames({ names: }).execute() + +INPUT: + names: [String] + +OUTPUT: Promise +``` + +### OPERATION: orgPermissionsGetMaskByNames + +orgPermissionsGetMaskByNames + +``` +TYPE: query +ACCESS: db.query.orgPermissionsGetMaskByNames +USAGE: db.query.orgPermissionsGetMaskByNames({ names: }).execute() + +INPUT: + names: [String] + +OUTPUT: Promise +``` + +### OPERATION: appPermissionsGetByMask + +Reads and enables pagination through a set of `AppPermission`. + +``` +TYPE: query +ACCESS: db.query.appPermissionsGetByMask +USAGE: db.query.appPermissionsGetByMask({ mask: , first: , offset: , after: }).execute() + +INPUT: + mask: BitString + first: Int + offset: Int + after: Cursor + +OUTPUT: Promise +``` + +### OPERATION: orgPermissionsGetByMask + +Reads and enables pagination through a set of `OrgPermission`. + +``` +TYPE: query +ACCESS: db.query.orgPermissionsGetByMask +USAGE: db.query.orgPermissionsGetByMask({ mask: , first: , offset: , after: }).execute() + +INPUT: + mask: BitString + first: Int + offset: Int + after: Cursor + +OUTPUT: Promise +``` + +### OPERATION: getAllObjectsFromRoot + +Reads and enables pagination through a set of `Object`. + +``` +TYPE: query +ACCESS: db.query.getAllObjectsFromRoot +USAGE: db.query.getAllObjectsFromRoot({ databaseId: , id: , first: , offset: , after: }).execute() + +INPUT: + databaseId: UUID + id: UUID + first: Int + offset: Int + after: Cursor + +OUTPUT: Promise +``` + +### OPERATION: getPathObjectsFromRoot + +Reads and enables pagination through a set of `Object`. + +``` +TYPE: query +ACCESS: db.query.getPathObjectsFromRoot +USAGE: db.query.getPathObjectsFromRoot({ databaseId: , id: , path: , first: , offset: , after: }).execute() + +INPUT: + databaseId: UUID + id: UUID + path: [String] + first: Int + offset: Int + after: Cursor + +OUTPUT: Promise +``` + +### OPERATION: getObjectAtPath + +getObjectAtPath + +``` +TYPE: query +ACCESS: db.query.getObjectAtPath +USAGE: db.query.getObjectAtPath({ dbId: , storeId: , path: , refname: }).execute() + +INPUT: + dbId: UUID + storeId: UUID + path: [String] + refname: String + +OUTPUT: Promise +``` + +### OPERATION: stepsRequired + +Reads and enables pagination through a set of `AppLevelRequirement`. + +``` +TYPE: query +ACCESS: db.query.stepsRequired +USAGE: db.query.stepsRequired({ vlevel: , vroleId: , first: , offset: , after: }).execute() + +INPUT: + vlevel: String + vroleId: UUID + first: Int + offset: Int + after: Cursor + +OUTPUT: Promise +``` + +### OPERATION: currentUser + +currentUser + +``` +TYPE: query +ACCESS: db.query.currentUser +USAGE: db.query.currentUser().execute() + +INPUT: none + +OUTPUT: Promise +``` + +### OPERATION: signOut + +signOut + +``` +TYPE: mutation +ACCESS: db.mutation.signOut +USAGE: db.mutation.signOut({ input: }).execute() + +INPUT: + input: SignOutInput (required) + +OUTPUT: Promise +``` + +### OPERATION: sendAccountDeletionEmail + +sendAccountDeletionEmail + +``` +TYPE: mutation +ACCESS: db.mutation.sendAccountDeletionEmail +USAGE: db.mutation.sendAccountDeletionEmail({ input: }).execute() + +INPUT: + input: SendAccountDeletionEmailInput (required) + +OUTPUT: Promise +``` + +### OPERATION: checkPassword + +checkPassword + +``` +TYPE: mutation +ACCESS: db.mutation.checkPassword +USAGE: db.mutation.checkPassword({ input: }).execute() + +INPUT: + input: CheckPasswordInput (required) + +OUTPUT: Promise +``` + +### OPERATION: submitInviteCode + +submitInviteCode + +``` +TYPE: mutation +ACCESS: db.mutation.submitInviteCode +USAGE: db.mutation.submitInviteCode({ input: }).execute() + +INPUT: + input: SubmitInviteCodeInput (required) + +OUTPUT: Promise +``` + +### OPERATION: submitOrgInviteCode + +submitOrgInviteCode + +``` +TYPE: mutation +ACCESS: db.mutation.submitOrgInviteCode +USAGE: db.mutation.submitOrgInviteCode({ input: }).execute() + +INPUT: + input: SubmitOrgInviteCodeInput (required) + +OUTPUT: Promise +``` + +### OPERATION: freezeObjects + +freezeObjects + +``` +TYPE: mutation +ACCESS: db.mutation.freezeObjects +USAGE: db.mutation.freezeObjects({ input: }).execute() + +INPUT: + input: FreezeObjectsInput (required) + +OUTPUT: Promise +``` + +### OPERATION: initEmptyRepo + +initEmptyRepo + +``` +TYPE: mutation +ACCESS: db.mutation.initEmptyRepo +USAGE: db.mutation.initEmptyRepo({ input: }).execute() + +INPUT: + input: InitEmptyRepoInput (required) + +OUTPUT: Promise +``` + +### OPERATION: confirmDeleteAccount + +confirmDeleteAccount + +``` +TYPE: mutation +ACCESS: db.mutation.confirmDeleteAccount +USAGE: db.mutation.confirmDeleteAccount({ input: }).execute() + +INPUT: + input: ConfirmDeleteAccountInput (required) + +OUTPUT: Promise +``` + +### OPERATION: setPassword + +setPassword + +``` +TYPE: mutation +ACCESS: db.mutation.setPassword +USAGE: db.mutation.setPassword({ input: }).execute() + +INPUT: + input: SetPasswordInput (required) + +OUTPUT: Promise +``` + +### OPERATION: verifyEmail + +verifyEmail + +``` +TYPE: mutation +ACCESS: db.mutation.verifyEmail +USAGE: db.mutation.verifyEmail({ input: }).execute() + +INPUT: + input: VerifyEmailInput (required) + +OUTPUT: Promise +``` + +### OPERATION: resetPassword + +resetPassword + +``` +TYPE: mutation +ACCESS: db.mutation.resetPassword +USAGE: db.mutation.resetPassword({ input: }).execute() + +INPUT: + input: ResetPasswordInput (required) + +OUTPUT: Promise +``` + +### OPERATION: removeNodeAtPath + +removeNodeAtPath + +``` +TYPE: mutation +ACCESS: db.mutation.removeNodeAtPath +USAGE: db.mutation.removeNodeAtPath({ input: }).execute() + +INPUT: + input: RemoveNodeAtPathInput (required) + +OUTPUT: Promise +``` + +### OPERATION: bootstrapUser + +bootstrapUser + +``` +TYPE: mutation +ACCESS: db.mutation.bootstrapUser +USAGE: db.mutation.bootstrapUser({ input: }).execute() + +INPUT: + input: BootstrapUserInput (required) + +OUTPUT: Promise +``` + +### OPERATION: setDataAtPath + +setDataAtPath + +``` +TYPE: mutation +ACCESS: db.mutation.setDataAtPath +USAGE: db.mutation.setDataAtPath({ input: }).execute() + +INPUT: + input: SetDataAtPathInput (required) + +OUTPUT: Promise +``` + +### OPERATION: setPropsAndCommit + +setPropsAndCommit + +``` +TYPE: mutation +ACCESS: db.mutation.setPropsAndCommit +USAGE: db.mutation.setPropsAndCommit({ input: }).execute() + +INPUT: + input: SetPropsAndCommitInput (required) + +OUTPUT: Promise +``` + +### OPERATION: provisionDatabaseWithUser + +provisionDatabaseWithUser + +``` +TYPE: mutation +ACCESS: db.mutation.provisionDatabaseWithUser +USAGE: db.mutation.provisionDatabaseWithUser({ input: }).execute() + +INPUT: + input: ProvisionDatabaseWithUserInput (required) + +OUTPUT: Promise +``` + +### OPERATION: signInOneTimeToken + +signInOneTimeToken + +``` +TYPE: mutation +ACCESS: db.mutation.signInOneTimeToken +USAGE: db.mutation.signInOneTimeToken({ input: }).execute() + +INPUT: + input: SignInOneTimeTokenInput (required) + +OUTPUT: Promise +``` + +### OPERATION: 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 +ACCESS: db.mutation.createUserDatabase +USAGE: db.mutation.createUserDatabase({ input: }).execute() + +INPUT: + input: CreateUserDatabaseInput (required) + +OUTPUT: Promise +``` + +### OPERATION: extendTokenExpires + +extendTokenExpires + +``` +TYPE: mutation +ACCESS: db.mutation.extendTokenExpires +USAGE: db.mutation.extendTokenExpires({ input: }).execute() + +INPUT: + input: ExtendTokenExpiresInput (required) + +OUTPUT: Promise +``` + +### OPERATION: signIn + +signIn + +``` +TYPE: mutation +ACCESS: db.mutation.signIn +USAGE: db.mutation.signIn({ input: }).execute() + +INPUT: + input: SignInInput (required) + +OUTPUT: Promise +``` + +### OPERATION: signUp + +signUp + +``` +TYPE: mutation +ACCESS: db.mutation.signUp +USAGE: db.mutation.signUp({ input: }).execute() + +INPUT: + input: SignUpInput (required) + +OUTPUT: Promise +``` + +### OPERATION: setFieldOrder + +setFieldOrder + +``` +TYPE: mutation +ACCESS: db.mutation.setFieldOrder +USAGE: db.mutation.setFieldOrder({ input: }).execute() + +INPUT: + input: SetFieldOrderInput (required) + +OUTPUT: Promise +``` + +### OPERATION: oneTimeToken + +oneTimeToken + +``` +TYPE: mutation +ACCESS: db.mutation.oneTimeToken +USAGE: db.mutation.oneTimeToken({ input: }).execute() + +INPUT: + input: OneTimeTokenInput (required) + +OUTPUT: Promise +``` + +### OPERATION: insertNodeAtPath + +insertNodeAtPath + +``` +TYPE: mutation +ACCESS: db.mutation.insertNodeAtPath +USAGE: db.mutation.insertNodeAtPath({ input: }).execute() + +INPUT: + input: InsertNodeAtPathInput (required) + +OUTPUT: Promise +``` + +### OPERATION: updateNodeAtPath + +updateNodeAtPath + +``` +TYPE: mutation +ACCESS: db.mutation.updateNodeAtPath +USAGE: db.mutation.updateNodeAtPath({ input: }).execute() + +INPUT: + input: UpdateNodeAtPathInput (required) + +OUTPUT: Promise +``` + +### OPERATION: setAndCommit + +setAndCommit + +``` +TYPE: mutation +ACCESS: db.mutation.setAndCommit +USAGE: db.mutation.setAndCommit({ input: }).execute() + +INPUT: + input: SetAndCommitInput (required) + +OUTPUT: Promise +``` + +### OPERATION: applyRls + +applyRls + +``` +TYPE: mutation +ACCESS: db.mutation.applyRls +USAGE: db.mutation.applyRls({ input: }).execute() + +INPUT: + input: ApplyRlsInput (required) + +OUTPUT: Promise +``` + +### OPERATION: forgotPassword + +forgotPassword + +``` +TYPE: mutation +ACCESS: db.mutation.forgotPassword +USAGE: db.mutation.forgotPassword({ input: }).execute() + +INPUT: + input: ForgotPasswordInput (required) + +OUTPUT: Promise +``` + +### OPERATION: sendVerificationEmail + +sendVerificationEmail + +``` +TYPE: mutation +ACCESS: db.mutation.sendVerificationEmail +USAGE: db.mutation.sendVerificationEmail({ input: }).execute() + +INPUT: + input: SendVerificationEmailInput (required) + +OUTPUT: Promise +``` + +### OPERATION: verifyPassword + +verifyPassword + +``` +TYPE: mutation +ACCESS: db.mutation.verifyPassword +USAGE: db.mutation.verifyPassword({ input: }).execute() + +INPUT: + input: VerifyPasswordInput (required) + +OUTPUT: Promise +``` + +### OPERATION: verifyTotp + +verifyTotp + +``` +TYPE: mutation +ACCESS: db.mutation.verifyTotp +USAGE: db.mutation.verifyTotp({ input: }).execute() + +INPUT: + input: VerifyTotpInput (required) + +OUTPUT: Promise +``` + +## PATTERNS + +```typescript +// All methods require .execute() to run +const result = await db.modelName.findMany({ select: { id: true } }).execute(); + +// Select specific fields +const partial = await db.modelName.findMany({ select: { id: true, name: true } }).execute(); + +// Filter with where clause +const filtered = await db.modelName.findMany({ select: { id: true }, where: { name: 'test' } }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/README.md b/sdk/constructive-sdk/src/public/orm/README.md new file mode 100644 index 000000000..0bc267b7f --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/README.md @@ -0,0 +1,4601 @@ +# ORM Client + +

+ +

+ +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +## 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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({ where: { 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-sdk/src/public/orm/client.ts b/sdk/constructive-sdk/src/public/orm/client.ts new file mode 100644 index 000000000..c0f12c466 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/index.ts b/sdk/constructive-sdk/src/public/orm/index.ts new file mode 100644 index 000000000..5bdb26031 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/input-types.ts b/sdk/constructive-sdk/src/public/orm/input-types.ts new file mode 100644 index 000000000..39431d7e4 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/input-types.ts @@ -0,0 +1,18286 @@ +/** + * 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; +} +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; +} +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; +} +export interface ViewRule { + id: string; + databaseId?: string | null; + viewId?: string | null; + name?: string | null; + event?: string | null; + 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; +} +export interface DatabaseProvisionModule { + id: string; + 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; + 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; +} +export interface AppStep { + id: string; + actorId?: string | null; + name?: string | null; + count?: number | null; + createdAt?: string | null; + updatedAt?: string | null; +} +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; +} +export interface Ref { + id: string; + name?: string | null; + databaseId?: string | null; + storeId?: string | null; + commitId?: string | null; +} +export interface Store { + id: string; + name?: string | null; + databaseId?: string | null; + 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; + service?: string | null; + identifier?: string | null; + 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; +} +export interface NodeTypeRegistry { + name?: string | null; + slug?: string | null; + category?: string | null; + displayName?: string | null; + description?: string | null; + parameterSchema?: Record | null; + tags?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +export interface Commit { + id: string; + 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; + 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; +} +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; + 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; +} +export interface IntervalInput { + seconds?: number; + minutes?: number; + hours?: number; + days?: number; + months?: number; + years?: number; +} +// ============ 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; +}; +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; +}; +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 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; + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export type CreateAppPermissionPayloadSelect = { + clientMutationId?: boolean; + appPermission?: { + select: AppPermissionSelect; + }; + appPermissionEdge?: { + select: AppPermissionEdgeSelect; + }; +}; +export interface UpdateAppPermissionPayload { + clientMutationId?: string | null; + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export type UpdateAppPermissionPayloadSelect = { + clientMutationId?: boolean; + appPermission?: { + select: AppPermissionSelect; + }; + appPermissionEdge?: { + select: AppPermissionEdgeSelect; + }; +}; +export interface DeleteAppPermissionPayload { + clientMutationId?: string | null; + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export type DeleteAppPermissionPayloadSelect = { + clientMutationId?: boolean; + appPermission?: { + select: AppPermissionSelect; + }; + appPermissionEdge?: { + select: AppPermissionEdgeSelect; + }; +}; +export interface CreateOrgPermissionPayload { + clientMutationId?: string | null; + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export type CreateOrgPermissionPayloadSelect = { + clientMutationId?: boolean; + orgPermission?: { + select: OrgPermissionSelect; + }; + orgPermissionEdge?: { + select: OrgPermissionEdgeSelect; + }; +}; +export interface UpdateOrgPermissionPayload { + clientMutationId?: string | null; + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export type UpdateOrgPermissionPayloadSelect = { + clientMutationId?: boolean; + orgPermission?: { + select: OrgPermissionSelect; + }; + orgPermissionEdge?: { + select: OrgPermissionEdgeSelect; + }; +}; +export interface DeleteOrgPermissionPayload { + clientMutationId?: string | null; + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export type DeleteOrgPermissionPayloadSelect = { + clientMutationId?: boolean; + orgPermission?: { + select: OrgPermissionSelect; + }; + orgPermissionEdge?: { + select: OrgPermissionEdgeSelect; + }; +}; +export interface CreateObjectPayload { + clientMutationId?: string | null; + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type CreateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface UpdateObjectPayload { + clientMutationId?: string | null; + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type UpdateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface DeleteObjectPayload { + clientMutationId?: string | null; + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type DeleteObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface CreateAppLevelRequirementPayload { + clientMutationId?: string | null; + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; +} +export type CreateAppLevelRequirementPayloadSelect = { + clientMutationId?: boolean; + appLevelRequirement?: { + select: AppLevelRequirementSelect; + }; + appLevelRequirementEdge?: { + select: AppLevelRequirementEdgeSelect; + }; +}; +export interface UpdateAppLevelRequirementPayload { + clientMutationId?: string | null; + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; +} +export type UpdateAppLevelRequirementPayloadSelect = { + clientMutationId?: boolean; + appLevelRequirement?: { + select: AppLevelRequirementSelect; + }; + appLevelRequirementEdge?: { + select: AppLevelRequirementEdgeSelect; + }; +}; +export interface DeleteAppLevelRequirementPayload { + clientMutationId?: string | null; + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; +} +export type DeleteAppLevelRequirementPayloadSelect = { + clientMutationId?: boolean; + appLevelRequirement?: { + select: AppLevelRequirementSelect; + }; + appLevelRequirementEdge?: { + select: AppLevelRequirementEdgeSelect; + }; +}; +export interface CreateDatabasePayload { + clientMutationId?: string | null; + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export type CreateDatabasePayloadSelect = { + clientMutationId?: boolean; + database?: { + select: DatabaseSelect; + }; + databaseEdge?: { + select: DatabaseEdgeSelect; + }; +}; +export interface UpdateDatabasePayload { + clientMutationId?: string | null; + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export type UpdateDatabasePayloadSelect = { + clientMutationId?: boolean; + database?: { + select: DatabaseSelect; + }; + databaseEdge?: { + select: DatabaseEdgeSelect; + }; +}; +export interface DeleteDatabasePayload { + clientMutationId?: string | null; + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export type DeleteDatabasePayloadSelect = { + clientMutationId?: boolean; + database?: { + select: DatabaseSelect; + }; + databaseEdge?: { + select: DatabaseEdgeSelect; + }; +}; +export interface CreateSchemaPayload { + clientMutationId?: string | null; + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} +export type CreateSchemaPayloadSelect = { + clientMutationId?: boolean; + schema?: { + select: SchemaSelect; + }; + schemaEdge?: { + select: SchemaEdgeSelect; + }; +}; +export interface UpdateSchemaPayload { + clientMutationId?: string | null; + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} +export type UpdateSchemaPayloadSelect = { + clientMutationId?: boolean; + schema?: { + select: SchemaSelect; + }; + schemaEdge?: { + select: SchemaEdgeSelect; + }; +}; +export interface DeleteSchemaPayload { + clientMutationId?: string | null; + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} +export type DeleteSchemaPayloadSelect = { + clientMutationId?: boolean; + schema?: { + select: SchemaSelect; + }; + schemaEdge?: { + select: SchemaEdgeSelect; + }; +}; +export interface CreateTablePayload { + clientMutationId?: string | null; + table?: Table | null; + tableEdge?: TableEdge | null; +} +export type CreateTablePayloadSelect = { + clientMutationId?: boolean; + table?: { + select: TableSelect; + }; + tableEdge?: { + select: TableEdgeSelect; + }; +}; +export interface UpdateTablePayload { + clientMutationId?: string | null; + table?: Table | null; + tableEdge?: TableEdge | null; +} +export type UpdateTablePayloadSelect = { + clientMutationId?: boolean; + table?: { + select: TableSelect; + }; + tableEdge?: { + select: TableEdgeSelect; + }; +}; +export interface DeleteTablePayload { + clientMutationId?: string | null; + table?: Table | null; + tableEdge?: TableEdge | null; +} +export type DeleteTablePayloadSelect = { + clientMutationId?: boolean; + table?: { + select: TableSelect; + }; + tableEdge?: { + select: TableEdgeSelect; + }; +}; +export interface CreateCheckConstraintPayload { + clientMutationId?: string | null; + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export type CreateCheckConstraintPayloadSelect = { + clientMutationId?: boolean; + checkConstraint?: { + select: CheckConstraintSelect; + }; + checkConstraintEdge?: { + select: CheckConstraintEdgeSelect; + }; +}; +export interface UpdateCheckConstraintPayload { + clientMutationId?: string | null; + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export type UpdateCheckConstraintPayloadSelect = { + clientMutationId?: boolean; + checkConstraint?: { + select: CheckConstraintSelect; + }; + checkConstraintEdge?: { + select: CheckConstraintEdgeSelect; + }; +}; +export interface DeleteCheckConstraintPayload { + clientMutationId?: string | null; + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export type DeleteCheckConstraintPayloadSelect = { + clientMutationId?: boolean; + checkConstraint?: { + select: CheckConstraintSelect; + }; + checkConstraintEdge?: { + select: CheckConstraintEdgeSelect; + }; +}; +export interface CreateFieldPayload { + clientMutationId?: string | null; + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export type CreateFieldPayloadSelect = { + clientMutationId?: boolean; + field?: { + select: FieldSelect; + }; + fieldEdge?: { + select: FieldEdgeSelect; + }; +}; +export interface UpdateFieldPayload { + clientMutationId?: string | null; + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export type UpdateFieldPayloadSelect = { + clientMutationId?: boolean; + field?: { + select: FieldSelect; + }; + fieldEdge?: { + select: FieldEdgeSelect; + }; +}; +export interface DeleteFieldPayload { + clientMutationId?: string | null; + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export type DeleteFieldPayloadSelect = { + clientMutationId?: boolean; + field?: { + select: FieldSelect; + }; + fieldEdge?: { + select: FieldEdgeSelect; + }; +}; +export interface CreateForeignKeyConstraintPayload { + clientMutationId?: string | null; + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export type CreateForeignKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + foreignKeyConstraint?: { + select: ForeignKeyConstraintSelect; + }; + foreignKeyConstraintEdge?: { + select: ForeignKeyConstraintEdgeSelect; + }; +}; +export interface UpdateForeignKeyConstraintPayload { + clientMutationId?: string | null; + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export type UpdateForeignKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + foreignKeyConstraint?: { + select: ForeignKeyConstraintSelect; + }; + foreignKeyConstraintEdge?: { + select: ForeignKeyConstraintEdgeSelect; + }; +}; +export interface DeleteForeignKeyConstraintPayload { + clientMutationId?: string | null; + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export type DeleteForeignKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + foreignKeyConstraint?: { + select: ForeignKeyConstraintSelect; + }; + foreignKeyConstraintEdge?: { + select: ForeignKeyConstraintEdgeSelect; + }; +}; +export interface CreateFullTextSearchPayload { + clientMutationId?: string | null; + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export type CreateFullTextSearchPayloadSelect = { + clientMutationId?: boolean; + fullTextSearch?: { + select: FullTextSearchSelect; + }; + fullTextSearchEdge?: { + select: FullTextSearchEdgeSelect; + }; +}; +export interface UpdateFullTextSearchPayload { + clientMutationId?: string | null; + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export type UpdateFullTextSearchPayloadSelect = { + clientMutationId?: boolean; + fullTextSearch?: { + select: FullTextSearchSelect; + }; + fullTextSearchEdge?: { + select: FullTextSearchEdgeSelect; + }; +}; +export interface DeleteFullTextSearchPayload { + clientMutationId?: string | null; + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export type DeleteFullTextSearchPayloadSelect = { + clientMutationId?: boolean; + fullTextSearch?: { + select: FullTextSearchSelect; + }; + fullTextSearchEdge?: { + select: FullTextSearchEdgeSelect; + }; +}; +export interface CreateIndexPayload { + clientMutationId?: string | null; + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export type CreateIndexPayloadSelect = { + clientMutationId?: boolean; + index?: { + select: IndexSelect; + }; + indexEdge?: { + select: IndexEdgeSelect; + }; +}; +export interface UpdateIndexPayload { + clientMutationId?: string | null; + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export type UpdateIndexPayloadSelect = { + clientMutationId?: boolean; + index?: { + select: IndexSelect; + }; + indexEdge?: { + select: IndexEdgeSelect; + }; +}; +export interface DeleteIndexPayload { + clientMutationId?: string | null; + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export type DeleteIndexPayloadSelect = { + clientMutationId?: boolean; + index?: { + select: IndexSelect; + }; + indexEdge?: { + select: IndexEdgeSelect; + }; +}; +export interface CreateLimitFunctionPayload { + clientMutationId?: string | null; + limitFunction?: LimitFunction | null; + limitFunctionEdge?: LimitFunctionEdge | null; +} +export type CreateLimitFunctionPayloadSelect = { + clientMutationId?: boolean; + limitFunction?: { + select: LimitFunctionSelect; + }; + limitFunctionEdge?: { + select: LimitFunctionEdgeSelect; + }; +}; +export interface UpdateLimitFunctionPayload { + clientMutationId?: string | null; + limitFunction?: LimitFunction | null; + limitFunctionEdge?: LimitFunctionEdge | null; +} +export type UpdateLimitFunctionPayloadSelect = { + clientMutationId?: boolean; + limitFunction?: { + select: LimitFunctionSelect; + }; + limitFunctionEdge?: { + select: LimitFunctionEdgeSelect; + }; +}; +export interface DeleteLimitFunctionPayload { + clientMutationId?: string | null; + limitFunction?: LimitFunction | null; + limitFunctionEdge?: LimitFunctionEdge | null; +} +export type DeleteLimitFunctionPayloadSelect = { + clientMutationId?: boolean; + limitFunction?: { + select: LimitFunctionSelect; + }; + limitFunctionEdge?: { + select: LimitFunctionEdgeSelect; + }; +}; +export interface CreatePolicyPayload { + clientMutationId?: string | null; + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export type CreatePolicyPayloadSelect = { + clientMutationId?: boolean; + policy?: { + select: PolicySelect; + }; + policyEdge?: { + select: PolicyEdgeSelect; + }; +}; +export interface UpdatePolicyPayload { + clientMutationId?: string | null; + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export type UpdatePolicyPayloadSelect = { + clientMutationId?: boolean; + policy?: { + select: PolicySelect; + }; + policyEdge?: { + select: PolicyEdgeSelect; + }; +}; +export interface DeletePolicyPayload { + clientMutationId?: string | null; + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export type DeletePolicyPayloadSelect = { + clientMutationId?: boolean; + policy?: { + select: PolicySelect; + }; + policyEdge?: { + select: PolicyEdgeSelect; + }; +}; +export interface CreatePrimaryKeyConstraintPayload { + clientMutationId?: string | null; + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export type CreatePrimaryKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + primaryKeyConstraint?: { + select: PrimaryKeyConstraintSelect; + }; + primaryKeyConstraintEdge?: { + select: PrimaryKeyConstraintEdgeSelect; + }; +}; +export interface UpdatePrimaryKeyConstraintPayload { + clientMutationId?: string | null; + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export type UpdatePrimaryKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + primaryKeyConstraint?: { + select: PrimaryKeyConstraintSelect; + }; + primaryKeyConstraintEdge?: { + select: PrimaryKeyConstraintEdgeSelect; + }; +}; +export interface DeletePrimaryKeyConstraintPayload { + clientMutationId?: string | null; + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export type DeletePrimaryKeyConstraintPayloadSelect = { + clientMutationId?: boolean; + primaryKeyConstraint?: { + select: PrimaryKeyConstraintSelect; + }; + primaryKeyConstraintEdge?: { + select: PrimaryKeyConstraintEdgeSelect; + }; +}; +export interface CreateTableGrantPayload { + clientMutationId?: string | null; + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} +export type CreateTableGrantPayloadSelect = { + clientMutationId?: boolean; + tableGrant?: { + select: TableGrantSelect; + }; + tableGrantEdge?: { + select: TableGrantEdgeSelect; + }; +}; +export interface UpdateTableGrantPayload { + clientMutationId?: string | null; + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} +export type UpdateTableGrantPayloadSelect = { + clientMutationId?: boolean; + tableGrant?: { + select: TableGrantSelect; + }; + tableGrantEdge?: { + select: TableGrantEdgeSelect; + }; +}; +export interface DeleteTableGrantPayload { + clientMutationId?: string | null; + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} +export type DeleteTableGrantPayloadSelect = { + clientMutationId?: boolean; + tableGrant?: { + select: TableGrantSelect; + }; + tableGrantEdge?: { + select: TableGrantEdgeSelect; + }; +}; +export interface CreateTriggerPayload { + clientMutationId?: string | null; + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export type CreateTriggerPayloadSelect = { + clientMutationId?: boolean; + trigger?: { + select: TriggerSelect; + }; + triggerEdge?: { + select: TriggerEdgeSelect; + }; +}; +export interface UpdateTriggerPayload { + clientMutationId?: string | null; + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export type UpdateTriggerPayloadSelect = { + clientMutationId?: boolean; + trigger?: { + select: TriggerSelect; + }; + triggerEdge?: { + select: TriggerEdgeSelect; + }; +}; +export interface DeleteTriggerPayload { + clientMutationId?: string | null; + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export type DeleteTriggerPayloadSelect = { + clientMutationId?: boolean; + trigger?: { + select: TriggerSelect; + }; + triggerEdge?: { + select: TriggerEdgeSelect; + }; +}; +export interface CreateUniqueConstraintPayload { + clientMutationId?: string | null; + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export type CreateUniqueConstraintPayloadSelect = { + clientMutationId?: boolean; + uniqueConstraint?: { + select: UniqueConstraintSelect; + }; + uniqueConstraintEdge?: { + select: UniqueConstraintEdgeSelect; + }; +}; +export interface UpdateUniqueConstraintPayload { + clientMutationId?: string | null; + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export type UpdateUniqueConstraintPayloadSelect = { + clientMutationId?: boolean; + uniqueConstraint?: { + select: UniqueConstraintSelect; + }; + uniqueConstraintEdge?: { + select: UniqueConstraintEdgeSelect; + }; +}; +export interface DeleteUniqueConstraintPayload { + clientMutationId?: string | null; + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export type DeleteUniqueConstraintPayloadSelect = { + clientMutationId?: boolean; + uniqueConstraint?: { + select: UniqueConstraintSelect; + }; + uniqueConstraintEdge?: { + select: UniqueConstraintEdgeSelect; + }; +}; +export interface CreateViewPayload { + clientMutationId?: string | null; + view?: View | null; + viewEdge?: ViewEdge | null; +} +export type CreateViewPayloadSelect = { + clientMutationId?: boolean; + view?: { + select: ViewSelect; + }; + viewEdge?: { + select: ViewEdgeSelect; + }; +}; +export interface UpdateViewPayload { + clientMutationId?: string | null; + view?: View | null; + viewEdge?: ViewEdge | null; +} +export type UpdateViewPayloadSelect = { + clientMutationId?: boolean; + view?: { + select: ViewSelect; + }; + viewEdge?: { + select: ViewEdgeSelect; + }; +}; +export interface DeleteViewPayload { + clientMutationId?: string | null; + view?: View | null; + viewEdge?: ViewEdge | null; +} +export type DeleteViewPayloadSelect = { + clientMutationId?: boolean; + view?: { + select: ViewSelect; + }; + viewEdge?: { + select: ViewEdgeSelect; + }; +}; +export interface CreateViewTablePayload { + clientMutationId?: string | null; + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export type CreateViewTablePayloadSelect = { + clientMutationId?: boolean; + viewTable?: { + select: ViewTableSelect; + }; + viewTableEdge?: { + select: ViewTableEdgeSelect; + }; +}; +export interface UpdateViewTablePayload { + clientMutationId?: string | null; + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export type UpdateViewTablePayloadSelect = { + clientMutationId?: boolean; + viewTable?: { + select: ViewTableSelect; + }; + viewTableEdge?: { + select: ViewTableEdgeSelect; + }; +}; +export interface DeleteViewTablePayload { + clientMutationId?: string | null; + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export type DeleteViewTablePayloadSelect = { + clientMutationId?: boolean; + viewTable?: { + select: ViewTableSelect; + }; + viewTableEdge?: { + select: ViewTableEdgeSelect; + }; +}; +export interface CreateViewGrantPayload { + clientMutationId?: string | null; + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; +} +export type CreateViewGrantPayloadSelect = { + clientMutationId?: boolean; + viewGrant?: { + select: ViewGrantSelect; + }; + viewGrantEdge?: { + select: ViewGrantEdgeSelect; + }; +}; +export interface UpdateViewGrantPayload { + clientMutationId?: string | null; + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; +} +export type UpdateViewGrantPayloadSelect = { + clientMutationId?: boolean; + viewGrant?: { + select: ViewGrantSelect; + }; + viewGrantEdge?: { + select: ViewGrantEdgeSelect; + }; +}; +export interface DeleteViewGrantPayload { + clientMutationId?: string | null; + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; +} +export type DeleteViewGrantPayloadSelect = { + clientMutationId?: boolean; + viewGrant?: { + select: ViewGrantSelect; + }; + viewGrantEdge?: { + select: ViewGrantEdgeSelect; + }; +}; +export interface CreateViewRulePayload { + clientMutationId?: string | null; + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export type CreateViewRulePayloadSelect = { + clientMutationId?: boolean; + viewRule?: { + select: ViewRuleSelect; + }; + viewRuleEdge?: { + select: ViewRuleEdgeSelect; + }; +}; +export interface UpdateViewRulePayload { + clientMutationId?: string | null; + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export type UpdateViewRulePayloadSelect = { + clientMutationId?: boolean; + viewRule?: { + select: ViewRuleSelect; + }; + viewRuleEdge?: { + select: ViewRuleEdgeSelect; + }; +}; +export interface DeleteViewRulePayload { + clientMutationId?: string | null; + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export type DeleteViewRulePayloadSelect = { + clientMutationId?: boolean; + viewRule?: { + select: ViewRuleSelect; + }; + viewRuleEdge?: { + select: ViewRuleEdgeSelect; + }; +}; +export interface CreateTableModulePayload { + clientMutationId?: string | null; + tableModule?: TableModule | null; + tableModuleEdge?: TableModuleEdge | null; +} +export type CreateTableModulePayloadSelect = { + clientMutationId?: boolean; + tableModule?: { + select: TableModuleSelect; + }; + tableModuleEdge?: { + select: TableModuleEdgeSelect; + }; +}; +export interface UpdateTableModulePayload { + clientMutationId?: string | null; + tableModule?: TableModule | null; + tableModuleEdge?: TableModuleEdge | null; +} +export type UpdateTableModulePayloadSelect = { + clientMutationId?: boolean; + tableModule?: { + select: TableModuleSelect; + }; + tableModuleEdge?: { + select: TableModuleEdgeSelect; + }; +}; +export interface DeleteTableModulePayload { + clientMutationId?: string | null; + tableModule?: TableModule | null; + tableModuleEdge?: TableModuleEdge | null; +} +export type DeleteTableModulePayloadSelect = { + clientMutationId?: boolean; + tableModule?: { + select: TableModuleSelect; + }; + tableModuleEdge?: { + select: TableModuleEdgeSelect; + }; +}; +export interface CreateTableTemplateModulePayload { + clientMutationId?: string | null; + tableTemplateModule?: TableTemplateModule | null; + tableTemplateModuleEdge?: TableTemplateModuleEdge | null; +} +export type CreateTableTemplateModulePayloadSelect = { + clientMutationId?: boolean; + tableTemplateModule?: { + select: TableTemplateModuleSelect; + }; + tableTemplateModuleEdge?: { + select: TableTemplateModuleEdgeSelect; + }; +}; +export interface UpdateTableTemplateModulePayload { + clientMutationId?: string | null; + tableTemplateModule?: TableTemplateModule | null; + tableTemplateModuleEdge?: TableTemplateModuleEdge | null; +} +export type UpdateTableTemplateModulePayloadSelect = { + clientMutationId?: boolean; + tableTemplateModule?: { + select: TableTemplateModuleSelect; + }; + tableTemplateModuleEdge?: { + select: TableTemplateModuleEdgeSelect; + }; +}; +export interface DeleteTableTemplateModulePayload { + clientMutationId?: string | null; + tableTemplateModule?: TableTemplateModule | null; + tableTemplateModuleEdge?: TableTemplateModuleEdge | null; +} +export type DeleteTableTemplateModulePayloadSelect = { + clientMutationId?: boolean; + tableTemplateModule?: { + select: TableTemplateModuleSelect; + }; + tableTemplateModuleEdge?: { + select: TableTemplateModuleEdgeSelect; + }; +}; +export interface CreateSchemaGrantPayload { + clientMutationId?: string | null; + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export type CreateSchemaGrantPayloadSelect = { + clientMutationId?: boolean; + schemaGrant?: { + select: SchemaGrantSelect; + }; + schemaGrantEdge?: { + select: SchemaGrantEdgeSelect; + }; +}; +export interface UpdateSchemaGrantPayload { + clientMutationId?: string | null; + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export type UpdateSchemaGrantPayloadSelect = { + clientMutationId?: boolean; + schemaGrant?: { + select: SchemaGrantSelect; + }; + schemaGrantEdge?: { + select: SchemaGrantEdgeSelect; + }; +}; +export interface DeleteSchemaGrantPayload { + clientMutationId?: string | null; + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export type DeleteSchemaGrantPayloadSelect = { + clientMutationId?: boolean; + schemaGrant?: { + select: SchemaGrantSelect; + }; + schemaGrantEdge?: { + select: SchemaGrantEdgeSelect; + }; +}; +export interface CreateApiSchemaPayload { + clientMutationId?: string | null; + apiSchema?: ApiSchema | null; + apiSchemaEdge?: ApiSchemaEdge | null; +} +export type CreateApiSchemaPayloadSelect = { + clientMutationId?: boolean; + apiSchema?: { + select: ApiSchemaSelect; + }; + apiSchemaEdge?: { + select: ApiSchemaEdgeSelect; + }; +}; +export interface UpdateApiSchemaPayload { + clientMutationId?: string | null; + apiSchema?: ApiSchema | null; + apiSchemaEdge?: ApiSchemaEdge | null; +} +export type UpdateApiSchemaPayloadSelect = { + clientMutationId?: boolean; + apiSchema?: { + select: ApiSchemaSelect; + }; + apiSchemaEdge?: { + select: ApiSchemaEdgeSelect; + }; +}; +export interface DeleteApiSchemaPayload { + clientMutationId?: string | null; + apiSchema?: ApiSchema | null; + apiSchemaEdge?: ApiSchemaEdge | null; +} +export type DeleteApiSchemaPayloadSelect = { + clientMutationId?: boolean; + apiSchema?: { + select: ApiSchemaSelect; + }; + apiSchemaEdge?: { + select: ApiSchemaEdgeSelect; + }; +}; +export interface CreateApiModulePayload { + clientMutationId?: string | null; + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export type CreateApiModulePayloadSelect = { + clientMutationId?: boolean; + apiModule?: { + select: ApiModuleSelect; + }; + apiModuleEdge?: { + select: ApiModuleEdgeSelect; + }; +}; +export interface UpdateApiModulePayload { + clientMutationId?: string | null; + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export type UpdateApiModulePayloadSelect = { + clientMutationId?: boolean; + apiModule?: { + select: ApiModuleSelect; + }; + apiModuleEdge?: { + select: ApiModuleEdgeSelect; + }; +}; +export interface DeleteApiModulePayload { + clientMutationId?: string | null; + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export type DeleteApiModulePayloadSelect = { + clientMutationId?: boolean; + apiModule?: { + select: ApiModuleSelect; + }; + apiModuleEdge?: { + select: ApiModuleEdgeSelect; + }; +}; +export interface CreateDomainPayload { + clientMutationId?: string | null; + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export type CreateDomainPayloadSelect = { + clientMutationId?: boolean; + domain?: { + select: DomainSelect; + }; + domainEdge?: { + select: DomainEdgeSelect; + }; +}; +export interface UpdateDomainPayload { + clientMutationId?: string | null; + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export type UpdateDomainPayloadSelect = { + clientMutationId?: boolean; + domain?: { + select: DomainSelect; + }; + domainEdge?: { + select: DomainEdgeSelect; + }; +}; +export interface DeleteDomainPayload { + clientMutationId?: string | null; + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export type DeleteDomainPayloadSelect = { + clientMutationId?: boolean; + domain?: { + select: DomainSelect; + }; + domainEdge?: { + select: DomainEdgeSelect; + }; +}; +export interface CreateSiteMetadatumPayload { + clientMutationId?: string | null; + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} +export type CreateSiteMetadatumPayloadSelect = { + clientMutationId?: boolean; + siteMetadatum?: { + select: SiteMetadatumSelect; + }; + siteMetadatumEdge?: { + select: SiteMetadatumEdgeSelect; + }; +}; +export interface UpdateSiteMetadatumPayload { + clientMutationId?: string | null; + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} +export type UpdateSiteMetadatumPayloadSelect = { + clientMutationId?: boolean; + siteMetadatum?: { + select: SiteMetadatumSelect; + }; + siteMetadatumEdge?: { + select: SiteMetadatumEdgeSelect; + }; +}; +export interface DeleteSiteMetadatumPayload { + clientMutationId?: string | null; + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} +export type DeleteSiteMetadatumPayloadSelect = { + clientMutationId?: boolean; + siteMetadatum?: { + select: SiteMetadatumSelect; + }; + siteMetadatumEdge?: { + select: SiteMetadatumEdgeSelect; + }; +}; +export interface CreateSiteModulePayload { + clientMutationId?: string | null; + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; +} +export type CreateSiteModulePayloadSelect = { + clientMutationId?: boolean; + siteModule?: { + select: SiteModuleSelect; + }; + siteModuleEdge?: { + select: SiteModuleEdgeSelect; + }; +}; +export interface UpdateSiteModulePayload { + clientMutationId?: string | null; + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; +} +export type UpdateSiteModulePayloadSelect = { + clientMutationId?: boolean; + siteModule?: { + select: SiteModuleSelect; + }; + siteModuleEdge?: { + select: SiteModuleEdgeSelect; + }; +}; +export interface DeleteSiteModulePayload { + clientMutationId?: string | null; + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; +} +export type DeleteSiteModulePayloadSelect = { + clientMutationId?: boolean; + siteModule?: { + select: SiteModuleSelect; + }; + siteModuleEdge?: { + select: SiteModuleEdgeSelect; + }; +}; +export interface CreateSiteThemePayload { + clientMutationId?: string | null; + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} +export type CreateSiteThemePayloadSelect = { + clientMutationId?: boolean; + siteTheme?: { + select: SiteThemeSelect; + }; + siteThemeEdge?: { + select: SiteThemeEdgeSelect; + }; +}; +export interface UpdateSiteThemePayload { + clientMutationId?: string | null; + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} +export type UpdateSiteThemePayloadSelect = { + clientMutationId?: boolean; + siteTheme?: { + select: SiteThemeSelect; + }; + siteThemeEdge?: { + select: SiteThemeEdgeSelect; + }; +}; +export interface DeleteSiteThemePayload { + clientMutationId?: string | null; + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} +export type DeleteSiteThemePayloadSelect = { + clientMutationId?: boolean; + siteTheme?: { + select: SiteThemeSelect; + }; + siteThemeEdge?: { + select: SiteThemeEdgeSelect; + }; +}; +export interface CreateProcedurePayload { + clientMutationId?: string | null; + procedure?: Procedure | null; + procedureEdge?: ProcedureEdge | null; +} +export type CreateProcedurePayloadSelect = { + clientMutationId?: boolean; + procedure?: { + select: ProcedureSelect; + }; + procedureEdge?: { + select: ProcedureEdgeSelect; + }; +}; +export interface UpdateProcedurePayload { + clientMutationId?: string | null; + procedure?: Procedure | null; + procedureEdge?: ProcedureEdge | null; +} +export type UpdateProcedurePayloadSelect = { + clientMutationId?: boolean; + procedure?: { + select: ProcedureSelect; + }; + procedureEdge?: { + select: ProcedureEdgeSelect; + }; +}; +export interface DeleteProcedurePayload { + clientMutationId?: string | null; + procedure?: Procedure | null; + procedureEdge?: ProcedureEdge | null; +} +export type DeleteProcedurePayloadSelect = { + clientMutationId?: boolean; + procedure?: { + select: ProcedureSelect; + }; + procedureEdge?: { + select: ProcedureEdgeSelect; + }; +}; +export interface CreateTriggerFunctionPayload { + clientMutationId?: string | null; + triggerFunction?: TriggerFunction | null; + triggerFunctionEdge?: TriggerFunctionEdge | null; +} +export type CreateTriggerFunctionPayloadSelect = { + clientMutationId?: boolean; + triggerFunction?: { + select: TriggerFunctionSelect; + }; + triggerFunctionEdge?: { + select: TriggerFunctionEdgeSelect; + }; +}; +export interface UpdateTriggerFunctionPayload { + clientMutationId?: string | null; + triggerFunction?: TriggerFunction | null; + triggerFunctionEdge?: TriggerFunctionEdge | null; +} +export type UpdateTriggerFunctionPayloadSelect = { + clientMutationId?: boolean; + triggerFunction?: { + select: TriggerFunctionSelect; + }; + triggerFunctionEdge?: { + select: TriggerFunctionEdgeSelect; + }; +}; +export interface DeleteTriggerFunctionPayload { + clientMutationId?: string | null; + triggerFunction?: TriggerFunction | null; + triggerFunctionEdge?: TriggerFunctionEdge | null; +} +export type DeleteTriggerFunctionPayloadSelect = { + clientMutationId?: boolean; + triggerFunction?: { + select: TriggerFunctionSelect; + }; + triggerFunctionEdge?: { + select: TriggerFunctionEdgeSelect; + }; +}; +export interface CreateApiPayload { + clientMutationId?: string | null; + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export type CreateApiPayloadSelect = { + clientMutationId?: boolean; + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; +}; +export interface UpdateApiPayload { + clientMutationId?: string | null; + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export type UpdateApiPayloadSelect = { + clientMutationId?: boolean; + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; +}; +export interface DeleteApiPayload { + clientMutationId?: string | null; + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export type DeleteApiPayloadSelect = { + clientMutationId?: boolean; + api?: { + select: ApiSelect; + }; + apiEdge?: { + select: ApiEdgeSelect; + }; +}; +export interface CreateSitePayload { + clientMutationId?: string | null; + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export type CreateSitePayloadSelect = { + clientMutationId?: boolean; + site?: { + select: SiteSelect; + }; + siteEdge?: { + select: SiteEdgeSelect; + }; +}; +export interface UpdateSitePayload { + clientMutationId?: string | null; + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export type UpdateSitePayloadSelect = { + clientMutationId?: boolean; + site?: { + select: SiteSelect; + }; + siteEdge?: { + select: SiteEdgeSelect; + }; +}; +export interface DeleteSitePayload { + clientMutationId?: string | null; + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export type DeleteSitePayloadSelect = { + clientMutationId?: boolean; + site?: { + select: SiteSelect; + }; + siteEdge?: { + select: SiteEdgeSelect; + }; +}; +export interface CreateAppPayload { + clientMutationId?: string | null; + app?: App | null; + appEdge?: AppEdge | null; +} +export type CreateAppPayloadSelect = { + clientMutationId?: boolean; + app?: { + select: AppSelect; + }; + appEdge?: { + select: AppEdgeSelect; + }; +}; +export interface UpdateAppPayload { + clientMutationId?: string | null; + app?: App | null; + appEdge?: AppEdge | null; +} +export type UpdateAppPayloadSelect = { + clientMutationId?: boolean; + app?: { + select: AppSelect; + }; + appEdge?: { + select: AppEdgeSelect; + }; +}; +export interface DeleteAppPayload { + clientMutationId?: string | null; + app?: App | null; + appEdge?: AppEdge | null; +} +export type DeleteAppPayloadSelect = { + clientMutationId?: boolean; + app?: { + select: AppSelect; + }; + appEdge?: { + select: AppEdgeSelect; + }; +}; +export interface CreateConnectedAccountsModulePayload { + clientMutationId?: string | null; + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export type CreateConnectedAccountsModulePayloadSelect = { + clientMutationId?: boolean; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; + }; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; + }; +}; +export interface UpdateConnectedAccountsModulePayload { + clientMutationId?: string | null; + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export type UpdateConnectedAccountsModulePayloadSelect = { + clientMutationId?: boolean; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; + }; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; + }; +}; +export interface DeleteConnectedAccountsModulePayload { + clientMutationId?: string | null; + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export type DeleteConnectedAccountsModulePayloadSelect = { + clientMutationId?: boolean; + connectedAccountsModule?: { + select: ConnectedAccountsModuleSelect; + }; + connectedAccountsModuleEdge?: { + select: ConnectedAccountsModuleEdgeSelect; + }; +}; +export interface CreateCryptoAddressesModulePayload { + clientMutationId?: string | null; + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export type CreateCryptoAddressesModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; + }; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; + }; +}; +export interface UpdateCryptoAddressesModulePayload { + clientMutationId?: string | null; + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export type UpdateCryptoAddressesModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; + }; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; + }; +}; +export interface DeleteCryptoAddressesModulePayload { + clientMutationId?: string | null; + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export type DeleteCryptoAddressesModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; + }; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; + }; +}; +export interface CreateCryptoAuthModulePayload { + clientMutationId?: string | null; + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export type CreateCryptoAuthModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; + }; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; + }; +}; +export interface UpdateCryptoAuthModulePayload { + clientMutationId?: string | null; + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export type UpdateCryptoAuthModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; + }; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; + }; +}; +export interface DeleteCryptoAuthModulePayload { + clientMutationId?: string | null; + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export type DeleteCryptoAuthModulePayloadSelect = { + clientMutationId?: boolean; + cryptoAuthModule?: { + select: CryptoAuthModuleSelect; + }; + cryptoAuthModuleEdge?: { + select: CryptoAuthModuleEdgeSelect; + }; +}; +export interface CreateDefaultIdsModulePayload { + clientMutationId?: string | null; + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export type CreateDefaultIdsModulePayloadSelect = { + clientMutationId?: boolean; + defaultIdsModule?: { + select: DefaultIdsModuleSelect; + }; + defaultIdsModuleEdge?: { + select: DefaultIdsModuleEdgeSelect; + }; +}; +export interface UpdateDefaultIdsModulePayload { + clientMutationId?: string | null; + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export type UpdateDefaultIdsModulePayloadSelect = { + clientMutationId?: boolean; + defaultIdsModule?: { + select: DefaultIdsModuleSelect; + }; + defaultIdsModuleEdge?: { + select: DefaultIdsModuleEdgeSelect; + }; +}; +export interface DeleteDefaultIdsModulePayload { + clientMutationId?: string | null; + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export type DeleteDefaultIdsModulePayloadSelect = { + clientMutationId?: boolean; + defaultIdsModule?: { + select: DefaultIdsModuleSelect; + }; + defaultIdsModuleEdge?: { + select: DefaultIdsModuleEdgeSelect; + }; +}; +export interface CreateDenormalizedTableFieldPayload { + clientMutationId?: string | null; + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export type CreateDenormalizedTableFieldPayloadSelect = { + clientMutationId?: boolean; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; + }; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; + }; +}; +export interface UpdateDenormalizedTableFieldPayload { + clientMutationId?: string | null; + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export type UpdateDenormalizedTableFieldPayloadSelect = { + clientMutationId?: boolean; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; + }; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; + }; +}; +export interface DeleteDenormalizedTableFieldPayload { + clientMutationId?: string | null; + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export type DeleteDenormalizedTableFieldPayloadSelect = { + clientMutationId?: boolean; + denormalizedTableField?: { + select: DenormalizedTableFieldSelect; + }; + denormalizedTableFieldEdge?: { + select: DenormalizedTableFieldEdgeSelect; + }; +}; +export interface CreateEmailsModulePayload { + clientMutationId?: string | null; + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export type CreateEmailsModulePayloadSelect = { + clientMutationId?: boolean; + emailsModule?: { + select: EmailsModuleSelect; + }; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; + }; +}; +export interface UpdateEmailsModulePayload { + clientMutationId?: string | null; + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export type UpdateEmailsModulePayloadSelect = { + clientMutationId?: boolean; + emailsModule?: { + select: EmailsModuleSelect; + }; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; + }; +}; +export interface DeleteEmailsModulePayload { + clientMutationId?: string | null; + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export type DeleteEmailsModulePayloadSelect = { + clientMutationId?: boolean; + emailsModule?: { + select: EmailsModuleSelect; + }; + emailsModuleEdge?: { + select: EmailsModuleEdgeSelect; + }; +}; +export interface CreateEncryptedSecretsModulePayload { + clientMutationId?: string | null; + encryptedSecretsModule?: EncryptedSecretsModule | null; + encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; +} +export type CreateEncryptedSecretsModulePayloadSelect = { + clientMutationId?: boolean; + encryptedSecretsModule?: { + select: EncryptedSecretsModuleSelect; + }; + encryptedSecretsModuleEdge?: { + select: EncryptedSecretsModuleEdgeSelect; + }; +}; +export interface UpdateEncryptedSecretsModulePayload { + clientMutationId?: string | null; + encryptedSecretsModule?: EncryptedSecretsModule | null; + encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; +} +export type UpdateEncryptedSecretsModulePayloadSelect = { + clientMutationId?: boolean; + encryptedSecretsModule?: { + select: EncryptedSecretsModuleSelect; + }; + encryptedSecretsModuleEdge?: { + select: EncryptedSecretsModuleEdgeSelect; + }; +}; +export interface DeleteEncryptedSecretsModulePayload { + clientMutationId?: string | null; + encryptedSecretsModule?: EncryptedSecretsModule | null; + encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; +} +export type DeleteEncryptedSecretsModulePayloadSelect = { + clientMutationId?: boolean; + encryptedSecretsModule?: { + select: EncryptedSecretsModuleSelect; + }; + encryptedSecretsModuleEdge?: { + select: EncryptedSecretsModuleEdgeSelect; + }; +}; +export interface CreateFieldModulePayload { + clientMutationId?: string | null; + fieldModule?: FieldModule | null; + fieldModuleEdge?: FieldModuleEdge | null; +} +export type CreateFieldModulePayloadSelect = { + clientMutationId?: boolean; + fieldModule?: { + select: FieldModuleSelect; + }; + fieldModuleEdge?: { + select: FieldModuleEdgeSelect; + }; +}; +export interface UpdateFieldModulePayload { + clientMutationId?: string | null; + fieldModule?: FieldModule | null; + fieldModuleEdge?: FieldModuleEdge | null; +} +export type UpdateFieldModulePayloadSelect = { + clientMutationId?: boolean; + fieldModule?: { + select: FieldModuleSelect; + }; + fieldModuleEdge?: { + select: FieldModuleEdgeSelect; + }; +}; +export interface DeleteFieldModulePayload { + clientMutationId?: string | null; + fieldModule?: FieldModule | null; + fieldModuleEdge?: FieldModuleEdge | null; +} +export type DeleteFieldModulePayloadSelect = { + clientMutationId?: boolean; + fieldModule?: { + select: FieldModuleSelect; + }; + fieldModuleEdge?: { + select: FieldModuleEdgeSelect; + }; +}; +export interface CreateInvitesModulePayload { + clientMutationId?: string | null; + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type CreateInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface UpdateInvitesModulePayload { + clientMutationId?: string | null; + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type UpdateInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface DeleteInvitesModulePayload { + clientMutationId?: string | null; + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type DeleteInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface CreateLevelsModulePayload { + clientMutationId?: string | null; + levelsModule?: LevelsModule | null; + levelsModuleEdge?: LevelsModuleEdge | null; +} +export type CreateLevelsModulePayloadSelect = { + clientMutationId?: boolean; + levelsModule?: { + select: LevelsModuleSelect; + }; + levelsModuleEdge?: { + select: LevelsModuleEdgeSelect; + }; +}; +export interface UpdateLevelsModulePayload { + clientMutationId?: string | null; + levelsModule?: LevelsModule | null; + levelsModuleEdge?: LevelsModuleEdge | null; +} +export type UpdateLevelsModulePayloadSelect = { + clientMutationId?: boolean; + levelsModule?: { + select: LevelsModuleSelect; + }; + levelsModuleEdge?: { + select: LevelsModuleEdgeSelect; + }; +}; +export interface DeleteLevelsModulePayload { + clientMutationId?: string | null; + levelsModule?: LevelsModule | null; + levelsModuleEdge?: LevelsModuleEdge | null; +} +export type DeleteLevelsModulePayloadSelect = { + clientMutationId?: boolean; + levelsModule?: { + select: LevelsModuleSelect; + }; + levelsModuleEdge?: { + select: LevelsModuleEdgeSelect; + }; +}; +export interface CreateLimitsModulePayload { + clientMutationId?: string | null; + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; +} +export type CreateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + limitsModule?: { + select: LimitsModuleSelect; + }; + limitsModuleEdge?: { + select: LimitsModuleEdgeSelect; + }; +}; +export interface UpdateLimitsModulePayload { + clientMutationId?: string | null; + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; +} +export type UpdateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + limitsModule?: { + select: LimitsModuleSelect; + }; + limitsModuleEdge?: { + select: LimitsModuleEdgeSelect; + }; +}; +export interface DeleteLimitsModulePayload { + clientMutationId?: string | null; + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; +} +export type DeleteLimitsModulePayloadSelect = { + clientMutationId?: boolean; + limitsModule?: { + select: LimitsModuleSelect; + }; + limitsModuleEdge?: { + select: LimitsModuleEdgeSelect; + }; +}; +export interface CreateMembershipTypesModulePayload { + clientMutationId?: string | null; + membershipTypesModule?: MembershipTypesModule | null; + membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; +} +export type CreateMembershipTypesModulePayloadSelect = { + clientMutationId?: boolean; + membershipTypesModule?: { + select: MembershipTypesModuleSelect; + }; + membershipTypesModuleEdge?: { + select: MembershipTypesModuleEdgeSelect; + }; +}; +export interface UpdateMembershipTypesModulePayload { + clientMutationId?: string | null; + membershipTypesModule?: MembershipTypesModule | null; + membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; +} +export type UpdateMembershipTypesModulePayloadSelect = { + clientMutationId?: boolean; + membershipTypesModule?: { + select: MembershipTypesModuleSelect; + }; + membershipTypesModuleEdge?: { + select: MembershipTypesModuleEdgeSelect; + }; +}; +export interface DeleteMembershipTypesModulePayload { + clientMutationId?: string | null; + membershipTypesModule?: MembershipTypesModule | null; + membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; +} +export type DeleteMembershipTypesModulePayloadSelect = { + clientMutationId?: boolean; + membershipTypesModule?: { + select: MembershipTypesModuleSelect; + }; + membershipTypesModuleEdge?: { + select: MembershipTypesModuleEdgeSelect; + }; +}; +export interface CreateMembershipsModulePayload { + clientMutationId?: string | null; + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} +export type CreateMembershipsModulePayloadSelect = { + clientMutationId?: boolean; + membershipsModule?: { + select: MembershipsModuleSelect; + }; + membershipsModuleEdge?: { + select: MembershipsModuleEdgeSelect; + }; +}; +export interface UpdateMembershipsModulePayload { + clientMutationId?: string | null; + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} +export type UpdateMembershipsModulePayloadSelect = { + clientMutationId?: boolean; + membershipsModule?: { + select: MembershipsModuleSelect; + }; + membershipsModuleEdge?: { + select: MembershipsModuleEdgeSelect; + }; +}; +export interface DeleteMembershipsModulePayload { + clientMutationId?: string | null; + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} +export type DeleteMembershipsModulePayloadSelect = { + clientMutationId?: boolean; + membershipsModule?: { + select: MembershipsModuleSelect; + }; + membershipsModuleEdge?: { + select: MembershipsModuleEdgeSelect; + }; +}; +export interface CreatePermissionsModulePayload { + clientMutationId?: string | null; + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; +} +export type CreatePermissionsModulePayloadSelect = { + clientMutationId?: boolean; + permissionsModule?: { + select: PermissionsModuleSelect; + }; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; + }; +}; +export interface UpdatePermissionsModulePayload { + clientMutationId?: string | null; + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; +} +export type UpdatePermissionsModulePayloadSelect = { + clientMutationId?: boolean; + permissionsModule?: { + select: PermissionsModuleSelect; + }; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; + }; +}; +export interface DeletePermissionsModulePayload { + clientMutationId?: string | null; + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; +} +export type DeletePermissionsModulePayloadSelect = { + clientMutationId?: boolean; + permissionsModule?: { + select: PermissionsModuleSelect; + }; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; + }; +}; +export interface CreatePhoneNumbersModulePayload { + clientMutationId?: string | null; + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; +} +export type CreatePhoneNumbersModulePayloadSelect = { + clientMutationId?: boolean; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; + }; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; + }; +}; +export interface UpdatePhoneNumbersModulePayload { + clientMutationId?: string | null; + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; +} +export type UpdatePhoneNumbersModulePayloadSelect = { + clientMutationId?: boolean; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; + }; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; + }; +}; +export interface DeletePhoneNumbersModulePayload { + clientMutationId?: string | null; + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; +} +export type DeletePhoneNumbersModulePayloadSelect = { + clientMutationId?: boolean; + phoneNumbersModule?: { + select: PhoneNumbersModuleSelect; + }; + phoneNumbersModuleEdge?: { + select: PhoneNumbersModuleEdgeSelect; + }; +}; +export interface CreateProfilesModulePayload { + clientMutationId?: string | null; + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export type CreateProfilesModulePayloadSelect = { + clientMutationId?: boolean; + profilesModule?: { + select: ProfilesModuleSelect; + }; + profilesModuleEdge?: { + select: ProfilesModuleEdgeSelect; + }; +}; +export interface UpdateProfilesModulePayload { + clientMutationId?: string | null; + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export type UpdateProfilesModulePayloadSelect = { + clientMutationId?: boolean; + profilesModule?: { + select: ProfilesModuleSelect; + }; + profilesModuleEdge?: { + select: ProfilesModuleEdgeSelect; + }; +}; +export interface DeleteProfilesModulePayload { + clientMutationId?: string | null; + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export type DeleteProfilesModulePayloadSelect = { + clientMutationId?: boolean; + profilesModule?: { + select: ProfilesModuleSelect; + }; + profilesModuleEdge?: { + select: ProfilesModuleEdgeSelect; + }; +}; +export interface CreateRlsModulePayload { + clientMutationId?: string | null; + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export type CreateRlsModulePayloadSelect = { + clientMutationId?: boolean; + rlsModule?: { + select: RlsModuleSelect; + }; + rlsModuleEdge?: { + select: RlsModuleEdgeSelect; + }; +}; +export interface UpdateRlsModulePayload { + clientMutationId?: string | null; + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export type UpdateRlsModulePayloadSelect = { + clientMutationId?: boolean; + rlsModule?: { + select: RlsModuleSelect; + }; + rlsModuleEdge?: { + select: RlsModuleEdgeSelect; + }; +}; +export interface DeleteRlsModulePayload { + clientMutationId?: string | null; + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export type DeleteRlsModulePayloadSelect = { + clientMutationId?: boolean; + rlsModule?: { + select: RlsModuleSelect; + }; + rlsModuleEdge?: { + select: RlsModuleEdgeSelect; + }; +}; +export interface CreateSecretsModulePayload { + clientMutationId?: string | null; + secretsModule?: SecretsModule | null; + secretsModuleEdge?: SecretsModuleEdge | null; +} +export type CreateSecretsModulePayloadSelect = { + clientMutationId?: boolean; + secretsModule?: { + select: SecretsModuleSelect; + }; + secretsModuleEdge?: { + select: SecretsModuleEdgeSelect; + }; +}; +export interface UpdateSecretsModulePayload { + clientMutationId?: string | null; + secretsModule?: SecretsModule | null; + secretsModuleEdge?: SecretsModuleEdge | null; +} +export type UpdateSecretsModulePayloadSelect = { + clientMutationId?: boolean; + secretsModule?: { + select: SecretsModuleSelect; + }; + secretsModuleEdge?: { + select: SecretsModuleEdgeSelect; + }; +}; +export interface DeleteSecretsModulePayload { + clientMutationId?: string | null; + secretsModule?: SecretsModule | null; + secretsModuleEdge?: SecretsModuleEdge | null; +} +export type DeleteSecretsModulePayloadSelect = { + clientMutationId?: boolean; + secretsModule?: { + select: SecretsModuleSelect; + }; + secretsModuleEdge?: { + select: SecretsModuleEdgeSelect; + }; +}; +export interface CreateSessionsModulePayload { + clientMutationId?: string | null; + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} +export type CreateSessionsModulePayloadSelect = { + clientMutationId?: boolean; + sessionsModule?: { + select: SessionsModuleSelect; + }; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; + }; +}; +export interface UpdateSessionsModulePayload { + clientMutationId?: string | null; + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} +export type UpdateSessionsModulePayloadSelect = { + clientMutationId?: boolean; + sessionsModule?: { + select: SessionsModuleSelect; + }; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; + }; +}; +export interface DeleteSessionsModulePayload { + clientMutationId?: string | null; + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} +export type DeleteSessionsModulePayloadSelect = { + clientMutationId?: boolean; + sessionsModule?: { + select: SessionsModuleSelect; + }; + sessionsModuleEdge?: { + select: SessionsModuleEdgeSelect; + }; +}; +export interface CreateUserAuthModulePayload { + clientMutationId?: string | null; + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export type CreateUserAuthModulePayloadSelect = { + clientMutationId?: boolean; + userAuthModule?: { + select: UserAuthModuleSelect; + }; + userAuthModuleEdge?: { + select: UserAuthModuleEdgeSelect; + }; +}; +export interface UpdateUserAuthModulePayload { + clientMutationId?: string | null; + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export type UpdateUserAuthModulePayloadSelect = { + clientMutationId?: boolean; + userAuthModule?: { + select: UserAuthModuleSelect; + }; + userAuthModuleEdge?: { + select: UserAuthModuleEdgeSelect; + }; +}; +export interface DeleteUserAuthModulePayload { + clientMutationId?: string | null; + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export type DeleteUserAuthModulePayloadSelect = { + clientMutationId?: boolean; + userAuthModule?: { + select: UserAuthModuleSelect; + }; + userAuthModuleEdge?: { + select: UserAuthModuleEdgeSelect; + }; +}; +export interface CreateUsersModulePayload { + clientMutationId?: string | null; + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export type CreateUsersModulePayloadSelect = { + clientMutationId?: boolean; + usersModule?: { + select: UsersModuleSelect; + }; + usersModuleEdge?: { + select: UsersModuleEdgeSelect; + }; +}; +export interface UpdateUsersModulePayload { + clientMutationId?: string | null; + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export type UpdateUsersModulePayloadSelect = { + clientMutationId?: boolean; + usersModule?: { + select: UsersModuleSelect; + }; + usersModuleEdge?: { + select: UsersModuleEdgeSelect; + }; +}; +export interface DeleteUsersModulePayload { + clientMutationId?: string | null; + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export type DeleteUsersModulePayloadSelect = { + clientMutationId?: boolean; + usersModule?: { + select: UsersModuleSelect; + }; + usersModuleEdge?: { + select: UsersModuleEdgeSelect; + }; +}; +export interface CreateUuidModulePayload { + clientMutationId?: string | null; + uuidModule?: UuidModule | null; + uuidModuleEdge?: UuidModuleEdge | null; +} +export type CreateUuidModulePayloadSelect = { + clientMutationId?: boolean; + uuidModule?: { + select: UuidModuleSelect; + }; + uuidModuleEdge?: { + select: UuidModuleEdgeSelect; + }; +}; +export interface UpdateUuidModulePayload { + clientMutationId?: string | null; + uuidModule?: UuidModule | null; + uuidModuleEdge?: UuidModuleEdge | null; +} +export type UpdateUuidModulePayloadSelect = { + clientMutationId?: boolean; + uuidModule?: { + select: UuidModuleSelect; + }; + uuidModuleEdge?: { + select: UuidModuleEdgeSelect; + }; +}; +export interface DeleteUuidModulePayload { + clientMutationId?: string | null; + uuidModule?: UuidModule | null; + uuidModuleEdge?: UuidModuleEdge | null; +} +export type DeleteUuidModulePayloadSelect = { + clientMutationId?: boolean; + uuidModule?: { + select: UuidModuleSelect; + }; + uuidModuleEdge?: { + select: UuidModuleEdgeSelect; + }; +}; +export interface CreateDatabaseProvisionModulePayload { + clientMutationId?: string | null; + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export type CreateDatabaseProvisionModulePayloadSelect = { + clientMutationId?: boolean; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; + }; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; + }; +}; +export interface UpdateDatabaseProvisionModulePayload { + clientMutationId?: string | null; + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export type UpdateDatabaseProvisionModulePayloadSelect = { + clientMutationId?: boolean; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; + }; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; + }; +}; +export interface DeleteDatabaseProvisionModulePayload { + clientMutationId?: string | null; + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export type DeleteDatabaseProvisionModulePayloadSelect = { + clientMutationId?: boolean; + databaseProvisionModule?: { + select: DatabaseProvisionModuleSelect; + }; + databaseProvisionModuleEdge?: { + select: DatabaseProvisionModuleEdgeSelect; + }; +}; +export interface CreateAppAdminGrantPayload { + clientMutationId?: string | null; + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export type CreateAppAdminGrantPayloadSelect = { + clientMutationId?: boolean; + appAdminGrant?: { + select: AppAdminGrantSelect; + }; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; + }; +}; +export interface UpdateAppAdminGrantPayload { + clientMutationId?: string | null; + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export type UpdateAppAdminGrantPayloadSelect = { + clientMutationId?: boolean; + appAdminGrant?: { + select: AppAdminGrantSelect; + }; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; + }; +}; +export interface DeleteAppAdminGrantPayload { + clientMutationId?: string | null; + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export type DeleteAppAdminGrantPayloadSelect = { + clientMutationId?: boolean; + appAdminGrant?: { + select: AppAdminGrantSelect; + }; + appAdminGrantEdge?: { + select: AppAdminGrantEdgeSelect; + }; +}; +export interface CreateAppOwnerGrantPayload { + clientMutationId?: string | null; + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type CreateAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface UpdateAppOwnerGrantPayload { + clientMutationId?: string | null; + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type UpdateAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface DeleteAppOwnerGrantPayload { + clientMutationId?: string | null; + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export type DeleteAppOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + appOwnerGrant?: { + select: AppOwnerGrantSelect; + }; + appOwnerGrantEdge?: { + select: AppOwnerGrantEdgeSelect; + }; +}; +export interface CreateAppGrantPayload { + clientMutationId?: string | null; + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export type CreateAppGrantPayloadSelect = { + clientMutationId?: boolean; + appGrant?: { + select: AppGrantSelect; + }; + appGrantEdge?: { + select: AppGrantEdgeSelect; + }; +}; +export interface UpdateAppGrantPayload { + clientMutationId?: string | null; + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export type UpdateAppGrantPayloadSelect = { + clientMutationId?: boolean; + appGrant?: { + select: AppGrantSelect; + }; + appGrantEdge?: { + select: AppGrantEdgeSelect; + }; +}; +export interface DeleteAppGrantPayload { + clientMutationId?: string | null; + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export type DeleteAppGrantPayloadSelect = { + clientMutationId?: boolean; + appGrant?: { + select: AppGrantSelect; + }; + appGrantEdge?: { + select: AppGrantEdgeSelect; + }; +}; +export interface CreateOrgMembershipPayload { + clientMutationId?: string | null; + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export type CreateOrgMembershipPayloadSelect = { + clientMutationId?: boolean; + orgMembership?: { + select: OrgMembershipSelect; + }; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; + }; +}; +export interface UpdateOrgMembershipPayload { + clientMutationId?: string | null; + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export type UpdateOrgMembershipPayloadSelect = { + clientMutationId?: boolean; + orgMembership?: { + select: OrgMembershipSelect; + }; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; + }; +}; +export interface DeleteOrgMembershipPayload { + clientMutationId?: string | null; + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export type DeleteOrgMembershipPayloadSelect = { + clientMutationId?: boolean; + orgMembership?: { + select: OrgMembershipSelect; + }; + orgMembershipEdge?: { + select: OrgMembershipEdgeSelect; + }; +}; +export interface CreateOrgMemberPayload { + clientMutationId?: string | null; + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; +} +export type CreateOrgMemberPayloadSelect = { + clientMutationId?: boolean; + orgMember?: { + select: OrgMemberSelect; + }; + orgMemberEdge?: { + select: OrgMemberEdgeSelect; + }; +}; +export interface UpdateOrgMemberPayload { + clientMutationId?: string | null; + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; +} +export type UpdateOrgMemberPayloadSelect = { + clientMutationId?: boolean; + orgMember?: { + select: OrgMemberSelect; + }; + orgMemberEdge?: { + select: OrgMemberEdgeSelect; + }; +}; +export interface DeleteOrgMemberPayload { + clientMutationId?: string | null; + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; +} +export type DeleteOrgMemberPayloadSelect = { + clientMutationId?: boolean; + orgMember?: { + select: OrgMemberSelect; + }; + orgMemberEdge?: { + select: OrgMemberEdgeSelect; + }; +}; +export interface CreateOrgAdminGrantPayload { + clientMutationId?: string | null; + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export type CreateOrgAdminGrantPayloadSelect = { + clientMutationId?: boolean; + orgAdminGrant?: { + select: OrgAdminGrantSelect; + }; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; + }; +}; +export interface UpdateOrgAdminGrantPayload { + clientMutationId?: string | null; + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export type UpdateOrgAdminGrantPayloadSelect = { + clientMutationId?: boolean; + orgAdminGrant?: { + select: OrgAdminGrantSelect; + }; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; + }; +}; +export interface DeleteOrgAdminGrantPayload { + clientMutationId?: string | null; + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export type DeleteOrgAdminGrantPayloadSelect = { + clientMutationId?: boolean; + orgAdminGrant?: { + select: OrgAdminGrantSelect; + }; + orgAdminGrantEdge?: { + select: OrgAdminGrantEdgeSelect; + }; +}; +export interface CreateOrgOwnerGrantPayload { + clientMutationId?: string | null; + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export type CreateOrgOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; + }; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; + }; +}; +export interface UpdateOrgOwnerGrantPayload { + clientMutationId?: string | null; + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export type UpdateOrgOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; + }; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; + }; +}; +export interface DeleteOrgOwnerGrantPayload { + clientMutationId?: string | null; + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export type DeleteOrgOwnerGrantPayloadSelect = { + clientMutationId?: boolean; + orgOwnerGrant?: { + select: OrgOwnerGrantSelect; + }; + orgOwnerGrantEdge?: { + select: OrgOwnerGrantEdgeSelect; + }; +}; +export interface CreateOrgGrantPayload { + clientMutationId?: string | null; + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export type CreateOrgGrantPayloadSelect = { + clientMutationId?: boolean; + orgGrant?: { + select: OrgGrantSelect; + }; + orgGrantEdge?: { + select: OrgGrantEdgeSelect; + }; +}; +export interface UpdateOrgGrantPayload { + clientMutationId?: string | null; + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export type UpdateOrgGrantPayloadSelect = { + clientMutationId?: boolean; + orgGrant?: { + select: OrgGrantSelect; + }; + orgGrantEdge?: { + select: OrgGrantEdgeSelect; + }; +}; +export interface DeleteOrgGrantPayload { + clientMutationId?: string | null; + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export type DeleteOrgGrantPayloadSelect = { + clientMutationId?: boolean; + orgGrant?: { + select: OrgGrantSelect; + }; + orgGrantEdge?: { + select: OrgGrantEdgeSelect; + }; +}; +export interface CreateAppLimitPayload { + clientMutationId?: string | null; + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type CreateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface UpdateAppLimitPayload { + clientMutationId?: string | null; + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type UpdateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface DeleteAppLimitPayload { + clientMutationId?: string | null; + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type DeleteAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface CreateOrgLimitPayload { + clientMutationId?: string | null; + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type CreateOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; + }; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; + }; +}; +export interface UpdateOrgLimitPayload { + clientMutationId?: string | null; + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type UpdateOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; + }; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; + }; +}; +export interface DeleteOrgLimitPayload { + clientMutationId?: string | null; + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export type DeleteOrgLimitPayloadSelect = { + clientMutationId?: boolean; + orgLimit?: { + select: OrgLimitSelect; + }; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; + }; +}; +export interface CreateAppStepPayload { + clientMutationId?: string | null; + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export type CreateAppStepPayloadSelect = { + clientMutationId?: boolean; + appStep?: { + select: AppStepSelect; + }; + appStepEdge?: { + select: AppStepEdgeSelect; + }; +}; +export interface UpdateAppStepPayload { + clientMutationId?: string | null; + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export type UpdateAppStepPayloadSelect = { + clientMutationId?: boolean; + appStep?: { + select: AppStepSelect; + }; + appStepEdge?: { + select: AppStepEdgeSelect; + }; +}; +export interface DeleteAppStepPayload { + clientMutationId?: string | null; + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export type DeleteAppStepPayloadSelect = { + clientMutationId?: boolean; + appStep?: { + select: AppStepSelect; + }; + appStepEdge?: { + select: AppStepEdgeSelect; + }; +}; +export interface CreateAppAchievementPayload { + clientMutationId?: string | null; + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export type CreateAppAchievementPayloadSelect = { + clientMutationId?: boolean; + appAchievement?: { + select: AppAchievementSelect; + }; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; + }; +}; +export interface UpdateAppAchievementPayload { + clientMutationId?: string | null; + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export type UpdateAppAchievementPayloadSelect = { + clientMutationId?: boolean; + appAchievement?: { + select: AppAchievementSelect; + }; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; + }; +}; +export interface DeleteAppAchievementPayload { + clientMutationId?: string | null; + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export type DeleteAppAchievementPayloadSelect = { + clientMutationId?: boolean; + appAchievement?: { + select: AppAchievementSelect; + }; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; + }; +}; +export interface CreateInvitePayload { + clientMutationId?: string | null; + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export type CreateInvitePayloadSelect = { + clientMutationId?: boolean; + invite?: { + select: InviteSelect; + }; + inviteEdge?: { + select: InviteEdgeSelect; + }; +}; +export interface UpdateInvitePayload { + clientMutationId?: string | null; + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export type UpdateInvitePayloadSelect = { + clientMutationId?: boolean; + invite?: { + select: InviteSelect; + }; + inviteEdge?: { + select: InviteEdgeSelect; + }; +}; +export interface DeleteInvitePayload { + clientMutationId?: string | null; + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export type DeleteInvitePayloadSelect = { + clientMutationId?: boolean; + invite?: { + select: InviteSelect; + }; + inviteEdge?: { + select: InviteEdgeSelect; + }; +}; +export interface CreateClaimedInvitePayload { + clientMutationId?: string | null; + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export type CreateClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + claimedInvite?: { + select: ClaimedInviteSelect; + }; + claimedInviteEdge?: { + select: ClaimedInviteEdgeSelect; + }; +}; +export interface UpdateClaimedInvitePayload { + clientMutationId?: string | null; + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export type UpdateClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + claimedInvite?: { + select: ClaimedInviteSelect; + }; + claimedInviteEdge?: { + select: ClaimedInviteEdgeSelect; + }; +}; +export interface DeleteClaimedInvitePayload { + clientMutationId?: string | null; + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export type DeleteClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + claimedInvite?: { + select: ClaimedInviteSelect; + }; + claimedInviteEdge?: { + select: ClaimedInviteEdgeSelect; + }; +}; +export interface CreateOrgInvitePayload { + clientMutationId?: string | null; + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +export type CreateOrgInvitePayloadSelect = { + clientMutationId?: boolean; + orgInvite?: { + select: OrgInviteSelect; + }; + orgInviteEdge?: { + select: OrgInviteEdgeSelect; + }; +}; +export interface UpdateOrgInvitePayload { + clientMutationId?: string | null; + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +export type UpdateOrgInvitePayloadSelect = { + clientMutationId?: boolean; + orgInvite?: { + select: OrgInviteSelect; + }; + orgInviteEdge?: { + select: OrgInviteEdgeSelect; + }; +}; +export interface DeleteOrgInvitePayload { + clientMutationId?: string | null; + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +export type DeleteOrgInvitePayloadSelect = { + clientMutationId?: boolean; + orgInvite?: { + select: OrgInviteSelect; + }; + orgInviteEdge?: { + select: OrgInviteEdgeSelect; + }; +}; +export interface CreateOrgClaimedInvitePayload { + clientMutationId?: string | null; + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export type CreateOrgClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + orgClaimedInvite?: { + select: OrgClaimedInviteSelect; + }; + orgClaimedInviteEdge?: { + select: OrgClaimedInviteEdgeSelect; + }; +}; +export interface UpdateOrgClaimedInvitePayload { + clientMutationId?: string | null; + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export type UpdateOrgClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + orgClaimedInvite?: { + select: OrgClaimedInviteSelect; + }; + orgClaimedInviteEdge?: { + select: OrgClaimedInviteEdgeSelect; + }; +}; +export interface DeleteOrgClaimedInvitePayload { + clientMutationId?: string | null; + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export type DeleteOrgClaimedInvitePayloadSelect = { + clientMutationId?: boolean; + orgClaimedInvite?: { + select: OrgClaimedInviteSelect; + }; + orgClaimedInviteEdge?: { + select: OrgClaimedInviteEdgeSelect; + }; +}; +export interface CreateAppPermissionDefaultPayload { + clientMutationId?: string | null; + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export type CreateAppPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; + }; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; + }; +}; +export interface UpdateAppPermissionDefaultPayload { + clientMutationId?: string | null; + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export type UpdateAppPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; + }; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; + }; +}; +export interface DeleteAppPermissionDefaultPayload { + clientMutationId?: string | null; + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export type DeleteAppPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; + }; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; + }; +}; +export interface CreateRefPayload { + clientMutationId?: string | null; + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export type CreateRefPayloadSelect = { + clientMutationId?: boolean; + ref?: { + select: RefSelect; + }; + refEdge?: { + select: RefEdgeSelect; + }; +}; +export interface UpdateRefPayload { + clientMutationId?: string | null; + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export type UpdateRefPayloadSelect = { + clientMutationId?: boolean; + ref?: { + select: RefSelect; + }; + refEdge?: { + select: RefEdgeSelect; + }; +}; +export interface DeleteRefPayload { + clientMutationId?: string | null; + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export type DeleteRefPayloadSelect = { + clientMutationId?: boolean; + ref?: { + select: RefSelect; + }; + refEdge?: { + select: RefEdgeSelect; + }; +}; +export interface CreateStorePayload { + clientMutationId?: string | null; + store?: Store | null; + storeEdge?: StoreEdge | null; +} +export type CreateStorePayloadSelect = { + clientMutationId?: boolean; + store?: { + select: StoreSelect; + }; + storeEdge?: { + select: StoreEdgeSelect; + }; +}; +export interface UpdateStorePayload { + clientMutationId?: string | null; + store?: Store | null; + storeEdge?: StoreEdge | null; +} +export type UpdateStorePayloadSelect = { + clientMutationId?: boolean; + store?: { + select: StoreSelect; + }; + storeEdge?: { + select: StoreEdgeSelect; + }; +}; +export interface DeleteStorePayload { + clientMutationId?: string | null; + store?: Store | null; + storeEdge?: StoreEdge | null; +} +export type DeleteStorePayloadSelect = { + clientMutationId?: boolean; + store?: { + select: StoreSelect; + }; + storeEdge?: { + select: StoreEdgeSelect; + }; +}; +export interface CreateRoleTypePayload { + clientMutationId?: string | null; + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export type CreateRoleTypePayloadSelect = { + clientMutationId?: boolean; + roleType?: { + select: RoleTypeSelect; + }; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface UpdateRoleTypePayload { + clientMutationId?: string | null; + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export type UpdateRoleTypePayloadSelect = { + clientMutationId?: boolean; + roleType?: { + select: RoleTypeSelect; + }; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface DeleteRoleTypePayload { + clientMutationId?: string | null; + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export type DeleteRoleTypePayloadSelect = { + clientMutationId?: boolean; + roleType?: { + select: RoleTypeSelect; + }; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface CreateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type CreateOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; + }; +}; +export interface UpdateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type UpdateOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; + }; +}; +export interface DeleteOrgPermissionDefaultPayload { + clientMutationId?: string | null; + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type DeleteOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; + }; +}; +export interface CreateAppLimitDefaultPayload { + clientMutationId?: string | null; + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type CreateAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; + }; +}; +export interface UpdateAppLimitDefaultPayload { + clientMutationId?: string | null; + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type UpdateAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; + }; +}; +export interface DeleteAppLimitDefaultPayload { + clientMutationId?: string | null; + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type DeleteAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; + }; +}; +export interface CreateOrgLimitDefaultPayload { + clientMutationId?: string | null; + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export type CreateOrgLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; + }; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; + }; +}; +export interface UpdateOrgLimitDefaultPayload { + clientMutationId?: string | null; + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export type UpdateOrgLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; + }; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; + }; +}; +export interface DeleteOrgLimitDefaultPayload { + clientMutationId?: string | null; + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export type DeleteOrgLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; + }; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; + }; +}; +export interface CreateCryptoAddressPayload { + clientMutationId?: string | null; + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type CreateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface UpdateCryptoAddressPayload { + clientMutationId?: string | null; + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type UpdateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface DeleteCryptoAddressPayload { + clientMutationId?: string | null; + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type DeleteCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface CreateMembershipTypePayload { + clientMutationId?: string | null; + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export type CreateMembershipTypePayloadSelect = { + clientMutationId?: boolean; + membershipType?: { + select: MembershipTypeSelect; + }; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; + }; +}; +export interface UpdateMembershipTypePayload { + clientMutationId?: string | null; + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export type UpdateMembershipTypePayloadSelect = { + clientMutationId?: boolean; + membershipType?: { + select: MembershipTypeSelect; + }; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; + }; +}; +export interface DeleteMembershipTypePayload { + clientMutationId?: string | null; + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export type DeleteMembershipTypePayloadSelect = { + clientMutationId?: boolean; + membershipType?: { + select: MembershipTypeSelect; + }; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; + }; +}; +export interface CreateConnectedAccountPayload { + clientMutationId?: string | null; + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} +export type CreateConnectedAccountPayloadSelect = { + clientMutationId?: boolean; + connectedAccount?: { + select: ConnectedAccountSelect; + }; + connectedAccountEdge?: { + select: ConnectedAccountEdgeSelect; + }; +}; +export interface UpdateConnectedAccountPayload { + clientMutationId?: string | null; + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} +export type UpdateConnectedAccountPayloadSelect = { + clientMutationId?: boolean; + connectedAccount?: { + select: ConnectedAccountSelect; + }; + connectedAccountEdge?: { + select: ConnectedAccountEdgeSelect; + }; +}; +export interface DeleteConnectedAccountPayload { + clientMutationId?: string | null; + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} +export type DeleteConnectedAccountPayloadSelect = { + clientMutationId?: boolean; + connectedAccount?: { + select: ConnectedAccountSelect; + }; + connectedAccountEdge?: { + select: ConnectedAccountEdgeSelect; + }; +}; +export interface CreatePhoneNumberPayload { + clientMutationId?: string | null; + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export type CreatePhoneNumberPayloadSelect = { + clientMutationId?: boolean; + phoneNumber?: { + select: PhoneNumberSelect; + }; + phoneNumberEdge?: { + select: PhoneNumberEdgeSelect; + }; +}; +export interface UpdatePhoneNumberPayload { + clientMutationId?: string | null; + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export type UpdatePhoneNumberPayloadSelect = { + clientMutationId?: boolean; + phoneNumber?: { + select: PhoneNumberSelect; + }; + phoneNumberEdge?: { + select: PhoneNumberEdgeSelect; + }; +}; +export interface DeletePhoneNumberPayload { + clientMutationId?: string | null; + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export type DeletePhoneNumberPayloadSelect = { + clientMutationId?: boolean; + phoneNumber?: { + select: PhoneNumberSelect; + }; + phoneNumberEdge?: { + select: PhoneNumberEdgeSelect; + }; +}; +export interface CreateAppMembershipDefaultPayload { + clientMutationId?: string | null; + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type CreateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateAppMembershipDefaultPayload { + clientMutationId?: string | null; + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type UpdateAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface DeleteAppMembershipDefaultPayload { + clientMutationId?: string | null; + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export type DeleteAppMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + appMembershipDefault?: { + select: AppMembershipDefaultSelect; + }; + appMembershipDefaultEdge?: { + select: AppMembershipDefaultEdgeSelect; + }; +}; +export interface CreateNodeTypeRegistryPayload { + clientMutationId?: string | null; + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type CreateNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface UpdateNodeTypeRegistryPayload { + clientMutationId?: string | null; + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type UpdateNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface DeleteNodeTypeRegistryPayload { + clientMutationId?: string | null; + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type DeleteNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface CreateCommitPayload { + clientMutationId?: string | null; + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export type CreateCommitPayloadSelect = { + clientMutationId?: boolean; + commit?: { + select: CommitSelect; + }; + commitEdge?: { + select: CommitEdgeSelect; + }; +}; +export interface UpdateCommitPayload { + clientMutationId?: string | null; + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export type UpdateCommitPayloadSelect = { + clientMutationId?: boolean; + commit?: { + select: CommitSelect; + }; + commitEdge?: { + select: CommitEdgeSelect; + }; +}; +export interface DeleteCommitPayload { + clientMutationId?: string | null; + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export type DeleteCommitPayloadSelect = { + clientMutationId?: boolean; + commit?: { + select: CommitSelect; + }; + commitEdge?: { + select: CommitEdgeSelect; + }; +}; +export interface CreateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type CreateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; + }; +}; +export interface UpdateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type UpdateOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; + }; +}; +export interface DeleteOrgMembershipDefaultPayload { + clientMutationId?: string | null; + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export type DeleteOrgMembershipDefaultPayloadSelect = { + clientMutationId?: boolean; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; + }; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; + }; +}; +export interface CreateEmailPayload { + clientMutationId?: string | null; + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type CreateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface UpdateEmailPayload { + clientMutationId?: string | null; + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type UpdateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface DeleteEmailPayload { + clientMutationId?: string | null; + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type DeleteEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface CreateAuditLogPayload { + clientMutationId?: string | null; + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export type CreateAuditLogPayloadSelect = { + clientMutationId?: boolean; + auditLog?: { + select: AuditLogSelect; + }; + auditLogEdge?: { + select: AuditLogEdgeSelect; + }; +}; +export interface UpdateAuditLogPayload { + clientMutationId?: string | null; + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export type UpdateAuditLogPayloadSelect = { + clientMutationId?: boolean; + auditLog?: { + select: AuditLogSelect; + }; + auditLogEdge?: { + select: AuditLogEdgeSelect; + }; +}; +export interface DeleteAuditLogPayload { + clientMutationId?: string | null; + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export type DeleteAuditLogPayloadSelect = { + clientMutationId?: boolean; + auditLog?: { + select: AuditLogSelect; + }; + auditLogEdge?: { + select: AuditLogEdgeSelect; + }; +}; +export interface CreateAppLevelPayload { + clientMutationId?: string | null; + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type CreateAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface UpdateAppLevelPayload { + clientMutationId?: string | null; + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type UpdateAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface DeleteAppLevelPayload { + clientMutationId?: string | null; + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type DeleteAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface CreateSqlMigrationPayload { + clientMutationId?: string | null; + sqlMigration?: SqlMigration | null; +} +export type CreateSqlMigrationPayloadSelect = { + clientMutationId?: boolean; + sqlMigration?: { + select: SqlMigrationSelect; + }; +}; +export interface CreateAstMigrationPayload { + clientMutationId?: string | null; + astMigration?: AstMigration | null; +} +export type CreateAstMigrationPayloadSelect = { + clientMutationId?: boolean; + astMigration?: { + select: AstMigrationSelect; + }; +}; +export interface CreateAppMembershipPayload { + clientMutationId?: string | null; + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type CreateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface UpdateAppMembershipPayload { + clientMutationId?: string | null; + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type UpdateAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface DeleteAppMembershipPayload { + clientMutationId?: string | null; + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export type DeleteAppMembershipPayloadSelect = { + clientMutationId?: boolean; + appMembership?: { + select: AppMembershipSelect; + }; + appMembershipEdge?: { + select: AppMembershipEdgeSelect; + }; +}; +export interface CreateUserPayload { + clientMutationId?: string | null; + user?: User | null; + userEdge?: UserEdge | null; +} +export type CreateUserPayloadSelect = { + clientMutationId?: boolean; + user?: { + select: UserSelect; + }; + userEdge?: { + select: UserEdgeSelect; + }; +}; +export interface UpdateUserPayload { + clientMutationId?: string | null; + user?: User | null; + userEdge?: UserEdge | null; +} +export type UpdateUserPayloadSelect = { + clientMutationId?: boolean; + user?: { + select: UserSelect; + }; + userEdge?: { + select: UserEdgeSelect; + }; +}; +export interface DeleteUserPayload { + clientMutationId?: string | null; + user?: User | null; + userEdge?: UserEdge | null; +} +export type DeleteUserPayloadSelect = { + clientMutationId?: boolean; + user?: { + select: UserSelect; + }; + userEdge?: { + select: UserEdgeSelect; + }; +}; +export interface CreateHierarchyModulePayload { + clientMutationId?: string | null; + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export type CreateHierarchyModulePayloadSelect = { + clientMutationId?: boolean; + hierarchyModule?: { + select: HierarchyModuleSelect; + }; + hierarchyModuleEdge?: { + select: HierarchyModuleEdgeSelect; + }; +}; +export interface UpdateHierarchyModulePayload { + clientMutationId?: string | null; + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export type UpdateHierarchyModulePayloadSelect = { + clientMutationId?: boolean; + hierarchyModule?: { + select: HierarchyModuleSelect; + }; + hierarchyModuleEdge?: { + select: HierarchyModuleEdgeSelect; + }; +}; +export interface DeleteHierarchyModulePayload { + clientMutationId?: string | null; + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export type DeleteHierarchyModulePayloadSelect = { + clientMutationId?: boolean; + hierarchyModule?: { + select: HierarchyModuleSelect; + }; + hierarchyModuleEdge?: { + select: HierarchyModuleEdgeSelect; + }; +}; +export interface AppPermissionEdge { + cursor?: string | null; + node?: AppPermission | null; +} +export type AppPermissionEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionSelect; + }; +}; +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} +export type PageInfoSelect = { + hasNextPage?: boolean; + hasPreviousPage?: boolean; + startCursor?: boolean; + endCursor?: boolean; +}; +export interface OrgPermissionEdge { + cursor?: string | null; + node?: OrgPermission | null; +} +export type OrgPermissionEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgPermissionSelect; + }; +}; +export interface ObjectEdge { + cursor?: string | null; + node?: Object | null; +} +export type ObjectEdgeSelect = { + cursor?: boolean; + node?: { + select: ObjectSelect; + }; +}; +export interface AppLevelRequirementEdge { + cursor?: string | null; + 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; +}; +export interface DatabaseEdge { + cursor?: string | null; + node?: Database | null; +} +export type DatabaseEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseSelect; + }; +}; +export interface SchemaEdge { + cursor?: string | null; + node?: Schema | null; +} +export type SchemaEdgeSelect = { + cursor?: boolean; + node?: { + select: SchemaSelect; + }; +}; +export interface TableEdge { + cursor?: string | null; + node?: Table | null; +} +export type TableEdgeSelect = { + cursor?: boolean; + node?: { + select: TableSelect; + }; +}; +export interface CheckConstraintEdge { + cursor?: string | null; + node?: CheckConstraint | null; +} +export type CheckConstraintEdgeSelect = { + cursor?: boolean; + node?: { + select: CheckConstraintSelect; + }; +}; +export interface FieldEdge { + cursor?: string | null; + node?: Field | null; +} +export type FieldEdgeSelect = { + cursor?: boolean; + node?: { + select: FieldSelect; + }; +}; +export interface ForeignKeyConstraintEdge { + cursor?: string | null; + node?: ForeignKeyConstraint | null; +} +export type ForeignKeyConstraintEdgeSelect = { + cursor?: boolean; + node?: { + select: ForeignKeyConstraintSelect; + }; +}; +export interface FullTextSearchEdge { + cursor?: string | null; + node?: FullTextSearch | null; +} +export type FullTextSearchEdgeSelect = { + cursor?: boolean; + node?: { + select: FullTextSearchSelect; + }; +}; +export interface IndexEdge { + cursor?: string | null; + node?: Index | null; +} +export type IndexEdgeSelect = { + cursor?: boolean; + node?: { + select: IndexSelect; + }; +}; +export interface LimitFunctionEdge { + cursor?: string | null; + node?: LimitFunction | null; +} +export type LimitFunctionEdgeSelect = { + cursor?: boolean; + node?: { + select: LimitFunctionSelect; + }; +}; +export interface PolicyEdge { + cursor?: string | null; + node?: Policy | null; +} +export type PolicyEdgeSelect = { + cursor?: boolean; + node?: { + select: PolicySelect; + }; +}; +export interface PrimaryKeyConstraintEdge { + cursor?: string | null; + node?: PrimaryKeyConstraint | null; +} +export type PrimaryKeyConstraintEdgeSelect = { + cursor?: boolean; + node?: { + select: PrimaryKeyConstraintSelect; + }; +}; +export interface TableGrantEdge { + cursor?: string | null; + node?: TableGrant | null; +} +export type TableGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: TableGrantSelect; + }; +}; +export interface TriggerEdge { + cursor?: string | null; + node?: Trigger | null; +} +export type TriggerEdgeSelect = { + cursor?: boolean; + node?: { + select: TriggerSelect; + }; +}; +export interface UniqueConstraintEdge { + cursor?: string | null; + node?: UniqueConstraint | null; +} +export type UniqueConstraintEdgeSelect = { + cursor?: boolean; + node?: { + select: UniqueConstraintSelect; + }; +}; +export interface ViewEdge { + cursor?: string | null; + node?: View | null; +} +export type ViewEdgeSelect = { + cursor?: boolean; + node?: { + select: ViewSelect; + }; +}; +export interface ViewTableEdge { + cursor?: string | null; + node?: ViewTable | null; +} +export type ViewTableEdgeSelect = { + cursor?: boolean; + node?: { + select: ViewTableSelect; + }; +}; +export interface ViewGrantEdge { + cursor?: string | null; + node?: ViewGrant | null; +} +export type ViewGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: ViewGrantSelect; + }; +}; +export interface ViewRuleEdge { + cursor?: string | null; + node?: ViewRule | null; +} +export type ViewRuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ViewRuleSelect; + }; +}; +export interface TableModuleEdge { + cursor?: string | null; + node?: TableModule | null; +} +export type TableModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: TableModuleSelect; + }; +}; +export interface TableTemplateModuleEdge { + cursor?: string | null; + node?: TableTemplateModule | null; +} +export type TableTemplateModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: TableTemplateModuleSelect; + }; +}; +export interface SchemaGrantEdge { + cursor?: string | null; + node?: SchemaGrant | null; +} +export type SchemaGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: SchemaGrantSelect; + }; +}; +export interface ApiSchemaEdge { + cursor?: string | null; + node?: ApiSchema | null; +} +export type ApiSchemaEdgeSelect = { + cursor?: boolean; + node?: { + select: ApiSchemaSelect; + }; +}; +export interface ApiModuleEdge { + cursor?: string | null; + node?: ApiModule | null; +} +export type ApiModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ApiModuleSelect; + }; +}; +export interface DomainEdge { + cursor?: string | null; + node?: Domain | null; +} +export type DomainEdgeSelect = { + cursor?: boolean; + node?: { + select: DomainSelect; + }; +}; +export interface SiteMetadatumEdge { + cursor?: string | null; + node?: SiteMetadatum | null; +} +export type SiteMetadatumEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteMetadatumSelect; + }; +}; +export interface SiteModuleEdge { + cursor?: string | null; + node?: SiteModule | null; +} +export type SiteModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteModuleSelect; + }; +}; +export interface SiteThemeEdge { + cursor?: string | null; + node?: SiteTheme | null; +} +export type SiteThemeEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteThemeSelect; + }; +}; +export interface ProcedureEdge { + cursor?: string | null; + node?: Procedure | null; +} +export type ProcedureEdgeSelect = { + cursor?: boolean; + node?: { + select: ProcedureSelect; + }; +}; +export interface TriggerFunctionEdge { + cursor?: string | null; + node?: TriggerFunction | null; +} +export type TriggerFunctionEdgeSelect = { + cursor?: boolean; + node?: { + select: TriggerFunctionSelect; + }; +}; +export interface ApiEdge { + cursor?: string | null; + node?: Api | null; +} +export type ApiEdgeSelect = { + cursor?: boolean; + node?: { + select: ApiSelect; + }; +}; +export interface SiteEdge { + cursor?: string | null; + node?: Site | null; +} +export type SiteEdgeSelect = { + cursor?: boolean; + node?: { + select: SiteSelect; + }; +}; +export interface AppEdge { + cursor?: string | null; + node?: App | null; +} +export type AppEdgeSelect = { + cursor?: boolean; + node?: { + select: AppSelect; + }; +}; +export interface ConnectedAccountsModuleEdge { + cursor?: string | null; + node?: ConnectedAccountsModule | null; +} +export type ConnectedAccountsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ConnectedAccountsModuleSelect; + }; +}; +export interface CryptoAddressesModuleEdge { + cursor?: string | null; + node?: CryptoAddressesModule | null; +} +export type CryptoAddressesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: CryptoAddressesModuleSelect; + }; +}; +export interface CryptoAuthModuleEdge { + cursor?: string | null; + node?: CryptoAuthModule | null; +} +export type CryptoAuthModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: CryptoAuthModuleSelect; + }; +}; +export interface DefaultIdsModuleEdge { + cursor?: string | null; + node?: DefaultIdsModule | null; +} +export type DefaultIdsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: DefaultIdsModuleSelect; + }; +}; +export interface DenormalizedTableFieldEdge { + cursor?: string | null; + node?: DenormalizedTableField | null; +} +export type DenormalizedTableFieldEdgeSelect = { + cursor?: boolean; + node?: { + select: DenormalizedTableFieldSelect; + }; +}; +export interface EmailsModuleEdge { + cursor?: string | null; + node?: EmailsModule | null; +} +export type EmailsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailsModuleSelect; + }; +}; +export interface EncryptedSecretsModuleEdge { + cursor?: string | null; + node?: EncryptedSecretsModule | null; +} +export type EncryptedSecretsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: EncryptedSecretsModuleSelect; + }; +}; +export interface FieldModuleEdge { + cursor?: string | null; + node?: FieldModule | null; +} +export type FieldModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: FieldModuleSelect; + }; +}; +export interface InvitesModuleEdge { + cursor?: string | null; + node?: InvitesModule | null; +} +export type InvitesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: InvitesModuleSelect; + }; +}; +export interface LevelsModuleEdge { + cursor?: string | null; + node?: LevelsModule | null; +} +export type LevelsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: LevelsModuleSelect; + }; +}; +export interface LimitsModuleEdge { + cursor?: string | null; + node?: LimitsModule | null; +} +export type LimitsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: LimitsModuleSelect; + }; +}; +export interface MembershipTypesModuleEdge { + cursor?: string | null; + node?: MembershipTypesModule | null; +} +export type MembershipTypesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: MembershipTypesModuleSelect; + }; +}; +export interface MembershipsModuleEdge { + cursor?: string | null; + node?: MembershipsModule | null; +} +export type MembershipsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: MembershipsModuleSelect; + }; +}; +export interface PermissionsModuleEdge { + cursor?: string | null; + node?: PermissionsModule | null; +} +export type PermissionsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: PermissionsModuleSelect; + }; +}; +export interface PhoneNumbersModuleEdge { + cursor?: string | null; + node?: PhoneNumbersModule | null; +} +export type PhoneNumbersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: PhoneNumbersModuleSelect; + }; +}; +export interface ProfilesModuleEdge { + cursor?: string | null; + node?: ProfilesModule | null; +} +export type ProfilesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: ProfilesModuleSelect; + }; +}; +export interface RlsModuleEdge { + cursor?: string | null; + node?: RlsModule | null; +} +export type RlsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: RlsModuleSelect; + }; +}; +export interface SecretsModuleEdge { + cursor?: string | null; + node?: SecretsModule | null; +} +export type SecretsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: SecretsModuleSelect; + }; +}; +export interface SessionsModuleEdge { + cursor?: string | null; + node?: SessionsModule | null; +} +export type SessionsModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: SessionsModuleSelect; + }; +}; +export interface UserAuthModuleEdge { + cursor?: string | null; + node?: UserAuthModule | null; +} +export type UserAuthModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: UserAuthModuleSelect; + }; +}; +export interface UsersModuleEdge { + cursor?: string | null; + node?: UsersModule | null; +} +export type UsersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: UsersModuleSelect; + }; +}; +export interface UuidModuleEdge { + cursor?: string | null; + node?: UuidModule | null; +} +export type UuidModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: UuidModuleSelect; + }; +}; +export interface DatabaseProvisionModuleEdge { + cursor?: string | null; + node?: DatabaseProvisionModule | null; +} +export type DatabaseProvisionModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseProvisionModuleSelect; + }; +}; +export interface AppAdminGrantEdge { + cursor?: string | null; + node?: AppAdminGrant | null; +} +export type AppAdminGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: AppAdminGrantSelect; + }; +}; +export interface AppOwnerGrantEdge { + cursor?: string | null; + node?: AppOwnerGrant | null; +} +export type AppOwnerGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: AppOwnerGrantSelect; + }; +}; +export interface AppGrantEdge { + cursor?: string | null; + node?: AppGrant | null; +} +export type AppGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: AppGrantSelect; + }; +}; +export interface OrgMembershipEdge { + cursor?: string | null; + node?: OrgMembership | null; +} +export type OrgMembershipEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipSelect; + }; +}; +export interface OrgMemberEdge { + cursor?: string | null; + node?: OrgMember | null; +} +export type OrgMemberEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMemberSelect; + }; +}; +export interface OrgAdminGrantEdge { + cursor?: string | null; + node?: OrgAdminGrant | null; +} +export type OrgAdminGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgAdminGrantSelect; + }; +}; +export interface OrgOwnerGrantEdge { + cursor?: string | null; + node?: OrgOwnerGrant | null; +} +export type OrgOwnerGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgOwnerGrantSelect; + }; +}; +export interface OrgGrantEdge { + cursor?: string | null; + node?: OrgGrant | null; +} +export type OrgGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgGrantSelect; + }; +}; +export interface AppLimitEdge { + cursor?: string | null; + node?: AppLimit | null; +} +export type AppLimitEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitSelect; + }; +}; +export interface OrgLimitEdge { + cursor?: string | null; + node?: OrgLimit | null; +} +export type OrgLimitEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitSelect; + }; +}; +export interface AppStepEdge { + cursor?: string | null; + node?: AppStep | null; +} +export type AppStepEdgeSelect = { + cursor?: boolean; + node?: { + select: AppStepSelect; + }; +}; +export interface AppAchievementEdge { + cursor?: string | null; + node?: AppAchievement | null; +} +export type AppAchievementEdgeSelect = { + cursor?: boolean; + node?: { + select: AppAchievementSelect; + }; +}; +export interface InviteEdge { + cursor?: string | null; + node?: Invite | null; +} +export type InviteEdgeSelect = { + cursor?: boolean; + node?: { + select: InviteSelect; + }; +}; +export interface ClaimedInviteEdge { + cursor?: string | null; + node?: ClaimedInvite | null; +} +export type ClaimedInviteEdgeSelect = { + cursor?: boolean; + node?: { + select: ClaimedInviteSelect; + }; +}; +export interface OrgInviteEdge { + cursor?: string | null; + node?: OrgInvite | null; +} +export type OrgInviteEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgInviteSelect; + }; +}; +export interface OrgClaimedInviteEdge { + cursor?: string | null; + node?: OrgClaimedInvite | null; +} +export type OrgClaimedInviteEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgClaimedInviteSelect; + }; +}; +export interface AppPermissionDefaultEdge { + cursor?: string | null; + node?: AppPermissionDefault | null; +} +export type AppPermissionDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionDefaultSelect; + }; +}; +export interface RefEdge { + cursor?: string | null; + node?: Ref | null; +} +export type RefEdgeSelect = { + cursor?: boolean; + node?: { + select: RefSelect; + }; +}; +export interface StoreEdge { + cursor?: string | null; + node?: Store | null; +} +export type StoreEdgeSelect = { + cursor?: boolean; + node?: { + select: StoreSelect; + }; +}; +export interface RoleTypeEdge { + cursor?: string | null; + node?: RoleType | null; +} +export type RoleTypeEdgeSelect = { + cursor?: boolean; + node?: { + select: RoleTypeSelect; + }; +}; +export interface OrgPermissionDefaultEdge { + cursor?: string | null; + node?: OrgPermissionDefault | null; +} +export type OrgPermissionDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgPermissionDefaultSelect; + }; +}; +export interface AppLimitDefaultEdge { + cursor?: string | null; + node?: AppLimitDefault | null; +} +export type AppLimitDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitDefaultSelect; + }; +}; +export interface OrgLimitDefaultEdge { + cursor?: string | null; + node?: OrgLimitDefault | null; +} +export type OrgLimitDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitDefaultSelect; + }; +}; +export interface CryptoAddressEdge { + cursor?: string | null; + node?: CryptoAddress | null; +} +export type CryptoAddressEdgeSelect = { + cursor?: boolean; + node?: { + select: CryptoAddressSelect; + }; +}; +export interface MembershipTypeEdge { + cursor?: string | null; + node?: MembershipType | null; +} +export type MembershipTypeEdgeSelect = { + cursor?: boolean; + node?: { + select: MembershipTypeSelect; + }; +}; +export interface ConnectedAccountEdge { + cursor?: string | null; + node?: ConnectedAccount | null; +} +export type ConnectedAccountEdgeSelect = { + cursor?: boolean; + node?: { + select: ConnectedAccountSelect; + }; +}; +export interface PhoneNumberEdge { + cursor?: string | null; + node?: PhoneNumber | null; +} +export type PhoneNumberEdgeSelect = { + cursor?: boolean; + node?: { + select: PhoneNumberSelect; + }; +}; +export interface AppMembershipDefaultEdge { + cursor?: string | null; + node?: AppMembershipDefault | null; +} +export type AppMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppMembershipDefaultSelect; + }; +}; +export interface NodeTypeRegistryEdge { + cursor?: string | null; + node?: NodeTypeRegistry | null; +} +export type NodeTypeRegistryEdgeSelect = { + cursor?: boolean; + node?: { + select: NodeTypeRegistrySelect; + }; +}; +export interface CommitEdge { + cursor?: string | null; + node?: Commit | null; +} +export type CommitEdgeSelect = { + cursor?: boolean; + node?: { + select: CommitSelect; + }; +}; +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + node?: OrgMembershipDefault | null; +} +export type OrgMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipDefaultSelect; + }; +}; +export interface EmailEdge { + cursor?: string | null; + node?: Email | null; +} +export type EmailEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailSelect; + }; +}; +export interface AuditLogEdge { + cursor?: string | null; + node?: AuditLog | null; +} +export type AuditLogEdgeSelect = { + cursor?: boolean; + node?: { + select: AuditLogSelect; + }; +}; +export interface AppLevelEdge { + cursor?: string | null; + node?: AppLevel | null; +} +export type AppLevelEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLevelSelect; + }; +}; +export interface AppMembershipEdge { + cursor?: string | null; + node?: AppMembership | null; +} +export type AppMembershipEdgeSelect = { + cursor?: boolean; + node?: { + select: AppMembershipSelect; + }; +}; +export interface UserEdge { + cursor?: string | null; + node?: User | null; +} +export type UserEdgeSelect = { + cursor?: boolean; + node?: { + select: UserSelect; + }; +}; +export interface HierarchyModuleEdge { + cursor?: string | null; + node?: HierarchyModule | null; +} +export type HierarchyModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: HierarchyModuleSelect; + }; +}; diff --git a/sdk/constructive-sdk/src/public/orm/models/api.ts b/sdk/constructive-sdk/src/public/orm/models/api.ts new file mode 100644 index 000000000..2995bb318 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/apiModule.ts b/sdk/constructive-sdk/src/public/orm/models/apiModule.ts new file mode 100644 index 000000000..47b2be5f6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/apiSchema.ts b/sdk/constructive-sdk/src/public/orm/models/apiSchema.ts new file mode 100644 index 000000000..4e6664741 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/app.ts b/sdk/constructive-sdk/src/public/orm/models/app.ts new file mode 100644 index 000000000..a851a9774 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/appAchievement.ts b/sdk/constructive-sdk/src/public/orm/models/appAchievement.ts new file mode 100644 index 000000000..c26bd04df --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/appAdminGrant.ts b/sdk/constructive-sdk/src/public/orm/models/appAdminGrant.ts new file mode 100644 index 000000000..994dcd67d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/appGrant.ts b/sdk/constructive-sdk/src/public/orm/models/appGrant.ts new file mode 100644 index 000000000..df4f3ac72 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/appLevel.ts b/sdk/constructive-sdk/src/public/orm/models/appLevel.ts new file mode 100644 index 000000000..16a46df57 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/appLevelRequirement.ts b/sdk/constructive-sdk/src/public/orm/models/appLevelRequirement.ts new file mode 100644 index 000000000..a67824ec2 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/appLimit.ts b/sdk/constructive-sdk/src/public/orm/models/appLimit.ts new file mode 100644 index 000000000..6671f9d37 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/appLimitDefault.ts b/sdk/constructive-sdk/src/public/orm/models/appLimitDefault.ts new file mode 100644 index 000000000..8d926da0a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/appMembership.ts b/sdk/constructive-sdk/src/public/orm/models/appMembership.ts new file mode 100644 index 000000000..2631ec415 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/appMembershipDefault.ts b/sdk/constructive-sdk/src/public/orm/models/appMembershipDefault.ts new file mode 100644 index 000000000..ba0c3ce53 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/appOwnerGrant.ts b/sdk/constructive-sdk/src/public/orm/models/appOwnerGrant.ts new file mode 100644 index 000000000..a18dd21c4 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/appPermission.ts b/sdk/constructive-sdk/src/public/orm/models/appPermission.ts new file mode 100644 index 000000000..ab24d7bfc --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/appPermissionDefault.ts b/sdk/constructive-sdk/src/public/orm/models/appPermissionDefault.ts new file mode 100644 index 000000000..3951ef4bb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/appStep.ts b/sdk/constructive-sdk/src/public/orm/models/appStep.ts new file mode 100644 index 000000000..7c4ab983c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/astMigration.ts b/sdk/constructive-sdk/src/public/orm/models/astMigration.ts new file mode 100644 index 000000000..8bab8cfd0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/auditLog.ts b/sdk/constructive-sdk/src/public/orm/models/auditLog.ts new file mode 100644 index 000000000..3d6aacb4e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/checkConstraint.ts b/sdk/constructive-sdk/src/public/orm/models/checkConstraint.ts new file mode 100644 index 000000000..3d789793d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/claimedInvite.ts b/sdk/constructive-sdk/src/public/orm/models/claimedInvite.ts new file mode 100644 index 000000000..9a679a488 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/commit.ts b/sdk/constructive-sdk/src/public/orm/models/commit.ts new file mode 100644 index 000000000..257e233ae --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/connectedAccount.ts b/sdk/constructive-sdk/src/public/orm/models/connectedAccount.ts new file mode 100644 index 000000000..0f2523553 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/connectedAccountsModule.ts b/sdk/constructive-sdk/src/public/orm/models/connectedAccountsModule.ts new file mode 100644 index 000000000..09cb420e5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/cryptoAddress.ts b/sdk/constructive-sdk/src/public/orm/models/cryptoAddress.ts new file mode 100644 index 000000000..8d0c9b387 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/cryptoAddressesModule.ts b/sdk/constructive-sdk/src/public/orm/models/cryptoAddressesModule.ts new file mode 100644 index 000000000..5c1de3024 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/cryptoAuthModule.ts b/sdk/constructive-sdk/src/public/orm/models/cryptoAuthModule.ts new file mode 100644 index 000000000..ddaa749f8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/database.ts b/sdk/constructive-sdk/src/public/orm/models/database.ts new file mode 100644 index 000000000..9bb0c871a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/databaseProvisionModule.ts b/sdk/constructive-sdk/src/public/orm/models/databaseProvisionModule.ts new file mode 100644 index 000000000..31becee8c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/defaultIdsModule.ts b/sdk/constructive-sdk/src/public/orm/models/defaultIdsModule.ts new file mode 100644 index 000000000..665f3eb1e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/denormalizedTableField.ts b/sdk/constructive-sdk/src/public/orm/models/denormalizedTableField.ts new file mode 100644 index 000000000..111286e0e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/domain.ts b/sdk/constructive-sdk/src/public/orm/models/domain.ts new file mode 100644 index 000000000..dcdb161a7 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/email.ts b/sdk/constructive-sdk/src/public/orm/models/email.ts new file mode 100644 index 000000000..d03c2180b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/emailsModule.ts b/sdk/constructive-sdk/src/public/orm/models/emailsModule.ts new file mode 100644 index 000000000..ab8058dfe --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/encryptedSecretsModule.ts b/sdk/constructive-sdk/src/public/orm/models/encryptedSecretsModule.ts new file mode 100644 index 000000000..d82b79a8e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/field.ts b/sdk/constructive-sdk/src/public/orm/models/field.ts new file mode 100644 index 000000000..6d54be6c0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/fieldModule.ts b/sdk/constructive-sdk/src/public/orm/models/fieldModule.ts new file mode 100644 index 000000000..e4a646053 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/foreignKeyConstraint.ts b/sdk/constructive-sdk/src/public/orm/models/foreignKeyConstraint.ts new file mode 100644 index 000000000..725546cba --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/fullTextSearch.ts b/sdk/constructive-sdk/src/public/orm/models/fullTextSearch.ts new file mode 100644 index 000000000..ef372d194 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/getAllRecord.ts b/sdk/constructive-sdk/src/public/orm/models/getAllRecord.ts new file mode 100644 index 000000000..53873a0f3 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/hierarchyModule.ts b/sdk/constructive-sdk/src/public/orm/models/hierarchyModule.ts new file mode 100644 index 000000000..af2684505 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/index.ts b/sdk/constructive-sdk/src/public/orm/models/index.ts new file mode 100644 index 000000000..b76148dfe --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/indexModel.ts b/sdk/constructive-sdk/src/public/orm/models/indexModel.ts new file mode 100644 index 000000000..4db3f2083 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/invite.ts b/sdk/constructive-sdk/src/public/orm/models/invite.ts new file mode 100644 index 000000000..ffacfa690 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/invitesModule.ts b/sdk/constructive-sdk/src/public/orm/models/invitesModule.ts new file mode 100644 index 000000000..8a25495cc --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/levelsModule.ts b/sdk/constructive-sdk/src/public/orm/models/levelsModule.ts new file mode 100644 index 000000000..4c0cedf16 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/limitFunction.ts b/sdk/constructive-sdk/src/public/orm/models/limitFunction.ts new file mode 100644 index 000000000..9df58af2a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/limitsModule.ts b/sdk/constructive-sdk/src/public/orm/models/limitsModule.ts new file mode 100644 index 000000000..a6976e0d3 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/membershipType.ts b/sdk/constructive-sdk/src/public/orm/models/membershipType.ts new file mode 100644 index 000000000..c8f385b4e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/membershipTypesModule.ts b/sdk/constructive-sdk/src/public/orm/models/membershipTypesModule.ts new file mode 100644 index 000000000..35e412956 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/membershipsModule.ts b/sdk/constructive-sdk/src/public/orm/models/membershipsModule.ts new file mode 100644 index 000000000..106924932 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/nodeTypeRegistry.ts b/sdk/constructive-sdk/src/public/orm/models/nodeTypeRegistry.ts new file mode 100644 index 000000000..021587a23 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/object.ts b/sdk/constructive-sdk/src/public/orm/models/object.ts new file mode 100644 index 000000000..72f7b0da4 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/orgAdminGrant.ts b/sdk/constructive-sdk/src/public/orm/models/orgAdminGrant.ts new file mode 100644 index 000000000..ad34ec08c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/orgClaimedInvite.ts b/sdk/constructive-sdk/src/public/orm/models/orgClaimedInvite.ts new file mode 100644 index 000000000..7b1a668ce --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/orgGrant.ts b/sdk/constructive-sdk/src/public/orm/models/orgGrant.ts new file mode 100644 index 000000000..51ffe25e0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/orgInvite.ts b/sdk/constructive-sdk/src/public/orm/models/orgInvite.ts new file mode 100644 index 000000000..351f866ab --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/orgLimit.ts b/sdk/constructive-sdk/src/public/orm/models/orgLimit.ts new file mode 100644 index 000000000..787dd2e18 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/orgLimitDefault.ts b/sdk/constructive-sdk/src/public/orm/models/orgLimitDefault.ts new file mode 100644 index 000000000..b66e270b4 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/orgMember.ts b/sdk/constructive-sdk/src/public/orm/models/orgMember.ts new file mode 100644 index 000000000..9045b10e0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/orgMembership.ts b/sdk/constructive-sdk/src/public/orm/models/orgMembership.ts new file mode 100644 index 000000000..7c5133b07 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/orgMembershipDefault.ts b/sdk/constructive-sdk/src/public/orm/models/orgMembershipDefault.ts new file mode 100644 index 000000000..c4863e35b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/orgOwnerGrant.ts b/sdk/constructive-sdk/src/public/orm/models/orgOwnerGrant.ts new file mode 100644 index 000000000..57596aecd --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/orgPermission.ts b/sdk/constructive-sdk/src/public/orm/models/orgPermission.ts new file mode 100644 index 000000000..9a2c0461f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/orgPermissionDefault.ts b/sdk/constructive-sdk/src/public/orm/models/orgPermissionDefault.ts new file mode 100644 index 000000000..d6c204515 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/permissionsModule.ts b/sdk/constructive-sdk/src/public/orm/models/permissionsModule.ts new file mode 100644 index 000000000..5f30fad1e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/phoneNumber.ts b/sdk/constructive-sdk/src/public/orm/models/phoneNumber.ts new file mode 100644 index 000000000..8122dff00 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/phoneNumbersModule.ts b/sdk/constructive-sdk/src/public/orm/models/phoneNumbersModule.ts new file mode 100644 index 000000000..26fdcfd2e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/policy.ts b/sdk/constructive-sdk/src/public/orm/models/policy.ts new file mode 100644 index 000000000..146ac30f5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/primaryKeyConstraint.ts b/sdk/constructive-sdk/src/public/orm/models/primaryKeyConstraint.ts new file mode 100644 index 000000000..296ec2848 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/procedure.ts b/sdk/constructive-sdk/src/public/orm/models/procedure.ts new file mode 100644 index 000000000..6725b1577 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/profilesModule.ts b/sdk/constructive-sdk/src/public/orm/models/profilesModule.ts new file mode 100644 index 000000000..2970a1f49 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/ref.ts b/sdk/constructive-sdk/src/public/orm/models/ref.ts new file mode 100644 index 000000000..ec666a8e7 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/rlsModule.ts b/sdk/constructive-sdk/src/public/orm/models/rlsModule.ts new file mode 100644 index 000000000..4729eb1b3 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/roleType.ts b/sdk/constructive-sdk/src/public/orm/models/roleType.ts new file mode 100644 index 000000000..dce555ddb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/schema.ts b/sdk/constructive-sdk/src/public/orm/models/schema.ts new file mode 100644 index 000000000..e930fee2b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/schemaGrant.ts b/sdk/constructive-sdk/src/public/orm/models/schemaGrant.ts new file mode 100644 index 000000000..7a311cdb9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/secretsModule.ts b/sdk/constructive-sdk/src/public/orm/models/secretsModule.ts new file mode 100644 index 000000000..55d75dad4 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/sessionsModule.ts b/sdk/constructive-sdk/src/public/orm/models/sessionsModule.ts new file mode 100644 index 000000000..5245d808b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/site.ts b/sdk/constructive-sdk/src/public/orm/models/site.ts new file mode 100644 index 000000000..83b54cc55 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/siteMetadatum.ts b/sdk/constructive-sdk/src/public/orm/models/siteMetadatum.ts new file mode 100644 index 000000000..38353bdd3 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/siteModule.ts b/sdk/constructive-sdk/src/public/orm/models/siteModule.ts new file mode 100644 index 000000000..59ee85477 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/siteTheme.ts b/sdk/constructive-sdk/src/public/orm/models/siteTheme.ts new file mode 100644 index 000000000..e9222e3c5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/sqlMigration.ts b/sdk/constructive-sdk/src/public/orm/models/sqlMigration.ts new file mode 100644 index 000000000..07bba36b7 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/store.ts b/sdk/constructive-sdk/src/public/orm/models/store.ts new file mode 100644 index 000000000..d6f5e0450 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/table.ts b/sdk/constructive-sdk/src/public/orm/models/table.ts new file mode 100644 index 000000000..25f1ac127 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/tableGrant.ts b/sdk/constructive-sdk/src/public/orm/models/tableGrant.ts new file mode 100644 index 000000000..bdd257b1e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/tableModule.ts b/sdk/constructive-sdk/src/public/orm/models/tableModule.ts new file mode 100644 index 000000000..708e7a4c5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/tableTemplateModule.ts b/sdk/constructive-sdk/src/public/orm/models/tableTemplateModule.ts new file mode 100644 index 000000000..7438901cc --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/trigger.ts b/sdk/constructive-sdk/src/public/orm/models/trigger.ts new file mode 100644 index 000000000..3ad1cf6ad --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/triggerFunction.ts b/sdk/constructive-sdk/src/public/orm/models/triggerFunction.ts new file mode 100644 index 000000000..7e93572c1 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/uniqueConstraint.ts b/sdk/constructive-sdk/src/public/orm/models/uniqueConstraint.ts new file mode 100644 index 000000000..ad935fcca --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/user.ts b/sdk/constructive-sdk/src/public/orm/models/user.ts new file mode 100644 index 000000000..7adeca16a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/userAuthModule.ts b/sdk/constructive-sdk/src/public/orm/models/userAuthModule.ts new file mode 100644 index 000000000..59b3f7d69 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/usersModule.ts b/sdk/constructive-sdk/src/public/orm/models/usersModule.ts new file mode 100644 index 000000000..c61a00ff1 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/uuidModule.ts b/sdk/constructive-sdk/src/public/orm/models/uuidModule.ts new file mode 100644 index 000000000..1b2f60f23 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/view.ts b/sdk/constructive-sdk/src/public/orm/models/view.ts new file mode 100644 index 000000000..d28154954 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/viewGrant.ts b/sdk/constructive-sdk/src/public/orm/models/viewGrant.ts new file mode 100644 index 000000000..e63ef2382 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/viewRule.ts b/sdk/constructive-sdk/src/public/orm/models/viewRule.ts new file mode 100644 index 000000000..4bf9c2cca --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/models/viewTable.ts b/sdk/constructive-sdk/src/public/orm/models/viewTable.ts new file mode 100644 index 000000000..f976d31af --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/mutation/index.ts b/sdk/constructive-sdk/src/public/orm/mutation/index.ts new file mode 100644 index 000000000..d6ef2d515 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/mutation/index.ts @@ -0,0 +1,1100 @@ +/** + * 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; +} +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-sdk/src/public/orm/query-builder.ts b/sdk/constructive-sdk/src/public/orm/query-builder.ts new file mode 100644 index 000000000..67c3992b5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/query/index.ts b/sdk/constructive-sdk/src/public/orm/query/index.ts new file mode 100644 index 000000000..4fcab5f55 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/query/index.ts @@ -0,0 +1,676 @@ +/** + * 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; + first?: number; + offset?: number; + after?: string; +} +export interface OrgPermissionsGetByMaskVariables { + mask?: string; + first?: number; + offset?: number; + after?: string; +} +export interface GetAllObjectsFromRootVariables { + databaseId?: string; + id?: string; + first?: number; + offset?: number; + after?: string; +} +export interface GetPathObjectsFromRootVariables { + databaseId?: string; + id?: string; + path?: string[]; + first?: number; + offset?: number; + after?: string; +} +export interface GetObjectAtPathVariables { + dbId?: string; + storeId?: string; + path?: string[]; + refname?: string; +} +export interface StepsRequiredVariables { + vlevel?: string; + vroleId?: string; + first?: number; + offset?: number; + 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-sdk/src/public/orm/select-types.ts b/sdk/constructive-sdk/src/public/orm/select-types.ts new file mode 100644 index 000000000..80165efa6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/orm/types.ts b/sdk/constructive-sdk/src/public/orm/types.ts new file mode 100644 index 000000000..7c1120bcd --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/tsconfig.esm.json b/sdk/constructive-sdk/tsconfig.esm.json new file mode 100644 index 000000000..d35ab5318 --- /dev/null +++ b/sdk/constructive-sdk/tsconfig.esm.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "dist/esm", + "module": "ESNext", + "moduleResolution": "bundler" + } +} diff --git a/sdk/constructive-sdk/tsconfig.json b/sdk/constructive-sdk/tsconfig.json new file mode 100644 index 000000000..9c8a7d7c1 --- /dev/null +++ b/sdk/constructive-sdk/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "dist", + "rootDir": "src" + }, + "include": ["src/**/*"] +} From 74d280f592c8e7496d2537f03d38d202b0463372 Mon Sep 17 00:00:00 2001 From: ghou9khub Date: Thu, 26 Feb 2026 02:51:26 -0800 Subject: [PATCH 2/4] Update lock --- pnpm-lock.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e1c4cd61d..e84eded1f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1919,9 +1919,6 @@ importers: genomic: specifier: ^5.3.0 version: 5.3.0 - graphile-schema: - specifier: workspace:^ - version: link:../../graphile/graphile-schema/dist inquirerer: specifier: ^4.4.0 version: 4.4.0 From 3df9b504dd85bf2a0bf0d4192b114faad751b4be Mon Sep 17 00:00:00 2001 From: ghou9khub Date: Thu, 26 Feb 2026 03:05:46 -0800 Subject: [PATCH 3/4] Enabled react query and add deps --- pnpm-lock.yaml | 3 + sdk/constructive-sdk/README.md | 8 +- sdk/constructive-sdk/package.json | 5 +- sdk/constructive-sdk/scripts/generate-sdk.ts | 1 + sdk/constructive-sdk/src/admin/README.md | 15 +- .../src/admin/hooks/AGENTS.md | 2383 ++++ .../src/admin/hooks/README.md | 931 ++ .../src/admin/hooks/client.ts | 42 + sdk/constructive-sdk/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 + sdk/constructive-sdk/src/admin/index.ts | 2 + .../src/admin/schema-types.ts | 2753 ++++ sdk/constructive-sdk/src/admin/types.ts | 473 + sdk/constructive-sdk/src/auth/README.md | 15 +- sdk/constructive-sdk/src/auth/hooks/AGENTS.md | 862 ++ sdk/constructive-sdk/src/auth/hooks/README.md | 454 + sdk/constructive-sdk/src/auth/hooks/client.ts | 42 + sdk/constructive-sdk/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 + sdk/constructive-sdk/src/auth/index.ts | 2 + sdk/constructive-sdk/src/auth/schema-types.ts | 1061 ++ sdk/constructive-sdk/src/auth/types.ts | 288 + sdk/constructive-sdk/src/objects/README.md | 15 +- .../src/objects/hooks/AGENTS.md | 552 + .../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 + sdk/constructive-sdk/src/objects/index.ts | 2 + .../src/objects/schema-types.ts | 590 + sdk/constructive-sdk/src/objects/types.ts | 261 + sdk/constructive-sdk/src/public/README.md | 15 +- .../src/public/hooks/AGENTS.md | 8940 +++++++++++++ .../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 + sdk/constructive-sdk/src/public/index.ts | 2 + .../src/public/schema-types.ts | 10489 ++++++++++++++++ sdk/constructive-sdk/src/public/types.ts | 1360 ++ 838 files changed, 131095 insertions(+), 10 deletions(-) create mode 100644 sdk/constructive-sdk/src/admin/hooks/AGENTS.md create mode 100644 sdk/constructive-sdk/src/admin/hooks/README.md create mode 100644 sdk/constructive-sdk/src/admin/hooks/client.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/index.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/invalidation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutation-keys.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/index.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppAchievementMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppAdminGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppLevelMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppLevelRequirementMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppLimitDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppLimitMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppMembershipDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppOwnerGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppPermissionDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppPermissionMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppStepMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateClaimedInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateMembershipTypeMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgAdminGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgClaimedInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgLimitDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgLimitMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgMemberMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgOwnerGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgPermissionMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppAchievementMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppAdminGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppLevelMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppLimitDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppLimitMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppOwnerGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppPermissionMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppStepMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteClaimedInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteMembershipTypeMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgAdminGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgLimitMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgMemberMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgPermissionMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useSubmitInviteCodeMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useSubmitOrgInviteCodeMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppAchievementMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppAdminGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppLevelMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppLimitDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppLimitMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppOwnerGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppPermissionMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppStepMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateClaimedInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateMembershipTypeMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgAdminGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgLimitMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgMemberMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgPermissionMutation.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/index.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppAchievementQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppAchievementsQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppAdminGrantQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppAdminGrantsQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppGrantQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppGrantsQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppLevelQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppLevelRequirementQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppLevelRequirementsQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppLevelsQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppLimitDefaultQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppLimitDefaultsQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppLimitQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppLimitsQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppMembershipDefaultQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppMembershipDefaultsQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppMembershipQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppMembershipsQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppOwnerGrantQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppOwnerGrantsQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionDefaultQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionDefaultsQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsGetByMaskQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsGetMaskQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppStepQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppStepsQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useClaimedInviteQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useClaimedInvitesQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useInviteQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useInvitesQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useMembershipTypeQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useMembershipTypesQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgAdminGrantQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgAdminGrantsQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgClaimedInviteQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgClaimedInvitesQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgGrantQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgGrantsQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgInviteQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgInvitesQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgLimitDefaultQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgLimitDefaultsQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgLimitQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgLimitsQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgMemberQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembersQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembershipDefaultQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembershipDefaultsQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembershipQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembershipsQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgOwnerGrantQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgOwnerGrantsQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionDefaultQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionDefaultsQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsGetByMaskQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsGetMaskQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useStepsAchievedQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useStepsRequiredQuery.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/query-keys.ts create mode 100644 sdk/constructive-sdk/src/admin/hooks/selection.ts create mode 100644 sdk/constructive-sdk/src/admin/schema-types.ts create mode 100644 sdk/constructive-sdk/src/admin/types.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/AGENTS.md create mode 100644 sdk/constructive-sdk/src/auth/hooks/README.md create mode 100644 sdk/constructive-sdk/src/auth/hooks/client.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/index.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/invalidation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutation-keys.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/index.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useCheckPasswordMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useConfirmDeleteAccountMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useCreateAuditLogMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useCreateConnectedAccountMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useCreateCryptoAddressMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useCreateEmailMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useCreatePhoneNumberMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useCreateRoleTypeMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useCreateUserMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteAuditLogMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteConnectedAccountMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteCryptoAddressMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteEmailMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useDeletePhoneNumberMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteRoleTypeMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteUserMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useExtendTokenExpiresMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useForgotPasswordMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useOneTimeTokenMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useResetPasswordMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useSendAccountDeletionEmailMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useSendVerificationEmailMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useSetPasswordMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useSignInMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useSignInOneTimeTokenMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useSignOutMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useSignUpMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateAuditLogMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateConnectedAccountMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateCryptoAddressMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateEmailMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useUpdatePhoneNumberMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateRoleTypeMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateUserMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useVerifyEmailMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useVerifyPasswordMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useVerifyTotpMutation.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/index.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useAuditLogQuery.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useAuditLogsQuery.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useConnectedAccountQuery.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useConnectedAccountsQuery.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useCryptoAddressQuery.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useCryptoAddressesQuery.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useCurrentIpAddressQuery.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useCurrentUserAgentQuery.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useCurrentUserIdQuery.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useCurrentUserQuery.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useEmailQuery.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useEmailsQuery.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/usePhoneNumberQuery.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/usePhoneNumbersQuery.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useRoleTypeQuery.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useRoleTypesQuery.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useUserQuery.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useUsersQuery.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/query-keys.ts create mode 100644 sdk/constructive-sdk/src/auth/hooks/selection.ts create mode 100644 sdk/constructive-sdk/src/auth/schema-types.ts create mode 100644 sdk/constructive-sdk/src/auth/types.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/AGENTS.md create mode 100644 sdk/constructive-sdk/src/objects/hooks/README.md create mode 100644 sdk/constructive-sdk/src/objects/hooks/client.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/index.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/invalidation.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutation-keys.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/index.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useCreateCommitMutation.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useCreateGetAllRecordMutation.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useCreateObjectMutation.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useCreateRefMutation.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useCreateStoreMutation.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useDeleteCommitMutation.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useDeleteObjectMutation.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useDeleteRefMutation.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useDeleteStoreMutation.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useFreezeObjectsMutation.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useInitEmptyRepoMutation.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useInsertNodeAtPathMutation.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useRemoveNodeAtPathMutation.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useSetAndCommitMutation.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useSetDataAtPathMutation.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useSetPropsAndCommitMutation.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateCommitMutation.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateNodeAtPathMutation.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateObjectMutation.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateRefMutation.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateStoreMutation.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/index.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useCommitQuery.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useCommitsQuery.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useGetAllObjectsFromRootQuery.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useGetAllQuery.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useGetObjectAtPathQuery.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useGetPathObjectsFromRootQuery.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useObjectQuery.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useObjectsQuery.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useRefQuery.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useRefsQuery.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useRevParseQuery.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useStoreQuery.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useStoresQuery.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/query-keys.ts create mode 100644 sdk/constructive-sdk/src/objects/hooks/selection.ts create mode 100644 sdk/constructive-sdk/src/objects/schema-types.ts create mode 100644 sdk/constructive-sdk/src/objects/types.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/AGENTS.md create mode 100644 sdk/constructive-sdk/src/public/hooks/README.md create mode 100644 sdk/constructive-sdk/src/public/hooks/client.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/index.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/invalidation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutation-keys.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/index.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useApplyRlsMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useBootstrapUserMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCheckPasswordMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useConfirmDeleteAccountMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateApiModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateApiMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateApiSchemaMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppAchievementMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppAdminGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppLevelMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppLevelRequirementMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppLimitDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppLimitMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppMembershipDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppMembershipMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppOwnerGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppPermissionDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppPermissionMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppStepMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAstMigrationMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAuditLogMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateCheckConstraintMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateClaimedInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateCommitMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateConnectedAccountMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateConnectedAccountsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateCryptoAddressMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateCryptoAddressesModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateCryptoAuthModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateDatabaseMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateDatabaseProvisionModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateDefaultIdsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateDenormalizedTableFieldMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateDomainMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateEmailMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateEmailsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateEncryptedSecretsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateFieldModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateFieldMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateForeignKeyConstraintMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateFullTextSearchMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateGetAllRecordMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateHierarchyModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateIndexMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateInvitesModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateLevelsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateLimitFunctionMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateLimitsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateMembershipTypeMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateMembershipTypesModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateMembershipsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateNodeTypeRegistryMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateObjectMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgAdminGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgClaimedInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgLimitDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgLimitMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgMemberMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgMembershipMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgOwnerGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgPermissionMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreatePermissionsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreatePhoneNumberMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreatePhoneNumbersModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreatePolicyMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreatePrimaryKeyConstraintMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateProcedureMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateProfilesModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateRefMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateRlsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateRoleTypeMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateSchemaGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateSchemaMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateSecretsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateSessionsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateSiteMetadatumMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateSiteModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateSiteMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateSiteThemeMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateSqlMigrationMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateStoreMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateTableGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateTableModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateTableMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateTableTemplateModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateTriggerFunctionMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateTriggerMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateUniqueConstraintMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateUserAuthModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateUserDatabaseMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateUserMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateUsersModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateUuidModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateViewGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateViewMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateViewRuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateViewTableMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteApiModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteApiMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteApiSchemaMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppAchievementMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppAdminGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppLevelMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppLevelRequirementMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppLimitDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppLimitMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppMembershipMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppOwnerGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppPermissionMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppStepMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAuditLogMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCheckConstraintMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteClaimedInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCommitMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteConnectedAccountMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteConnectedAccountsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCryptoAddressMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCryptoAddressesModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCryptoAuthModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDatabaseMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDatabaseProvisionModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDefaultIdsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDenormalizedTableFieldMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDomainMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteEmailMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteEmailsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteEncryptedSecretsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteFieldModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteFieldMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteForeignKeyConstraintMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteFullTextSearchMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteHierarchyModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteIndexMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteInvitesModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteLevelsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteLimitFunctionMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteLimitsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteMembershipTypeMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteMembershipTypesModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteMembershipsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteObjectMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgAdminGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgLimitMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgMemberMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgMembershipMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgPermissionMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeletePermissionsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeletePhoneNumberMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeletePhoneNumbersModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeletePolicyMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeletePrimaryKeyConstraintMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteProcedureMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteProfilesModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteRefMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteRlsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteRoleTypeMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSchemaGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSchemaMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSecretsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSessionsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSiteMetadatumMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSiteModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSiteMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSiteThemeMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteStoreMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTableGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTableModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTableMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTableTemplateModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTriggerFunctionMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTriggerMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUniqueConstraintMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUserAuthModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUserMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUsersModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUuidModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteViewGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteViewMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteViewRuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteViewTableMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useExtendTokenExpiresMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useForgotPasswordMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useFreezeObjectsMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useInitEmptyRepoMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useInsertNodeAtPathMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useOneTimeTokenMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useProvisionDatabaseWithUserMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useRemoveNodeAtPathMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useResetPasswordMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSendAccountDeletionEmailMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSendVerificationEmailMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSetAndCommitMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSetDataAtPathMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSetFieldOrderMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSetPasswordMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSetPropsAndCommitMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSignInMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSignInOneTimeTokenMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSignOutMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSignUpMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSubmitInviteCodeMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSubmitOrgInviteCodeMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateApiModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateApiMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateApiSchemaMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppAchievementMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppAdminGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppLevelMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppLevelRequirementMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppLimitDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppLimitMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppMembershipMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppOwnerGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppPermissionMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppStepMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAuditLogMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCheckConstraintMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateClaimedInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCommitMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateConnectedAccountMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateConnectedAccountsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCryptoAddressMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCryptoAddressesModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCryptoAuthModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDatabaseMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDatabaseProvisionModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDefaultIdsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDenormalizedTableFieldMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDomainMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateEmailMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateEmailsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateEncryptedSecretsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateFieldModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateFieldMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateForeignKeyConstraintMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateFullTextSearchMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateHierarchyModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateIndexMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateInvitesModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateLevelsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateLimitFunctionMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateLimitsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateMembershipTypeMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateMembershipTypesModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateMembershipsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateNodeAtPathMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateObjectMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgAdminGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgInviteMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgLimitMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgMemberMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgMembershipMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgPermissionMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePermissionsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePhoneNumberMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePhoneNumbersModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePolicyMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePrimaryKeyConstraintMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateProcedureMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateProfilesModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateRefMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateRlsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateRoleTypeMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSchemaGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSchemaMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSecretsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSessionsModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSiteMetadatumMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSiteModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSiteMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSiteThemeMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateStoreMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTableGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTableModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTableMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTableTemplateModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTriggerFunctionMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTriggerMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUniqueConstraintMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUserAuthModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUserMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUsersModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUuidModuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateViewGrantMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateViewMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateViewRuleMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateViewTableMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useVerifyEmailMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useVerifyPasswordMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useVerifyTotpMutation.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/index.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useApiModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useApiModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useApiQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useApiSchemaQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useApiSchemasQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useApisQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppAchievementQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppAchievementsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppAdminGrantQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppAdminGrantsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppGrantQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppGrantsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppLevelQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppLevelRequirementQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppLevelRequirementsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppLevelsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppLimitDefaultQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppLimitDefaultsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppLimitQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppLimitsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppMembershipDefaultQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppMembershipDefaultsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppMembershipQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppMembershipsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppOwnerGrantQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppOwnerGrantsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionDefaultQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionDefaultsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsGetByMaskQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsGetMaskQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppStepQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppStepsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAstMigrationQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAstMigrationsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAuditLogQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAuditLogsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCheckConstraintQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCheckConstraintsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useClaimedInviteQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useClaimedInvitesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCommitQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCommitsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useConnectedAccountQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useConnectedAccountsModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useConnectedAccountsModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useConnectedAccountsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCryptoAddressQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCryptoAddressesModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCryptoAddressesModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCryptoAddressesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCryptoAuthModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCryptoAuthModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCurrentIpAddressQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCurrentUserAgentQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCurrentUserIdQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCurrentUserQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useDatabaseProvisionModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useDatabaseProvisionModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useDatabaseQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useDatabasesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useDefaultIdsModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useDefaultIdsModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useDenormalizedTableFieldQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useDenormalizedTableFieldsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useDomainQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useDomainsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useEmailQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useEmailsModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useEmailsModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useEmailsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useEncryptedSecretsModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useEncryptedSecretsModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useFieldModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useFieldModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useFieldQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useFieldsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useForeignKeyConstraintQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useForeignKeyConstraintsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useFullTextSearchQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useFullTextSearchesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useGetAllObjectsFromRootQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useGetAllQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useGetObjectAtPathQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useGetPathObjectsFromRootQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useHierarchyModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useHierarchyModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useIndexQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useIndicesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useInviteQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useInvitesModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useInvitesModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useInvitesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useLevelsModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useLevelsModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useLimitFunctionQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useLimitFunctionsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useLimitsModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useLimitsModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useMembershipTypeQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useMembershipTypesModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useMembershipTypesModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useMembershipTypesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useMembershipsModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useMembershipsModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useNodeTypeRegistriesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useNodeTypeRegistryQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useObjectQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useObjectsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgAdminGrantQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgAdminGrantsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgClaimedInviteQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgClaimedInvitesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgGrantQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgGrantsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgInviteQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgInvitesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgLimitDefaultQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgLimitDefaultsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgLimitQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgLimitsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgMemberQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgMembersQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgMembershipDefaultQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgMembershipDefaultsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgMembershipQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgMembershipsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgOwnerGrantQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgOwnerGrantsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionDefaultQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionDefaultsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsGetByMaskQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsGetMaskQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/usePermissionsModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/usePermissionsModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/usePhoneNumberQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/usePhoneNumbersModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/usePhoneNumbersModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/usePhoneNumbersQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/usePoliciesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/usePolicyQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/usePrimaryKeyConstraintQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/usePrimaryKeyConstraintsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useProcedureQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useProceduresQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useProfilesModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useProfilesModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useRefQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useRefsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useRevParseQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useRlsModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useRlsModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useRoleTypeQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useRoleTypesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSchemaGrantQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSchemaGrantsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSchemaQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSchemasQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSecretsModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSecretsModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSessionsModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSessionsModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSiteMetadataQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSiteMetadatumQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSiteModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSiteModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSiteQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSiteThemeQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSiteThemesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSitesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSqlMigrationQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSqlMigrationsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useStepsAchievedQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useStepsRequiredQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useStoreQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useStoresQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTableGrantQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTableGrantsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTableModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTableModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTableQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTableTemplateModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTableTemplateModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTablesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTriggerFunctionQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTriggerFunctionsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTriggerQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTriggersQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useUniqueConstraintQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useUniqueConstraintsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useUserAuthModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useUserAuthModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useUserQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useUsersModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useUsersModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useUsersQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useUuidModuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useUuidModulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useViewGrantQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useViewGrantsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useViewQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useViewRuleQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useViewRulesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useViewTableQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useViewTablesQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useViewsQuery.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/query-keys.ts create mode 100644 sdk/constructive-sdk/src/public/hooks/selection.ts create mode 100644 sdk/constructive-sdk/src/public/schema-types.ts create mode 100644 sdk/constructive-sdk/src/public/types.ts diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e84eded1f..99b51b3fc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2384,6 +2384,9 @@ importers: '@constructive-io/graphql-types': specifier: workspace:^ version: link:../../graphql/types/dist + '@tanstack/react-query': + specifier: ^5.90.16 + version: 5.90.20(react@19.2.3) gql-ast: specifier: workspace:^ version: link:../../graphql/gql-ast/dist diff --git a/sdk/constructive-sdk/README.md b/sdk/constructive-sdk/README.md index 9129e1210..6677a3ceb 100644 --- a/sdk/constructive-sdk/README.md +++ b/sdk/constructive-sdk/README.md @@ -10,10 +10,10 @@ | API | Endpoint | Generators | Docs | |-----|----------|------------|------| -| admin | - | ORM | [./src/admin/README.md](./src/admin/README.md) | -| auth | - | ORM | [./src/auth/README.md](./src/auth/README.md) | -| objects | - | ORM | [./src/objects/README.md](./src/objects/README.md) | -| public | - | ORM | [./src/public/README.md](./src/public/README.md) | +| 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) | --- diff --git a/sdk/constructive-sdk/package.json b/sdk/constructive-sdk/package.json index 398244e84..6375a63ee 100644 --- a/sdk/constructive-sdk/package.json +++ b/sdk/constructive-sdk/package.json @@ -41,7 +41,8 @@ "@0no-co/graphql.web": "^1.1.2", "@constructive-io/graphql-types": "workspace:^", "gql-ast": "workspace:^", - "graphql": "^16.12.0" + "graphql": "^16.12.0", + "@tanstack/react-query": "^5.90.16" }, "devDependencies": { "@constructive-io/graphql-codegen": "workspace:^", @@ -50,4 +51,4 @@ "tsx": "^4.19.0", "typescript": "^5.9.3" } -} +} \ No newline at end of file diff --git a/sdk/constructive-sdk/scripts/generate-sdk.ts b/sdk/constructive-sdk/scripts/generate-sdk.ts index 600abe198..4f5fbe9fa 100644 --- a/sdk/constructive-sdk/scripts/generate-sdk.ts +++ b/sdk/constructive-sdk/scripts/generate-sdk.ts @@ -15,6 +15,7 @@ async function main() { schemaDir: SCHEMA_DIR, output: './src', orm: true, + reactQuery: true, verbose: true, }; diff --git a/sdk/constructive-sdk/src/admin/README.md b/sdk/constructive-sdk/src/admin/README.md index 18018ea8a..768a64c6c 100644 --- a/sdk/constructive-sdk/src/admin/README.md +++ b/sdk/constructive-sdk/src/admin/README.md @@ -12,7 +12,7 @@ - **Custom queries:** 10 - **Custom mutations:** 2 -**Generators:** ORM +**Generators:** ORM, React Query ## Modules @@ -30,6 +30,19 @@ const db = createClient({ 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. diff --git a/sdk/constructive-sdk/src/admin/hooks/AGENTS.md b/sdk/constructive-sdk/src/admin/hooks/AGENTS.md new file mode 100644 index 000000000..918f09f85 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/hooks/AGENTS.md @@ -0,0 +1,2383 @@ +# React Query Hooks - Agent Reference + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT +> This document is structured for LLM/agent consumption. + +## OVERVIEW + +React Query hooks wrapping ORM operations for data fetching and mutations. +All query hooks return `UseQueryResult`. All mutation hooks return `UseMutationResult`. + +## SETUP + +```typescript +import { configure } from './hooks'; +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; + +configure({ endpoint: 'https://api.example.com/graphql' }); +const queryClient = new QueryClient(); +// Wrap app in +``` + +## HOOKS + +### HOOK: useAppPermissionsQuery + +List all appPermissions. + +``` +TYPE: query +USAGE: useAppPermissionsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppPermissionQuery + +Get a single appPermission by id. + +``` +TYPE: query +USAGE: useAppPermissionQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + name: string + bitnum: number + bitstr: string + description: string +}> +``` + +### HOOK: useCreateAppPermissionMutation + +Create a new appPermission. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppPermissionMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppPermissionMutation + +Update an existing appPermission. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppPermissionMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppPermissionMutation + +Delete a appPermission. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppPermissionMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgPermissionsQuery + +List all orgPermissions. + +``` +TYPE: query +USAGE: useOrgPermissionsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgPermissionQuery + +Get a single orgPermission by id. + +``` +TYPE: query +USAGE: useOrgPermissionQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + name: string + bitnum: number + bitstr: string + description: string +}> +``` + +### HOOK: useCreateOrgPermissionMutation + +Create a new orgPermission. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgPermissionMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgPermissionMutation + +Update an existing orgPermission. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgPermissionMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgPermissionMutation + +Delete a orgPermission. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgPermissionMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppLevelRequirementsQuery + +List all appLevelRequirements. + +``` +TYPE: query +USAGE: useAppLevelRequirementsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppLevelRequirementQuery + +Get a single appLevelRequirement by id. + +``` +TYPE: query +USAGE: useAppLevelRequirementQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + name: string + level: string + description: string + requiredCount: number + priority: number + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateAppLevelRequirementMutation + +Create a new appLevelRequirement. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppLevelRequirementMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppLevelRequirementMutation + +Update an existing appLevelRequirement. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppLevelRequirementMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppLevelRequirementMutation + +Delete a appLevelRequirement. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppLevelRequirementMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgMembersQuery + +List all orgMembers. + +``` +TYPE: query +USAGE: useOrgMembersQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgMemberQuery + +Get a single orgMember by id. + +``` +TYPE: query +USAGE: useOrgMemberQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + isAdmin: boolean + actorId: string + entityId: string +}> +``` + +### HOOK: useCreateOrgMemberMutation + +Create a new orgMember. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgMemberMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgMemberMutation + +Update an existing orgMember. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgMemberMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgMemberMutation + +Delete a orgMember. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgMemberMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppPermissionDefaultsQuery + +List all appPermissionDefaults. + +``` +TYPE: query +USAGE: useAppPermissionDefaultsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppPermissionDefaultQuery + +Get a single appPermissionDefault by id. + +``` +TYPE: query +USAGE: useAppPermissionDefaultQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + permissions: string +}> +``` + +### HOOK: useCreateAppPermissionDefaultMutation + +Create a new appPermissionDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppPermissionDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppPermissionDefaultMutation + +Update an existing appPermissionDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppPermissionDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppPermissionDefaultMutation + +Delete a appPermissionDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppPermissionDefaultMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgPermissionDefaultsQuery + +List all orgPermissionDefaults. + +``` +TYPE: query +USAGE: useOrgPermissionDefaultsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgPermissionDefaultQuery + +Get a single orgPermissionDefault by id. + +``` +TYPE: query +USAGE: useOrgPermissionDefaultQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + permissions: string + entityId: string +}> +``` + +### HOOK: useCreateOrgPermissionDefaultMutation + +Create a new orgPermissionDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgPermissionDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgPermissionDefaultMutation + +Update an existing orgPermissionDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgPermissionDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgPermissionDefaultMutation + +Delete a orgPermissionDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgPermissionDefaultMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppAdminGrantsQuery + +List all appAdminGrants. + +``` +TYPE: query +USAGE: useAppAdminGrantsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppAdminGrantQuery + +Get a single appAdminGrant by id. + +``` +TYPE: query +USAGE: useAppAdminGrantQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + isGrant: boolean + actorId: string + grantorId: string + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateAppAdminGrantMutation + +Create a new appAdminGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppAdminGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppAdminGrantMutation + +Update an existing appAdminGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppAdminGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppAdminGrantMutation + +Delete a appAdminGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppAdminGrantMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppOwnerGrantsQuery + +List all appOwnerGrants. + +``` +TYPE: query +USAGE: useAppOwnerGrantsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppOwnerGrantQuery + +Get a single appOwnerGrant by id. + +``` +TYPE: query +USAGE: useAppOwnerGrantQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + isGrant: boolean + actorId: string + grantorId: string + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateAppOwnerGrantMutation + +Create a new appOwnerGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppOwnerGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppOwnerGrantMutation + +Update an existing appOwnerGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppOwnerGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppOwnerGrantMutation + +Delete a appOwnerGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppOwnerGrantMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppLimitDefaultsQuery + +List all appLimitDefaults. + +``` +TYPE: query +USAGE: useAppLimitDefaultsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppLimitDefaultQuery + +Get a single appLimitDefault by id. + +``` +TYPE: query +USAGE: useAppLimitDefaultQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + name: string + max: number +}> +``` + +### HOOK: useCreateAppLimitDefaultMutation + +Create a new appLimitDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppLimitDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppLimitDefaultMutation + +Update an existing appLimitDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppLimitDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppLimitDefaultMutation + +Delete a appLimitDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppLimitDefaultMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgLimitDefaultsQuery + +List all orgLimitDefaults. + +``` +TYPE: query +USAGE: useOrgLimitDefaultsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgLimitDefaultQuery + +Get a single orgLimitDefault by id. + +``` +TYPE: query +USAGE: useOrgLimitDefaultQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + name: string + max: number +}> +``` + +### HOOK: useCreateOrgLimitDefaultMutation + +Create a new orgLimitDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgLimitDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgLimitDefaultMutation + +Update an existing orgLimitDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgLimitDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgLimitDefaultMutation + +Delete a orgLimitDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgLimitDefaultMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgAdminGrantsQuery + +List all orgAdminGrants. + +``` +TYPE: query +USAGE: useOrgAdminGrantsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgAdminGrantQuery + +Get a single orgAdminGrant by id. + +``` +TYPE: query +USAGE: useOrgAdminGrantQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + isGrant: boolean + actorId: string + entityId: string + grantorId: string + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateOrgAdminGrantMutation + +Create a new orgAdminGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgAdminGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgAdminGrantMutation + +Update an existing orgAdminGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgAdminGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgAdminGrantMutation + +Delete a orgAdminGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgAdminGrantMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgOwnerGrantsQuery + +List all orgOwnerGrants. + +``` +TYPE: query +USAGE: useOrgOwnerGrantsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgOwnerGrantQuery + +Get a single orgOwnerGrant by id. + +``` +TYPE: query +USAGE: useOrgOwnerGrantQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + isGrant: boolean + actorId: string + entityId: string + grantorId: string + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateOrgOwnerGrantMutation + +Create a new orgOwnerGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgOwnerGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgOwnerGrantMutation + +Update an existing orgOwnerGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgOwnerGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgOwnerGrantMutation + +Delete a orgOwnerGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgOwnerGrantMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useMembershipTypesQuery + +List all membershipTypes. + +``` +TYPE: query +USAGE: useMembershipTypesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useMembershipTypeQuery + +Get a single membershipType by id. + +``` +TYPE: query +USAGE: useMembershipTypeQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: number (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: number + name: string + description: string + prefix: string +}> +``` + +### HOOK: useCreateMembershipTypeMutation + +Create a new membershipType. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateMembershipTypeMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateMembershipTypeMutation + +Update an existing membershipType. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateMembershipTypeMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteMembershipTypeMutation + +Delete a membershipType. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteMembershipTypeMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppLimitsQuery + +List all appLimits. + +``` +TYPE: query +USAGE: useAppLimitsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppLimitQuery + +Get a single appLimit by id. + +``` +TYPE: query +USAGE: useAppLimitQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + name: string + actorId: string + num: number + max: number +}> +``` + +### HOOK: useCreateAppLimitMutation + +Create a new appLimit. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppLimitMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppLimitMutation + +Update an existing appLimit. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppLimitMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppLimitMutation + +Delete a appLimit. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppLimitMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppAchievementsQuery + +List all appAchievements. + +``` +TYPE: query +USAGE: useAppAchievementsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppAchievementQuery + +Get a single appAchievement by id. + +``` +TYPE: query +USAGE: useAppAchievementQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + actorId: string + name: string + count: number + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateAppAchievementMutation + +Create a new appAchievement. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppAchievementMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppAchievementMutation + +Update an existing appAchievement. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppAchievementMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppAchievementMutation + +Delete a appAchievement. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppAchievementMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppStepsQuery + +List all appSteps. + +``` +TYPE: query +USAGE: useAppStepsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppStepQuery + +Get a single appStep by id. + +``` +TYPE: query +USAGE: useAppStepQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + actorId: string + name: string + count: number + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateAppStepMutation + +Create a new appStep. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppStepMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppStepMutation + +Update an existing appStep. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppStepMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppStepMutation + +Delete a appStep. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppStepMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useClaimedInvitesQuery + +List all claimedInvites. + +``` +TYPE: query +USAGE: useClaimedInvitesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useClaimedInviteQuery + +Get a single claimedInvite by id. + +``` +TYPE: query +USAGE: useClaimedInviteQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + data: unknown + senderId: string + receiverId: string + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateClaimedInviteMutation + +Create a new claimedInvite. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateClaimedInviteMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateClaimedInviteMutation + +Update an existing claimedInvite. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateClaimedInviteMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteClaimedInviteMutation + +Delete a claimedInvite. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteClaimedInviteMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppGrantsQuery + +List all appGrants. + +``` +TYPE: query +USAGE: useAppGrantsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppGrantQuery + +Get a single appGrant by id. + +``` +TYPE: query +USAGE: useAppGrantQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + permissions: string + isGrant: boolean + actorId: string + grantorId: string + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateAppGrantMutation + +Create a new appGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppGrantMutation + +Update an existing appGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppGrantMutation + +Delete a appGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppGrantMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppMembershipDefaultsQuery + +List all appMembershipDefaults. + +``` +TYPE: query +USAGE: useAppMembershipDefaultsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppMembershipDefaultQuery + +Get a single appMembershipDefault by id. + +``` +TYPE: query +USAGE: useAppMembershipDefaultQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + createdAt: string + updatedAt: string + createdBy: string + updatedBy: string + isApproved: boolean + isVerified: boolean +}> +``` + +### HOOK: useCreateAppMembershipDefaultMutation + +Create a new appMembershipDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppMembershipDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppMembershipDefaultMutation + +Update an existing appMembershipDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppMembershipDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppMembershipDefaultMutation + +Delete a appMembershipDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppMembershipDefaultMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgLimitsQuery + +List all orgLimits. + +``` +TYPE: query +USAGE: useOrgLimitsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgLimitQuery + +Get a single orgLimit by id. + +``` +TYPE: query +USAGE: useOrgLimitQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + name: string + actorId: string + num: number + max: number + entityId: string +}> +``` + +### HOOK: useCreateOrgLimitMutation + +Create a new orgLimit. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgLimitMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgLimitMutation + +Update an existing orgLimit. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgLimitMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgLimitMutation + +Delete a orgLimit. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgLimitMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgClaimedInvitesQuery + +List all orgClaimedInvites. + +``` +TYPE: query +USAGE: useOrgClaimedInvitesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgClaimedInviteQuery + +Get a single orgClaimedInvite by id. + +``` +TYPE: query +USAGE: useOrgClaimedInviteQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + data: unknown + senderId: string + receiverId: string + createdAt: string + updatedAt: string + entityId: string +}> +``` + +### HOOK: useCreateOrgClaimedInviteMutation + +Create a new orgClaimedInvite. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgClaimedInviteMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgClaimedInviteMutation + +Update an existing orgClaimedInvite. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgClaimedInviteMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgClaimedInviteMutation + +Delete a orgClaimedInvite. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgClaimedInviteMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgGrantsQuery + +List all orgGrants. + +``` +TYPE: query +USAGE: useOrgGrantsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgGrantQuery + +Get a single orgGrant by id. + +``` +TYPE: query +USAGE: useOrgGrantQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + permissions: string + isGrant: boolean + actorId: string + entityId: string + grantorId: string + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateOrgGrantMutation + +Create a new orgGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgGrantMutation + +Update an existing orgGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgGrantMutation + +Delete a orgGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgGrantMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgMembershipDefaultsQuery + +List all orgMembershipDefaults. + +``` +TYPE: query +USAGE: useOrgMembershipDefaultsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgMembershipDefaultQuery + +Get a single orgMembershipDefault by id. + +``` +TYPE: query +USAGE: useOrgMembershipDefaultQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + createdAt: string + updatedAt: string + createdBy: string + updatedBy: string + isApproved: boolean + entityId: string + deleteMemberCascadeGroups: boolean + createGroupsCascadeMembers: boolean +}> +``` + +### HOOK: useCreateOrgMembershipDefaultMutation + +Create a new orgMembershipDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgMembershipDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgMembershipDefaultMutation + +Update an existing orgMembershipDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgMembershipDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgMembershipDefaultMutation + +Delete a orgMembershipDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgMembershipDefaultMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppLevelsQuery + +List all appLevels. + +``` +TYPE: query +USAGE: useAppLevelsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppLevelQuery + +Get a single appLevel by id. + +``` +TYPE: query +USAGE: useAppLevelQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + name: string + description: string + image: ConstructiveInternalTypeImage + ownerId: string + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateAppLevelMutation + +Create a new appLevel. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppLevelMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppLevelMutation + +Update an existing appLevel. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppLevelMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppLevelMutation + +Delete a appLevel. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppLevelMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useInvitesQuery + +List all invites. + +``` +TYPE: query +USAGE: useInvitesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useInviteQuery + +Get a single invite by id. + +``` +TYPE: query +USAGE: useInviteQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + email: ConstructiveInternalTypeEmail + senderId: string + inviteToken: string + inviteValid: boolean + inviteLimit: number + inviteCount: number + multiple: boolean + data: unknown + expiresAt: string + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateInviteMutation + +Create a new invite. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateInviteMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateInviteMutation + +Update an existing invite. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateInviteMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteInviteMutation + +Delete a invite. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteInviteMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppMembershipsQuery + +List all appMemberships. + +``` +TYPE: query +USAGE: useAppMembershipsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppMembershipQuery + +Get a single appMembership by id. + +``` +TYPE: query +USAGE: useAppMembershipQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateAppMembershipMutation + +Create a new appMembership. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppMembershipMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppMembershipMutation + +Update an existing appMembership. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppMembershipMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppMembershipMutation + +Delete a appMembership. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppMembershipMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgMembershipsQuery + +List all orgMemberships. + +``` +TYPE: query +USAGE: useOrgMembershipsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgMembershipQuery + +Get a single orgMembership by id. + +``` +TYPE: query +USAGE: useOrgMembershipQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateOrgMembershipMutation + +Create a new orgMembership. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgMembershipMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgMembershipMutation + +Update an existing orgMembership. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgMembershipMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgMembershipMutation + +Delete a orgMembership. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgMembershipMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgInvitesQuery + +List all orgInvites. + +``` +TYPE: query +USAGE: useOrgInvitesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgInviteQuery + +Get a single orgInvite by id. + +``` +TYPE: query +USAGE: useOrgInviteQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateOrgInviteMutation + +Create a new orgInvite. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgInviteMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgInviteMutation + +Update an existing orgInvite. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgInviteMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgInviteMutation + +Delete a orgInvite. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgInviteMutation({}) + +OUTPUT: UseMutationResult +``` + +## CUSTOM OPERATION HOOKS + +### HOOK: useAppPermissionsGetPaddedMaskQuery + +appPermissionsGetPaddedMask + +``` +TYPE: query +USAGE: useAppPermissionsGetPaddedMaskQuery({ mask: }) + +INPUT: + mask: BitString + +OUTPUT: UseQueryResult +``` + +### HOOK: useOrgPermissionsGetPaddedMaskQuery + +orgPermissionsGetPaddedMask + +``` +TYPE: query +USAGE: useOrgPermissionsGetPaddedMaskQuery({ mask: }) + +INPUT: + mask: BitString + +OUTPUT: UseQueryResult +``` + +### HOOK: useStepsAchievedQuery + +stepsAchieved + +``` +TYPE: query +USAGE: useStepsAchievedQuery({ vlevel: , vroleId: }) + +INPUT: + vlevel: String + vroleId: UUID + +OUTPUT: UseQueryResult +``` + +### HOOK: useAppPermissionsGetMaskQuery + +appPermissionsGetMask + +``` +TYPE: query +USAGE: useAppPermissionsGetMaskQuery({ ids: }) + +INPUT: + ids: [UUID] + +OUTPUT: UseQueryResult +``` + +### HOOK: useOrgPermissionsGetMaskQuery + +orgPermissionsGetMask + +``` +TYPE: query +USAGE: useOrgPermissionsGetMaskQuery({ ids: }) + +INPUT: + ids: [UUID] + +OUTPUT: UseQueryResult +``` + +### HOOK: useAppPermissionsGetMaskByNamesQuery + +appPermissionsGetMaskByNames + +``` +TYPE: query +USAGE: useAppPermissionsGetMaskByNamesQuery({ names: }) + +INPUT: + names: [String] + +OUTPUT: UseQueryResult +``` + +### HOOK: useOrgPermissionsGetMaskByNamesQuery + +orgPermissionsGetMaskByNames + +``` +TYPE: query +USAGE: useOrgPermissionsGetMaskByNamesQuery({ names: }) + +INPUT: + names: [String] + +OUTPUT: UseQueryResult +``` + +### HOOK: useAppPermissionsGetByMaskQuery + +Reads and enables pagination through a set of `AppPermission`. + +``` +TYPE: query +USAGE: useAppPermissionsGetByMaskQuery({ mask: , first: , offset: , after: }) + +INPUT: + mask: BitString + first: Int + offset: Int + after: Cursor + +OUTPUT: UseQueryResult +``` + +### HOOK: useOrgPermissionsGetByMaskQuery + +Reads and enables pagination through a set of `OrgPermission`. + +``` +TYPE: query +USAGE: useOrgPermissionsGetByMaskQuery({ mask: , first: , offset: , after: }) + +INPUT: + mask: BitString + first: Int + offset: Int + after: Cursor + +OUTPUT: UseQueryResult +``` + +### HOOK: useStepsRequiredQuery + +Reads and enables pagination through a set of `AppLevelRequirement`. + +``` +TYPE: query +USAGE: useStepsRequiredQuery({ vlevel: , vroleId: , first: , offset: , after: }) + +INPUT: + vlevel: String + vroleId: UUID + first: Int + offset: Int + after: Cursor + +OUTPUT: UseQueryResult +``` + +### HOOK: useSubmitInviteCodeMutation + +submitInviteCode + +``` +TYPE: mutation +USAGE: const { mutate } = useSubmitInviteCodeMutation() + mutate({ input: }) + +INPUT: + input: SubmitInviteCodeInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSubmitOrgInviteCodeMutation + +submitOrgInviteCode + +``` +TYPE: mutation +USAGE: const { mutate } = useSubmitOrgInviteCodeMutation() + mutate({ input: }) + +INPUT: + input: SubmitOrgInviteCodeInput (required) + +OUTPUT: UseMutationResult +``` diff --git a/sdk/constructive-sdk/src/admin/hooks/README.md b/sdk/constructive-sdk/src/admin/hooks/README.md new file mode 100644 index 000000000..29f2121f0 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/hooks/README.md @@ -0,0 +1,931 @@ +# React Query Hooks + +

+ +

+ +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +## 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-sdk/src/admin/hooks/client.ts b/sdk/constructive-sdk/src/admin/hooks/client.ts new file mode 100644 index 000000000..47b9aa63f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/index.ts b/sdk/constructive-sdk/src/admin/hooks/index.ts new file mode 100644 index 000000000..67389b2a9 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/hooks/index.ts @@ -0,0 +1,39 @@ +/** + * Auto-generated 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-sdk/src/admin/hooks/invalidation.ts b/sdk/constructive-sdk/src/admin/hooks/invalidation.ts new file mode 100644 index 000000000..5358dc6b0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutation-keys.ts b/sdk/constructive-sdk/src/admin/hooks/mutation-keys.ts new file mode 100644 index 000000000..788ebfd51 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/index.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/index.ts new file mode 100644 index 000000000..0f9e610e3 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateAppAchievementMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppAchievementMutation.ts new file mode 100644 index 000000000..b39c550bf --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateAppAdminGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppAdminGrantMutation.ts new file mode 100644 index 000000000..7dd44401e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateAppGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppGrantMutation.ts new file mode 100644 index 000000000..0e2e4c286 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateAppLevelMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppLevelMutation.ts new file mode 100644 index 000000000..393ed2c2a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateAppLevelRequirementMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppLevelRequirementMutation.ts new file mode 100644 index 000000000..cde42cf7e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateAppLimitDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppLimitDefaultMutation.ts new file mode 100644 index 000000000..40b24b14d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateAppLimitMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppLimitMutation.ts new file mode 100644 index 000000000..b7f7072be --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateAppMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppMembershipDefaultMutation.ts new file mode 100644 index 000000000..0a4ecf4bc --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts new file mode 100644 index 000000000..fa08b65df --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateAppOwnerGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppOwnerGrantMutation.ts new file mode 100644 index 000000000..81f12be36 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateAppPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppPermissionDefaultMutation.ts new file mode 100644 index 000000000..1f2314266 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateAppPermissionMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppPermissionMutation.ts new file mode 100644 index 000000000..73d4eceec --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateAppStepMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppStepMutation.ts new file mode 100644 index 000000000..479dc0a3a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateClaimedInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateClaimedInviteMutation.ts new file mode 100644 index 000000000..a84eca95c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateInviteMutation.ts new file mode 100644 index 000000000..928d4f0cd --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateMembershipTypeMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateMembershipTypeMutation.ts new file mode 100644 index 000000000..d8219655f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateOrgAdminGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgAdminGrantMutation.ts new file mode 100644 index 000000000..00687d7da --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateOrgClaimedInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgClaimedInviteMutation.ts new file mode 100644 index 000000000..4ee4b71c3 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts new file mode 100644 index 000000000..391138997 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateOrgInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgInviteMutation.ts new file mode 100644 index 000000000..6d65fa995 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateOrgLimitDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgLimitDefaultMutation.ts new file mode 100644 index 000000000..af559e6a2 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateOrgLimitMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgLimitMutation.ts new file mode 100644 index 000000000..33ed2f69e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateOrgMemberMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgMemberMutation.ts new file mode 100644 index 000000000..73bbfce52 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts new file mode 100644 index 000000000..9c1290cfb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts new file mode 100644 index 000000000..e2b7c7e9b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateOrgOwnerGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgOwnerGrantMutation.ts new file mode 100644 index 000000000..9cec71f7f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts new file mode 100644 index 000000000..da1688a0f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useCreateOrgPermissionMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgPermissionMutation.ts new file mode 100644 index 000000000..b1fd9fd3b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteAppAchievementMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppAchievementMutation.ts new file mode 100644 index 000000000..73f3b0b52 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteAppAdminGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppAdminGrantMutation.ts new file mode 100644 index 000000000..83efe201c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts new file mode 100644 index 000000000..2dcc61484 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteAppLevelMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppLevelMutation.ts new file mode 100644 index 000000000..d7d002ddb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.ts new file mode 100644 index 000000000..bcb3e249f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteAppLimitDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppLimitDefaultMutation.ts new file mode 100644 index 000000000..3d8cec160 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteAppLimitMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppLimitMutation.ts new file mode 100644 index 000000000..9b3ebc52e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts new file mode 100644 index 000000000..bd2d8e77b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts new file mode 100644 index 000000000..270821ab2 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteAppOwnerGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppOwnerGrantMutation.ts new file mode 100644 index 000000000..037ca9d28 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts new file mode 100644 index 000000000..1c350f3fb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteAppPermissionMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppPermissionMutation.ts new file mode 100644 index 000000000..327b4a107 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteAppStepMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppStepMutation.ts new file mode 100644 index 000000000..f9f36baf8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteClaimedInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteClaimedInviteMutation.ts new file mode 100644 index 000000000..2c3709bd0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteInviteMutation.ts new file mode 100644 index 000000000..bf9850ba6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteMembershipTypeMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteMembershipTypeMutation.ts new file mode 100644 index 000000000..dbec0d9e9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteOrgAdminGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgAdminGrantMutation.ts new file mode 100644 index 000000000..b2b62e271 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts new file mode 100644 index 000000000..267b1abfe --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts new file mode 100644 index 000000000..94b80fa12 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteOrgInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgInviteMutation.ts new file mode 100644 index 000000000..2960aeac6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts new file mode 100644 index 000000000..a8e7bf162 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteOrgLimitMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgLimitMutation.ts new file mode 100644 index 000000000..818a3b294 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteOrgMemberMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgMemberMutation.ts new file mode 100644 index 000000000..9c7697147 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts new file mode 100644 index 000000000..e5c398c57 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts new file mode 100644 index 000000000..5108e73b9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts new file mode 100644 index 000000000..4700e63cd --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts new file mode 100644 index 000000000..841805104 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useDeleteOrgPermissionMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgPermissionMutation.ts new file mode 100644 index 000000000..0792b5be9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useSubmitInviteCodeMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useSubmitInviteCodeMutation.ts new file mode 100644 index 000000000..f98317bc5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useSubmitOrgInviteCodeMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useSubmitOrgInviteCodeMutation.ts new file mode 100644 index 000000000..a2e71103b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateAppAchievementMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppAchievementMutation.ts new file mode 100644 index 000000000..799b7770f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateAppAdminGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppAdminGrantMutation.ts new file mode 100644 index 000000000..9f97a4a26 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts new file mode 100644 index 000000000..fe323065c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateAppLevelMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppLevelMutation.ts new file mode 100644 index 000000000..309666ec5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.ts new file mode 100644 index 000000000..418f3464a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateAppLimitDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppLimitDefaultMutation.ts new file mode 100644 index 000000000..e4bf58682 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateAppLimitMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppLimitMutation.ts new file mode 100644 index 000000000..673e80850 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts new file mode 100644 index 000000000..c2d03af41 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts new file mode 100644 index 000000000..21a8572d7 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateAppOwnerGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppOwnerGrantMutation.ts new file mode 100644 index 000000000..ec1d11eb5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts new file mode 100644 index 000000000..9413e7ad3 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateAppPermissionMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppPermissionMutation.ts new file mode 100644 index 000000000..73effb82a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateAppStepMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppStepMutation.ts new file mode 100644 index 000000000..2cfe95818 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateClaimedInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateClaimedInviteMutation.ts new file mode 100644 index 000000000..45ccdc49a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateInviteMutation.ts new file mode 100644 index 000000000..819636de6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateMembershipTypeMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateMembershipTypeMutation.ts new file mode 100644 index 000000000..caee90ff0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateOrgAdminGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgAdminGrantMutation.ts new file mode 100644 index 000000000..41f8e6380 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts new file mode 100644 index 000000000..8b2a21d55 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts new file mode 100644 index 000000000..fc612cf93 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateOrgInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgInviteMutation.ts new file mode 100644 index 000000000..5093adbfc --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts new file mode 100644 index 000000000..9226eadb8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateOrgLimitMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgLimitMutation.ts new file mode 100644 index 000000000..cd8f3baed --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateOrgMemberMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgMemberMutation.ts new file mode 100644 index 000000000..42f54bfc7 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts new file mode 100644 index 000000000..06b97181c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts new file mode 100644 index 000000000..5a8998fb2 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts new file mode 100644 index 000000000..f1704e8be --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts new file mode 100644 index 000000000..b512499d2 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/mutations/useUpdateOrgPermissionMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgPermissionMutation.ts new file mode 100644 index 000000000..69be765f0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/index.ts b/sdk/constructive-sdk/src/admin/hooks/queries/index.ts new file mode 100644 index 000000000..8ae463934 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppAchievementQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppAchievementQuery.ts new file mode 100644 index 000000000..136d30313 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppAchievementsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppAchievementsQuery.ts new file mode 100644 index 000000000..fb905cd4e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppAdminGrantQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppAdminGrantQuery.ts new file mode 100644 index 000000000..d010f7876 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppAdminGrantsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppAdminGrantsQuery.ts new file mode 100644 index 000000000..eb47436de --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppGrantQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppGrantQuery.ts new file mode 100644 index 000000000..a730510c7 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppGrantsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppGrantsQuery.ts new file mode 100644 index 000000000..cf20fe3c6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppLevelQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppLevelQuery.ts new file mode 100644 index 000000000..0c550dd44 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppLevelRequirementQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppLevelRequirementQuery.ts new file mode 100644 index 000000000..03271277e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppLevelRequirementsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppLevelRequirementsQuery.ts new file mode 100644 index 000000000..f085058b5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppLevelsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppLevelsQuery.ts new file mode 100644 index 000000000..39c9b44bc --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppLimitDefaultQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppLimitDefaultQuery.ts new file mode 100644 index 000000000..c68c8c7ca --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppLimitDefaultsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppLimitDefaultsQuery.ts new file mode 100644 index 000000000..8f702ecb1 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppLimitQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppLimitQuery.ts new file mode 100644 index 000000000..eb7beb27f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppLimitsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppLimitsQuery.ts new file mode 100644 index 000000000..280fd25e8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppMembershipDefaultQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppMembershipDefaultQuery.ts new file mode 100644 index 000000000..b34f50fc2 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppMembershipDefaultsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppMembershipDefaultsQuery.ts new file mode 100644 index 000000000..bda74e8ba --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppMembershipQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppMembershipQuery.ts new file mode 100644 index 000000000..5cd832890 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppMembershipsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppMembershipsQuery.ts new file mode 100644 index 000000000..714e4372b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppOwnerGrantQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppOwnerGrantQuery.ts new file mode 100644 index 000000000..49fcb6506 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppOwnerGrantsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppOwnerGrantsQuery.ts new file mode 100644 index 000000000..25a312bcc --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppPermissionDefaultQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionDefaultQuery.ts new file mode 100644 index 000000000..47eb66e64 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppPermissionDefaultsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionDefaultsQuery.ts new file mode 100644 index 000000000..21414a9fb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppPermissionQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionQuery.ts new file mode 100644 index 000000000..37a00c5e9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppPermissionsGetByMaskQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsGetByMaskQuery.ts new file mode 100644 index 000000000..78774ab69 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts new file mode 100644 index 000000000..cbfe1fad8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppPermissionsGetMaskQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsGetMaskQuery.ts new file mode 100644 index 000000000..b1e3289da --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts new file mode 100644 index 000000000..cb504f810 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppPermissionsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsQuery.ts new file mode 100644 index 000000000..f44f4e105 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppStepQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppStepQuery.ts new file mode 100644 index 000000000..7ccfc9884 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useAppStepsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppStepsQuery.ts new file mode 100644 index 000000000..b6f7d90d8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useClaimedInviteQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useClaimedInviteQuery.ts new file mode 100644 index 000000000..e74f389c7 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useClaimedInvitesQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useClaimedInvitesQuery.ts new file mode 100644 index 000000000..9373984d9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useInviteQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useInviteQuery.ts new file mode 100644 index 000000000..51db01afb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useInvitesQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useInvitesQuery.ts new file mode 100644 index 000000000..19a1fd3b1 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useMembershipTypeQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useMembershipTypeQuery.ts new file mode 100644 index 000000000..c8d749048 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useMembershipTypesQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useMembershipTypesQuery.ts new file mode 100644 index 000000000..c0f5b68c9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgAdminGrantQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgAdminGrantQuery.ts new file mode 100644 index 000000000..a4f507c14 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgAdminGrantsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgAdminGrantsQuery.ts new file mode 100644 index 000000000..e3ce559b3 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgClaimedInviteQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgClaimedInviteQuery.ts new file mode 100644 index 000000000..42ac5f45a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgClaimedInvitesQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgClaimedInvitesQuery.ts new file mode 100644 index 000000000..965828b20 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgGrantQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgGrantQuery.ts new file mode 100644 index 000000000..14ccf29ec --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgGrantsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgGrantsQuery.ts new file mode 100644 index 000000000..8f1ddc2ab --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgInviteQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgInviteQuery.ts new file mode 100644 index 000000000..d6c2f623f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgInvitesQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgInvitesQuery.ts new file mode 100644 index 000000000..baaef3936 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgLimitDefaultQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgLimitDefaultQuery.ts new file mode 100644 index 000000000..695d1eff9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgLimitDefaultsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgLimitDefaultsQuery.ts new file mode 100644 index 000000000..fae82e41b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgLimitQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgLimitQuery.ts new file mode 100644 index 000000000..db061397b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgLimitsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgLimitsQuery.ts new file mode 100644 index 000000000..032866dfb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgMemberQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgMemberQuery.ts new file mode 100644 index 000000000..aa4257559 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgMembersQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembersQuery.ts new file mode 100644 index 000000000..651d52afb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgMembershipDefaultQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembershipDefaultQuery.ts new file mode 100644 index 000000000..47264e0a5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgMembershipDefaultsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembershipDefaultsQuery.ts new file mode 100644 index 000000000..8cb20caae --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgMembershipQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembershipQuery.ts new file mode 100644 index 000000000..ec1c49d75 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgMembershipsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembershipsQuery.ts new file mode 100644 index 000000000..cde182a7b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgOwnerGrantQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgOwnerGrantQuery.ts new file mode 100644 index 000000000..9a0b0c9df --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgOwnerGrantsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgOwnerGrantsQuery.ts new file mode 100644 index 000000000..315d1cc57 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgPermissionDefaultQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionDefaultQuery.ts new file mode 100644 index 000000000..3f324b798 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgPermissionDefaultsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionDefaultsQuery.ts new file mode 100644 index 000000000..021e73f1c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgPermissionQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionQuery.ts new file mode 100644 index 000000000..3d28f9542 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgPermissionsGetByMaskQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsGetByMaskQuery.ts new file mode 100644 index 000000000..7410e3b04 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts new file mode 100644 index 000000000..99199bcee --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgPermissionsGetMaskQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsGetMaskQuery.ts new file mode 100644 index 000000000..dad45181b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts new file mode 100644 index 000000000..4b4f80e72 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useOrgPermissionsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsQuery.ts new file mode 100644 index 000000000..3e48264a6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useStepsAchievedQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useStepsAchievedQuery.ts new file mode 100644 index 000000000..e5c8bd35b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/queries/useStepsRequiredQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useStepsRequiredQuery.ts new file mode 100644 index 000000000..196567b45 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/query-keys.ts b/sdk/constructive-sdk/src/admin/hooks/query-keys.ts new file mode 100644 index 000000000..da5741b1c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/hooks/selection.ts b/sdk/constructive-sdk/src/admin/hooks/selection.ts new file mode 100644 index 000000000..2952aab64 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/admin/index.ts b/sdk/constructive-sdk/src/admin/index.ts index 51e77d3d4..b6d442fc6 100644 --- a/sdk/constructive-sdk/src/admin/index.ts +++ b/sdk/constructive-sdk/src/admin/index.ts @@ -2,4 +2,6 @@ * Generated 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-sdk/src/admin/schema-types.ts b/sdk/constructive-sdk/src/admin/schema-types.ts new file mode 100644 index 000000000..346f7f2ce --- /dev/null +++ b/sdk/constructive-sdk/src/admin/schema-types.ts @@ -0,0 +1,2753 @@ +/** + * 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; +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'; +export type AppPermissionDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC'; +export type OrgPermissionDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC'; +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'; +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'; +export type AppLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +export type OrgLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +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'; +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'; +export type MembershipTypeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +export type AppPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' + | 'BITNUM_DESC'; +export type OrgPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' + | 'BITNUM_DESC'; +export type AppLimitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +export interface OrgMemberCondition { + id?: string; + isAdmin?: boolean; + actorId?: string; + entityId?: string; +} +export interface OrgMemberFilter { + id?: UUIDFilter; + isAdmin?: BooleanFilter; + actorId?: UUIDFilter; + entityId?: UUIDFilter; + and?: OrgMemberFilter[]; + or?: OrgMemberFilter[]; + not?: OrgMemberFilter; +} +export interface AppPermissionDefaultCondition { + id?: string; + permissions?: string; +} +export interface AppPermissionDefaultFilter { + id?: UUIDFilter; + permissions?: BitStringFilter; + and?: AppPermissionDefaultFilter[]; + or?: AppPermissionDefaultFilter[]; + not?: AppPermissionDefaultFilter; +} +export interface OrgPermissionDefaultCondition { + id?: string; + permissions?: string; + entityId?: string; +} +export interface OrgPermissionDefaultFilter { + id?: UUIDFilter; + permissions?: BitStringFilter; + entityId?: UUIDFilter; + and?: OrgPermissionDefaultFilter[]; + or?: OrgPermissionDefaultFilter[]; + not?: OrgPermissionDefaultFilter; +} +export interface AppAdminGrantCondition { + id?: string; + isGrant?: boolean; + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface AppAdminGrantFilter { + id?: UUIDFilter; + isGrant?: BooleanFilter; + actorId?: UUIDFilter; + grantorId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppAdminGrantFilter[]; + or?: AppAdminGrantFilter[]; + not?: AppAdminGrantFilter; +} +export interface AppOwnerGrantCondition { + id?: string; + isGrant?: boolean; + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface AppOwnerGrantFilter { + id?: UUIDFilter; + isGrant?: BooleanFilter; + actorId?: UUIDFilter; + grantorId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppOwnerGrantFilter[]; + or?: AppOwnerGrantFilter[]; + not?: AppOwnerGrantFilter; +} +export interface AppLimitDefaultCondition { + id?: string; + name?: string; + max?: number; +} +export interface AppLimitDefaultFilter { + id?: UUIDFilter; + name?: StringFilter; + max?: IntFilter; + and?: AppLimitDefaultFilter[]; + or?: AppLimitDefaultFilter[]; + not?: AppLimitDefaultFilter; +} +export interface OrgLimitDefaultCondition { + id?: string; + name?: string; + max?: number; +} +export interface OrgLimitDefaultFilter { + id?: UUIDFilter; + name?: StringFilter; + max?: IntFilter; + and?: OrgLimitDefaultFilter[]; + or?: OrgLimitDefaultFilter[]; + not?: OrgLimitDefaultFilter; +} +export interface OrgAdminGrantCondition { + id?: string; + isGrant?: boolean; + actorId?: string; + entityId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +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 OrgOwnerGrantCondition { + id?: string; + isGrant?: boolean; + actorId?: string; + entityId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +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 MembershipTypeCondition { + id?: number; + name?: string; + description?: string; + prefix?: string; +} +export interface MembershipTypeFilter { + id?: IntFilter; + name?: StringFilter; + description?: StringFilter; + prefix?: StringFilter; + and?: MembershipTypeFilter[]; + or?: MembershipTypeFilter[]; + not?: MembershipTypeFilter; +} +export interface AppPermissionCondition { + id?: string; + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; +} +export interface AppPermissionFilter { + id?: UUIDFilter; + name?: StringFilter; + bitnum?: IntFilter; + bitstr?: BitStringFilter; + description?: StringFilter; + and?: AppPermissionFilter[]; + or?: AppPermissionFilter[]; + not?: AppPermissionFilter; +} +export interface OrgPermissionCondition { + id?: string; + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; +} +export interface OrgPermissionFilter { + id?: UUIDFilter; + name?: StringFilter; + bitnum?: IntFilter; + bitstr?: BitStringFilter; + description?: StringFilter; + and?: OrgPermissionFilter[]; + or?: OrgPermissionFilter[]; + not?: OrgPermissionFilter; +} +export interface AppLimitCondition { + id?: string; + name?: string; + actorId?: string; + num?: number; + max?: number; +} +export interface AppLimitFilter { + id?: UUIDFilter; + name?: StringFilter; + actorId?: UUIDFilter; + num?: IntFilter; + max?: IntFilter; + and?: AppLimitFilter[]; + or?: AppLimitFilter[]; + not?: AppLimitFilter; +} +export interface AppAchievementCondition { + id?: string; + actorId?: string; + name?: string; + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface AppAchievementFilter { + id?: UUIDFilter; + actorId?: UUIDFilter; + name?: StringFilter; + count?: IntFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppAchievementFilter[]; + or?: AppAchievementFilter[]; + not?: AppAchievementFilter; +} +export interface AppStepCondition { + id?: string; + actorId?: string; + name?: string; + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface AppStepFilter { + id?: UUIDFilter; + actorId?: UUIDFilter; + name?: StringFilter; + count?: IntFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppStepFilter[]; + or?: AppStepFilter[]; + not?: AppStepFilter; +} +export interface ClaimedInviteCondition { + id?: string; + data?: unknown; + senderId?: string; + receiverId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface ClaimedInviteFilter { + id?: UUIDFilter; + senderId?: UUIDFilter; + receiverId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: ClaimedInviteFilter[]; + or?: ClaimedInviteFilter[]; + not?: ClaimedInviteFilter; +} +export interface AppGrantCondition { + id?: string; + permissions?: string; + isGrant?: boolean; + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +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 AppMembershipDefaultCondition { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; +} +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 OrgLimitCondition { + id?: string; + name?: string; + actorId?: string; + num?: number; + max?: number; + entityId?: string; +} +export interface OrgLimitFilter { + id?: UUIDFilter; + name?: StringFilter; + actorId?: UUIDFilter; + num?: IntFilter; + max?: IntFilter; + entityId?: UUIDFilter; + and?: OrgLimitFilter[]; + or?: OrgLimitFilter[]; + not?: OrgLimitFilter; +} +export interface OrgClaimedInviteCondition { + id?: string; + data?: unknown; + senderId?: string; + receiverId?: string; + createdAt?: string; + updatedAt?: string; + entityId?: string; +} +export interface OrgClaimedInviteFilter { + id?: UUIDFilter; + senderId?: UUIDFilter; + receiverId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + entityId?: UUIDFilter; + and?: OrgClaimedInviteFilter[]; + or?: OrgClaimedInviteFilter[]; + not?: OrgClaimedInviteFilter; +} +export interface OrgGrantCondition { + id?: string; + permissions?: string; + isGrant?: boolean; + actorId?: string; + entityId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +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 OrgMembershipDefaultCondition { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId?: string; + deleteMemberCascadeGroups?: boolean; + createGroupsCascadeMembers?: boolean; +} +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 AppLevelRequirementCondition { + id?: string; + name?: string; + level?: string; + description?: string; + requiredCount?: number; + priority?: number; + createdAt?: string; + updatedAt?: string; +} +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 AppLevelCondition { + id?: string; + name?: string; + description?: string; + image?: ConstructiveInternalTypeImage; + ownerId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface AppLevelFilter { + id?: UUIDFilter; + name?: StringFilter; + description?: StringFilter; + image?: ConstructiveInternalTypeImageFilter; + ownerId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppLevelFilter[]; + or?: AppLevelFilter[]; + not?: AppLevelFilter; +} +export interface ConstructiveInternalTypeImageFilter { + isNull?: boolean; + equalTo?: ConstructiveInternalTypeImage; + notEqualTo?: ConstructiveInternalTypeImage; + distinctFrom?: ConstructiveInternalTypeImage; + notDistinctFrom?: ConstructiveInternalTypeImage; + in?: ConstructiveInternalTypeImage[]; + notIn?: ConstructiveInternalTypeImage[]; + lessThan?: ConstructiveInternalTypeImage; + lessThanOrEqualTo?: ConstructiveInternalTypeImage; + greaterThan?: ConstructiveInternalTypeImage; + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + contains?: ConstructiveInternalTypeImage; + containsKey?: string; + containsAllKeys?: string[]; + containsAnyKeys?: string[]; + containedBy?: ConstructiveInternalTypeImage; +} +export interface InviteCondition { + 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 InviteFilter { + id?: UUIDFilter; + email?: ConstructiveInternalTypeEmailFilter; + senderId?: UUIDFilter; + inviteToken?: StringFilter; + inviteValid?: BooleanFilter; + inviteLimit?: IntFilter; + inviteCount?: IntFilter; + multiple?: BooleanFilter; + expiresAt?: DatetimeFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: InviteFilter[]; + or?: InviteFilter[]; + not?: InviteFilter; +} +export interface ConstructiveInternalTypeEmailFilter { + 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?: ConstructiveInternalTypeEmail; + notIncludesInsensitive?: ConstructiveInternalTypeEmail; + startsWith?: string; + notStartsWith?: string; + startsWithInsensitive?: ConstructiveInternalTypeEmail; + notStartsWithInsensitive?: ConstructiveInternalTypeEmail; + endsWith?: string; + notEndsWith?: string; + endsWithInsensitive?: ConstructiveInternalTypeEmail; + notEndsWithInsensitive?: ConstructiveInternalTypeEmail; + like?: string; + notLike?: string; + likeInsensitive?: ConstructiveInternalTypeEmail; + notLikeInsensitive?: ConstructiveInternalTypeEmail; + equalToInsensitive?: ConstructiveInternalTypeEmail; + notEqualToInsensitive?: ConstructiveInternalTypeEmail; + distinctFromInsensitive?: ConstructiveInternalTypeEmail; + notDistinctFromInsensitive?: ConstructiveInternalTypeEmail; + inInsensitive?: ConstructiveInternalTypeEmail[]; + notInInsensitive?: ConstructiveInternalTypeEmail[]; + lessThanInsensitive?: ConstructiveInternalTypeEmail; + lessThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; + greaterThanInsensitive?: ConstructiveInternalTypeEmail; + greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; +} +export interface AppMembershipCondition { + 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 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 OrgMembershipCondition { + 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 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 OrgInviteCondition { + 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 OrgInviteFilter { + id?: UUIDFilter; + email?: ConstructiveInternalTypeEmailFilter; + senderId?: UUIDFilter; + receiverId?: UUIDFilter; + inviteToken?: StringFilter; + inviteValid?: BooleanFilter; + inviteLimit?: IntFilter; + inviteCount?: IntFilter; + multiple?: BooleanFilter; + expiresAt?: DatetimeFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + entityId?: UUIDFilter; + and?: OrgInviteFilter[]; + or?: OrgInviteFilter[]; + not?: OrgInviteFilter; +} +export interface SubmitInviteCodeInput { + clientMutationId?: string; + token?: string; +} +export interface SubmitOrgInviteCodeInput { + clientMutationId?: string; + token?: string; +} +export interface CreateOrgMemberInput { + clientMutationId?: string; + orgMember: OrgMemberInput; +} +export interface OrgMemberInput { + id?: string; + isAdmin?: boolean; + actorId: string; + entityId: string; +} +export interface CreateAppPermissionDefaultInput { + clientMutationId?: string; + appPermissionDefault: AppPermissionDefaultInput; +} +export interface AppPermissionDefaultInput { + id?: string; + permissions?: string; +} +export interface CreateOrgPermissionDefaultInput { + clientMutationId?: string; + orgPermissionDefault: OrgPermissionDefaultInput; +} +export interface OrgPermissionDefaultInput { + id?: string; + permissions?: string; + entityId: string; +} +export interface CreateAppAdminGrantInput { + clientMutationId?: string; + appAdminGrant: AppAdminGrantInput; +} +export interface AppAdminGrantInput { + id?: string; + isGrant?: boolean; + actorId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppOwnerGrantInput { + clientMutationId?: string; + appOwnerGrant: AppOwnerGrantInput; +} +export interface AppOwnerGrantInput { + id?: string; + isGrant?: boolean; + actorId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppLimitDefaultInput { + clientMutationId?: string; + appLimitDefault: AppLimitDefaultInput; +} +export interface AppLimitDefaultInput { + id?: string; + name: string; + max?: number; +} +export interface CreateOrgLimitDefaultInput { + clientMutationId?: string; + orgLimitDefault: OrgLimitDefaultInput; +} +export interface OrgLimitDefaultInput { + id?: string; + name: string; + max?: number; +} +export interface CreateOrgAdminGrantInput { + clientMutationId?: string; + orgAdminGrant: OrgAdminGrantInput; +} +export interface OrgAdminGrantInput { + id?: string; + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateOrgOwnerGrantInput { + clientMutationId?: string; + orgOwnerGrant: OrgOwnerGrantInput; +} +export interface OrgOwnerGrantInput { + id?: string; + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateMembershipTypeInput { + clientMutationId?: string; + membershipType: MembershipTypeInput; +} +export interface MembershipTypeInput { + id: number; + name: string; + description: string; + prefix: string; +} +export interface CreateAppPermissionInput { + clientMutationId?: string; + appPermission: AppPermissionInput; +} +export interface AppPermissionInput { + id?: string; + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; +} +export interface CreateOrgPermissionInput { + clientMutationId?: string; + orgPermission: OrgPermissionInput; +} +export interface OrgPermissionInput { + id?: string; + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; +} +export interface CreateAppLimitInput { + clientMutationId?: string; + appLimit: AppLimitInput; +} +export interface AppLimitInput { + id?: string; + name?: string; + actorId: string; + num?: number; + max?: number; +} +export interface CreateAppAchievementInput { + clientMutationId?: string; + appAchievement: AppAchievementInput; +} +export interface AppAchievementInput { + id?: string; + actorId?: string; + name: string; + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppStepInput { + clientMutationId?: string; + appStep: AppStepInput; +} +export interface AppStepInput { + id?: string; + actorId?: string; + name: string; + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface CreateClaimedInviteInput { + clientMutationId?: string; + claimedInvite: ClaimedInviteInput; +} +export interface ClaimedInviteInput { + id?: string; + data?: unknown; + senderId?: string; + receiverId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppGrantInput { + clientMutationId?: string; + appGrant: AppGrantInput; +} +export interface AppGrantInput { + id?: string; + permissions?: string; + isGrant?: boolean; + actorId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppMembershipDefaultInput { + clientMutationId?: string; + appMembershipDefault: AppMembershipDefaultInput; +} +export interface AppMembershipDefaultInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; +} +export interface CreateOrgLimitInput { + clientMutationId?: string; + orgLimit: OrgLimitInput; +} +export interface OrgLimitInput { + id?: string; + name?: string; + actorId: string; + num?: number; + max?: number; + entityId: string; +} +export interface CreateOrgClaimedInviteInput { + clientMutationId?: string; + orgClaimedInvite: OrgClaimedInviteInput; +} +export interface OrgClaimedInviteInput { + id?: string; + data?: unknown; + senderId?: string; + receiverId?: string; + createdAt?: string; + updatedAt?: string; + entityId: string; +} +export interface CreateOrgGrantInput { + clientMutationId?: string; + orgGrant: OrgGrantInput; +} +export interface OrgGrantInput { + id?: string; + permissions?: string; + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateOrgMembershipDefaultInput { + clientMutationId?: string; + orgMembershipDefault: OrgMembershipDefaultInput; +} +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; + appLevelRequirement: AppLevelRequirementInput; +} +export interface AppLevelRequirementInput { + id?: string; + name: string; + level: string; + description?: string; + requiredCount?: number; + priority?: number; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppLevelInput { + clientMutationId?: string; + appLevel: AppLevelInput; +} +export interface AppLevelInput { + id?: string; + name: string; + description?: string; + image?: ConstructiveInternalTypeImage; + ownerId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateInviteInput { + clientMutationId?: string; + invite: InviteInput; +} +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; + appMembership: AppMembershipInput; +} +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; + orgMembership: OrgMembershipInput; +} +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; + orgInvite: OrgInviteInput; +} +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; + orgMemberPatch: OrgMemberPatch; +} +export interface OrgMemberPatch { + id?: string; + isAdmin?: boolean; + actorId?: string; + entityId?: string; +} +export interface UpdateAppPermissionDefaultInput { + clientMutationId?: string; + id: string; + appPermissionDefaultPatch: AppPermissionDefaultPatch; +} +export interface AppPermissionDefaultPatch { + id?: string; + permissions?: string; +} +export interface UpdateOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; +} +export interface OrgPermissionDefaultPatch { + id?: string; + permissions?: string; + entityId?: string; +} +export interface UpdateAppAdminGrantInput { + clientMutationId?: string; + id: string; + appAdminGrantPatch: AppAdminGrantPatch; +} +export interface AppAdminGrantPatch { + id?: string; + isGrant?: boolean; + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAppOwnerGrantInput { + clientMutationId?: string; + id: string; + appOwnerGrantPatch: AppOwnerGrantPatch; +} +export interface AppOwnerGrantPatch { + id?: string; + isGrant?: boolean; + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAppLimitDefaultInput { + clientMutationId?: string; + id: string; + appLimitDefaultPatch: AppLimitDefaultPatch; +} +export interface AppLimitDefaultPatch { + id?: string; + name?: string; + max?: number; +} +export interface UpdateOrgLimitDefaultInput { + clientMutationId?: string; + id: string; + orgLimitDefaultPatch: OrgLimitDefaultPatch; +} +export interface OrgLimitDefaultPatch { + id?: string; + name?: string; + max?: number; +} +export interface UpdateOrgAdminGrantInput { + clientMutationId?: string; + id: string; + orgAdminGrantPatch: OrgAdminGrantPatch; +} +export interface OrgAdminGrantPatch { + id?: string; + isGrant?: boolean; + actorId?: string; + entityId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateOrgOwnerGrantInput { + clientMutationId?: string; + id: string; + orgOwnerGrantPatch: OrgOwnerGrantPatch; +} +export interface OrgOwnerGrantPatch { + id?: string; + isGrant?: boolean; + actorId?: string; + entityId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateMembershipTypeInput { + clientMutationId?: string; + id: number; + membershipTypePatch: MembershipTypePatch; +} +export interface MembershipTypePatch { + id?: number; + name?: string; + description?: string; + prefix?: string; +} +export interface UpdateAppPermissionInput { + clientMutationId?: string; + id: string; + appPermissionPatch: AppPermissionPatch; +} +export interface AppPermissionPatch { + id?: string; + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; +} +export interface UpdateOrgPermissionInput { + clientMutationId?: string; + id: string; + orgPermissionPatch: OrgPermissionPatch; +} +export interface OrgPermissionPatch { + id?: string; + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; +} +export interface UpdateAppLimitInput { + clientMutationId?: string; + id: string; + appLimitPatch: AppLimitPatch; +} +export interface AppLimitPatch { + id?: string; + name?: string; + actorId?: string; + num?: number; + max?: number; +} +export interface UpdateAppAchievementInput { + clientMutationId?: string; + id: string; + appAchievementPatch: AppAchievementPatch; +} +export interface AppAchievementPatch { + id?: string; + actorId?: string; + name?: string; + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAppStepInput { + clientMutationId?: string; + id: string; + appStepPatch: AppStepPatch; +} +export interface AppStepPatch { + id?: string; + actorId?: string; + name?: string; + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateClaimedInviteInput { + clientMutationId?: string; + id: string; + claimedInvitePatch: ClaimedInvitePatch; +} +export interface ClaimedInvitePatch { + id?: string; + data?: unknown; + senderId?: string; + receiverId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAppGrantInput { + clientMutationId?: string; + id: string; + appGrantPatch: AppGrantPatch; +} +export interface AppGrantPatch { + id?: string; + permissions?: string; + isGrant?: boolean; + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAppMembershipDefaultInput { + clientMutationId?: string; + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +export interface AppMembershipDefaultPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; +} +export interface UpdateOrgLimitInput { + clientMutationId?: string; + id: string; + orgLimitPatch: OrgLimitPatch; +} +export interface OrgLimitPatch { + id?: string; + name?: string; + actorId?: string; + num?: number; + max?: number; + entityId?: string; +} +export interface UpdateOrgClaimedInviteInput { + clientMutationId?: string; + id: string; + orgClaimedInvitePatch: OrgClaimedInvitePatch; +} +export interface OrgClaimedInvitePatch { + id?: string; + data?: unknown; + senderId?: string; + receiverId?: string; + createdAt?: string; + updatedAt?: string; + entityId?: string; +} +export interface UpdateOrgGrantInput { + clientMutationId?: string; + id: string; + orgGrantPatch: OrgGrantPatch; +} +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; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; +} +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; + appLevelRequirementPatch: AppLevelRequirementPatch; +} +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; + appLevelPatch: AppLevelPatch; +} +export interface AppLevelPatch { + id?: string; + name?: string; + description?: string; + image?: ConstructiveInternalTypeImage; + ownerId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateInviteInput { + clientMutationId?: string; + id: string; + invitePatch: InvitePatch; +} +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; + appMembershipPatch: AppMembershipPatch; +} +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; + orgMembershipPatch: OrgMembershipPatch; +} +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; + orgInvitePatch: OrgInvitePatch; +} +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; +} +export interface AppPermissionConnection { + nodes: AppPermission[]; + edges: AppPermissionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgPermissionConnection { + nodes: OrgPermission[]; + edges: OrgPermissionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppLevelRequirementConnection { + nodes: AppLevelRequirement[]; + edges: AppLevelRequirementEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgMemberConnection { + nodes: OrgMember[]; + edges: OrgMemberEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppPermissionDefaultConnection { + nodes: AppPermissionDefault[]; + edges: AppPermissionDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgPermissionDefaultConnection { + nodes: OrgPermissionDefault[]; + edges: OrgPermissionDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppAdminGrantConnection { + nodes: AppAdminGrant[]; + edges: AppAdminGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppOwnerGrantConnection { + nodes: AppOwnerGrant[]; + edges: AppOwnerGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppLimitDefaultConnection { + nodes: AppLimitDefault[]; + edges: AppLimitDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgLimitDefaultConnection { + nodes: OrgLimitDefault[]; + edges: OrgLimitDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgAdminGrantConnection { + nodes: OrgAdminGrant[]; + edges: OrgAdminGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgOwnerGrantConnection { + nodes: OrgOwnerGrant[]; + edges: OrgOwnerGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface MembershipTypeConnection { + nodes: MembershipType[]; + edges: MembershipTypeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppLimitConnection { + nodes: AppLimit[]; + edges: AppLimitEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppAchievementConnection { + nodes: AppAchievement[]; + edges: AppAchievementEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppStepConnection { + nodes: AppStep[]; + edges: AppStepEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface ClaimedInviteConnection { + nodes: ClaimedInvite[]; + edges: ClaimedInviteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppGrantConnection { + nodes: AppGrant[]; + edges: AppGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppMembershipDefaultConnection { + nodes: AppMembershipDefault[]; + edges: AppMembershipDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgLimitConnection { + nodes: OrgLimit[]; + edges: OrgLimitEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgClaimedInviteConnection { + nodes: OrgClaimedInvite[]; + edges: OrgClaimedInviteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgGrantConnection { + nodes: OrgGrant[]; + edges: OrgGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgMembershipDefaultConnection { + nodes: OrgMembershipDefault[]; + edges: OrgMembershipDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppLevelConnection { + nodes: AppLevel[]; + edges: AppLevelEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface InviteConnection { + nodes: Invite[]; + edges: InviteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppMembershipConnection { + nodes: AppMembership[]; + edges: AppMembershipEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgMembershipConnection { + nodes: OrgMembership[]; + edges: OrgMembershipEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgInviteConnection { + nodes: OrgInvite[]; + edges: OrgInviteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +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; + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; +} +export interface CreateAppPermissionDefaultPayload { + clientMutationId?: string | null; + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export interface CreateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export interface CreateAppAdminGrantPayload { + clientMutationId?: string | null; + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export interface CreateAppOwnerGrantPayload { + clientMutationId?: string | null; + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export interface CreateAppLimitDefaultPayload { + clientMutationId?: string | null; + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface CreateOrgLimitDefaultPayload { + clientMutationId?: string | null; + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export interface CreateOrgAdminGrantPayload { + clientMutationId?: string | null; + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export interface CreateOrgOwnerGrantPayload { + clientMutationId?: string | null; + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export interface CreateMembershipTypePayload { + clientMutationId?: string | null; + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export interface CreateAppPermissionPayload { + clientMutationId?: string | null; + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface CreateOrgPermissionPayload { + clientMutationId?: string | null; + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface CreateAppLimitPayload { + clientMutationId?: string | null; + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export interface CreateAppAchievementPayload { + clientMutationId?: string | null; + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export interface CreateAppStepPayload { + clientMutationId?: string | null; + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export interface CreateClaimedInvitePayload { + clientMutationId?: string | null; + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export interface CreateAppGrantPayload { + clientMutationId?: string | null; + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export interface CreateAppMembershipDefaultPayload { + clientMutationId?: string | null; + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export interface CreateOrgLimitPayload { + clientMutationId?: string | null; + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export interface CreateOrgClaimedInvitePayload { + clientMutationId?: string | null; + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export interface CreateOrgGrantPayload { + clientMutationId?: string | null; + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export interface CreateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export interface CreateAppLevelRequirementPayload { + clientMutationId?: string | null; + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; +} +export interface CreateAppLevelPayload { + clientMutationId?: string | null; + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export interface CreateInvitePayload { + clientMutationId?: string | null; + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export interface CreateAppMembershipPayload { + clientMutationId?: string | null; + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export interface CreateOrgMembershipPayload { + clientMutationId?: string | null; + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export interface CreateOrgInvitePayload { + clientMutationId?: string | null; + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +export interface UpdateOrgMemberPayload { + clientMutationId?: string | null; + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; +} +export interface UpdateAppPermissionDefaultPayload { + clientMutationId?: string | null; + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export interface UpdateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export interface UpdateAppAdminGrantPayload { + clientMutationId?: string | null; + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export interface UpdateAppOwnerGrantPayload { + clientMutationId?: string | null; + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export interface UpdateAppLimitDefaultPayload { + clientMutationId?: string | null; + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface UpdateOrgLimitDefaultPayload { + clientMutationId?: string | null; + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export interface UpdateOrgAdminGrantPayload { + clientMutationId?: string | null; + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export interface UpdateOrgOwnerGrantPayload { + clientMutationId?: string | null; + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export interface UpdateMembershipTypePayload { + clientMutationId?: string | null; + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export interface UpdateAppPermissionPayload { + clientMutationId?: string | null; + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface UpdateOrgPermissionPayload { + clientMutationId?: string | null; + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface UpdateAppLimitPayload { + clientMutationId?: string | null; + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export interface UpdateAppAchievementPayload { + clientMutationId?: string | null; + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export interface UpdateAppStepPayload { + clientMutationId?: string | null; + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export interface UpdateClaimedInvitePayload { + clientMutationId?: string | null; + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export interface UpdateAppGrantPayload { + clientMutationId?: string | null; + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export interface UpdateAppMembershipDefaultPayload { + clientMutationId?: string | null; + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export interface UpdateOrgLimitPayload { + clientMutationId?: string | null; + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export interface UpdateOrgClaimedInvitePayload { + clientMutationId?: string | null; + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export interface UpdateOrgGrantPayload { + clientMutationId?: string | null; + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export interface UpdateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export interface UpdateAppLevelRequirementPayload { + clientMutationId?: string | null; + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; +} +export interface UpdateAppLevelPayload { + clientMutationId?: string | null; + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export interface UpdateInvitePayload { + clientMutationId?: string | null; + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export interface UpdateAppMembershipPayload { + clientMutationId?: string | null; + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export interface UpdateOrgMembershipPayload { + clientMutationId?: string | null; + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export interface UpdateOrgInvitePayload { + clientMutationId?: string | null; + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +export interface DeleteOrgMemberPayload { + clientMutationId?: string | null; + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; +} +export interface DeleteAppPermissionDefaultPayload { + clientMutationId?: string | null; + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export interface DeleteOrgPermissionDefaultPayload { + clientMutationId?: string | null; + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export interface DeleteAppAdminGrantPayload { + clientMutationId?: string | null; + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export interface DeleteAppOwnerGrantPayload { + clientMutationId?: string | null; + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export interface DeleteAppLimitDefaultPayload { + clientMutationId?: string | null; + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface DeleteOrgLimitDefaultPayload { + clientMutationId?: string | null; + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export interface DeleteOrgAdminGrantPayload { + clientMutationId?: string | null; + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export interface DeleteOrgOwnerGrantPayload { + clientMutationId?: string | null; + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export interface DeleteMembershipTypePayload { + clientMutationId?: string | null; + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export interface DeleteAppPermissionPayload { + clientMutationId?: string | null; + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface DeleteOrgPermissionPayload { + clientMutationId?: string | null; + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface DeleteAppLimitPayload { + clientMutationId?: string | null; + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export interface DeleteAppAchievementPayload { + clientMutationId?: string | null; + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export interface DeleteAppStepPayload { + clientMutationId?: string | null; + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export interface DeleteClaimedInvitePayload { + clientMutationId?: string | null; + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export interface DeleteAppGrantPayload { + clientMutationId?: string | null; + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export interface DeleteAppMembershipDefaultPayload { + clientMutationId?: string | null; + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export interface DeleteOrgLimitPayload { + clientMutationId?: string | null; + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export interface DeleteOrgClaimedInvitePayload { + clientMutationId?: string | null; + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export interface DeleteOrgGrantPayload { + clientMutationId?: string | null; + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export interface DeleteOrgMembershipDefaultPayload { + clientMutationId?: string | null; + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export interface DeleteAppLevelRequirementPayload { + clientMutationId?: string | null; + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; +} +export interface DeleteAppLevelPayload { + clientMutationId?: string | null; + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export interface DeleteInvitePayload { + clientMutationId?: string | null; + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export interface DeleteAppMembershipPayload { + clientMutationId?: string | null; + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export interface DeleteOrgMembershipPayload { + clientMutationId?: string | null; + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export interface DeleteOrgInvitePayload { + clientMutationId?: string | null; + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +export interface AppPermissionEdge { + cursor?: string | null; + node?: AppPermission | null; +} +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} +export interface OrgPermissionEdge { + cursor?: string | null; + node?: OrgPermission | null; +} +export interface AppLevelRequirementEdge { + cursor?: string | null; + node?: AppLevelRequirement | null; +} +export interface OrgMemberEdge { + cursor?: string | null; + node?: OrgMember | null; +} +export interface AppPermissionDefaultEdge { + cursor?: string | null; + node?: AppPermissionDefault | null; +} +export interface OrgPermissionDefaultEdge { + cursor?: string | null; + node?: OrgPermissionDefault | null; +} +export interface AppAdminGrantEdge { + cursor?: string | null; + node?: AppAdminGrant | null; +} +export interface AppOwnerGrantEdge { + cursor?: string | null; + node?: AppOwnerGrant | null; +} +export interface AppLimitDefaultEdge { + cursor?: string | null; + node?: AppLimitDefault | null; +} +export interface OrgLimitDefaultEdge { + cursor?: string | null; + node?: OrgLimitDefault | null; +} +export interface OrgAdminGrantEdge { + cursor?: string | null; + node?: OrgAdminGrant | null; +} +export interface OrgOwnerGrantEdge { + cursor?: string | null; + node?: OrgOwnerGrant | null; +} +export interface MembershipTypeEdge { + cursor?: string | null; + node?: MembershipType | null; +} +export interface AppLimitEdge { + cursor?: string | null; + node?: AppLimit | null; +} +export interface AppAchievementEdge { + cursor?: string | null; + node?: AppAchievement | null; +} +export interface AppStepEdge { + cursor?: string | null; + node?: AppStep | null; +} +export interface ClaimedInviteEdge { + cursor?: string | null; + node?: ClaimedInvite | null; +} +export interface AppGrantEdge { + cursor?: string | null; + node?: AppGrant | null; +} +export interface AppMembershipDefaultEdge { + cursor?: string | null; + node?: AppMembershipDefault | null; +} +export interface OrgLimitEdge { + cursor?: string | null; + node?: OrgLimit | null; +} +export interface OrgClaimedInviteEdge { + cursor?: string | null; + node?: OrgClaimedInvite | null; +} +export interface OrgGrantEdge { + cursor?: string | null; + node?: OrgGrant | null; +} +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + node?: OrgMembershipDefault | null; +} +export interface AppLevelEdge { + cursor?: string | null; + node?: AppLevel | null; +} +export interface InviteEdge { + cursor?: string | null; + node?: Invite | null; +} +export interface AppMembershipEdge { + cursor?: string | null; + node?: AppMembership | null; +} +export interface OrgMembershipEdge { + cursor?: string | null; + node?: OrgMembership | null; +} +export interface OrgInviteEdge { + cursor?: string | null; + node?: OrgInvite | null; +} +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 MetaField { + name: string; + type: MetaType; + isNotNull: boolean; + hasDefault: boolean; +} +export interface MetaIndex { + name: string; + isUnique: boolean; + isPrimary: boolean; + columns: string[]; + fields?: MetaField[] | null; +} +export interface MetaConstraints { + primaryKey?: MetaPrimaryKeyConstraint | null; + unique: MetaUniqueConstraint[]; + foreignKey: MetaForeignKeyConstraint[]; +} +export interface MetaForeignKeyConstraint { + name: string; + fields: MetaField[]; + referencedTable: string; + referencedFields: string[]; + refFields?: MetaField[] | null; + refTable?: MetaRefTable | null; +} +export interface MetaPrimaryKeyConstraint { + name: string; + fields: MetaField[]; +} +export interface MetaUniqueConstraint { + name: string; + fields: MetaField[]; +} +export interface MetaRelations { + belongsTo: MetaBelongsToRelation[]; + has: MetaHasRelation[]; + hasOne: MetaHasRelation[]; + hasMany: MetaHasRelation[]; + manyToMany: MetaManyToManyRelation[]; +} +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; +} +export interface MetaQuery { + all: string; + one?: string | null; + create?: string | null; + update?: string | null; + delete?: string | null; +} +export interface MetaType { + pgType: string; + gqlType: string; + isArray: boolean; + isNotNull?: boolean | null; + hasDefault?: boolean | null; +} +export interface MetaRefTable { + name: string; +} +export interface MetaBelongsToRelation { + fieldName?: string | null; + isUnique: boolean; + type?: string | null; + keys: MetaField[]; + references: MetaRefTable; +} +export interface MetaHasRelation { + fieldName?: string | null; + isUnique: boolean; + type?: string | null; + keys: MetaField[]; + referencedBy: MetaRefTable; +} +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-sdk/src/admin/types.ts b/sdk/constructive-sdk/src/admin/types.ts new file mode 100644 index 000000000..f9bd9b893 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/README.md b/sdk/constructive-sdk/src/auth/README.md index 875494c39..265e66111 100644 --- a/sdk/constructive-sdk/src/auth/README.md +++ b/sdk/constructive-sdk/src/auth/README.md @@ -12,7 +12,7 @@ - **Custom queries:** 4 - **Custom mutations:** 16 -**Generators:** ORM +**Generators:** ORM, React Query ## Modules @@ -30,6 +30,19 @@ const db = createClient({ 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. diff --git a/sdk/constructive-sdk/src/auth/hooks/AGENTS.md b/sdk/constructive-sdk/src/auth/hooks/AGENTS.md new file mode 100644 index 000000000..56109e539 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/hooks/AGENTS.md @@ -0,0 +1,862 @@ +# React Query Hooks - Agent Reference + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT +> This document is structured for LLM/agent consumption. + +## OVERVIEW + +React Query hooks wrapping ORM operations for data fetching and mutations. +All query hooks return `UseQueryResult`. All mutation hooks return `UseMutationResult`. + +## SETUP + +```typescript +import { configure } from './hooks'; +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; + +configure({ endpoint: 'https://api.example.com/graphql' }); +const queryClient = new QueryClient(); +// Wrap app in +``` + +## HOOKS + +### HOOK: useRoleTypesQuery + +List all roleTypes. + +``` +TYPE: query +USAGE: useRoleTypesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useRoleTypeQuery + +Get a single roleType by id. + +``` +TYPE: query +USAGE: useRoleTypeQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: number (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: number + name: string +}> +``` + +### HOOK: useCreateRoleTypeMutation + +Create a new roleType. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateRoleTypeMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateRoleTypeMutation + +Update an existing roleType. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateRoleTypeMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteRoleTypeMutation + +Delete a roleType. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteRoleTypeMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useCryptoAddressesQuery + +List all cryptoAddresses. + +``` +TYPE: query +USAGE: useCryptoAddressesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useCryptoAddressQuery + +Get a single cryptoAddress by id. + +``` +TYPE: query +USAGE: useCryptoAddressQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + ownerId: string + address: string + isVerified: boolean + isPrimary: boolean + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateCryptoAddressMutation + +Create a new cryptoAddress. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateCryptoAddressMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateCryptoAddressMutation + +Update an existing cryptoAddress. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateCryptoAddressMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteCryptoAddressMutation + +Delete a cryptoAddress. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteCryptoAddressMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: usePhoneNumbersQuery + +List all phoneNumbers. + +``` +TYPE: query +USAGE: usePhoneNumbersQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: usePhoneNumberQuery + +Get a single phoneNumber by id. + +``` +TYPE: query +USAGE: usePhoneNumberQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + ownerId: string + cc: string + number: string + isVerified: boolean + isPrimary: boolean + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreatePhoneNumberMutation + +Create a new phoneNumber. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreatePhoneNumberMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdatePhoneNumberMutation + +Update an existing phoneNumber. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdatePhoneNumberMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeletePhoneNumberMutation + +Delete a phoneNumber. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeletePhoneNumberMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useConnectedAccountsQuery + +List all connectedAccounts. + +``` +TYPE: query +USAGE: useConnectedAccountsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useConnectedAccountQuery + +Get a single connectedAccount by id. + +``` +TYPE: query +USAGE: useConnectedAccountQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + ownerId: string + service: string + identifier: string + details: unknown + isVerified: boolean + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateConnectedAccountMutation + +Create a new connectedAccount. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateConnectedAccountMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateConnectedAccountMutation + +Update an existing connectedAccount. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateConnectedAccountMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteConnectedAccountMutation + +Delete a connectedAccount. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteConnectedAccountMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useEmailsQuery + +List all emails. + +``` +TYPE: query +USAGE: useEmailsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useEmailQuery + +Get a single email by id. + +``` +TYPE: query +USAGE: useEmailQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + ownerId: string + email: ConstructiveInternalTypeEmail + isVerified: boolean + isPrimary: boolean + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateEmailMutation + +Create a new email. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateEmailMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateEmailMutation + +Update an existing email. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateEmailMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteEmailMutation + +Delete a email. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteEmailMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAuditLogsQuery + +List all auditLogs. + +``` +TYPE: query +USAGE: useAuditLogsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAuditLogQuery + +Get a single auditLog by id. + +``` +TYPE: query +USAGE: useAuditLogQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + event: string + actorId: string + origin: ConstructiveInternalTypeOrigin + userAgent: string + ipAddress: string + success: boolean + createdAt: string +}> +``` + +### HOOK: useCreateAuditLogMutation + +Create a new auditLog. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAuditLogMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAuditLogMutation + +Update an existing auditLog. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAuditLogMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAuditLogMutation + +Delete a auditLog. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAuditLogMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUsersQuery + +List all users. + +``` +TYPE: query +USAGE: useUsersQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useUserQuery + +Get a single user by id. + +``` +TYPE: query +USAGE: useUserQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + username: string + displayName: string + profilePicture: ConstructiveInternalTypeImage + searchTsv: string + type: number + createdAt: string + updatedAt: string + searchTsvRank: number +}> +``` + +### HOOK: useCreateUserMutation + +Create a new user. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateUserMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateUserMutation + +Update an existing user. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateUserMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteUserMutation + +Delete a user. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteUserMutation({}) + +OUTPUT: UseMutationResult +``` + +## CUSTOM OPERATION HOOKS + +### HOOK: useCurrentIpAddressQuery + +currentIpAddress + +``` +TYPE: query +USAGE: useCurrentIpAddressQuery() + +INPUT: none + +OUTPUT: UseQueryResult +``` + +### HOOK: useCurrentUserAgentQuery + +currentUserAgent + +``` +TYPE: query +USAGE: useCurrentUserAgentQuery() + +INPUT: none + +OUTPUT: UseQueryResult +``` + +### HOOK: useCurrentUserIdQuery + +currentUserId + +``` +TYPE: query +USAGE: useCurrentUserIdQuery() + +INPUT: none + +OUTPUT: UseQueryResult +``` + +### HOOK: useCurrentUserQuery + +currentUser + +``` +TYPE: query +USAGE: useCurrentUserQuery() + +INPUT: none + +OUTPUT: UseQueryResult +``` + +### HOOK: useSignOutMutation + +signOut + +``` +TYPE: mutation +USAGE: const { mutate } = useSignOutMutation() + mutate({ input: }) + +INPUT: + input: SignOutInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSendAccountDeletionEmailMutation + +sendAccountDeletionEmail + +``` +TYPE: mutation +USAGE: const { mutate } = useSendAccountDeletionEmailMutation() + mutate({ input: }) + +INPUT: + input: SendAccountDeletionEmailInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useCheckPasswordMutation + +checkPassword + +``` +TYPE: mutation +USAGE: const { mutate } = useCheckPasswordMutation() + mutate({ input: }) + +INPUT: + input: CheckPasswordInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useConfirmDeleteAccountMutation + +confirmDeleteAccount + +``` +TYPE: mutation +USAGE: const { mutate } = useConfirmDeleteAccountMutation() + mutate({ input: }) + +INPUT: + input: ConfirmDeleteAccountInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSetPasswordMutation + +setPassword + +``` +TYPE: mutation +USAGE: const { mutate } = useSetPasswordMutation() + mutate({ input: }) + +INPUT: + input: SetPasswordInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useVerifyEmailMutation + +verifyEmail + +``` +TYPE: mutation +USAGE: const { mutate } = useVerifyEmailMutation() + mutate({ input: }) + +INPUT: + input: VerifyEmailInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useResetPasswordMutation + +resetPassword + +``` +TYPE: mutation +USAGE: const { mutate } = useResetPasswordMutation() + mutate({ input: }) + +INPUT: + input: ResetPasswordInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSignInOneTimeTokenMutation + +signInOneTimeToken + +``` +TYPE: mutation +USAGE: const { mutate } = useSignInOneTimeTokenMutation() + mutate({ input: }) + +INPUT: + input: SignInOneTimeTokenInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSignInMutation + +signIn + +``` +TYPE: mutation +USAGE: const { mutate } = useSignInMutation() + mutate({ input: }) + +INPUT: + input: SignInInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSignUpMutation + +signUp + +``` +TYPE: mutation +USAGE: const { mutate } = useSignUpMutation() + mutate({ input: }) + +INPUT: + input: SignUpInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOneTimeTokenMutation + +oneTimeToken + +``` +TYPE: mutation +USAGE: const { mutate } = useOneTimeTokenMutation() + mutate({ input: }) + +INPUT: + input: OneTimeTokenInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useExtendTokenExpiresMutation + +extendTokenExpires + +``` +TYPE: mutation +USAGE: const { mutate } = useExtendTokenExpiresMutation() + mutate({ input: }) + +INPUT: + input: ExtendTokenExpiresInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useForgotPasswordMutation + +forgotPassword + +``` +TYPE: mutation +USAGE: const { mutate } = useForgotPasswordMutation() + mutate({ input: }) + +INPUT: + input: ForgotPasswordInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSendVerificationEmailMutation + +sendVerificationEmail + +``` +TYPE: mutation +USAGE: const { mutate } = useSendVerificationEmailMutation() + mutate({ input: }) + +INPUT: + input: SendVerificationEmailInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useVerifyPasswordMutation + +verifyPassword + +``` +TYPE: mutation +USAGE: const { mutate } = useVerifyPasswordMutation() + mutate({ input: }) + +INPUT: + input: VerifyPasswordInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useVerifyTotpMutation + +verifyTotp + +``` +TYPE: mutation +USAGE: const { mutate } = useVerifyTotpMutation() + mutate({ input: }) + +INPUT: + input: VerifyTotpInput (required) + +OUTPUT: UseMutationResult +``` diff --git a/sdk/constructive-sdk/src/auth/hooks/README.md b/sdk/constructive-sdk/src/auth/hooks/README.md new file mode 100644 index 000000000..9298aff05 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/hooks/README.md @@ -0,0 +1,454 @@ +# React Query Hooks + +

+ +

+ +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +## 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-sdk/src/auth/hooks/client.ts b/sdk/constructive-sdk/src/auth/hooks/client.ts new file mode 100644 index 000000000..47b9aa63f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/index.ts b/sdk/constructive-sdk/src/auth/hooks/index.ts new file mode 100644 index 000000000..ca9487175 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/hooks/index.ts @@ -0,0 +1,39 @@ +/** + * Auto-generated 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-sdk/src/auth/hooks/invalidation.ts b/sdk/constructive-sdk/src/auth/hooks/invalidation.ts new file mode 100644 index 000000000..355b6040a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutation-keys.ts b/sdk/constructive-sdk/src/auth/hooks/mutation-keys.ts new file mode 100644 index 000000000..2c43a7d85 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/index.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/index.ts new file mode 100644 index 000000000..9d2309644 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useCheckPasswordMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useCheckPasswordMutation.ts new file mode 100644 index 000000000..36b79e2fe --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useConfirmDeleteAccountMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useConfirmDeleteAccountMutation.ts new file mode 100644 index 000000000..2a430d07a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useCreateAuditLogMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useCreateAuditLogMutation.ts new file mode 100644 index 000000000..e05ac6080 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useCreateConnectedAccountMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useCreateConnectedAccountMutation.ts new file mode 100644 index 000000000..0e381461b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useCreateCryptoAddressMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useCreateCryptoAddressMutation.ts new file mode 100644 index 000000000..cddfe450c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useCreateEmailMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useCreateEmailMutation.ts new file mode 100644 index 000000000..ff6741c90 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useCreatePhoneNumberMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useCreatePhoneNumberMutation.ts new file mode 100644 index 000000000..f0a8f239b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useCreateRoleTypeMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useCreateRoleTypeMutation.ts new file mode 100644 index 000000000..212be3f45 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useCreateUserMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useCreateUserMutation.ts new file mode 100644 index 000000000..0d5bfff47 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useDeleteAuditLogMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteAuditLogMutation.ts new file mode 100644 index 000000000..694be08d8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useDeleteConnectedAccountMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteConnectedAccountMutation.ts new file mode 100644 index 000000000..29212bade --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useDeleteCryptoAddressMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteCryptoAddressMutation.ts new file mode 100644 index 000000000..15d7507ac --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useDeleteEmailMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteEmailMutation.ts new file mode 100644 index 000000000..55d906a64 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useDeletePhoneNumberMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useDeletePhoneNumberMutation.ts new file mode 100644 index 000000000..a76ed1b26 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useDeleteRoleTypeMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteRoleTypeMutation.ts new file mode 100644 index 000000000..34495fa52 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useDeleteUserMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteUserMutation.ts new file mode 100644 index 000000000..77880ad09 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useExtendTokenExpiresMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useExtendTokenExpiresMutation.ts new file mode 100644 index 000000000..d5d081a1f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useForgotPasswordMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useForgotPasswordMutation.ts new file mode 100644 index 000000000..a30ced386 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useOneTimeTokenMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useOneTimeTokenMutation.ts new file mode 100644 index 000000000..0215b7d08 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useResetPasswordMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useResetPasswordMutation.ts new file mode 100644 index 000000000..383cb8fa3 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useSendAccountDeletionEmailMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useSendAccountDeletionEmailMutation.ts new file mode 100644 index 000000000..55a179118 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useSendVerificationEmailMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useSendVerificationEmailMutation.ts new file mode 100644 index 000000000..ea9ee0d76 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useSetPasswordMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useSetPasswordMutation.ts new file mode 100644 index 000000000..af901aba1 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useSignInMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useSignInMutation.ts new file mode 100644 index 000000000..ff20ed5c4 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useSignInOneTimeTokenMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useSignInOneTimeTokenMutation.ts new file mode 100644 index 000000000..2485fe1a6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useSignOutMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useSignOutMutation.ts new file mode 100644 index 000000000..fba4da1f5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useSignUpMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useSignUpMutation.ts new file mode 100644 index 000000000..8dc94a896 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useUpdateAuditLogMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateAuditLogMutation.ts new file mode 100644 index 000000000..c1f3aba69 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useUpdateConnectedAccountMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateConnectedAccountMutation.ts new file mode 100644 index 000000000..826dce155 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useUpdateCryptoAddressMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateCryptoAddressMutation.ts new file mode 100644 index 000000000..f1987ec6e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useUpdateEmailMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateEmailMutation.ts new file mode 100644 index 000000000..89c8a59da --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useUpdatePhoneNumberMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useUpdatePhoneNumberMutation.ts new file mode 100644 index 000000000..e78b8e139 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useUpdateRoleTypeMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateRoleTypeMutation.ts new file mode 100644 index 000000000..b25b4efcb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useUpdateUserMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateUserMutation.ts new file mode 100644 index 000000000..d1ab02501 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useVerifyEmailMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useVerifyEmailMutation.ts new file mode 100644 index 000000000..6103a9bc1 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useVerifyPasswordMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useVerifyPasswordMutation.ts new file mode 100644 index 000000000..0cd31b8f3 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/mutations/useVerifyTotpMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useVerifyTotpMutation.ts new file mode 100644 index 000000000..418d599a7 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/queries/index.ts b/sdk/constructive-sdk/src/auth/hooks/queries/index.ts new file mode 100644 index 000000000..8b206fe2d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/queries/useAuditLogQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useAuditLogQuery.ts new file mode 100644 index 000000000..99af2d7fe --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/queries/useAuditLogsQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useAuditLogsQuery.ts new file mode 100644 index 000000000..2fd0f9384 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/queries/useConnectedAccountQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useConnectedAccountQuery.ts new file mode 100644 index 000000000..21a88edf9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/queries/useConnectedAccountsQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useConnectedAccountsQuery.ts new file mode 100644 index 000000000..326e1b80c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/queries/useCryptoAddressQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useCryptoAddressQuery.ts new file mode 100644 index 000000000..cc9c73a90 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/queries/useCryptoAddressesQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useCryptoAddressesQuery.ts new file mode 100644 index 000000000..33cafeede --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/queries/useCurrentIpAddressQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useCurrentIpAddressQuery.ts new file mode 100644 index 000000000..525306e3b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/queries/useCurrentUserAgentQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useCurrentUserAgentQuery.ts new file mode 100644 index 000000000..5a9c544d9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/queries/useCurrentUserIdQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useCurrentUserIdQuery.ts new file mode 100644 index 000000000..5f65326cc --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/queries/useCurrentUserQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useCurrentUserQuery.ts new file mode 100644 index 000000000..0bc463f03 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/queries/useEmailQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useEmailQuery.ts new file mode 100644 index 000000000..d954e6328 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/queries/useEmailsQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useEmailsQuery.ts new file mode 100644 index 000000000..1dca30b06 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/queries/usePhoneNumberQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/usePhoneNumberQuery.ts new file mode 100644 index 000000000..7c7f6a47d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/queries/usePhoneNumbersQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/usePhoneNumbersQuery.ts new file mode 100644 index 000000000..3282244e1 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/queries/useRoleTypeQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useRoleTypeQuery.ts new file mode 100644 index 000000000..6320e76b4 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/queries/useRoleTypesQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useRoleTypesQuery.ts new file mode 100644 index 000000000..9819ceed5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/queries/useUserQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useUserQuery.ts new file mode 100644 index 000000000..c6ca9d01b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/queries/useUsersQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useUsersQuery.ts new file mode 100644 index 000000000..478d3eab4 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/query-keys.ts b/sdk/constructive-sdk/src/auth/hooks/query-keys.ts new file mode 100644 index 000000000..e3e2a4530 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/hooks/selection.ts b/sdk/constructive-sdk/src/auth/hooks/selection.ts new file mode 100644 index 000000000..2952aab64 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/auth/index.ts b/sdk/constructive-sdk/src/auth/index.ts index 51e77d3d4..b6d442fc6 100644 --- a/sdk/constructive-sdk/src/auth/index.ts +++ b/sdk/constructive-sdk/src/auth/index.ts @@ -2,4 +2,6 @@ * Generated 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-sdk/src/auth/schema-types.ts b/sdk/constructive-sdk/src/auth/schema-types.ts new file mode 100644 index 000000000..f540475f2 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/schema-types.ts @@ -0,0 +1,1061 @@ +/** + * 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; +export type RoleTypeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +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'; +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'; +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'; +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'; +export type AuditLogOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EVENT_ASC' + | 'EVENT_DESC'; +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'; +export interface RoleTypeCondition { + id?: number; + name?: string; +} +export interface RoleTypeFilter { + id?: IntFilter; + name?: StringFilter; + and?: RoleTypeFilter[]; + or?: RoleTypeFilter[]; + not?: RoleTypeFilter; +} +export interface CryptoAddressCondition { + id?: string; + ownerId?: string; + address?: string; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +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 PhoneNumberCondition { + id?: string; + ownerId?: string; + cc?: string; + number?: string; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +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 ConnectedAccountCondition { + id?: string; + ownerId?: string; + service?: string; + identifier?: string; + details?: unknown; + isVerified?: boolean; + createdAt?: string; + updatedAt?: string; +} +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 EmailCondition { + id?: string; + ownerId?: string; + email?: ConstructiveInternalTypeEmail; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface EmailFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + email?: ConstructiveInternalTypeEmailFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: EmailFilter[]; + or?: EmailFilter[]; + not?: EmailFilter; +} +export interface ConstructiveInternalTypeEmailFilter { + 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?: ConstructiveInternalTypeEmail; + notIncludesInsensitive?: ConstructiveInternalTypeEmail; + startsWith?: string; + notStartsWith?: string; + startsWithInsensitive?: ConstructiveInternalTypeEmail; + notStartsWithInsensitive?: ConstructiveInternalTypeEmail; + endsWith?: string; + notEndsWith?: string; + endsWithInsensitive?: ConstructiveInternalTypeEmail; + notEndsWithInsensitive?: ConstructiveInternalTypeEmail; + like?: string; + notLike?: string; + likeInsensitive?: ConstructiveInternalTypeEmail; + notLikeInsensitive?: ConstructiveInternalTypeEmail; + equalToInsensitive?: ConstructiveInternalTypeEmail; + notEqualToInsensitive?: ConstructiveInternalTypeEmail; + distinctFromInsensitive?: ConstructiveInternalTypeEmail; + notDistinctFromInsensitive?: ConstructiveInternalTypeEmail; + inInsensitive?: ConstructiveInternalTypeEmail[]; + notInInsensitive?: ConstructiveInternalTypeEmail[]; + lessThanInsensitive?: ConstructiveInternalTypeEmail; + lessThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; + greaterThanInsensitive?: ConstructiveInternalTypeEmail; + greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; +} +export interface AuditLogCondition { + id?: string; + event?: string; + actorId?: string; + origin?: ConstructiveInternalTypeOrigin; + userAgent?: string; + ipAddress?: string; + success?: boolean; + createdAt?: string; +} +export interface AuditLogFilter { + id?: UUIDFilter; + event?: StringFilter; + actorId?: UUIDFilter; + origin?: ConstructiveInternalTypeOriginFilter; + userAgent?: StringFilter; + ipAddress?: InternetAddressFilter; + success?: BooleanFilter; + createdAt?: DatetimeFilter; + and?: AuditLogFilter[]; + or?: AuditLogFilter[]; + not?: AuditLogFilter; +} +export interface ConstructiveInternalTypeOriginFilter { + isNull?: boolean; + equalTo?: ConstructiveInternalTypeOrigin; + notEqualTo?: ConstructiveInternalTypeOrigin; + distinctFrom?: ConstructiveInternalTypeOrigin; + notDistinctFrom?: ConstructiveInternalTypeOrigin; + in?: ConstructiveInternalTypeOrigin[]; + notIn?: ConstructiveInternalTypeOrigin[]; + lessThan?: ConstructiveInternalTypeOrigin; + lessThanOrEqualTo?: ConstructiveInternalTypeOrigin; + greaterThan?: ConstructiveInternalTypeOrigin; + greaterThanOrEqualTo?: ConstructiveInternalTypeOrigin; + includes?: ConstructiveInternalTypeOrigin; + notIncludes?: ConstructiveInternalTypeOrigin; + includesInsensitive?: ConstructiveInternalTypeOrigin; + notIncludesInsensitive?: ConstructiveInternalTypeOrigin; + startsWith?: ConstructiveInternalTypeOrigin; + notStartsWith?: ConstructiveInternalTypeOrigin; + startsWithInsensitive?: ConstructiveInternalTypeOrigin; + notStartsWithInsensitive?: ConstructiveInternalTypeOrigin; + endsWith?: ConstructiveInternalTypeOrigin; + notEndsWith?: ConstructiveInternalTypeOrigin; + endsWithInsensitive?: ConstructiveInternalTypeOrigin; + notEndsWithInsensitive?: ConstructiveInternalTypeOrigin; + like?: ConstructiveInternalTypeOrigin; + notLike?: ConstructiveInternalTypeOrigin; + likeInsensitive?: ConstructiveInternalTypeOrigin; + notLikeInsensitive?: ConstructiveInternalTypeOrigin; + equalToInsensitive?: string; + notEqualToInsensitive?: string; + distinctFromInsensitive?: string; + notDistinctFromInsensitive?: string; + inInsensitive?: string[]; + notInInsensitive?: string[]; + lessThanInsensitive?: string; + lessThanOrEqualToInsensitive?: string; + greaterThanInsensitive?: string; + greaterThanOrEqualToInsensitive?: string; +} +export interface UserCondition { + id?: string; + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + searchTsv?: string; + type?: number; + createdAt?: string; + updatedAt?: string; + fullTextSearchTsv?: string; +} +export interface UserFilter { + id?: UUIDFilter; + username?: StringFilter; + displayName?: StringFilter; + profilePicture?: ConstructiveInternalTypeImageFilter; + searchTsv?: FullTextFilter; + type?: IntFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: UserFilter[]; + or?: UserFilter[]; + not?: UserFilter; +} +export interface ConstructiveInternalTypeImageFilter { + isNull?: boolean; + equalTo?: ConstructiveInternalTypeImage; + notEqualTo?: ConstructiveInternalTypeImage; + distinctFrom?: ConstructiveInternalTypeImage; + notDistinctFrom?: ConstructiveInternalTypeImage; + in?: ConstructiveInternalTypeImage[]; + notIn?: ConstructiveInternalTypeImage[]; + lessThan?: ConstructiveInternalTypeImage; + lessThanOrEqualTo?: ConstructiveInternalTypeImage; + greaterThan?: ConstructiveInternalTypeImage; + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + contains?: ConstructiveInternalTypeImage; + containsKey?: string; + containsAllKeys?: string[]; + containsAnyKeys?: string[]; + 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; +} +export interface IntervalInput { + seconds?: number; + minutes?: number; + hours?: number; + days?: number; + months?: number; + 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; + roleType: RoleTypeInput; +} +export interface RoleTypeInput { + id: number; + name: string; +} +export interface CreateCryptoAddressInput { + clientMutationId?: string; + cryptoAddress: CryptoAddressInput; +} +export interface CryptoAddressInput { + id?: string; + ownerId?: string; + address: string; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface CreatePhoneNumberInput { + clientMutationId?: string; + phoneNumber: PhoneNumberInput; +} +export interface PhoneNumberInput { + id?: string; + ownerId?: string; + cc: string; + number: string; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface CreateConnectedAccountInput { + clientMutationId?: string; + connectedAccount: ConnectedAccountInput; +} +export interface ConnectedAccountInput { + id?: string; + ownerId?: string; + service: string; + identifier: string; + details: unknown; + isVerified?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface CreateEmailInput { + clientMutationId?: string; + email: EmailInput; +} +export interface EmailInput { + id?: string; + ownerId?: string; + email: ConstructiveInternalTypeEmail; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAuditLogInput { + clientMutationId?: string; + auditLog: AuditLogInput; +} +export interface AuditLogInput { + id?: string; + event: string; + actorId?: string; + origin?: ConstructiveInternalTypeOrigin; + userAgent?: string; + ipAddress?: string; + success: boolean; + createdAt?: string; +} +export interface CreateUserInput { + clientMutationId?: string; + user: UserInput; +} +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; + roleTypePatch: RoleTypePatch; +} +export interface RoleTypePatch { + id?: number; + name?: string; +} +export interface UpdateCryptoAddressInput { + clientMutationId?: string; + id: string; + cryptoAddressPatch: CryptoAddressPatch; +} +export interface CryptoAddressPatch { + id?: string; + ownerId?: string; + address?: string; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface UpdatePhoneNumberInput { + clientMutationId?: string; + id: string; + phoneNumberPatch: PhoneNumberPatch; +} +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; + connectedAccountPatch: ConnectedAccountPatch; +} +export interface ConnectedAccountPatch { + id?: string; + ownerId?: string; + service?: string; + identifier?: string; + details?: unknown; + isVerified?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateEmailInput { + clientMutationId?: string; + id: string; + emailPatch: EmailPatch; +} +export interface EmailPatch { + id?: string; + ownerId?: string; + email?: ConstructiveInternalTypeEmail; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAuditLogInput { + clientMutationId?: string; + id: string; + auditLogPatch: AuditLogPatch; +} +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; + userPatch: UserPatch; +} +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; +} +export interface RoleTypeConnection { + nodes: RoleType[]; + edges: RoleTypeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface CryptoAddressConnection { + nodes: CryptoAddress[]; + edges: CryptoAddressEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface PhoneNumberConnection { + nodes: PhoneNumber[]; + edges: PhoneNumberEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface ConnectedAccountConnection { + nodes: ConnectedAccount[]; + edges: ConnectedAccountEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface EmailConnection { + nodes: Email[]; + edges: EmailEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AuditLogConnection { + nodes: AuditLog[]; + edges: AuditLogEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface UserConnection { + nodes: User[]; + edges: UserEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +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; + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export interface CreateCryptoAddressPayload { + clientMutationId?: string | null; + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export interface CreatePhoneNumberPayload { + clientMutationId?: string | null; + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export interface CreateConnectedAccountPayload { + clientMutationId?: string | null; + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} +export interface CreateEmailPayload { + clientMutationId?: string | null; + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export interface CreateAuditLogPayload { + clientMutationId?: string | null; + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export interface CreateUserPayload { + clientMutationId?: string | null; + user?: User | null; + userEdge?: UserEdge | null; +} +export interface UpdateRoleTypePayload { + clientMutationId?: string | null; + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export interface UpdateCryptoAddressPayload { + clientMutationId?: string | null; + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export interface UpdatePhoneNumberPayload { + clientMutationId?: string | null; + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export interface UpdateConnectedAccountPayload { + clientMutationId?: string | null; + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} +export interface UpdateEmailPayload { + clientMutationId?: string | null; + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export interface UpdateAuditLogPayload { + clientMutationId?: string | null; + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export interface UpdateUserPayload { + clientMutationId?: string | null; + user?: User | null; + userEdge?: UserEdge | null; +} +export interface DeleteRoleTypePayload { + clientMutationId?: string | null; + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export interface DeleteCryptoAddressPayload { + clientMutationId?: string | null; + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export interface DeletePhoneNumberPayload { + clientMutationId?: string | null; + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export interface DeleteConnectedAccountPayload { + clientMutationId?: string | null; + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} +export interface DeleteEmailPayload { + clientMutationId?: string | null; + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export interface DeleteAuditLogPayload { + clientMutationId?: string | null; + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export interface DeleteUserPayload { + clientMutationId?: string | null; + user?: User | null; + userEdge?: UserEdge | null; +} +export interface RoleTypeEdge { + cursor?: string | null; + node?: RoleType | null; +} +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} +export interface CryptoAddressEdge { + cursor?: string | null; + node?: CryptoAddress | null; +} +export interface PhoneNumberEdge { + cursor?: string | null; + node?: PhoneNumber | null; +} +export interface ConnectedAccountEdge { + cursor?: string | null; + node?: ConnectedAccount | null; +} +export interface EmailEdge { + cursor?: string | null; + node?: Email | null; +} +export interface AuditLogEdge { + cursor?: string | null; + node?: AuditLog | null; +} +export interface UserEdge { + cursor?: string | null; + node?: User | null; +} +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; +} +export interface MetaField { + name: string; + type: MetaType; + isNotNull: boolean; + hasDefault: boolean; +} +export interface MetaIndex { + name: string; + isUnique: boolean; + isPrimary: boolean; + columns: string[]; + fields?: MetaField[] | null; +} +export interface MetaConstraints { + primaryKey?: MetaPrimaryKeyConstraint | null; + unique: MetaUniqueConstraint[]; + foreignKey: MetaForeignKeyConstraint[]; +} +export interface MetaForeignKeyConstraint { + name: string; + fields: MetaField[]; + referencedTable: string; + referencedFields: string[]; + refFields?: MetaField[] | null; + refTable?: MetaRefTable | null; +} +export interface MetaPrimaryKeyConstraint { + name: string; + fields: MetaField[]; +} +export interface MetaUniqueConstraint { + name: string; + fields: MetaField[]; +} +export interface MetaRelations { + belongsTo: MetaBelongsToRelation[]; + has: MetaHasRelation[]; + hasOne: MetaHasRelation[]; + hasMany: MetaHasRelation[]; + manyToMany: MetaManyToManyRelation[]; +} +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; +} +export interface MetaQuery { + all: string; + one?: string | null; + create?: string | null; + update?: string | null; + delete?: string | null; +} +export interface MetaType { + pgType: string; + gqlType: string; + isArray: boolean; + isNotNull?: boolean | null; + hasDefault?: boolean | null; +} +export interface MetaRefTable { + name: string; +} +export interface MetaBelongsToRelation { + fieldName?: string | null; + isUnique: boolean; + type?: string | null; + keys: MetaField[]; + references: MetaRefTable; +} +export interface MetaHasRelation { + fieldName?: string | null; + isUnique: boolean; + type?: string | null; + keys: MetaField[]; + referencedBy: MetaRefTable; +} +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-sdk/src/auth/types.ts b/sdk/constructive-sdk/src/auth/types.ts new file mode 100644 index 000000000..400bc21ad --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/README.md b/sdk/constructive-sdk/src/objects/README.md index 29fb287ff..87024845d 100644 --- a/sdk/constructive-sdk/src/objects/README.md +++ b/sdk/constructive-sdk/src/objects/README.md @@ -12,7 +12,7 @@ - **Custom queries:** 4 - **Custom mutations:** 8 -**Generators:** ORM +**Generators:** ORM, React Query ## Modules @@ -30,6 +30,19 @@ const db = createClient({ 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. diff --git a/sdk/constructive-sdk/src/objects/hooks/AGENTS.md b/sdk/constructive-sdk/src/objects/hooks/AGENTS.md new file mode 100644 index 000000000..703b12e8b --- /dev/null +++ b/sdk/constructive-sdk/src/objects/hooks/AGENTS.md @@ -0,0 +1,552 @@ +# React Query Hooks - Agent Reference + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT +> This document is structured for LLM/agent consumption. + +## OVERVIEW + +React Query hooks wrapping ORM operations for data fetching and mutations. +All query hooks return `UseQueryResult`. All mutation hooks return `UseMutationResult`. + +## SETUP + +```typescript +import { configure } from './hooks'; +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; + +configure({ endpoint: 'https://api.example.com/graphql' }); +const queryClient = new QueryClient(); +// Wrap app in +``` + +## HOOKS + +### HOOK: useGetAllQuery + +List all getAll. + +``` +TYPE: query +USAGE: useGetAllQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useCreateGetAllRecordMutation + +Create a new getAllRecord. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateGetAllRecordMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useObjectsQuery + +List all objects. + +``` +TYPE: query +USAGE: useObjectsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useObjectQuery + +Get a single object by id. + +``` +TYPE: query +USAGE: useObjectQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + hashUuid: string + id: string + databaseId: string + kids: string[] + ktree: string[] + data: unknown + frzn: boolean + createdAt: string +}> +``` + +### HOOK: useCreateObjectMutation + +Create a new object. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateObjectMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateObjectMutation + +Update an existing object. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateObjectMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteObjectMutation + +Delete a object. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteObjectMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useRefsQuery + +List all refs. + +``` +TYPE: query +USAGE: useRefsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useRefQuery + +Get a single ref by id. + +``` +TYPE: query +USAGE: useRefQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + name: string + databaseId: string + storeId: string + commitId: string +}> +``` + +### HOOK: useCreateRefMutation + +Create a new ref. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateRefMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateRefMutation + +Update an existing ref. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateRefMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteRefMutation + +Delete a ref. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteRefMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useStoresQuery + +List all stores. + +``` +TYPE: query +USAGE: useStoresQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useStoreQuery + +Get a single store by id. + +``` +TYPE: query +USAGE: useStoreQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + name: string + databaseId: string + hash: string + createdAt: string +}> +``` + +### HOOK: useCreateStoreMutation + +Create a new store. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateStoreMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateStoreMutation + +Update an existing store. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateStoreMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteStoreMutation + +Delete a store. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteStoreMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useCommitsQuery + +List all commits. + +``` +TYPE: query +USAGE: useCommitsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useCommitQuery + +Get a single commit by id. + +``` +TYPE: query +USAGE: useCommitQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + message: string + databaseId: string + storeId: string + parentIds: string[] + authorId: string + committerId: string + treeId: string + date: string +}> +``` + +### HOOK: useCreateCommitMutation + +Create a new commit. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateCommitMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateCommitMutation + +Update an existing commit. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateCommitMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteCommitMutation + +Delete a commit. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteCommitMutation({}) + +OUTPUT: UseMutationResult +``` + +## CUSTOM OPERATION HOOKS + +### HOOK: useRevParseQuery + +revParse + +``` +TYPE: query +USAGE: useRevParseQuery({ dbId: , storeId: , refname: }) + +INPUT: + dbId: UUID + storeId: UUID + refname: String + +OUTPUT: UseQueryResult +``` + +### HOOK: useGetAllObjectsFromRootQuery + +Reads and enables pagination through a set of `Object`. + +``` +TYPE: query +USAGE: useGetAllObjectsFromRootQuery({ databaseId: , id: , first: , offset: , after: }) + +INPUT: + databaseId: UUID + id: UUID + first: Int + offset: Int + after: Cursor + +OUTPUT: UseQueryResult +``` + +### HOOK: useGetPathObjectsFromRootQuery + +Reads and enables pagination through a set of `Object`. + +``` +TYPE: query +USAGE: useGetPathObjectsFromRootQuery({ databaseId: , id: , path: , first: , offset: , after: }) + +INPUT: + databaseId: UUID + id: UUID + path: [String] + first: Int + offset: Int + after: Cursor + +OUTPUT: UseQueryResult +``` + +### HOOK: useGetObjectAtPathQuery + +getObjectAtPath + +``` +TYPE: query +USAGE: useGetObjectAtPathQuery({ dbId: , storeId: , path: , refname: }) + +INPUT: + dbId: UUID + storeId: UUID + path: [String] + refname: String + +OUTPUT: UseQueryResult +``` + +### HOOK: useFreezeObjectsMutation + +freezeObjects + +``` +TYPE: mutation +USAGE: const { mutate } = useFreezeObjectsMutation() + mutate({ input: }) + +INPUT: + input: FreezeObjectsInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useInitEmptyRepoMutation + +initEmptyRepo + +``` +TYPE: mutation +USAGE: const { mutate } = useInitEmptyRepoMutation() + mutate({ input: }) + +INPUT: + input: InitEmptyRepoInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useRemoveNodeAtPathMutation + +removeNodeAtPath + +``` +TYPE: mutation +USAGE: const { mutate } = useRemoveNodeAtPathMutation() + mutate({ input: }) + +INPUT: + input: RemoveNodeAtPathInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSetDataAtPathMutation + +setDataAtPath + +``` +TYPE: mutation +USAGE: const { mutate } = useSetDataAtPathMutation() + mutate({ input: }) + +INPUT: + input: SetDataAtPathInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSetPropsAndCommitMutation + +setPropsAndCommit + +``` +TYPE: mutation +USAGE: const { mutate } = useSetPropsAndCommitMutation() + mutate({ input: }) + +INPUT: + input: SetPropsAndCommitInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useInsertNodeAtPathMutation + +insertNodeAtPath + +``` +TYPE: mutation +USAGE: const { mutate } = useInsertNodeAtPathMutation() + mutate({ input: }) + +INPUT: + input: InsertNodeAtPathInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateNodeAtPathMutation + +updateNodeAtPath + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateNodeAtPathMutation() + mutate({ input: }) + +INPUT: + input: UpdateNodeAtPathInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSetAndCommitMutation + +setAndCommit + +``` +TYPE: mutation +USAGE: const { mutate } = useSetAndCommitMutation() + mutate({ input: }) + +INPUT: + input: SetAndCommitInput (required) + +OUTPUT: UseMutationResult +``` diff --git a/sdk/constructive-sdk/src/objects/hooks/README.md b/sdk/constructive-sdk/src/objects/hooks/README.md new file mode 100644 index 000000000..a6aa93cef --- /dev/null +++ b/sdk/constructive-sdk/src/objects/hooks/README.md @@ -0,0 +1,327 @@ +# React Query Hooks + +

+ +

+ +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +## 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-sdk/src/objects/hooks/client.ts b/sdk/constructive-sdk/src/objects/hooks/client.ts new file mode 100644 index 000000000..47b9aa63f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/index.ts b/sdk/constructive-sdk/src/objects/hooks/index.ts new file mode 100644 index 000000000..98b962dba --- /dev/null +++ b/sdk/constructive-sdk/src/objects/hooks/index.ts @@ -0,0 +1,39 @@ +/** + * Auto-generated 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-sdk/src/objects/hooks/invalidation.ts b/sdk/constructive-sdk/src/objects/hooks/invalidation.ts new file mode 100644 index 000000000..f05662b38 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutation-keys.ts b/sdk/constructive-sdk/src/objects/hooks/mutation-keys.ts new file mode 100644 index 000000000..7492d3b27 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutations/index.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/index.ts new file mode 100644 index 000000000..af4d44d6c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutations/useCreateCommitMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useCreateCommitMutation.ts new file mode 100644 index 000000000..7e803c25a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutations/useCreateGetAllRecordMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useCreateGetAllRecordMutation.ts new file mode 100644 index 000000000..d7761690b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutations/useCreateObjectMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useCreateObjectMutation.ts new file mode 100644 index 000000000..c9d4c9828 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutations/useCreateRefMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useCreateRefMutation.ts new file mode 100644 index 000000000..6f26a224e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutations/useCreateStoreMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useCreateStoreMutation.ts new file mode 100644 index 000000000..54c3b2ab9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutations/useDeleteCommitMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useDeleteCommitMutation.ts new file mode 100644 index 000000000..435da8423 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutations/useDeleteObjectMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useDeleteObjectMutation.ts new file mode 100644 index 000000000..c1027ecd6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutations/useDeleteRefMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useDeleteRefMutation.ts new file mode 100644 index 000000000..5059da529 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutations/useDeleteStoreMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useDeleteStoreMutation.ts new file mode 100644 index 000000000..d78ea3bb5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutations/useFreezeObjectsMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useFreezeObjectsMutation.ts new file mode 100644 index 000000000..334bdcf31 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutations/useInitEmptyRepoMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useInitEmptyRepoMutation.ts new file mode 100644 index 000000000..f82dc9e02 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutations/useInsertNodeAtPathMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useInsertNodeAtPathMutation.ts new file mode 100644 index 000000000..9da7a1bd5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutations/useRemoveNodeAtPathMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useRemoveNodeAtPathMutation.ts new file mode 100644 index 000000000..e44daf6bf --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutations/useSetAndCommitMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useSetAndCommitMutation.ts new file mode 100644 index 000000000..efbed7692 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutations/useSetDataAtPathMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useSetDataAtPathMutation.ts new file mode 100644 index 000000000..63f39667a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutations/useSetPropsAndCommitMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useSetPropsAndCommitMutation.ts new file mode 100644 index 000000000..49e6bbcd0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutations/useUpdateCommitMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateCommitMutation.ts new file mode 100644 index 000000000..d03e177ec --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutations/useUpdateNodeAtPathMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateNodeAtPathMutation.ts new file mode 100644 index 000000000..79e3ebe21 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutations/useUpdateObjectMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateObjectMutation.ts new file mode 100644 index 000000000..3c60807de --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutations/useUpdateRefMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateRefMutation.ts new file mode 100644 index 000000000..e9b413324 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/mutations/useUpdateStoreMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateStoreMutation.ts new file mode 100644 index 000000000..8ddedfd0a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/queries/index.ts b/sdk/constructive-sdk/src/objects/hooks/queries/index.ts new file mode 100644 index 000000000..39e7edd6a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/queries/useCommitQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useCommitQuery.ts new file mode 100644 index 000000000..99bfe6e3c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/queries/useCommitsQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useCommitsQuery.ts new file mode 100644 index 000000000..1ec69f698 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/queries/useGetAllObjectsFromRootQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useGetAllObjectsFromRootQuery.ts new file mode 100644 index 000000000..250ee6c18 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/queries/useGetAllQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useGetAllQuery.ts new file mode 100644 index 000000000..fa74ed4aa --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/queries/useGetObjectAtPathQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useGetObjectAtPathQuery.ts new file mode 100644 index 000000000..f36831e83 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/queries/useGetPathObjectsFromRootQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useGetPathObjectsFromRootQuery.ts new file mode 100644 index 000000000..32bb021f8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/queries/useObjectQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useObjectQuery.ts new file mode 100644 index 000000000..a846ce36d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/queries/useObjectsQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useObjectsQuery.ts new file mode 100644 index 000000000..963b611ad --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/queries/useRefQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useRefQuery.ts new file mode 100644 index 000000000..b07bd3470 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/queries/useRefsQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useRefsQuery.ts new file mode 100644 index 000000000..fbe141158 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/queries/useRevParseQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useRevParseQuery.ts new file mode 100644 index 000000000..d8b6226fb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/queries/useStoreQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useStoreQuery.ts new file mode 100644 index 000000000..984f8bf06 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/queries/useStoresQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useStoresQuery.ts new file mode 100644 index 000000000..07374bd06 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/query-keys.ts b/sdk/constructive-sdk/src/objects/hooks/query-keys.ts new file mode 100644 index 000000000..33724a9e8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/hooks/selection.ts b/sdk/constructive-sdk/src/objects/hooks/selection.ts new file mode 100644 index 000000000..2952aab64 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/objects/index.ts b/sdk/constructive-sdk/src/objects/index.ts index 51e77d3d4..b6d442fc6 100644 --- a/sdk/constructive-sdk/src/objects/index.ts +++ b/sdk/constructive-sdk/src/objects/index.ts @@ -2,4 +2,6 @@ * Generated 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-sdk/src/objects/schema-types.ts b/sdk/constructive-sdk/src/objects/schema-types.ts new file mode 100644 index 000000000..d47edc65b --- /dev/null +++ b/sdk/constructive-sdk/src/objects/schema-types.ts @@ -0,0 +1,590 @@ +/** + * 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'; +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'; +export type StoreOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type CommitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type ObjectOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'FRZN_ASC' + | 'FRZN_DESC'; +export interface RefCondition { + id?: string; + name?: string; + databaseId?: string; + storeId?: string; + commitId?: string; +} +export interface RefFilter { + id?: UUIDFilter; + name?: StringFilter; + databaseId?: UUIDFilter; + storeId?: UUIDFilter; + commitId?: UUIDFilter; + and?: RefFilter[]; + or?: RefFilter[]; + not?: RefFilter; +} +export interface StoreCondition { + id?: string; + name?: string; + databaseId?: string; + hash?: string; + createdAt?: string; +} +export interface StoreFilter { + id?: UUIDFilter; + name?: StringFilter; + databaseId?: UUIDFilter; + hash?: UUIDFilter; + createdAt?: DatetimeFilter; + and?: StoreFilter[]; + or?: StoreFilter[]; + not?: StoreFilter; +} +export interface CommitCondition { + id?: string; + message?: string; + databaseId?: string; + storeId?: string; + parentIds?: string[]; + authorId?: string; + committerId?: string; + treeId?: string; + date?: string; +} +export interface CommitFilter { + id?: UUIDFilter; + message?: StringFilter; + databaseId?: UUIDFilter; + storeId?: UUIDFilter; + parentIds?: UUIDListFilter; + authorId?: UUIDFilter; + committerId?: UUIDFilter; + treeId?: UUIDFilter; + date?: DatetimeFilter; + and?: CommitFilter[]; + or?: CommitFilter[]; + not?: CommitFilter; +} +export interface ObjectCondition { + id?: string; + databaseId?: string; + kids?: string[]; + ktree?: string[]; + data?: unknown; + frzn?: boolean; + createdAt?: string; +} +export interface ObjectFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + kids?: UUIDListFilter; + ktree?: StringListFilter; + data?: JSONFilter; + frzn?: BooleanFilter; + createdAt?: DatetimeFilter; + and?: ObjectFilter[]; + or?: ObjectFilter[]; + 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; + ref: RefInput; +} +export interface RefInput { + id?: string; + name: string; + databaseId: string; + storeId: string; + commitId?: string; +} +export interface CreateStoreInput { + clientMutationId?: string; + store: StoreInput; +} +export interface StoreInput { + id?: string; + name: string; + databaseId: string; + hash?: string; + createdAt?: string; +} +export interface CreateCommitInput { + clientMutationId?: string; + commit: CommitInput; +} +export interface CommitInput { + id?: string; + message?: string; + databaseId: string; + storeId: string; + parentIds?: string[]; + authorId?: string; + committerId?: string; + treeId?: string; + date?: string; +} +export interface CreateObjectInput { + clientMutationId?: string; + object: ObjectInput; +} +export interface ObjectInput { + id: string; + databaseId: string; + kids?: string[]; + ktree?: string[]; + data?: unknown; + frzn?: boolean; + createdAt?: string; +} +export interface UpdateRefInput { + clientMutationId?: string; + id: string; + databaseId: string; + refPatch: RefPatch; +} +export interface RefPatch { + id?: string; + name?: string; + databaseId?: string; + storeId?: string; + commitId?: string; +} +export interface UpdateStoreInput { + clientMutationId?: string; + id: string; + storePatch: StorePatch; +} +export interface StorePatch { + id?: string; + name?: string; + databaseId?: string; + hash?: string; + createdAt?: string; +} +export interface UpdateCommitInput { + clientMutationId?: string; + id: string; + databaseId: string; + commitPatch: CommitPatch; +} +export interface CommitPatch { + id?: string; + message?: string; + databaseId?: string; + storeId?: string; + parentIds?: string[]; + authorId?: string; + committerId?: string; + treeId?: string; + date?: string; +} +export interface UpdateObjectInput { + clientMutationId?: string; + id: string; + databaseId: string; + objectPatch: ObjectPatch; +} +export interface ObjectPatch { + id?: string; + databaseId?: string; + kids?: string[]; + ktree?: string[]; + data?: unknown; + frzn?: boolean; + createdAt?: string; +} +export interface DeleteRefInput { + clientMutationId?: string; + id: string; + databaseId: string; +} +export interface DeleteStoreInput { + clientMutationId?: string; + id: string; +} +export interface DeleteCommitInput { + clientMutationId?: string; + id: string; + databaseId: string; +} +export interface DeleteObjectInput { + clientMutationId?: string; + id: string; + databaseId: string; +} +export interface GetAllConnection { + nodes: GetAllRecord[]; + edges: GetAllEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface ObjectConnection { + nodes: Object[]; + edges: ObjectEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface RefConnection { + nodes: Ref[]; + edges: RefEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface StoreConnection { + nodes: Store[]; + edges: StoreEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface CommitConnection { + nodes: Commit[]; + edges: CommitEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +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; + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export interface CreateStorePayload { + clientMutationId?: string | null; + store?: Store | null; + storeEdge?: StoreEdge | null; +} +export interface CreateCommitPayload { + clientMutationId?: string | null; + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export interface CreateObjectPayload { + clientMutationId?: string | null; + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export interface UpdateRefPayload { + clientMutationId?: string | null; + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export interface UpdateStorePayload { + clientMutationId?: string | null; + store?: Store | null; + storeEdge?: StoreEdge | null; +} +export interface UpdateCommitPayload { + clientMutationId?: string | null; + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export interface UpdateObjectPayload { + clientMutationId?: string | null; + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export interface DeleteRefPayload { + clientMutationId?: string | null; + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export interface DeleteStorePayload { + clientMutationId?: string | null; + store?: Store | null; + storeEdge?: StoreEdge | null; +} +export interface DeleteCommitPayload { + clientMutationId?: string | null; + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export interface DeleteObjectPayload { + clientMutationId?: string | null; + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export interface GetAllEdge { + cursor?: string | null; + node?: GetAllRecord | null; +} +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} +export interface ObjectEdge { + cursor?: string | null; + node?: Object | null; +} +export interface RefEdge { + cursor?: string | null; + node?: Ref | null; +} +export interface StoreEdge { + cursor?: string | null; + node?: Store | null; +} +export interface CommitEdge { + cursor?: string | null; + node?: Commit | null; +} +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 MetaField { + name: string; + type: MetaType; + isNotNull: boolean; + hasDefault: boolean; +} +export interface MetaIndex { + name: string; + isUnique: boolean; + isPrimary: boolean; + columns: string[]; + fields?: MetaField[] | null; +} +export interface MetaConstraints { + primaryKey?: MetaPrimaryKeyConstraint | null; + unique: MetaUniqueConstraint[]; + foreignKey: MetaForeignKeyConstraint[]; +} +export interface MetaForeignKeyConstraint { + name: string; + fields: MetaField[]; + referencedTable: string; + referencedFields: string[]; + refFields?: MetaField[] | null; + refTable?: MetaRefTable | null; +} +export interface MetaPrimaryKeyConstraint { + name: string; + fields: MetaField[]; +} +export interface MetaUniqueConstraint { + name: string; + fields: MetaField[]; +} +export interface MetaRelations { + belongsTo: MetaBelongsToRelation[]; + has: MetaHasRelation[]; + hasOne: MetaHasRelation[]; + hasMany: MetaHasRelation[]; + manyToMany: MetaManyToManyRelation[]; +} +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; +} +export interface MetaQuery { + all: string; + one?: string | null; + create?: string | null; + update?: string | null; + delete?: string | null; +} +export interface MetaType { + pgType: string; + gqlType: string; + isArray: boolean; + isNotNull?: boolean | null; + hasDefault?: boolean | null; +} +export interface MetaRefTable { + name: string; +} +export interface MetaBelongsToRelation { + fieldName?: string | null; + isUnique: boolean; + type?: string | null; + keys: MetaField[]; + references: MetaRefTable; +} +export interface MetaHasRelation { + fieldName?: string | null; + isUnique: boolean; + type?: string | null; + keys: MetaField[]; + referencedBy: MetaRefTable; +} +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-sdk/src/objects/types.ts b/sdk/constructive-sdk/src/objects/types.ts new file mode 100644 index 000000000..0b3404d8d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/README.md b/sdk/constructive-sdk/src/public/README.md index 391c86f88..e3bc8895d 100644 --- a/sdk/constructive-sdk/src/public/README.md +++ b/sdk/constructive-sdk/src/public/README.md @@ -12,7 +12,7 @@ - **Custom queries:** 18 - **Custom mutations:** 31 -**Generators:** ORM +**Generators:** ORM, React Query ## Modules @@ -30,6 +30,19 @@ const db = createClient({ 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. diff --git a/sdk/constructive-sdk/src/public/hooks/AGENTS.md b/sdk/constructive-sdk/src/public/hooks/AGENTS.md new file mode 100644 index 000000000..5d3c81713 --- /dev/null +++ b/sdk/constructive-sdk/src/public/hooks/AGENTS.md @@ -0,0 +1,8940 @@ +# React Query Hooks - Agent Reference + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT +> This document is structured for LLM/agent consumption. + +## OVERVIEW + +React Query hooks wrapping ORM operations for data fetching and mutations. +All query hooks return `UseQueryResult`. All mutation hooks return `UseMutationResult`. + +## SETUP + +```typescript +import { configure } from './hooks'; +import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; + +configure({ endpoint: 'https://api.example.com/graphql' }); +const queryClient = new QueryClient(); +// Wrap app in +``` + +## HOOKS + +### HOOK: useGetAllQuery + +List all getAll. + +``` +TYPE: query +USAGE: useGetAllQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useCreateGetAllRecordMutation + +Create a new getAllRecord. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateGetAllRecordMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppPermissionsQuery + +List all appPermissions. + +``` +TYPE: query +USAGE: useAppPermissionsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppPermissionQuery + +Get a single appPermission by id. + +``` +TYPE: query +USAGE: useAppPermissionQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + name: string + bitnum: number + bitstr: string + description: string +}> +``` + +### HOOK: useCreateAppPermissionMutation + +Create a new appPermission. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppPermissionMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppPermissionMutation + +Update an existing appPermission. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppPermissionMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppPermissionMutation + +Delete a appPermission. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppPermissionMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgPermissionsQuery + +List all orgPermissions. + +``` +TYPE: query +USAGE: useOrgPermissionsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgPermissionQuery + +Get a single orgPermission by id. + +``` +TYPE: query +USAGE: useOrgPermissionQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + name: string + bitnum: number + bitstr: string + description: string +}> +``` + +### HOOK: useCreateOrgPermissionMutation + +Create a new orgPermission. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgPermissionMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgPermissionMutation + +Update an existing orgPermission. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgPermissionMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgPermissionMutation + +Delete a orgPermission. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgPermissionMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useObjectsQuery + +List all objects. + +``` +TYPE: query +USAGE: useObjectsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useObjectQuery + +Get a single object by id. + +``` +TYPE: query +USAGE: useObjectQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + hashUuid: string + id: string + databaseId: string + kids: string[] + ktree: string[] + data: unknown + frzn: boolean + createdAt: string +}> +``` + +### HOOK: useCreateObjectMutation + +Create a new object. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateObjectMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateObjectMutation + +Update an existing object. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateObjectMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteObjectMutation + +Delete a object. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteObjectMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppLevelRequirementsQuery + +List all appLevelRequirements. + +``` +TYPE: query +USAGE: useAppLevelRequirementsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppLevelRequirementQuery + +Get a single appLevelRequirement by id. + +``` +TYPE: query +USAGE: useAppLevelRequirementQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + name: string + level: string + description: string + requiredCount: number + priority: number + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateAppLevelRequirementMutation + +Create a new appLevelRequirement. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppLevelRequirementMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppLevelRequirementMutation + +Update an existing appLevelRequirement. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppLevelRequirementMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppLevelRequirementMutation + +Delete a appLevelRequirement. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppLevelRequirementMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDatabasesQuery + +List all databases. + +``` +TYPE: query +USAGE: useDatabasesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useDatabaseQuery + +Get a single database by id. + +``` +TYPE: query +USAGE: useDatabaseQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + ownerId: string + schemaHash: string + name: string + label: string + hash: string + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateDatabaseMutation + +Create a new database. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateDatabaseMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateDatabaseMutation + +Update an existing database. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateDatabaseMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteDatabaseMutation + +Delete a database. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteDatabaseMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSchemasQuery + +List all schemas. + +``` +TYPE: query +USAGE: useSchemasQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useSchemaQuery + +Get a single schema by id. + +``` +TYPE: query +USAGE: useSchemaQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateSchemaMutation + +Create a new schema. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateSchemaMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateSchemaMutation + +Update an existing schema. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateSchemaMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteSchemaMutation + +Delete a schema. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteSchemaMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useTablesQuery + +List all tables. + +``` +TYPE: query +USAGE: useTablesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useTableQuery + +Get a single table by id. + +``` +TYPE: query +USAGE: useTableQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateTableMutation + +Create a new table. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateTableMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateTableMutation + +Update an existing table. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateTableMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteTableMutation + +Delete a table. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteTableMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useCheckConstraintsQuery + +List all checkConstraints. + +``` +TYPE: query +USAGE: useCheckConstraintsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useCheckConstraintQuery + +Get a single checkConstraint by id. + +``` +TYPE: query +USAGE: useCheckConstraintQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateCheckConstraintMutation + +Create a new checkConstraint. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateCheckConstraintMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateCheckConstraintMutation + +Update an existing checkConstraint. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateCheckConstraintMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteCheckConstraintMutation + +Delete a checkConstraint. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteCheckConstraintMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useFieldsQuery + +List all fields. + +``` +TYPE: query +USAGE: useFieldsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useFieldQuery + +Get a single field by id. + +``` +TYPE: query +USAGE: useFieldQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateFieldMutation + +Create a new field. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateFieldMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateFieldMutation + +Update an existing field. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateFieldMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteFieldMutation + +Delete a field. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteFieldMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useForeignKeyConstraintsQuery + +List all foreignKeyConstraints. + +``` +TYPE: query +USAGE: useForeignKeyConstraintsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useForeignKeyConstraintQuery + +Get a single foreignKeyConstraint by id. + +``` +TYPE: query +USAGE: useForeignKeyConstraintQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateForeignKeyConstraintMutation + +Create a new foreignKeyConstraint. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateForeignKeyConstraintMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateForeignKeyConstraintMutation + +Update an existing foreignKeyConstraint. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateForeignKeyConstraintMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteForeignKeyConstraintMutation + +Delete a foreignKeyConstraint. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteForeignKeyConstraintMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useFullTextSearchesQuery + +List all fullTextSearches. + +``` +TYPE: query +USAGE: useFullTextSearchesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useFullTextSearchQuery + +Get a single fullTextSearch by id. + +``` +TYPE: query +USAGE: useFullTextSearchQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + tableId: string + fieldId: string + fieldIds: string[] + weights: string[] + langs: string[] + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateFullTextSearchMutation + +Create a new fullTextSearch. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateFullTextSearchMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateFullTextSearchMutation + +Update an existing fullTextSearch. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateFullTextSearchMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteFullTextSearchMutation + +Delete a fullTextSearch. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteFullTextSearchMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useIndicesQuery + +List all indices. + +``` +TYPE: query +USAGE: useIndicesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useIndexQuery + +Get a single index by id. + +``` +TYPE: query +USAGE: useIndexQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateIndexMutation + +Create a new index. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateIndexMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateIndexMutation + +Update an existing index. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateIndexMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteIndexMutation + +Delete a index. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteIndexMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useLimitFunctionsQuery + +List all limitFunctions. + +``` +TYPE: query +USAGE: useLimitFunctionsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useLimitFunctionQuery + +Get a single limitFunction by id. + +``` +TYPE: query +USAGE: useLimitFunctionQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + tableId: string + name: string + label: string + description: string + data: unknown + security: number +}> +``` + +### HOOK: useCreateLimitFunctionMutation + +Create a new limitFunction. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateLimitFunctionMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateLimitFunctionMutation + +Update an existing limitFunction. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateLimitFunctionMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteLimitFunctionMutation + +Delete a limitFunction. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteLimitFunctionMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: usePoliciesQuery + +List all policies. + +``` +TYPE: query +USAGE: usePoliciesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: usePolicyQuery + +Get a single policy by id. + +``` +TYPE: query +USAGE: usePolicyQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreatePolicyMutation + +Create a new policy. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreatePolicyMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdatePolicyMutation + +Update an existing policy. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdatePolicyMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeletePolicyMutation + +Delete a policy. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeletePolicyMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: usePrimaryKeyConstraintsQuery + +List all primaryKeyConstraints. + +``` +TYPE: query +USAGE: usePrimaryKeyConstraintsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: usePrimaryKeyConstraintQuery + +Get a single primaryKeyConstraint by id. + +``` +TYPE: query +USAGE: usePrimaryKeyConstraintQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreatePrimaryKeyConstraintMutation + +Create a new primaryKeyConstraint. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreatePrimaryKeyConstraintMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdatePrimaryKeyConstraintMutation + +Update an existing primaryKeyConstraint. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdatePrimaryKeyConstraintMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeletePrimaryKeyConstraintMutation + +Delete a primaryKeyConstraint. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeletePrimaryKeyConstraintMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useTableGrantsQuery + +List all tableGrants. + +``` +TYPE: query +USAGE: useTableGrantsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useTableGrantQuery + +Get a single tableGrant by id. + +``` +TYPE: query +USAGE: useTableGrantQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + tableId: string + privilege: string + roleName: string + fieldIds: string[] + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateTableGrantMutation + +Create a new tableGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateTableGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateTableGrantMutation + +Update an existing tableGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateTableGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteTableGrantMutation + +Delete a tableGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteTableGrantMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useTriggersQuery + +List all triggers. + +``` +TYPE: query +USAGE: useTriggersQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useTriggerQuery + +Get a single trigger by id. + +``` +TYPE: query +USAGE: useTriggerQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateTriggerMutation + +Create a new trigger. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateTriggerMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateTriggerMutation + +Update an existing trigger. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateTriggerMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteTriggerMutation + +Delete a trigger. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteTriggerMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUniqueConstraintsQuery + +List all uniqueConstraints. + +``` +TYPE: query +USAGE: useUniqueConstraintsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useUniqueConstraintQuery + +Get a single uniqueConstraint by id. + +``` +TYPE: query +USAGE: useUniqueConstraintQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateUniqueConstraintMutation + +Create a new uniqueConstraint. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateUniqueConstraintMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateUniqueConstraintMutation + +Update an existing uniqueConstraint. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateUniqueConstraintMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteUniqueConstraintMutation + +Delete a uniqueConstraint. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteUniqueConstraintMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useViewsQuery + +List all views. + +``` +TYPE: query +USAGE: useViewsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useViewQuery + +Get a single view by id. + +``` +TYPE: query +USAGE: useViewQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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[] +}> +``` + +### HOOK: useCreateViewMutation + +Create a new view. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateViewMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateViewMutation + +Update an existing view. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateViewMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteViewMutation + +Delete a view. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteViewMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useViewTablesQuery + +List all viewTables. + +``` +TYPE: query +USAGE: useViewTablesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useViewTableQuery + +Get a single viewTable by id. + +``` +TYPE: query +USAGE: useViewTableQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + viewId: string + tableId: string + joinOrder: number +}> +``` + +### HOOK: useCreateViewTableMutation + +Create a new viewTable. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateViewTableMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateViewTableMutation + +Update an existing viewTable. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateViewTableMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteViewTableMutation + +Delete a viewTable. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteViewTableMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useViewGrantsQuery + +List all viewGrants. + +``` +TYPE: query +USAGE: useViewGrantsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useViewGrantQuery + +Get a single viewGrant by id. + +``` +TYPE: query +USAGE: useViewGrantQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + viewId: string + roleName: string + privilege: string + withGrantOption: boolean +}> +``` + +### HOOK: useCreateViewGrantMutation + +Create a new viewGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateViewGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateViewGrantMutation + +Update an existing viewGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateViewGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteViewGrantMutation + +Delete a viewGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteViewGrantMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useViewRulesQuery + +List all viewRules. + +``` +TYPE: query +USAGE: useViewRulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useViewRuleQuery + +Get a single viewRule by id. + +``` +TYPE: query +USAGE: useViewRuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + viewId: string + name: string + event: string + action: string +}> +``` + +### HOOK: useCreateViewRuleMutation + +Create a new viewRule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateViewRuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateViewRuleMutation + +Update an existing viewRule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateViewRuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteViewRuleMutation + +Delete a viewRule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteViewRuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useTableModulesQuery + +List all tableModules. + +``` +TYPE: query +USAGE: useTableModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useTableModuleQuery + +Get a single tableModule by id. + +``` +TYPE: query +USAGE: useTableModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + privateSchemaId: string + tableId: string + nodeType: string + data: unknown + fields: string[] +}> +``` + +### HOOK: useCreateTableModuleMutation + +Create a new tableModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateTableModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateTableModuleMutation + +Update an existing tableModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateTableModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteTableModuleMutation + +Delete a tableModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteTableModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useTableTemplateModulesQuery + +List all tableTemplateModules. + +``` +TYPE: query +USAGE: useTableTemplateModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useTableTemplateModuleQuery + +Get a single tableTemplateModule by id. + +``` +TYPE: query +USAGE: useTableTemplateModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + schemaId: string + privateSchemaId: string + tableId: string + ownerTableId: string + tableName: string + nodeType: string + data: unknown +}> +``` + +### HOOK: useCreateTableTemplateModuleMutation + +Create a new tableTemplateModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateTableTemplateModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateTableTemplateModuleMutation + +Update an existing tableTemplateModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateTableTemplateModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteTableTemplateModuleMutation + +Delete a tableTemplateModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteTableTemplateModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSchemaGrantsQuery + +List all schemaGrants. + +``` +TYPE: query +USAGE: useSchemaGrantsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useSchemaGrantQuery + +Get a single schemaGrant by id. + +``` +TYPE: query +USAGE: useSchemaGrantQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + schemaId: string + granteeName: string + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateSchemaGrantMutation + +Create a new schemaGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateSchemaGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateSchemaGrantMutation + +Update an existing schemaGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateSchemaGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteSchemaGrantMutation + +Delete a schemaGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteSchemaGrantMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useApiSchemasQuery + +List all apiSchemas. + +``` +TYPE: query +USAGE: useApiSchemasQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useApiSchemaQuery + +Get a single apiSchema by id. + +``` +TYPE: query +USAGE: useApiSchemaQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + schemaId: string + apiId: string +}> +``` + +### HOOK: useCreateApiSchemaMutation + +Create a new apiSchema. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateApiSchemaMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateApiSchemaMutation + +Update an existing apiSchema. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateApiSchemaMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteApiSchemaMutation + +Delete a apiSchema. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteApiSchemaMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useApiModulesQuery + +List all apiModules. + +``` +TYPE: query +USAGE: useApiModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useApiModuleQuery + +Get a single apiModule by id. + +``` +TYPE: query +USAGE: useApiModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + apiId: string + name: string + data: unknown +}> +``` + +### HOOK: useCreateApiModuleMutation + +Create a new apiModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateApiModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateApiModuleMutation + +Update an existing apiModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateApiModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteApiModuleMutation + +Delete a apiModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteApiModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDomainsQuery + +List all domains. + +``` +TYPE: query +USAGE: useDomainsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useDomainQuery + +Get a single domain by id. + +``` +TYPE: query +USAGE: useDomainQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + apiId: string + siteId: string + subdomain: ConstructiveInternalTypeHostname + domain: ConstructiveInternalTypeHostname +}> +``` + +### HOOK: useCreateDomainMutation + +Create a new domain. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateDomainMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateDomainMutation + +Update an existing domain. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateDomainMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteDomainMutation + +Delete a domain. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteDomainMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSiteMetadataQuery + +List all siteMetadata. + +``` +TYPE: query +USAGE: useSiteMetadataQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useSiteMetadatumQuery + +Get a single siteMetadatum by id. + +``` +TYPE: query +USAGE: useSiteMetadatumQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + siteId: string + title: string + description: string + ogImage: ConstructiveInternalTypeImage +}> +``` + +### HOOK: useCreateSiteMetadatumMutation + +Create a new siteMetadatum. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateSiteMetadatumMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateSiteMetadatumMutation + +Update an existing siteMetadatum. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateSiteMetadatumMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteSiteMetadatumMutation + +Delete a siteMetadatum. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteSiteMetadatumMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSiteModulesQuery + +List all siteModules. + +``` +TYPE: query +USAGE: useSiteModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useSiteModuleQuery + +Get a single siteModule by id. + +``` +TYPE: query +USAGE: useSiteModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + siteId: string + name: string + data: unknown +}> +``` + +### HOOK: useCreateSiteModuleMutation + +Create a new siteModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateSiteModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateSiteModuleMutation + +Update an existing siteModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateSiteModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteSiteModuleMutation + +Delete a siteModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteSiteModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSiteThemesQuery + +List all siteThemes. + +``` +TYPE: query +USAGE: useSiteThemesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useSiteThemeQuery + +Get a single siteTheme by id. + +``` +TYPE: query +USAGE: useSiteThemeQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + siteId: string + theme: unknown +}> +``` + +### HOOK: useCreateSiteThemeMutation + +Create a new siteTheme. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateSiteThemeMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateSiteThemeMutation + +Update an existing siteTheme. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateSiteThemeMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteSiteThemeMutation + +Delete a siteTheme. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteSiteThemeMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useProceduresQuery + +List all procedures. + +``` +TYPE: query +USAGE: useProceduresQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useProcedureQuery + +Get a single procedure by id. + +``` +TYPE: query +USAGE: useProcedureQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateProcedureMutation + +Create a new procedure. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateProcedureMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateProcedureMutation + +Update an existing procedure. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateProcedureMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteProcedureMutation + +Delete a procedure. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteProcedureMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useTriggerFunctionsQuery + +List all triggerFunctions. + +``` +TYPE: query +USAGE: useTriggerFunctionsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useTriggerFunctionQuery + +Get a single triggerFunction by id. + +``` +TYPE: query +USAGE: useTriggerFunctionQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + name: string + code: string + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateTriggerFunctionMutation + +Create a new triggerFunction. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateTriggerFunctionMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateTriggerFunctionMutation + +Update an existing triggerFunction. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateTriggerFunctionMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteTriggerFunctionMutation + +Delete a triggerFunction. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteTriggerFunctionMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useApisQuery + +List all apis. + +``` +TYPE: query +USAGE: useApisQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useApiQuery + +Get a single api by id. + +``` +TYPE: query +USAGE: useApiQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + name: string + dbname: string + roleName: string + anonRole: string + isPublic: boolean +}> +``` + +### HOOK: useCreateApiMutation + +Create a new api. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateApiMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateApiMutation + +Update an existing api. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateApiMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteApiMutation + +Delete a api. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteApiMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSitesQuery + +List all sites. + +``` +TYPE: query +USAGE: useSitesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useSiteQuery + +Get a single site by id. + +``` +TYPE: query +USAGE: useSiteQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + title: string + description: string + ogImage: ConstructiveInternalTypeImage + favicon: ConstructiveInternalTypeAttachment + appleTouchIcon: ConstructiveInternalTypeImage + logo: ConstructiveInternalTypeImage + dbname: string +}> +``` + +### HOOK: useCreateSiteMutation + +Create a new site. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateSiteMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateSiteMutation + +Update an existing site. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateSiteMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteSiteMutation + +Delete a site. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteSiteMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppsQuery + +List all apps. + +``` +TYPE: query +USAGE: useAppsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppQuery + +Get a single app by id. + +``` +TYPE: query +USAGE: useAppQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + siteId: string + name: string + appImage: ConstructiveInternalTypeImage + appStoreLink: ConstructiveInternalTypeUrl + appStoreId: string + appIdPrefix: string + playStoreLink: ConstructiveInternalTypeUrl +}> +``` + +### HOOK: useCreateAppMutation + +Create a new app. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppMutation + +Update an existing app. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppMutation + +Delete a app. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useConnectedAccountsModulesQuery + +List all connectedAccountsModules. + +``` +TYPE: query +USAGE: useConnectedAccountsModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useConnectedAccountsModuleQuery + +Get a single connectedAccountsModule by id. + +``` +TYPE: query +USAGE: useConnectedAccountsModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + schemaId: string + privateSchemaId: string + tableId: string + ownerTableId: string + tableName: string +}> +``` + +### HOOK: useCreateConnectedAccountsModuleMutation + +Create a new connectedAccountsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateConnectedAccountsModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateConnectedAccountsModuleMutation + +Update an existing connectedAccountsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateConnectedAccountsModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteConnectedAccountsModuleMutation + +Delete a connectedAccountsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteConnectedAccountsModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useCryptoAddressesModulesQuery + +List all cryptoAddressesModules. + +``` +TYPE: query +USAGE: useCryptoAddressesModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useCryptoAddressesModuleQuery + +Get a single cryptoAddressesModule by id. + +``` +TYPE: query +USAGE: useCryptoAddressesModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + schemaId: string + privateSchemaId: string + tableId: string + ownerTableId: string + tableName: string + cryptoNetwork: string +}> +``` + +### HOOK: useCreateCryptoAddressesModuleMutation + +Create a new cryptoAddressesModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateCryptoAddressesModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateCryptoAddressesModuleMutation + +Update an existing cryptoAddressesModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateCryptoAddressesModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteCryptoAddressesModuleMutation + +Delete a cryptoAddressesModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteCryptoAddressesModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useCryptoAuthModulesQuery + +List all cryptoAuthModules. + +``` +TYPE: query +USAGE: useCryptoAuthModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useCryptoAuthModuleQuery + +Get a single cryptoAuthModule by id. + +``` +TYPE: query +USAGE: useCryptoAuthModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateCryptoAuthModuleMutation + +Create a new cryptoAuthModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateCryptoAuthModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateCryptoAuthModuleMutation + +Update an existing cryptoAuthModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateCryptoAuthModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteCryptoAuthModuleMutation + +Delete a cryptoAuthModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteCryptoAuthModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDefaultIdsModulesQuery + +List all defaultIdsModules. + +``` +TYPE: query +USAGE: useDefaultIdsModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useDefaultIdsModuleQuery + +Get a single defaultIdsModule by id. + +``` +TYPE: query +USAGE: useDefaultIdsModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string +}> +``` + +### HOOK: useCreateDefaultIdsModuleMutation + +Create a new defaultIdsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateDefaultIdsModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateDefaultIdsModuleMutation + +Update an existing defaultIdsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateDefaultIdsModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteDefaultIdsModuleMutation + +Delete a defaultIdsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteDefaultIdsModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDenormalizedTableFieldsQuery + +List all denormalizedTableFields. + +``` +TYPE: query +USAGE: useDenormalizedTableFieldsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useDenormalizedTableFieldQuery + +Get a single denormalizedTableField by id. + +``` +TYPE: query +USAGE: useDenormalizedTableFieldQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + tableId: string + fieldId: string + setIds: string[] + refTableId: string + refFieldId: string + refIds: string[] + useUpdates: boolean + updateDefaults: boolean + funcName: string + funcOrder: number +}> +``` + +### HOOK: useCreateDenormalizedTableFieldMutation + +Create a new denormalizedTableField. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateDenormalizedTableFieldMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateDenormalizedTableFieldMutation + +Update an existing denormalizedTableField. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateDenormalizedTableFieldMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteDenormalizedTableFieldMutation + +Delete a denormalizedTableField. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteDenormalizedTableFieldMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useEmailsModulesQuery + +List all emailsModules. + +``` +TYPE: query +USAGE: useEmailsModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useEmailsModuleQuery + +Get a single emailsModule by id. + +``` +TYPE: query +USAGE: useEmailsModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + schemaId: string + privateSchemaId: string + tableId: string + ownerTableId: string + tableName: string +}> +``` + +### HOOK: useCreateEmailsModuleMutation + +Create a new emailsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateEmailsModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateEmailsModuleMutation + +Update an existing emailsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateEmailsModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteEmailsModuleMutation + +Delete a emailsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteEmailsModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useEncryptedSecretsModulesQuery + +List all encryptedSecretsModules. + +``` +TYPE: query +USAGE: useEncryptedSecretsModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useEncryptedSecretsModuleQuery + +Get a single encryptedSecretsModule by id. + +``` +TYPE: query +USAGE: useEncryptedSecretsModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + schemaId: string + tableId: string + tableName: string +}> +``` + +### HOOK: useCreateEncryptedSecretsModuleMutation + +Create a new encryptedSecretsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateEncryptedSecretsModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateEncryptedSecretsModuleMutation + +Update an existing encryptedSecretsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateEncryptedSecretsModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteEncryptedSecretsModuleMutation + +Delete a encryptedSecretsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteEncryptedSecretsModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useFieldModulesQuery + +List all fieldModules. + +``` +TYPE: query +USAGE: useFieldModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useFieldModuleQuery + +Get a single fieldModule by id. + +``` +TYPE: query +USAGE: useFieldModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + privateSchemaId: string + tableId: string + fieldId: string + nodeType: string + data: unknown + triggers: string[] + functions: string[] +}> +``` + +### HOOK: useCreateFieldModuleMutation + +Create a new fieldModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateFieldModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateFieldModuleMutation + +Update an existing fieldModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateFieldModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteFieldModuleMutation + +Delete a fieldModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteFieldModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useInvitesModulesQuery + +List all invitesModules. + +``` +TYPE: query +USAGE: useInvitesModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useInvitesModuleQuery + +Get a single invitesModule by id. + +``` +TYPE: query +USAGE: useInvitesModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateInvitesModuleMutation + +Create a new invitesModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateInvitesModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateInvitesModuleMutation + +Update an existing invitesModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateInvitesModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteInvitesModuleMutation + +Delete a invitesModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteInvitesModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useLevelsModulesQuery + +List all levelsModules. + +``` +TYPE: query +USAGE: useLevelsModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useLevelsModuleQuery + +Get a single levelsModule by id. + +``` +TYPE: query +USAGE: useLevelsModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateLevelsModuleMutation + +Create a new levelsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateLevelsModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateLevelsModuleMutation + +Update an existing levelsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateLevelsModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteLevelsModuleMutation + +Delete a levelsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteLevelsModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useLimitsModulesQuery + +List all limitsModules. + +``` +TYPE: query +USAGE: useLimitsModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useLimitsModuleQuery + +Get a single limitsModule by id. + +``` +TYPE: query +USAGE: useLimitsModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateLimitsModuleMutation + +Create a new limitsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateLimitsModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateLimitsModuleMutation + +Update an existing limitsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateLimitsModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteLimitsModuleMutation + +Delete a limitsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteLimitsModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useMembershipTypesModulesQuery + +List all membershipTypesModules. + +``` +TYPE: query +USAGE: useMembershipTypesModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useMembershipTypesModuleQuery + +Get a single membershipTypesModule by id. + +``` +TYPE: query +USAGE: useMembershipTypesModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + schemaId: string + tableId: string + tableName: string +}> +``` + +### HOOK: useCreateMembershipTypesModuleMutation + +Create a new membershipTypesModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateMembershipTypesModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateMembershipTypesModuleMutation + +Update an existing membershipTypesModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateMembershipTypesModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteMembershipTypesModuleMutation + +Delete a membershipTypesModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteMembershipTypesModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useMembershipsModulesQuery + +List all membershipsModules. + +``` +TYPE: query +USAGE: useMembershipsModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useMembershipsModuleQuery + +Get a single membershipsModule by id. + +``` +TYPE: query +USAGE: useMembershipsModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateMembershipsModuleMutation + +Create a new membershipsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateMembershipsModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateMembershipsModuleMutation + +Update an existing membershipsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateMembershipsModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteMembershipsModuleMutation + +Delete a membershipsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteMembershipsModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: usePermissionsModulesQuery + +List all permissionsModules. + +``` +TYPE: query +USAGE: usePermissionsModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: usePermissionsModuleQuery + +Get a single permissionsModule by id. + +``` +TYPE: query +USAGE: usePermissionsModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreatePermissionsModuleMutation + +Create a new permissionsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreatePermissionsModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdatePermissionsModuleMutation + +Update an existing permissionsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdatePermissionsModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeletePermissionsModuleMutation + +Delete a permissionsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeletePermissionsModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: usePhoneNumbersModulesQuery + +List all phoneNumbersModules. + +``` +TYPE: query +USAGE: usePhoneNumbersModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: usePhoneNumbersModuleQuery + +Get a single phoneNumbersModule by id. + +``` +TYPE: query +USAGE: usePhoneNumbersModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + schemaId: string + privateSchemaId: string + tableId: string + ownerTableId: string + tableName: string +}> +``` + +### HOOK: useCreatePhoneNumbersModuleMutation + +Create a new phoneNumbersModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreatePhoneNumbersModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdatePhoneNumbersModuleMutation + +Update an existing phoneNumbersModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdatePhoneNumbersModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeletePhoneNumbersModuleMutation + +Delete a phoneNumbersModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeletePhoneNumbersModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useProfilesModulesQuery + +List all profilesModules. + +``` +TYPE: query +USAGE: useProfilesModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useProfilesModuleQuery + +Get a single profilesModule by id. + +``` +TYPE: query +USAGE: useProfilesModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateProfilesModuleMutation + +Create a new profilesModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateProfilesModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateProfilesModuleMutation + +Update an existing profilesModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateProfilesModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteProfilesModuleMutation + +Delete a profilesModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteProfilesModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useRlsModulesQuery + +List all rlsModules. + +``` +TYPE: query +USAGE: useRlsModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useRlsModuleQuery + +Get a single rlsModule by id. + +``` +TYPE: query +USAGE: useRlsModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + apiId: string + schemaId: string + privateSchemaId: string + sessionCredentialsTableId: string + sessionsTableId: string + usersTableId: string + authenticate: string + authenticateStrict: string + currentRole: string + currentRoleId: string +}> +``` + +### HOOK: useCreateRlsModuleMutation + +Create a new rlsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateRlsModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateRlsModuleMutation + +Update an existing rlsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateRlsModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteRlsModuleMutation + +Delete a rlsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteRlsModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSecretsModulesQuery + +List all secretsModules. + +``` +TYPE: query +USAGE: useSecretsModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useSecretsModuleQuery + +Get a single secretsModule by id. + +``` +TYPE: query +USAGE: useSecretsModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + schemaId: string + tableId: string + tableName: string +}> +``` + +### HOOK: useCreateSecretsModuleMutation + +Create a new secretsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateSecretsModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateSecretsModuleMutation + +Update an existing secretsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateSecretsModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteSecretsModuleMutation + +Delete a secretsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteSecretsModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSessionsModulesQuery + +List all sessionsModules. + +``` +TYPE: query +USAGE: useSessionsModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useSessionsModuleQuery + +Get a single sessionsModule by id. + +``` +TYPE: query +USAGE: useSessionsModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + schemaId: string + sessionsTableId: string + sessionCredentialsTableId: string + authSettingsTableId: string + usersTableId: string + sessionsDefaultExpiration: string + sessionsTable: string + sessionCredentialsTable: string + authSettingsTable: string +}> +``` + +### HOOK: useCreateSessionsModuleMutation + +Create a new sessionsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateSessionsModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateSessionsModuleMutation + +Update an existing sessionsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateSessionsModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteSessionsModuleMutation + +Delete a sessionsModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteSessionsModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUserAuthModulesQuery + +List all userAuthModules. + +``` +TYPE: query +USAGE: useUserAuthModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useUserAuthModuleQuery + +Get a single userAuthModule by id. + +``` +TYPE: query +USAGE: useUserAuthModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateUserAuthModuleMutation + +Create a new userAuthModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateUserAuthModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateUserAuthModuleMutation + +Update an existing userAuthModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateUserAuthModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteUserAuthModuleMutation + +Delete a userAuthModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteUserAuthModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUsersModulesQuery + +List all usersModules. + +``` +TYPE: query +USAGE: useUsersModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useUsersModuleQuery + +Get a single usersModule by id. + +``` +TYPE: query +USAGE: useUsersModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + schemaId: string + tableId: string + tableName: string + typeTableId: string + typeTableName: string +}> +``` + +### HOOK: useCreateUsersModuleMutation + +Create a new usersModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateUsersModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateUsersModuleMutation + +Update an existing usersModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateUsersModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteUsersModuleMutation + +Delete a usersModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteUsersModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUuidModulesQuery + +List all uuidModules. + +``` +TYPE: query +USAGE: useUuidModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useUuidModuleQuery + +Get a single uuidModule by id. + +``` +TYPE: query +USAGE: useUuidModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseId: string + schemaId: string + uuidFunction: string + uuidSeed: string +}> +``` + +### HOOK: useCreateUuidModuleMutation + +Create a new uuidModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateUuidModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateUuidModuleMutation + +Update an existing uuidModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateUuidModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteUuidModuleMutation + +Delete a uuidModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteUuidModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDatabaseProvisionModulesQuery + +List all databaseProvisionModules. + +``` +TYPE: query +USAGE: useDatabaseProvisionModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useDatabaseProvisionModuleQuery + +Get a single databaseProvisionModule by id. + +``` +TYPE: query +USAGE: useDatabaseProvisionModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + databaseName: string + ownerId: string + subdomain: string + domain: string + modules: string[] + options: unknown + bootstrapUser: boolean + status: string + errorMessage: string + databaseId: string + createdAt: string + updatedAt: string + completedAt: string +}> +``` + +### HOOK: useCreateDatabaseProvisionModuleMutation + +Create a new databaseProvisionModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateDatabaseProvisionModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateDatabaseProvisionModuleMutation + +Update an existing databaseProvisionModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateDatabaseProvisionModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteDatabaseProvisionModuleMutation + +Delete a databaseProvisionModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteDatabaseProvisionModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppAdminGrantsQuery + +List all appAdminGrants. + +``` +TYPE: query +USAGE: useAppAdminGrantsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppAdminGrantQuery + +Get a single appAdminGrant by id. + +``` +TYPE: query +USAGE: useAppAdminGrantQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + isGrant: boolean + actorId: string + grantorId: string + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateAppAdminGrantMutation + +Create a new appAdminGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppAdminGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppAdminGrantMutation + +Update an existing appAdminGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppAdminGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppAdminGrantMutation + +Delete a appAdminGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppAdminGrantMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppOwnerGrantsQuery + +List all appOwnerGrants. + +``` +TYPE: query +USAGE: useAppOwnerGrantsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppOwnerGrantQuery + +Get a single appOwnerGrant by id. + +``` +TYPE: query +USAGE: useAppOwnerGrantQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + isGrant: boolean + actorId: string + grantorId: string + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateAppOwnerGrantMutation + +Create a new appOwnerGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppOwnerGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppOwnerGrantMutation + +Update an existing appOwnerGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppOwnerGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppOwnerGrantMutation + +Delete a appOwnerGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppOwnerGrantMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppGrantsQuery + +List all appGrants. + +``` +TYPE: query +USAGE: useAppGrantsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppGrantQuery + +Get a single appGrant by id. + +``` +TYPE: query +USAGE: useAppGrantQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + permissions: string + isGrant: boolean + actorId: string + grantorId: string + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateAppGrantMutation + +Create a new appGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppGrantMutation + +Update an existing appGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppGrantMutation + +Delete a appGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppGrantMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgMembershipsQuery + +List all orgMemberships. + +``` +TYPE: query +USAGE: useOrgMembershipsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgMembershipQuery + +Get a single orgMembership by id. + +``` +TYPE: query +USAGE: useOrgMembershipQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateOrgMembershipMutation + +Create a new orgMembership. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgMembershipMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgMembershipMutation + +Update an existing orgMembership. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgMembershipMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgMembershipMutation + +Delete a orgMembership. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgMembershipMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgMembersQuery + +List all orgMembers. + +``` +TYPE: query +USAGE: useOrgMembersQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgMemberQuery + +Get a single orgMember by id. + +``` +TYPE: query +USAGE: useOrgMemberQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + isAdmin: boolean + actorId: string + entityId: string +}> +``` + +### HOOK: useCreateOrgMemberMutation + +Create a new orgMember. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgMemberMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgMemberMutation + +Update an existing orgMember. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgMemberMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgMemberMutation + +Delete a orgMember. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgMemberMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgAdminGrantsQuery + +List all orgAdminGrants. + +``` +TYPE: query +USAGE: useOrgAdminGrantsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgAdminGrantQuery + +Get a single orgAdminGrant by id. + +``` +TYPE: query +USAGE: useOrgAdminGrantQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + isGrant: boolean + actorId: string + entityId: string + grantorId: string + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateOrgAdminGrantMutation + +Create a new orgAdminGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgAdminGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgAdminGrantMutation + +Update an existing orgAdminGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgAdminGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgAdminGrantMutation + +Delete a orgAdminGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgAdminGrantMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgOwnerGrantsQuery + +List all orgOwnerGrants. + +``` +TYPE: query +USAGE: useOrgOwnerGrantsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgOwnerGrantQuery + +Get a single orgOwnerGrant by id. + +``` +TYPE: query +USAGE: useOrgOwnerGrantQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + isGrant: boolean + actorId: string + entityId: string + grantorId: string + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateOrgOwnerGrantMutation + +Create a new orgOwnerGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgOwnerGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgOwnerGrantMutation + +Update an existing orgOwnerGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgOwnerGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgOwnerGrantMutation + +Delete a orgOwnerGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgOwnerGrantMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgGrantsQuery + +List all orgGrants. + +``` +TYPE: query +USAGE: useOrgGrantsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgGrantQuery + +Get a single orgGrant by id. + +``` +TYPE: query +USAGE: useOrgGrantQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + permissions: string + isGrant: boolean + actorId: string + entityId: string + grantorId: string + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateOrgGrantMutation + +Create a new orgGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgGrantMutation + +Update an existing orgGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgGrantMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgGrantMutation + +Delete a orgGrant. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgGrantMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppLimitsQuery + +List all appLimits. + +``` +TYPE: query +USAGE: useAppLimitsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppLimitQuery + +Get a single appLimit by id. + +``` +TYPE: query +USAGE: useAppLimitQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + name: string + actorId: string + num: number + max: number +}> +``` + +### HOOK: useCreateAppLimitMutation + +Create a new appLimit. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppLimitMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppLimitMutation + +Update an existing appLimit. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppLimitMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppLimitMutation + +Delete a appLimit. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppLimitMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgLimitsQuery + +List all orgLimits. + +``` +TYPE: query +USAGE: useOrgLimitsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgLimitQuery + +Get a single orgLimit by id. + +``` +TYPE: query +USAGE: useOrgLimitQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + name: string + actorId: string + num: number + max: number + entityId: string +}> +``` + +### HOOK: useCreateOrgLimitMutation + +Create a new orgLimit. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgLimitMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgLimitMutation + +Update an existing orgLimit. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgLimitMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgLimitMutation + +Delete a orgLimit. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgLimitMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppStepsQuery + +List all appSteps. + +``` +TYPE: query +USAGE: useAppStepsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppStepQuery + +Get a single appStep by id. + +``` +TYPE: query +USAGE: useAppStepQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + actorId: string + name: string + count: number + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateAppStepMutation + +Create a new appStep. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppStepMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppStepMutation + +Update an existing appStep. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppStepMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppStepMutation + +Delete a appStep. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppStepMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppAchievementsQuery + +List all appAchievements. + +``` +TYPE: query +USAGE: useAppAchievementsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppAchievementQuery + +Get a single appAchievement by id. + +``` +TYPE: query +USAGE: useAppAchievementQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + actorId: string + name: string + count: number + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateAppAchievementMutation + +Create a new appAchievement. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppAchievementMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppAchievementMutation + +Update an existing appAchievement. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppAchievementMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppAchievementMutation + +Delete a appAchievement. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppAchievementMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useInvitesQuery + +List all invites. + +``` +TYPE: query +USAGE: useInvitesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useInviteQuery + +Get a single invite by id. + +``` +TYPE: query +USAGE: useInviteQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + email: ConstructiveInternalTypeEmail + senderId: string + inviteToken: string + inviteValid: boolean + inviteLimit: number + inviteCount: number + multiple: boolean + data: unknown + expiresAt: string + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateInviteMutation + +Create a new invite. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateInviteMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateInviteMutation + +Update an existing invite. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateInviteMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteInviteMutation + +Delete a invite. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteInviteMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useClaimedInvitesQuery + +List all claimedInvites. + +``` +TYPE: query +USAGE: useClaimedInvitesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useClaimedInviteQuery + +Get a single claimedInvite by id. + +``` +TYPE: query +USAGE: useClaimedInviteQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + data: unknown + senderId: string + receiverId: string + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateClaimedInviteMutation + +Create a new claimedInvite. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateClaimedInviteMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateClaimedInviteMutation + +Update an existing claimedInvite. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateClaimedInviteMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteClaimedInviteMutation + +Delete a claimedInvite. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteClaimedInviteMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgInvitesQuery + +List all orgInvites. + +``` +TYPE: query +USAGE: useOrgInvitesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgInviteQuery + +Get a single orgInvite by id. + +``` +TYPE: query +USAGE: useOrgInviteQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateOrgInviteMutation + +Create a new orgInvite. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgInviteMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgInviteMutation + +Update an existing orgInvite. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgInviteMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgInviteMutation + +Delete a orgInvite. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgInviteMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgClaimedInvitesQuery + +List all orgClaimedInvites. + +``` +TYPE: query +USAGE: useOrgClaimedInvitesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgClaimedInviteQuery + +Get a single orgClaimedInvite by id. + +``` +TYPE: query +USAGE: useOrgClaimedInviteQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + data: unknown + senderId: string + receiverId: string + createdAt: string + updatedAt: string + entityId: string +}> +``` + +### HOOK: useCreateOrgClaimedInviteMutation + +Create a new orgClaimedInvite. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgClaimedInviteMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgClaimedInviteMutation + +Update an existing orgClaimedInvite. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgClaimedInviteMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgClaimedInviteMutation + +Delete a orgClaimedInvite. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgClaimedInviteMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppPermissionDefaultsQuery + +List all appPermissionDefaults. + +``` +TYPE: query +USAGE: useAppPermissionDefaultsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppPermissionDefaultQuery + +Get a single appPermissionDefault by id. + +``` +TYPE: query +USAGE: useAppPermissionDefaultQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + permissions: string +}> +``` + +### HOOK: useCreateAppPermissionDefaultMutation + +Create a new appPermissionDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppPermissionDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppPermissionDefaultMutation + +Update an existing appPermissionDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppPermissionDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppPermissionDefaultMutation + +Delete a appPermissionDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppPermissionDefaultMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useRefsQuery + +List all refs. + +``` +TYPE: query +USAGE: useRefsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useRefQuery + +Get a single ref by id. + +``` +TYPE: query +USAGE: useRefQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + name: string + databaseId: string + storeId: string + commitId: string +}> +``` + +### HOOK: useCreateRefMutation + +Create a new ref. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateRefMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateRefMutation + +Update an existing ref. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateRefMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteRefMutation + +Delete a ref. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteRefMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useStoresQuery + +List all stores. + +``` +TYPE: query +USAGE: useStoresQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useStoreQuery + +Get a single store by id. + +``` +TYPE: query +USAGE: useStoreQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + name: string + databaseId: string + hash: string + createdAt: string +}> +``` + +### HOOK: useCreateStoreMutation + +Create a new store. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateStoreMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateStoreMutation + +Update an existing store. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateStoreMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteStoreMutation + +Delete a store. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteStoreMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useRoleTypesQuery + +List all roleTypes. + +``` +TYPE: query +USAGE: useRoleTypesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useRoleTypeQuery + +Get a single roleType by id. + +``` +TYPE: query +USAGE: useRoleTypeQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: number (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: number + name: string +}> +``` + +### HOOK: useCreateRoleTypeMutation + +Create a new roleType. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateRoleTypeMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateRoleTypeMutation + +Update an existing roleType. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateRoleTypeMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteRoleTypeMutation + +Delete a roleType. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteRoleTypeMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgPermissionDefaultsQuery + +List all orgPermissionDefaults. + +``` +TYPE: query +USAGE: useOrgPermissionDefaultsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgPermissionDefaultQuery + +Get a single orgPermissionDefault by id. + +``` +TYPE: query +USAGE: useOrgPermissionDefaultQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + permissions: string + entityId: string +}> +``` + +### HOOK: useCreateOrgPermissionDefaultMutation + +Create a new orgPermissionDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgPermissionDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgPermissionDefaultMutation + +Update an existing orgPermissionDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgPermissionDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgPermissionDefaultMutation + +Delete a orgPermissionDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgPermissionDefaultMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppLimitDefaultsQuery + +List all appLimitDefaults. + +``` +TYPE: query +USAGE: useAppLimitDefaultsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppLimitDefaultQuery + +Get a single appLimitDefault by id. + +``` +TYPE: query +USAGE: useAppLimitDefaultQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + name: string + max: number +}> +``` + +### HOOK: useCreateAppLimitDefaultMutation + +Create a new appLimitDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppLimitDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppLimitDefaultMutation + +Update an existing appLimitDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppLimitDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppLimitDefaultMutation + +Delete a appLimitDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppLimitDefaultMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgLimitDefaultsQuery + +List all orgLimitDefaults. + +``` +TYPE: query +USAGE: useOrgLimitDefaultsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgLimitDefaultQuery + +Get a single orgLimitDefault by id. + +``` +TYPE: query +USAGE: useOrgLimitDefaultQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + name: string + max: number +}> +``` + +### HOOK: useCreateOrgLimitDefaultMutation + +Create a new orgLimitDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgLimitDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgLimitDefaultMutation + +Update an existing orgLimitDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgLimitDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgLimitDefaultMutation + +Delete a orgLimitDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgLimitDefaultMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useCryptoAddressesQuery + +List all cryptoAddresses. + +``` +TYPE: query +USAGE: useCryptoAddressesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useCryptoAddressQuery + +Get a single cryptoAddress by id. + +``` +TYPE: query +USAGE: useCryptoAddressQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + ownerId: string + address: string + isVerified: boolean + isPrimary: boolean + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateCryptoAddressMutation + +Create a new cryptoAddress. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateCryptoAddressMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateCryptoAddressMutation + +Update an existing cryptoAddress. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateCryptoAddressMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteCryptoAddressMutation + +Delete a cryptoAddress. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteCryptoAddressMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useMembershipTypesQuery + +List all membershipTypes. + +``` +TYPE: query +USAGE: useMembershipTypesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useMembershipTypeQuery + +Get a single membershipType by id. + +``` +TYPE: query +USAGE: useMembershipTypeQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: number (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: number + name: string + description: string + prefix: string +}> +``` + +### HOOK: useCreateMembershipTypeMutation + +Create a new membershipType. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateMembershipTypeMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateMembershipTypeMutation + +Update an existing membershipType. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateMembershipTypeMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteMembershipTypeMutation + +Delete a membershipType. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteMembershipTypeMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useConnectedAccountsQuery + +List all connectedAccounts. + +``` +TYPE: query +USAGE: useConnectedAccountsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useConnectedAccountQuery + +Get a single connectedAccount by id. + +``` +TYPE: query +USAGE: useConnectedAccountQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + ownerId: string + service: string + identifier: string + details: unknown + isVerified: boolean + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateConnectedAccountMutation + +Create a new connectedAccount. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateConnectedAccountMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateConnectedAccountMutation + +Update an existing connectedAccount. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateConnectedAccountMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteConnectedAccountMutation + +Delete a connectedAccount. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteConnectedAccountMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: usePhoneNumbersQuery + +List all phoneNumbers. + +``` +TYPE: query +USAGE: usePhoneNumbersQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: usePhoneNumberQuery + +Get a single phoneNumber by id. + +``` +TYPE: query +USAGE: usePhoneNumberQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + ownerId: string + cc: string + number: string + isVerified: boolean + isPrimary: boolean + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreatePhoneNumberMutation + +Create a new phoneNumber. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreatePhoneNumberMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdatePhoneNumberMutation + +Update an existing phoneNumber. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdatePhoneNumberMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeletePhoneNumberMutation + +Delete a phoneNumber. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeletePhoneNumberMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppMembershipDefaultsQuery + +List all appMembershipDefaults. + +``` +TYPE: query +USAGE: useAppMembershipDefaultsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppMembershipDefaultQuery + +Get a single appMembershipDefault by id. + +``` +TYPE: query +USAGE: useAppMembershipDefaultQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + createdAt: string + updatedAt: string + createdBy: string + updatedBy: string + isApproved: boolean + isVerified: boolean +}> +``` + +### HOOK: useCreateAppMembershipDefaultMutation + +Create a new appMembershipDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppMembershipDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppMembershipDefaultMutation + +Update an existing appMembershipDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppMembershipDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppMembershipDefaultMutation + +Delete a appMembershipDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppMembershipDefaultMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useNodeTypeRegistriesQuery + +List all nodeTypeRegistries. + +``` +TYPE: query +USAGE: useNodeTypeRegistriesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useNodeTypeRegistryQuery + +Get a single nodeTypeRegistry by name. + +``` +TYPE: query +USAGE: useNodeTypeRegistryQuery({ name: '', selection: { fields: { ... } } }) + +INPUT: + name: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + name: string + slug: string + category: string + displayName: string + description: string + parameterSchema: unknown + tags: string[] + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateNodeTypeRegistryMutation + +Create a new nodeTypeRegistry. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateNodeTypeRegistryMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateNodeTypeRegistryMutation + +Update an existing nodeTypeRegistry. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateNodeTypeRegistryMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteNodeTypeRegistryMutation + +Delete a nodeTypeRegistry. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteNodeTypeRegistryMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useCommitsQuery + +List all commits. + +``` +TYPE: query +USAGE: useCommitsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useCommitQuery + +Get a single commit by id. + +``` +TYPE: query +USAGE: useCommitQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + message: string + databaseId: string + storeId: string + parentIds: string[] + authorId: string + committerId: string + treeId: string + date: string +}> +``` + +### HOOK: useCreateCommitMutation + +Create a new commit. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateCommitMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateCommitMutation + +Update an existing commit. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateCommitMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteCommitMutation + +Delete a commit. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteCommitMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOrgMembershipDefaultsQuery + +List all orgMembershipDefaults. + +``` +TYPE: query +USAGE: useOrgMembershipDefaultsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useOrgMembershipDefaultQuery + +Get a single orgMembershipDefault by id. + +``` +TYPE: query +USAGE: useOrgMembershipDefaultQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + createdAt: string + updatedAt: string + createdBy: string + updatedBy: string + isApproved: boolean + entityId: string + deleteMemberCascadeGroups: boolean + createGroupsCascadeMembers: boolean +}> +``` + +### HOOK: useCreateOrgMembershipDefaultMutation + +Create a new orgMembershipDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateOrgMembershipDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateOrgMembershipDefaultMutation + +Update an existing orgMembershipDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateOrgMembershipDefaultMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteOrgMembershipDefaultMutation + +Delete a orgMembershipDefault. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteOrgMembershipDefaultMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useEmailsQuery + +List all emails. + +``` +TYPE: query +USAGE: useEmailsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useEmailQuery + +Get a single email by id. + +``` +TYPE: query +USAGE: useEmailQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + ownerId: string + email: ConstructiveInternalTypeEmail + isVerified: boolean + isPrimary: boolean + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateEmailMutation + +Create a new email. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateEmailMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateEmailMutation + +Update an existing email. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateEmailMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteEmailMutation + +Delete a email. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteEmailMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAuditLogsQuery + +List all auditLogs. + +``` +TYPE: query +USAGE: useAuditLogsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAuditLogQuery + +Get a single auditLog by id. + +``` +TYPE: query +USAGE: useAuditLogQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + event: string + actorId: string + origin: ConstructiveInternalTypeOrigin + userAgent: string + ipAddress: string + success: boolean + createdAt: string +}> +``` + +### HOOK: useCreateAuditLogMutation + +Create a new auditLog. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAuditLogMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAuditLogMutation + +Update an existing auditLog. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAuditLogMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAuditLogMutation + +Delete a auditLog. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAuditLogMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppLevelsQuery + +List all appLevels. + +``` +TYPE: query +USAGE: useAppLevelsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppLevelQuery + +Get a single appLevel by id. + +``` +TYPE: query +USAGE: useAppLevelQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + name: string + description: string + image: ConstructiveInternalTypeImage + ownerId: string + createdAt: string + updatedAt: string +}> +``` + +### HOOK: useCreateAppLevelMutation + +Create a new appLevel. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppLevelMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppLevelMutation + +Update an existing appLevel. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppLevelMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppLevelMutation + +Delete a appLevel. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppLevelMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSqlMigrationsQuery + +List all sqlMigrations. + +``` +TYPE: query +USAGE: useSqlMigrationsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useSqlMigrationQuery + +Get a single sqlMigration by id. + +``` +TYPE: query +USAGE: useSqlMigrationQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: number (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateSqlMigrationMutation + +Create a new sqlMigration. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateSqlMigrationMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateSqlMigrationMutation + +Update an existing sqlMigration. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateSqlMigrationMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteSqlMigrationMutation + +Delete a sqlMigration. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteSqlMigrationMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAstMigrationsQuery + +List all astMigrations. + +``` +TYPE: query +USAGE: useAstMigrationsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAstMigrationQuery + +Get a single astMigration by id. + +``` +TYPE: query +USAGE: useAstMigrationQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: number (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateAstMigrationMutation + +Create a new astMigration. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAstMigrationMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAstMigrationMutation + +Update an existing astMigration. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAstMigrationMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAstMigrationMutation + +Delete a astMigration. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAstMigrationMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useAppMembershipsQuery + +List all appMemberships. + +``` +TYPE: query +USAGE: useAppMembershipsQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useAppMembershipQuery + +Get a single appMembership by id. + +``` +TYPE: query +USAGE: useAppMembershipQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateAppMembershipMutation + +Create a new appMembership. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateAppMembershipMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateAppMembershipMutation + +Update an existing appMembership. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateAppMembershipMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteAppMembershipMutation + +Delete a appMembership. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteAppMembershipMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUsersQuery + +List all users. + +``` +TYPE: query +USAGE: useUsersQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useUserQuery + +Get a single user by id. + +``` +TYPE: query +USAGE: useUserQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + id: string + username: string + displayName: string + profilePicture: ConstructiveInternalTypeImage + searchTsv: string + type: number + createdAt: string + updatedAt: string + searchTsvRank: number +}> +``` + +### HOOK: useCreateUserMutation + +Create a new user. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateUserMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateUserMutation + +Update an existing user. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateUserMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteUserMutation + +Delete a user. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteUserMutation({}) + +OUTPUT: UseMutationResult +``` + +### HOOK: useHierarchyModulesQuery + +List all hierarchyModules. + +``` +TYPE: query +USAGE: useHierarchyModulesQuery({ selection: { fields: { ... } } }) + +INPUT: + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult> +``` + +### HOOK: useHierarchyModuleQuery + +Get a single hierarchyModule by id. + +``` +TYPE: query +USAGE: useHierarchyModuleQuery({ id: '', selection: { fields: { ... } } }) + +INPUT: + id: string (required) + selection: { fields: Record } - Fields to select + +OUTPUT: UseQueryResult<{ + 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 +}> +``` + +### HOOK: useCreateHierarchyModuleMutation + +Create a new hierarchyModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useCreateHierarchyModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateHierarchyModuleMutation + +Update an existing hierarchyModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateHierarchyModuleMutation({ selection: { fields: { ... } } }) + +OUTPUT: UseMutationResult +``` + +### HOOK: useDeleteHierarchyModuleMutation + +Delete a hierarchyModule. + +``` +TYPE: mutation +USAGE: const { mutate } = useDeleteHierarchyModuleMutation({}) + +OUTPUT: UseMutationResult +``` + +## CUSTOM OPERATION HOOKS + +### HOOK: useCurrentUserIdQuery + +currentUserId + +``` +TYPE: query +USAGE: useCurrentUserIdQuery() + +INPUT: none + +OUTPUT: UseQueryResult +``` + +### HOOK: useCurrentIpAddressQuery + +currentIpAddress + +``` +TYPE: query +USAGE: useCurrentIpAddressQuery() + +INPUT: none + +OUTPUT: UseQueryResult +``` + +### HOOK: useCurrentUserAgentQuery + +currentUserAgent + +``` +TYPE: query +USAGE: useCurrentUserAgentQuery() + +INPUT: none + +OUTPUT: UseQueryResult +``` + +### HOOK: useAppPermissionsGetPaddedMaskQuery + +appPermissionsGetPaddedMask + +``` +TYPE: query +USAGE: useAppPermissionsGetPaddedMaskQuery({ mask: }) + +INPUT: + mask: BitString + +OUTPUT: UseQueryResult +``` + +### HOOK: useOrgPermissionsGetPaddedMaskQuery + +orgPermissionsGetPaddedMask + +``` +TYPE: query +USAGE: useOrgPermissionsGetPaddedMaskQuery({ mask: }) + +INPUT: + mask: BitString + +OUTPUT: UseQueryResult +``` + +### HOOK: useStepsAchievedQuery + +stepsAchieved + +``` +TYPE: query +USAGE: useStepsAchievedQuery({ vlevel: , vroleId: }) + +INPUT: + vlevel: String + vroleId: UUID + +OUTPUT: UseQueryResult +``` + +### HOOK: useRevParseQuery + +revParse + +``` +TYPE: query +USAGE: useRevParseQuery({ dbId: , storeId: , refname: }) + +INPUT: + dbId: UUID + storeId: UUID + refname: String + +OUTPUT: UseQueryResult +``` + +### HOOK: useAppPermissionsGetMaskQuery + +appPermissionsGetMask + +``` +TYPE: query +USAGE: useAppPermissionsGetMaskQuery({ ids: }) + +INPUT: + ids: [UUID] + +OUTPUT: UseQueryResult +``` + +### HOOK: useOrgPermissionsGetMaskQuery + +orgPermissionsGetMask + +``` +TYPE: query +USAGE: useOrgPermissionsGetMaskQuery({ ids: }) + +INPUT: + ids: [UUID] + +OUTPUT: UseQueryResult +``` + +### HOOK: useAppPermissionsGetMaskByNamesQuery + +appPermissionsGetMaskByNames + +``` +TYPE: query +USAGE: useAppPermissionsGetMaskByNamesQuery({ names: }) + +INPUT: + names: [String] + +OUTPUT: UseQueryResult +``` + +### HOOK: useOrgPermissionsGetMaskByNamesQuery + +orgPermissionsGetMaskByNames + +``` +TYPE: query +USAGE: useOrgPermissionsGetMaskByNamesQuery({ names: }) + +INPUT: + names: [String] + +OUTPUT: UseQueryResult +``` + +### HOOK: useAppPermissionsGetByMaskQuery + +Reads and enables pagination through a set of `AppPermission`. + +``` +TYPE: query +USAGE: useAppPermissionsGetByMaskQuery({ mask: , first: , offset: , after: }) + +INPUT: + mask: BitString + first: Int + offset: Int + after: Cursor + +OUTPUT: UseQueryResult +``` + +### HOOK: useOrgPermissionsGetByMaskQuery + +Reads and enables pagination through a set of `OrgPermission`. + +``` +TYPE: query +USAGE: useOrgPermissionsGetByMaskQuery({ mask: , first: , offset: , after: }) + +INPUT: + mask: BitString + first: Int + offset: Int + after: Cursor + +OUTPUT: UseQueryResult +``` + +### HOOK: useGetAllObjectsFromRootQuery + +Reads and enables pagination through a set of `Object`. + +``` +TYPE: query +USAGE: useGetAllObjectsFromRootQuery({ databaseId: , id: , first: , offset: , after: }) + +INPUT: + databaseId: UUID + id: UUID + first: Int + offset: Int + after: Cursor + +OUTPUT: UseQueryResult +``` + +### HOOK: useGetPathObjectsFromRootQuery + +Reads and enables pagination through a set of `Object`. + +``` +TYPE: query +USAGE: useGetPathObjectsFromRootQuery({ databaseId: , id: , path: , first: , offset: , after: }) + +INPUT: + databaseId: UUID + id: UUID + path: [String] + first: Int + offset: Int + after: Cursor + +OUTPUT: UseQueryResult +``` + +### HOOK: useGetObjectAtPathQuery + +getObjectAtPath + +``` +TYPE: query +USAGE: useGetObjectAtPathQuery({ dbId: , storeId: , path: , refname: }) + +INPUT: + dbId: UUID + storeId: UUID + path: [String] + refname: String + +OUTPUT: UseQueryResult +``` + +### HOOK: useStepsRequiredQuery + +Reads and enables pagination through a set of `AppLevelRequirement`. + +``` +TYPE: query +USAGE: useStepsRequiredQuery({ vlevel: , vroleId: , first: , offset: , after: }) + +INPUT: + vlevel: String + vroleId: UUID + first: Int + offset: Int + after: Cursor + +OUTPUT: UseQueryResult +``` + +### HOOK: useCurrentUserQuery + +currentUser + +``` +TYPE: query +USAGE: useCurrentUserQuery() + +INPUT: none + +OUTPUT: UseQueryResult +``` + +### HOOK: useSignOutMutation + +signOut + +``` +TYPE: mutation +USAGE: const { mutate } = useSignOutMutation() + mutate({ input: }) + +INPUT: + input: SignOutInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSendAccountDeletionEmailMutation + +sendAccountDeletionEmail + +``` +TYPE: mutation +USAGE: const { mutate } = useSendAccountDeletionEmailMutation() + mutate({ input: }) + +INPUT: + input: SendAccountDeletionEmailInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useCheckPasswordMutation + +checkPassword + +``` +TYPE: mutation +USAGE: const { mutate } = useCheckPasswordMutation() + mutate({ input: }) + +INPUT: + input: CheckPasswordInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSubmitInviteCodeMutation + +submitInviteCode + +``` +TYPE: mutation +USAGE: const { mutate } = useSubmitInviteCodeMutation() + mutate({ input: }) + +INPUT: + input: SubmitInviteCodeInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSubmitOrgInviteCodeMutation + +submitOrgInviteCode + +``` +TYPE: mutation +USAGE: const { mutate } = useSubmitOrgInviteCodeMutation() + mutate({ input: }) + +INPUT: + input: SubmitOrgInviteCodeInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useFreezeObjectsMutation + +freezeObjects + +``` +TYPE: mutation +USAGE: const { mutate } = useFreezeObjectsMutation() + mutate({ input: }) + +INPUT: + input: FreezeObjectsInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useInitEmptyRepoMutation + +initEmptyRepo + +``` +TYPE: mutation +USAGE: const { mutate } = useInitEmptyRepoMutation() + mutate({ input: }) + +INPUT: + input: InitEmptyRepoInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useConfirmDeleteAccountMutation + +confirmDeleteAccount + +``` +TYPE: mutation +USAGE: const { mutate } = useConfirmDeleteAccountMutation() + mutate({ input: }) + +INPUT: + input: ConfirmDeleteAccountInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSetPasswordMutation + +setPassword + +``` +TYPE: mutation +USAGE: const { mutate } = useSetPasswordMutation() + mutate({ input: }) + +INPUT: + input: SetPasswordInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useVerifyEmailMutation + +verifyEmail + +``` +TYPE: mutation +USAGE: const { mutate } = useVerifyEmailMutation() + mutate({ input: }) + +INPUT: + input: VerifyEmailInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useResetPasswordMutation + +resetPassword + +``` +TYPE: mutation +USAGE: const { mutate } = useResetPasswordMutation() + mutate({ input: }) + +INPUT: + input: ResetPasswordInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useRemoveNodeAtPathMutation + +removeNodeAtPath + +``` +TYPE: mutation +USAGE: const { mutate } = useRemoveNodeAtPathMutation() + mutate({ input: }) + +INPUT: + input: RemoveNodeAtPathInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useBootstrapUserMutation + +bootstrapUser + +``` +TYPE: mutation +USAGE: const { mutate } = useBootstrapUserMutation() + mutate({ input: }) + +INPUT: + input: BootstrapUserInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSetDataAtPathMutation + +setDataAtPath + +``` +TYPE: mutation +USAGE: const { mutate } = useSetDataAtPathMutation() + mutate({ input: }) + +INPUT: + input: SetDataAtPathInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSetPropsAndCommitMutation + +setPropsAndCommit + +``` +TYPE: mutation +USAGE: const { mutate } = useSetPropsAndCommitMutation() + mutate({ input: }) + +INPUT: + input: SetPropsAndCommitInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useProvisionDatabaseWithUserMutation + +provisionDatabaseWithUser + +``` +TYPE: mutation +USAGE: const { mutate } = useProvisionDatabaseWithUserMutation() + mutate({ input: }) + +INPUT: + input: ProvisionDatabaseWithUserInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSignInOneTimeTokenMutation + +signInOneTimeToken + +``` +TYPE: mutation +USAGE: const { mutate } = useSignInOneTimeTokenMutation() + mutate({ input: }) + +INPUT: + input: SignInOneTimeTokenInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: 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 +USAGE: const { mutate } = useCreateUserDatabaseMutation() + mutate({ input: }) + +INPUT: + input: CreateUserDatabaseInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useExtendTokenExpiresMutation + +extendTokenExpires + +``` +TYPE: mutation +USAGE: const { mutate } = useExtendTokenExpiresMutation() + mutate({ input: }) + +INPUT: + input: ExtendTokenExpiresInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSignInMutation + +signIn + +``` +TYPE: mutation +USAGE: const { mutate } = useSignInMutation() + mutate({ input: }) + +INPUT: + input: SignInInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSignUpMutation + +signUp + +``` +TYPE: mutation +USAGE: const { mutate } = useSignUpMutation() + mutate({ input: }) + +INPUT: + input: SignUpInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSetFieldOrderMutation + +setFieldOrder + +``` +TYPE: mutation +USAGE: const { mutate } = useSetFieldOrderMutation() + mutate({ input: }) + +INPUT: + input: SetFieldOrderInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useOneTimeTokenMutation + +oneTimeToken + +``` +TYPE: mutation +USAGE: const { mutate } = useOneTimeTokenMutation() + mutate({ input: }) + +INPUT: + input: OneTimeTokenInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useInsertNodeAtPathMutation + +insertNodeAtPath + +``` +TYPE: mutation +USAGE: const { mutate } = useInsertNodeAtPathMutation() + mutate({ input: }) + +INPUT: + input: InsertNodeAtPathInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useUpdateNodeAtPathMutation + +updateNodeAtPath + +``` +TYPE: mutation +USAGE: const { mutate } = useUpdateNodeAtPathMutation() + mutate({ input: }) + +INPUT: + input: UpdateNodeAtPathInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSetAndCommitMutation + +setAndCommit + +``` +TYPE: mutation +USAGE: const { mutate } = useSetAndCommitMutation() + mutate({ input: }) + +INPUT: + input: SetAndCommitInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useApplyRlsMutation + +applyRls + +``` +TYPE: mutation +USAGE: const { mutate } = useApplyRlsMutation() + mutate({ input: }) + +INPUT: + input: ApplyRlsInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useForgotPasswordMutation + +forgotPassword + +``` +TYPE: mutation +USAGE: const { mutate } = useForgotPasswordMutation() + mutate({ input: }) + +INPUT: + input: ForgotPasswordInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useSendVerificationEmailMutation + +sendVerificationEmail + +``` +TYPE: mutation +USAGE: const { mutate } = useSendVerificationEmailMutation() + mutate({ input: }) + +INPUT: + input: SendVerificationEmailInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useVerifyPasswordMutation + +verifyPassword + +``` +TYPE: mutation +USAGE: const { mutate } = useVerifyPasswordMutation() + mutate({ input: }) + +INPUT: + input: VerifyPasswordInput (required) + +OUTPUT: UseMutationResult +``` + +### HOOK: useVerifyTotpMutation + +verifyTotp + +``` +TYPE: mutation +USAGE: const { mutate } = useVerifyTotpMutation() + mutate({ input: }) + +INPUT: + input: VerifyTotpInput (required) + +OUTPUT: UseMutationResult +``` diff --git a/sdk/constructive-sdk/src/public/hooks/README.md b/sdk/constructive-sdk/src/public/hooks/README.md new file mode 100644 index 000000000..fbc58d9cf --- /dev/null +++ b/sdk/constructive-sdk/src/public/hooks/README.md @@ -0,0 +1,3242 @@ +# React Query Hooks + +

+ +

+ +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +## 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-sdk/src/public/hooks/client.ts b/sdk/constructive-sdk/src/public/hooks/client.ts new file mode 100644 index 000000000..47b9aa63f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/index.ts b/sdk/constructive-sdk/src/public/hooks/index.ts new file mode 100644 index 000000000..f27516673 --- /dev/null +++ b/sdk/constructive-sdk/src/public/hooks/index.ts @@ -0,0 +1,39 @@ +/** + * Auto-generated 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-sdk/src/public/hooks/invalidation.ts b/sdk/constructive-sdk/src/public/hooks/invalidation.ts new file mode 100644 index 000000000..28d9e7c0e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutation-keys.ts b/sdk/constructive-sdk/src/public/hooks/mutation-keys.ts new file mode 100644 index 000000000..1ec5b0f6d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/index.ts b/sdk/constructive-sdk/src/public/hooks/mutations/index.ts new file mode 100644 index 000000000..b5541e514 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useApplyRlsMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useApplyRlsMutation.ts new file mode 100644 index 000000000..615b86adb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useBootstrapUserMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useBootstrapUserMutation.ts new file mode 100644 index 000000000..cf749c6d4 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCheckPasswordMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCheckPasswordMutation.ts new file mode 100644 index 000000000..36b79e2fe --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useConfirmDeleteAccountMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useConfirmDeleteAccountMutation.ts new file mode 100644 index 000000000..2a430d07a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateApiModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateApiModuleMutation.ts new file mode 100644 index 000000000..a57c9d102 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateApiMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateApiMutation.ts new file mode 100644 index 000000000..2e5809137 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateApiSchemaMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateApiSchemaMutation.ts new file mode 100644 index 000000000..59aaaa033 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateAppAchievementMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppAchievementMutation.ts new file mode 100644 index 000000000..b39c550bf --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateAppAdminGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppAdminGrantMutation.ts new file mode 100644 index 000000000..7dd44401e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateAppGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppGrantMutation.ts new file mode 100644 index 000000000..0e2e4c286 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateAppLevelMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppLevelMutation.ts new file mode 100644 index 000000000..393ed2c2a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateAppLevelRequirementMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppLevelRequirementMutation.ts new file mode 100644 index 000000000..cde42cf7e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateAppLimitDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppLimitDefaultMutation.ts new file mode 100644 index 000000000..40b24b14d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateAppLimitMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppLimitMutation.ts new file mode 100644 index 000000000..b7f7072be --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateAppMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppMembershipDefaultMutation.ts new file mode 100644 index 000000000..0a4ecf4bc --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateAppMembershipMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppMembershipMutation.ts new file mode 100644 index 000000000..fa08b65df --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateAppMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppMutation.ts new file mode 100644 index 000000000..a43fe0b18 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateAppOwnerGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppOwnerGrantMutation.ts new file mode 100644 index 000000000..81f12be36 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateAppPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppPermissionDefaultMutation.ts new file mode 100644 index 000000000..1f2314266 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateAppPermissionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppPermissionMutation.ts new file mode 100644 index 000000000..73d4eceec --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateAppStepMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppStepMutation.ts new file mode 100644 index 000000000..479dc0a3a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateAstMigrationMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAstMigrationMutation.ts new file mode 100644 index 000000000..7f9caacb1 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateAuditLogMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAuditLogMutation.ts new file mode 100644 index 000000000..e05ac6080 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateCheckConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateCheckConstraintMutation.ts new file mode 100644 index 000000000..a20cc1e67 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateClaimedInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateClaimedInviteMutation.ts new file mode 100644 index 000000000..a84eca95c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateCommitMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateCommitMutation.ts new file mode 100644 index 000000000..7e803c25a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateConnectedAccountMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateConnectedAccountMutation.ts new file mode 100644 index 000000000..0e381461b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateConnectedAccountsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateConnectedAccountsModuleMutation.ts new file mode 100644 index 000000000..d87d4cfc0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateCryptoAddressMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateCryptoAddressMutation.ts new file mode 100644 index 000000000..cddfe450c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateCryptoAddressesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateCryptoAddressesModuleMutation.ts new file mode 100644 index 000000000..f1a5c8c81 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateCryptoAuthModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateCryptoAuthModuleMutation.ts new file mode 100644 index 000000000..064327266 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateDatabaseMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateDatabaseMutation.ts new file mode 100644 index 000000000..4ec18e908 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateDatabaseProvisionModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateDatabaseProvisionModuleMutation.ts new file mode 100644 index 000000000..7192fd95a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateDefaultIdsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateDefaultIdsModuleMutation.ts new file mode 100644 index 000000000..58a7c6112 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateDenormalizedTableFieldMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateDenormalizedTableFieldMutation.ts new file mode 100644 index 000000000..2d2d8334b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateDomainMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateDomainMutation.ts new file mode 100644 index 000000000..75ee25a3c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateEmailMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateEmailMutation.ts new file mode 100644 index 000000000..ff6741c90 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateEmailsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateEmailsModuleMutation.ts new file mode 100644 index 000000000..894488ce3 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateEncryptedSecretsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateEncryptedSecretsModuleMutation.ts new file mode 100644 index 000000000..c68fbc4d6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateFieldModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateFieldModuleMutation.ts new file mode 100644 index 000000000..e66b28b32 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateFieldMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateFieldMutation.ts new file mode 100644 index 000000000..a90bffd87 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateForeignKeyConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateForeignKeyConstraintMutation.ts new file mode 100644 index 000000000..e7007f9c8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateFullTextSearchMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateFullTextSearchMutation.ts new file mode 100644 index 000000000..ac28e0a6f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateGetAllRecordMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateGetAllRecordMutation.ts new file mode 100644 index 000000000..d7761690b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateHierarchyModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateHierarchyModuleMutation.ts new file mode 100644 index 000000000..0ddc11ad7 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateIndexMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateIndexMutation.ts new file mode 100644 index 000000000..d598e78bb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateInviteMutation.ts new file mode 100644 index 000000000..928d4f0cd --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateInvitesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateInvitesModuleMutation.ts new file mode 100644 index 000000000..6d740e5e3 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateLevelsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateLevelsModuleMutation.ts new file mode 100644 index 000000000..4f7a8d98f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateLimitFunctionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateLimitFunctionMutation.ts new file mode 100644 index 000000000..fe19f6107 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateLimitsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateLimitsModuleMutation.ts new file mode 100644 index 000000000..c7c2579d2 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateMembershipTypeMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateMembershipTypeMutation.ts new file mode 100644 index 000000000..d8219655f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateMembershipTypesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateMembershipTypesModuleMutation.ts new file mode 100644 index 000000000..f2455629c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateMembershipsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateMembershipsModuleMutation.ts new file mode 100644 index 000000000..4d9fe8861 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateNodeTypeRegistryMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateNodeTypeRegistryMutation.ts new file mode 100644 index 000000000..584e4c995 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateObjectMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateObjectMutation.ts new file mode 100644 index 000000000..c9d4c9828 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateOrgAdminGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgAdminGrantMutation.ts new file mode 100644 index 000000000..00687d7da --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateOrgClaimedInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgClaimedInviteMutation.ts new file mode 100644 index 000000000..4ee4b71c3 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateOrgGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgGrantMutation.ts new file mode 100644 index 000000000..391138997 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateOrgInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgInviteMutation.ts new file mode 100644 index 000000000..6d65fa995 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateOrgLimitDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgLimitDefaultMutation.ts new file mode 100644 index 000000000..af559e6a2 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateOrgLimitMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgLimitMutation.ts new file mode 100644 index 000000000..33ed2f69e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateOrgMemberMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgMemberMutation.ts new file mode 100644 index 000000000..73bbfce52 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts new file mode 100644 index 000000000..9c1290cfb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateOrgMembershipMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgMembershipMutation.ts new file mode 100644 index 000000000..e2b7c7e9b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateOrgOwnerGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgOwnerGrantMutation.ts new file mode 100644 index 000000000..9cec71f7f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts new file mode 100644 index 000000000..da1688a0f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateOrgPermissionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgPermissionMutation.ts new file mode 100644 index 000000000..b1fd9fd3b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreatePermissionsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreatePermissionsModuleMutation.ts new file mode 100644 index 000000000..38c0b3b9b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreatePhoneNumberMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreatePhoneNumberMutation.ts new file mode 100644 index 000000000..f0a8f239b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreatePhoneNumbersModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreatePhoneNumbersModuleMutation.ts new file mode 100644 index 000000000..7239a2649 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreatePolicyMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreatePolicyMutation.ts new file mode 100644 index 000000000..27702762d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreatePrimaryKeyConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreatePrimaryKeyConstraintMutation.ts new file mode 100644 index 000000000..87bdac408 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateProcedureMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateProcedureMutation.ts new file mode 100644 index 000000000..a681e7cff --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateProfilesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateProfilesModuleMutation.ts new file mode 100644 index 000000000..538d27637 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateRefMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateRefMutation.ts new file mode 100644 index 000000000..6f26a224e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateRlsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateRlsModuleMutation.ts new file mode 100644 index 000000000..741bf4139 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateRoleTypeMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateRoleTypeMutation.ts new file mode 100644 index 000000000..212be3f45 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateSchemaGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSchemaGrantMutation.ts new file mode 100644 index 000000000..80ebebb00 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateSchemaMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSchemaMutation.ts new file mode 100644 index 000000000..427b850ef --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateSecretsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSecretsModuleMutation.ts new file mode 100644 index 000000000..2ef21197d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateSessionsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSessionsModuleMutation.ts new file mode 100644 index 000000000..6fd5bda75 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateSiteMetadatumMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSiteMetadatumMutation.ts new file mode 100644 index 000000000..08190bb1f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateSiteModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSiteModuleMutation.ts new file mode 100644 index 000000000..89a52201a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateSiteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSiteMutation.ts new file mode 100644 index 000000000..771cd48a9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateSiteThemeMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSiteThemeMutation.ts new file mode 100644 index 000000000..a95aacd27 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateSqlMigrationMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSqlMigrationMutation.ts new file mode 100644 index 000000000..6484740a8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateStoreMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateStoreMutation.ts new file mode 100644 index 000000000..54c3b2ab9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateTableGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateTableGrantMutation.ts new file mode 100644 index 000000000..e111ab768 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateTableModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateTableModuleMutation.ts new file mode 100644 index 000000000..789b377de --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateTableMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateTableMutation.ts new file mode 100644 index 000000000..a14469fe1 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateTableTemplateModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateTableTemplateModuleMutation.ts new file mode 100644 index 000000000..af6255e35 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateTriggerFunctionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateTriggerFunctionMutation.ts new file mode 100644 index 000000000..f9e47f2be --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateTriggerMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateTriggerMutation.ts new file mode 100644 index 000000000..1a8e8a9f8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateUniqueConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateUniqueConstraintMutation.ts new file mode 100644 index 000000000..9dde059c6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateUserAuthModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateUserAuthModuleMutation.ts new file mode 100644 index 000000000..edc15ead9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateUserDatabaseMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateUserDatabaseMutation.ts new file mode 100644 index 000000000..3ac6d18c0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateUserMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateUserMutation.ts new file mode 100644 index 000000000..0d5bfff47 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateUsersModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateUsersModuleMutation.ts new file mode 100644 index 000000000..bc8efbc99 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateUuidModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateUuidModuleMutation.ts new file mode 100644 index 000000000..feb0e549c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateViewGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateViewGrantMutation.ts new file mode 100644 index 000000000..16b37b379 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateViewMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateViewMutation.ts new file mode 100644 index 000000000..91e59f1e5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateViewRuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateViewRuleMutation.ts new file mode 100644 index 000000000..c20e74707 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useCreateViewTableMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateViewTableMutation.ts new file mode 100644 index 000000000..e042b1331 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteApiModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteApiModuleMutation.ts new file mode 100644 index 000000000..0ba69d251 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteApiMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteApiMutation.ts new file mode 100644 index 000000000..96bf7f0e0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteApiSchemaMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteApiSchemaMutation.ts new file mode 100644 index 000000000..85bf06041 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteAppAchievementMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppAchievementMutation.ts new file mode 100644 index 000000000..73f3b0b52 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteAppAdminGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppAdminGrantMutation.ts new file mode 100644 index 000000000..83efe201c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteAppGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppGrantMutation.ts new file mode 100644 index 000000000..2dcc61484 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteAppLevelMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppLevelMutation.ts new file mode 100644 index 000000000..d7d002ddb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteAppLevelRequirementMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppLevelRequirementMutation.ts new file mode 100644 index 000000000..bcb3e249f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteAppLimitDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppLimitDefaultMutation.ts new file mode 100644 index 000000000..3d8cec160 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteAppLimitMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppLimitMutation.ts new file mode 100644 index 000000000..9b3ebc52e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts new file mode 100644 index 000000000..bd2d8e77b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteAppMembershipMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppMembershipMutation.ts new file mode 100644 index 000000000..270821ab2 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteAppMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppMutation.ts new file mode 100644 index 000000000..9ba2f036a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteAppOwnerGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppOwnerGrantMutation.ts new file mode 100644 index 000000000..037ca9d28 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts new file mode 100644 index 000000000..1c350f3fb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteAppPermissionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppPermissionMutation.ts new file mode 100644 index 000000000..327b4a107 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteAppStepMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppStepMutation.ts new file mode 100644 index 000000000..f9f36baf8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteAuditLogMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAuditLogMutation.ts new file mode 100644 index 000000000..694be08d8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteCheckConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCheckConstraintMutation.ts new file mode 100644 index 000000000..8f5aa7190 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteClaimedInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteClaimedInviteMutation.ts new file mode 100644 index 000000000..2c3709bd0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteCommitMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCommitMutation.ts new file mode 100644 index 000000000..435da8423 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteConnectedAccountMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteConnectedAccountMutation.ts new file mode 100644 index 000000000..29212bade --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteConnectedAccountsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteConnectedAccountsModuleMutation.ts new file mode 100644 index 000000000..8935b4ea0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteCryptoAddressMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCryptoAddressMutation.ts new file mode 100644 index 000000000..15d7507ac --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteCryptoAddressesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCryptoAddressesModuleMutation.ts new file mode 100644 index 000000000..b08e20b4f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteCryptoAuthModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCryptoAuthModuleMutation.ts new file mode 100644 index 000000000..2fc10c2fa --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteDatabaseMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDatabaseMutation.ts new file mode 100644 index 000000000..dbfb72c03 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteDatabaseProvisionModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDatabaseProvisionModuleMutation.ts new file mode 100644 index 000000000..a93386ca5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteDefaultIdsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDefaultIdsModuleMutation.ts new file mode 100644 index 000000000..4eb6f0c89 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteDenormalizedTableFieldMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDenormalizedTableFieldMutation.ts new file mode 100644 index 000000000..1f8dd4bd9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteDomainMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDomainMutation.ts new file mode 100644 index 000000000..34649edce --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteEmailMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteEmailMutation.ts new file mode 100644 index 000000000..55d906a64 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteEmailsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteEmailsModuleMutation.ts new file mode 100644 index 000000000..a8e0c47ca --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteEncryptedSecretsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteEncryptedSecretsModuleMutation.ts new file mode 100644 index 000000000..9177e8d37 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteFieldModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteFieldModuleMutation.ts new file mode 100644 index 000000000..815afa5dc --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteFieldMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteFieldMutation.ts new file mode 100644 index 000000000..96b9a2f6f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteForeignKeyConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteForeignKeyConstraintMutation.ts new file mode 100644 index 000000000..8c6df80cb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteFullTextSearchMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteFullTextSearchMutation.ts new file mode 100644 index 000000000..ee81e5eee --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteHierarchyModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteHierarchyModuleMutation.ts new file mode 100644 index 000000000..d798936eb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteIndexMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteIndexMutation.ts new file mode 100644 index 000000000..68af9ba2d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteInviteMutation.ts new file mode 100644 index 000000000..bf9850ba6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteInvitesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteInvitesModuleMutation.ts new file mode 100644 index 000000000..42fa1699e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteLevelsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteLevelsModuleMutation.ts new file mode 100644 index 000000000..7227e1f97 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteLimitFunctionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteLimitFunctionMutation.ts new file mode 100644 index 000000000..05debf225 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteLimitsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteLimitsModuleMutation.ts new file mode 100644 index 000000000..a2eddb73b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteMembershipTypeMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteMembershipTypeMutation.ts new file mode 100644 index 000000000..dbec0d9e9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteMembershipTypesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteMembershipTypesModuleMutation.ts new file mode 100644 index 000000000..0b9ba6ef3 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteMembershipsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteMembershipsModuleMutation.ts new file mode 100644 index 000000000..cbba5195b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts new file mode 100644 index 000000000..a7a6c2ece --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteObjectMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteObjectMutation.ts new file mode 100644 index 000000000..c1027ecd6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteOrgAdminGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgAdminGrantMutation.ts new file mode 100644 index 000000000..b2b62e271 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts new file mode 100644 index 000000000..267b1abfe --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteOrgGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgGrantMutation.ts new file mode 100644 index 000000000..94b80fa12 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteOrgInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgInviteMutation.ts new file mode 100644 index 000000000..2960aeac6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts new file mode 100644 index 000000000..a8e7bf162 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteOrgLimitMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgLimitMutation.ts new file mode 100644 index 000000000..818a3b294 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteOrgMemberMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgMemberMutation.ts new file mode 100644 index 000000000..9c7697147 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts new file mode 100644 index 000000000..e5c398c57 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteOrgMembershipMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgMembershipMutation.ts new file mode 100644 index 000000000..5108e73b9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts new file mode 100644 index 000000000..4700e63cd --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts new file mode 100644 index 000000000..841805104 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteOrgPermissionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgPermissionMutation.ts new file mode 100644 index 000000000..0792b5be9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeletePermissionsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeletePermissionsModuleMutation.ts new file mode 100644 index 000000000..bcd6060e2 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeletePhoneNumberMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeletePhoneNumberMutation.ts new file mode 100644 index 000000000..a76ed1b26 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeletePhoneNumbersModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeletePhoneNumbersModuleMutation.ts new file mode 100644 index 000000000..5234c3040 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeletePolicyMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeletePolicyMutation.ts new file mode 100644 index 000000000..40ccfefbf --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeletePrimaryKeyConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeletePrimaryKeyConstraintMutation.ts new file mode 100644 index 000000000..758c59ca7 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteProcedureMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteProcedureMutation.ts new file mode 100644 index 000000000..080000ba9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteProfilesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteProfilesModuleMutation.ts new file mode 100644 index 000000000..26b66b9b6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteRefMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteRefMutation.ts new file mode 100644 index 000000000..5059da529 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteRlsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteRlsModuleMutation.ts new file mode 100644 index 000000000..ffd1df1f8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteRoleTypeMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteRoleTypeMutation.ts new file mode 100644 index 000000000..34495fa52 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteSchemaGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSchemaGrantMutation.ts new file mode 100644 index 000000000..f7e5535f9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteSchemaMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSchemaMutation.ts new file mode 100644 index 000000000..bec1dd04a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteSecretsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSecretsModuleMutation.ts new file mode 100644 index 000000000..eb7743b92 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteSessionsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSessionsModuleMutation.ts new file mode 100644 index 000000000..225330732 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteSiteMetadatumMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSiteMetadatumMutation.ts new file mode 100644 index 000000000..0801a13e4 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteSiteModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSiteModuleMutation.ts new file mode 100644 index 000000000..da2029857 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteSiteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSiteMutation.ts new file mode 100644 index 000000000..619c413b6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteSiteThemeMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSiteThemeMutation.ts new file mode 100644 index 000000000..e09679eae --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteStoreMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteStoreMutation.ts new file mode 100644 index 000000000..d78ea3bb5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteTableGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTableGrantMutation.ts new file mode 100644 index 000000000..de24465b5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteTableModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTableModuleMutation.ts new file mode 100644 index 000000000..6ec2d2708 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteTableMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTableMutation.ts new file mode 100644 index 000000000..ab496db2f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteTableTemplateModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTableTemplateModuleMutation.ts new file mode 100644 index 000000000..d80fc2f60 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteTriggerFunctionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTriggerFunctionMutation.ts new file mode 100644 index 000000000..d36f5b47f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteTriggerMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTriggerMutation.ts new file mode 100644 index 000000000..8b7399942 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteUniqueConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUniqueConstraintMutation.ts new file mode 100644 index 000000000..583e889d8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteUserAuthModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUserAuthModuleMutation.ts new file mode 100644 index 000000000..d36ff1776 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteUserMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUserMutation.ts new file mode 100644 index 000000000..77880ad09 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteUsersModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUsersModuleMutation.ts new file mode 100644 index 000000000..163eb549a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteUuidModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUuidModuleMutation.ts new file mode 100644 index 000000000..0dc11108f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteViewGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteViewGrantMutation.ts new file mode 100644 index 000000000..7f16bee8e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteViewMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteViewMutation.ts new file mode 100644 index 000000000..4a51300ea --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteViewRuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteViewRuleMutation.ts new file mode 100644 index 000000000..b1f633bdf --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useDeleteViewTableMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteViewTableMutation.ts new file mode 100644 index 000000000..2c5d6fec7 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useExtendTokenExpiresMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useExtendTokenExpiresMutation.ts new file mode 100644 index 000000000..d5d081a1f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useForgotPasswordMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useForgotPasswordMutation.ts new file mode 100644 index 000000000..a30ced386 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useFreezeObjectsMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useFreezeObjectsMutation.ts new file mode 100644 index 000000000..334bdcf31 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useInitEmptyRepoMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useInitEmptyRepoMutation.ts new file mode 100644 index 000000000..f82dc9e02 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useInsertNodeAtPathMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useInsertNodeAtPathMutation.ts new file mode 100644 index 000000000..9da7a1bd5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useOneTimeTokenMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useOneTimeTokenMutation.ts new file mode 100644 index 000000000..0215b7d08 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useProvisionDatabaseWithUserMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useProvisionDatabaseWithUserMutation.ts new file mode 100644 index 000000000..10e5793db --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useRemoveNodeAtPathMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useRemoveNodeAtPathMutation.ts new file mode 100644 index 000000000..e44daf6bf --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useResetPasswordMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useResetPasswordMutation.ts new file mode 100644 index 000000000..383cb8fa3 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useSendAccountDeletionEmailMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSendAccountDeletionEmailMutation.ts new file mode 100644 index 000000000..55a179118 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useSendVerificationEmailMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSendVerificationEmailMutation.ts new file mode 100644 index 000000000..ea9ee0d76 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useSetAndCommitMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSetAndCommitMutation.ts new file mode 100644 index 000000000..efbed7692 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useSetDataAtPathMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSetDataAtPathMutation.ts new file mode 100644 index 000000000..63f39667a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useSetFieldOrderMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSetFieldOrderMutation.ts new file mode 100644 index 000000000..e24d213dd --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useSetPasswordMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSetPasswordMutation.ts new file mode 100644 index 000000000..af901aba1 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useSetPropsAndCommitMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSetPropsAndCommitMutation.ts new file mode 100644 index 000000000..49e6bbcd0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useSignInMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSignInMutation.ts new file mode 100644 index 000000000..ff20ed5c4 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useSignInOneTimeTokenMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSignInOneTimeTokenMutation.ts new file mode 100644 index 000000000..2485fe1a6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useSignOutMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSignOutMutation.ts new file mode 100644 index 000000000..fba4da1f5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useSignUpMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSignUpMutation.ts new file mode 100644 index 000000000..8dc94a896 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useSubmitInviteCodeMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSubmitInviteCodeMutation.ts new file mode 100644 index 000000000..f98317bc5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useSubmitOrgInviteCodeMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSubmitOrgInviteCodeMutation.ts new file mode 100644 index 000000000..a2e71103b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateApiModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateApiModuleMutation.ts new file mode 100644 index 000000000..0cbf3cb8e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateApiMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateApiMutation.ts new file mode 100644 index 000000000..27a304c25 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateApiSchemaMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateApiSchemaMutation.ts new file mode 100644 index 000000000..47185a7c0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateAppAchievementMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppAchievementMutation.ts new file mode 100644 index 000000000..799b7770f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateAppAdminGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppAdminGrantMutation.ts new file mode 100644 index 000000000..9f97a4a26 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateAppGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppGrantMutation.ts new file mode 100644 index 000000000..fe323065c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateAppLevelMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppLevelMutation.ts new file mode 100644 index 000000000..309666ec5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateAppLevelRequirementMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppLevelRequirementMutation.ts new file mode 100644 index 000000000..418f3464a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateAppLimitDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppLimitDefaultMutation.ts new file mode 100644 index 000000000..e4bf58682 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateAppLimitMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppLimitMutation.ts new file mode 100644 index 000000000..673e80850 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts new file mode 100644 index 000000000..c2d03af41 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateAppMembershipMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppMembershipMutation.ts new file mode 100644 index 000000000..21a8572d7 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateAppMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppMutation.ts new file mode 100644 index 000000000..63d62de1f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateAppOwnerGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppOwnerGrantMutation.ts new file mode 100644 index 000000000..ec1d11eb5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts new file mode 100644 index 000000000..9413e7ad3 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateAppPermissionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppPermissionMutation.ts new file mode 100644 index 000000000..73effb82a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateAppStepMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppStepMutation.ts new file mode 100644 index 000000000..2cfe95818 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateAuditLogMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAuditLogMutation.ts new file mode 100644 index 000000000..c1f3aba69 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateCheckConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCheckConstraintMutation.ts new file mode 100644 index 000000000..9088de037 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateClaimedInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateClaimedInviteMutation.ts new file mode 100644 index 000000000..45ccdc49a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateCommitMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCommitMutation.ts new file mode 100644 index 000000000..d03e177ec --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateConnectedAccountMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateConnectedAccountMutation.ts new file mode 100644 index 000000000..826dce155 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateConnectedAccountsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateConnectedAccountsModuleMutation.ts new file mode 100644 index 000000000..91acecbb4 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateCryptoAddressMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCryptoAddressMutation.ts new file mode 100644 index 000000000..f1987ec6e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateCryptoAddressesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCryptoAddressesModuleMutation.ts new file mode 100644 index 000000000..192f5cf50 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateCryptoAuthModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCryptoAuthModuleMutation.ts new file mode 100644 index 000000000..bc53c2a60 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateDatabaseMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDatabaseMutation.ts new file mode 100644 index 000000000..0f77a91ba --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateDatabaseProvisionModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDatabaseProvisionModuleMutation.ts new file mode 100644 index 000000000..c844f5426 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateDefaultIdsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDefaultIdsModuleMutation.ts new file mode 100644 index 000000000..26bd6ff0e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateDenormalizedTableFieldMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDenormalizedTableFieldMutation.ts new file mode 100644 index 000000000..61e4a7bd8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateDomainMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDomainMutation.ts new file mode 100644 index 000000000..d2cc9d031 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateEmailMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateEmailMutation.ts new file mode 100644 index 000000000..89c8a59da --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateEmailsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateEmailsModuleMutation.ts new file mode 100644 index 000000000..bb2f31170 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateEncryptedSecretsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateEncryptedSecretsModuleMutation.ts new file mode 100644 index 000000000..9c6476ff2 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateFieldModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateFieldModuleMutation.ts new file mode 100644 index 000000000..737225d95 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateFieldMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateFieldMutation.ts new file mode 100644 index 000000000..33e20ed97 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateForeignKeyConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateForeignKeyConstraintMutation.ts new file mode 100644 index 000000000..b918c3e4d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateFullTextSearchMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateFullTextSearchMutation.ts new file mode 100644 index 000000000..b0e14575f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateHierarchyModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateHierarchyModuleMutation.ts new file mode 100644 index 000000000..86c709e4c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateIndexMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateIndexMutation.ts new file mode 100644 index 000000000..75faed6de --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateInviteMutation.ts new file mode 100644 index 000000000..819636de6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateInvitesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateInvitesModuleMutation.ts new file mode 100644 index 000000000..93ac28817 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateLevelsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateLevelsModuleMutation.ts new file mode 100644 index 000000000..11fc05b15 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateLimitFunctionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateLimitFunctionMutation.ts new file mode 100644 index 000000000..ca0f69bbb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateLimitsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateLimitsModuleMutation.ts new file mode 100644 index 000000000..99d8a8681 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateMembershipTypeMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateMembershipTypeMutation.ts new file mode 100644 index 000000000..caee90ff0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateMembershipTypesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateMembershipTypesModuleMutation.ts new file mode 100644 index 000000000..57c080be1 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateMembershipsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateMembershipsModuleMutation.ts new file mode 100644 index 000000000..5571846e8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateNodeAtPathMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateNodeAtPathMutation.ts new file mode 100644 index 000000000..79e3ebe21 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts new file mode 100644 index 000000000..86d619ebb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateObjectMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateObjectMutation.ts new file mode 100644 index 000000000..3c60807de --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateOrgAdminGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgAdminGrantMutation.ts new file mode 100644 index 000000000..41f8e6380 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts new file mode 100644 index 000000000..8b2a21d55 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateOrgGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgGrantMutation.ts new file mode 100644 index 000000000..fc612cf93 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateOrgInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgInviteMutation.ts new file mode 100644 index 000000000..5093adbfc --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts new file mode 100644 index 000000000..9226eadb8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateOrgLimitMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgLimitMutation.ts new file mode 100644 index 000000000..cd8f3baed --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateOrgMemberMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgMemberMutation.ts new file mode 100644 index 000000000..42f54bfc7 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts new file mode 100644 index 000000000..06b97181c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateOrgMembershipMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgMembershipMutation.ts new file mode 100644 index 000000000..5a8998fb2 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts new file mode 100644 index 000000000..f1704e8be --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts new file mode 100644 index 000000000..b512499d2 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateOrgPermissionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgPermissionMutation.ts new file mode 100644 index 000000000..69be765f0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdatePermissionsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePermissionsModuleMutation.ts new file mode 100644 index 000000000..de206e8b7 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdatePhoneNumberMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePhoneNumberMutation.ts new file mode 100644 index 000000000..e78b8e139 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdatePhoneNumbersModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePhoneNumbersModuleMutation.ts new file mode 100644 index 000000000..c1250ba4f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdatePolicyMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePolicyMutation.ts new file mode 100644 index 000000000..0c975e2a2 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdatePrimaryKeyConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePrimaryKeyConstraintMutation.ts new file mode 100644 index 000000000..82f94721f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateProcedureMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateProcedureMutation.ts new file mode 100644 index 000000000..7a4654e0e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateProfilesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateProfilesModuleMutation.ts new file mode 100644 index 000000000..dfe82354f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateRefMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateRefMutation.ts new file mode 100644 index 000000000..e9b413324 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateRlsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateRlsModuleMutation.ts new file mode 100644 index 000000000..27ec3409c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateRoleTypeMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateRoleTypeMutation.ts new file mode 100644 index 000000000..b25b4efcb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateSchemaGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSchemaGrantMutation.ts new file mode 100644 index 000000000..a09245137 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateSchemaMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSchemaMutation.ts new file mode 100644 index 000000000..e9567a51c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateSecretsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSecretsModuleMutation.ts new file mode 100644 index 000000000..be288cb5a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateSessionsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSessionsModuleMutation.ts new file mode 100644 index 000000000..d5aebc9f1 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateSiteMetadatumMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSiteMetadatumMutation.ts new file mode 100644 index 000000000..ff095193b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateSiteModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSiteModuleMutation.ts new file mode 100644 index 000000000..bad5e2c14 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateSiteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSiteMutation.ts new file mode 100644 index 000000000..e0f36e311 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateSiteThemeMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSiteThemeMutation.ts new file mode 100644 index 000000000..9f98fc641 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateStoreMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateStoreMutation.ts new file mode 100644 index 000000000..8ddedfd0a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateTableGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTableGrantMutation.ts new file mode 100644 index 000000000..c88b15da6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateTableModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTableModuleMutation.ts new file mode 100644 index 000000000..cdce5fcf2 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateTableMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTableMutation.ts new file mode 100644 index 000000000..8c4039175 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateTableTemplateModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTableTemplateModuleMutation.ts new file mode 100644 index 000000000..8d4b9f9b6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateTriggerFunctionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTriggerFunctionMutation.ts new file mode 100644 index 000000000..8f7beae21 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateTriggerMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTriggerMutation.ts new file mode 100644 index 000000000..94b2f3677 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateUniqueConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUniqueConstraintMutation.ts new file mode 100644 index 000000000..76e118568 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateUserAuthModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUserAuthModuleMutation.ts new file mode 100644 index 000000000..c07887316 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateUserMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUserMutation.ts new file mode 100644 index 000000000..d1ab02501 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateUsersModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUsersModuleMutation.ts new file mode 100644 index 000000000..b3ce4f6bd --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateUuidModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUuidModuleMutation.ts new file mode 100644 index 000000000..d567d4730 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateViewGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateViewGrantMutation.ts new file mode 100644 index 000000000..a8db2ef12 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateViewMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateViewMutation.ts new file mode 100644 index 000000000..2d396a059 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateViewRuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateViewRuleMutation.ts new file mode 100644 index 000000000..6af2f784c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useUpdateViewTableMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateViewTableMutation.ts new file mode 100644 index 000000000..4dd3f2649 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useVerifyEmailMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useVerifyEmailMutation.ts new file mode 100644 index 000000000..6103a9bc1 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useVerifyPasswordMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useVerifyPasswordMutation.ts new file mode 100644 index 000000000..0cd31b8f3 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/mutations/useVerifyTotpMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useVerifyTotpMutation.ts new file mode 100644 index 000000000..418d599a7 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/index.ts b/sdk/constructive-sdk/src/public/hooks/queries/index.ts new file mode 100644 index 000000000..dc028e7a2 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useApiModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useApiModuleQuery.ts new file mode 100644 index 000000000..feea7a029 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useApiModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useApiModulesQuery.ts new file mode 100644 index 000000000..29071cbfb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useApiQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useApiQuery.ts new file mode 100644 index 000000000..090b98750 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useApiSchemaQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useApiSchemaQuery.ts new file mode 100644 index 000000000..451fb0299 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useApiSchemasQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useApiSchemasQuery.ts new file mode 100644 index 000000000..56efdb59a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useApisQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useApisQuery.ts new file mode 100644 index 000000000..b3fa3b5bd --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppAchievementQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppAchievementQuery.ts new file mode 100644 index 000000000..136d30313 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppAchievementsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppAchievementsQuery.ts new file mode 100644 index 000000000..fb905cd4e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppAdminGrantQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppAdminGrantQuery.ts new file mode 100644 index 000000000..d010f7876 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppAdminGrantsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppAdminGrantsQuery.ts new file mode 100644 index 000000000..eb47436de --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppGrantQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppGrantQuery.ts new file mode 100644 index 000000000..a730510c7 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppGrantsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppGrantsQuery.ts new file mode 100644 index 000000000..cf20fe3c6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppLevelQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppLevelQuery.ts new file mode 100644 index 000000000..0c550dd44 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppLevelRequirementQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppLevelRequirementQuery.ts new file mode 100644 index 000000000..03271277e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppLevelRequirementsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppLevelRequirementsQuery.ts new file mode 100644 index 000000000..f085058b5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppLevelsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppLevelsQuery.ts new file mode 100644 index 000000000..39c9b44bc --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppLimitDefaultQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppLimitDefaultQuery.ts new file mode 100644 index 000000000..c68c8c7ca --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppLimitDefaultsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppLimitDefaultsQuery.ts new file mode 100644 index 000000000..8f702ecb1 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppLimitQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppLimitQuery.ts new file mode 100644 index 000000000..eb7beb27f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppLimitsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppLimitsQuery.ts new file mode 100644 index 000000000..280fd25e8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppMembershipDefaultQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppMembershipDefaultQuery.ts new file mode 100644 index 000000000..b34f50fc2 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppMembershipDefaultsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppMembershipDefaultsQuery.ts new file mode 100644 index 000000000..bda74e8ba --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppMembershipQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppMembershipQuery.ts new file mode 100644 index 000000000..5cd832890 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppMembershipsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppMembershipsQuery.ts new file mode 100644 index 000000000..714e4372b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppOwnerGrantQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppOwnerGrantQuery.ts new file mode 100644 index 000000000..49fcb6506 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppOwnerGrantsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppOwnerGrantsQuery.ts new file mode 100644 index 000000000..25a312bcc --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppPermissionDefaultQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionDefaultQuery.ts new file mode 100644 index 000000000..47eb66e64 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppPermissionDefaultsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionDefaultsQuery.ts new file mode 100644 index 000000000..21414a9fb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppPermissionQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionQuery.ts new file mode 100644 index 000000000..37a00c5e9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppPermissionsGetByMaskQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsGetByMaskQuery.ts new file mode 100644 index 000000000..78774ab69 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts new file mode 100644 index 000000000..cbfe1fad8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppPermissionsGetMaskQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsGetMaskQuery.ts new file mode 100644 index 000000000..b1e3289da --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts new file mode 100644 index 000000000..cb504f810 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppPermissionsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsQuery.ts new file mode 100644 index 000000000..f44f4e105 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppQuery.ts new file mode 100644 index 000000000..517440db4 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppStepQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppStepQuery.ts new file mode 100644 index 000000000..7ccfc9884 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppStepsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppStepsQuery.ts new file mode 100644 index 000000000..b6f7d90d8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAppsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppsQuery.ts new file mode 100644 index 000000000..34c802258 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAstMigrationQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAstMigrationQuery.ts new file mode 100644 index 000000000..7360593a5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAstMigrationsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAstMigrationsQuery.ts new file mode 100644 index 000000000..d2f381296 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAuditLogQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAuditLogQuery.ts new file mode 100644 index 000000000..99af2d7fe --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useAuditLogsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAuditLogsQuery.ts new file mode 100644 index 000000000..2fd0f9384 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useCheckConstraintQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCheckConstraintQuery.ts new file mode 100644 index 000000000..daedfa56d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useCheckConstraintsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCheckConstraintsQuery.ts new file mode 100644 index 000000000..8a3d4277b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useClaimedInviteQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useClaimedInviteQuery.ts new file mode 100644 index 000000000..e74f389c7 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useClaimedInvitesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useClaimedInvitesQuery.ts new file mode 100644 index 000000000..9373984d9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useCommitQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCommitQuery.ts new file mode 100644 index 000000000..99bfe6e3c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useCommitsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCommitsQuery.ts new file mode 100644 index 000000000..1ec69f698 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useConnectedAccountQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useConnectedAccountQuery.ts new file mode 100644 index 000000000..21a88edf9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useConnectedAccountsModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useConnectedAccountsModuleQuery.ts new file mode 100644 index 000000000..da1221e42 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useConnectedAccountsModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useConnectedAccountsModulesQuery.ts new file mode 100644 index 000000000..61289bfb3 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useConnectedAccountsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useConnectedAccountsQuery.ts new file mode 100644 index 000000000..326e1b80c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useCryptoAddressQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCryptoAddressQuery.ts new file mode 100644 index 000000000..cc9c73a90 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useCryptoAddressesModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCryptoAddressesModuleQuery.ts new file mode 100644 index 000000000..941500402 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useCryptoAddressesModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCryptoAddressesModulesQuery.ts new file mode 100644 index 000000000..7ecdd864e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useCryptoAddressesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCryptoAddressesQuery.ts new file mode 100644 index 000000000..33cafeede --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useCryptoAuthModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCryptoAuthModuleQuery.ts new file mode 100644 index 000000000..48e2b561b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useCryptoAuthModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCryptoAuthModulesQuery.ts new file mode 100644 index 000000000..72f8f5da8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useCurrentIpAddressQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCurrentIpAddressQuery.ts new file mode 100644 index 000000000..525306e3b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useCurrentUserAgentQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCurrentUserAgentQuery.ts new file mode 100644 index 000000000..5a9c544d9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useCurrentUserIdQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCurrentUserIdQuery.ts new file mode 100644 index 000000000..5f65326cc --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useCurrentUserQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCurrentUserQuery.ts new file mode 100644 index 000000000..0bc463f03 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useDatabaseProvisionModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useDatabaseProvisionModuleQuery.ts new file mode 100644 index 000000000..0899cb9b3 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useDatabaseProvisionModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useDatabaseProvisionModulesQuery.ts new file mode 100644 index 000000000..7c1c21c87 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useDatabaseQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useDatabaseQuery.ts new file mode 100644 index 000000000..79fc769b6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useDatabasesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useDatabasesQuery.ts new file mode 100644 index 000000000..c45a9af99 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useDefaultIdsModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useDefaultIdsModuleQuery.ts new file mode 100644 index 000000000..ef5f72f46 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useDefaultIdsModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useDefaultIdsModulesQuery.ts new file mode 100644 index 000000000..f6c5a2598 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useDenormalizedTableFieldQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useDenormalizedTableFieldQuery.ts new file mode 100644 index 000000000..e5603b4cc --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useDenormalizedTableFieldsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useDenormalizedTableFieldsQuery.ts new file mode 100644 index 000000000..d83bc9487 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useDomainQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useDomainQuery.ts new file mode 100644 index 000000000..ca7e69348 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useDomainsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useDomainsQuery.ts new file mode 100644 index 000000000..02804c8fb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useEmailQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useEmailQuery.ts new file mode 100644 index 000000000..d954e6328 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useEmailsModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useEmailsModuleQuery.ts new file mode 100644 index 000000000..8a20f5371 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useEmailsModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useEmailsModulesQuery.ts new file mode 100644 index 000000000..d14bbb8d6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useEmailsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useEmailsQuery.ts new file mode 100644 index 000000000..1dca30b06 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useEncryptedSecretsModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useEncryptedSecretsModuleQuery.ts new file mode 100644 index 000000000..82f923374 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useEncryptedSecretsModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useEncryptedSecretsModulesQuery.ts new file mode 100644 index 000000000..c1f7bab93 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useFieldModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useFieldModuleQuery.ts new file mode 100644 index 000000000..ed460cca9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useFieldModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useFieldModulesQuery.ts new file mode 100644 index 000000000..161146945 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useFieldQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useFieldQuery.ts new file mode 100644 index 000000000..3227d14eb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useFieldsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useFieldsQuery.ts new file mode 100644 index 000000000..045808747 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useForeignKeyConstraintQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useForeignKeyConstraintQuery.ts new file mode 100644 index 000000000..54dc67c50 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useForeignKeyConstraintsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useForeignKeyConstraintsQuery.ts new file mode 100644 index 000000000..65b22f054 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useFullTextSearchQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useFullTextSearchQuery.ts new file mode 100644 index 000000000..2f1b7d54d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useFullTextSearchesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useFullTextSearchesQuery.ts new file mode 100644 index 000000000..8c0d5db25 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useGetAllObjectsFromRootQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useGetAllObjectsFromRootQuery.ts new file mode 100644 index 000000000..250ee6c18 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useGetAllQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useGetAllQuery.ts new file mode 100644 index 000000000..fa74ed4aa --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useGetObjectAtPathQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useGetObjectAtPathQuery.ts new file mode 100644 index 000000000..f36831e83 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useGetPathObjectsFromRootQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useGetPathObjectsFromRootQuery.ts new file mode 100644 index 000000000..32bb021f8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useHierarchyModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useHierarchyModuleQuery.ts new file mode 100644 index 000000000..f391086c7 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useHierarchyModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useHierarchyModulesQuery.ts new file mode 100644 index 000000000..48939bd78 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useIndexQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useIndexQuery.ts new file mode 100644 index 000000000..c0bc193ca --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useIndicesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useIndicesQuery.ts new file mode 100644 index 000000000..342fc8d52 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useInviteQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useInviteQuery.ts new file mode 100644 index 000000000..51db01afb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useInvitesModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useInvitesModuleQuery.ts new file mode 100644 index 000000000..8fac4ad30 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useInvitesModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useInvitesModulesQuery.ts new file mode 100644 index 000000000..ea3a6077f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useInvitesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useInvitesQuery.ts new file mode 100644 index 000000000..19a1fd3b1 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useLevelsModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useLevelsModuleQuery.ts new file mode 100644 index 000000000..8088cff8f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useLevelsModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useLevelsModulesQuery.ts new file mode 100644 index 000000000..7b55ec26b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useLimitFunctionQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useLimitFunctionQuery.ts new file mode 100644 index 000000000..6d7bed87d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useLimitFunctionsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useLimitFunctionsQuery.ts new file mode 100644 index 000000000..a6b16f109 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useLimitsModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useLimitsModuleQuery.ts new file mode 100644 index 000000000..e11b2489e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useLimitsModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useLimitsModulesQuery.ts new file mode 100644 index 000000000..fa325da6f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useMembershipTypeQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useMembershipTypeQuery.ts new file mode 100644 index 000000000..c8d749048 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useMembershipTypesModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useMembershipTypesModuleQuery.ts new file mode 100644 index 000000000..239bb6ee9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useMembershipTypesModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useMembershipTypesModulesQuery.ts new file mode 100644 index 000000000..ed17a6b5d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useMembershipTypesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useMembershipTypesQuery.ts new file mode 100644 index 000000000..c0f5b68c9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useMembershipsModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useMembershipsModuleQuery.ts new file mode 100644 index 000000000..dec53546c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useMembershipsModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useMembershipsModulesQuery.ts new file mode 100644 index 000000000..13e9830a5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useNodeTypeRegistriesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useNodeTypeRegistriesQuery.ts new file mode 100644 index 000000000..1a6d70d89 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useNodeTypeRegistryQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useNodeTypeRegistryQuery.ts new file mode 100644 index 000000000..ed4f7659b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useObjectQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useObjectQuery.ts new file mode 100644 index 000000000..a846ce36d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useObjectsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useObjectsQuery.ts new file mode 100644 index 000000000..963b611ad --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgAdminGrantQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgAdminGrantQuery.ts new file mode 100644 index 000000000..a4f507c14 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgAdminGrantsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgAdminGrantsQuery.ts new file mode 100644 index 000000000..e3ce559b3 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgClaimedInviteQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgClaimedInviteQuery.ts new file mode 100644 index 000000000..42ac5f45a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgClaimedInvitesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgClaimedInvitesQuery.ts new file mode 100644 index 000000000..965828b20 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgGrantQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgGrantQuery.ts new file mode 100644 index 000000000..14ccf29ec --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgGrantsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgGrantsQuery.ts new file mode 100644 index 000000000..8f1ddc2ab --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgInviteQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgInviteQuery.ts new file mode 100644 index 000000000..d6c2f623f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgInvitesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgInvitesQuery.ts new file mode 100644 index 000000000..baaef3936 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgLimitDefaultQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgLimitDefaultQuery.ts new file mode 100644 index 000000000..695d1eff9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgLimitDefaultsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgLimitDefaultsQuery.ts new file mode 100644 index 000000000..fae82e41b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgLimitQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgLimitQuery.ts new file mode 100644 index 000000000..db061397b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgLimitsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgLimitsQuery.ts new file mode 100644 index 000000000..032866dfb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgMemberQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgMemberQuery.ts new file mode 100644 index 000000000..aa4257559 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgMembersQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgMembersQuery.ts new file mode 100644 index 000000000..651d52afb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgMembershipDefaultQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgMembershipDefaultQuery.ts new file mode 100644 index 000000000..47264e0a5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgMembershipDefaultsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgMembershipDefaultsQuery.ts new file mode 100644 index 000000000..8cb20caae --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgMembershipQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgMembershipQuery.ts new file mode 100644 index 000000000..ec1c49d75 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgMembershipsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgMembershipsQuery.ts new file mode 100644 index 000000000..cde182a7b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgOwnerGrantQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgOwnerGrantQuery.ts new file mode 100644 index 000000000..9a0b0c9df --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgOwnerGrantsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgOwnerGrantsQuery.ts new file mode 100644 index 000000000..315d1cc57 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgPermissionDefaultQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionDefaultQuery.ts new file mode 100644 index 000000000..3f324b798 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgPermissionDefaultsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionDefaultsQuery.ts new file mode 100644 index 000000000..021e73f1c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgPermissionQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionQuery.ts new file mode 100644 index 000000000..3d28f9542 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgPermissionsGetByMaskQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsGetByMaskQuery.ts new file mode 100644 index 000000000..7410e3b04 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts new file mode 100644 index 000000000..99199bcee --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgPermissionsGetMaskQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsGetMaskQuery.ts new file mode 100644 index 000000000..dad45181b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts new file mode 100644 index 000000000..4b4f80e72 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useOrgPermissionsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsQuery.ts new file mode 100644 index 000000000..3e48264a6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/usePermissionsModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/usePermissionsModuleQuery.ts new file mode 100644 index 000000000..736736bbe --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/usePermissionsModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/usePermissionsModulesQuery.ts new file mode 100644 index 000000000..ccfc68c12 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/usePhoneNumberQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/usePhoneNumberQuery.ts new file mode 100644 index 000000000..7c7f6a47d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/usePhoneNumbersModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/usePhoneNumbersModuleQuery.ts new file mode 100644 index 000000000..e92d5458d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/usePhoneNumbersModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/usePhoneNumbersModulesQuery.ts new file mode 100644 index 000000000..76977ab6b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/usePhoneNumbersQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/usePhoneNumbersQuery.ts new file mode 100644 index 000000000..3282244e1 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/usePoliciesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/usePoliciesQuery.ts new file mode 100644 index 000000000..1fb836810 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/usePolicyQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/usePolicyQuery.ts new file mode 100644 index 000000000..b2639d62f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/usePrimaryKeyConstraintQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/usePrimaryKeyConstraintQuery.ts new file mode 100644 index 000000000..5176f8f9f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/usePrimaryKeyConstraintsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/usePrimaryKeyConstraintsQuery.ts new file mode 100644 index 000000000..6691abe29 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useProcedureQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useProcedureQuery.ts new file mode 100644 index 000000000..17afb7969 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useProceduresQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useProceduresQuery.ts new file mode 100644 index 000000000..fbf5a1659 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useProfilesModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useProfilesModuleQuery.ts new file mode 100644 index 000000000..1a19cd9f5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useProfilesModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useProfilesModulesQuery.ts new file mode 100644 index 000000000..2d008ec0c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useRefQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useRefQuery.ts new file mode 100644 index 000000000..b07bd3470 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useRefsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useRefsQuery.ts new file mode 100644 index 000000000..fbe141158 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useRevParseQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useRevParseQuery.ts new file mode 100644 index 000000000..d8b6226fb --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useRlsModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useRlsModuleQuery.ts new file mode 100644 index 000000000..de4ac49a2 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useRlsModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useRlsModulesQuery.ts new file mode 100644 index 000000000..7fb53b5bd --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useRoleTypeQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useRoleTypeQuery.ts new file mode 100644 index 000000000..6320e76b4 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useRoleTypesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useRoleTypesQuery.ts new file mode 100644 index 000000000..9819ceed5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useSchemaGrantQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSchemaGrantQuery.ts new file mode 100644 index 000000000..864c914a5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useSchemaGrantsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSchemaGrantsQuery.ts new file mode 100644 index 000000000..2f90e0bc5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useSchemaQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSchemaQuery.ts new file mode 100644 index 000000000..d49b168e0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useSchemasQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSchemasQuery.ts new file mode 100644 index 000000000..cdb879719 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useSecretsModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSecretsModuleQuery.ts new file mode 100644 index 000000000..7c5e20f5e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useSecretsModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSecretsModulesQuery.ts new file mode 100644 index 000000000..3cc607fb7 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useSessionsModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSessionsModuleQuery.ts new file mode 100644 index 000000000..db794bac8 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useSessionsModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSessionsModulesQuery.ts new file mode 100644 index 000000000..ec1ee6c40 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useSiteMetadataQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSiteMetadataQuery.ts new file mode 100644 index 000000000..7912d0be4 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useSiteMetadatumQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSiteMetadatumQuery.ts new file mode 100644 index 000000000..979351686 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useSiteModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSiteModuleQuery.ts new file mode 100644 index 000000000..5d0a71507 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useSiteModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSiteModulesQuery.ts new file mode 100644 index 000000000..8101108d7 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useSiteQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSiteQuery.ts new file mode 100644 index 000000000..6dfecd120 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useSiteThemeQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSiteThemeQuery.ts new file mode 100644 index 000000000..19ea2251f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useSiteThemesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSiteThemesQuery.ts new file mode 100644 index 000000000..eec19b9e2 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useSitesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSitesQuery.ts new file mode 100644 index 000000000..f159801f4 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useSqlMigrationQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSqlMigrationQuery.ts new file mode 100644 index 000000000..9d46640a9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useSqlMigrationsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSqlMigrationsQuery.ts new file mode 100644 index 000000000..6a1181d9b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useStepsAchievedQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useStepsAchievedQuery.ts new file mode 100644 index 000000000..e5c8bd35b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useStepsRequiredQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useStepsRequiredQuery.ts new file mode 100644 index 000000000..196567b45 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useStoreQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useStoreQuery.ts new file mode 100644 index 000000000..984f8bf06 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useStoresQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useStoresQuery.ts new file mode 100644 index 000000000..07374bd06 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useTableGrantQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTableGrantQuery.ts new file mode 100644 index 000000000..0940428e0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useTableGrantsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTableGrantsQuery.ts new file mode 100644 index 000000000..19f3f58c9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useTableModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTableModuleQuery.ts new file mode 100644 index 000000000..72fd3c380 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useTableModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTableModulesQuery.ts new file mode 100644 index 000000000..199cd38be --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useTableQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTableQuery.ts new file mode 100644 index 000000000..b75a69c2e --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useTableTemplateModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTableTemplateModuleQuery.ts new file mode 100644 index 000000000..7a60a5902 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useTableTemplateModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTableTemplateModulesQuery.ts new file mode 100644 index 000000000..c0db523db --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useTablesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTablesQuery.ts new file mode 100644 index 000000000..ded2092d6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useTriggerFunctionQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTriggerFunctionQuery.ts new file mode 100644 index 000000000..ba894e2c5 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useTriggerFunctionsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTriggerFunctionsQuery.ts new file mode 100644 index 000000000..d69ece4b6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useTriggerQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTriggerQuery.ts new file mode 100644 index 000000000..82cf9049c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useTriggersQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTriggersQuery.ts new file mode 100644 index 000000000..cc111ea08 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useUniqueConstraintQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useUniqueConstraintQuery.ts new file mode 100644 index 000000000..314e83cd9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useUniqueConstraintsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useUniqueConstraintsQuery.ts new file mode 100644 index 000000000..b68770cf9 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useUserAuthModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useUserAuthModuleQuery.ts new file mode 100644 index 000000000..1424b66da --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useUserAuthModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useUserAuthModulesQuery.ts new file mode 100644 index 000000000..f223af012 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useUserQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useUserQuery.ts new file mode 100644 index 000000000..c6ca9d01b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useUsersModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useUsersModuleQuery.ts new file mode 100644 index 000000000..4bd5bc0f0 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useUsersModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useUsersModulesQuery.ts new file mode 100644 index 000000000..a19074b3c --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useUsersQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useUsersQuery.ts new file mode 100644 index 000000000..478d3eab4 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useUuidModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useUuidModuleQuery.ts new file mode 100644 index 000000000..0a42306d3 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useUuidModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useUuidModulesQuery.ts new file mode 100644 index 000000000..b3a26771f --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useViewGrantQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useViewGrantQuery.ts new file mode 100644 index 000000000..bc65e83c2 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useViewGrantsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useViewGrantsQuery.ts new file mode 100644 index 000000000..6cef5c67d --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useViewQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useViewQuery.ts new file mode 100644 index 000000000..359c5bc55 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useViewRuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useViewRuleQuery.ts new file mode 100644 index 000000000..3a33a3fa6 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useViewRulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useViewRulesQuery.ts new file mode 100644 index 000000000..63994b707 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useViewTableQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useViewTableQuery.ts new file mode 100644 index 000000000..f49d71f68 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useViewTablesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useViewTablesQuery.ts new file mode 100644 index 000000000..341746862 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/queries/useViewsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useViewsQuery.ts new file mode 100644 index 000000000..4b62bbe5a --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/query-keys.ts b/sdk/constructive-sdk/src/public/hooks/query-keys.ts new file mode 100644 index 000000000..8037ac67b --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/hooks/selection.ts b/sdk/constructive-sdk/src/public/hooks/selection.ts new file mode 100644 index 000000000..2952aab64 --- /dev/null +++ b/sdk/constructive-sdk/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-sdk/src/public/index.ts b/sdk/constructive-sdk/src/public/index.ts index 51e77d3d4..b6d442fc6 100644 --- a/sdk/constructive-sdk/src/public/index.ts +++ b/sdk/constructive-sdk/src/public/index.ts @@ -2,4 +2,6 @@ * Generated 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-sdk/src/public/schema-types.ts b/sdk/constructive-sdk/src/public/schema-types.ts new file mode 100644 index 000000000..bc3a1fe4e --- /dev/null +++ b/sdk/constructive-sdk/src/public/schema-types.ts @@ -0,0 +1,10489 @@ +/** + * 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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +export type ApiOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +export type SiteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +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'; +export type ConnectedAccountsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type CryptoAddressesModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type CryptoAuthModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type DefaultIdsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type DenormalizedTableFieldOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type EmailsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type EncryptedSecretsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +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'; +export type InvitesModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type LevelsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type LimitsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type MembershipTypesModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type MembershipsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type PermissionsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type PhoneNumbersModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +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'; +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'; +export type SecretsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type SessionsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type UserAuthModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type UsersModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type UuidModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +export type AppLimitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; +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'; +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'; +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'; +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'; +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'; +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'; +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'; +export type AppPermissionDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC'; +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'; +export type StoreOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export type RoleTypeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +export type OrgPermissionDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC'; +export type AppLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +export type OrgLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +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'; +export type MembershipTypeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; +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'; +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'; +export type AppPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' + | 'BITNUM_DESC'; +export type OrgPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' + | 'BITNUM_DESC'; +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'; +export type NodeTypeRegistryOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC'; +export type ObjectOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'FRZN_ASC' + | 'FRZN_DESC'; +export type CommitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +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'; +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'; +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'; +export type AuditLogOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EVENT_ASC' + | 'EVENT_DESC'; +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'; +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'; +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'; +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'; +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'; +export type HierarchyModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC'; +export interface CheckConstraintCondition { + 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 CheckConstraintFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + name?: StringFilter; + type?: StringFilter; + fieldIds?: UUIDListFilter; + expr?: JSONFilter; + smartTags?: JSONFilter; + category?: ObjectCategoryFilter; + module?: StringFilter; + scope?: IntFilter; + tags?: StringListFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: CheckConstraintFilter[]; + or?: CheckConstraintFilter[]; + not?: CheckConstraintFilter; +} +export interface ObjectCategoryFilter { + isNull?: boolean; + equalTo?: ObjectCategory; + notEqualTo?: ObjectCategory; + distinctFrom?: ObjectCategory; + notDistinctFrom?: ObjectCategory; + in?: ObjectCategory[]; + notIn?: ObjectCategory[]; + lessThan?: ObjectCategory; + lessThanOrEqualTo?: ObjectCategory; + greaterThan?: ObjectCategory; + greaterThanOrEqualTo?: ObjectCategory; +} +export interface FieldCondition { + 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 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?: StringListFilter; + category?: ObjectCategoryFilter; + module?: StringFilter; + scope?: IntFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: FieldFilter[]; + or?: FieldFilter[]; + not?: FieldFilter; +} +export interface ForeignKeyConstraintCondition { + 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 ForeignKeyConstraintFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + name?: StringFilter; + description?: StringFilter; + smartTags?: JSONFilter; + type?: StringFilter; + fieldIds?: UUIDListFilter; + refTableId?: UUIDFilter; + refFieldIds?: UUIDListFilter; + deleteAction?: StringFilter; + updateAction?: StringFilter; + category?: ObjectCategoryFilter; + module?: StringFilter; + scope?: IntFilter; + tags?: StringListFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: ForeignKeyConstraintFilter[]; + or?: ForeignKeyConstraintFilter[]; + not?: ForeignKeyConstraintFilter; +} +export interface FullTextSearchCondition { + id?: string; + databaseId?: string; + tableId?: string; + fieldId?: string; + fieldIds?: string[]; + weights?: string[]; + langs?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface FullTextSearchFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + fieldId?: UUIDFilter; + fieldIds?: UUIDListFilter; + weights?: StringListFilter; + langs?: StringListFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: FullTextSearchFilter[]; + or?: FullTextSearchFilter[]; + not?: FullTextSearchFilter; +} +export interface IndexCondition { + 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 IndexFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + name?: StringFilter; + fieldIds?: UUIDListFilter; + includeFieldIds?: UUIDListFilter; + accessMethod?: StringFilter; + indexParams?: JSONFilter; + whereClause?: JSONFilter; + isUnique?: BooleanFilter; + smartTags?: JSONFilter; + category?: ObjectCategoryFilter; + module?: StringFilter; + scope?: IntFilter; + tags?: StringListFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: IndexFilter[]; + or?: IndexFilter[]; + not?: IndexFilter; +} +export interface LimitFunctionCondition { + id?: string; + databaseId?: string; + tableId?: string; + name?: string; + label?: string; + description?: string; + data?: unknown; + security?: number; +} +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 PolicyCondition { + 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 PolicyFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + name?: StringFilter; + roleName?: StringFilter; + privilege?: StringFilter; + permissive?: BooleanFilter; + disabled?: BooleanFilter; + policyType?: StringFilter; + data?: JSONFilter; + smartTags?: JSONFilter; + category?: ObjectCategoryFilter; + module?: StringFilter; + scope?: IntFilter; + tags?: StringListFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: PolicyFilter[]; + or?: PolicyFilter[]; + not?: PolicyFilter; +} +export interface PrimaryKeyConstraintCondition { + 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 PrimaryKeyConstraintFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + name?: StringFilter; + type?: StringFilter; + fieldIds?: UUIDListFilter; + smartTags?: JSONFilter; + category?: ObjectCategoryFilter; + module?: StringFilter; + scope?: IntFilter; + tags?: StringListFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: PrimaryKeyConstraintFilter[]; + or?: PrimaryKeyConstraintFilter[]; + not?: PrimaryKeyConstraintFilter; +} +export interface TableGrantCondition { + id?: string; + databaseId?: string; + tableId?: string; + privilege?: string; + roleName?: string; + fieldIds?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface TableGrantFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + privilege?: StringFilter; + roleName?: StringFilter; + fieldIds?: UUIDListFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: TableGrantFilter[]; + or?: TableGrantFilter[]; + not?: TableGrantFilter; +} +export interface TriggerCondition { + 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 TriggerFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + name?: StringFilter; + event?: StringFilter; + functionName?: StringFilter; + smartTags?: JSONFilter; + category?: ObjectCategoryFilter; + module?: StringFilter; + scope?: IntFilter; + tags?: StringListFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: TriggerFilter[]; + or?: TriggerFilter[]; + not?: TriggerFilter; +} +export interface UniqueConstraintCondition { + 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 UniqueConstraintFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + name?: StringFilter; + description?: StringFilter; + smartTags?: JSONFilter; + type?: StringFilter; + fieldIds?: UUIDListFilter; + category?: ObjectCategoryFilter; + module?: StringFilter; + scope?: IntFilter; + tags?: StringListFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: UniqueConstraintFilter[]; + or?: UniqueConstraintFilter[]; + not?: UniqueConstraintFilter; +} +export interface ViewTableCondition { + id?: string; + viewId?: string; + tableId?: string; + joinOrder?: number; +} +export interface ViewTableFilter { + id?: UUIDFilter; + viewId?: UUIDFilter; + tableId?: UUIDFilter; + joinOrder?: IntFilter; + and?: ViewTableFilter[]; + or?: ViewTableFilter[]; + not?: ViewTableFilter; +} +export interface ViewGrantCondition { + id?: string; + databaseId?: string; + viewId?: string; + roleName?: string; + privilege?: string; + withGrantOption?: boolean; +} +export interface ViewGrantFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + viewId?: UUIDFilter; + roleName?: StringFilter; + privilege?: StringFilter; + withGrantOption?: BooleanFilter; + and?: ViewGrantFilter[]; + or?: ViewGrantFilter[]; + not?: ViewGrantFilter; +} +export interface ViewRuleCondition { + id?: string; + databaseId?: string; + viewId?: string; + name?: string; + event?: string; + action?: string; +} +export interface ViewRuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + viewId?: UUIDFilter; + name?: StringFilter; + event?: StringFilter; + action?: StringFilter; + and?: ViewRuleFilter[]; + or?: ViewRuleFilter[]; + not?: ViewRuleFilter; +} +export interface ViewCondition { + 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 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?: ObjectCategoryFilter; + module?: StringFilter; + scope?: IntFilter; + tags?: StringListFilter; + and?: ViewFilter[]; + or?: ViewFilter[]; + not?: ViewFilter; +} +export interface TableModuleCondition { + id?: string; + databaseId?: string; + privateSchemaId?: string; + tableId?: string; + nodeType?: string; + data?: unknown; + fields?: string[]; +} +export interface TableModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + privateSchemaId?: UUIDFilter; + tableId?: UUIDFilter; + nodeType?: StringFilter; + data?: JSONFilter; + fields?: UUIDListFilter; + and?: TableModuleFilter[]; + or?: TableModuleFilter[]; + not?: TableModuleFilter; +} +export interface TableTemplateModuleCondition { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; + nodeType?: string; + data?: unknown; +} +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 TableCondition { + 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 TableFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + name?: StringFilter; + label?: StringFilter; + description?: StringFilter; + smartTags?: JSONFilter; + category?: ObjectCategoryFilter; + module?: StringFilter; + scope?: IntFilter; + useRls?: BooleanFilter; + timestamps?: BooleanFilter; + peoplestamps?: BooleanFilter; + pluralName?: StringFilter; + singularName?: StringFilter; + tags?: StringListFilter; + inheritsId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: TableFilter[]; + or?: TableFilter[]; + not?: TableFilter; +} +export interface SchemaGrantCondition { + id?: string; + databaseId?: string; + schemaId?: string; + granteeName?: string; + createdAt?: string; + updatedAt?: string; +} +export interface SchemaGrantFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + granteeName?: StringFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: SchemaGrantFilter[]; + or?: SchemaGrantFilter[]; + not?: SchemaGrantFilter; +} +export interface ApiModuleCondition { + id?: string; + databaseId?: string; + apiId?: string; + name?: string; + data?: unknown; +} +export interface ApiModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + apiId?: UUIDFilter; + name?: StringFilter; + and?: ApiModuleFilter[]; + or?: ApiModuleFilter[]; + not?: ApiModuleFilter; +} +export interface ApiSchemaCondition { + id?: string; + databaseId?: string; + schemaId?: string; + apiId?: string; +} +export interface ApiSchemaFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + apiId?: UUIDFilter; + and?: ApiSchemaFilter[]; + or?: ApiSchemaFilter[]; + not?: ApiSchemaFilter; +} +export interface DomainCondition { + id?: string; + databaseId?: string; + apiId?: string; + siteId?: string; + subdomain?: ConstructiveInternalTypeHostname; + domain?: ConstructiveInternalTypeHostname; +} +export interface DomainFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + apiId?: UUIDFilter; + siteId?: UUIDFilter; + subdomain?: ConstructiveInternalTypeHostnameFilter; + domain?: ConstructiveInternalTypeHostnameFilter; + and?: DomainFilter[]; + or?: DomainFilter[]; + not?: DomainFilter; +} +export interface ConstructiveInternalTypeHostnameFilter { + isNull?: boolean; + equalTo?: ConstructiveInternalTypeHostname; + notEqualTo?: ConstructiveInternalTypeHostname; + distinctFrom?: ConstructiveInternalTypeHostname; + notDistinctFrom?: ConstructiveInternalTypeHostname; + in?: ConstructiveInternalTypeHostname[]; + notIn?: ConstructiveInternalTypeHostname[]; + lessThan?: ConstructiveInternalTypeHostname; + lessThanOrEqualTo?: ConstructiveInternalTypeHostname; + greaterThan?: ConstructiveInternalTypeHostname; + greaterThanOrEqualTo?: ConstructiveInternalTypeHostname; + includes?: ConstructiveInternalTypeHostname; + notIncludes?: ConstructiveInternalTypeHostname; + includesInsensitive?: ConstructiveInternalTypeHostname; + notIncludesInsensitive?: ConstructiveInternalTypeHostname; + startsWith?: ConstructiveInternalTypeHostname; + notStartsWith?: ConstructiveInternalTypeHostname; + startsWithInsensitive?: ConstructiveInternalTypeHostname; + notStartsWithInsensitive?: ConstructiveInternalTypeHostname; + endsWith?: ConstructiveInternalTypeHostname; + notEndsWith?: ConstructiveInternalTypeHostname; + endsWithInsensitive?: ConstructiveInternalTypeHostname; + notEndsWithInsensitive?: ConstructiveInternalTypeHostname; + like?: ConstructiveInternalTypeHostname; + notLike?: ConstructiveInternalTypeHostname; + likeInsensitive?: ConstructiveInternalTypeHostname; + notLikeInsensitive?: ConstructiveInternalTypeHostname; + equalToInsensitive?: string; + notEqualToInsensitive?: string; + distinctFromInsensitive?: string; + notDistinctFromInsensitive?: string; + inInsensitive?: string[]; + notInInsensitive?: string[]; + lessThanInsensitive?: string; + lessThanOrEqualToInsensitive?: string; + greaterThanInsensitive?: string; + greaterThanOrEqualToInsensitive?: string; +} +export interface SiteMetadatumCondition { + id?: string; + databaseId?: string; + siteId?: string; + title?: string; + description?: string; + ogImage?: ConstructiveInternalTypeImage; +} +export interface SiteMetadatumFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + siteId?: UUIDFilter; + title?: StringFilter; + description?: StringFilter; + ogImage?: ConstructiveInternalTypeImageFilter; + and?: SiteMetadatumFilter[]; + or?: SiteMetadatumFilter[]; + not?: SiteMetadatumFilter; +} +export interface ConstructiveInternalTypeImageFilter { + isNull?: boolean; + equalTo?: ConstructiveInternalTypeImage; + notEqualTo?: ConstructiveInternalTypeImage; + distinctFrom?: ConstructiveInternalTypeImage; + notDistinctFrom?: ConstructiveInternalTypeImage; + in?: ConstructiveInternalTypeImage[]; + notIn?: ConstructiveInternalTypeImage[]; + lessThan?: ConstructiveInternalTypeImage; + lessThanOrEqualTo?: ConstructiveInternalTypeImage; + greaterThan?: ConstructiveInternalTypeImage; + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + contains?: ConstructiveInternalTypeImage; + containsKey?: string; + containsAllKeys?: string[]; + containsAnyKeys?: string[]; + containedBy?: ConstructiveInternalTypeImage; +} +export interface SiteModuleCondition { + id?: string; + databaseId?: string; + siteId?: string; + name?: string; + data?: unknown; +} +export interface SiteModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + siteId?: UUIDFilter; + name?: StringFilter; + and?: SiteModuleFilter[]; + or?: SiteModuleFilter[]; + not?: SiteModuleFilter; +} +export interface SiteThemeCondition { + id?: string; + databaseId?: string; + siteId?: string; + theme?: unknown; +} +export interface SiteThemeFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + siteId?: UUIDFilter; + theme?: JSONFilter; + and?: SiteThemeFilter[]; + or?: SiteThemeFilter[]; + not?: SiteThemeFilter; +} +export interface SchemaCondition { + 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 SchemaFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + name?: StringFilter; + schemaName?: StringFilter; + label?: StringFilter; + description?: StringFilter; + smartTags?: JSONFilter; + category?: ObjectCategoryFilter; + module?: StringFilter; + scope?: IntFilter; + tags?: StringListFilter; + isPublic?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: SchemaFilter[]; + or?: SchemaFilter[]; + not?: SchemaFilter; +} +export interface ProcedureCondition { + 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 ProcedureFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + name?: StringFilter; + argnames?: StringListFilter; + argtypes?: StringListFilter; + argdefaults?: StringListFilter; + langName?: StringFilter; + definition?: StringFilter; + smartTags?: JSONFilter; + category?: ObjectCategoryFilter; + module?: StringFilter; + scope?: IntFilter; + tags?: StringListFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: ProcedureFilter[]; + or?: ProcedureFilter[]; + not?: ProcedureFilter; +} +export interface TriggerFunctionCondition { + id?: string; + databaseId?: string; + name?: string; + code?: string; + createdAt?: string; + updatedAt?: string; +} +export interface TriggerFunctionFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + name?: StringFilter; + code?: StringFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: TriggerFunctionFilter[]; + or?: TriggerFunctionFilter[]; + not?: TriggerFunctionFilter; +} +export interface ApiCondition { + id?: string; + databaseId?: string; + name?: string; + dbname?: string; + roleName?: string; + anonRole?: string; + isPublic?: boolean; +} +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 SiteCondition { + id?: string; + databaseId?: string; + title?: string; + description?: string; + ogImage?: ConstructiveInternalTypeImage; + favicon?: ConstructiveInternalTypeAttachment; + appleTouchIcon?: ConstructiveInternalTypeImage; + logo?: ConstructiveInternalTypeImage; + dbname?: string; +} +export interface SiteFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + title?: StringFilter; + description?: StringFilter; + ogImage?: ConstructiveInternalTypeImageFilter; + favicon?: ConstructiveInternalTypeAttachmentFilter; + appleTouchIcon?: ConstructiveInternalTypeImageFilter; + logo?: ConstructiveInternalTypeImageFilter; + dbname?: StringFilter; + and?: SiteFilter[]; + or?: SiteFilter[]; + not?: SiteFilter; +} +export interface ConstructiveInternalTypeAttachmentFilter { + isNull?: boolean; + equalTo?: ConstructiveInternalTypeAttachment; + notEqualTo?: ConstructiveInternalTypeAttachment; + distinctFrom?: ConstructiveInternalTypeAttachment; + notDistinctFrom?: ConstructiveInternalTypeAttachment; + in?: ConstructiveInternalTypeAttachment[]; + notIn?: ConstructiveInternalTypeAttachment[]; + lessThan?: ConstructiveInternalTypeAttachment; + lessThanOrEqualTo?: ConstructiveInternalTypeAttachment; + greaterThan?: ConstructiveInternalTypeAttachment; + greaterThanOrEqualTo?: ConstructiveInternalTypeAttachment; + includes?: ConstructiveInternalTypeAttachment; + notIncludes?: ConstructiveInternalTypeAttachment; + includesInsensitive?: ConstructiveInternalTypeAttachment; + notIncludesInsensitive?: ConstructiveInternalTypeAttachment; + startsWith?: ConstructiveInternalTypeAttachment; + notStartsWith?: ConstructiveInternalTypeAttachment; + startsWithInsensitive?: ConstructiveInternalTypeAttachment; + notStartsWithInsensitive?: ConstructiveInternalTypeAttachment; + endsWith?: ConstructiveInternalTypeAttachment; + notEndsWith?: ConstructiveInternalTypeAttachment; + endsWithInsensitive?: ConstructiveInternalTypeAttachment; + notEndsWithInsensitive?: ConstructiveInternalTypeAttachment; + like?: ConstructiveInternalTypeAttachment; + notLike?: ConstructiveInternalTypeAttachment; + likeInsensitive?: ConstructiveInternalTypeAttachment; + notLikeInsensitive?: ConstructiveInternalTypeAttachment; + equalToInsensitive?: string; + notEqualToInsensitive?: string; + distinctFromInsensitive?: string; + notDistinctFromInsensitive?: string; + inInsensitive?: string[]; + notInInsensitive?: string[]; + lessThanInsensitive?: string; + lessThanOrEqualToInsensitive?: string; + greaterThanInsensitive?: string; + greaterThanOrEqualToInsensitive?: string; +} +export interface AppCondition { + id?: string; + databaseId?: string; + siteId?: string; + name?: string; + appImage?: ConstructiveInternalTypeImage; + appStoreLink?: ConstructiveInternalTypeUrl; + appStoreId?: string; + appIdPrefix?: string; + playStoreLink?: ConstructiveInternalTypeUrl; +} +export interface AppFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + siteId?: UUIDFilter; + name?: StringFilter; + appImage?: ConstructiveInternalTypeImageFilter; + appStoreLink?: ConstructiveInternalTypeUrlFilter; + appStoreId?: StringFilter; + appIdPrefix?: StringFilter; + playStoreLink?: ConstructiveInternalTypeUrlFilter; + and?: AppFilter[]; + or?: AppFilter[]; + not?: AppFilter; +} +export interface ConstructiveInternalTypeUrlFilter { + isNull?: boolean; + equalTo?: ConstructiveInternalTypeUrl; + notEqualTo?: ConstructiveInternalTypeUrl; + distinctFrom?: ConstructiveInternalTypeUrl; + notDistinctFrom?: ConstructiveInternalTypeUrl; + in?: ConstructiveInternalTypeUrl[]; + notIn?: ConstructiveInternalTypeUrl[]; + lessThan?: ConstructiveInternalTypeUrl; + lessThanOrEqualTo?: ConstructiveInternalTypeUrl; + greaterThan?: ConstructiveInternalTypeUrl; + greaterThanOrEqualTo?: ConstructiveInternalTypeUrl; + includes?: ConstructiveInternalTypeUrl; + notIncludes?: ConstructiveInternalTypeUrl; + includesInsensitive?: ConstructiveInternalTypeUrl; + notIncludesInsensitive?: ConstructiveInternalTypeUrl; + startsWith?: ConstructiveInternalTypeUrl; + notStartsWith?: ConstructiveInternalTypeUrl; + startsWithInsensitive?: ConstructiveInternalTypeUrl; + notStartsWithInsensitive?: ConstructiveInternalTypeUrl; + endsWith?: ConstructiveInternalTypeUrl; + notEndsWith?: ConstructiveInternalTypeUrl; + endsWithInsensitive?: ConstructiveInternalTypeUrl; + notEndsWithInsensitive?: ConstructiveInternalTypeUrl; + like?: ConstructiveInternalTypeUrl; + notLike?: ConstructiveInternalTypeUrl; + likeInsensitive?: ConstructiveInternalTypeUrl; + notLikeInsensitive?: ConstructiveInternalTypeUrl; + equalToInsensitive?: string; + notEqualToInsensitive?: string; + distinctFromInsensitive?: string; + notDistinctFromInsensitive?: string; + inInsensitive?: string[]; + notInInsensitive?: string[]; + lessThanInsensitive?: string; + lessThanOrEqualToInsensitive?: string; + greaterThanInsensitive?: string; + greaterThanOrEqualToInsensitive?: string; +} +export interface ConnectedAccountsModuleCondition { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; +} +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 CryptoAddressesModuleCondition { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; + cryptoNetwork?: string; +} +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 CryptoAuthModuleCondition { + 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 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 DefaultIdsModuleCondition { + id?: string; + databaseId?: string; +} +export interface DefaultIdsModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + and?: DefaultIdsModuleFilter[]; + or?: DefaultIdsModuleFilter[]; + not?: DefaultIdsModuleFilter; +} +export interface DenormalizedTableFieldCondition { + 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 DenormalizedTableFieldFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + fieldId?: UUIDFilter; + setIds?: UUIDListFilter; + refTableId?: UUIDFilter; + refFieldId?: UUIDFilter; + refIds?: UUIDListFilter; + useUpdates?: BooleanFilter; + updateDefaults?: BooleanFilter; + funcName?: StringFilter; + funcOrder?: IntFilter; + and?: DenormalizedTableFieldFilter[]; + or?: DenormalizedTableFieldFilter[]; + not?: DenormalizedTableFieldFilter; +} +export interface EmailsModuleCondition { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; +} +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 EncryptedSecretsModuleCondition { + id?: string; + databaseId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +export interface EncryptedSecretsModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + tableId?: UUIDFilter; + tableName?: StringFilter; + and?: EncryptedSecretsModuleFilter[]; + or?: EncryptedSecretsModuleFilter[]; + not?: EncryptedSecretsModuleFilter; +} +export interface FieldModuleCondition { + id?: string; + databaseId?: string; + privateSchemaId?: string; + tableId?: string; + fieldId?: string; + nodeType?: string; + data?: unknown; + triggers?: string[]; + functions?: string[]; +} +export interface FieldModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + privateSchemaId?: UUIDFilter; + tableId?: UUIDFilter; + fieldId?: UUIDFilter; + nodeType?: StringFilter; + data?: JSONFilter; + triggers?: StringListFilter; + functions?: StringListFilter; + and?: FieldModuleFilter[]; + or?: FieldModuleFilter[]; + not?: FieldModuleFilter; +} +export interface InvitesModuleCondition { + 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 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 LevelsModuleCondition { + 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 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 LimitsModuleCondition { + 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 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 MembershipTypesModuleCondition { + id?: string; + databaseId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +export interface MembershipTypesModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + tableId?: UUIDFilter; + tableName?: StringFilter; + and?: MembershipTypesModuleFilter[]; + or?: MembershipTypesModuleFilter[]; + not?: MembershipTypesModuleFilter; +} +export interface MembershipsModuleCondition { + 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 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 PermissionsModuleCondition { + 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 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 PhoneNumbersModuleCondition { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; +} +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 ProfilesModuleCondition { + 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 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 RlsModuleCondition { + 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 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 SecretsModuleCondition { + id?: string; + databaseId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +export interface SecretsModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + tableId?: UUIDFilter; + tableName?: StringFilter; + and?: SecretsModuleFilter[]; + or?: SecretsModuleFilter[]; + not?: SecretsModuleFilter; +} +export interface SessionsModuleCondition { + id?: string; + databaseId?: string; + schemaId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + authSettingsTableId?: string; + usersTableId?: string; + sessionsDefaultExpiration?: IntervalInput; + sessionsTable?: string; + sessionCredentialsTable?: string; + authSettingsTable?: string; +} +export interface IntervalInput { + seconds?: number; + minutes?: number; + hours?: number; + days?: number; + months?: number; + years?: number; +} +export interface SessionsModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + sessionsTableId?: UUIDFilter; + sessionCredentialsTableId?: UUIDFilter; + authSettingsTableId?: UUIDFilter; + usersTableId?: UUIDFilter; + sessionsDefaultExpiration?: IntervalFilter; + sessionsTable?: StringFilter; + sessionCredentialsTable?: StringFilter; + authSettingsTable?: StringFilter; + and?: SessionsModuleFilter[]; + or?: SessionsModuleFilter[]; + not?: SessionsModuleFilter; +} +export interface IntervalFilter { + isNull?: boolean; + equalTo?: IntervalInput; + notEqualTo?: IntervalInput; + distinctFrom?: IntervalInput; + notDistinctFrom?: IntervalInput; + in?: IntervalInput[]; + notIn?: IntervalInput[]; + lessThan?: IntervalInput; + lessThanOrEqualTo?: IntervalInput; + greaterThan?: IntervalInput; + greaterThanOrEqualTo?: IntervalInput; +} +export interface UserAuthModuleCondition { + 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 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 UsersModuleCondition { + id?: string; + databaseId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; + typeTableId?: string; + typeTableName?: string; +} +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 UuidModuleCondition { + id?: string; + databaseId?: string; + schemaId?: string; + uuidFunction?: string; + uuidSeed?: string; +} +export interface UuidModuleFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + uuidFunction?: StringFilter; + uuidSeed?: StringFilter; + and?: UuidModuleFilter[]; + or?: UuidModuleFilter[]; + not?: UuidModuleFilter; +} +export interface DatabaseProvisionModuleCondition { + id?: string; + databaseName?: string; + ownerId?: string; + subdomain?: string; + domain?: string; + modules?: string[]; + options?: unknown; + bootstrapUser?: boolean; + status?: string; + errorMessage?: string; + databaseId?: string; + createdAt?: string; + updatedAt?: string; + completedAt?: string; +} +export interface DatabaseProvisionModuleFilter { + id?: UUIDFilter; + databaseName?: StringFilter; + ownerId?: UUIDFilter; + subdomain?: StringFilter; + domain?: StringFilter; + modules?: StringListFilter; + options?: JSONFilter; + bootstrapUser?: BooleanFilter; + status?: StringFilter; + errorMessage?: StringFilter; + databaseId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + completedAt?: DatetimeFilter; + and?: DatabaseProvisionModuleFilter[]; + or?: DatabaseProvisionModuleFilter[]; + not?: DatabaseProvisionModuleFilter; +} +export interface DatabaseCondition { + id?: string; + ownerId?: string; + schemaHash?: string; + name?: string; + label?: string; + hash?: string; + createdAt?: string; + updatedAt?: string; +} +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 AppAdminGrantCondition { + id?: string; + isGrant?: boolean; + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface AppAdminGrantFilter { + id?: UUIDFilter; + isGrant?: BooleanFilter; + actorId?: UUIDFilter; + grantorId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppAdminGrantFilter[]; + or?: AppAdminGrantFilter[]; + not?: AppAdminGrantFilter; +} +export interface AppOwnerGrantCondition { + id?: string; + isGrant?: boolean; + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface AppOwnerGrantFilter { + id?: UUIDFilter; + isGrant?: BooleanFilter; + actorId?: UUIDFilter; + grantorId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppOwnerGrantFilter[]; + or?: AppOwnerGrantFilter[]; + not?: AppOwnerGrantFilter; +} +export interface AppGrantCondition { + id?: string; + permissions?: string; + isGrant?: boolean; + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +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 OrgMembershipCondition { + 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 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 OrgMemberCondition { + id?: string; + isAdmin?: boolean; + actorId?: string; + entityId?: string; +} +export interface OrgMemberFilter { + id?: UUIDFilter; + isAdmin?: BooleanFilter; + actorId?: UUIDFilter; + entityId?: UUIDFilter; + and?: OrgMemberFilter[]; + or?: OrgMemberFilter[]; + not?: OrgMemberFilter; +} +export interface OrgAdminGrantCondition { + id?: string; + isGrant?: boolean; + actorId?: string; + entityId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +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 OrgOwnerGrantCondition { + id?: string; + isGrant?: boolean; + actorId?: string; + entityId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +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 OrgGrantCondition { + id?: string; + permissions?: string; + isGrant?: boolean; + actorId?: string; + entityId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +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 AppLimitCondition { + id?: string; + name?: string; + actorId?: string; + num?: number; + max?: number; +} +export interface AppLimitFilter { + id?: UUIDFilter; + name?: StringFilter; + actorId?: UUIDFilter; + num?: IntFilter; + max?: IntFilter; + and?: AppLimitFilter[]; + or?: AppLimitFilter[]; + not?: AppLimitFilter; +} +export interface OrgLimitCondition { + id?: string; + name?: string; + actorId?: string; + num?: number; + max?: number; + entityId?: string; +} +export interface OrgLimitFilter { + id?: UUIDFilter; + name?: StringFilter; + actorId?: UUIDFilter; + num?: IntFilter; + max?: IntFilter; + entityId?: UUIDFilter; + and?: OrgLimitFilter[]; + or?: OrgLimitFilter[]; + not?: OrgLimitFilter; +} +export interface AppStepCondition { + id?: string; + actorId?: string; + name?: string; + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface AppStepFilter { + id?: UUIDFilter; + actorId?: UUIDFilter; + name?: StringFilter; + count?: IntFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppStepFilter[]; + or?: AppStepFilter[]; + not?: AppStepFilter; +} +export interface AppAchievementCondition { + id?: string; + actorId?: string; + name?: string; + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface AppAchievementFilter { + id?: UUIDFilter; + actorId?: UUIDFilter; + name?: StringFilter; + count?: IntFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppAchievementFilter[]; + or?: AppAchievementFilter[]; + not?: AppAchievementFilter; +} +export interface InviteCondition { + 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 InviteFilter { + id?: UUIDFilter; + email?: ConstructiveInternalTypeEmailFilter; + senderId?: UUIDFilter; + inviteToken?: StringFilter; + inviteValid?: BooleanFilter; + inviteLimit?: IntFilter; + inviteCount?: IntFilter; + multiple?: BooleanFilter; + expiresAt?: DatetimeFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: InviteFilter[]; + or?: InviteFilter[]; + not?: InviteFilter; +} +export interface ConstructiveInternalTypeEmailFilter { + 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?: ConstructiveInternalTypeEmail; + notIncludesInsensitive?: ConstructiveInternalTypeEmail; + startsWith?: string; + notStartsWith?: string; + startsWithInsensitive?: ConstructiveInternalTypeEmail; + notStartsWithInsensitive?: ConstructiveInternalTypeEmail; + endsWith?: string; + notEndsWith?: string; + endsWithInsensitive?: ConstructiveInternalTypeEmail; + notEndsWithInsensitive?: ConstructiveInternalTypeEmail; + like?: string; + notLike?: string; + likeInsensitive?: ConstructiveInternalTypeEmail; + notLikeInsensitive?: ConstructiveInternalTypeEmail; + equalToInsensitive?: ConstructiveInternalTypeEmail; + notEqualToInsensitive?: ConstructiveInternalTypeEmail; + distinctFromInsensitive?: ConstructiveInternalTypeEmail; + notDistinctFromInsensitive?: ConstructiveInternalTypeEmail; + inInsensitive?: ConstructiveInternalTypeEmail[]; + notInInsensitive?: ConstructiveInternalTypeEmail[]; + lessThanInsensitive?: ConstructiveInternalTypeEmail; + lessThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; + greaterThanInsensitive?: ConstructiveInternalTypeEmail; + greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; +} +export interface ClaimedInviteCondition { + id?: string; + data?: unknown; + senderId?: string; + receiverId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface ClaimedInviteFilter { + id?: UUIDFilter; + senderId?: UUIDFilter; + receiverId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: ClaimedInviteFilter[]; + or?: ClaimedInviteFilter[]; + not?: ClaimedInviteFilter; +} +export interface OrgInviteCondition { + 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 OrgInviteFilter { + id?: UUIDFilter; + email?: ConstructiveInternalTypeEmailFilter; + senderId?: UUIDFilter; + receiverId?: UUIDFilter; + inviteToken?: StringFilter; + inviteValid?: BooleanFilter; + inviteLimit?: IntFilter; + inviteCount?: IntFilter; + multiple?: BooleanFilter; + expiresAt?: DatetimeFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + entityId?: UUIDFilter; + and?: OrgInviteFilter[]; + or?: OrgInviteFilter[]; + not?: OrgInviteFilter; +} +export interface OrgClaimedInviteCondition { + id?: string; + data?: unknown; + senderId?: string; + receiverId?: string; + createdAt?: string; + updatedAt?: string; + entityId?: string; +} +export interface OrgClaimedInviteFilter { + id?: UUIDFilter; + senderId?: UUIDFilter; + receiverId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + entityId?: UUIDFilter; + and?: OrgClaimedInviteFilter[]; + or?: OrgClaimedInviteFilter[]; + not?: OrgClaimedInviteFilter; +} +export interface AppPermissionDefaultCondition { + id?: string; + permissions?: string; +} +export interface AppPermissionDefaultFilter { + id?: UUIDFilter; + permissions?: BitStringFilter; + and?: AppPermissionDefaultFilter[]; + or?: AppPermissionDefaultFilter[]; + not?: AppPermissionDefaultFilter; +} +export interface RefCondition { + id?: string; + name?: string; + databaseId?: string; + storeId?: string; + commitId?: string; +} +export interface RefFilter { + id?: UUIDFilter; + name?: StringFilter; + databaseId?: UUIDFilter; + storeId?: UUIDFilter; + commitId?: UUIDFilter; + and?: RefFilter[]; + or?: RefFilter[]; + not?: RefFilter; +} +export interface StoreCondition { + id?: string; + name?: string; + databaseId?: string; + hash?: string; + createdAt?: string; +} +export interface StoreFilter { + id?: UUIDFilter; + name?: StringFilter; + databaseId?: UUIDFilter; + hash?: UUIDFilter; + createdAt?: DatetimeFilter; + and?: StoreFilter[]; + or?: StoreFilter[]; + not?: StoreFilter; +} +export interface RoleTypeCondition { + id?: number; + name?: string; +} +export interface RoleTypeFilter { + id?: IntFilter; + name?: StringFilter; + and?: RoleTypeFilter[]; + or?: RoleTypeFilter[]; + not?: RoleTypeFilter; +} +export interface OrgPermissionDefaultCondition { + id?: string; + permissions?: string; + entityId?: string; +} +export interface OrgPermissionDefaultFilter { + id?: UUIDFilter; + permissions?: BitStringFilter; + entityId?: UUIDFilter; + and?: OrgPermissionDefaultFilter[]; + or?: OrgPermissionDefaultFilter[]; + not?: OrgPermissionDefaultFilter; +} +export interface AppLimitDefaultCondition { + id?: string; + name?: string; + max?: number; +} +export interface AppLimitDefaultFilter { + id?: UUIDFilter; + name?: StringFilter; + max?: IntFilter; + and?: AppLimitDefaultFilter[]; + or?: AppLimitDefaultFilter[]; + not?: AppLimitDefaultFilter; +} +export interface OrgLimitDefaultCondition { + id?: string; + name?: string; + max?: number; +} +export interface OrgLimitDefaultFilter { + id?: UUIDFilter; + name?: StringFilter; + max?: IntFilter; + and?: OrgLimitDefaultFilter[]; + or?: OrgLimitDefaultFilter[]; + not?: OrgLimitDefaultFilter; +} +export interface CryptoAddressCondition { + id?: string; + ownerId?: string; + address?: string; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +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 MembershipTypeCondition { + id?: number; + name?: string; + description?: string; + prefix?: string; +} +export interface MembershipTypeFilter { + id?: IntFilter; + name?: StringFilter; + description?: StringFilter; + prefix?: StringFilter; + and?: MembershipTypeFilter[]; + or?: MembershipTypeFilter[]; + not?: MembershipTypeFilter; +} +export interface ConnectedAccountCondition { + id?: string; + ownerId?: string; + service?: string; + identifier?: string; + details?: unknown; + isVerified?: boolean; + createdAt?: string; + updatedAt?: string; +} +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 PhoneNumberCondition { + id?: string; + ownerId?: string; + cc?: string; + number?: string; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +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 AppPermissionCondition { + id?: string; + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; +} +export interface AppPermissionFilter { + id?: UUIDFilter; + name?: StringFilter; + bitnum?: IntFilter; + bitstr?: BitStringFilter; + description?: StringFilter; + and?: AppPermissionFilter[]; + or?: AppPermissionFilter[]; + not?: AppPermissionFilter; +} +export interface OrgPermissionCondition { + id?: string; + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; +} +export interface OrgPermissionFilter { + id?: UUIDFilter; + name?: StringFilter; + bitnum?: IntFilter; + bitstr?: BitStringFilter; + description?: StringFilter; + and?: OrgPermissionFilter[]; + or?: OrgPermissionFilter[]; + not?: OrgPermissionFilter; +} +export interface AppMembershipDefaultCondition { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; +} +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 NodeTypeRegistryCondition { + name?: string; + slug?: string; + category?: string; + displayName?: string; + description?: string; + parameterSchema?: unknown; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface NodeTypeRegistryFilter { + name?: StringFilter; + slug?: StringFilter; + category?: StringFilter; + displayName?: StringFilter; + description?: StringFilter; + parameterSchema?: JSONFilter; + tags?: StringListFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: NodeTypeRegistryFilter[]; + or?: NodeTypeRegistryFilter[]; + not?: NodeTypeRegistryFilter; +} +export interface ObjectCondition { + id?: string; + databaseId?: string; + kids?: string[]; + ktree?: string[]; + data?: unknown; + frzn?: boolean; + createdAt?: string; +} +export interface ObjectFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + kids?: UUIDListFilter; + ktree?: StringListFilter; + data?: JSONFilter; + frzn?: BooleanFilter; + createdAt?: DatetimeFilter; + and?: ObjectFilter[]; + or?: ObjectFilter[]; + not?: ObjectFilter; +} +export interface CommitCondition { + id?: string; + message?: string; + databaseId?: string; + storeId?: string; + parentIds?: string[]; + authorId?: string; + committerId?: string; + treeId?: string; + date?: string; +} +export interface CommitFilter { + id?: UUIDFilter; + message?: StringFilter; + databaseId?: UUIDFilter; + storeId?: UUIDFilter; + parentIds?: UUIDListFilter; + authorId?: UUIDFilter; + committerId?: UUIDFilter; + treeId?: UUIDFilter; + date?: DatetimeFilter; + and?: CommitFilter[]; + or?: CommitFilter[]; + not?: CommitFilter; +} +export interface OrgMembershipDefaultCondition { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId?: string; + deleteMemberCascadeGroups?: boolean; + createGroupsCascadeMembers?: boolean; +} +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 EmailCondition { + id?: string; + ownerId?: string; + email?: ConstructiveInternalTypeEmail; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface EmailFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + email?: ConstructiveInternalTypeEmailFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: EmailFilter[]; + or?: EmailFilter[]; + not?: EmailFilter; +} +export interface AppLevelRequirementCondition { + id?: string; + name?: string; + level?: string; + description?: string; + requiredCount?: number; + priority?: number; + createdAt?: string; + updatedAt?: string; +} +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 AuditLogCondition { + id?: string; + event?: string; + actorId?: string; + origin?: ConstructiveInternalTypeOrigin; + userAgent?: string; + ipAddress?: string; + success?: boolean; + createdAt?: string; +} +export interface AuditLogFilter { + id?: UUIDFilter; + event?: StringFilter; + actorId?: UUIDFilter; + origin?: ConstructiveInternalTypeOriginFilter; + userAgent?: StringFilter; + ipAddress?: InternetAddressFilter; + success?: BooleanFilter; + createdAt?: DatetimeFilter; + and?: AuditLogFilter[]; + or?: AuditLogFilter[]; + not?: AuditLogFilter; +} +export interface ConstructiveInternalTypeOriginFilter { + isNull?: boolean; + equalTo?: ConstructiveInternalTypeOrigin; + notEqualTo?: ConstructiveInternalTypeOrigin; + distinctFrom?: ConstructiveInternalTypeOrigin; + notDistinctFrom?: ConstructiveInternalTypeOrigin; + in?: ConstructiveInternalTypeOrigin[]; + notIn?: ConstructiveInternalTypeOrigin[]; + lessThan?: ConstructiveInternalTypeOrigin; + lessThanOrEqualTo?: ConstructiveInternalTypeOrigin; + greaterThan?: ConstructiveInternalTypeOrigin; + greaterThanOrEqualTo?: ConstructiveInternalTypeOrigin; + includes?: ConstructiveInternalTypeOrigin; + notIncludes?: ConstructiveInternalTypeOrigin; + includesInsensitive?: ConstructiveInternalTypeOrigin; + notIncludesInsensitive?: ConstructiveInternalTypeOrigin; + startsWith?: ConstructiveInternalTypeOrigin; + notStartsWith?: ConstructiveInternalTypeOrigin; + startsWithInsensitive?: ConstructiveInternalTypeOrigin; + notStartsWithInsensitive?: ConstructiveInternalTypeOrigin; + endsWith?: ConstructiveInternalTypeOrigin; + notEndsWith?: ConstructiveInternalTypeOrigin; + endsWithInsensitive?: ConstructiveInternalTypeOrigin; + notEndsWithInsensitive?: ConstructiveInternalTypeOrigin; + like?: ConstructiveInternalTypeOrigin; + notLike?: ConstructiveInternalTypeOrigin; + likeInsensitive?: ConstructiveInternalTypeOrigin; + notLikeInsensitive?: ConstructiveInternalTypeOrigin; + equalToInsensitive?: string; + notEqualToInsensitive?: string; + distinctFromInsensitive?: string; + notDistinctFromInsensitive?: string; + inInsensitive?: string[]; + notInInsensitive?: string[]; + lessThanInsensitive?: string; + lessThanOrEqualToInsensitive?: string; + greaterThanInsensitive?: string; + greaterThanOrEqualToInsensitive?: string; +} +export interface AppLevelCondition { + id?: string; + name?: string; + description?: string; + image?: ConstructiveInternalTypeImage; + ownerId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface AppLevelFilter { + id?: UUIDFilter; + name?: StringFilter; + description?: StringFilter; + image?: ConstructiveInternalTypeImageFilter; + ownerId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppLevelFilter[]; + or?: AppLevelFilter[]; + not?: AppLevelFilter; +} +export interface SqlMigrationCondition { + 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 SqlMigrationFilter { + id?: IntFilter; + name?: StringFilter; + databaseId?: UUIDFilter; + deploy?: StringFilter; + deps?: StringListFilter; + content?: StringFilter; + revert?: StringFilter; + verify?: StringFilter; + createdAt?: DatetimeFilter; + action?: StringFilter; + actionId?: UUIDFilter; + actorId?: UUIDFilter; + and?: SqlMigrationFilter[]; + or?: SqlMigrationFilter[]; + not?: SqlMigrationFilter; +} +export interface AstMigrationCondition { + 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 AstMigrationFilter { + id?: IntFilter; + databaseId?: UUIDFilter; + name?: StringFilter; + requires?: StringListFilter; + 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 AppMembershipCondition { + 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 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 UserCondition { + id?: string; + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + searchTsv?: string; + type?: number; + createdAt?: string; + updatedAt?: string; + fullTextSearchTsv?: string; +} +export interface UserFilter { + id?: UUIDFilter; + username?: StringFilter; + displayName?: StringFilter; + profilePicture?: ConstructiveInternalTypeImageFilter; + searchTsv?: FullTextFilter; + type?: IntFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: UserFilter[]; + or?: UserFilter[]; + not?: UserFilter; +} +export interface HierarchyModuleCondition { + 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 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; +} +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; + defaultIdsModule: DefaultIdsModuleInput; +} +export interface DefaultIdsModuleInput { + id?: string; + databaseId: string; +} +export interface CreateViewTableInput { + clientMutationId?: string; + viewTable: ViewTableInput; +} +export interface ViewTableInput { + id?: string; + viewId: string; + tableId: string; + joinOrder?: number; +} +export interface CreateApiSchemaInput { + clientMutationId?: string; + apiSchema: ApiSchemaInput; +} +export interface ApiSchemaInput { + id?: string; + databaseId: string; + schemaId: string; + apiId: string; +} +export interface CreateSiteThemeInput { + clientMutationId?: string; + siteTheme: SiteThemeInput; +} +export interface SiteThemeInput { + id?: string; + databaseId: string; + siteId: string; + theme: unknown; +} +export interface CreateOrgMemberInput { + clientMutationId?: string; + orgMember: OrgMemberInput; +} +export interface OrgMemberInput { + id?: string; + isAdmin?: boolean; + actorId: string; + entityId: string; +} +export interface CreateAppPermissionDefaultInput { + clientMutationId?: string; + appPermissionDefault: AppPermissionDefaultInput; +} +export interface AppPermissionDefaultInput { + id?: string; + permissions?: string; +} +export interface CreateRefInput { + clientMutationId?: string; + ref: RefInput; +} +export interface RefInput { + id?: string; + name: string; + databaseId: string; + storeId: string; + commitId?: string; +} +export interface CreateStoreInput { + clientMutationId?: string; + store: StoreInput; +} +export interface StoreInput { + id?: string; + name: string; + databaseId: string; + hash?: string; + createdAt?: string; +} +export interface CreateApiModuleInput { + clientMutationId?: string; + apiModule: ApiModuleInput; +} +export interface ApiModuleInput { + id?: string; + databaseId: string; + apiId: string; + name: string; + data: unknown; +} +export interface CreateSiteModuleInput { + clientMutationId?: string; + siteModule: SiteModuleInput; +} +export interface SiteModuleInput { + id?: string; + databaseId: string; + siteId: string; + name: string; + data: unknown; +} +export interface CreateEncryptedSecretsModuleInput { + clientMutationId?: string; + encryptedSecretsModule: EncryptedSecretsModuleInput; +} +export interface EncryptedSecretsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +export interface CreateMembershipTypesModuleInput { + clientMutationId?: string; + membershipTypesModule: MembershipTypesModuleInput; +} +export interface MembershipTypesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +export interface CreateSecretsModuleInput { + clientMutationId?: string; + secretsModule: SecretsModuleInput; +} +export interface SecretsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +export interface CreateUuidModuleInput { + clientMutationId?: string; + uuidModule: UuidModuleInput; +} +export interface UuidModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + uuidFunction?: string; + uuidSeed: string; +} +export interface CreateRoleTypeInput { + clientMutationId?: string; + roleType: RoleTypeInput; +} +export interface RoleTypeInput { + id: number; + name: string; +} +export interface CreateOrgPermissionDefaultInput { + clientMutationId?: string; + orgPermissionDefault: OrgPermissionDefaultInput; +} +export interface OrgPermissionDefaultInput { + id?: string; + permissions?: string; + entityId: string; +} +export interface CreateSchemaGrantInput { + clientMutationId?: string; + schemaGrant: SchemaGrantInput; +} +export interface SchemaGrantInput { + id?: string; + databaseId?: string; + schemaId: string; + granteeName: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateTriggerFunctionInput { + clientMutationId?: string; + triggerFunction: TriggerFunctionInput; +} +export interface TriggerFunctionInput { + id?: string; + databaseId: string; + name: string; + code?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateViewGrantInput { + clientMutationId?: string; + viewGrant: ViewGrantInput; +} +export interface ViewGrantInput { + id?: string; + databaseId?: string; + viewId: string; + roleName: string; + privilege: string; + withGrantOption?: boolean; +} +export interface CreateViewRuleInput { + clientMutationId?: string; + viewRule: ViewRuleInput; +} +export interface ViewRuleInput { + id?: string; + databaseId?: string; + viewId: string; + name: string; + event: string; + action?: string; +} +export interface CreateAppAdminGrantInput { + clientMutationId?: string; + appAdminGrant: AppAdminGrantInput; +} +export interface AppAdminGrantInput { + id?: string; + isGrant?: boolean; + actorId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppOwnerGrantInput { + clientMutationId?: string; + appOwnerGrant: AppOwnerGrantInput; +} +export interface AppOwnerGrantInput { + id?: string; + isGrant?: boolean; + actorId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppLimitDefaultInput { + clientMutationId?: string; + appLimitDefault: AppLimitDefaultInput; +} +export interface AppLimitDefaultInput { + id?: string; + name: string; + max?: number; +} +export interface CreateOrgLimitDefaultInput { + clientMutationId?: string; + orgLimitDefault: OrgLimitDefaultInput; +} +export interface OrgLimitDefaultInput { + id?: string; + name: string; + max?: number; +} +export interface CreateApiInput { + clientMutationId?: string; + api: ApiInput; +} +export interface ApiInput { + id?: string; + databaseId: string; + name: string; + dbname?: string; + roleName?: string; + anonRole?: string; + isPublic?: boolean; +} +export interface CreateConnectedAccountsModuleInput { + clientMutationId?: string; + connectedAccountsModule: ConnectedAccountsModuleInput; +} +export interface ConnectedAccountsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; +} +export interface CreateEmailsModuleInput { + clientMutationId?: string; + emailsModule: EmailsModuleInput; +} +export interface EmailsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; +} +export interface CreatePhoneNumbersModuleInput { + clientMutationId?: string; + phoneNumbersModule: PhoneNumbersModuleInput; +} +export interface PhoneNumbersModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; +} +export interface CreateTableModuleInput { + clientMutationId?: string; + tableModule: TableModuleInput; +} +export interface TableModuleInput { + id?: string; + databaseId: string; + privateSchemaId?: string; + tableId: string; + nodeType: string; + data?: unknown; + fields?: string[]; +} +export interface CreateUsersModuleInput { + clientMutationId?: string; + usersModule: UsersModuleInput; +} +export interface UsersModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + typeTableId?: string; + typeTableName?: string; +} +export interface CreateOrgAdminGrantInput { + clientMutationId?: string; + orgAdminGrant: OrgAdminGrantInput; +} +export interface OrgAdminGrantInput { + id?: string; + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateOrgOwnerGrantInput { + clientMutationId?: string; + orgOwnerGrant: OrgOwnerGrantInput; +} +export interface OrgOwnerGrantInput { + id?: string; + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateCryptoAddressInput { + clientMutationId?: string; + cryptoAddress: CryptoAddressInput; +} +export interface CryptoAddressInput { + id?: string; + ownerId?: string; + address: string; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface CreateMembershipTypeInput { + clientMutationId?: string; + membershipType: MembershipTypeInput; +} +export interface MembershipTypeInput { + id: number; + name: string; + description: string; + prefix: string; +} +export interface CreateDatabaseInput { + clientMutationId?: string; + database: DatabaseInput; +} +export interface DatabaseInput { + id?: string; + ownerId?: string; + schemaHash?: string; + name?: string; + label?: string; + hash?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateLimitFunctionInput { + clientMutationId?: string; + limitFunction: LimitFunctionInput; +} +export interface LimitFunctionInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + label?: string; + description?: string; + data?: unknown; + security?: number; +} +export interface CreateTableGrantInput { + clientMutationId?: string; + tableGrant: TableGrantInput; +} +export interface TableGrantInput { + id?: string; + databaseId?: string; + tableId: string; + privilege: string; + roleName: string; + fieldIds?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface CreateCryptoAddressesModuleInput { + clientMutationId?: string; + cryptoAddressesModule: CryptoAddressesModuleInput; +} +export interface CryptoAddressesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + cryptoNetwork?: string; +} +export interface CreateConnectedAccountInput { + clientMutationId?: string; + connectedAccount: ConnectedAccountInput; +} +export interface ConnectedAccountInput { + id?: string; + ownerId?: string; + service: string; + identifier: string; + details: unknown; + isVerified?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface CreatePhoneNumberInput { + clientMutationId?: string; + phoneNumber: PhoneNumberInput; +} +export interface PhoneNumberInput { + id?: string; + ownerId?: string; + cc: string; + number: string; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppPermissionInput { + clientMutationId?: string; + appPermission: AppPermissionInput; +} +export interface AppPermissionInput { + id?: string; + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; +} +export interface CreateOrgPermissionInput { + clientMutationId?: string; + orgPermission: OrgPermissionInput; +} +export interface OrgPermissionInput { + id?: string; + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; +} +export interface CreateAppLimitInput { + clientMutationId?: string; + appLimit: AppLimitInput; +} +export interface AppLimitInput { + id?: string; + name?: string; + actorId: string; + num?: number; + max?: number; +} +export interface CreateAppAchievementInput { + clientMutationId?: string; + appAchievement: AppAchievementInput; +} +export interface AppAchievementInput { + id?: string; + actorId?: string; + name: string; + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppStepInput { + clientMutationId?: string; + appStep: AppStepInput; +} +export interface AppStepInput { + id?: string; + actorId?: string; + name: string; + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface CreateClaimedInviteInput { + clientMutationId?: string; + claimedInvite: ClaimedInviteInput; +} +export interface ClaimedInviteInput { + id?: string; + data?: unknown; + senderId?: string; + receiverId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppMembershipDefaultInput { + clientMutationId?: string; + appMembershipDefault: AppMembershipDefaultInput; +} +export interface AppMembershipDefaultInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; +} +export interface CreateSiteMetadatumInput { + clientMutationId?: string; + siteMetadatum: SiteMetadatumInput; +} +export interface SiteMetadatumInput { + id?: string; + databaseId: string; + siteId: string; + title?: string; + description?: string; + ogImage?: ConstructiveInternalTypeImage; +} +export interface CreateFieldModuleInput { + clientMutationId?: string; + fieldModule: FieldModuleInput; +} +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; + tableTemplateModule: TableTemplateModuleInput; +} +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; + nodeTypeRegistry: NodeTypeRegistryInput; +} +export interface NodeTypeRegistryInput { + name: string; + slug: string; + category: string; + displayName?: string; + description?: string; + parameterSchema?: unknown; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface CreateObjectInput { + clientMutationId?: string; + object: ObjectInput; +} +export interface ObjectInput { + id: string; + databaseId: string; + kids?: string[]; + ktree?: string[]; + data?: unknown; + frzn?: boolean; + createdAt?: string; +} +export interface CreateFullTextSearchInput { + clientMutationId?: string; + fullTextSearch: FullTextSearchInput; +} +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; + commit: CommitInput; +} +export interface CommitInput { + id?: string; + message?: string; + databaseId: string; + storeId: string; + parentIds?: string[]; + authorId?: string; + committerId?: string; + treeId?: string; + date?: string; +} +export interface CreateOrgLimitInput { + clientMutationId?: string; + orgLimit: OrgLimitInput; +} +export interface OrgLimitInput { + id?: string; + name?: string; + actorId: string; + num?: number; + max?: number; + entityId: string; +} +export interface CreateAppGrantInput { + clientMutationId?: string; + appGrant: AppGrantInput; +} +export interface AppGrantInput { + id?: string; + permissions?: string; + isGrant?: boolean; + actorId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateOrgClaimedInviteInput { + clientMutationId?: string; + orgClaimedInvite: OrgClaimedInviteInput; +} +export interface OrgClaimedInviteInput { + id?: string; + data?: unknown; + senderId?: string; + receiverId?: string; + createdAt?: string; + updatedAt?: string; + entityId: string; +} +export interface CreateDomainInput { + clientMutationId?: string; + domain: DomainInput; +} +export interface DomainInput { + id?: string; + databaseId: string; + apiId?: string; + siteId?: string; + subdomain?: ConstructiveInternalTypeHostname; + domain?: ConstructiveInternalTypeHostname; +} +export interface CreateOrgGrantInput { + clientMutationId?: string; + orgGrant: OrgGrantInput; +} +export interface OrgGrantInput { + id?: string; + permissions?: string; + isGrant?: boolean; + actorId: string; + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateOrgMembershipDefaultInput { + clientMutationId?: string; + orgMembershipDefault: OrgMembershipDefaultInput; +} +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; + sessionsModule: SessionsModuleInput; +} +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; + email: EmailInput; +} +export interface EmailInput { + id?: string; + ownerId?: string; + email: ConstructiveInternalTypeEmail; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppLevelRequirementInput { + clientMutationId?: string; + appLevelRequirement: AppLevelRequirementInput; +} +export interface AppLevelRequirementInput { + id?: string; + name: string; + level: string; + description?: string; + requiredCount?: number; + priority?: number; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAuditLogInput { + clientMutationId?: string; + auditLog: AuditLogInput; +} +export interface AuditLogInput { + id?: string; + event: string; + actorId?: string; + origin?: ConstructiveInternalTypeOrigin; + userAgent?: string; + ipAddress?: string; + success: boolean; + createdAt?: string; +} +export interface CreateAppLevelInput { + clientMutationId?: string; + appLevel: AppLevelInput; +} +export interface AppLevelInput { + id?: string; + name: string; + description?: string; + image?: ConstructiveInternalTypeImage; + ownerId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateRlsModuleInput { + clientMutationId?: string; + rlsModule: RlsModuleInput; +} +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; + denormalizedTableField: DenormalizedTableFieldInput; +} +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; + sqlMigration: SqlMigrationInput; +} +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; + cryptoAuthModule: CryptoAuthModuleInput; +} +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; + databaseProvisionModule: DatabaseProvisionModuleInput; +} +export interface DatabaseProvisionModuleInput { + id?: string; + databaseName: string; + ownerId: string; + subdomain?: string; + domain: string; + modules?: string[]; + options?: unknown; + bootstrapUser?: boolean; + status?: string; + errorMessage?: string; + databaseId?: string; + createdAt?: string; + updatedAt?: string; + completedAt?: string; +} +export interface CreateInvitesModuleInput { + clientMutationId?: string; + invitesModule: InvitesModuleInput; +} +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; + view: ViewInput; +} +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; + astMigration: AstMigrationInput; +} +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; + appMembership: AppMembershipInput; +} +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; + orgMembership: OrgMembershipInput; +} +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; + app: AppInput; +} +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; + site: SiteInput; +} +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; + user: UserInput; +} +export interface UserInput { + id?: string; + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + searchTsv?: string; + type?: number; + createdAt?: string; + updatedAt?: string; +} +export interface CreatePermissionsModuleInput { + clientMutationId?: string; + permissionsModule: PermissionsModuleInput; +} +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; + primaryKeyConstraint: PrimaryKeyConstraintInput; +} +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; + trigger: TriggerInput; +} +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; + checkConstraint: CheckConstraintInput; +} +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; + uniqueConstraint: UniqueConstraintInput; +} +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; + procedure: ProcedureInput; +} +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; + policy: PolicyInput; +} +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; + invite: InviteInput; +} +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; + index: IndexInput; +} +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; + limitsModule: LimitsModuleInput; +} +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; + schema: SchemaInput; +} +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; + profilesModule: ProfilesModuleInput; +} +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; + orgInvite: OrgInviteInput; +} +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; + hierarchyModule: HierarchyModuleInput; +} +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; + foreignKeyConstraint: ForeignKeyConstraintInput; +} +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; + table: TableInput; +} +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; + levelsModule: LevelsModuleInput; +} +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; + userAuthModule: UserAuthModuleInput; +} +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; + field: FieldInput; +} +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; + membershipsModule: MembershipsModuleInput; +} +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; + defaultIdsModulePatch: DefaultIdsModulePatch; +} +export interface DefaultIdsModulePatch { + id?: string; + databaseId?: string; +} +export interface UpdateViewTableInput { + clientMutationId?: string; + id: string; + viewTablePatch: ViewTablePatch; +} +export interface ViewTablePatch { + id?: string; + viewId?: string; + tableId?: string; + joinOrder?: number; +} +export interface UpdateApiSchemaInput { + clientMutationId?: string; + id: string; + apiSchemaPatch: ApiSchemaPatch; +} +export interface ApiSchemaPatch { + id?: string; + databaseId?: string; + schemaId?: string; + apiId?: string; +} +export interface UpdateSiteThemeInput { + clientMutationId?: string; + id: string; + siteThemePatch: SiteThemePatch; +} +export interface SiteThemePatch { + id?: string; + databaseId?: string; + siteId?: string; + theme?: unknown; +} +export interface UpdateOrgMemberInput { + clientMutationId?: string; + id: string; + orgMemberPatch: OrgMemberPatch; +} +export interface OrgMemberPatch { + id?: string; + isAdmin?: boolean; + actorId?: string; + entityId?: string; +} +export interface UpdateAppPermissionDefaultInput { + clientMutationId?: string; + id: string; + appPermissionDefaultPatch: AppPermissionDefaultPatch; +} +export interface AppPermissionDefaultPatch { + id?: string; + permissions?: string; +} +export interface UpdateRefInput { + clientMutationId?: string; + id: string; + databaseId: string; + refPatch: RefPatch; +} +export interface RefPatch { + id?: string; + name?: string; + databaseId?: string; + storeId?: string; + commitId?: string; +} +export interface UpdateStoreInput { + clientMutationId?: string; + id: string; + storePatch: StorePatch; +} +export interface StorePatch { + id?: string; + name?: string; + databaseId?: string; + hash?: string; + createdAt?: string; +} +export interface UpdateApiModuleInput { + clientMutationId?: string; + id: string; + apiModulePatch: ApiModulePatch; +} +export interface ApiModulePatch { + id?: string; + databaseId?: string; + apiId?: string; + name?: string; + data?: unknown; +} +export interface UpdateSiteModuleInput { + clientMutationId?: string; + id: string; + siteModulePatch: SiteModulePatch; +} +export interface SiteModulePatch { + id?: string; + databaseId?: string; + siteId?: string; + name?: string; + data?: unknown; +} +export interface UpdateEncryptedSecretsModuleInput { + clientMutationId?: string; + id: string; + encryptedSecretsModulePatch: EncryptedSecretsModulePatch; +} +export interface EncryptedSecretsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +export interface UpdateMembershipTypesModuleInput { + clientMutationId?: string; + id: string; + membershipTypesModulePatch: MembershipTypesModulePatch; +} +export interface MembershipTypesModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +export interface UpdateSecretsModuleInput { + clientMutationId?: string; + id: string; + secretsModulePatch: SecretsModulePatch; +} +export interface SecretsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +export interface UpdateUuidModuleInput { + clientMutationId?: string; + id: string; + uuidModulePatch: UuidModulePatch; +} +export interface UuidModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + uuidFunction?: string; + uuidSeed?: string; +} +export interface UpdateRoleTypeInput { + clientMutationId?: string; + id: number; + roleTypePatch: RoleTypePatch; +} +export interface RoleTypePatch { + id?: number; + name?: string; +} +export interface UpdateOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; +} +export interface OrgPermissionDefaultPatch { + id?: string; + permissions?: string; + entityId?: string; +} +export interface UpdateSchemaGrantInput { + clientMutationId?: string; + id: string; + schemaGrantPatch: SchemaGrantPatch; +} +export interface SchemaGrantPatch { + id?: string; + databaseId?: string; + schemaId?: string; + granteeName?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateTriggerFunctionInput { + clientMutationId?: string; + id: string; + triggerFunctionPatch: TriggerFunctionPatch; +} +export interface TriggerFunctionPatch { + id?: string; + databaseId?: string; + name?: string; + code?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateViewGrantInput { + clientMutationId?: string; + id: string; + viewGrantPatch: ViewGrantPatch; +} +export interface ViewGrantPatch { + id?: string; + databaseId?: string; + viewId?: string; + roleName?: string; + privilege?: string; + withGrantOption?: boolean; +} +export interface UpdateViewRuleInput { + clientMutationId?: string; + id: string; + viewRulePatch: ViewRulePatch; +} +export interface ViewRulePatch { + id?: string; + databaseId?: string; + viewId?: string; + name?: string; + event?: string; + action?: string; +} +export interface UpdateAppAdminGrantInput { + clientMutationId?: string; + id: string; + appAdminGrantPatch: AppAdminGrantPatch; +} +export interface AppAdminGrantPatch { + id?: string; + isGrant?: boolean; + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAppOwnerGrantInput { + clientMutationId?: string; + id: string; + appOwnerGrantPatch: AppOwnerGrantPatch; +} +export interface AppOwnerGrantPatch { + id?: string; + isGrant?: boolean; + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAppLimitDefaultInput { + clientMutationId?: string; + id: string; + appLimitDefaultPatch: AppLimitDefaultPatch; +} +export interface AppLimitDefaultPatch { + id?: string; + name?: string; + max?: number; +} +export interface UpdateOrgLimitDefaultInput { + clientMutationId?: string; + id: string; + orgLimitDefaultPatch: OrgLimitDefaultPatch; +} +export interface OrgLimitDefaultPatch { + id?: string; + name?: string; + max?: number; +} +export interface UpdateApiInput { + clientMutationId?: string; + id: string; + apiPatch: ApiPatch; +} +export interface ApiPatch { + id?: string; + databaseId?: string; + name?: string; + dbname?: string; + roleName?: string; + anonRole?: string; + isPublic?: boolean; +} +export interface UpdateConnectedAccountsModuleInput { + clientMutationId?: string; + id: string; + connectedAccountsModulePatch: ConnectedAccountsModulePatch; +} +export interface ConnectedAccountsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; +} +export interface UpdateEmailsModuleInput { + clientMutationId?: string; + id: string; + emailsModulePatch: EmailsModulePatch; +} +export interface EmailsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; +} +export interface UpdatePhoneNumbersModuleInput { + clientMutationId?: string; + id: string; + phoneNumbersModulePatch: PhoneNumbersModulePatch; +} +export interface PhoneNumbersModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; +} +export interface UpdateTableModuleInput { + clientMutationId?: string; + id: string; + tableModulePatch: TableModulePatch; +} +export interface TableModulePatch { + id?: string; + databaseId?: string; + privateSchemaId?: string; + tableId?: string; + nodeType?: string; + data?: unknown; + fields?: string[]; +} +export interface UpdateUsersModuleInput { + clientMutationId?: string; + id: string; + usersModulePatch: UsersModulePatch; +} +export interface UsersModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + tableId?: string; + tableName?: string; + typeTableId?: string; + typeTableName?: string; +} +export interface UpdateOrgAdminGrantInput { + clientMutationId?: string; + id: string; + orgAdminGrantPatch: OrgAdminGrantPatch; +} +export interface OrgAdminGrantPatch { + id?: string; + isGrant?: boolean; + actorId?: string; + entityId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateOrgOwnerGrantInput { + clientMutationId?: string; + id: string; + orgOwnerGrantPatch: OrgOwnerGrantPatch; +} +export interface OrgOwnerGrantPatch { + id?: string; + isGrant?: boolean; + actorId?: string; + entityId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateCryptoAddressInput { + clientMutationId?: string; + id: string; + cryptoAddressPatch: CryptoAddressPatch; +} +export interface CryptoAddressPatch { + id?: string; + ownerId?: string; + address?: string; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateMembershipTypeInput { + clientMutationId?: string; + id: number; + membershipTypePatch: MembershipTypePatch; +} +export interface MembershipTypePatch { + id?: number; + name?: string; + description?: string; + prefix?: string; +} +export interface UpdateDatabaseInput { + clientMutationId?: string; + id: string; + databasePatch: DatabasePatch; +} +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; + limitFunctionPatch: LimitFunctionPatch; +} +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; + tableGrantPatch: TableGrantPatch; +} +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; + cryptoAddressesModulePatch: CryptoAddressesModulePatch; +} +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; + connectedAccountPatch: ConnectedAccountPatch; +} +export interface ConnectedAccountPatch { + id?: string; + ownerId?: string; + service?: string; + identifier?: string; + details?: unknown; + isVerified?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface UpdatePhoneNumberInput { + clientMutationId?: string; + id: string; + phoneNumberPatch: PhoneNumberPatch; +} +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; + appPermissionPatch: AppPermissionPatch; +} +export interface AppPermissionPatch { + id?: string; + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; +} +export interface UpdateOrgPermissionInput { + clientMutationId?: string; + id: string; + orgPermissionPatch: OrgPermissionPatch; +} +export interface OrgPermissionPatch { + id?: string; + name?: string; + bitnum?: number; + bitstr?: string; + description?: string; +} +export interface UpdateAppLimitInput { + clientMutationId?: string; + id: string; + appLimitPatch: AppLimitPatch; +} +export interface AppLimitPatch { + id?: string; + name?: string; + actorId?: string; + num?: number; + max?: number; +} +export interface UpdateAppAchievementInput { + clientMutationId?: string; + id: string; + appAchievementPatch: AppAchievementPatch; +} +export interface AppAchievementPatch { + id?: string; + actorId?: string; + name?: string; + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAppStepInput { + clientMutationId?: string; + id: string; + appStepPatch: AppStepPatch; +} +export interface AppStepPatch { + id?: string; + actorId?: string; + name?: string; + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateClaimedInviteInput { + clientMutationId?: string; + id: string; + claimedInvitePatch: ClaimedInvitePatch; +} +export interface ClaimedInvitePatch { + id?: string; + data?: unknown; + senderId?: string; + receiverId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAppMembershipDefaultInput { + clientMutationId?: string; + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +export interface AppMembershipDefaultPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; +} +export interface UpdateSiteMetadatumInput { + clientMutationId?: string; + id: string; + siteMetadatumPatch: SiteMetadatumPatch; +} +export interface SiteMetadatumPatch { + id?: string; + databaseId?: string; + siteId?: string; + title?: string; + description?: string; + ogImage?: ConstructiveInternalTypeImage; +} +export interface UpdateFieldModuleInput { + clientMutationId?: string; + id: string; + fieldModulePatch: FieldModulePatch; +} +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; + tableTemplateModulePatch: TableTemplateModulePatch; +} +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; + name: string; + nodeTypeRegistryPatch: NodeTypeRegistryPatch; +} +export interface NodeTypeRegistryPatch { + name?: string; + slug?: string; + category?: string; + displayName?: string; + description?: string; + parameterSchema?: unknown; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateObjectInput { + clientMutationId?: string; + id: string; + databaseId: string; + objectPatch: ObjectPatch; +} +export interface ObjectPatch { + id?: string; + databaseId?: string; + kids?: string[]; + ktree?: string[]; + data?: unknown; + frzn?: boolean; + createdAt?: string; +} +export interface UpdateFullTextSearchInput { + clientMutationId?: string; + id: string; + fullTextSearchPatch: FullTextSearchPatch; +} +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; + id: string; + databaseId: string; + commitPatch: CommitPatch; +} +export interface CommitPatch { + id?: string; + message?: string; + databaseId?: string; + storeId?: string; + parentIds?: string[]; + authorId?: string; + committerId?: string; + treeId?: string; + date?: string; +} +export interface UpdateOrgLimitInput { + clientMutationId?: string; + id: string; + orgLimitPatch: OrgLimitPatch; +} +export interface OrgLimitPatch { + id?: string; + name?: string; + actorId?: string; + num?: number; + max?: number; + entityId?: string; +} +export interface UpdateAppGrantInput { + clientMutationId?: string; + id: string; + appGrantPatch: AppGrantPatch; +} +export interface AppGrantPatch { + id?: string; + permissions?: string; + isGrant?: boolean; + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateOrgClaimedInviteInput { + clientMutationId?: string; + id: string; + orgClaimedInvitePatch: OrgClaimedInvitePatch; +} +export interface OrgClaimedInvitePatch { + id?: string; + data?: unknown; + senderId?: string; + receiverId?: string; + createdAt?: string; + updatedAt?: string; + entityId?: string; +} +export interface UpdateDomainInput { + clientMutationId?: string; + id: string; + domainPatch: DomainPatch; +} +export interface DomainPatch { + id?: string; + databaseId?: string; + apiId?: string; + siteId?: string; + subdomain?: ConstructiveInternalTypeHostname; + domain?: ConstructiveInternalTypeHostname; +} +export interface UpdateOrgGrantInput { + clientMutationId?: string; + id: string; + orgGrantPatch: OrgGrantPatch; +} +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; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; +} +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; + sessionsModulePatch: SessionsModulePatch; +} +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; + emailPatch: EmailPatch; +} +export interface EmailPatch { + id?: string; + ownerId?: string; + email?: ConstructiveInternalTypeEmail; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAppLevelRequirementInput { + clientMutationId?: string; + id: string; + appLevelRequirementPatch: AppLevelRequirementPatch; +} +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; + auditLogPatch: AuditLogPatch; +} +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; + appLevelPatch: AppLevelPatch; +} +export interface AppLevelPatch { + id?: string; + name?: string; + description?: string; + image?: ConstructiveInternalTypeImage; + ownerId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateRlsModuleInput { + clientMutationId?: string; + id: string; + rlsModulePatch: RlsModulePatch; +} +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; + denormalizedTableFieldPatch: DenormalizedTableFieldPatch; +} +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; + cryptoAuthModulePatch: CryptoAuthModulePatch; +} +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; + databaseProvisionModulePatch: DatabaseProvisionModulePatch; +} +export interface DatabaseProvisionModulePatch { + id?: string; + databaseName?: string; + ownerId?: string; + subdomain?: string; + domain?: string; + modules?: string[]; + options?: unknown; + bootstrapUser?: boolean; + status?: string; + errorMessage?: string; + databaseId?: string; + createdAt?: string; + updatedAt?: string; + completedAt?: string; +} +export interface UpdateInvitesModuleInput { + clientMutationId?: string; + id: string; + invitesModulePatch: InvitesModulePatch; +} +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; + viewPatch: ViewPatch; +} +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; + appMembershipPatch: AppMembershipPatch; +} +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; + orgMembershipPatch: OrgMembershipPatch; +} +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; + appPatch: AppPatch; +} +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; + sitePatch: SitePatch; +} +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; + userPatch: UserPatch; +} +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; + permissionsModulePatch: PermissionsModulePatch; +} +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; + primaryKeyConstraintPatch: PrimaryKeyConstraintPatch; +} +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; + triggerPatch: TriggerPatch; +} +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; + checkConstraintPatch: CheckConstraintPatch; +} +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; + uniqueConstraintPatch: UniqueConstraintPatch; +} +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; + procedurePatch: ProcedurePatch; +} +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; + policyPatch: PolicyPatch; +} +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; + invitePatch: InvitePatch; +} +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; + indexPatch: IndexPatch; +} +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; + limitsModulePatch: LimitsModulePatch; +} +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; + schemaPatch: SchemaPatch; +} +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; + profilesModulePatch: ProfilesModulePatch; +} +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; + orgInvitePatch: OrgInvitePatch; +} +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; + hierarchyModulePatch: HierarchyModulePatch; +} +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; + foreignKeyConstraintPatch: ForeignKeyConstraintPatch; +} +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; + tablePatch: TablePatch; +} +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; + levelsModulePatch: LevelsModulePatch; +} +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; + userAuthModulePatch: UserAuthModulePatch; +} +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; + fieldPatch: FieldPatch; +} +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; + membershipsModulePatch: MembershipsModulePatch; +} +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; + id: string; + databaseId: string; +} +export interface DeleteStoreInput { + clientMutationId?: string; + 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; + name: string; +} +export interface DeleteObjectInput { + clientMutationId?: string; + id: string; + databaseId: string; +} +export interface DeleteFullTextSearchInput { + clientMutationId?: string; + id: string; +} +export interface DeleteCommitInput { + clientMutationId?: string; + id: string; + 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; +} +export interface GetAllConnection { + nodes: GetAllRecord[]; + edges: GetAllEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppPermissionConnection { + nodes: AppPermission[]; + edges: AppPermissionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgPermissionConnection { + nodes: OrgPermission[]; + edges: OrgPermissionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface ObjectConnection { + nodes: Object[]; + edges: ObjectEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppLevelRequirementConnection { + nodes: AppLevelRequirement[]; + edges: AppLevelRequirementEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface DefaultIdsModuleConnection { + nodes: DefaultIdsModule[]; + edges: DefaultIdsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface ViewTableConnection { + nodes: ViewTable[]; + edges: ViewTableEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface ApiSchemaConnection { + nodes: ApiSchema[]; + edges: ApiSchemaEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface SiteThemeConnection { + nodes: SiteTheme[]; + edges: SiteThemeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgMemberConnection { + nodes: OrgMember[]; + edges: OrgMemberEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppPermissionDefaultConnection { + nodes: AppPermissionDefault[]; + edges: AppPermissionDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface RefConnection { + nodes: Ref[]; + edges: RefEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface StoreConnection { + nodes: Store[]; + edges: StoreEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface ApiModuleConnection { + nodes: ApiModule[]; + edges: ApiModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface SiteModuleConnection { + nodes: SiteModule[]; + edges: SiteModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface EncryptedSecretsModuleConnection { + nodes: EncryptedSecretsModule[]; + edges: EncryptedSecretsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface MembershipTypesModuleConnection { + nodes: MembershipTypesModule[]; + edges: MembershipTypesModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface SecretsModuleConnection { + nodes: SecretsModule[]; + edges: SecretsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface UuidModuleConnection { + nodes: UuidModule[]; + edges: UuidModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface RoleTypeConnection { + nodes: RoleType[]; + edges: RoleTypeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgPermissionDefaultConnection { + nodes: OrgPermissionDefault[]; + edges: OrgPermissionDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface SchemaGrantConnection { + nodes: SchemaGrant[]; + edges: SchemaGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface TriggerFunctionConnection { + nodes: TriggerFunction[]; + edges: TriggerFunctionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface ViewGrantConnection { + nodes: ViewGrant[]; + edges: ViewGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface ViewRuleConnection { + nodes: ViewRule[]; + edges: ViewRuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppAdminGrantConnection { + nodes: AppAdminGrant[]; + edges: AppAdminGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppOwnerGrantConnection { + nodes: AppOwnerGrant[]; + edges: AppOwnerGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppLimitDefaultConnection { + nodes: AppLimitDefault[]; + edges: AppLimitDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgLimitDefaultConnection { + nodes: OrgLimitDefault[]; + edges: OrgLimitDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface ApiConnection { + nodes: Api[]; + edges: ApiEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface ConnectedAccountsModuleConnection { + nodes: ConnectedAccountsModule[]; + edges: ConnectedAccountsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface EmailsModuleConnection { + nodes: EmailsModule[]; + edges: EmailsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface PhoneNumbersModuleConnection { + nodes: PhoneNumbersModule[]; + edges: PhoneNumbersModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface TableModuleConnection { + nodes: TableModule[]; + edges: TableModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface UsersModuleConnection { + nodes: UsersModule[]; + edges: UsersModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgAdminGrantConnection { + nodes: OrgAdminGrant[]; + edges: OrgAdminGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgOwnerGrantConnection { + nodes: OrgOwnerGrant[]; + edges: OrgOwnerGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface CryptoAddressConnection { + nodes: CryptoAddress[]; + edges: CryptoAddressEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface MembershipTypeConnection { + nodes: MembershipType[]; + edges: MembershipTypeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface DatabaseConnection { + nodes: Database[]; + edges: DatabaseEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface LimitFunctionConnection { + nodes: LimitFunction[]; + edges: LimitFunctionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface TableGrantConnection { + nodes: TableGrant[]; + edges: TableGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface CryptoAddressesModuleConnection { + nodes: CryptoAddressesModule[]; + edges: CryptoAddressesModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface ConnectedAccountConnection { + nodes: ConnectedAccount[]; + edges: ConnectedAccountEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface PhoneNumberConnection { + nodes: PhoneNumber[]; + edges: PhoneNumberEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppLimitConnection { + nodes: AppLimit[]; + edges: AppLimitEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppAchievementConnection { + nodes: AppAchievement[]; + edges: AppAchievementEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppStepConnection { + nodes: AppStep[]; + edges: AppStepEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface ClaimedInviteConnection { + nodes: ClaimedInvite[]; + edges: ClaimedInviteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppMembershipDefaultConnection { + nodes: AppMembershipDefault[]; + edges: AppMembershipDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface SiteMetadatumConnection { + nodes: SiteMetadatum[]; + edges: SiteMetadatumEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface FieldModuleConnection { + nodes: FieldModule[]; + edges: FieldModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface TableTemplateModuleConnection { + nodes: TableTemplateModule[]; + edges: TableTemplateModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface NodeTypeRegistryConnection { + nodes: NodeTypeRegistry[]; + edges: NodeTypeRegistryEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface FullTextSearchConnection { + nodes: FullTextSearch[]; + edges: FullTextSearchEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface CommitConnection { + nodes: Commit[]; + edges: CommitEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgLimitConnection { + nodes: OrgLimit[]; + edges: OrgLimitEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppGrantConnection { + nodes: AppGrant[]; + edges: AppGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgClaimedInviteConnection { + nodes: OrgClaimedInvite[]; + edges: OrgClaimedInviteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface DomainConnection { + nodes: Domain[]; + edges: DomainEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgGrantConnection { + nodes: OrgGrant[]; + edges: OrgGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgMembershipDefaultConnection { + nodes: OrgMembershipDefault[]; + edges: OrgMembershipDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface SessionsModuleConnection { + nodes: SessionsModule[]; + edges: SessionsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface EmailConnection { + nodes: Email[]; + edges: EmailEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AuditLogConnection { + nodes: AuditLog[]; + edges: AuditLogEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppLevelConnection { + nodes: AppLevel[]; + edges: AppLevelEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface RlsModuleConnection { + nodes: RlsModule[]; + edges: RlsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface DenormalizedTableFieldConnection { + nodes: DenormalizedTableField[]; + edges: DenormalizedTableFieldEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface SqlMigrationConnection { + nodes: SqlMigration[]; + edges: SqlMigrationEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface CryptoAuthModuleConnection { + nodes: CryptoAuthModule[]; + edges: CryptoAuthModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface DatabaseProvisionModuleConnection { + nodes: DatabaseProvisionModule[]; + edges: DatabaseProvisionModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface InvitesModuleConnection { + nodes: InvitesModule[]; + edges: InvitesModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface ViewConnection { + nodes: View[]; + edges: ViewEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AstMigrationConnection { + nodes: AstMigration[]; + edges: AstMigrationEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppMembershipConnection { + nodes: AppMembership[]; + edges: AppMembershipEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgMembershipConnection { + nodes: OrgMembership[]; + edges: OrgMembershipEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface AppConnection { + nodes: App[]; + edges: AppEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface SiteConnection { + nodes: Site[]; + edges: SiteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface UserConnection { + nodes: User[]; + edges: UserEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface PermissionsModuleConnection { + nodes: PermissionsModule[]; + edges: PermissionsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface PrimaryKeyConstraintConnection { + nodes: PrimaryKeyConstraint[]; + edges: PrimaryKeyConstraintEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface TriggerConnection { + nodes: Trigger[]; + edges: TriggerEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface CheckConstraintConnection { + nodes: CheckConstraint[]; + edges: CheckConstraintEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface UniqueConstraintConnection { + nodes: UniqueConstraint[]; + edges: UniqueConstraintEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface ProcedureConnection { + nodes: Procedure[]; + edges: ProcedureEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface PolicyConnection { + nodes: Policy[]; + edges: PolicyEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface InviteConnection { + nodes: Invite[]; + edges: InviteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface IndexConnection { + nodes: Index[]; + edges: IndexEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface LimitsModuleConnection { + nodes: LimitsModule[]; + edges: LimitsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface SchemaConnection { + nodes: Schema[]; + edges: SchemaEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface ProfilesModuleConnection { + nodes: ProfilesModule[]; + edges: ProfilesModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface OrgInviteConnection { + nodes: OrgInvite[]; + edges: OrgInviteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface HierarchyModuleConnection { + nodes: HierarchyModule[]; + edges: HierarchyModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface ForeignKeyConstraintConnection { + nodes: ForeignKeyConstraint[]; + edges: ForeignKeyConstraintEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface TableConnection { + nodes: Table[]; + edges: TableEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface LevelsModuleConnection { + nodes: LevelsModule[]; + edges: LevelsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface UserAuthModuleConnection { + nodes: UserAuthModule[]; + edges: UserAuthModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface FieldConnection { + nodes: Field[]; + edges: FieldEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export interface MembershipsModuleConnection { + nodes: MembershipsModule[]; + edges: MembershipsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +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; + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export interface CreateViewTablePayload { + clientMutationId?: string | null; + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export interface CreateApiSchemaPayload { + clientMutationId?: string | null; + apiSchema?: ApiSchema | null; + apiSchemaEdge?: ApiSchemaEdge | null; +} +export interface CreateSiteThemePayload { + clientMutationId?: string | null; + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} +export interface CreateOrgMemberPayload { + clientMutationId?: string | null; + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; +} +export interface CreateAppPermissionDefaultPayload { + clientMutationId?: string | null; + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export interface CreateRefPayload { + clientMutationId?: string | null; + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export interface CreateStorePayload { + clientMutationId?: string | null; + store?: Store | null; + storeEdge?: StoreEdge | null; +} +export interface CreateApiModulePayload { + clientMutationId?: string | null; + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export interface CreateSiteModulePayload { + clientMutationId?: string | null; + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; +} +export interface CreateEncryptedSecretsModulePayload { + clientMutationId?: string | null; + encryptedSecretsModule?: EncryptedSecretsModule | null; + encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; +} +export interface CreateMembershipTypesModulePayload { + clientMutationId?: string | null; + membershipTypesModule?: MembershipTypesModule | null; + membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; +} +export interface CreateSecretsModulePayload { + clientMutationId?: string | null; + secretsModule?: SecretsModule | null; + secretsModuleEdge?: SecretsModuleEdge | null; +} +export interface CreateUuidModulePayload { + clientMutationId?: string | null; + uuidModule?: UuidModule | null; + uuidModuleEdge?: UuidModuleEdge | null; +} +export interface CreateRoleTypePayload { + clientMutationId?: string | null; + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export interface CreateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export interface CreateSchemaGrantPayload { + clientMutationId?: string | null; + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export interface CreateTriggerFunctionPayload { + clientMutationId?: string | null; + triggerFunction?: TriggerFunction | null; + triggerFunctionEdge?: TriggerFunctionEdge | null; +} +export interface CreateViewGrantPayload { + clientMutationId?: string | null; + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; +} +export interface CreateViewRulePayload { + clientMutationId?: string | null; + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export interface CreateAppAdminGrantPayload { + clientMutationId?: string | null; + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export interface CreateAppOwnerGrantPayload { + clientMutationId?: string | null; + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export interface CreateAppLimitDefaultPayload { + clientMutationId?: string | null; + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface CreateOrgLimitDefaultPayload { + clientMutationId?: string | null; + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export interface CreateApiPayload { + clientMutationId?: string | null; + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export interface CreateConnectedAccountsModulePayload { + clientMutationId?: string | null; + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export interface CreateEmailsModulePayload { + clientMutationId?: string | null; + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export interface CreatePhoneNumbersModulePayload { + clientMutationId?: string | null; + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; +} +export interface CreateTableModulePayload { + clientMutationId?: string | null; + tableModule?: TableModule | null; + tableModuleEdge?: TableModuleEdge | null; +} +export interface CreateUsersModulePayload { + clientMutationId?: string | null; + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export interface CreateOrgAdminGrantPayload { + clientMutationId?: string | null; + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export interface CreateOrgOwnerGrantPayload { + clientMutationId?: string | null; + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export interface CreateCryptoAddressPayload { + clientMutationId?: string | null; + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export interface CreateMembershipTypePayload { + clientMutationId?: string | null; + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export interface CreateDatabasePayload { + clientMutationId?: string | null; + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export interface CreateLimitFunctionPayload { + clientMutationId?: string | null; + limitFunction?: LimitFunction | null; + limitFunctionEdge?: LimitFunctionEdge | null; +} +export interface CreateTableGrantPayload { + clientMutationId?: string | null; + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} +export interface CreateCryptoAddressesModulePayload { + clientMutationId?: string | null; + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export interface CreateConnectedAccountPayload { + clientMutationId?: string | null; + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} +export interface CreatePhoneNumberPayload { + clientMutationId?: string | null; + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export interface CreateAppPermissionPayload { + clientMutationId?: string | null; + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface CreateOrgPermissionPayload { + clientMutationId?: string | null; + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface CreateAppLimitPayload { + clientMutationId?: string | null; + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export interface CreateAppAchievementPayload { + clientMutationId?: string | null; + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export interface CreateAppStepPayload { + clientMutationId?: string | null; + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export interface CreateClaimedInvitePayload { + clientMutationId?: string | null; + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export interface CreateAppMembershipDefaultPayload { + clientMutationId?: string | null; + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export interface CreateSiteMetadatumPayload { + clientMutationId?: string | null; + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} +export interface CreateFieldModulePayload { + clientMutationId?: string | null; + fieldModule?: FieldModule | null; + fieldModuleEdge?: FieldModuleEdge | null; +} +export interface CreateTableTemplateModulePayload { + clientMutationId?: string | null; + tableTemplateModule?: TableTemplateModule | null; + tableTemplateModuleEdge?: TableTemplateModuleEdge | null; +} +export interface CreateNodeTypeRegistryPayload { + clientMutationId?: string | null; + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export interface CreateObjectPayload { + clientMutationId?: string | null; + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export interface CreateFullTextSearchPayload { + clientMutationId?: string | null; + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export interface CreateCommitPayload { + clientMutationId?: string | null; + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export interface CreateOrgLimitPayload { + clientMutationId?: string | null; + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export interface CreateAppGrantPayload { + clientMutationId?: string | null; + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export interface CreateOrgClaimedInvitePayload { + clientMutationId?: string | null; + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export interface CreateDomainPayload { + clientMutationId?: string | null; + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export interface CreateOrgGrantPayload { + clientMutationId?: string | null; + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export interface CreateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export interface CreateSessionsModulePayload { + clientMutationId?: string | null; + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} +export interface CreateEmailPayload { + clientMutationId?: string | null; + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export interface CreateAppLevelRequirementPayload { + clientMutationId?: string | null; + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; +} +export interface CreateAuditLogPayload { + clientMutationId?: string | null; + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export interface CreateAppLevelPayload { + clientMutationId?: string | null; + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export interface CreateRlsModulePayload { + clientMutationId?: string | null; + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export interface CreateDenormalizedTableFieldPayload { + clientMutationId?: string | null; + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export interface CreateSqlMigrationPayload { + clientMutationId?: string | null; + sqlMigration?: SqlMigration | null; +} +export interface CreateCryptoAuthModulePayload { + clientMutationId?: string | null; + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export interface CreateDatabaseProvisionModulePayload { + clientMutationId?: string | null; + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export interface CreateInvitesModulePayload { + clientMutationId?: string | null; + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export interface CreateViewPayload { + clientMutationId?: string | null; + view?: View | null; + viewEdge?: ViewEdge | null; +} +export interface CreateAstMigrationPayload { + clientMutationId?: string | null; + astMigration?: AstMigration | null; +} +export interface CreateAppMembershipPayload { + clientMutationId?: string | null; + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export interface CreateOrgMembershipPayload { + clientMutationId?: string | null; + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export interface CreateAppPayload { + clientMutationId?: string | null; + app?: App | null; + appEdge?: AppEdge | null; +} +export interface CreateSitePayload { + clientMutationId?: string | null; + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export interface CreateUserPayload { + clientMutationId?: string | null; + user?: User | null; + userEdge?: UserEdge | null; +} +export interface CreatePermissionsModulePayload { + clientMutationId?: string | null; + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; +} +export interface CreatePrimaryKeyConstraintPayload { + clientMutationId?: string | null; + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export interface CreateTriggerPayload { + clientMutationId?: string | null; + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export interface CreateCheckConstraintPayload { + clientMutationId?: string | null; + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export interface CreateUniqueConstraintPayload { + clientMutationId?: string | null; + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export interface CreateProcedurePayload { + clientMutationId?: string | null; + procedure?: Procedure | null; + procedureEdge?: ProcedureEdge | null; +} +export interface CreatePolicyPayload { + clientMutationId?: string | null; + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export interface CreateInvitePayload { + clientMutationId?: string | null; + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export interface CreateIndexPayload { + clientMutationId?: string | null; + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export interface CreateLimitsModulePayload { + clientMutationId?: string | null; + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; +} +export interface CreateSchemaPayload { + clientMutationId?: string | null; + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} +export interface CreateProfilesModulePayload { + clientMutationId?: string | null; + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export interface CreateOrgInvitePayload { + clientMutationId?: string | null; + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +export interface CreateHierarchyModulePayload { + clientMutationId?: string | null; + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export interface CreateForeignKeyConstraintPayload { + clientMutationId?: string | null; + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export interface CreateTablePayload { + clientMutationId?: string | null; + table?: Table | null; + tableEdge?: TableEdge | null; +} +export interface CreateLevelsModulePayload { + clientMutationId?: string | null; + levelsModule?: LevelsModule | null; + levelsModuleEdge?: LevelsModuleEdge | null; +} +export interface CreateUserAuthModulePayload { + clientMutationId?: string | null; + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export interface CreateFieldPayload { + clientMutationId?: string | null; + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export interface CreateMembershipsModulePayload { + clientMutationId?: string | null; + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} +export interface UpdateDefaultIdsModulePayload { + clientMutationId?: string | null; + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export interface UpdateViewTablePayload { + clientMutationId?: string | null; + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export interface UpdateApiSchemaPayload { + clientMutationId?: string | null; + apiSchema?: ApiSchema | null; + apiSchemaEdge?: ApiSchemaEdge | null; +} +export interface UpdateSiteThemePayload { + clientMutationId?: string | null; + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} +export interface UpdateOrgMemberPayload { + clientMutationId?: string | null; + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; +} +export interface UpdateAppPermissionDefaultPayload { + clientMutationId?: string | null; + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export interface UpdateRefPayload { + clientMutationId?: string | null; + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export interface UpdateStorePayload { + clientMutationId?: string | null; + store?: Store | null; + storeEdge?: StoreEdge | null; +} +export interface UpdateApiModulePayload { + clientMutationId?: string | null; + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export interface UpdateSiteModulePayload { + clientMutationId?: string | null; + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; +} +export interface UpdateEncryptedSecretsModulePayload { + clientMutationId?: string | null; + encryptedSecretsModule?: EncryptedSecretsModule | null; + encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; +} +export interface UpdateMembershipTypesModulePayload { + clientMutationId?: string | null; + membershipTypesModule?: MembershipTypesModule | null; + membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; +} +export interface UpdateSecretsModulePayload { + clientMutationId?: string | null; + secretsModule?: SecretsModule | null; + secretsModuleEdge?: SecretsModuleEdge | null; +} +export interface UpdateUuidModulePayload { + clientMutationId?: string | null; + uuidModule?: UuidModule | null; + uuidModuleEdge?: UuidModuleEdge | null; +} +export interface UpdateRoleTypePayload { + clientMutationId?: string | null; + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export interface UpdateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export interface UpdateSchemaGrantPayload { + clientMutationId?: string | null; + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export interface UpdateTriggerFunctionPayload { + clientMutationId?: string | null; + triggerFunction?: TriggerFunction | null; + triggerFunctionEdge?: TriggerFunctionEdge | null; +} +export interface UpdateViewGrantPayload { + clientMutationId?: string | null; + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; +} +export interface UpdateViewRulePayload { + clientMutationId?: string | null; + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export interface UpdateAppAdminGrantPayload { + clientMutationId?: string | null; + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export interface UpdateAppOwnerGrantPayload { + clientMutationId?: string | null; + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export interface UpdateAppLimitDefaultPayload { + clientMutationId?: string | null; + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface UpdateOrgLimitDefaultPayload { + clientMutationId?: string | null; + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export interface UpdateApiPayload { + clientMutationId?: string | null; + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export interface UpdateConnectedAccountsModulePayload { + clientMutationId?: string | null; + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export interface UpdateEmailsModulePayload { + clientMutationId?: string | null; + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export interface UpdatePhoneNumbersModulePayload { + clientMutationId?: string | null; + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; +} +export interface UpdateTableModulePayload { + clientMutationId?: string | null; + tableModule?: TableModule | null; + tableModuleEdge?: TableModuleEdge | null; +} +export interface UpdateUsersModulePayload { + clientMutationId?: string | null; + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export interface UpdateOrgAdminGrantPayload { + clientMutationId?: string | null; + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export interface UpdateOrgOwnerGrantPayload { + clientMutationId?: string | null; + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export interface UpdateCryptoAddressPayload { + clientMutationId?: string | null; + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export interface UpdateMembershipTypePayload { + clientMutationId?: string | null; + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export interface UpdateDatabasePayload { + clientMutationId?: string | null; + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export interface UpdateLimitFunctionPayload { + clientMutationId?: string | null; + limitFunction?: LimitFunction | null; + limitFunctionEdge?: LimitFunctionEdge | null; +} +export interface UpdateTableGrantPayload { + clientMutationId?: string | null; + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} +export interface UpdateCryptoAddressesModulePayload { + clientMutationId?: string | null; + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export interface UpdateConnectedAccountPayload { + clientMutationId?: string | null; + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} +export interface UpdatePhoneNumberPayload { + clientMutationId?: string | null; + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export interface UpdateAppPermissionPayload { + clientMutationId?: string | null; + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface UpdateOrgPermissionPayload { + clientMutationId?: string | null; + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface UpdateAppLimitPayload { + clientMutationId?: string | null; + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export interface UpdateAppAchievementPayload { + clientMutationId?: string | null; + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export interface UpdateAppStepPayload { + clientMutationId?: string | null; + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export interface UpdateClaimedInvitePayload { + clientMutationId?: string | null; + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export interface UpdateAppMembershipDefaultPayload { + clientMutationId?: string | null; + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export interface UpdateSiteMetadatumPayload { + clientMutationId?: string | null; + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} +export interface UpdateFieldModulePayload { + clientMutationId?: string | null; + fieldModule?: FieldModule | null; + fieldModuleEdge?: FieldModuleEdge | null; +} +export interface UpdateTableTemplateModulePayload { + clientMutationId?: string | null; + tableTemplateModule?: TableTemplateModule | null; + tableTemplateModuleEdge?: TableTemplateModuleEdge | null; +} +export interface UpdateNodeTypeRegistryPayload { + clientMutationId?: string | null; + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export interface UpdateObjectPayload { + clientMutationId?: string | null; + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export interface UpdateFullTextSearchPayload { + clientMutationId?: string | null; + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export interface UpdateCommitPayload { + clientMutationId?: string | null; + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export interface UpdateOrgLimitPayload { + clientMutationId?: string | null; + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export interface UpdateAppGrantPayload { + clientMutationId?: string | null; + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export interface UpdateOrgClaimedInvitePayload { + clientMutationId?: string | null; + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export interface UpdateDomainPayload { + clientMutationId?: string | null; + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export interface UpdateOrgGrantPayload { + clientMutationId?: string | null; + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export interface UpdateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export interface UpdateSessionsModulePayload { + clientMutationId?: string | null; + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} +export interface UpdateEmailPayload { + clientMutationId?: string | null; + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export interface UpdateAppLevelRequirementPayload { + clientMutationId?: string | null; + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; +} +export interface UpdateAuditLogPayload { + clientMutationId?: string | null; + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export interface UpdateAppLevelPayload { + clientMutationId?: string | null; + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export interface UpdateRlsModulePayload { + clientMutationId?: string | null; + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export interface UpdateDenormalizedTableFieldPayload { + clientMutationId?: string | null; + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export interface UpdateCryptoAuthModulePayload { + clientMutationId?: string | null; + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export interface UpdateDatabaseProvisionModulePayload { + clientMutationId?: string | null; + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export interface UpdateInvitesModulePayload { + clientMutationId?: string | null; + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export interface UpdateViewPayload { + clientMutationId?: string | null; + view?: View | null; + viewEdge?: ViewEdge | null; +} +export interface UpdateAppMembershipPayload { + clientMutationId?: string | null; + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export interface UpdateOrgMembershipPayload { + clientMutationId?: string | null; + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export interface UpdateAppPayload { + clientMutationId?: string | null; + app?: App | null; + appEdge?: AppEdge | null; +} +export interface UpdateSitePayload { + clientMutationId?: string | null; + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export interface UpdateUserPayload { + clientMutationId?: string | null; + user?: User | null; + userEdge?: UserEdge | null; +} +export interface UpdatePermissionsModulePayload { + clientMutationId?: string | null; + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; +} +export interface UpdatePrimaryKeyConstraintPayload { + clientMutationId?: string | null; + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export interface UpdateTriggerPayload { + clientMutationId?: string | null; + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export interface UpdateCheckConstraintPayload { + clientMutationId?: string | null; + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export interface UpdateUniqueConstraintPayload { + clientMutationId?: string | null; + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export interface UpdateProcedurePayload { + clientMutationId?: string | null; + procedure?: Procedure | null; + procedureEdge?: ProcedureEdge | null; +} +export interface UpdatePolicyPayload { + clientMutationId?: string | null; + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export interface UpdateInvitePayload { + clientMutationId?: string | null; + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export interface UpdateIndexPayload { + clientMutationId?: string | null; + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export interface UpdateLimitsModulePayload { + clientMutationId?: string | null; + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; +} +export interface UpdateSchemaPayload { + clientMutationId?: string | null; + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} +export interface UpdateProfilesModulePayload { + clientMutationId?: string | null; + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export interface UpdateOrgInvitePayload { + clientMutationId?: string | null; + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +export interface UpdateHierarchyModulePayload { + clientMutationId?: string | null; + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export interface UpdateForeignKeyConstraintPayload { + clientMutationId?: string | null; + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export interface UpdateTablePayload { + clientMutationId?: string | null; + table?: Table | null; + tableEdge?: TableEdge | null; +} +export interface UpdateLevelsModulePayload { + clientMutationId?: string | null; + levelsModule?: LevelsModule | null; + levelsModuleEdge?: LevelsModuleEdge | null; +} +export interface UpdateUserAuthModulePayload { + clientMutationId?: string | null; + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export interface UpdateFieldPayload { + clientMutationId?: string | null; + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export interface UpdateMembershipsModulePayload { + clientMutationId?: string | null; + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} +export interface DeleteDefaultIdsModulePayload { + clientMutationId?: string | null; + defaultIdsModule?: DefaultIdsModule | null; + defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; +} +export interface DeleteViewTablePayload { + clientMutationId?: string | null; + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} +export interface DeleteApiSchemaPayload { + clientMutationId?: string | null; + apiSchema?: ApiSchema | null; + apiSchemaEdge?: ApiSchemaEdge | null; +} +export interface DeleteSiteThemePayload { + clientMutationId?: string | null; + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} +export interface DeleteOrgMemberPayload { + clientMutationId?: string | null; + orgMember?: OrgMember | null; + orgMemberEdge?: OrgMemberEdge | null; +} +export interface DeleteAppPermissionDefaultPayload { + clientMutationId?: string | null; + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; +} +export interface DeleteRefPayload { + clientMutationId?: string | null; + ref?: Ref | null; + refEdge?: RefEdge | null; +} +export interface DeleteStorePayload { + clientMutationId?: string | null; + store?: Store | null; + storeEdge?: StoreEdge | null; +} +export interface DeleteApiModulePayload { + clientMutationId?: string | null; + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export interface DeleteSiteModulePayload { + clientMutationId?: string | null; + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; +} +export interface DeleteEncryptedSecretsModulePayload { + clientMutationId?: string | null; + encryptedSecretsModule?: EncryptedSecretsModule | null; + encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; +} +export interface DeleteMembershipTypesModulePayload { + clientMutationId?: string | null; + membershipTypesModule?: MembershipTypesModule | null; + membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; +} +export interface DeleteSecretsModulePayload { + clientMutationId?: string | null; + secretsModule?: SecretsModule | null; + secretsModuleEdge?: SecretsModuleEdge | null; +} +export interface DeleteUuidModulePayload { + clientMutationId?: string | null; + uuidModule?: UuidModule | null; + uuidModuleEdge?: UuidModuleEdge | null; +} +export interface DeleteRoleTypePayload { + clientMutationId?: string | null; + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export interface DeleteOrgPermissionDefaultPayload { + clientMutationId?: string | null; + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export interface DeleteSchemaGrantPayload { + clientMutationId?: string | null; + schemaGrant?: SchemaGrant | null; + schemaGrantEdge?: SchemaGrantEdge | null; +} +export interface DeleteTriggerFunctionPayload { + clientMutationId?: string | null; + triggerFunction?: TriggerFunction | null; + triggerFunctionEdge?: TriggerFunctionEdge | null; +} +export interface DeleteViewGrantPayload { + clientMutationId?: string | null; + viewGrant?: ViewGrant | null; + viewGrantEdge?: ViewGrantEdge | null; +} +export interface DeleteViewRulePayload { + clientMutationId?: string | null; + viewRule?: ViewRule | null; + viewRuleEdge?: ViewRuleEdge | null; +} +export interface DeleteAppAdminGrantPayload { + clientMutationId?: string | null; + appAdminGrant?: AppAdminGrant | null; + appAdminGrantEdge?: AppAdminGrantEdge | null; +} +export interface DeleteAppOwnerGrantPayload { + clientMutationId?: string | null; + appOwnerGrant?: AppOwnerGrant | null; + appOwnerGrantEdge?: AppOwnerGrantEdge | null; +} +export interface DeleteAppLimitDefaultPayload { + clientMutationId?: string | null; + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface DeleteOrgLimitDefaultPayload { + clientMutationId?: string | null; + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} +export interface DeleteApiPayload { + clientMutationId?: string | null; + api?: Api | null; + apiEdge?: ApiEdge | null; +} +export interface DeleteConnectedAccountsModulePayload { + clientMutationId?: string | null; + connectedAccountsModule?: ConnectedAccountsModule | null; + connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; +} +export interface DeleteEmailsModulePayload { + clientMutationId?: string | null; + emailsModule?: EmailsModule | null; + emailsModuleEdge?: EmailsModuleEdge | null; +} +export interface DeletePhoneNumbersModulePayload { + clientMutationId?: string | null; + phoneNumbersModule?: PhoneNumbersModule | null; + phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; +} +export interface DeleteTableModulePayload { + clientMutationId?: string | null; + tableModule?: TableModule | null; + tableModuleEdge?: TableModuleEdge | null; +} +export interface DeleteUsersModulePayload { + clientMutationId?: string | null; + usersModule?: UsersModule | null; + usersModuleEdge?: UsersModuleEdge | null; +} +export interface DeleteOrgAdminGrantPayload { + clientMutationId?: string | null; + orgAdminGrant?: OrgAdminGrant | null; + orgAdminGrantEdge?: OrgAdminGrantEdge | null; +} +export interface DeleteOrgOwnerGrantPayload { + clientMutationId?: string | null; + orgOwnerGrant?: OrgOwnerGrant | null; + orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; +} +export interface DeleteCryptoAddressPayload { + clientMutationId?: string | null; + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export interface DeleteMembershipTypePayload { + clientMutationId?: string | null; + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export interface DeleteDatabasePayload { + clientMutationId?: string | null; + database?: Database | null; + databaseEdge?: DatabaseEdge | null; +} +export interface DeleteLimitFunctionPayload { + clientMutationId?: string | null; + limitFunction?: LimitFunction | null; + limitFunctionEdge?: LimitFunctionEdge | null; +} +export interface DeleteTableGrantPayload { + clientMutationId?: string | null; + tableGrant?: TableGrant | null; + tableGrantEdge?: TableGrantEdge | null; +} +export interface DeleteCryptoAddressesModulePayload { + clientMutationId?: string | null; + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; +} +export interface DeleteConnectedAccountPayload { + clientMutationId?: string | null; + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} +export interface DeletePhoneNumberPayload { + clientMutationId?: string | null; + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export interface DeleteAppPermissionPayload { + clientMutationId?: string | null; + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface DeleteOrgPermissionPayload { + clientMutationId?: string | null; + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface DeleteAppLimitPayload { + clientMutationId?: string | null; + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export interface DeleteAppAchievementPayload { + clientMutationId?: string | null; + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export interface DeleteAppStepPayload { + clientMutationId?: string | null; + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export interface DeleteClaimedInvitePayload { + clientMutationId?: string | null; + claimedInvite?: ClaimedInvite | null; + claimedInviteEdge?: ClaimedInviteEdge | null; +} +export interface DeleteAppMembershipDefaultPayload { + clientMutationId?: string | null; + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export interface DeleteSiteMetadatumPayload { + clientMutationId?: string | null; + siteMetadatum?: SiteMetadatum | null; + siteMetadatumEdge?: SiteMetadatumEdge | null; +} +export interface DeleteFieldModulePayload { + clientMutationId?: string | null; + fieldModule?: FieldModule | null; + fieldModuleEdge?: FieldModuleEdge | null; +} +export interface DeleteTableTemplateModulePayload { + clientMutationId?: string | null; + tableTemplateModule?: TableTemplateModule | null; + tableTemplateModuleEdge?: TableTemplateModuleEdge | null; +} +export interface DeleteNodeTypeRegistryPayload { + clientMutationId?: string | null; + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export interface DeleteObjectPayload { + clientMutationId?: string | null; + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export interface DeleteFullTextSearchPayload { + clientMutationId?: string | null; + fullTextSearch?: FullTextSearch | null; + fullTextSearchEdge?: FullTextSearchEdge | null; +} +export interface DeleteCommitPayload { + clientMutationId?: string | null; + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export interface DeleteOrgLimitPayload { + clientMutationId?: string | null; + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} +export interface DeleteAppGrantPayload { + clientMutationId?: string | null; + appGrant?: AppGrant | null; + appGrantEdge?: AppGrantEdge | null; +} +export interface DeleteOrgClaimedInvitePayload { + clientMutationId?: string | null; + orgClaimedInvite?: OrgClaimedInvite | null; + orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; +} +export interface DeleteDomainPayload { + clientMutationId?: string | null; + domain?: Domain | null; + domainEdge?: DomainEdge | null; +} +export interface DeleteOrgGrantPayload { + clientMutationId?: string | null; + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; +} +export interface DeleteOrgMembershipDefaultPayload { + clientMutationId?: string | null; + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export interface DeleteSessionsModulePayload { + clientMutationId?: string | null; + sessionsModule?: SessionsModule | null; + sessionsModuleEdge?: SessionsModuleEdge | null; +} +export interface DeleteEmailPayload { + clientMutationId?: string | null; + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export interface DeleteAppLevelRequirementPayload { + clientMutationId?: string | null; + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; +} +export interface DeleteAuditLogPayload { + clientMutationId?: string | null; + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export interface DeleteAppLevelPayload { + clientMutationId?: string | null; + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export interface DeleteRlsModulePayload { + clientMutationId?: string | null; + rlsModule?: RlsModule | null; + rlsModuleEdge?: RlsModuleEdge | null; +} +export interface DeleteDenormalizedTableFieldPayload { + clientMutationId?: string | null; + denormalizedTableField?: DenormalizedTableField | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; +} +export interface DeleteCryptoAuthModulePayload { + clientMutationId?: string | null; + cryptoAuthModule?: CryptoAuthModule | null; + cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; +} +export interface DeleteDatabaseProvisionModulePayload { + clientMutationId?: string | null; + databaseProvisionModule?: DatabaseProvisionModule | null; + databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; +} +export interface DeleteInvitesModulePayload { + clientMutationId?: string | null; + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export interface DeleteViewPayload { + clientMutationId?: string | null; + view?: View | null; + viewEdge?: ViewEdge | null; +} +export interface DeleteAppMembershipPayload { + clientMutationId?: string | null; + appMembership?: AppMembership | null; + appMembershipEdge?: AppMembershipEdge | null; +} +export interface DeleteOrgMembershipPayload { + clientMutationId?: string | null; + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} +export interface DeleteAppPayload { + clientMutationId?: string | null; + app?: App | null; + appEdge?: AppEdge | null; +} +export interface DeleteSitePayload { + clientMutationId?: string | null; + site?: Site | null; + siteEdge?: SiteEdge | null; +} +export interface DeleteUserPayload { + clientMutationId?: string | null; + user?: User | null; + userEdge?: UserEdge | null; +} +export interface DeletePermissionsModulePayload { + clientMutationId?: string | null; + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; +} +export interface DeletePrimaryKeyConstraintPayload { + clientMutationId?: string | null; + primaryKeyConstraint?: PrimaryKeyConstraint | null; + primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; +} +export interface DeleteTriggerPayload { + clientMutationId?: string | null; + trigger?: Trigger | null; + triggerEdge?: TriggerEdge | null; +} +export interface DeleteCheckConstraintPayload { + clientMutationId?: string | null; + checkConstraint?: CheckConstraint | null; + checkConstraintEdge?: CheckConstraintEdge | null; +} +export interface DeleteUniqueConstraintPayload { + clientMutationId?: string | null; + uniqueConstraint?: UniqueConstraint | null; + uniqueConstraintEdge?: UniqueConstraintEdge | null; +} +export interface DeleteProcedurePayload { + clientMutationId?: string | null; + procedure?: Procedure | null; + procedureEdge?: ProcedureEdge | null; +} +export interface DeletePolicyPayload { + clientMutationId?: string | null; + policy?: Policy | null; + policyEdge?: PolicyEdge | null; +} +export interface DeleteInvitePayload { + clientMutationId?: string | null; + invite?: Invite | null; + inviteEdge?: InviteEdge | null; +} +export interface DeleteIndexPayload { + clientMutationId?: string | null; + index?: Index | null; + indexEdge?: IndexEdge | null; +} +export interface DeleteLimitsModulePayload { + clientMutationId?: string | null; + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; +} +export interface DeleteSchemaPayload { + clientMutationId?: string | null; + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} +export interface DeleteProfilesModulePayload { + clientMutationId?: string | null; + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export interface DeleteOrgInvitePayload { + clientMutationId?: string | null; + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; +} +export interface DeleteHierarchyModulePayload { + clientMutationId?: string | null; + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export interface DeleteForeignKeyConstraintPayload { + clientMutationId?: string | null; + foreignKeyConstraint?: ForeignKeyConstraint | null; + foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; +} +export interface DeleteTablePayload { + clientMutationId?: string | null; + table?: Table | null; + tableEdge?: TableEdge | null; +} +export interface DeleteLevelsModulePayload { + clientMutationId?: string | null; + levelsModule?: LevelsModule | null; + levelsModuleEdge?: LevelsModuleEdge | null; +} +export interface DeleteUserAuthModulePayload { + clientMutationId?: string | null; + userAuthModule?: UserAuthModule | null; + userAuthModuleEdge?: UserAuthModuleEdge | null; +} +export interface DeleteFieldPayload { + clientMutationId?: string | null; + field?: Field | null; + fieldEdge?: FieldEdge | null; +} +export interface DeleteMembershipsModulePayload { + clientMutationId?: string | null; + membershipsModule?: MembershipsModule | null; + membershipsModuleEdge?: MembershipsModuleEdge | null; +} +export interface GetAllEdge { + cursor?: string | null; + node?: GetAllRecord | null; +} +export interface PageInfo { + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor?: string | null; + endCursor?: string | null; +} +export interface AppPermissionEdge { + cursor?: string | null; + node?: AppPermission | null; +} +export interface OrgPermissionEdge { + cursor?: string | null; + node?: OrgPermission | null; +} +export interface ObjectEdge { + cursor?: string | null; + node?: Object | null; +} +export interface AppLevelRequirementEdge { + cursor?: string | null; + node?: AppLevelRequirement | null; +} +export interface DefaultIdsModuleEdge { + cursor?: string | null; + node?: DefaultIdsModule | null; +} +export interface ViewTableEdge { + cursor?: string | null; + node?: ViewTable | null; +} +export interface ApiSchemaEdge { + cursor?: string | null; + node?: ApiSchema | null; +} +export interface SiteThemeEdge { + cursor?: string | null; + node?: SiteTheme | null; +} +export interface OrgMemberEdge { + cursor?: string | null; + node?: OrgMember | null; +} +export interface AppPermissionDefaultEdge { + cursor?: string | null; + node?: AppPermissionDefault | null; +} +export interface RefEdge { + cursor?: string | null; + node?: Ref | null; +} +export interface StoreEdge { + cursor?: string | null; + node?: Store | null; +} +export interface ApiModuleEdge { + cursor?: string | null; + node?: ApiModule | null; +} +export interface SiteModuleEdge { + cursor?: string | null; + node?: SiteModule | null; +} +export interface EncryptedSecretsModuleEdge { + cursor?: string | null; + node?: EncryptedSecretsModule | null; +} +export interface MembershipTypesModuleEdge { + cursor?: string | null; + node?: MembershipTypesModule | null; +} +export interface SecretsModuleEdge { + cursor?: string | null; + node?: SecretsModule | null; +} +export interface UuidModuleEdge { + cursor?: string | null; + node?: UuidModule | null; +} +export interface RoleTypeEdge { + cursor?: string | null; + node?: RoleType | null; +} +export interface OrgPermissionDefaultEdge { + cursor?: string | null; + node?: OrgPermissionDefault | null; +} +export interface SchemaGrantEdge { + cursor?: string | null; + node?: SchemaGrant | null; +} +export interface TriggerFunctionEdge { + cursor?: string | null; + node?: TriggerFunction | null; +} +export interface ViewGrantEdge { + cursor?: string | null; + node?: ViewGrant | null; +} +export interface ViewRuleEdge { + cursor?: string | null; + node?: ViewRule | null; +} +export interface AppAdminGrantEdge { + cursor?: string | null; + node?: AppAdminGrant | null; +} +export interface AppOwnerGrantEdge { + cursor?: string | null; + node?: AppOwnerGrant | null; +} +export interface AppLimitDefaultEdge { + cursor?: string | null; + node?: AppLimitDefault | null; +} +export interface OrgLimitDefaultEdge { + cursor?: string | null; + node?: OrgLimitDefault | null; +} +export interface ApiEdge { + cursor?: string | null; + node?: Api | null; +} +export interface ConnectedAccountsModuleEdge { + cursor?: string | null; + node?: ConnectedAccountsModule | null; +} +export interface EmailsModuleEdge { + cursor?: string | null; + node?: EmailsModule | null; +} +export interface PhoneNumbersModuleEdge { + cursor?: string | null; + node?: PhoneNumbersModule | null; +} +export interface TableModuleEdge { + cursor?: string | null; + node?: TableModule | null; +} +export interface UsersModuleEdge { + cursor?: string | null; + node?: UsersModule | null; +} +export interface OrgAdminGrantEdge { + cursor?: string | null; + node?: OrgAdminGrant | null; +} +export interface OrgOwnerGrantEdge { + cursor?: string | null; + node?: OrgOwnerGrant | null; +} +export interface CryptoAddressEdge { + cursor?: string | null; + node?: CryptoAddress | null; +} +export interface MembershipTypeEdge { + cursor?: string | null; + node?: MembershipType | null; +} +export interface DatabaseEdge { + cursor?: string | null; + node?: Database | null; +} +export interface LimitFunctionEdge { + cursor?: string | null; + node?: LimitFunction | null; +} +export interface TableGrantEdge { + cursor?: string | null; + node?: TableGrant | null; +} +export interface CryptoAddressesModuleEdge { + cursor?: string | null; + node?: CryptoAddressesModule | null; +} +export interface ConnectedAccountEdge { + cursor?: string | null; + node?: ConnectedAccount | null; +} +export interface PhoneNumberEdge { + cursor?: string | null; + node?: PhoneNumber | null; +} +export interface AppLimitEdge { + cursor?: string | null; + node?: AppLimit | null; +} +export interface AppAchievementEdge { + cursor?: string | null; + node?: AppAchievement | null; +} +export interface AppStepEdge { + cursor?: string | null; + node?: AppStep | null; +} +export interface ClaimedInviteEdge { + cursor?: string | null; + node?: ClaimedInvite | null; +} +export interface AppMembershipDefaultEdge { + cursor?: string | null; + node?: AppMembershipDefault | null; +} +export interface SiteMetadatumEdge { + cursor?: string | null; + node?: SiteMetadatum | null; +} +export interface FieldModuleEdge { + cursor?: string | null; + node?: FieldModule | null; +} +export interface TableTemplateModuleEdge { + cursor?: string | null; + node?: TableTemplateModule | null; +} +export interface NodeTypeRegistryEdge { + cursor?: string | null; + node?: NodeTypeRegistry | null; +} +export interface FullTextSearchEdge { + cursor?: string | null; + node?: FullTextSearch | null; +} +export interface CommitEdge { + cursor?: string | null; + node?: Commit | null; +} +export interface OrgLimitEdge { + cursor?: string | null; + node?: OrgLimit | null; +} +export interface AppGrantEdge { + cursor?: string | null; + node?: AppGrant | null; +} +export interface OrgClaimedInviteEdge { + cursor?: string | null; + node?: OrgClaimedInvite | null; +} +export interface DomainEdge { + cursor?: string | null; + node?: Domain | null; +} +export interface OrgGrantEdge { + cursor?: string | null; + node?: OrgGrant | null; +} +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + node?: OrgMembershipDefault | null; +} +export interface SessionsModuleEdge { + cursor?: string | null; + node?: SessionsModule | null; +} +export interface EmailEdge { + cursor?: string | null; + node?: Email | null; +} +export interface AuditLogEdge { + cursor?: string | null; + node?: AuditLog | null; +} +export interface AppLevelEdge { + cursor?: string | null; + node?: AppLevel | null; +} +export interface RlsModuleEdge { + cursor?: string | null; + node?: RlsModule | null; +} +export interface DenormalizedTableFieldEdge { + cursor?: string | null; + node?: DenormalizedTableField | null; +} +export interface SqlMigrationEdge { + cursor?: string | null; + node?: SqlMigration | null; +} +export interface CryptoAuthModuleEdge { + cursor?: string | null; + node?: CryptoAuthModule | null; +} +export interface DatabaseProvisionModuleEdge { + cursor?: string | null; + node?: DatabaseProvisionModule | null; +} +export interface InvitesModuleEdge { + cursor?: string | null; + node?: InvitesModule | null; +} +export interface ViewEdge { + cursor?: string | null; + node?: View | null; +} +export interface AstMigrationEdge { + cursor?: string | null; + node?: AstMigration | null; +} +export interface AppMembershipEdge { + cursor?: string | null; + node?: AppMembership | null; +} +export interface OrgMembershipEdge { + cursor?: string | null; + node?: OrgMembership | null; +} +export interface AppEdge { + cursor?: string | null; + node?: App | null; +} +export interface SiteEdge { + cursor?: string | null; + node?: Site | null; +} +export interface UserEdge { + cursor?: string | null; + node?: User | null; +} +export interface PermissionsModuleEdge { + cursor?: string | null; + node?: PermissionsModule | null; +} +export interface PrimaryKeyConstraintEdge { + cursor?: string | null; + node?: PrimaryKeyConstraint | null; +} +export interface TriggerEdge { + cursor?: string | null; + node?: Trigger | null; +} +export interface CheckConstraintEdge { + cursor?: string | null; + node?: CheckConstraint | null; +} +export interface UniqueConstraintEdge { + cursor?: string | null; + node?: UniqueConstraint | null; +} +export interface ProcedureEdge { + cursor?: string | null; + node?: Procedure | null; +} +export interface PolicyEdge { + cursor?: string | null; + node?: Policy | null; +} +export interface InviteEdge { + cursor?: string | null; + node?: Invite | null; +} +export interface IndexEdge { + cursor?: string | null; + node?: Index | null; +} +export interface LimitsModuleEdge { + cursor?: string | null; + node?: LimitsModule | null; +} +export interface SchemaEdge { + cursor?: string | null; + node?: Schema | null; +} +export interface ProfilesModuleEdge { + cursor?: string | null; + node?: ProfilesModule | null; +} +export interface OrgInviteEdge { + cursor?: string | null; + node?: OrgInvite | null; +} +export interface HierarchyModuleEdge { + cursor?: string | null; + node?: HierarchyModule | null; +} +export interface ForeignKeyConstraintEdge { + cursor?: string | null; + node?: ForeignKeyConstraint | null; +} +export interface TableEdge { + cursor?: string | null; + node?: Table | null; +} +export interface LevelsModuleEdge { + cursor?: string | null; + node?: LevelsModule | null; +} +export interface UserAuthModuleEdge { + cursor?: string | null; + node?: UserAuthModule | null; +} +export interface FieldEdge { + cursor?: string | null; + node?: Field | null; +} +export interface MembershipsModuleEdge { + cursor?: string | null; + node?: MembershipsModule | null; +} +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; +} +export interface MetaField { + name: string; + type: MetaType; + isNotNull: boolean; + hasDefault: boolean; +} +export interface MetaIndex { + name: string; + isUnique: boolean; + isPrimary: boolean; + columns: string[]; + fields?: MetaField[] | null; +} +export interface MetaConstraints { + primaryKey?: MetaPrimaryKeyConstraint | null; + unique: MetaUniqueConstraint[]; + foreignKey: MetaForeignKeyConstraint[]; +} +export interface MetaForeignKeyConstraint { + name: string; + fields: MetaField[]; + referencedTable: string; + referencedFields: string[]; + refFields?: MetaField[] | null; + refTable?: MetaRefTable | null; +} +export interface MetaPrimaryKeyConstraint { + name: string; + fields: MetaField[]; +} +export interface MetaUniqueConstraint { + name: string; + fields: MetaField[]; +} +export interface MetaRelations { + belongsTo: MetaBelongsToRelation[]; + has: MetaHasRelation[]; + hasOne: MetaHasRelation[]; + hasMany: MetaHasRelation[]; + manyToMany: MetaManyToManyRelation[]; +} +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; +} +export interface MetaQuery { + all: string; + one?: string | null; + create?: string | null; + update?: string | null; + delete?: string | null; +} +export interface MetaType { + pgType: string; + gqlType: string; + isArray: boolean; + isNotNull?: boolean | null; + hasDefault?: boolean | null; +} +export interface MetaRefTable { + name: string; +} +export interface MetaBelongsToRelation { + fieldName?: string | null; + isUnique: boolean; + type?: string | null; + keys: MetaField[]; + references: MetaRefTable; +} +export interface MetaHasRelation { + fieldName?: string | null; + isUnique: boolean; + type?: string | null; + keys: MetaField[]; + referencedBy: MetaRefTable; +} +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-sdk/src/public/types.ts b/sdk/constructive-sdk/src/public/types.ts new file mode 100644 index 000000000..ef7ecf2ed --- /dev/null +++ b/sdk/constructive-sdk/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; +} From f9cd15db63adf9b69311007a0d6b00bc43950ae5 Mon Sep 17 00:00:00 2001 From: ghou9khub Date: Thu, 26 Feb 2026 03:30:16 -0800 Subject: [PATCH 4/4] Config update --- pnpm-lock.yaml | 3 - sdk/constructive-sdk/README.md | 8 +- sdk/constructive-sdk/package.json | 3 +- sdk/constructive-sdk/scripts/generate-sdk.ts | 7 +- sdk/constructive-sdk/src/admin/README.md | 15 +- .../src/admin/hooks/AGENTS.md | 2383 ---- .../src/admin/hooks/README.md | 931 -- .../src/admin/hooks/client.ts | 42 - sdk/constructive-sdk/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 - sdk/constructive-sdk/src/admin/index.ts | 2 - sdk/constructive-sdk/src/admin/orm/AGENTS.md | 1222 -- .../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 + .../src/admin/schema-types.ts | 2753 ---- sdk/constructive-sdk/src/admin/types.ts | 473 - sdk/constructive-sdk/src/auth/README.md | 15 +- sdk/constructive-sdk/src/auth/hooks/AGENTS.md | 862 -- sdk/constructive-sdk/src/auth/hooks/README.md | 454 - sdk/constructive-sdk/src/auth/hooks/client.ts | 42 - sdk/constructive-sdk/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 - sdk/constructive-sdk/src/auth/index.ts | 2 - sdk/constructive-sdk/src/auth/orm/AGENTS.md | 581 - .../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-sdk/src/auth/schema-types.ts | 1061 -- sdk/constructive-sdk/src/auth/types.ts | 288 - sdk/constructive-sdk/src/objects/README.md | 15 +- .../src/objects/hooks/AGENTS.md | 552 - .../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 - sdk/constructive-sdk/src/objects/index.ts | 2 - .../src/objects/orm/AGENTS.md | 403 - .../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/schema-types.ts | 590 - sdk/constructive-sdk/src/objects/types.ts | 261 - sdk/constructive-sdk/src/public/README.md | 15 +- .../src/public/hooks/AGENTS.md | 8940 ------------- .../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 - sdk/constructive-sdk/src/public/index.ts | 2 - sdk/constructive-sdk/src/public/orm/AGENTS.md | 4865 ------- .../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/schema-types.ts | 10489 ---------------- sdk/constructive-sdk/src/public/types.ts | 1360 -- 1074 files changed, 6524 insertions(+), 138165 deletions(-) delete mode 100644 sdk/constructive-sdk/src/admin/hooks/AGENTS.md delete mode 100644 sdk/constructive-sdk/src/admin/hooks/README.md delete mode 100644 sdk/constructive-sdk/src/admin/hooks/client.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/index.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/invalidation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutation-keys.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/index.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppAchievementMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppAdminGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppLevelMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppLevelRequirementMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppLimitDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppLimitMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppMembershipDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppOwnerGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppPermissionDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppPermissionMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppStepMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateClaimedInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateMembershipTypeMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgAdminGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgClaimedInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgLimitDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgLimitMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgMemberMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgOwnerGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgPermissionMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppAchievementMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppAdminGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppLevelMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppLimitDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppLimitMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppOwnerGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppPermissionMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppStepMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteClaimedInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteMembershipTypeMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgAdminGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgLimitMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgMemberMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgPermissionMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useSubmitInviteCodeMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useSubmitOrgInviteCodeMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppAchievementMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppAdminGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppLevelMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppLimitDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppLimitMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppOwnerGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppPermissionMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppStepMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateClaimedInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateMembershipTypeMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgAdminGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgLimitMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgMemberMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgPermissionMutation.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/index.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppAchievementQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppAchievementsQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppAdminGrantQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppAdminGrantsQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppGrantQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppGrantsQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppLevelQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppLevelRequirementQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppLevelRequirementsQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppLevelsQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppLimitDefaultQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppLimitDefaultsQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppLimitQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppLimitsQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppMembershipDefaultQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppMembershipDefaultsQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppMembershipQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppMembershipsQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppOwnerGrantQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppOwnerGrantsQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionDefaultQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionDefaultsQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsGetByMaskQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsGetMaskQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppStepQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useAppStepsQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useClaimedInviteQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useClaimedInvitesQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useInviteQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useInvitesQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useMembershipTypeQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useMembershipTypesQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgAdminGrantQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgAdminGrantsQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgClaimedInviteQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgClaimedInvitesQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgGrantQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgGrantsQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgInviteQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgInvitesQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgLimitDefaultQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgLimitDefaultsQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgLimitQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgLimitsQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgMemberQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembersQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembershipDefaultQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembershipDefaultsQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembershipQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembershipsQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgOwnerGrantQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgOwnerGrantsQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionDefaultQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionDefaultsQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsGetByMaskQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsGetMaskQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useStepsAchievedQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/queries/useStepsRequiredQuery.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/query-keys.ts delete mode 100644 sdk/constructive-sdk/src/admin/hooks/selection.ts delete mode 100644 sdk/constructive-sdk/src/admin/orm/AGENTS.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/appAchievement.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/appAdminGrant.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/appGrant.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/appLevel.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/appLevelRequirement.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/appLimit.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/appLimitDefault.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/appMembership.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/appMembershipDefault.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/appOwnerGrant.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/appPermission.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/appPermissionDefault.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetByMask.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetMask.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetMaskByNames.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetPaddedMask.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/appStep.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/claimedInvite.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/invite.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/membershipType.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/orgAdminGrant.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/orgClaimedInvite.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/orgGrant.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/orgInvite.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/orgLimit.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/orgLimitDefault.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/orgMember.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/orgMembership.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/orgMembershipDefault.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/orgOwnerGrant.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/orgPermission.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/orgPermissionDefault.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetByMask.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetMask.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetMaskByNames.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetPaddedMask.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/stepsAchieved.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/stepsRequired.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/submitInviteCode.md create mode 100644 sdk/constructive-sdk/src/admin/orm/skills/submitOrgInviteCode.md delete mode 100644 sdk/constructive-sdk/src/admin/schema-types.ts delete mode 100644 sdk/constructive-sdk/src/admin/types.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/AGENTS.md delete mode 100644 sdk/constructive-sdk/src/auth/hooks/README.md delete mode 100644 sdk/constructive-sdk/src/auth/hooks/client.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/index.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/invalidation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutation-keys.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/index.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useCheckPasswordMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useConfirmDeleteAccountMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useCreateAuditLogMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useCreateConnectedAccountMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useCreateCryptoAddressMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useCreateEmailMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useCreatePhoneNumberMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useCreateRoleTypeMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useCreateUserMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteAuditLogMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteConnectedAccountMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteCryptoAddressMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteEmailMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useDeletePhoneNumberMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteRoleTypeMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteUserMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useExtendTokenExpiresMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useForgotPasswordMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useOneTimeTokenMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useResetPasswordMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useSendAccountDeletionEmailMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useSendVerificationEmailMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useSetPasswordMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useSignInMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useSignInOneTimeTokenMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useSignOutMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useSignUpMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateAuditLogMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateConnectedAccountMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateCryptoAddressMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateEmailMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useUpdatePhoneNumberMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateRoleTypeMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateUserMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useVerifyEmailMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useVerifyPasswordMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/mutations/useVerifyTotpMutation.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/index.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useAuditLogQuery.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useAuditLogsQuery.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useConnectedAccountQuery.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useConnectedAccountsQuery.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useCryptoAddressQuery.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useCryptoAddressesQuery.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useCurrentIpAddressQuery.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useCurrentUserAgentQuery.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useCurrentUserIdQuery.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useCurrentUserQuery.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useEmailQuery.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useEmailsQuery.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/usePhoneNumberQuery.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/usePhoneNumbersQuery.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useRoleTypeQuery.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useRoleTypesQuery.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useUserQuery.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/queries/useUsersQuery.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/query-keys.ts delete mode 100644 sdk/constructive-sdk/src/auth/hooks/selection.ts delete mode 100644 sdk/constructive-sdk/src/auth/orm/AGENTS.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/auditLog.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/checkPassword.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/confirmDeleteAccount.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/connectedAccount.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/cryptoAddress.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/currentIpAddress.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/currentUser.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/currentUserAgent.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/currentUserId.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/email.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/extendTokenExpires.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/forgotPassword.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/oneTimeToken.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/phoneNumber.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/resetPassword.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/roleType.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/sendAccountDeletionEmail.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/sendVerificationEmail.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/setPassword.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/signIn.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/signInOneTimeToken.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/signOut.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/signUp.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/user.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/verifyEmail.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/verifyPassword.md create mode 100644 sdk/constructive-sdk/src/auth/orm/skills/verifyTotp.md delete mode 100644 sdk/constructive-sdk/src/auth/schema-types.ts delete mode 100644 sdk/constructive-sdk/src/auth/types.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/AGENTS.md delete mode 100644 sdk/constructive-sdk/src/objects/hooks/README.md delete mode 100644 sdk/constructive-sdk/src/objects/hooks/client.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/index.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/invalidation.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutation-keys.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/index.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useCreateCommitMutation.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useCreateGetAllRecordMutation.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useCreateObjectMutation.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useCreateRefMutation.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useCreateStoreMutation.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useDeleteCommitMutation.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useDeleteObjectMutation.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useDeleteRefMutation.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useDeleteStoreMutation.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useFreezeObjectsMutation.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useInitEmptyRepoMutation.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useInsertNodeAtPathMutation.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useRemoveNodeAtPathMutation.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useSetAndCommitMutation.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useSetDataAtPathMutation.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useSetPropsAndCommitMutation.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateCommitMutation.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateNodeAtPathMutation.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateObjectMutation.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateRefMutation.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateStoreMutation.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/index.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useCommitQuery.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useCommitsQuery.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useGetAllObjectsFromRootQuery.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useGetAllQuery.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useGetObjectAtPathQuery.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useGetPathObjectsFromRootQuery.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useObjectQuery.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useObjectsQuery.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useRefQuery.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useRefsQuery.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useRevParseQuery.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useStoreQuery.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/queries/useStoresQuery.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/query-keys.ts delete mode 100644 sdk/constructive-sdk/src/objects/hooks/selection.ts delete mode 100644 sdk/constructive-sdk/src/objects/orm/AGENTS.md create mode 100644 sdk/constructive-sdk/src/objects/orm/skills/commit.md create mode 100644 sdk/constructive-sdk/src/objects/orm/skills/freezeObjects.md create mode 100644 sdk/constructive-sdk/src/objects/orm/skills/getAllObjectsFromRoot.md create mode 100644 sdk/constructive-sdk/src/objects/orm/skills/getAllRecord.md create mode 100644 sdk/constructive-sdk/src/objects/orm/skills/getObjectAtPath.md create mode 100644 sdk/constructive-sdk/src/objects/orm/skills/getPathObjectsFromRoot.md create mode 100644 sdk/constructive-sdk/src/objects/orm/skills/initEmptyRepo.md create mode 100644 sdk/constructive-sdk/src/objects/orm/skills/insertNodeAtPath.md create mode 100644 sdk/constructive-sdk/src/objects/orm/skills/object.md create mode 100644 sdk/constructive-sdk/src/objects/orm/skills/ref.md create mode 100644 sdk/constructive-sdk/src/objects/orm/skills/removeNodeAtPath.md create mode 100644 sdk/constructive-sdk/src/objects/orm/skills/revParse.md create mode 100644 sdk/constructive-sdk/src/objects/orm/skills/setAndCommit.md create mode 100644 sdk/constructive-sdk/src/objects/orm/skills/setDataAtPath.md create mode 100644 sdk/constructive-sdk/src/objects/orm/skills/setPropsAndCommit.md create mode 100644 sdk/constructive-sdk/src/objects/orm/skills/store.md create mode 100644 sdk/constructive-sdk/src/objects/orm/skills/updateNodeAtPath.md delete mode 100644 sdk/constructive-sdk/src/objects/schema-types.ts delete mode 100644 sdk/constructive-sdk/src/objects/types.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/AGENTS.md delete mode 100644 sdk/constructive-sdk/src/public/hooks/README.md delete mode 100644 sdk/constructive-sdk/src/public/hooks/client.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/index.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/invalidation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutation-keys.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/index.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useApplyRlsMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useBootstrapUserMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCheckPasswordMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useConfirmDeleteAccountMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateApiModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateApiMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateApiSchemaMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppAchievementMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppAdminGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppLevelMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppLevelRequirementMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppLimitDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppLimitMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppMembershipDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppMembershipMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppOwnerGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppPermissionDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppPermissionMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppStepMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAstMigrationMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateAuditLogMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateCheckConstraintMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateClaimedInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateCommitMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateConnectedAccountMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateConnectedAccountsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateCryptoAddressMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateCryptoAddressesModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateCryptoAuthModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateDatabaseMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateDatabaseProvisionModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateDefaultIdsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateDenormalizedTableFieldMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateDomainMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateEmailMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateEmailsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateEncryptedSecretsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateFieldModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateFieldMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateForeignKeyConstraintMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateFullTextSearchMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateGetAllRecordMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateHierarchyModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateIndexMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateInvitesModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateLevelsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateLimitFunctionMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateLimitsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateMembershipTypeMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateMembershipTypesModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateMembershipsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateNodeTypeRegistryMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateObjectMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgAdminGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgClaimedInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgLimitDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgLimitMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgMemberMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgMembershipMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgOwnerGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgPermissionMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreatePermissionsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreatePhoneNumberMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreatePhoneNumbersModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreatePolicyMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreatePrimaryKeyConstraintMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateProcedureMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateProfilesModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateRefMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateRlsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateRoleTypeMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateSchemaGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateSchemaMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateSecretsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateSessionsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateSiteMetadatumMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateSiteModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateSiteMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateSiteThemeMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateSqlMigrationMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateStoreMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateTableGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateTableModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateTableMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateTableTemplateModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateTriggerFunctionMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateTriggerMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateUniqueConstraintMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateUserAuthModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateUserDatabaseMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateUserMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateUsersModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateUuidModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateViewGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateViewMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateViewRuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useCreateViewTableMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteApiModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteApiMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteApiSchemaMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppAchievementMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppAdminGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppLevelMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppLevelRequirementMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppLimitDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppLimitMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppMembershipMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppOwnerGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppPermissionMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppStepMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAuditLogMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCheckConstraintMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteClaimedInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCommitMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteConnectedAccountMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteConnectedAccountsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCryptoAddressMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCryptoAddressesModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCryptoAuthModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDatabaseMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDatabaseProvisionModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDefaultIdsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDenormalizedTableFieldMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDomainMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteEmailMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteEmailsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteEncryptedSecretsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteFieldModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteFieldMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteForeignKeyConstraintMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteFullTextSearchMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteHierarchyModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteIndexMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteInvitesModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteLevelsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteLimitFunctionMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteLimitsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteMembershipTypeMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteMembershipTypesModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteMembershipsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteObjectMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgAdminGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgLimitMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgMemberMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgMembershipMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgPermissionMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeletePermissionsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeletePhoneNumberMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeletePhoneNumbersModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeletePolicyMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeletePrimaryKeyConstraintMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteProcedureMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteProfilesModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteRefMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteRlsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteRoleTypeMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSchemaGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSchemaMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSecretsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSessionsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSiteMetadatumMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSiteModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSiteMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSiteThemeMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteStoreMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTableGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTableModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTableMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTableTemplateModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTriggerFunctionMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTriggerMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUniqueConstraintMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUserAuthModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUserMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUsersModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUuidModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteViewGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteViewMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteViewRuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useDeleteViewTableMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useExtendTokenExpiresMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useForgotPasswordMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useFreezeObjectsMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useInitEmptyRepoMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useInsertNodeAtPathMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useOneTimeTokenMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useProvisionDatabaseWithUserMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useRemoveNodeAtPathMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useResetPasswordMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSendAccountDeletionEmailMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSendVerificationEmailMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSetAndCommitMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSetDataAtPathMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSetFieldOrderMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSetPasswordMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSetPropsAndCommitMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSignInMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSignInOneTimeTokenMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSignOutMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSignUpMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSubmitInviteCodeMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useSubmitOrgInviteCodeMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateApiModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateApiMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateApiSchemaMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppAchievementMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppAdminGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppLevelMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppLevelRequirementMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppLimitDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppLimitMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppMembershipMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppOwnerGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppPermissionMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppStepMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAuditLogMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCheckConstraintMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateClaimedInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCommitMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateConnectedAccountMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateConnectedAccountsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCryptoAddressMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCryptoAddressesModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCryptoAuthModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDatabaseMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDatabaseProvisionModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDefaultIdsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDenormalizedTableFieldMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDomainMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateEmailMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateEmailsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateEncryptedSecretsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateFieldModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateFieldMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateForeignKeyConstraintMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateFullTextSearchMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateHierarchyModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateIndexMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateInvitesModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateLevelsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateLimitFunctionMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateLimitsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateMembershipTypeMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateMembershipTypesModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateMembershipsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateNodeAtPathMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateObjectMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgAdminGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgInviteMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgLimitMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgMemberMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgMembershipMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgPermissionMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePermissionsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePhoneNumberMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePhoneNumbersModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePolicyMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePrimaryKeyConstraintMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateProcedureMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateProfilesModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateRefMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateRlsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateRoleTypeMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSchemaGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSchemaMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSecretsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSessionsModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSiteMetadatumMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSiteModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSiteMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSiteThemeMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateStoreMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTableGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTableModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTableMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTableTemplateModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTriggerFunctionMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTriggerMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUniqueConstraintMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUserAuthModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUserMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUsersModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUuidModuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateViewGrantMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateViewMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateViewRuleMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useUpdateViewTableMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useVerifyEmailMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useVerifyPasswordMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/mutations/useVerifyTotpMutation.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/index.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useApiModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useApiModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useApiQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useApiSchemaQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useApiSchemasQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useApisQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppAchievementQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppAchievementsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppAdminGrantQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppAdminGrantsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppGrantQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppGrantsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppLevelQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppLevelRequirementQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppLevelRequirementsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppLevelsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppLimitDefaultQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppLimitDefaultsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppLimitQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppLimitsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppMembershipDefaultQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppMembershipDefaultsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppMembershipQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppMembershipsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppOwnerGrantQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppOwnerGrantsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionDefaultQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionDefaultsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsGetByMaskQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsGetMaskQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppStepQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppStepsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAppsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAstMigrationQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAstMigrationsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAuditLogQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useAuditLogsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCheckConstraintQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCheckConstraintsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useClaimedInviteQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useClaimedInvitesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCommitQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCommitsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useConnectedAccountQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useConnectedAccountsModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useConnectedAccountsModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useConnectedAccountsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCryptoAddressQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCryptoAddressesModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCryptoAddressesModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCryptoAddressesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCryptoAuthModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCryptoAuthModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCurrentIpAddressQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCurrentUserAgentQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCurrentUserIdQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useCurrentUserQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useDatabaseProvisionModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useDatabaseProvisionModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useDatabaseQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useDatabasesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useDefaultIdsModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useDefaultIdsModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useDenormalizedTableFieldQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useDenormalizedTableFieldsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useDomainQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useDomainsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useEmailQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useEmailsModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useEmailsModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useEmailsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useEncryptedSecretsModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useEncryptedSecretsModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useFieldModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useFieldModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useFieldQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useFieldsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useForeignKeyConstraintQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useForeignKeyConstraintsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useFullTextSearchQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useFullTextSearchesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useGetAllObjectsFromRootQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useGetAllQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useGetObjectAtPathQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useGetPathObjectsFromRootQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useHierarchyModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useHierarchyModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useIndexQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useIndicesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useInviteQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useInvitesModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useInvitesModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useInvitesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useLevelsModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useLevelsModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useLimitFunctionQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useLimitFunctionsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useLimitsModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useLimitsModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useMembershipTypeQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useMembershipTypesModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useMembershipTypesModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useMembershipTypesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useMembershipsModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useMembershipsModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useNodeTypeRegistriesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useNodeTypeRegistryQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useObjectQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useObjectsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgAdminGrantQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgAdminGrantsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgClaimedInviteQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgClaimedInvitesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgGrantQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgGrantsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgInviteQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgInvitesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgLimitDefaultQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgLimitDefaultsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgLimitQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgLimitsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgMemberQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgMembersQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgMembershipDefaultQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgMembershipDefaultsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgMembershipQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgMembershipsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgOwnerGrantQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgOwnerGrantsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionDefaultQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionDefaultsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsGetByMaskQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsGetMaskQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/usePermissionsModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/usePermissionsModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/usePhoneNumberQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/usePhoneNumbersModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/usePhoneNumbersModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/usePhoneNumbersQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/usePoliciesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/usePolicyQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/usePrimaryKeyConstraintQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/usePrimaryKeyConstraintsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useProcedureQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useProceduresQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useProfilesModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useProfilesModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useRefQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useRefsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useRevParseQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useRlsModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useRlsModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useRoleTypeQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useRoleTypesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSchemaGrantQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSchemaGrantsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSchemaQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSchemasQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSecretsModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSecretsModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSessionsModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSessionsModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSiteMetadataQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSiteMetadatumQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSiteModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSiteModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSiteQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSiteThemeQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSiteThemesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSitesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSqlMigrationQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useSqlMigrationsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useStepsAchievedQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useStepsRequiredQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useStoreQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useStoresQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTableGrantQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTableGrantsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTableModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTableModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTableQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTableTemplateModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTableTemplateModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTablesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTriggerFunctionQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTriggerFunctionsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTriggerQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useTriggersQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useUniqueConstraintQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useUniqueConstraintsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useUserAuthModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useUserAuthModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useUserQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useUsersModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useUsersModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useUsersQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useUuidModuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useUuidModulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useViewGrantQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useViewGrantsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useViewQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useViewRuleQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useViewRulesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useViewTableQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useViewTablesQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/queries/useViewsQuery.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/query-keys.ts delete mode 100644 sdk/constructive-sdk/src/public/hooks/selection.ts delete mode 100644 sdk/constructive-sdk/src/public/orm/AGENTS.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/api.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/apiModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/apiSchema.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/app.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/appAchievement.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/appAdminGrant.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/appGrant.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/appLevel.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/appLevelRequirement.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/appLimit.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/appLimitDefault.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/appMembership.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/appMembershipDefault.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/appOwnerGrant.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/appPermission.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/appPermissionDefault.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetByMask.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetMask.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetMaskByNames.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetPaddedMask.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/appStep.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/applyRls.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/astMigration.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/auditLog.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/bootstrapUser.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/checkConstraint.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/checkPassword.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/claimedInvite.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/commit.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/confirmDeleteAccount.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/connectedAccount.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/connectedAccountsModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/createUserDatabase.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/cryptoAddress.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/cryptoAddressesModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/cryptoAuthModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/currentIpAddress.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/currentUser.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/currentUserAgent.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/currentUserId.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/database.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/databaseProvisionModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/defaultIdsModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/denormalizedTableField.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/domain.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/email.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/emailsModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/encryptedSecretsModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/extendTokenExpires.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/field.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/fieldModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/foreignKeyConstraint.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/forgotPassword.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/freezeObjects.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/fullTextSearch.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/getAllObjectsFromRoot.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/getAllRecord.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/getObjectAtPath.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/getPathObjectsFromRoot.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/hierarchyModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/index.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/initEmptyRepo.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/insertNodeAtPath.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/invite.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/invitesModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/levelsModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/limitFunction.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/limitsModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/membershipType.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/membershipTypesModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/membershipsModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/nodeTypeRegistry.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/object.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/oneTimeToken.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgAdminGrant.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgClaimedInvite.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgGrant.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgInvite.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgLimit.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgLimitDefault.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgMember.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgMembership.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgMembershipDefault.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgOwnerGrant.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgPermission.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgPermissionDefault.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetByMask.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetMask.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetMaskByNames.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetPaddedMask.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/permissionsModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/phoneNumber.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/phoneNumbersModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/policy.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/primaryKeyConstraint.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/procedure.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/profilesModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/provisionDatabaseWithUser.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/ref.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/removeNodeAtPath.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/resetPassword.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/revParse.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/rlsModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/roleType.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/schema.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/schemaGrant.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/secretsModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/sendAccountDeletionEmail.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/sendVerificationEmail.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/sessionsModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/setAndCommit.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/setDataAtPath.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/setFieldOrder.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/setPassword.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/setPropsAndCommit.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/signIn.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/signInOneTimeToken.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/signOut.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/signUp.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/site.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/siteMetadatum.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/siteModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/siteTheme.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/sqlMigration.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/stepsAchieved.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/stepsRequired.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/store.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/submitInviteCode.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/submitOrgInviteCode.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/table.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/tableGrant.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/tableModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/tableTemplateModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/trigger.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/triggerFunction.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/uniqueConstraint.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/updateNodeAtPath.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/user.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/userAuthModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/usersModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/uuidModule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/verifyEmail.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/verifyPassword.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/verifyTotp.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/view.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/viewGrant.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/viewRule.md create mode 100644 sdk/constructive-sdk/src/public/orm/skills/viewTable.md delete mode 100644 sdk/constructive-sdk/src/public/schema-types.ts delete mode 100644 sdk/constructive-sdk/src/public/types.ts diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 99b51b3fc..e84eded1f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2384,9 +2384,6 @@ importers: '@constructive-io/graphql-types': specifier: workspace:^ version: link:../../graphql/types/dist - '@tanstack/react-query': - specifier: ^5.90.16 - version: 5.90.20(react@19.2.3) gql-ast: specifier: workspace:^ version: link:../../graphql/gql-ast/dist diff --git a/sdk/constructive-sdk/README.md b/sdk/constructive-sdk/README.md index 6677a3ceb..9129e1210 100644 --- a/sdk/constructive-sdk/README.md +++ b/sdk/constructive-sdk/README.md @@ -10,10 +10,10 @@ | 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) | +| admin | - | ORM | [./src/admin/README.md](./src/admin/README.md) | +| auth | - | ORM | [./src/auth/README.md](./src/auth/README.md) | +| objects | - | ORM | [./src/objects/README.md](./src/objects/README.md) | +| public | - | ORM | [./src/public/README.md](./src/public/README.md) | --- diff --git a/sdk/constructive-sdk/package.json b/sdk/constructive-sdk/package.json index 6375a63ee..470c9a5ac 100644 --- a/sdk/constructive-sdk/package.json +++ b/sdk/constructive-sdk/package.json @@ -41,8 +41,7 @@ "@0no-co/graphql.web": "^1.1.2", "@constructive-io/graphql-types": "workspace:^", "gql-ast": "workspace:^", - "graphql": "^16.12.0", - "@tanstack/react-query": "^5.90.16" + "graphql": "^16.12.0" }, "devDependencies": { "@constructive-io/graphql-codegen": "workspace:^", diff --git a/sdk/constructive-sdk/scripts/generate-sdk.ts b/sdk/constructive-sdk/scripts/generate-sdk.ts index 4f5fbe9fa..6e5013382 100644 --- a/sdk/constructive-sdk/scripts/generate-sdk.ts +++ b/sdk/constructive-sdk/scripts/generate-sdk.ts @@ -15,8 +15,13 @@ async function main() { schemaDir: SCHEMA_DIR, output: './src', orm: true, - reactQuery: true, + reactQuery: false, verbose: true, + docs: { + agents: false, + mcp: false, + skills: true + } }; const expanded = expandSchemaDirToMultiTarget(baseConfig); diff --git a/sdk/constructive-sdk/src/admin/README.md b/sdk/constructive-sdk/src/admin/README.md index 768a64c6c..18018ea8a 100644 --- a/sdk/constructive-sdk/src/admin/README.md +++ b/sdk/constructive-sdk/src/admin/README.md @@ -12,7 +12,7 @@ - **Custom queries:** 10 - **Custom mutations:** 2 -**Generators:** ORM, React Query +**Generators:** ORM ## Modules @@ -30,19 +30,6 @@ const db = createClient({ 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. diff --git a/sdk/constructive-sdk/src/admin/hooks/AGENTS.md b/sdk/constructive-sdk/src/admin/hooks/AGENTS.md deleted file mode 100644 index 918f09f85..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/AGENTS.md +++ /dev/null @@ -1,2383 +0,0 @@ -# React Query Hooks - Agent Reference - -> @generated by @constructive-io/graphql-codegen - DO NOT EDIT -> This document is structured for LLM/agent consumption. - -## OVERVIEW - -React Query hooks wrapping ORM operations for data fetching and mutations. -All query hooks return `UseQueryResult`. All mutation hooks return `UseMutationResult`. - -## SETUP - -```typescript -import { configure } from './hooks'; -import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; - -configure({ endpoint: 'https://api.example.com/graphql' }); -const queryClient = new QueryClient(); -// Wrap app in -``` - -## HOOKS - -### HOOK: useAppPermissionsQuery - -List all appPermissions. - -``` -TYPE: query -USAGE: useAppPermissionsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppPermissionQuery - -Get a single appPermission by id. - -``` -TYPE: query -USAGE: useAppPermissionQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - name: string - bitnum: number - bitstr: string - description: string -}> -``` - -### HOOK: useCreateAppPermissionMutation - -Create a new appPermission. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppPermissionMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppPermissionMutation - -Update an existing appPermission. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppPermissionMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppPermissionMutation - -Delete a appPermission. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppPermissionMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgPermissionsQuery - -List all orgPermissions. - -``` -TYPE: query -USAGE: useOrgPermissionsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgPermissionQuery - -Get a single orgPermission by id. - -``` -TYPE: query -USAGE: useOrgPermissionQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - name: string - bitnum: number - bitstr: string - description: string -}> -``` - -### HOOK: useCreateOrgPermissionMutation - -Create a new orgPermission. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgPermissionMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgPermissionMutation - -Update an existing orgPermission. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgPermissionMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgPermissionMutation - -Delete a orgPermission. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgPermissionMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppLevelRequirementsQuery - -List all appLevelRequirements. - -``` -TYPE: query -USAGE: useAppLevelRequirementsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppLevelRequirementQuery - -Get a single appLevelRequirement by id. - -``` -TYPE: query -USAGE: useAppLevelRequirementQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - name: string - level: string - description: string - requiredCount: number - priority: number - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateAppLevelRequirementMutation - -Create a new appLevelRequirement. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppLevelRequirementMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppLevelRequirementMutation - -Update an existing appLevelRequirement. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppLevelRequirementMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppLevelRequirementMutation - -Delete a appLevelRequirement. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppLevelRequirementMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgMembersQuery - -List all orgMembers. - -``` -TYPE: query -USAGE: useOrgMembersQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgMemberQuery - -Get a single orgMember by id. - -``` -TYPE: query -USAGE: useOrgMemberQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - isAdmin: boolean - actorId: string - entityId: string -}> -``` - -### HOOK: useCreateOrgMemberMutation - -Create a new orgMember. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgMemberMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgMemberMutation - -Update an existing orgMember. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgMemberMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgMemberMutation - -Delete a orgMember. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgMemberMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppPermissionDefaultsQuery - -List all appPermissionDefaults. - -``` -TYPE: query -USAGE: useAppPermissionDefaultsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppPermissionDefaultQuery - -Get a single appPermissionDefault by id. - -``` -TYPE: query -USAGE: useAppPermissionDefaultQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - permissions: string -}> -``` - -### HOOK: useCreateAppPermissionDefaultMutation - -Create a new appPermissionDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppPermissionDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppPermissionDefaultMutation - -Update an existing appPermissionDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppPermissionDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppPermissionDefaultMutation - -Delete a appPermissionDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppPermissionDefaultMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgPermissionDefaultsQuery - -List all orgPermissionDefaults. - -``` -TYPE: query -USAGE: useOrgPermissionDefaultsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgPermissionDefaultQuery - -Get a single orgPermissionDefault by id. - -``` -TYPE: query -USAGE: useOrgPermissionDefaultQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - permissions: string - entityId: string -}> -``` - -### HOOK: useCreateOrgPermissionDefaultMutation - -Create a new orgPermissionDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgPermissionDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgPermissionDefaultMutation - -Update an existing orgPermissionDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgPermissionDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgPermissionDefaultMutation - -Delete a orgPermissionDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgPermissionDefaultMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppAdminGrantsQuery - -List all appAdminGrants. - -``` -TYPE: query -USAGE: useAppAdminGrantsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppAdminGrantQuery - -Get a single appAdminGrant by id. - -``` -TYPE: query -USAGE: useAppAdminGrantQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - isGrant: boolean - actorId: string - grantorId: string - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateAppAdminGrantMutation - -Create a new appAdminGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppAdminGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppAdminGrantMutation - -Update an existing appAdminGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppAdminGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppAdminGrantMutation - -Delete a appAdminGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppAdminGrantMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppOwnerGrantsQuery - -List all appOwnerGrants. - -``` -TYPE: query -USAGE: useAppOwnerGrantsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppOwnerGrantQuery - -Get a single appOwnerGrant by id. - -``` -TYPE: query -USAGE: useAppOwnerGrantQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - isGrant: boolean - actorId: string - grantorId: string - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateAppOwnerGrantMutation - -Create a new appOwnerGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppOwnerGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppOwnerGrantMutation - -Update an existing appOwnerGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppOwnerGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppOwnerGrantMutation - -Delete a appOwnerGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppOwnerGrantMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppLimitDefaultsQuery - -List all appLimitDefaults. - -``` -TYPE: query -USAGE: useAppLimitDefaultsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppLimitDefaultQuery - -Get a single appLimitDefault by id. - -``` -TYPE: query -USAGE: useAppLimitDefaultQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - name: string - max: number -}> -``` - -### HOOK: useCreateAppLimitDefaultMutation - -Create a new appLimitDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppLimitDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppLimitDefaultMutation - -Update an existing appLimitDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppLimitDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppLimitDefaultMutation - -Delete a appLimitDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppLimitDefaultMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgLimitDefaultsQuery - -List all orgLimitDefaults. - -``` -TYPE: query -USAGE: useOrgLimitDefaultsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgLimitDefaultQuery - -Get a single orgLimitDefault by id. - -``` -TYPE: query -USAGE: useOrgLimitDefaultQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - name: string - max: number -}> -``` - -### HOOK: useCreateOrgLimitDefaultMutation - -Create a new orgLimitDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgLimitDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgLimitDefaultMutation - -Update an existing orgLimitDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgLimitDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgLimitDefaultMutation - -Delete a orgLimitDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgLimitDefaultMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgAdminGrantsQuery - -List all orgAdminGrants. - -``` -TYPE: query -USAGE: useOrgAdminGrantsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgAdminGrantQuery - -Get a single orgAdminGrant by id. - -``` -TYPE: query -USAGE: useOrgAdminGrantQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - isGrant: boolean - actorId: string - entityId: string - grantorId: string - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateOrgAdminGrantMutation - -Create a new orgAdminGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgAdminGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgAdminGrantMutation - -Update an existing orgAdminGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgAdminGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgAdminGrantMutation - -Delete a orgAdminGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgAdminGrantMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgOwnerGrantsQuery - -List all orgOwnerGrants. - -``` -TYPE: query -USAGE: useOrgOwnerGrantsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgOwnerGrantQuery - -Get a single orgOwnerGrant by id. - -``` -TYPE: query -USAGE: useOrgOwnerGrantQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - isGrant: boolean - actorId: string - entityId: string - grantorId: string - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateOrgOwnerGrantMutation - -Create a new orgOwnerGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgOwnerGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgOwnerGrantMutation - -Update an existing orgOwnerGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgOwnerGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgOwnerGrantMutation - -Delete a orgOwnerGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgOwnerGrantMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useMembershipTypesQuery - -List all membershipTypes. - -``` -TYPE: query -USAGE: useMembershipTypesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useMembershipTypeQuery - -Get a single membershipType by id. - -``` -TYPE: query -USAGE: useMembershipTypeQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: number (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: number - name: string - description: string - prefix: string -}> -``` - -### HOOK: useCreateMembershipTypeMutation - -Create a new membershipType. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateMembershipTypeMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateMembershipTypeMutation - -Update an existing membershipType. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateMembershipTypeMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteMembershipTypeMutation - -Delete a membershipType. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteMembershipTypeMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppLimitsQuery - -List all appLimits. - -``` -TYPE: query -USAGE: useAppLimitsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppLimitQuery - -Get a single appLimit by id. - -``` -TYPE: query -USAGE: useAppLimitQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - name: string - actorId: string - num: number - max: number -}> -``` - -### HOOK: useCreateAppLimitMutation - -Create a new appLimit. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppLimitMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppLimitMutation - -Update an existing appLimit. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppLimitMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppLimitMutation - -Delete a appLimit. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppLimitMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppAchievementsQuery - -List all appAchievements. - -``` -TYPE: query -USAGE: useAppAchievementsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppAchievementQuery - -Get a single appAchievement by id. - -``` -TYPE: query -USAGE: useAppAchievementQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - actorId: string - name: string - count: number - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateAppAchievementMutation - -Create a new appAchievement. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppAchievementMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppAchievementMutation - -Update an existing appAchievement. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppAchievementMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppAchievementMutation - -Delete a appAchievement. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppAchievementMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppStepsQuery - -List all appSteps. - -``` -TYPE: query -USAGE: useAppStepsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppStepQuery - -Get a single appStep by id. - -``` -TYPE: query -USAGE: useAppStepQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - actorId: string - name: string - count: number - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateAppStepMutation - -Create a new appStep. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppStepMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppStepMutation - -Update an existing appStep. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppStepMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppStepMutation - -Delete a appStep. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppStepMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useClaimedInvitesQuery - -List all claimedInvites. - -``` -TYPE: query -USAGE: useClaimedInvitesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useClaimedInviteQuery - -Get a single claimedInvite by id. - -``` -TYPE: query -USAGE: useClaimedInviteQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - data: unknown - senderId: string - receiverId: string - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateClaimedInviteMutation - -Create a new claimedInvite. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateClaimedInviteMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateClaimedInviteMutation - -Update an existing claimedInvite. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateClaimedInviteMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteClaimedInviteMutation - -Delete a claimedInvite. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteClaimedInviteMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppGrantsQuery - -List all appGrants. - -``` -TYPE: query -USAGE: useAppGrantsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppGrantQuery - -Get a single appGrant by id. - -``` -TYPE: query -USAGE: useAppGrantQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - permissions: string - isGrant: boolean - actorId: string - grantorId: string - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateAppGrantMutation - -Create a new appGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppGrantMutation - -Update an existing appGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppGrantMutation - -Delete a appGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppGrantMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppMembershipDefaultsQuery - -List all appMembershipDefaults. - -``` -TYPE: query -USAGE: useAppMembershipDefaultsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppMembershipDefaultQuery - -Get a single appMembershipDefault by id. - -``` -TYPE: query -USAGE: useAppMembershipDefaultQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - createdAt: string - updatedAt: string - createdBy: string - updatedBy: string - isApproved: boolean - isVerified: boolean -}> -``` - -### HOOK: useCreateAppMembershipDefaultMutation - -Create a new appMembershipDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppMembershipDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppMembershipDefaultMutation - -Update an existing appMembershipDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppMembershipDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppMembershipDefaultMutation - -Delete a appMembershipDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppMembershipDefaultMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgLimitsQuery - -List all orgLimits. - -``` -TYPE: query -USAGE: useOrgLimitsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgLimitQuery - -Get a single orgLimit by id. - -``` -TYPE: query -USAGE: useOrgLimitQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - name: string - actorId: string - num: number - max: number - entityId: string -}> -``` - -### HOOK: useCreateOrgLimitMutation - -Create a new orgLimit. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgLimitMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgLimitMutation - -Update an existing orgLimit. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgLimitMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgLimitMutation - -Delete a orgLimit. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgLimitMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgClaimedInvitesQuery - -List all orgClaimedInvites. - -``` -TYPE: query -USAGE: useOrgClaimedInvitesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgClaimedInviteQuery - -Get a single orgClaimedInvite by id. - -``` -TYPE: query -USAGE: useOrgClaimedInviteQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - data: unknown - senderId: string - receiverId: string - createdAt: string - updatedAt: string - entityId: string -}> -``` - -### HOOK: useCreateOrgClaimedInviteMutation - -Create a new orgClaimedInvite. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgClaimedInviteMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgClaimedInviteMutation - -Update an existing orgClaimedInvite. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgClaimedInviteMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgClaimedInviteMutation - -Delete a orgClaimedInvite. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgClaimedInviteMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgGrantsQuery - -List all orgGrants. - -``` -TYPE: query -USAGE: useOrgGrantsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgGrantQuery - -Get a single orgGrant by id. - -``` -TYPE: query -USAGE: useOrgGrantQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - permissions: string - isGrant: boolean - actorId: string - entityId: string - grantorId: string - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateOrgGrantMutation - -Create a new orgGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgGrantMutation - -Update an existing orgGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgGrantMutation - -Delete a orgGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgGrantMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgMembershipDefaultsQuery - -List all orgMembershipDefaults. - -``` -TYPE: query -USAGE: useOrgMembershipDefaultsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgMembershipDefaultQuery - -Get a single orgMembershipDefault by id. - -``` -TYPE: query -USAGE: useOrgMembershipDefaultQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - createdAt: string - updatedAt: string - createdBy: string - updatedBy: string - isApproved: boolean - entityId: string - deleteMemberCascadeGroups: boolean - createGroupsCascadeMembers: boolean -}> -``` - -### HOOK: useCreateOrgMembershipDefaultMutation - -Create a new orgMembershipDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgMembershipDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgMembershipDefaultMutation - -Update an existing orgMembershipDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgMembershipDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgMembershipDefaultMutation - -Delete a orgMembershipDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgMembershipDefaultMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppLevelsQuery - -List all appLevels. - -``` -TYPE: query -USAGE: useAppLevelsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppLevelQuery - -Get a single appLevel by id. - -``` -TYPE: query -USAGE: useAppLevelQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - name: string - description: string - image: ConstructiveInternalTypeImage - ownerId: string - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateAppLevelMutation - -Create a new appLevel. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppLevelMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppLevelMutation - -Update an existing appLevel. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppLevelMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppLevelMutation - -Delete a appLevel. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppLevelMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useInvitesQuery - -List all invites. - -``` -TYPE: query -USAGE: useInvitesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useInviteQuery - -Get a single invite by id. - -``` -TYPE: query -USAGE: useInviteQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - email: ConstructiveInternalTypeEmail - senderId: string - inviteToken: string - inviteValid: boolean - inviteLimit: number - inviteCount: number - multiple: boolean - data: unknown - expiresAt: string - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateInviteMutation - -Create a new invite. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateInviteMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateInviteMutation - -Update an existing invite. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateInviteMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteInviteMutation - -Delete a invite. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteInviteMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppMembershipsQuery - -List all appMemberships. - -``` -TYPE: query -USAGE: useAppMembershipsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppMembershipQuery - -Get a single appMembership by id. - -``` -TYPE: query -USAGE: useAppMembershipQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateAppMembershipMutation - -Create a new appMembership. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppMembershipMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppMembershipMutation - -Update an existing appMembership. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppMembershipMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppMembershipMutation - -Delete a appMembership. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppMembershipMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgMembershipsQuery - -List all orgMemberships. - -``` -TYPE: query -USAGE: useOrgMembershipsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgMembershipQuery - -Get a single orgMembership by id. - -``` -TYPE: query -USAGE: useOrgMembershipQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateOrgMembershipMutation - -Create a new orgMembership. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgMembershipMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgMembershipMutation - -Update an existing orgMembership. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgMembershipMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgMembershipMutation - -Delete a orgMembership. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgMembershipMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgInvitesQuery - -List all orgInvites. - -``` -TYPE: query -USAGE: useOrgInvitesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgInviteQuery - -Get a single orgInvite by id. - -``` -TYPE: query -USAGE: useOrgInviteQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateOrgInviteMutation - -Create a new orgInvite. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgInviteMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgInviteMutation - -Update an existing orgInvite. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgInviteMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgInviteMutation - -Delete a orgInvite. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgInviteMutation({}) - -OUTPUT: UseMutationResult -``` - -## CUSTOM OPERATION HOOKS - -### HOOK: useAppPermissionsGetPaddedMaskQuery - -appPermissionsGetPaddedMask - -``` -TYPE: query -USAGE: useAppPermissionsGetPaddedMaskQuery({ mask: }) - -INPUT: - mask: BitString - -OUTPUT: UseQueryResult -``` - -### HOOK: useOrgPermissionsGetPaddedMaskQuery - -orgPermissionsGetPaddedMask - -``` -TYPE: query -USAGE: useOrgPermissionsGetPaddedMaskQuery({ mask: }) - -INPUT: - mask: BitString - -OUTPUT: UseQueryResult -``` - -### HOOK: useStepsAchievedQuery - -stepsAchieved - -``` -TYPE: query -USAGE: useStepsAchievedQuery({ vlevel: , vroleId: }) - -INPUT: - vlevel: String - vroleId: UUID - -OUTPUT: UseQueryResult -``` - -### HOOK: useAppPermissionsGetMaskQuery - -appPermissionsGetMask - -``` -TYPE: query -USAGE: useAppPermissionsGetMaskQuery({ ids: }) - -INPUT: - ids: [UUID] - -OUTPUT: UseQueryResult -``` - -### HOOK: useOrgPermissionsGetMaskQuery - -orgPermissionsGetMask - -``` -TYPE: query -USAGE: useOrgPermissionsGetMaskQuery({ ids: }) - -INPUT: - ids: [UUID] - -OUTPUT: UseQueryResult -``` - -### HOOK: useAppPermissionsGetMaskByNamesQuery - -appPermissionsGetMaskByNames - -``` -TYPE: query -USAGE: useAppPermissionsGetMaskByNamesQuery({ names: }) - -INPUT: - names: [String] - -OUTPUT: UseQueryResult -``` - -### HOOK: useOrgPermissionsGetMaskByNamesQuery - -orgPermissionsGetMaskByNames - -``` -TYPE: query -USAGE: useOrgPermissionsGetMaskByNamesQuery({ names: }) - -INPUT: - names: [String] - -OUTPUT: UseQueryResult -``` - -### HOOK: useAppPermissionsGetByMaskQuery - -Reads and enables pagination through a set of `AppPermission`. - -``` -TYPE: query -USAGE: useAppPermissionsGetByMaskQuery({ mask: , first: , offset: , after: }) - -INPUT: - mask: BitString - first: Int - offset: Int - after: Cursor - -OUTPUT: UseQueryResult -``` - -### HOOK: useOrgPermissionsGetByMaskQuery - -Reads and enables pagination through a set of `OrgPermission`. - -``` -TYPE: query -USAGE: useOrgPermissionsGetByMaskQuery({ mask: , first: , offset: , after: }) - -INPUT: - mask: BitString - first: Int - offset: Int - after: Cursor - -OUTPUT: UseQueryResult -``` - -### HOOK: useStepsRequiredQuery - -Reads and enables pagination through a set of `AppLevelRequirement`. - -``` -TYPE: query -USAGE: useStepsRequiredQuery({ vlevel: , vroleId: , first: , offset: , after: }) - -INPUT: - vlevel: String - vroleId: UUID - first: Int - offset: Int - after: Cursor - -OUTPUT: UseQueryResult -``` - -### HOOK: useSubmitInviteCodeMutation - -submitInviteCode - -``` -TYPE: mutation -USAGE: const { mutate } = useSubmitInviteCodeMutation() - mutate({ input: }) - -INPUT: - input: SubmitInviteCodeInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSubmitOrgInviteCodeMutation - -submitOrgInviteCode - -``` -TYPE: mutation -USAGE: const { mutate } = useSubmitOrgInviteCodeMutation() - mutate({ input: }) - -INPUT: - input: SubmitOrgInviteCodeInput (required) - -OUTPUT: UseMutationResult -``` diff --git a/sdk/constructive-sdk/src/admin/hooks/README.md b/sdk/constructive-sdk/src/admin/hooks/README.md deleted file mode 100644 index 29f2121f0..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/README.md +++ /dev/null @@ -1,931 +0,0 @@ -# React Query Hooks - -

- -

- -> @generated by @constructive-io/graphql-codegen - DO NOT EDIT - -## 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-sdk/src/admin/hooks/client.ts b/sdk/constructive-sdk/src/admin/hooks/client.ts deleted file mode 100644 index 47b9aa63f..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/client.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/index.ts b/sdk/constructive-sdk/src/admin/hooks/index.ts deleted file mode 100644 index 67389b2a9..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/index.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Auto-generated 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-sdk/src/admin/hooks/invalidation.ts b/sdk/constructive-sdk/src/admin/hooks/invalidation.ts deleted file mode 100644 index 5358dc6b0..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/invalidation.ts +++ /dev/null @@ -1,732 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutation-keys.ts b/sdk/constructive-sdk/src/admin/hooks/mutation-keys.ts deleted file mode 100644 index 788ebfd51..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutation-keys.ts +++ /dev/null @@ -1,331 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/index.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/index.ts deleted file mode 100644 index 0f9e610e3..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/index.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateAppAchievementMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppAchievementMutation.ts deleted file mode 100644 index b39c550bf..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppAchievementMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateAppAdminGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppAdminGrantMutation.ts deleted file mode 100644 index 7dd44401e..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppAdminGrantMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateAppGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppGrantMutation.ts deleted file mode 100644 index 0e2e4c286..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppGrantMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateAppLevelMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppLevelMutation.ts deleted file mode 100644 index 393ed2c2a..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppLevelMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateAppLevelRequirementMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppLevelRequirementMutation.ts deleted file mode 100644 index cde42cf7e..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppLevelRequirementMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateAppLimitDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppLimitDefaultMutation.ts deleted file mode 100644 index 40b24b14d..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppLimitDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateAppLimitMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppLimitMutation.ts deleted file mode 100644 index b7f7072be..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppLimitMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateAppMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppMembershipDefaultMutation.ts deleted file mode 100644 index 0a4ecf4bc..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppMembershipDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts deleted file mode 100644 index fa08b65df..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppMembershipMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateAppOwnerGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppOwnerGrantMutation.ts deleted file mode 100644 index 81f12be36..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppOwnerGrantMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateAppPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppPermissionDefaultMutation.ts deleted file mode 100644 index 1f2314266..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppPermissionDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateAppPermissionMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppPermissionMutation.ts deleted file mode 100644 index 73d4eceec..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppPermissionMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateAppStepMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppStepMutation.ts deleted file mode 100644 index 479dc0a3a..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateAppStepMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateClaimedInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateClaimedInviteMutation.ts deleted file mode 100644 index a84eca95c..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateClaimedInviteMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateInviteMutation.ts deleted file mode 100644 index 928d4f0cd..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateInviteMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateMembershipTypeMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateMembershipTypeMutation.ts deleted file mode 100644 index d8219655f..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateMembershipTypeMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateOrgAdminGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgAdminGrantMutation.ts deleted file mode 100644 index 00687d7da..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgAdminGrantMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateOrgClaimedInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgClaimedInviteMutation.ts deleted file mode 100644 index 4ee4b71c3..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgClaimedInviteMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts deleted file mode 100644 index 391138997..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgGrantMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateOrgInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgInviteMutation.ts deleted file mode 100644 index 6d65fa995..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgInviteMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateOrgLimitDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgLimitDefaultMutation.ts deleted file mode 100644 index af559e6a2..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgLimitDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateOrgLimitMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgLimitMutation.ts deleted file mode 100644 index 33ed2f69e..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgLimitMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateOrgMemberMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgMemberMutation.ts deleted file mode 100644 index 73bbfce52..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgMemberMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts deleted file mode 100644 index 9c1290cfb..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts deleted file mode 100644 index e2b7c7e9b..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgMembershipMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateOrgOwnerGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgOwnerGrantMutation.ts deleted file mode 100644 index 9cec71f7f..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgOwnerGrantMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts deleted file mode 100644 index da1688a0f..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useCreateOrgPermissionMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgPermissionMutation.ts deleted file mode 100644 index b1fd9fd3b..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useCreateOrgPermissionMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteAppAchievementMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppAchievementMutation.ts deleted file mode 100644 index 73f3b0b52..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppAchievementMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteAppAdminGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppAdminGrantMutation.ts deleted file mode 100644 index 83efe201c..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppAdminGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts deleted file mode 100644 index 2dcc61484..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteAppLevelMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppLevelMutation.ts deleted file mode 100644 index d7d002ddb..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppLevelMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.ts deleted file mode 100644 index bcb3e249f..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteAppLimitDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppLimitDefaultMutation.ts deleted file mode 100644 index 3d8cec160..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppLimitDefaultMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteAppLimitMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppLimitMutation.ts deleted file mode 100644 index 9b3ebc52e..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppLimitMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts deleted file mode 100644 index bd2d8e77b..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts deleted file mode 100644 index 270821ab2..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppMembershipMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteAppOwnerGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppOwnerGrantMutation.ts deleted file mode 100644 index 037ca9d28..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppOwnerGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts deleted file mode 100644 index 1c350f3fb..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteAppPermissionMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppPermissionMutation.ts deleted file mode 100644 index 327b4a107..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppPermissionMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteAppStepMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppStepMutation.ts deleted file mode 100644 index f9f36baf8..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteAppStepMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteClaimedInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteClaimedInviteMutation.ts deleted file mode 100644 index 2c3709bd0..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteClaimedInviteMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteInviteMutation.ts deleted file mode 100644 index bf9850ba6..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteInviteMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteMembershipTypeMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteMembershipTypeMutation.ts deleted file mode 100644 index dbec0d9e9..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteMembershipTypeMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteOrgAdminGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgAdminGrantMutation.ts deleted file mode 100644 index b2b62e271..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgAdminGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts deleted file mode 100644 index 267b1abfe..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts deleted file mode 100644 index 94b80fa12..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteOrgInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgInviteMutation.ts deleted file mode 100644 index 2960aeac6..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgInviteMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts deleted file mode 100644 index a8e7bf162..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteOrgLimitMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgLimitMutation.ts deleted file mode 100644 index 818a3b294..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgLimitMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteOrgMemberMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgMemberMutation.ts deleted file mode 100644 index 9c7697147..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgMemberMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts deleted file mode 100644 index e5c398c57..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts deleted file mode 100644 index 5108e73b9..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgMembershipMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts deleted file mode 100644 index 4700e63cd..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts deleted file mode 100644 index 841805104..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useDeleteOrgPermissionMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgPermissionMutation.ts deleted file mode 100644 index 0792b5be9..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useDeleteOrgPermissionMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useSubmitInviteCodeMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useSubmitInviteCodeMutation.ts deleted file mode 100644 index f98317bc5..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useSubmitInviteCodeMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useSubmitOrgInviteCodeMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useSubmitOrgInviteCodeMutation.ts deleted file mode 100644 index a2e71103b..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useSubmitOrgInviteCodeMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateAppAchievementMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppAchievementMutation.ts deleted file mode 100644 index 799b7770f..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppAchievementMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateAppAdminGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppAdminGrantMutation.ts deleted file mode 100644 index 9f97a4a26..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppAdminGrantMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts deleted file mode 100644 index fe323065c..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppGrantMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateAppLevelMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppLevelMutation.ts deleted file mode 100644 index 309666ec5..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppLevelMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.ts deleted file mode 100644 index 418f3464a..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateAppLimitDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppLimitDefaultMutation.ts deleted file mode 100644 index e4bf58682..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppLimitDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateAppLimitMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppLimitMutation.ts deleted file mode 100644 index 673e80850..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppLimitMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts deleted file mode 100644 index c2d03af41..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts deleted file mode 100644 index 21a8572d7..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppMembershipMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateAppOwnerGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppOwnerGrantMutation.ts deleted file mode 100644 index ec1d11eb5..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppOwnerGrantMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts deleted file mode 100644 index 9413e7ad3..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateAppPermissionMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppPermissionMutation.ts deleted file mode 100644 index 73effb82a..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppPermissionMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateAppStepMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppStepMutation.ts deleted file mode 100644 index 2cfe95818..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateAppStepMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateClaimedInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateClaimedInviteMutation.ts deleted file mode 100644 index 45ccdc49a..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateClaimedInviteMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateInviteMutation.ts deleted file mode 100644 index 819636de6..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateInviteMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateMembershipTypeMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateMembershipTypeMutation.ts deleted file mode 100644 index caee90ff0..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateMembershipTypeMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateOrgAdminGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgAdminGrantMutation.ts deleted file mode 100644 index 41f8e6380..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgAdminGrantMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts deleted file mode 100644 index 8b2a21d55..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts deleted file mode 100644 index fc612cf93..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgGrantMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateOrgInviteMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgInviteMutation.ts deleted file mode 100644 index 5093adbfc..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgInviteMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts deleted file mode 100644 index 9226eadb8..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateOrgLimitMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgLimitMutation.ts deleted file mode 100644 index cd8f3baed..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgLimitMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateOrgMemberMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgMemberMutation.ts deleted file mode 100644 index 42f54bfc7..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgMemberMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts deleted file mode 100644 index 06b97181c..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts deleted file mode 100644 index 5a8998fb2..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgMembershipMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts deleted file mode 100644 index f1704e8be..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts deleted file mode 100644 index b512499d2..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/mutations/useUpdateOrgPermissionMutation.ts b/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgPermissionMutation.ts deleted file mode 100644 index 69be765f0..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/mutations/useUpdateOrgPermissionMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/index.ts b/sdk/constructive-sdk/src/admin/hooks/queries/index.ts deleted file mode 100644 index 8ae463934..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/index.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppAchievementQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppAchievementQuery.ts deleted file mode 100644 index 136d30313..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppAchievementQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppAchievementsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppAchievementsQuery.ts deleted file mode 100644 index fb905cd4e..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppAchievementsQuery.ts +++ /dev/null @@ -1,159 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppAdminGrantQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppAdminGrantQuery.ts deleted file mode 100644 index d010f7876..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppAdminGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppAdminGrantsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppAdminGrantsQuery.ts deleted file mode 100644 index eb47436de..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppAdminGrantsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppGrantQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppGrantQuery.ts deleted file mode 100644 index a730510c7..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppGrantsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppGrantsQuery.ts deleted file mode 100644 index cf20fe3c6..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppGrantsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppLevelQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppLevelQuery.ts deleted file mode 100644 index 0c550dd44..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppLevelQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppLevelRequirementQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppLevelRequirementQuery.ts deleted file mode 100644 index 03271277e..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppLevelRequirementQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppLevelRequirementsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppLevelRequirementsQuery.ts deleted file mode 100644 index f085058b5..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppLevelRequirementsQuery.ts +++ /dev/null @@ -1,174 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppLevelsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppLevelsQuery.ts deleted file mode 100644 index 39c9b44bc..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppLevelsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppLimitDefaultQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppLimitDefaultQuery.ts deleted file mode 100644 index c68c8c7ca..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppLimitDefaultQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppLimitDefaultsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppLimitDefaultsQuery.ts deleted file mode 100644 index 8f702ecb1..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppLimitDefaultsQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppLimitQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppLimitQuery.ts deleted file mode 100644 index eb7beb27f..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppLimitQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppLimitsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppLimitsQuery.ts deleted file mode 100644 index 280fd25e8..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppLimitsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppMembershipDefaultQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppMembershipDefaultQuery.ts deleted file mode 100644 index b34f50fc2..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppMembershipDefaultQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppMembershipDefaultsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppMembershipDefaultsQuery.ts deleted file mode 100644 index bda74e8ba..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppMembershipDefaultsQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppMembershipQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppMembershipQuery.ts deleted file mode 100644 index 5cd832890..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppMembershipQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppMembershipsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppMembershipsQuery.ts deleted file mode 100644 index 714e4372b..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppMembershipsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppOwnerGrantQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppOwnerGrantQuery.ts deleted file mode 100644 index 49fcb6506..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppOwnerGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppOwnerGrantsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppOwnerGrantsQuery.ts deleted file mode 100644 index 25a312bcc..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppOwnerGrantsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppPermissionDefaultQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionDefaultQuery.ts deleted file mode 100644 index 47eb66e64..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionDefaultQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppPermissionDefaultsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionDefaultsQuery.ts deleted file mode 100644 index 21414a9fb..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionDefaultsQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppPermissionQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionQuery.ts deleted file mode 100644 index 37a00c5e9..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppPermissionsGetByMaskQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsGetByMaskQuery.ts deleted file mode 100644 index 78774ab69..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsGetByMaskQuery.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts deleted file mode 100644 index cbfe1fad8..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppPermissionsGetMaskQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsGetMaskQuery.ts deleted file mode 100644 index b1e3289da..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsGetMaskQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts deleted file mode 100644 index cb504f810..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppPermissionsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsQuery.ts deleted file mode 100644 index f44f4e105..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppPermissionsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppStepQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppStepQuery.ts deleted file mode 100644 index 7ccfc9884..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppStepQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useAppStepsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useAppStepsQuery.ts deleted file mode 100644 index b6f7d90d8..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useAppStepsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useClaimedInviteQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useClaimedInviteQuery.ts deleted file mode 100644 index e74f389c7..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useClaimedInviteQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useClaimedInvitesQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useClaimedInvitesQuery.ts deleted file mode 100644 index 9373984d9..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useClaimedInvitesQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useInviteQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useInviteQuery.ts deleted file mode 100644 index 51db01afb..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useInviteQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useInvitesQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useInvitesQuery.ts deleted file mode 100644 index 19a1fd3b1..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useInvitesQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useMembershipTypeQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useMembershipTypeQuery.ts deleted file mode 100644 index c8d749048..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useMembershipTypeQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useMembershipTypesQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useMembershipTypesQuery.ts deleted file mode 100644 index c0f5b68c9..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useMembershipTypesQuery.ts +++ /dev/null @@ -1,159 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgAdminGrantQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgAdminGrantQuery.ts deleted file mode 100644 index a4f507c14..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgAdminGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgAdminGrantsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgAdminGrantsQuery.ts deleted file mode 100644 index e3ce559b3..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgAdminGrantsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgClaimedInviteQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgClaimedInviteQuery.ts deleted file mode 100644 index 42ac5f45a..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgClaimedInviteQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgClaimedInvitesQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgClaimedInvitesQuery.ts deleted file mode 100644 index 965828b20..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgClaimedInvitesQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgGrantQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgGrantQuery.ts deleted file mode 100644 index 14ccf29ec..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgGrantsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgGrantsQuery.ts deleted file mode 100644 index 8f1ddc2ab..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgGrantsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgInviteQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgInviteQuery.ts deleted file mode 100644 index d6c2f623f..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgInviteQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgInvitesQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgInvitesQuery.ts deleted file mode 100644 index baaef3936..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgInvitesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgLimitDefaultQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgLimitDefaultQuery.ts deleted file mode 100644 index 695d1eff9..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgLimitDefaultQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgLimitDefaultsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgLimitDefaultsQuery.ts deleted file mode 100644 index fae82e41b..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgLimitDefaultsQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgLimitQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgLimitQuery.ts deleted file mode 100644 index db061397b..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgLimitQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgLimitsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgLimitsQuery.ts deleted file mode 100644 index 032866dfb..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgLimitsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgMemberQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgMemberQuery.ts deleted file mode 100644 index aa4257559..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgMemberQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgMembersQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembersQuery.ts deleted file mode 100644 index 651d52afb..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembersQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgMembershipDefaultQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembershipDefaultQuery.ts deleted file mode 100644 index 47264e0a5..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembershipDefaultQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgMembershipDefaultsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembershipDefaultsQuery.ts deleted file mode 100644 index 8cb20caae..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembershipDefaultsQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgMembershipQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembershipQuery.ts deleted file mode 100644 index ec1c49d75..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembershipQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgMembershipsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembershipsQuery.ts deleted file mode 100644 index cde182a7b..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgMembershipsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgOwnerGrantQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgOwnerGrantQuery.ts deleted file mode 100644 index 9a0b0c9df..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgOwnerGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgOwnerGrantsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgOwnerGrantsQuery.ts deleted file mode 100644 index 315d1cc57..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgOwnerGrantsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgPermissionDefaultQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionDefaultQuery.ts deleted file mode 100644 index 3f324b798..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionDefaultQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgPermissionDefaultsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionDefaultsQuery.ts deleted file mode 100644 index 021e73f1c..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionDefaultsQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgPermissionQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionQuery.ts deleted file mode 100644 index 3d28f9542..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgPermissionsGetByMaskQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsGetByMaskQuery.ts deleted file mode 100644 index 7410e3b04..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsGetByMaskQuery.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts deleted file mode 100644 index 99199bcee..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgPermissionsGetMaskQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsGetMaskQuery.ts deleted file mode 100644 index dad45181b..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsGetMaskQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts deleted file mode 100644 index 4b4f80e72..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useOrgPermissionsQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsQuery.ts deleted file mode 100644 index 3e48264a6..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useOrgPermissionsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useStepsAchievedQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useStepsAchievedQuery.ts deleted file mode 100644 index e5c8bd35b..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useStepsAchievedQuery.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/queries/useStepsRequiredQuery.ts b/sdk/constructive-sdk/src/admin/hooks/queries/useStepsRequiredQuery.ts deleted file mode 100644 index 196567b45..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/queries/useStepsRequiredQuery.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/query-keys.ts b/sdk/constructive-sdk/src/admin/hooks/query-keys.ts deleted file mode 100644 index da5741b1c..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/query-keys.ts +++ /dev/null @@ -1,359 +0,0 @@ -/** - * 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-sdk/src/admin/hooks/selection.ts b/sdk/constructive-sdk/src/admin/hooks/selection.ts deleted file mode 100644 index 2952aab64..000000000 --- a/sdk/constructive-sdk/src/admin/hooks/selection.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 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-sdk/src/admin/index.ts b/sdk/constructive-sdk/src/admin/index.ts index b6d442fc6..51e77d3d4 100644 --- a/sdk/constructive-sdk/src/admin/index.ts +++ b/sdk/constructive-sdk/src/admin/index.ts @@ -2,6 +2,4 @@ * Generated 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-sdk/src/admin/orm/AGENTS.md b/sdk/constructive-sdk/src/admin/orm/AGENTS.md deleted file mode 100644 index b8c521b66..000000000 --- a/sdk/constructive-sdk/src/admin/orm/AGENTS.md +++ /dev/null @@ -1,1222 +0,0 @@ -# ORM Client - Agent Reference - -> @generated by @constructive-io/graphql-codegen - DO NOT EDIT -> This document is structured for LLM/agent consumption. - -## OVERVIEW - -Prisma-like ORM client for interacting with a GraphQL API. -All methods return a query builder. Call `.execute()` to run the query. - -## SETUP - -```typescript -import { createClient } from './orm'; - -const db = createClient({ - endpoint: 'https://api.example.com/graphql', - headers: { Authorization: 'Bearer ' }, -}); -``` - -## MODELS - -### MODEL: appPermission - -Access: `db.appPermission` - -``` -METHODS: - db.appPermission.findMany({ select, where?, orderBy?, first?, offset? }) - db.appPermission.findOne({ where: { id }, select }) - db.appPermission.create({ data: { name, bitnum, bitstr, description }, select }) - db.appPermission.update({ where: { id }, data, select }) - db.appPermission.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - name: string - bitnum: number - bitstr: string - description: string - -EDITABLE FIELDS: - name: string - bitnum: number - bitstr: string - description: string - -OUTPUT: Promise - findMany: [{ id, name, bitnum, bitstr, description }] - findOne: { id, name, bitnum, bitstr, description } - create: { id, name, bitnum, bitstr, description } - update: { id, name, bitnum, bitstr, description } - delete: { id } -``` - -### MODEL: orgPermission - -Access: `db.orgPermission` - -``` -METHODS: - db.orgPermission.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgPermission.findOne({ where: { id }, select }) - db.orgPermission.create({ data: { name, bitnum, bitstr, description }, select }) - db.orgPermission.update({ where: { id }, data, select }) - db.orgPermission.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - name: string - bitnum: number - bitstr: string - description: string - -EDITABLE FIELDS: - name: string - bitnum: number - bitstr: string - description: string - -OUTPUT: Promise - findMany: [{ id, name, bitnum, bitstr, description }] - findOne: { id, name, bitnum, bitstr, description } - create: { id, name, bitnum, bitstr, description } - update: { id, name, bitnum, bitstr, description } - delete: { id } -``` - -### MODEL: appLevelRequirement - -Access: `db.appLevelRequirement` - -``` -METHODS: - db.appLevelRequirement.findMany({ select, where?, orderBy?, first?, offset? }) - db.appLevelRequirement.findOne({ where: { id }, select }) - db.appLevelRequirement.create({ data: { name, level, description, requiredCount, priority }, select }) - db.appLevelRequirement.update({ where: { id }, data, select }) - db.appLevelRequirement.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - name: string - level: string - description: string - requiredCount: number - priority: number - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - name: string - level: string - description: string - requiredCount: number - priority: number - -OUTPUT: Promise - findMany: [{ id, name, level, description, requiredCount, priority, createdAt, updatedAt }] - findOne: { id, name, level, description, requiredCount, priority, createdAt, updatedAt } - create: { id, name, level, description, requiredCount, priority, createdAt, updatedAt } - update: { id, name, level, description, requiredCount, priority, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: orgMember - -Access: `db.orgMember` - -``` -METHODS: - db.orgMember.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgMember.findOne({ where: { id }, select }) - db.orgMember.create({ data: { isAdmin, actorId, entityId }, select }) - db.orgMember.update({ where: { id }, data, select }) - db.orgMember.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - isAdmin: boolean - actorId: string - entityId: string - -EDITABLE FIELDS: - isAdmin: boolean - actorId: string - entityId: string - -OUTPUT: Promise - findMany: [{ id, isAdmin, actorId, entityId }] - findOne: { id, isAdmin, actorId, entityId } - create: { id, isAdmin, actorId, entityId } - update: { id, isAdmin, actorId, entityId } - delete: { id } -``` - -### MODEL: appPermissionDefault - -Access: `db.appPermissionDefault` - -``` -METHODS: - db.appPermissionDefault.findMany({ select, where?, orderBy?, first?, offset? }) - db.appPermissionDefault.findOne({ where: { id }, select }) - db.appPermissionDefault.create({ data: { permissions }, select }) - db.appPermissionDefault.update({ where: { id }, data, select }) - db.appPermissionDefault.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - permissions: string - -EDITABLE FIELDS: - permissions: string - -OUTPUT: Promise - findMany: [{ id, permissions }] - findOne: { id, permissions } - create: { id, permissions } - update: { id, permissions } - delete: { id } -``` - -### MODEL: orgPermissionDefault - -Access: `db.orgPermissionDefault` - -``` -METHODS: - db.orgPermissionDefault.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgPermissionDefault.findOne({ where: { id }, select }) - db.orgPermissionDefault.create({ data: { permissions, entityId }, select }) - db.orgPermissionDefault.update({ where: { id }, data, select }) - db.orgPermissionDefault.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - permissions: string - entityId: string - -EDITABLE FIELDS: - permissions: string - entityId: string - -OUTPUT: Promise - findMany: [{ id, permissions, entityId }] - findOne: { id, permissions, entityId } - create: { id, permissions, entityId } - update: { id, permissions, entityId } - delete: { id } -``` - -### MODEL: appAdminGrant - -Access: `db.appAdminGrant` - -``` -METHODS: - db.appAdminGrant.findMany({ select, where?, orderBy?, first?, offset? }) - db.appAdminGrant.findOne({ where: { id }, select }) - db.appAdminGrant.create({ data: { isGrant, actorId, grantorId }, select }) - db.appAdminGrant.update({ where: { id }, data, select }) - db.appAdminGrant.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - isGrant: boolean - actorId: string - grantorId: string - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - isGrant: boolean - actorId: string - grantorId: string - -OUTPUT: Promise - findMany: [{ id, isGrant, actorId, grantorId, createdAt, updatedAt }] - findOne: { id, isGrant, actorId, grantorId, createdAt, updatedAt } - create: { id, isGrant, actorId, grantorId, createdAt, updatedAt } - update: { id, isGrant, actorId, grantorId, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: appOwnerGrant - -Access: `db.appOwnerGrant` - -``` -METHODS: - db.appOwnerGrant.findMany({ select, where?, orderBy?, first?, offset? }) - db.appOwnerGrant.findOne({ where: { id }, select }) - db.appOwnerGrant.create({ data: { isGrant, actorId, grantorId }, select }) - db.appOwnerGrant.update({ where: { id }, data, select }) - db.appOwnerGrant.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - isGrant: boolean - actorId: string - grantorId: string - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - isGrant: boolean - actorId: string - grantorId: string - -OUTPUT: Promise - findMany: [{ id, isGrant, actorId, grantorId, createdAt, updatedAt }] - findOne: { id, isGrant, actorId, grantorId, createdAt, updatedAt } - create: { id, isGrant, actorId, grantorId, createdAt, updatedAt } - update: { id, isGrant, actorId, grantorId, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: appLimitDefault - -Access: `db.appLimitDefault` - -``` -METHODS: - db.appLimitDefault.findMany({ select, where?, orderBy?, first?, offset? }) - db.appLimitDefault.findOne({ where: { id }, select }) - db.appLimitDefault.create({ data: { name, max }, select }) - db.appLimitDefault.update({ where: { id }, data, select }) - db.appLimitDefault.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - name: string - max: number - -EDITABLE FIELDS: - name: string - max: number - -OUTPUT: Promise - findMany: [{ id, name, max }] - findOne: { id, name, max } - create: { id, name, max } - update: { id, name, max } - delete: { id } -``` - -### MODEL: orgLimitDefault - -Access: `db.orgLimitDefault` - -``` -METHODS: - db.orgLimitDefault.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgLimitDefault.findOne({ where: { id }, select }) - db.orgLimitDefault.create({ data: { name, max }, select }) - db.orgLimitDefault.update({ where: { id }, data, select }) - db.orgLimitDefault.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - name: string - max: number - -EDITABLE FIELDS: - name: string - max: number - -OUTPUT: Promise - findMany: [{ id, name, max }] - findOne: { id, name, max } - create: { id, name, max } - update: { id, name, max } - delete: { id } -``` - -### MODEL: orgAdminGrant - -Access: `db.orgAdminGrant` - -``` -METHODS: - db.orgAdminGrant.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgAdminGrant.findOne({ where: { id }, select }) - db.orgAdminGrant.create({ data: { isGrant, actorId, entityId, grantorId }, select }) - db.orgAdminGrant.update({ where: { id }, data, select }) - db.orgAdminGrant.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - isGrant: boolean - actorId: string - entityId: string - grantorId: string - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - isGrant: boolean - actorId: string - entityId: string - grantorId: string - -OUTPUT: Promise - findMany: [{ id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt }] - findOne: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } - create: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } - update: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: orgOwnerGrant - -Access: `db.orgOwnerGrant` - -``` -METHODS: - db.orgOwnerGrant.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgOwnerGrant.findOne({ where: { id }, select }) - db.orgOwnerGrant.create({ data: { isGrant, actorId, entityId, grantorId }, select }) - db.orgOwnerGrant.update({ where: { id }, data, select }) - db.orgOwnerGrant.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - isGrant: boolean - actorId: string - entityId: string - grantorId: string - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - isGrant: boolean - actorId: string - entityId: string - grantorId: string - -OUTPUT: Promise - findMany: [{ id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt }] - findOne: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } - create: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } - update: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: membershipType - -Access: `db.membershipType` - -``` -METHODS: - db.membershipType.findMany({ select, where?, orderBy?, first?, offset? }) - db.membershipType.findOne({ where: { id }, select }) - db.membershipType.create({ data: { name, description, prefix }, select }) - db.membershipType.update({ where: { id }, data, select }) - db.membershipType.delete({ where: { id } }) - -FIELDS: - id: number (primary key) - name: string - description: string - prefix: string - -EDITABLE FIELDS: - name: string - description: string - prefix: string - -OUTPUT: Promise - findMany: [{ id, name, description, prefix }] - findOne: { id, name, description, prefix } - create: { id, name, description, prefix } - update: { id, name, description, prefix } - delete: { id } -``` - -### MODEL: appLimit - -Access: `db.appLimit` - -``` -METHODS: - db.appLimit.findMany({ select, where?, orderBy?, first?, offset? }) - db.appLimit.findOne({ where: { id }, select }) - db.appLimit.create({ data: { name, actorId, num, max }, select }) - db.appLimit.update({ where: { id }, data, select }) - db.appLimit.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - name: string - actorId: string - num: number - max: number - -EDITABLE FIELDS: - name: string - actorId: string - num: number - max: number - -OUTPUT: Promise - findMany: [{ id, name, actorId, num, max }] - findOne: { id, name, actorId, num, max } - create: { id, name, actorId, num, max } - update: { id, name, actorId, num, max } - delete: { id } -``` - -### MODEL: appAchievement - -Access: `db.appAchievement` - -``` -METHODS: - db.appAchievement.findMany({ select, where?, orderBy?, first?, offset? }) - db.appAchievement.findOne({ where: { id }, select }) - db.appAchievement.create({ data: { actorId, name, count }, select }) - db.appAchievement.update({ where: { id }, data, select }) - db.appAchievement.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - actorId: string - name: string - count: number - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - actorId: string - name: string - count: number - -OUTPUT: Promise - findMany: [{ id, actorId, name, count, createdAt, updatedAt }] - findOne: { id, actorId, name, count, createdAt, updatedAt } - create: { id, actorId, name, count, createdAt, updatedAt } - update: { id, actorId, name, count, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: appStep - -Access: `db.appStep` - -``` -METHODS: - db.appStep.findMany({ select, where?, orderBy?, first?, offset? }) - db.appStep.findOne({ where: { id }, select }) - db.appStep.create({ data: { actorId, name, count }, select }) - db.appStep.update({ where: { id }, data, select }) - db.appStep.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - actorId: string - name: string - count: number - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - actorId: string - name: string - count: number - -OUTPUT: Promise - findMany: [{ id, actorId, name, count, createdAt, updatedAt }] - findOne: { id, actorId, name, count, createdAt, updatedAt } - create: { id, actorId, name, count, createdAt, updatedAt } - update: { id, actorId, name, count, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: claimedInvite - -Access: `db.claimedInvite` - -``` -METHODS: - db.claimedInvite.findMany({ select, where?, orderBy?, first?, offset? }) - db.claimedInvite.findOne({ where: { id }, select }) - db.claimedInvite.create({ data: { data, senderId, receiverId }, select }) - db.claimedInvite.update({ where: { id }, data, select }) - db.claimedInvite.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - data: unknown - senderId: string - receiverId: string - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - data: unknown - senderId: string - receiverId: string - -OUTPUT: Promise - findMany: [{ id, data, senderId, receiverId, createdAt, updatedAt }] - findOne: { id, data, senderId, receiverId, createdAt, updatedAt } - create: { id, data, senderId, receiverId, createdAt, updatedAt } - update: { id, data, senderId, receiverId, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: appGrant - -Access: `db.appGrant` - -``` -METHODS: - db.appGrant.findMany({ select, where?, orderBy?, first?, offset? }) - db.appGrant.findOne({ where: { id }, select }) - db.appGrant.create({ data: { permissions, isGrant, actorId, grantorId }, select }) - db.appGrant.update({ where: { id }, data, select }) - db.appGrant.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - permissions: string - isGrant: boolean - actorId: string - grantorId: string - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - permissions: string - isGrant: boolean - actorId: string - grantorId: string - -OUTPUT: Promise - findMany: [{ id, permissions, isGrant, actorId, grantorId, createdAt, updatedAt }] - findOne: { id, permissions, isGrant, actorId, grantorId, createdAt, updatedAt } - create: { id, permissions, isGrant, actorId, grantorId, createdAt, updatedAt } - update: { id, permissions, isGrant, actorId, grantorId, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: appMembershipDefault - -Access: `db.appMembershipDefault` - -``` -METHODS: - db.appMembershipDefault.findMany({ select, where?, orderBy?, first?, offset? }) - db.appMembershipDefault.findOne({ where: { id }, select }) - db.appMembershipDefault.create({ data: { createdBy, updatedBy, isApproved, isVerified }, select }) - db.appMembershipDefault.update({ where: { id }, data, select }) - db.appMembershipDefault.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - createdAt: string - updatedAt: string - createdBy: string - updatedBy: string - isApproved: boolean - isVerified: boolean - -EDITABLE FIELDS: - createdBy: string - updatedBy: string - isApproved: boolean - isVerified: boolean - -OUTPUT: Promise - findMany: [{ id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isVerified }] - findOne: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isVerified } - create: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isVerified } - update: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isVerified } - delete: { id } -``` - -### MODEL: orgLimit - -Access: `db.orgLimit` - -``` -METHODS: - db.orgLimit.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgLimit.findOne({ where: { id }, select }) - db.orgLimit.create({ data: { name, actorId, num, max, entityId }, select }) - db.orgLimit.update({ where: { id }, data, select }) - db.orgLimit.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - name: string - actorId: string - num: number - max: number - entityId: string - -EDITABLE FIELDS: - name: string - actorId: string - num: number - max: number - entityId: string - -OUTPUT: Promise - findMany: [{ id, name, actorId, num, max, entityId }] - findOne: { id, name, actorId, num, max, entityId } - create: { id, name, actorId, num, max, entityId } - update: { id, name, actorId, num, max, entityId } - delete: { id } -``` - -### MODEL: orgClaimedInvite - -Access: `db.orgClaimedInvite` - -``` -METHODS: - db.orgClaimedInvite.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgClaimedInvite.findOne({ where: { id }, select }) - db.orgClaimedInvite.create({ data: { data, senderId, receiverId, entityId }, select }) - db.orgClaimedInvite.update({ where: { id }, data, select }) - db.orgClaimedInvite.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - data: unknown - senderId: string - receiverId: string - createdAt: string - updatedAt: string - entityId: string - -EDITABLE FIELDS: - data: unknown - senderId: string - receiverId: string - entityId: string - -OUTPUT: Promise - findMany: [{ id, data, senderId, receiverId, createdAt, updatedAt, entityId }] - findOne: { id, data, senderId, receiverId, createdAt, updatedAt, entityId } - create: { id, data, senderId, receiverId, createdAt, updatedAt, entityId } - update: { id, data, senderId, receiverId, createdAt, updatedAt, entityId } - delete: { id } -``` - -### MODEL: orgGrant - -Access: `db.orgGrant` - -``` -METHODS: - db.orgGrant.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgGrant.findOne({ where: { id }, select }) - db.orgGrant.create({ data: { permissions, isGrant, actorId, entityId, grantorId }, select }) - db.orgGrant.update({ where: { id }, data, select }) - db.orgGrant.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - permissions: string - isGrant: boolean - actorId: string - entityId: string - grantorId: string - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - permissions: string - isGrant: boolean - actorId: string - entityId: string - grantorId: string - -OUTPUT: Promise - findMany: [{ id, permissions, isGrant, actorId, entityId, grantorId, createdAt, updatedAt }] - findOne: { id, permissions, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } - create: { id, permissions, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } - update: { id, permissions, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: orgMembershipDefault - -Access: `db.orgMembershipDefault` - -``` -METHODS: - db.orgMembershipDefault.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgMembershipDefault.findOne({ where: { id }, select }) - db.orgMembershipDefault.create({ data: { createdBy, updatedBy, isApproved, entityId, deleteMemberCascadeGroups, createGroupsCascadeMembers }, select }) - db.orgMembershipDefault.update({ where: { id }, data, select }) - db.orgMembershipDefault.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - createdAt: string - updatedAt: string - createdBy: string - updatedBy: string - isApproved: boolean - entityId: string - deleteMemberCascadeGroups: boolean - createGroupsCascadeMembers: boolean - -EDITABLE FIELDS: - createdBy: string - updatedBy: string - isApproved: boolean - entityId: string - deleteMemberCascadeGroups: boolean - createGroupsCascadeMembers: boolean - -OUTPUT: Promise - findMany: [{ id, createdAt, updatedAt, createdBy, updatedBy, isApproved, entityId, deleteMemberCascadeGroups, createGroupsCascadeMembers }] - findOne: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, entityId, deleteMemberCascadeGroups, createGroupsCascadeMembers } - create: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, entityId, deleteMemberCascadeGroups, createGroupsCascadeMembers } - update: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, entityId, deleteMemberCascadeGroups, createGroupsCascadeMembers } - delete: { id } -``` - -### MODEL: appLevel - -Access: `db.appLevel` - -``` -METHODS: - db.appLevel.findMany({ select, where?, orderBy?, first?, offset? }) - db.appLevel.findOne({ where: { id }, select }) - db.appLevel.create({ data: { name, description, image, ownerId }, select }) - db.appLevel.update({ where: { id }, data, select }) - db.appLevel.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - name: string - description: string - image: ConstructiveInternalTypeImage - ownerId: string - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - name: string - description: string - image: ConstructiveInternalTypeImage - ownerId: string - -OUTPUT: Promise - findMany: [{ id, name, description, image, ownerId, createdAt, updatedAt }] - findOne: { id, name, description, image, ownerId, createdAt, updatedAt } - create: { id, name, description, image, ownerId, createdAt, updatedAt } - update: { id, name, description, image, ownerId, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: invite - -Access: `db.invite` - -``` -METHODS: - db.invite.findMany({ select, where?, orderBy?, first?, offset? }) - db.invite.findOne({ where: { id }, select }) - db.invite.create({ data: { email, senderId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt }, select }) - db.invite.update({ where: { id }, data, select }) - db.invite.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - email: ConstructiveInternalTypeEmail - senderId: string - inviteToken: string - inviteValid: boolean - inviteLimit: number - inviteCount: number - multiple: boolean - data: unknown - expiresAt: string - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - email: ConstructiveInternalTypeEmail - senderId: string - inviteToken: string - inviteValid: boolean - inviteLimit: number - inviteCount: number - multiple: boolean - data: unknown - expiresAt: string - -OUTPUT: Promise - findMany: [{ id, email, senderId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt }] - findOne: { id, email, senderId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt } - create: { id, email, senderId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt } - update: { id, email, senderId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: appMembership - -Access: `db.appMembership` - -``` -METHODS: - db.appMembership.findMany({ select, where?, orderBy?, first?, offset? }) - db.appMembership.findOne({ where: { id }, select }) - db.appMembership.create({ data: { createdBy, updatedBy, isApproved, isBanned, isDisabled, isVerified, isActive, isOwner, isAdmin, permissions, granted, actorId }, select }) - db.appMembership.update({ where: { id }, data, select }) - db.appMembership.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - createdBy: string - updatedBy: string - isApproved: boolean - isBanned: boolean - isDisabled: boolean - isVerified: boolean - isActive: boolean - isOwner: boolean - isAdmin: boolean - permissions: string - granted: string - actorId: string - -OUTPUT: Promise - findMany: [{ id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isVerified, isActive, isOwner, isAdmin, permissions, granted, actorId }] - findOne: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isVerified, isActive, isOwner, isAdmin, permissions, granted, actorId } - create: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isVerified, isActive, isOwner, isAdmin, permissions, granted, actorId } - update: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isVerified, isActive, isOwner, isAdmin, permissions, granted, actorId } - delete: { id } -``` - -### MODEL: orgMembership - -Access: `db.orgMembership` - -``` -METHODS: - db.orgMembership.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgMembership.findOne({ where: { id }, select }) - db.orgMembership.create({ data: { createdBy, updatedBy, isApproved, isBanned, isDisabled, isActive, isOwner, isAdmin, permissions, granted, actorId, entityId }, select }) - db.orgMembership.update({ where: { id }, data, select }) - db.orgMembership.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - createdBy: string - updatedBy: string - isApproved: boolean - isBanned: boolean - isDisabled: boolean - isActive: boolean - isOwner: boolean - isAdmin: boolean - permissions: string - granted: string - actorId: string - entityId: string - -OUTPUT: Promise - findMany: [{ id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isActive, isOwner, isAdmin, permissions, granted, actorId, entityId }] - findOne: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isActive, isOwner, isAdmin, permissions, granted, actorId, entityId } - create: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isActive, isOwner, isAdmin, permissions, granted, actorId, entityId } - update: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isActive, isOwner, isAdmin, permissions, granted, actorId, entityId } - delete: { id } -``` - -### MODEL: orgInvite - -Access: `db.orgInvite` - -``` -METHODS: - db.orgInvite.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgInvite.findOne({ where: { id }, select }) - db.orgInvite.create({ data: { email, senderId, receiverId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, entityId }, select }) - db.orgInvite.update({ where: { id }, data, select }) - db.orgInvite.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - email: ConstructiveInternalTypeEmail - senderId: string - receiverId: string - inviteToken: string - inviteValid: boolean - inviteLimit: number - inviteCount: number - multiple: boolean - data: unknown - expiresAt: string - entityId: string - -OUTPUT: Promise - findMany: [{ id, email, senderId, receiverId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt, entityId }] - findOne: { id, email, senderId, receiverId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt, entityId } - create: { id, email, senderId, receiverId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt, entityId } - update: { id, email, senderId, receiverId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt, entityId } - delete: { id } -``` - -## CUSTOM OPERATIONS - -### OPERATION: appPermissionsGetPaddedMask - -appPermissionsGetPaddedMask - -``` -TYPE: query -ACCESS: db.query.appPermissionsGetPaddedMask -USAGE: db.query.appPermissionsGetPaddedMask({ mask: }).execute() - -INPUT: - mask: BitString - -OUTPUT: Promise -``` - -### OPERATION: orgPermissionsGetPaddedMask - -orgPermissionsGetPaddedMask - -``` -TYPE: query -ACCESS: db.query.orgPermissionsGetPaddedMask -USAGE: db.query.orgPermissionsGetPaddedMask({ mask: }).execute() - -INPUT: - mask: BitString - -OUTPUT: Promise -``` - -### OPERATION: stepsAchieved - -stepsAchieved - -``` -TYPE: query -ACCESS: db.query.stepsAchieved -USAGE: db.query.stepsAchieved({ vlevel: , vroleId: }).execute() - -INPUT: - vlevel: String - vroleId: UUID - -OUTPUT: Promise -``` - -### OPERATION: appPermissionsGetMask - -appPermissionsGetMask - -``` -TYPE: query -ACCESS: db.query.appPermissionsGetMask -USAGE: db.query.appPermissionsGetMask({ ids: }).execute() - -INPUT: - ids: [UUID] - -OUTPUT: Promise -``` - -### OPERATION: orgPermissionsGetMask - -orgPermissionsGetMask - -``` -TYPE: query -ACCESS: db.query.orgPermissionsGetMask -USAGE: db.query.orgPermissionsGetMask({ ids: }).execute() - -INPUT: - ids: [UUID] - -OUTPUT: Promise -``` - -### OPERATION: appPermissionsGetMaskByNames - -appPermissionsGetMaskByNames - -``` -TYPE: query -ACCESS: db.query.appPermissionsGetMaskByNames -USAGE: db.query.appPermissionsGetMaskByNames({ names: }).execute() - -INPUT: - names: [String] - -OUTPUT: Promise -``` - -### OPERATION: orgPermissionsGetMaskByNames - -orgPermissionsGetMaskByNames - -``` -TYPE: query -ACCESS: db.query.orgPermissionsGetMaskByNames -USAGE: db.query.orgPermissionsGetMaskByNames({ names: }).execute() - -INPUT: - names: [String] - -OUTPUT: Promise -``` - -### OPERATION: appPermissionsGetByMask - -Reads and enables pagination through a set of `AppPermission`. - -``` -TYPE: query -ACCESS: db.query.appPermissionsGetByMask -USAGE: db.query.appPermissionsGetByMask({ mask: , first: , offset: , after: }).execute() - -INPUT: - mask: BitString - first: Int - offset: Int - after: Cursor - -OUTPUT: Promise -``` - -### OPERATION: orgPermissionsGetByMask - -Reads and enables pagination through a set of `OrgPermission`. - -``` -TYPE: query -ACCESS: db.query.orgPermissionsGetByMask -USAGE: db.query.orgPermissionsGetByMask({ mask: , first: , offset: , after: }).execute() - -INPUT: - mask: BitString - first: Int - offset: Int - after: Cursor - -OUTPUT: Promise -``` - -### OPERATION: stepsRequired - -Reads and enables pagination through a set of `AppLevelRequirement`. - -``` -TYPE: query -ACCESS: db.query.stepsRequired -USAGE: db.query.stepsRequired({ vlevel: , vroleId: , first: , offset: , after: }).execute() - -INPUT: - vlevel: String - vroleId: UUID - first: Int - offset: Int - after: Cursor - -OUTPUT: Promise -``` - -### OPERATION: submitInviteCode - -submitInviteCode - -``` -TYPE: mutation -ACCESS: db.mutation.submitInviteCode -USAGE: db.mutation.submitInviteCode({ input: }).execute() - -INPUT: - input: SubmitInviteCodeInput (required) - -OUTPUT: Promise -``` - -### OPERATION: submitOrgInviteCode - -submitOrgInviteCode - -``` -TYPE: mutation -ACCESS: db.mutation.submitOrgInviteCode -USAGE: db.mutation.submitOrgInviteCode({ input: }).execute() - -INPUT: - input: SubmitOrgInviteCodeInput (required) - -OUTPUT: Promise -``` - -## PATTERNS - -```typescript -// All methods require .execute() to run -const result = await db.modelName.findMany({ select: { id: true } }).execute(); - -// Select specific fields -const partial = await db.modelName.findMany({ select: { id: true, name: true } }).execute(); - -// Filter with where clause -const filtered = await db.modelName.findMany({ select: { id: true }, where: { name: 'test' } }).execute(); -``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appAchievement.md b/sdk/constructive-sdk/src/admin/orm/skills/appAchievement.md new file mode 100644 index 000000000..2c6c3ffbf --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/appAchievement.md @@ -0,0 +1,34 @@ +# orm-appAchievement + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppAchievement records + +## Usage + +```typescript +db.appAchievement.findMany({ select: { id: true } }).execute() +db.appAchievement.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() +db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.appAchievement.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appAchievement records + +```typescript +const items = await db.appAchievement.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a appAchievement + +```typescript +const item = await db.appAchievement.create({ + data: { actorId: 'value', name: 'value', count: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appAdminGrant.md b/sdk/constructive-sdk/src/admin/orm/skills/appAdminGrant.md new file mode 100644 index 000000000..369c03155 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/appAdminGrant.md @@ -0,0 +1,34 @@ +# orm-appAdminGrant + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppAdminGrant records + +## Usage + +```typescript +db.appAdminGrant.findMany({ select: { id: true } }).execute() +db.appAdminGrant.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() +db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() +db.appAdminGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appAdminGrant records + +```typescript +const items = await db.appAdminGrant.findMany({ + select: { id: true, isGrant: true } +}).execute(); +``` + +### Create a appAdminGrant + +```typescript +const item = await db.appAdminGrant.create({ + data: { isGrant: 'value', actorId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appGrant.md b/sdk/constructive-sdk/src/admin/orm/skills/appGrant.md new file mode 100644 index 000000000..a54730e13 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/appGrant.md @@ -0,0 +1,34 @@ +# orm-appGrant + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppGrant records + +## Usage + +```typescript +db.appGrant.findMany({ select: { id: true } }).execute() +db.appGrant.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() +db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() +db.appGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appGrant records + +```typescript +const items = await db.appGrant.findMany({ + select: { id: true, permissions: true } +}).execute(); +``` + +### Create a appGrant + +```typescript +const item = await db.appGrant.create({ + data: { permissions: 'value', isGrant: 'value', actorId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appLevel.md b/sdk/constructive-sdk/src/admin/orm/skills/appLevel.md new file mode 100644 index 000000000..9eb953036 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/appLevel.md @@ -0,0 +1,34 @@ +# orm-appLevel + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppLevel records + +## Usage + +```typescript +db.appLevel.findMany({ select: { id: true } }).execute() +db.appLevel.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute() +db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLevel.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLevel records + +```typescript +const items = await db.appLevel.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLevel + +```typescript +const item = await db.appLevel.create({ + data: { name: 'value', description: 'value', image: 'value', ownerId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appLevelRequirement.md b/sdk/constructive-sdk/src/admin/orm/skills/appLevelRequirement.md new file mode 100644 index 000000000..284d81a6d --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/appLevelRequirement.md @@ -0,0 +1,34 @@ +# orm-appLevelRequirement + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppLevelRequirement records + +## Usage + +```typescript +db.appLevelRequirement.findMany({ select: { id: true } }).execute() +db.appLevelRequirement.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '' }, select: { id: true } }).execute() +db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLevelRequirement.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLevelRequirement records + +```typescript +const items = await db.appLevelRequirement.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLevelRequirement + +```typescript +const item = await db.appLevelRequirement.create({ + data: { name: 'value', level: 'value', description: 'value', requiredCount: 'value', priority: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appLimit.md b/sdk/constructive-sdk/src/admin/orm/skills/appLimit.md new file mode 100644 index 000000000..31c95e668 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/appLimit.md @@ -0,0 +1,34 @@ +# orm-appLimit + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppLimit records + +## Usage + +```typescript +db.appLimit.findMany({ select: { id: true } }).execute() +db.appLimit.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute() +db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLimit.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLimit records + +```typescript +const items = await db.appLimit.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLimit + +```typescript +const item = await db.appLimit.create({ + data: { name: 'value', actorId: 'value', num: 'value', max: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appLimitDefault.md b/sdk/constructive-sdk/src/admin/orm/skills/appLimitDefault.md new file mode 100644 index 000000000..2ad984fef --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/appLimitDefault.md @@ -0,0 +1,34 @@ +# orm-appLimitDefault + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppLimitDefault records + +## Usage + +```typescript +db.appLimitDefault.findMany({ select: { id: true } }).execute() +db.appLimitDefault.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() +db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLimitDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLimitDefault records + +```typescript +const items = await db.appLimitDefault.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLimitDefault + +```typescript +const item = await db.appLimitDefault.create({ + data: { name: 'value', max: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appMembership.md b/sdk/constructive-sdk/src/admin/orm/skills/appMembership.md new file mode 100644 index 000000000..430f01eb9 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/appMembership.md @@ -0,0 +1,34 @@ +# orm-appMembership + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppMembership records + +## Usage + +```typescript +db.appMembership.findMany({ select: { id: true } }).execute() +db.appMembership.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }, select: { id: true } }).execute() +db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.appMembership.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appMembership records + +```typescript +const items = await db.appMembership.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a appMembership + +```typescript +const item = await db.appMembership.create({ + data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isVerified: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appMembershipDefault.md b/sdk/constructive-sdk/src/admin/orm/skills/appMembershipDefault.md new file mode 100644 index 000000000..9d349cb3f --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/appMembershipDefault.md @@ -0,0 +1,34 @@ +# orm-appMembershipDefault + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppMembershipDefault records + +## Usage + +```typescript +db.appMembershipDefault.findMany({ select: { id: true } }).execute() +db.appMembershipDefault.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute() +db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.appMembershipDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appMembershipDefault records + +```typescript +const items = await db.appMembershipDefault.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a appMembershipDefault + +```typescript +const item = await db.appMembershipDefault.create({ + data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isVerified: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appOwnerGrant.md b/sdk/constructive-sdk/src/admin/orm/skills/appOwnerGrant.md new file mode 100644 index 000000000..a231f5ab1 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/appOwnerGrant.md @@ -0,0 +1,34 @@ +# orm-appOwnerGrant + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppOwnerGrant records + +## Usage + +```typescript +db.appOwnerGrant.findMany({ select: { id: true } }).execute() +db.appOwnerGrant.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() +db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() +db.appOwnerGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appOwnerGrant records + +```typescript +const items = await db.appOwnerGrant.findMany({ + select: { id: true, isGrant: true } +}).execute(); +``` + +### Create a appOwnerGrant + +```typescript +const item = await db.appOwnerGrant.create({ + data: { isGrant: 'value', actorId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appPermission.md b/sdk/constructive-sdk/src/admin/orm/skills/appPermission.md new file mode 100644 index 000000000..aa696c61d --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/appPermission.md @@ -0,0 +1,34 @@ +# orm-appPermission + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppPermission records + +## Usage + +```typescript +db.appPermission.findMany({ select: { id: true } }).execute() +db.appPermission.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute() +db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appPermission.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appPermission records + +```typescript +const items = await db.appPermission.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appPermission + +```typescript +const item = await db.appPermission.create({ + data: { name: 'value', bitnum: 'value', bitstr: 'value', description: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionDefault.md b/sdk/constructive-sdk/src/admin/orm/skills/appPermissionDefault.md new file mode 100644 index 000000000..4fa6f182e --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/appPermissionDefault.md @@ -0,0 +1,34 @@ +# orm-appPermissionDefault + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppPermissionDefault records + +## Usage + +```typescript +db.appPermissionDefault.findMany({ select: { id: true } }).execute() +db.appPermissionDefault.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute() +db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() +db.appPermissionDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appPermissionDefault records + +```typescript +const items = await db.appPermissionDefault.findMany({ + select: { id: true, permissions: true } +}).execute(); +``` + +### Create a appPermissionDefault + +```typescript +const item = await db.appPermissionDefault.create({ + data: { permissions: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetByMask.md b/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetByMask.md new file mode 100644 index 000000000..c86b015fa --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetByMask.md @@ -0,0 +1,19 @@ +# orm-appPermissionsGetByMask + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Reads and enables pagination through a set of `AppPermission`. + +## Usage + +```typescript +db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute() +``` + +## Examples + +### Run appPermissionsGetByMask + +```typescript +const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetMask.md b/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetMask.md new file mode 100644 index 000000000..9c9b8298e --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetMask.md @@ -0,0 +1,19 @@ +# orm-appPermissionsGetMask + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the appPermissionsGetMask query + +## Usage + +```typescript +db.query.appPermissionsGetMask({ ids: '' }).execute() +``` + +## Examples + +### Run appPermissionsGetMask + +```typescript +const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetMaskByNames.md b/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetMaskByNames.md new file mode 100644 index 000000000..a3c3cc07d --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetMaskByNames.md @@ -0,0 +1,19 @@ +# orm-appPermissionsGetMaskByNames + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the appPermissionsGetMaskByNames query + +## Usage + +```typescript +db.query.appPermissionsGetMaskByNames({ names: '' }).execute() +``` + +## Examples + +### Run appPermissionsGetMaskByNames + +```typescript +const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetPaddedMask.md b/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetPaddedMask.md new file mode 100644 index 000000000..14f897ff1 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/appPermissionsGetPaddedMask.md @@ -0,0 +1,19 @@ +# orm-appPermissionsGetPaddedMask + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the appPermissionsGetPaddedMask query + +## Usage + +```typescript +db.query.appPermissionsGetPaddedMask({ mask: '' }).execute() +``` + +## Examples + +### Run appPermissionsGetPaddedMask + +```typescript +const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/appStep.md b/sdk/constructive-sdk/src/admin/orm/skills/appStep.md new file mode 100644 index 000000000..150d5a10d --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/appStep.md @@ -0,0 +1,34 @@ +# orm-appStep + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppStep records + +## Usage + +```typescript +db.appStep.findMany({ select: { id: true } }).execute() +db.appStep.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() +db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.appStep.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appStep records + +```typescript +const items = await db.appStep.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a appStep + +```typescript +const item = await db.appStep.create({ + data: { actorId: 'value', name: 'value', count: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/claimedInvite.md b/sdk/constructive-sdk/src/admin/orm/skills/claimedInvite.md new file mode 100644 index 000000000..9d021e947 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/claimedInvite.md @@ -0,0 +1,34 @@ +# orm-claimedInvite + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for ClaimedInvite records + +## Usage + +```typescript +db.claimedInvite.findMany({ select: { id: true } }).execute() +db.claimedInvite.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute() +db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() +db.claimedInvite.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all claimedInvite records + +```typescript +const items = await db.claimedInvite.findMany({ + select: { id: true, data: true } +}).execute(); +``` + +### Create a claimedInvite + +```typescript +const item = await db.claimedInvite.create({ + data: { data: 'value', senderId: 'value', receiverId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/invite.md b/sdk/constructive-sdk/src/admin/orm/skills/invite.md new file mode 100644 index 000000000..9876bbfb4 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/invite.md @@ -0,0 +1,34 @@ +# orm-invite + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Invite records + +## Usage + +```typescript +db.invite.findMany({ select: { id: true } }).execute() +db.invite.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute() +db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() +db.invite.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all invite records + +```typescript +const items = await db.invite.findMany({ + select: { id: true, email: true } +}).execute(); +``` + +### Create a invite + +```typescript +const item = await db.invite.create({ + data: { email: 'value', senderId: 'value', inviteToken: 'value', inviteValid: 'value', inviteLimit: 'value', inviteCount: 'value', multiple: 'value', data: 'value', expiresAt: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/membershipType.md b/sdk/constructive-sdk/src/admin/orm/skills/membershipType.md new file mode 100644 index 000000000..0620ef53a --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/membershipType.md @@ -0,0 +1,34 @@ +# orm-membershipType + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for MembershipType records + +## Usage + +```typescript +db.membershipType.findMany({ select: { id: true } }).execute() +db.membershipType.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute() +db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.membershipType.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all membershipType records + +```typescript +const items = await db.membershipType.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a membershipType + +```typescript +const item = await db.membershipType.create({ + data: { name: 'value', description: 'value', prefix: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgAdminGrant.md b/sdk/constructive-sdk/src/admin/orm/skills/orgAdminGrant.md new file mode 100644 index 000000000..714c32c1d --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/orgAdminGrant.md @@ -0,0 +1,34 @@ +# orm-orgAdminGrant + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgAdminGrant records + +## Usage + +```typescript +db.orgAdminGrant.findMany({ select: { id: true } }).execute() +db.orgAdminGrant.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() +db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() +db.orgAdminGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgAdminGrant records + +```typescript +const items = await db.orgAdminGrant.findMany({ + select: { id: true, isGrant: true } +}).execute(); +``` + +### Create a orgAdminGrant + +```typescript +const item = await db.orgAdminGrant.create({ + data: { isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgClaimedInvite.md b/sdk/constructive-sdk/src/admin/orm/skills/orgClaimedInvite.md new file mode 100644 index 000000000..8935e2621 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/orgClaimedInvite.md @@ -0,0 +1,34 @@ +# orm-orgClaimedInvite + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgClaimedInvite records + +## Usage + +```typescript +db.orgClaimedInvite.findMany({ select: { id: true } }).execute() +db.orgClaimedInvite.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute() +db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() +db.orgClaimedInvite.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgClaimedInvite records + +```typescript +const items = await db.orgClaimedInvite.findMany({ + select: { id: true, data: true } +}).execute(); +``` + +### Create a orgClaimedInvite + +```typescript +const item = await db.orgClaimedInvite.create({ + data: { data: 'value', senderId: 'value', receiverId: 'value', entityId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgGrant.md b/sdk/constructive-sdk/src/admin/orm/skills/orgGrant.md new file mode 100644 index 000000000..0ab99fee3 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/orgGrant.md @@ -0,0 +1,34 @@ +# orm-orgGrant + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgGrant records + +## Usage + +```typescript +db.orgGrant.findMany({ select: { id: true } }).execute() +db.orgGrant.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() +db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() +db.orgGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgGrant records + +```typescript +const items = await db.orgGrant.findMany({ + select: { id: true, permissions: true } +}).execute(); +``` + +### Create a orgGrant + +```typescript +const item = await db.orgGrant.create({ + data: { permissions: 'value', isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgInvite.md b/sdk/constructive-sdk/src/admin/orm/skills/orgInvite.md new file mode 100644 index 000000000..5a36676cd --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/orgInvite.md @@ -0,0 +1,34 @@ +# orm-orgInvite + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgInvite records + +## Usage + +```typescript +db.orgInvite.findMany({ select: { id: true } }).execute() +db.orgInvite.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute() +db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() +db.orgInvite.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgInvite records + +```typescript +const items = await db.orgInvite.findMany({ + select: { id: true, email: true } +}).execute(); +``` + +### Create a orgInvite + +```typescript +const item = await db.orgInvite.create({ + data: { email: 'value', senderId: 'value', receiverId: 'value', inviteToken: 'value', inviteValid: 'value', inviteLimit: 'value', inviteCount: 'value', multiple: 'value', data: 'value', expiresAt: 'value', entityId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgLimit.md b/sdk/constructive-sdk/src/admin/orm/skills/orgLimit.md new file mode 100644 index 000000000..9830fe5d1 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/orgLimit.md @@ -0,0 +1,34 @@ +# orm-orgLimit + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgLimit records + +## Usage + +```typescript +db.orgLimit.findMany({ select: { id: true } }).execute() +db.orgLimit.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute() +db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgLimit.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgLimit records + +```typescript +const items = await db.orgLimit.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgLimit + +```typescript +const item = await db.orgLimit.create({ + data: { name: 'value', actorId: 'value', num: 'value', max: 'value', entityId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgLimitDefault.md b/sdk/constructive-sdk/src/admin/orm/skills/orgLimitDefault.md new file mode 100644 index 000000000..482453e14 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/orgLimitDefault.md @@ -0,0 +1,34 @@ +# orm-orgLimitDefault + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgLimitDefault records + +## Usage + +```typescript +db.orgLimitDefault.findMany({ select: { id: true } }).execute() +db.orgLimitDefault.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() +db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgLimitDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgLimitDefault records + +```typescript +const items = await db.orgLimitDefault.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgLimitDefault + +```typescript +const item = await db.orgLimitDefault.create({ + data: { name: 'value', max: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgMember.md b/sdk/constructive-sdk/src/admin/orm/skills/orgMember.md new file mode 100644 index 000000000..33ceae082 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/orgMember.md @@ -0,0 +1,34 @@ +# orm-orgMember + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgMember records + +## Usage + +```typescript +db.orgMember.findMany({ select: { id: true } }).execute() +db.orgMember.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute() +db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute() +db.orgMember.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgMember records + +```typescript +const items = await db.orgMember.findMany({ + select: { id: true, isAdmin: true } +}).execute(); +``` + +### Create a orgMember + +```typescript +const item = await db.orgMember.create({ + data: { isAdmin: 'value', actorId: 'value', entityId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgMembership.md b/sdk/constructive-sdk/src/admin/orm/skills/orgMembership.md new file mode 100644 index 000000000..7afbaff12 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/orgMembership.md @@ -0,0 +1,34 @@ +# orm-orgMembership + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgMembership records + +## Usage + +```typescript +db.orgMembership.findMany({ select: { id: true } }).execute() +db.orgMembership.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }, select: { id: true } }).execute() +db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.orgMembership.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgMembership records + +```typescript +const items = await db.orgMembership.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a orgMembership + +```typescript +const item = await db.orgMembership.create({ + data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value', entityId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgMembershipDefault.md b/sdk/constructive-sdk/src/admin/orm/skills/orgMembershipDefault.md new file mode 100644 index 000000000..5327629e2 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/orgMembershipDefault.md @@ -0,0 +1,34 @@ +# orm-orgMembershipDefault + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgMembershipDefault records + +## Usage + +```typescript +db.orgMembershipDefault.findMany({ select: { id: true } }).execute() +db.orgMembershipDefault.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute() +db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.orgMembershipDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgMembershipDefault records + +```typescript +const items = await db.orgMembershipDefault.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a orgMembershipDefault + +```typescript +const item = await db.orgMembershipDefault.create({ + data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', entityId: 'value', deleteMemberCascadeGroups: 'value', createGroupsCascadeMembers: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgOwnerGrant.md b/sdk/constructive-sdk/src/admin/orm/skills/orgOwnerGrant.md new file mode 100644 index 000000000..27866aaf1 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/orgOwnerGrant.md @@ -0,0 +1,34 @@ +# orm-orgOwnerGrant + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgOwnerGrant records + +## Usage + +```typescript +db.orgOwnerGrant.findMany({ select: { id: true } }).execute() +db.orgOwnerGrant.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() +db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() +db.orgOwnerGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgOwnerGrant records + +```typescript +const items = await db.orgOwnerGrant.findMany({ + select: { id: true, isGrant: true } +}).execute(); +``` + +### Create a orgOwnerGrant + +```typescript +const item = await db.orgOwnerGrant.create({ + data: { isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgPermission.md b/sdk/constructive-sdk/src/admin/orm/skills/orgPermission.md new file mode 100644 index 000000000..b134f520e --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/orgPermission.md @@ -0,0 +1,34 @@ +# orm-orgPermission + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgPermission records + +## Usage + +```typescript +db.orgPermission.findMany({ select: { id: true } }).execute() +db.orgPermission.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute() +db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgPermission.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgPermission records + +```typescript +const items = await db.orgPermission.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgPermission + +```typescript +const item = await db.orgPermission.create({ + data: { name: 'value', bitnum: 'value', bitstr: 'value', description: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionDefault.md b/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionDefault.md new file mode 100644 index 000000000..65324e31b --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionDefault.md @@ -0,0 +1,34 @@ +# orm-orgPermissionDefault + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgPermissionDefault records + +## Usage + +```typescript +db.orgPermissionDefault.findMany({ select: { id: true } }).execute() +db.orgPermissionDefault.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute() +db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() +db.orgPermissionDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgPermissionDefault records + +```typescript +const items = await db.orgPermissionDefault.findMany({ + select: { id: true, permissions: true } +}).execute(); +``` + +### Create a orgPermissionDefault + +```typescript +const item = await db.orgPermissionDefault.create({ + data: { permissions: 'value', entityId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetByMask.md b/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetByMask.md new file mode 100644 index 000000000..83bec21a2 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetByMask.md @@ -0,0 +1,19 @@ +# orm-orgPermissionsGetByMask + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Reads and enables pagination through a set of `OrgPermission`. + +## Usage + +```typescript +db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute() +``` + +## Examples + +### Run orgPermissionsGetByMask + +```typescript +const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetMask.md b/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetMask.md new file mode 100644 index 000000000..2d1821395 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetMask.md @@ -0,0 +1,19 @@ +# orm-orgPermissionsGetMask + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the orgPermissionsGetMask query + +## Usage + +```typescript +db.query.orgPermissionsGetMask({ ids: '' }).execute() +``` + +## Examples + +### Run orgPermissionsGetMask + +```typescript +const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetMaskByNames.md b/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetMaskByNames.md new file mode 100644 index 000000000..609530a02 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetMaskByNames.md @@ -0,0 +1,19 @@ +# orm-orgPermissionsGetMaskByNames + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the orgPermissionsGetMaskByNames query + +## Usage + +```typescript +db.query.orgPermissionsGetMaskByNames({ names: '' }).execute() +``` + +## Examples + +### Run orgPermissionsGetMaskByNames + +```typescript +const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetPaddedMask.md b/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetPaddedMask.md new file mode 100644 index 000000000..c6d800691 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/orgPermissionsGetPaddedMask.md @@ -0,0 +1,19 @@ +# orm-orgPermissionsGetPaddedMask + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the orgPermissionsGetPaddedMask query + +## Usage + +```typescript +db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute() +``` + +## Examples + +### Run orgPermissionsGetPaddedMask + +```typescript +const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/stepsAchieved.md b/sdk/constructive-sdk/src/admin/orm/skills/stepsAchieved.md new file mode 100644 index 000000000..e0de833fd --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/stepsAchieved.md @@ -0,0 +1,19 @@ +# orm-stepsAchieved + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the stepsAchieved query + +## Usage + +```typescript +db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute() +``` + +## Examples + +### Run stepsAchieved + +```typescript +const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/stepsRequired.md b/sdk/constructive-sdk/src/admin/orm/skills/stepsRequired.md new file mode 100644 index 000000000..b346c983e --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/stepsRequired.md @@ -0,0 +1,19 @@ +# orm-stepsRequired + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Reads and enables pagination through a set of `AppLevelRequirement`. + +## Usage + +```typescript +db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute() +``` + +## Examples + +### Run stepsRequired + +```typescript +const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/submitInviteCode.md b/sdk/constructive-sdk/src/admin/orm/skills/submitInviteCode.md new file mode 100644 index 000000000..c75dab0db --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/submitInviteCode.md @@ -0,0 +1,19 @@ +# orm-submitInviteCode + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the submitInviteCode mutation + +## Usage + +```typescript +db.mutation.submitInviteCode({ input: '' }).execute() +``` + +## Examples + +### Run submitInviteCode + +```typescript +const result = await db.mutation.submitInviteCode({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/orm/skills/submitOrgInviteCode.md b/sdk/constructive-sdk/src/admin/orm/skills/submitOrgInviteCode.md new file mode 100644 index 000000000..4021119d9 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/skills/submitOrgInviteCode.md @@ -0,0 +1,19 @@ +# orm-submitOrgInviteCode + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the submitOrgInviteCode mutation + +## Usage + +```typescript +db.mutation.submitOrgInviteCode({ input: '' }).execute() +``` + +## Examples + +### Run submitOrgInviteCode + +```typescript +const result = await db.mutation.submitOrgInviteCode({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/admin/schema-types.ts b/sdk/constructive-sdk/src/admin/schema-types.ts deleted file mode 100644 index 346f7f2ce..000000000 --- a/sdk/constructive-sdk/src/admin/schema-types.ts +++ /dev/null @@ -1,2753 +0,0 @@ -/** - * 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; -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'; -export type AppPermissionDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC'; -export type OrgPermissionDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC'; -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'; -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'; -export type AppLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -export type OrgLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -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'; -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'; -export type MembershipTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -export type AppPermissionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC'; -export type OrgPermissionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC'; -export type AppLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -export interface OrgMemberCondition { - id?: string; - isAdmin?: boolean; - actorId?: string; - entityId?: string; -} -export interface OrgMemberFilter { - id?: UUIDFilter; - isAdmin?: BooleanFilter; - actorId?: UUIDFilter; - entityId?: UUIDFilter; - and?: OrgMemberFilter[]; - or?: OrgMemberFilter[]; - not?: OrgMemberFilter; -} -export interface AppPermissionDefaultCondition { - id?: string; - permissions?: string; -} -export interface AppPermissionDefaultFilter { - id?: UUIDFilter; - permissions?: BitStringFilter; - and?: AppPermissionDefaultFilter[]; - or?: AppPermissionDefaultFilter[]; - not?: AppPermissionDefaultFilter; -} -export interface OrgPermissionDefaultCondition { - id?: string; - permissions?: string; - entityId?: string; -} -export interface OrgPermissionDefaultFilter { - id?: UUIDFilter; - permissions?: BitStringFilter; - entityId?: UUIDFilter; - and?: OrgPermissionDefaultFilter[]; - or?: OrgPermissionDefaultFilter[]; - not?: OrgPermissionDefaultFilter; -} -export interface AppAdminGrantCondition { - id?: string; - isGrant?: boolean; - actorId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface AppAdminGrantFilter { - id?: UUIDFilter; - isGrant?: BooleanFilter; - actorId?: UUIDFilter; - grantorId?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: AppAdminGrantFilter[]; - or?: AppAdminGrantFilter[]; - not?: AppAdminGrantFilter; -} -export interface AppOwnerGrantCondition { - id?: string; - isGrant?: boolean; - actorId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface AppOwnerGrantFilter { - id?: UUIDFilter; - isGrant?: BooleanFilter; - actorId?: UUIDFilter; - grantorId?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: AppOwnerGrantFilter[]; - or?: AppOwnerGrantFilter[]; - not?: AppOwnerGrantFilter; -} -export interface AppLimitDefaultCondition { - id?: string; - name?: string; - max?: number; -} -export interface AppLimitDefaultFilter { - id?: UUIDFilter; - name?: StringFilter; - max?: IntFilter; - and?: AppLimitDefaultFilter[]; - or?: AppLimitDefaultFilter[]; - not?: AppLimitDefaultFilter; -} -export interface OrgLimitDefaultCondition { - id?: string; - name?: string; - max?: number; -} -export interface OrgLimitDefaultFilter { - id?: UUIDFilter; - name?: StringFilter; - max?: IntFilter; - and?: OrgLimitDefaultFilter[]; - or?: OrgLimitDefaultFilter[]; - not?: OrgLimitDefaultFilter; -} -export interface OrgAdminGrantCondition { - id?: string; - isGrant?: boolean; - actorId?: string; - entityId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -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 OrgOwnerGrantCondition { - id?: string; - isGrant?: boolean; - actorId?: string; - entityId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -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 MembershipTypeCondition { - id?: number; - name?: string; - description?: string; - prefix?: string; -} -export interface MembershipTypeFilter { - id?: IntFilter; - name?: StringFilter; - description?: StringFilter; - prefix?: StringFilter; - and?: MembershipTypeFilter[]; - or?: MembershipTypeFilter[]; - not?: MembershipTypeFilter; -} -export interface AppPermissionCondition { - id?: string; - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; -} -export interface AppPermissionFilter { - id?: UUIDFilter; - name?: StringFilter; - bitnum?: IntFilter; - bitstr?: BitStringFilter; - description?: StringFilter; - and?: AppPermissionFilter[]; - or?: AppPermissionFilter[]; - not?: AppPermissionFilter; -} -export interface OrgPermissionCondition { - id?: string; - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; -} -export interface OrgPermissionFilter { - id?: UUIDFilter; - name?: StringFilter; - bitnum?: IntFilter; - bitstr?: BitStringFilter; - description?: StringFilter; - and?: OrgPermissionFilter[]; - or?: OrgPermissionFilter[]; - not?: OrgPermissionFilter; -} -export interface AppLimitCondition { - id?: string; - name?: string; - actorId?: string; - num?: number; - max?: number; -} -export interface AppLimitFilter { - id?: UUIDFilter; - name?: StringFilter; - actorId?: UUIDFilter; - num?: IntFilter; - max?: IntFilter; - and?: AppLimitFilter[]; - or?: AppLimitFilter[]; - not?: AppLimitFilter; -} -export interface AppAchievementCondition { - id?: string; - actorId?: string; - name?: string; - count?: number; - createdAt?: string; - updatedAt?: string; -} -export interface AppAchievementFilter { - id?: UUIDFilter; - actorId?: UUIDFilter; - name?: StringFilter; - count?: IntFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: AppAchievementFilter[]; - or?: AppAchievementFilter[]; - not?: AppAchievementFilter; -} -export interface AppStepCondition { - id?: string; - actorId?: string; - name?: string; - count?: number; - createdAt?: string; - updatedAt?: string; -} -export interface AppStepFilter { - id?: UUIDFilter; - actorId?: UUIDFilter; - name?: StringFilter; - count?: IntFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: AppStepFilter[]; - or?: AppStepFilter[]; - not?: AppStepFilter; -} -export interface ClaimedInviteCondition { - id?: string; - data?: unknown; - senderId?: string; - receiverId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface ClaimedInviteFilter { - id?: UUIDFilter; - senderId?: UUIDFilter; - receiverId?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: ClaimedInviteFilter[]; - or?: ClaimedInviteFilter[]; - not?: ClaimedInviteFilter; -} -export interface AppGrantCondition { - id?: string; - permissions?: string; - isGrant?: boolean; - actorId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -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 AppMembershipDefaultCondition { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; -} -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 OrgLimitCondition { - id?: string; - name?: string; - actorId?: string; - num?: number; - max?: number; - entityId?: string; -} -export interface OrgLimitFilter { - id?: UUIDFilter; - name?: StringFilter; - actorId?: UUIDFilter; - num?: IntFilter; - max?: IntFilter; - entityId?: UUIDFilter; - and?: OrgLimitFilter[]; - or?: OrgLimitFilter[]; - not?: OrgLimitFilter; -} -export interface OrgClaimedInviteCondition { - id?: string; - data?: unknown; - senderId?: string; - receiverId?: string; - createdAt?: string; - updatedAt?: string; - entityId?: string; -} -export interface OrgClaimedInviteFilter { - id?: UUIDFilter; - senderId?: UUIDFilter; - receiverId?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - entityId?: UUIDFilter; - and?: OrgClaimedInviteFilter[]; - or?: OrgClaimedInviteFilter[]; - not?: OrgClaimedInviteFilter; -} -export interface OrgGrantCondition { - id?: string; - permissions?: string; - isGrant?: boolean; - actorId?: string; - entityId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -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 OrgMembershipDefaultCondition { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId?: string; - deleteMemberCascadeGroups?: boolean; - createGroupsCascadeMembers?: boolean; -} -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 AppLevelRequirementCondition { - id?: string; - name?: string; - level?: string; - description?: string; - requiredCount?: number; - priority?: number; - createdAt?: string; - updatedAt?: string; -} -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 AppLevelCondition { - id?: string; - name?: string; - description?: string; - image?: ConstructiveInternalTypeImage; - ownerId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface AppLevelFilter { - id?: UUIDFilter; - name?: StringFilter; - description?: StringFilter; - image?: ConstructiveInternalTypeImageFilter; - ownerId?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: AppLevelFilter[]; - or?: AppLevelFilter[]; - not?: AppLevelFilter; -} -export interface ConstructiveInternalTypeImageFilter { - isNull?: boolean; - equalTo?: ConstructiveInternalTypeImage; - notEqualTo?: ConstructiveInternalTypeImage; - distinctFrom?: ConstructiveInternalTypeImage; - notDistinctFrom?: ConstructiveInternalTypeImage; - in?: ConstructiveInternalTypeImage[]; - notIn?: ConstructiveInternalTypeImage[]; - lessThan?: ConstructiveInternalTypeImage; - lessThanOrEqualTo?: ConstructiveInternalTypeImage; - greaterThan?: ConstructiveInternalTypeImage; - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - contains?: ConstructiveInternalTypeImage; - containsKey?: string; - containsAllKeys?: string[]; - containsAnyKeys?: string[]; - containedBy?: ConstructiveInternalTypeImage; -} -export interface InviteCondition { - 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 InviteFilter { - id?: UUIDFilter; - email?: ConstructiveInternalTypeEmailFilter; - senderId?: UUIDFilter; - inviteToken?: StringFilter; - inviteValid?: BooleanFilter; - inviteLimit?: IntFilter; - inviteCount?: IntFilter; - multiple?: BooleanFilter; - expiresAt?: DatetimeFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: InviteFilter[]; - or?: InviteFilter[]; - not?: InviteFilter; -} -export interface ConstructiveInternalTypeEmailFilter { - 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?: ConstructiveInternalTypeEmail; - notIncludesInsensitive?: ConstructiveInternalTypeEmail; - startsWith?: string; - notStartsWith?: string; - startsWithInsensitive?: ConstructiveInternalTypeEmail; - notStartsWithInsensitive?: ConstructiveInternalTypeEmail; - endsWith?: string; - notEndsWith?: string; - endsWithInsensitive?: ConstructiveInternalTypeEmail; - notEndsWithInsensitive?: ConstructiveInternalTypeEmail; - like?: string; - notLike?: string; - likeInsensitive?: ConstructiveInternalTypeEmail; - notLikeInsensitive?: ConstructiveInternalTypeEmail; - equalToInsensitive?: ConstructiveInternalTypeEmail; - notEqualToInsensitive?: ConstructiveInternalTypeEmail; - distinctFromInsensitive?: ConstructiveInternalTypeEmail; - notDistinctFromInsensitive?: ConstructiveInternalTypeEmail; - inInsensitive?: ConstructiveInternalTypeEmail[]; - notInInsensitive?: ConstructiveInternalTypeEmail[]; - lessThanInsensitive?: ConstructiveInternalTypeEmail; - lessThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; - greaterThanInsensitive?: ConstructiveInternalTypeEmail; - greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; -} -export interface AppMembershipCondition { - 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 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 OrgMembershipCondition { - 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 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 OrgInviteCondition { - 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 OrgInviteFilter { - id?: UUIDFilter; - email?: ConstructiveInternalTypeEmailFilter; - senderId?: UUIDFilter; - receiverId?: UUIDFilter; - inviteToken?: StringFilter; - inviteValid?: BooleanFilter; - inviteLimit?: IntFilter; - inviteCount?: IntFilter; - multiple?: BooleanFilter; - expiresAt?: DatetimeFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - entityId?: UUIDFilter; - and?: OrgInviteFilter[]; - or?: OrgInviteFilter[]; - not?: OrgInviteFilter; -} -export interface SubmitInviteCodeInput { - clientMutationId?: string; - token?: string; -} -export interface SubmitOrgInviteCodeInput { - clientMutationId?: string; - token?: string; -} -export interface CreateOrgMemberInput { - clientMutationId?: string; - orgMember: OrgMemberInput; -} -export interface OrgMemberInput { - id?: string; - isAdmin?: boolean; - actorId: string; - entityId: string; -} -export interface CreateAppPermissionDefaultInput { - clientMutationId?: string; - appPermissionDefault: AppPermissionDefaultInput; -} -export interface AppPermissionDefaultInput { - id?: string; - permissions?: string; -} -export interface CreateOrgPermissionDefaultInput { - clientMutationId?: string; - orgPermissionDefault: OrgPermissionDefaultInput; -} -export interface OrgPermissionDefaultInput { - id?: string; - permissions?: string; - entityId: string; -} -export interface CreateAppAdminGrantInput { - clientMutationId?: string; - appAdminGrant: AppAdminGrantInput; -} -export interface AppAdminGrantInput { - id?: string; - isGrant?: boolean; - actorId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateAppOwnerGrantInput { - clientMutationId?: string; - appOwnerGrant: AppOwnerGrantInput; -} -export interface AppOwnerGrantInput { - id?: string; - isGrant?: boolean; - actorId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateAppLimitDefaultInput { - clientMutationId?: string; - appLimitDefault: AppLimitDefaultInput; -} -export interface AppLimitDefaultInput { - id?: string; - name: string; - max?: number; -} -export interface CreateOrgLimitDefaultInput { - clientMutationId?: string; - orgLimitDefault: OrgLimitDefaultInput; -} -export interface OrgLimitDefaultInput { - id?: string; - name: string; - max?: number; -} -export interface CreateOrgAdminGrantInput { - clientMutationId?: string; - orgAdminGrant: OrgAdminGrantInput; -} -export interface OrgAdminGrantInput { - id?: string; - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateOrgOwnerGrantInput { - clientMutationId?: string; - orgOwnerGrant: OrgOwnerGrantInput; -} -export interface OrgOwnerGrantInput { - id?: string; - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: MembershipTypeInput; -} -export interface MembershipTypeInput { - id: number; - name: string; - description: string; - prefix: string; -} -export interface CreateAppPermissionInput { - clientMutationId?: string; - appPermission: AppPermissionInput; -} -export interface AppPermissionInput { - id?: string; - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; -} -export interface CreateOrgPermissionInput { - clientMutationId?: string; - orgPermission: OrgPermissionInput; -} -export interface OrgPermissionInput { - id?: string; - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; -} -export interface CreateAppLimitInput { - clientMutationId?: string; - appLimit: AppLimitInput; -} -export interface AppLimitInput { - id?: string; - name?: string; - actorId: string; - num?: number; - max?: number; -} -export interface CreateAppAchievementInput { - clientMutationId?: string; - appAchievement: AppAchievementInput; -} -export interface AppAchievementInput { - id?: string; - actorId?: string; - name: string; - count?: number; - createdAt?: string; - updatedAt?: string; -} -export interface CreateAppStepInput { - clientMutationId?: string; - appStep: AppStepInput; -} -export interface AppStepInput { - id?: string; - actorId?: string; - name: string; - count?: number; - createdAt?: string; - updatedAt?: string; -} -export interface CreateClaimedInviteInput { - clientMutationId?: string; - claimedInvite: ClaimedInviteInput; -} -export interface ClaimedInviteInput { - id?: string; - data?: unknown; - senderId?: string; - receiverId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateAppGrantInput { - clientMutationId?: string; - appGrant: AppGrantInput; -} -export interface AppGrantInput { - id?: string; - permissions?: string; - isGrant?: boolean; - actorId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateAppMembershipDefaultInput { - clientMutationId?: string; - appMembershipDefault: AppMembershipDefaultInput; -} -export interface AppMembershipDefaultInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; -} -export interface CreateOrgLimitInput { - clientMutationId?: string; - orgLimit: OrgLimitInput; -} -export interface OrgLimitInput { - id?: string; - name?: string; - actorId: string; - num?: number; - max?: number; - entityId: string; -} -export interface CreateOrgClaimedInviteInput { - clientMutationId?: string; - orgClaimedInvite: OrgClaimedInviteInput; -} -export interface OrgClaimedInviteInput { - id?: string; - data?: unknown; - senderId?: string; - receiverId?: string; - createdAt?: string; - updatedAt?: string; - entityId: string; -} -export interface CreateOrgGrantInput { - clientMutationId?: string; - orgGrant: OrgGrantInput; -} -export interface OrgGrantInput { - id?: string; - permissions?: string; - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateOrgMembershipDefaultInput { - clientMutationId?: string; - orgMembershipDefault: OrgMembershipDefaultInput; -} -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; - appLevelRequirement: AppLevelRequirementInput; -} -export interface AppLevelRequirementInput { - id?: string; - name: string; - level: string; - description?: string; - requiredCount?: number; - priority?: number; - createdAt?: string; - updatedAt?: string; -} -export interface CreateAppLevelInput { - clientMutationId?: string; - appLevel: AppLevelInput; -} -export interface AppLevelInput { - id?: string; - name: string; - description?: string; - image?: ConstructiveInternalTypeImage; - ownerId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateInviteInput { - clientMutationId?: string; - invite: InviteInput; -} -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; - appMembership: AppMembershipInput; -} -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; - orgMembership: OrgMembershipInput; -} -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; - orgInvite: OrgInviteInput; -} -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; - orgMemberPatch: OrgMemberPatch; -} -export interface OrgMemberPatch { - id?: string; - isAdmin?: boolean; - actorId?: string; - entityId?: string; -} -export interface UpdateAppPermissionDefaultInput { - clientMutationId?: string; - id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; -} -export interface AppPermissionDefaultPatch { - id?: string; - permissions?: string; -} -export interface UpdateOrgPermissionDefaultInput { - clientMutationId?: string; - id: string; - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; -} -export interface OrgPermissionDefaultPatch { - id?: string; - permissions?: string; - entityId?: string; -} -export interface UpdateAppAdminGrantInput { - clientMutationId?: string; - id: string; - appAdminGrantPatch: AppAdminGrantPatch; -} -export interface AppAdminGrantPatch { - id?: string; - isGrant?: boolean; - actorId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateAppOwnerGrantInput { - clientMutationId?: string; - id: string; - appOwnerGrantPatch: AppOwnerGrantPatch; -} -export interface AppOwnerGrantPatch { - id?: string; - isGrant?: boolean; - actorId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateAppLimitDefaultInput { - clientMutationId?: string; - id: string; - appLimitDefaultPatch: AppLimitDefaultPatch; -} -export interface AppLimitDefaultPatch { - id?: string; - name?: string; - max?: number; -} -export interface UpdateOrgLimitDefaultInput { - clientMutationId?: string; - id: string; - orgLimitDefaultPatch: OrgLimitDefaultPatch; -} -export interface OrgLimitDefaultPatch { - id?: string; - name?: string; - max?: number; -} -export interface UpdateOrgAdminGrantInput { - clientMutationId?: string; - id: string; - orgAdminGrantPatch: OrgAdminGrantPatch; -} -export interface OrgAdminGrantPatch { - id?: string; - isGrant?: boolean; - actorId?: string; - entityId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateOrgOwnerGrantInput { - clientMutationId?: string; - id: string; - orgOwnerGrantPatch: OrgOwnerGrantPatch; -} -export interface OrgOwnerGrantPatch { - id?: string; - isGrant?: boolean; - actorId?: string; - entityId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface MembershipTypePatch { - id?: number; - name?: string; - description?: string; - prefix?: string; -} -export interface UpdateAppPermissionInput { - clientMutationId?: string; - id: string; - appPermissionPatch: AppPermissionPatch; -} -export interface AppPermissionPatch { - id?: string; - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; -} -export interface UpdateOrgPermissionInput { - clientMutationId?: string; - id: string; - orgPermissionPatch: OrgPermissionPatch; -} -export interface OrgPermissionPatch { - id?: string; - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; -} -export interface UpdateAppLimitInput { - clientMutationId?: string; - id: string; - appLimitPatch: AppLimitPatch; -} -export interface AppLimitPatch { - id?: string; - name?: string; - actorId?: string; - num?: number; - max?: number; -} -export interface UpdateAppAchievementInput { - clientMutationId?: string; - id: string; - appAchievementPatch: AppAchievementPatch; -} -export interface AppAchievementPatch { - id?: string; - actorId?: string; - name?: string; - count?: number; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateAppStepInput { - clientMutationId?: string; - id: string; - appStepPatch: AppStepPatch; -} -export interface AppStepPatch { - id?: string; - actorId?: string; - name?: string; - count?: number; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateClaimedInviteInput { - clientMutationId?: string; - id: string; - claimedInvitePatch: ClaimedInvitePatch; -} -export interface ClaimedInvitePatch { - id?: string; - data?: unknown; - senderId?: string; - receiverId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateAppGrantInput { - clientMutationId?: string; - id: string; - appGrantPatch: AppGrantPatch; -} -export interface AppGrantPatch { - id?: string; - permissions?: string; - isGrant?: boolean; - actorId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateAppMembershipDefaultInput { - clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -export interface AppMembershipDefaultPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; -} -export interface UpdateOrgLimitInput { - clientMutationId?: string; - id: string; - orgLimitPatch: OrgLimitPatch; -} -export interface OrgLimitPatch { - id?: string; - name?: string; - actorId?: string; - num?: number; - max?: number; - entityId?: string; -} -export interface UpdateOrgClaimedInviteInput { - clientMutationId?: string; - id: string; - orgClaimedInvitePatch: OrgClaimedInvitePatch; -} -export interface OrgClaimedInvitePatch { - id?: string; - data?: unknown; - senderId?: string; - receiverId?: string; - createdAt?: string; - updatedAt?: string; - entityId?: string; -} -export interface UpdateOrgGrantInput { - clientMutationId?: string; - id: string; - orgGrantPatch: OrgGrantPatch; -} -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; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; -} -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; - appLevelRequirementPatch: AppLevelRequirementPatch; -} -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; - appLevelPatch: AppLevelPatch; -} -export interface AppLevelPatch { - id?: string; - name?: string; - description?: string; - image?: ConstructiveInternalTypeImage; - ownerId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateInviteInput { - clientMutationId?: string; - id: string; - invitePatch: InvitePatch; -} -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; - appMembershipPatch: AppMembershipPatch; -} -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; - orgMembershipPatch: OrgMembershipPatch; -} -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; - orgInvitePatch: OrgInvitePatch; -} -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; -} -export interface AppPermissionConnection { - nodes: AppPermission[]; - edges: AppPermissionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgPermissionConnection { - nodes: OrgPermission[]; - edges: OrgPermissionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppLevelRequirementConnection { - nodes: AppLevelRequirement[]; - edges: AppLevelRequirementEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgMemberConnection { - nodes: OrgMember[]; - edges: OrgMemberEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppPermissionDefaultConnection { - nodes: AppPermissionDefault[]; - edges: AppPermissionDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgPermissionDefaultConnection { - nodes: OrgPermissionDefault[]; - edges: OrgPermissionDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppAdminGrantConnection { - nodes: AppAdminGrant[]; - edges: AppAdminGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppOwnerGrantConnection { - nodes: AppOwnerGrant[]; - edges: AppOwnerGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppLimitDefaultConnection { - nodes: AppLimitDefault[]; - edges: AppLimitDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgLimitDefaultConnection { - nodes: OrgLimitDefault[]; - edges: OrgLimitDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgAdminGrantConnection { - nodes: OrgAdminGrant[]; - edges: OrgAdminGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgOwnerGrantConnection { - nodes: OrgOwnerGrant[]; - edges: OrgOwnerGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface MembershipTypeConnection { - nodes: MembershipType[]; - edges: MembershipTypeEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppLimitConnection { - nodes: AppLimit[]; - edges: AppLimitEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppAchievementConnection { - nodes: AppAchievement[]; - edges: AppAchievementEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppStepConnection { - nodes: AppStep[]; - edges: AppStepEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface ClaimedInviteConnection { - nodes: ClaimedInvite[]; - edges: ClaimedInviteEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppGrantConnection { - nodes: AppGrant[]; - edges: AppGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppMembershipDefaultConnection { - nodes: AppMembershipDefault[]; - edges: AppMembershipDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgLimitConnection { - nodes: OrgLimit[]; - edges: OrgLimitEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgClaimedInviteConnection { - nodes: OrgClaimedInvite[]; - edges: OrgClaimedInviteEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgGrantConnection { - nodes: OrgGrant[]; - edges: OrgGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgMembershipDefaultConnection { - nodes: OrgMembershipDefault[]; - edges: OrgMembershipDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppLevelConnection { - nodes: AppLevel[]; - edges: AppLevelEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface InviteConnection { - nodes: Invite[]; - edges: InviteEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppMembershipConnection { - nodes: AppMembership[]; - edges: AppMembershipEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgMembershipConnection { - nodes: OrgMembership[]; - edges: OrgMembershipEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgInviteConnection { - nodes: OrgInvite[]; - edges: OrgInviteEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -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; - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export interface CreateAppPermissionDefaultPayload { - clientMutationId?: string | null; - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export interface CreateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export interface CreateAppAdminGrantPayload { - clientMutationId?: string | null; - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export interface CreateAppOwnerGrantPayload { - clientMutationId?: string | null; - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export interface CreateAppLimitDefaultPayload { - clientMutationId?: string | null; - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export interface CreateOrgLimitDefaultPayload { - clientMutationId?: string | null; - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} -export interface CreateOrgAdminGrantPayload { - clientMutationId?: string | null; - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export interface CreateOrgOwnerGrantPayload { - clientMutationId?: string | null; - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export interface CreateMembershipTypePayload { - clientMutationId?: string | null; - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export interface CreateAppPermissionPayload { - clientMutationId?: string | null; - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export interface CreateOrgPermissionPayload { - clientMutationId?: string | null; - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export interface CreateAppLimitPayload { - clientMutationId?: string | null; - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export interface CreateAppAchievementPayload { - clientMutationId?: string | null; - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; -} -export interface CreateAppStepPayload { - clientMutationId?: string | null; - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; -} -export interface CreateClaimedInvitePayload { - clientMutationId?: string | null; - claimedInvite?: ClaimedInvite | null; - claimedInviteEdge?: ClaimedInviteEdge | null; -} -export interface CreateAppGrantPayload { - clientMutationId?: string | null; - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; -} -export interface CreateAppMembershipDefaultPayload { - clientMutationId?: string | null; - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export interface CreateOrgLimitPayload { - clientMutationId?: string | null; - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export interface CreateOrgClaimedInvitePayload { - clientMutationId?: string | null; - orgClaimedInvite?: OrgClaimedInvite | null; - orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; -} -export interface CreateOrgGrantPayload { - clientMutationId?: string | null; - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; -} -export interface CreateOrgMembershipDefaultPayload { - clientMutationId?: string | null; - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} -export interface CreateAppLevelRequirementPayload { - clientMutationId?: string | null; - appLevelRequirement?: AppLevelRequirement | null; - appLevelRequirementEdge?: AppLevelRequirementEdge | null; -} -export interface CreateAppLevelPayload { - clientMutationId?: string | null; - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export interface CreateInvitePayload { - clientMutationId?: string | null; - invite?: Invite | null; - inviteEdge?: InviteEdge | null; -} -export interface CreateAppMembershipPayload { - clientMutationId?: string | null; - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export interface CreateOrgMembershipPayload { - clientMutationId?: string | null; - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export interface CreateOrgInvitePayload { - clientMutationId?: string | null; - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; -} -export interface UpdateOrgMemberPayload { - clientMutationId?: string | null; - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export interface UpdateAppPermissionDefaultPayload { - clientMutationId?: string | null; - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export interface UpdateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export interface UpdateAppAdminGrantPayload { - clientMutationId?: string | null; - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export interface UpdateAppOwnerGrantPayload { - clientMutationId?: string | null; - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export interface UpdateAppLimitDefaultPayload { - clientMutationId?: string | null; - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export interface UpdateOrgLimitDefaultPayload { - clientMutationId?: string | null; - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} -export interface UpdateOrgAdminGrantPayload { - clientMutationId?: string | null; - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export interface UpdateOrgOwnerGrantPayload { - clientMutationId?: string | null; - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export interface UpdateMembershipTypePayload { - clientMutationId?: string | null; - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export interface UpdateAppPermissionPayload { - clientMutationId?: string | null; - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export interface UpdateOrgPermissionPayload { - clientMutationId?: string | null; - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export interface UpdateAppLimitPayload { - clientMutationId?: string | null; - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export interface UpdateAppAchievementPayload { - clientMutationId?: string | null; - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; -} -export interface UpdateAppStepPayload { - clientMutationId?: string | null; - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; -} -export interface UpdateClaimedInvitePayload { - clientMutationId?: string | null; - claimedInvite?: ClaimedInvite | null; - claimedInviteEdge?: ClaimedInviteEdge | null; -} -export interface UpdateAppGrantPayload { - clientMutationId?: string | null; - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; -} -export interface UpdateAppMembershipDefaultPayload { - clientMutationId?: string | null; - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export interface UpdateOrgLimitPayload { - clientMutationId?: string | null; - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export interface UpdateOrgClaimedInvitePayload { - clientMutationId?: string | null; - orgClaimedInvite?: OrgClaimedInvite | null; - orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; -} -export interface UpdateOrgGrantPayload { - clientMutationId?: string | null; - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; -} -export interface UpdateOrgMembershipDefaultPayload { - clientMutationId?: string | null; - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} -export interface UpdateAppLevelRequirementPayload { - clientMutationId?: string | null; - appLevelRequirement?: AppLevelRequirement | null; - appLevelRequirementEdge?: AppLevelRequirementEdge | null; -} -export interface UpdateAppLevelPayload { - clientMutationId?: string | null; - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export interface UpdateInvitePayload { - clientMutationId?: string | null; - invite?: Invite | null; - inviteEdge?: InviteEdge | null; -} -export interface UpdateAppMembershipPayload { - clientMutationId?: string | null; - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export interface UpdateOrgMembershipPayload { - clientMutationId?: string | null; - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export interface UpdateOrgInvitePayload { - clientMutationId?: string | null; - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; -} -export interface DeleteOrgMemberPayload { - clientMutationId?: string | null; - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export interface DeleteAppPermissionDefaultPayload { - clientMutationId?: string | null; - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export interface DeleteOrgPermissionDefaultPayload { - clientMutationId?: string | null; - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export interface DeleteAppAdminGrantPayload { - clientMutationId?: string | null; - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export interface DeleteAppOwnerGrantPayload { - clientMutationId?: string | null; - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export interface DeleteAppLimitDefaultPayload { - clientMutationId?: string | null; - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export interface DeleteOrgLimitDefaultPayload { - clientMutationId?: string | null; - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} -export interface DeleteOrgAdminGrantPayload { - clientMutationId?: string | null; - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export interface DeleteOrgOwnerGrantPayload { - clientMutationId?: string | null; - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export interface DeleteMembershipTypePayload { - clientMutationId?: string | null; - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export interface DeleteAppPermissionPayload { - clientMutationId?: string | null; - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export interface DeleteOrgPermissionPayload { - clientMutationId?: string | null; - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export interface DeleteAppLimitPayload { - clientMutationId?: string | null; - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export interface DeleteAppAchievementPayload { - clientMutationId?: string | null; - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; -} -export interface DeleteAppStepPayload { - clientMutationId?: string | null; - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; -} -export interface DeleteClaimedInvitePayload { - clientMutationId?: string | null; - claimedInvite?: ClaimedInvite | null; - claimedInviteEdge?: ClaimedInviteEdge | null; -} -export interface DeleteAppGrantPayload { - clientMutationId?: string | null; - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; -} -export interface DeleteAppMembershipDefaultPayload { - clientMutationId?: string | null; - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export interface DeleteOrgLimitPayload { - clientMutationId?: string | null; - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export interface DeleteOrgClaimedInvitePayload { - clientMutationId?: string | null; - orgClaimedInvite?: OrgClaimedInvite | null; - orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; -} -export interface DeleteOrgGrantPayload { - clientMutationId?: string | null; - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; -} -export interface DeleteOrgMembershipDefaultPayload { - clientMutationId?: string | null; - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} -export interface DeleteAppLevelRequirementPayload { - clientMutationId?: string | null; - appLevelRequirement?: AppLevelRequirement | null; - appLevelRequirementEdge?: AppLevelRequirementEdge | null; -} -export interface DeleteAppLevelPayload { - clientMutationId?: string | null; - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export interface DeleteInvitePayload { - clientMutationId?: string | null; - invite?: Invite | null; - inviteEdge?: InviteEdge | null; -} -export interface DeleteAppMembershipPayload { - clientMutationId?: string | null; - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export interface DeleteOrgMembershipPayload { - clientMutationId?: string | null; - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export interface DeleteOrgInvitePayload { - clientMutationId?: string | null; - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; -} -export interface AppPermissionEdge { - cursor?: string | null; - node?: AppPermission | null; -} -export interface PageInfo { - hasNextPage: boolean; - hasPreviousPage: boolean; - startCursor?: string | null; - endCursor?: string | null; -} -export interface OrgPermissionEdge { - cursor?: string | null; - node?: OrgPermission | null; -} -export interface AppLevelRequirementEdge { - cursor?: string | null; - node?: AppLevelRequirement | null; -} -export interface OrgMemberEdge { - cursor?: string | null; - node?: OrgMember | null; -} -export interface AppPermissionDefaultEdge { - cursor?: string | null; - node?: AppPermissionDefault | null; -} -export interface OrgPermissionDefaultEdge { - cursor?: string | null; - node?: OrgPermissionDefault | null; -} -export interface AppAdminGrantEdge { - cursor?: string | null; - node?: AppAdminGrant | null; -} -export interface AppOwnerGrantEdge { - cursor?: string | null; - node?: AppOwnerGrant | null; -} -export interface AppLimitDefaultEdge { - cursor?: string | null; - node?: AppLimitDefault | null; -} -export interface OrgLimitDefaultEdge { - cursor?: string | null; - node?: OrgLimitDefault | null; -} -export interface OrgAdminGrantEdge { - cursor?: string | null; - node?: OrgAdminGrant | null; -} -export interface OrgOwnerGrantEdge { - cursor?: string | null; - node?: OrgOwnerGrant | null; -} -export interface MembershipTypeEdge { - cursor?: string | null; - node?: MembershipType | null; -} -export interface AppLimitEdge { - cursor?: string | null; - node?: AppLimit | null; -} -export interface AppAchievementEdge { - cursor?: string | null; - node?: AppAchievement | null; -} -export interface AppStepEdge { - cursor?: string | null; - node?: AppStep | null; -} -export interface ClaimedInviteEdge { - cursor?: string | null; - node?: ClaimedInvite | null; -} -export interface AppGrantEdge { - cursor?: string | null; - node?: AppGrant | null; -} -export interface AppMembershipDefaultEdge { - cursor?: string | null; - node?: AppMembershipDefault | null; -} -export interface OrgLimitEdge { - cursor?: string | null; - node?: OrgLimit | null; -} -export interface OrgClaimedInviteEdge { - cursor?: string | null; - node?: OrgClaimedInvite | null; -} -export interface OrgGrantEdge { - cursor?: string | null; - node?: OrgGrant | null; -} -export interface OrgMembershipDefaultEdge { - cursor?: string | null; - node?: OrgMembershipDefault | null; -} -export interface AppLevelEdge { - cursor?: string | null; - node?: AppLevel | null; -} -export interface InviteEdge { - cursor?: string | null; - node?: Invite | null; -} -export interface AppMembershipEdge { - cursor?: string | null; - node?: AppMembership | null; -} -export interface OrgMembershipEdge { - cursor?: string | null; - node?: OrgMembership | null; -} -export interface OrgInviteEdge { - cursor?: string | null; - node?: OrgInvite | null; -} -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 MetaField { - name: string; - type: MetaType; - isNotNull: boolean; - hasDefault: boolean; -} -export interface MetaIndex { - name: string; - isUnique: boolean; - isPrimary: boolean; - columns: string[]; - fields?: MetaField[] | null; -} -export interface MetaConstraints { - primaryKey?: MetaPrimaryKeyConstraint | null; - unique: MetaUniqueConstraint[]; - foreignKey: MetaForeignKeyConstraint[]; -} -export interface MetaForeignKeyConstraint { - name: string; - fields: MetaField[]; - referencedTable: string; - referencedFields: string[]; - refFields?: MetaField[] | null; - refTable?: MetaRefTable | null; -} -export interface MetaPrimaryKeyConstraint { - name: string; - fields: MetaField[]; -} -export interface MetaUniqueConstraint { - name: string; - fields: MetaField[]; -} -export interface MetaRelations { - belongsTo: MetaBelongsToRelation[]; - has: MetaHasRelation[]; - hasOne: MetaHasRelation[]; - hasMany: MetaHasRelation[]; - manyToMany: MetaManyToManyRelation[]; -} -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; -} -export interface MetaQuery { - all: string; - one?: string | null; - create?: string | null; - update?: string | null; - delete?: string | null; -} -export interface MetaType { - pgType: string; - gqlType: string; - isArray: boolean; - isNotNull?: boolean | null; - hasDefault?: boolean | null; -} -export interface MetaRefTable { - name: string; -} -export interface MetaBelongsToRelation { - fieldName?: string | null; - isUnique: boolean; - type?: string | null; - keys: MetaField[]; - references: MetaRefTable; -} -export interface MetaHasRelation { - fieldName?: string | null; - isUnique: boolean; - type?: string | null; - keys: MetaField[]; - referencedBy: MetaRefTable; -} -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-sdk/src/admin/types.ts b/sdk/constructive-sdk/src/admin/types.ts deleted file mode 100644 index f9bd9b893..000000000 --- a/sdk/constructive-sdk/src/admin/types.ts +++ /dev/null @@ -1,473 +0,0 @@ -/** - * 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-sdk/src/auth/README.md b/sdk/constructive-sdk/src/auth/README.md index 265e66111..875494c39 100644 --- a/sdk/constructive-sdk/src/auth/README.md +++ b/sdk/constructive-sdk/src/auth/README.md @@ -12,7 +12,7 @@ - **Custom queries:** 4 - **Custom mutations:** 16 -**Generators:** ORM, React Query +**Generators:** ORM ## Modules @@ -30,19 +30,6 @@ const db = createClient({ 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. diff --git a/sdk/constructive-sdk/src/auth/hooks/AGENTS.md b/sdk/constructive-sdk/src/auth/hooks/AGENTS.md deleted file mode 100644 index 56109e539..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/AGENTS.md +++ /dev/null @@ -1,862 +0,0 @@ -# React Query Hooks - Agent Reference - -> @generated by @constructive-io/graphql-codegen - DO NOT EDIT -> This document is structured for LLM/agent consumption. - -## OVERVIEW - -React Query hooks wrapping ORM operations for data fetching and mutations. -All query hooks return `UseQueryResult`. All mutation hooks return `UseMutationResult`. - -## SETUP - -```typescript -import { configure } from './hooks'; -import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; - -configure({ endpoint: 'https://api.example.com/graphql' }); -const queryClient = new QueryClient(); -// Wrap app in -``` - -## HOOKS - -### HOOK: useRoleTypesQuery - -List all roleTypes. - -``` -TYPE: query -USAGE: useRoleTypesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useRoleTypeQuery - -Get a single roleType by id. - -``` -TYPE: query -USAGE: useRoleTypeQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: number (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: number - name: string -}> -``` - -### HOOK: useCreateRoleTypeMutation - -Create a new roleType. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateRoleTypeMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateRoleTypeMutation - -Update an existing roleType. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateRoleTypeMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteRoleTypeMutation - -Delete a roleType. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteRoleTypeMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useCryptoAddressesQuery - -List all cryptoAddresses. - -``` -TYPE: query -USAGE: useCryptoAddressesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useCryptoAddressQuery - -Get a single cryptoAddress by id. - -``` -TYPE: query -USAGE: useCryptoAddressQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - ownerId: string - address: string - isVerified: boolean - isPrimary: boolean - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateCryptoAddressMutation - -Create a new cryptoAddress. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateCryptoAddressMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateCryptoAddressMutation - -Update an existing cryptoAddress. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateCryptoAddressMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteCryptoAddressMutation - -Delete a cryptoAddress. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteCryptoAddressMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: usePhoneNumbersQuery - -List all phoneNumbers. - -``` -TYPE: query -USAGE: usePhoneNumbersQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: usePhoneNumberQuery - -Get a single phoneNumber by id. - -``` -TYPE: query -USAGE: usePhoneNumberQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - ownerId: string - cc: string - number: string - isVerified: boolean - isPrimary: boolean - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreatePhoneNumberMutation - -Create a new phoneNumber. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreatePhoneNumberMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdatePhoneNumberMutation - -Update an existing phoneNumber. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdatePhoneNumberMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeletePhoneNumberMutation - -Delete a phoneNumber. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeletePhoneNumberMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useConnectedAccountsQuery - -List all connectedAccounts. - -``` -TYPE: query -USAGE: useConnectedAccountsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useConnectedAccountQuery - -Get a single connectedAccount by id. - -``` -TYPE: query -USAGE: useConnectedAccountQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - ownerId: string - service: string - identifier: string - details: unknown - isVerified: boolean - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateConnectedAccountMutation - -Create a new connectedAccount. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateConnectedAccountMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateConnectedAccountMutation - -Update an existing connectedAccount. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateConnectedAccountMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteConnectedAccountMutation - -Delete a connectedAccount. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteConnectedAccountMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useEmailsQuery - -List all emails. - -``` -TYPE: query -USAGE: useEmailsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useEmailQuery - -Get a single email by id. - -``` -TYPE: query -USAGE: useEmailQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - ownerId: string - email: ConstructiveInternalTypeEmail - isVerified: boolean - isPrimary: boolean - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateEmailMutation - -Create a new email. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateEmailMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateEmailMutation - -Update an existing email. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateEmailMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteEmailMutation - -Delete a email. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteEmailMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAuditLogsQuery - -List all auditLogs. - -``` -TYPE: query -USAGE: useAuditLogsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAuditLogQuery - -Get a single auditLog by id. - -``` -TYPE: query -USAGE: useAuditLogQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - event: string - actorId: string - origin: ConstructiveInternalTypeOrigin - userAgent: string - ipAddress: string - success: boolean - createdAt: string -}> -``` - -### HOOK: useCreateAuditLogMutation - -Create a new auditLog. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAuditLogMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAuditLogMutation - -Update an existing auditLog. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAuditLogMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAuditLogMutation - -Delete a auditLog. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAuditLogMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUsersQuery - -List all users. - -``` -TYPE: query -USAGE: useUsersQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useUserQuery - -Get a single user by id. - -``` -TYPE: query -USAGE: useUserQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - username: string - displayName: string - profilePicture: ConstructiveInternalTypeImage - searchTsv: string - type: number - createdAt: string - updatedAt: string - searchTsvRank: number -}> -``` - -### HOOK: useCreateUserMutation - -Create a new user. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateUserMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateUserMutation - -Update an existing user. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateUserMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteUserMutation - -Delete a user. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteUserMutation({}) - -OUTPUT: UseMutationResult -``` - -## CUSTOM OPERATION HOOKS - -### HOOK: useCurrentIpAddressQuery - -currentIpAddress - -``` -TYPE: query -USAGE: useCurrentIpAddressQuery() - -INPUT: none - -OUTPUT: UseQueryResult -``` - -### HOOK: useCurrentUserAgentQuery - -currentUserAgent - -``` -TYPE: query -USAGE: useCurrentUserAgentQuery() - -INPUT: none - -OUTPUT: UseQueryResult -``` - -### HOOK: useCurrentUserIdQuery - -currentUserId - -``` -TYPE: query -USAGE: useCurrentUserIdQuery() - -INPUT: none - -OUTPUT: UseQueryResult -``` - -### HOOK: useCurrentUserQuery - -currentUser - -``` -TYPE: query -USAGE: useCurrentUserQuery() - -INPUT: none - -OUTPUT: UseQueryResult -``` - -### HOOK: useSignOutMutation - -signOut - -``` -TYPE: mutation -USAGE: const { mutate } = useSignOutMutation() - mutate({ input: }) - -INPUT: - input: SignOutInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSendAccountDeletionEmailMutation - -sendAccountDeletionEmail - -``` -TYPE: mutation -USAGE: const { mutate } = useSendAccountDeletionEmailMutation() - mutate({ input: }) - -INPUT: - input: SendAccountDeletionEmailInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useCheckPasswordMutation - -checkPassword - -``` -TYPE: mutation -USAGE: const { mutate } = useCheckPasswordMutation() - mutate({ input: }) - -INPUT: - input: CheckPasswordInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useConfirmDeleteAccountMutation - -confirmDeleteAccount - -``` -TYPE: mutation -USAGE: const { mutate } = useConfirmDeleteAccountMutation() - mutate({ input: }) - -INPUT: - input: ConfirmDeleteAccountInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSetPasswordMutation - -setPassword - -``` -TYPE: mutation -USAGE: const { mutate } = useSetPasswordMutation() - mutate({ input: }) - -INPUT: - input: SetPasswordInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useVerifyEmailMutation - -verifyEmail - -``` -TYPE: mutation -USAGE: const { mutate } = useVerifyEmailMutation() - mutate({ input: }) - -INPUT: - input: VerifyEmailInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useResetPasswordMutation - -resetPassword - -``` -TYPE: mutation -USAGE: const { mutate } = useResetPasswordMutation() - mutate({ input: }) - -INPUT: - input: ResetPasswordInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSignInOneTimeTokenMutation - -signInOneTimeToken - -``` -TYPE: mutation -USAGE: const { mutate } = useSignInOneTimeTokenMutation() - mutate({ input: }) - -INPUT: - input: SignInOneTimeTokenInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSignInMutation - -signIn - -``` -TYPE: mutation -USAGE: const { mutate } = useSignInMutation() - mutate({ input: }) - -INPUT: - input: SignInInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSignUpMutation - -signUp - -``` -TYPE: mutation -USAGE: const { mutate } = useSignUpMutation() - mutate({ input: }) - -INPUT: - input: SignUpInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOneTimeTokenMutation - -oneTimeToken - -``` -TYPE: mutation -USAGE: const { mutate } = useOneTimeTokenMutation() - mutate({ input: }) - -INPUT: - input: OneTimeTokenInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useExtendTokenExpiresMutation - -extendTokenExpires - -``` -TYPE: mutation -USAGE: const { mutate } = useExtendTokenExpiresMutation() - mutate({ input: }) - -INPUT: - input: ExtendTokenExpiresInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useForgotPasswordMutation - -forgotPassword - -``` -TYPE: mutation -USAGE: const { mutate } = useForgotPasswordMutation() - mutate({ input: }) - -INPUT: - input: ForgotPasswordInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSendVerificationEmailMutation - -sendVerificationEmail - -``` -TYPE: mutation -USAGE: const { mutate } = useSendVerificationEmailMutation() - mutate({ input: }) - -INPUT: - input: SendVerificationEmailInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useVerifyPasswordMutation - -verifyPassword - -``` -TYPE: mutation -USAGE: const { mutate } = useVerifyPasswordMutation() - mutate({ input: }) - -INPUT: - input: VerifyPasswordInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useVerifyTotpMutation - -verifyTotp - -``` -TYPE: mutation -USAGE: const { mutate } = useVerifyTotpMutation() - mutate({ input: }) - -INPUT: - input: VerifyTotpInput (required) - -OUTPUT: UseMutationResult -``` diff --git a/sdk/constructive-sdk/src/auth/hooks/README.md b/sdk/constructive-sdk/src/auth/hooks/README.md deleted file mode 100644 index 9298aff05..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/README.md +++ /dev/null @@ -1,454 +0,0 @@ -# React Query Hooks - -

- -

- -> @generated by @constructive-io/graphql-codegen - DO NOT EDIT - -## 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-sdk/src/auth/hooks/client.ts b/sdk/constructive-sdk/src/auth/hooks/client.ts deleted file mode 100644 index 47b9aa63f..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/client.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/index.ts b/sdk/constructive-sdk/src/auth/hooks/index.ts deleted file mode 100644 index ca9487175..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/index.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Auto-generated 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-sdk/src/auth/hooks/invalidation.ts b/sdk/constructive-sdk/src/auth/hooks/invalidation.ts deleted file mode 100644 index 355b6040a..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/invalidation.ts +++ /dev/null @@ -1,210 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutation-keys.ts b/sdk/constructive-sdk/src/auth/hooks/mutation-keys.ts deleted file mode 100644 index 2c43a7d85..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutation-keys.ts +++ /dev/null @@ -1,180 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/index.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/index.ts deleted file mode 100644 index 9d2309644..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/index.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useCheckPasswordMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useCheckPasswordMutation.ts deleted file mode 100644 index 36b79e2fe..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useCheckPasswordMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useConfirmDeleteAccountMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useConfirmDeleteAccountMutation.ts deleted file mode 100644 index 2a430d07a..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useConfirmDeleteAccountMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useCreateAuditLogMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useCreateAuditLogMutation.ts deleted file mode 100644 index e05ac6080..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useCreateAuditLogMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useCreateConnectedAccountMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useCreateConnectedAccountMutation.ts deleted file mode 100644 index 0e381461b..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useCreateConnectedAccountMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useCreateCryptoAddressMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useCreateCryptoAddressMutation.ts deleted file mode 100644 index cddfe450c..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useCreateCryptoAddressMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useCreateEmailMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useCreateEmailMutation.ts deleted file mode 100644 index ff6741c90..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useCreateEmailMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useCreatePhoneNumberMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useCreatePhoneNumberMutation.ts deleted file mode 100644 index f0a8f239b..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useCreatePhoneNumberMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useCreateRoleTypeMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useCreateRoleTypeMutation.ts deleted file mode 100644 index 212be3f45..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useCreateRoleTypeMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useCreateUserMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useCreateUserMutation.ts deleted file mode 100644 index 0d5bfff47..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useCreateUserMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useDeleteAuditLogMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteAuditLogMutation.ts deleted file mode 100644 index 694be08d8..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteAuditLogMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useDeleteConnectedAccountMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteConnectedAccountMutation.ts deleted file mode 100644 index 29212bade..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteConnectedAccountMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useDeleteCryptoAddressMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteCryptoAddressMutation.ts deleted file mode 100644 index 15d7507ac..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteCryptoAddressMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useDeleteEmailMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteEmailMutation.ts deleted file mode 100644 index 55d906a64..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteEmailMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useDeletePhoneNumberMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useDeletePhoneNumberMutation.ts deleted file mode 100644 index a76ed1b26..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useDeletePhoneNumberMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useDeleteRoleTypeMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteRoleTypeMutation.ts deleted file mode 100644 index 34495fa52..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteRoleTypeMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useDeleteUserMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteUserMutation.ts deleted file mode 100644 index 77880ad09..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useDeleteUserMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useExtendTokenExpiresMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useExtendTokenExpiresMutation.ts deleted file mode 100644 index d5d081a1f..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useExtendTokenExpiresMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useForgotPasswordMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useForgotPasswordMutation.ts deleted file mode 100644 index a30ced386..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useForgotPasswordMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useOneTimeTokenMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useOneTimeTokenMutation.ts deleted file mode 100644 index 0215b7d08..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useOneTimeTokenMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useResetPasswordMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useResetPasswordMutation.ts deleted file mode 100644 index 383cb8fa3..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useResetPasswordMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useSendAccountDeletionEmailMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useSendAccountDeletionEmailMutation.ts deleted file mode 100644 index 55a179118..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useSendAccountDeletionEmailMutation.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useSendVerificationEmailMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useSendVerificationEmailMutation.ts deleted file mode 100644 index ea9ee0d76..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useSendVerificationEmailMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useSetPasswordMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useSetPasswordMutation.ts deleted file mode 100644 index af901aba1..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useSetPasswordMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useSignInMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useSignInMutation.ts deleted file mode 100644 index ff20ed5c4..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useSignInMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useSignInOneTimeTokenMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useSignInOneTimeTokenMutation.ts deleted file mode 100644 index 2485fe1a6..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useSignInOneTimeTokenMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useSignOutMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useSignOutMutation.ts deleted file mode 100644 index fba4da1f5..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useSignOutMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useSignUpMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useSignUpMutation.ts deleted file mode 100644 index 8dc94a896..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useSignUpMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useUpdateAuditLogMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateAuditLogMutation.ts deleted file mode 100644 index c1f3aba69..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateAuditLogMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useUpdateConnectedAccountMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateConnectedAccountMutation.ts deleted file mode 100644 index 826dce155..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateConnectedAccountMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useUpdateCryptoAddressMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateCryptoAddressMutation.ts deleted file mode 100644 index f1987ec6e..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateCryptoAddressMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useUpdateEmailMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateEmailMutation.ts deleted file mode 100644 index 89c8a59da..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateEmailMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useUpdatePhoneNumberMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useUpdatePhoneNumberMutation.ts deleted file mode 100644 index e78b8e139..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useUpdatePhoneNumberMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useUpdateRoleTypeMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateRoleTypeMutation.ts deleted file mode 100644 index b25b4efcb..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateRoleTypeMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useUpdateUserMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateUserMutation.ts deleted file mode 100644 index d1ab02501..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useUpdateUserMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useVerifyEmailMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useVerifyEmailMutation.ts deleted file mode 100644 index 6103a9bc1..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useVerifyEmailMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useVerifyPasswordMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useVerifyPasswordMutation.ts deleted file mode 100644 index 0cd31b8f3..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useVerifyPasswordMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/mutations/useVerifyTotpMutation.ts b/sdk/constructive-sdk/src/auth/hooks/mutations/useVerifyTotpMutation.ts deleted file mode 100644 index 418d599a7..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/mutations/useVerifyTotpMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/queries/index.ts b/sdk/constructive-sdk/src/auth/hooks/queries/index.ts deleted file mode 100644 index 8b206fe2d..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/queries/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/queries/useAuditLogQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useAuditLogQuery.ts deleted file mode 100644 index 99af2d7fe..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/queries/useAuditLogQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/queries/useAuditLogsQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useAuditLogsQuery.ts deleted file mode 100644 index 2fd0f9384..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/queries/useAuditLogsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/queries/useConnectedAccountQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useConnectedAccountQuery.ts deleted file mode 100644 index 21a88edf9..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/queries/useConnectedAccountQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/queries/useConnectedAccountsQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useConnectedAccountsQuery.ts deleted file mode 100644 index 326e1b80c..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/queries/useConnectedAccountsQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/queries/useCryptoAddressQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useCryptoAddressQuery.ts deleted file mode 100644 index cc9c73a90..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/queries/useCryptoAddressQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/queries/useCryptoAddressesQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useCryptoAddressesQuery.ts deleted file mode 100644 index 33cafeede..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/queries/useCryptoAddressesQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/queries/useCurrentIpAddressQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useCurrentIpAddressQuery.ts deleted file mode 100644 index 525306e3b..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/queries/useCurrentIpAddressQuery.ts +++ /dev/null @@ -1,90 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/queries/useCurrentUserAgentQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useCurrentUserAgentQuery.ts deleted file mode 100644 index 5a9c544d9..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/queries/useCurrentUserAgentQuery.ts +++ /dev/null @@ -1,90 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/queries/useCurrentUserIdQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useCurrentUserIdQuery.ts deleted file mode 100644 index 5f65326cc..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/queries/useCurrentUserIdQuery.ts +++ /dev/null @@ -1,90 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/queries/useCurrentUserQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useCurrentUserQuery.ts deleted file mode 100644 index 0bc463f03..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/queries/useCurrentUserQuery.ts +++ /dev/null @@ -1,125 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/queries/useEmailQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useEmailQuery.ts deleted file mode 100644 index d954e6328..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/queries/useEmailQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/queries/useEmailsQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useEmailsQuery.ts deleted file mode 100644 index 1dca30b06..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/queries/useEmailsQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/queries/usePhoneNumberQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/usePhoneNumberQuery.ts deleted file mode 100644 index 7c7f6a47d..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/queries/usePhoneNumberQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/queries/usePhoneNumbersQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/usePhoneNumbersQuery.ts deleted file mode 100644 index 3282244e1..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/queries/usePhoneNumbersQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/queries/useRoleTypeQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useRoleTypeQuery.ts deleted file mode 100644 index 6320e76b4..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/queries/useRoleTypeQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/queries/useRoleTypesQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useRoleTypesQuery.ts deleted file mode 100644 index 9819ceed5..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/queries/useRoleTypesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/queries/useUserQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useUserQuery.ts deleted file mode 100644 index c6ca9d01b..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/queries/useUserQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/queries/useUsersQuery.ts b/sdk/constructive-sdk/src/auth/hooks/queries/useUsersQuery.ts deleted file mode 100644 index 478d3eab4..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/queries/useUsersQuery.ts +++ /dev/null @@ -1,129 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/query-keys.ts b/sdk/constructive-sdk/src/auth/hooks/query-keys.ts deleted file mode 100644 index e3e2a4530..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/query-keys.ts +++ /dev/null @@ -1,129 +0,0 @@ -/** - * 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-sdk/src/auth/hooks/selection.ts b/sdk/constructive-sdk/src/auth/hooks/selection.ts deleted file mode 100644 index 2952aab64..000000000 --- a/sdk/constructive-sdk/src/auth/hooks/selection.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 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-sdk/src/auth/index.ts b/sdk/constructive-sdk/src/auth/index.ts index b6d442fc6..51e77d3d4 100644 --- a/sdk/constructive-sdk/src/auth/index.ts +++ b/sdk/constructive-sdk/src/auth/index.ts @@ -2,6 +2,4 @@ * Generated 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-sdk/src/auth/orm/AGENTS.md b/sdk/constructive-sdk/src/auth/orm/AGENTS.md deleted file mode 100644 index 955b44c73..000000000 --- a/sdk/constructive-sdk/src/auth/orm/AGENTS.md +++ /dev/null @@ -1,581 +0,0 @@ -# ORM Client - Agent Reference - -> @generated by @constructive-io/graphql-codegen - DO NOT EDIT -> This document is structured for LLM/agent consumption. - -## OVERVIEW - -Prisma-like ORM client for interacting with a GraphQL API. -All methods return a query builder. Call `.execute()` to run the query. - -## SETUP - -```typescript -import { createClient } from './orm'; - -const db = createClient({ - endpoint: 'https://api.example.com/graphql', - headers: { Authorization: 'Bearer ' }, -}); -``` - -## MODELS - -### MODEL: roleType - -Access: `db.roleType` - -``` -METHODS: - db.roleType.findMany({ select, where?, orderBy?, first?, offset? }) - db.roleType.findOne({ where: { id }, select }) - db.roleType.create({ data: { name }, select }) - db.roleType.update({ where: { id }, data, select }) - db.roleType.delete({ where: { id } }) - -FIELDS: - id: number (primary key) - name: string - -EDITABLE FIELDS: - name: string - -OUTPUT: Promise - findMany: [{ id, name }] - findOne: { id, name } - create: { id, name } - update: { id, name } - delete: { id } -``` - -### MODEL: cryptoAddress - -Access: `db.cryptoAddress` - -``` -METHODS: - db.cryptoAddress.findMany({ select, where?, orderBy?, first?, offset? }) - db.cryptoAddress.findOne({ where: { id }, select }) - db.cryptoAddress.create({ data: { ownerId, address, isVerified, isPrimary }, select }) - db.cryptoAddress.update({ where: { id }, data, select }) - db.cryptoAddress.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - ownerId: string - address: string - isVerified: boolean - isPrimary: boolean - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - ownerId: string - address: string - isVerified: boolean - isPrimary: boolean - -OUTPUT: Promise - findMany: [{ id, ownerId, address, isVerified, isPrimary, createdAt, updatedAt }] - findOne: { id, ownerId, address, isVerified, isPrimary, createdAt, updatedAt } - create: { id, ownerId, address, isVerified, isPrimary, createdAt, updatedAt } - update: { id, ownerId, address, isVerified, isPrimary, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: phoneNumber - -Access: `db.phoneNumber` - -``` -METHODS: - db.phoneNumber.findMany({ select, where?, orderBy?, first?, offset? }) - db.phoneNumber.findOne({ where: { id }, select }) - db.phoneNumber.create({ data: { ownerId, cc, number, isVerified, isPrimary }, select }) - db.phoneNumber.update({ where: { id }, data, select }) - db.phoneNumber.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - ownerId: string - cc: string - number: string - isVerified: boolean - isPrimary: boolean - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - ownerId: string - cc: string - number: string - isVerified: boolean - isPrimary: boolean - -OUTPUT: Promise - findMany: [{ id, ownerId, cc, number, isVerified, isPrimary, createdAt, updatedAt }] - findOne: { id, ownerId, cc, number, isVerified, isPrimary, createdAt, updatedAt } - create: { id, ownerId, cc, number, isVerified, isPrimary, createdAt, updatedAt } - update: { id, ownerId, cc, number, isVerified, isPrimary, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: connectedAccount - -Access: `db.connectedAccount` - -``` -METHODS: - db.connectedAccount.findMany({ select, where?, orderBy?, first?, offset? }) - db.connectedAccount.findOne({ where: { id }, select }) - db.connectedAccount.create({ data: { ownerId, service, identifier, details, isVerified }, select }) - db.connectedAccount.update({ where: { id }, data, select }) - db.connectedAccount.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - ownerId: string - service: string - identifier: string - details: unknown - isVerified: boolean - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - ownerId: string - service: string - identifier: string - details: unknown - isVerified: boolean - -OUTPUT: Promise - findMany: [{ id, ownerId, service, identifier, details, isVerified, createdAt, updatedAt }] - findOne: { id, ownerId, service, identifier, details, isVerified, createdAt, updatedAt } - create: { id, ownerId, service, identifier, details, isVerified, createdAt, updatedAt } - update: { id, ownerId, service, identifier, details, isVerified, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: email - -Access: `db.email` - -``` -METHODS: - db.email.findMany({ select, where?, orderBy?, first?, offset? }) - db.email.findOne({ where: { id }, select }) - db.email.create({ data: { ownerId, email, isVerified, isPrimary }, select }) - db.email.update({ where: { id }, data, select }) - db.email.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - ownerId: string - email: ConstructiveInternalTypeEmail - isVerified: boolean - isPrimary: boolean - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - ownerId: string - email: ConstructiveInternalTypeEmail - isVerified: boolean - isPrimary: boolean - -OUTPUT: Promise - findMany: [{ id, ownerId, email, isVerified, isPrimary, createdAt, updatedAt }] - findOne: { id, ownerId, email, isVerified, isPrimary, createdAt, updatedAt } - create: { id, ownerId, email, isVerified, isPrimary, createdAt, updatedAt } - update: { id, ownerId, email, isVerified, isPrimary, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: auditLog - -Access: `db.auditLog` - -``` -METHODS: - db.auditLog.findMany({ select, where?, orderBy?, first?, offset? }) - db.auditLog.findOne({ where: { id }, select }) - db.auditLog.create({ data: { event, actorId, origin, userAgent, ipAddress, success }, select }) - db.auditLog.update({ where: { id }, data, select }) - db.auditLog.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - event: string - actorId: string - origin: ConstructiveInternalTypeOrigin - userAgent: string - ipAddress: string - success: boolean - createdAt: string - -EDITABLE FIELDS: - event: string - actorId: string - origin: ConstructiveInternalTypeOrigin - userAgent: string - ipAddress: string - success: boolean - -OUTPUT: Promise - findMany: [{ id, event, actorId, origin, userAgent, ipAddress, success, createdAt }] - findOne: { id, event, actorId, origin, userAgent, ipAddress, success, createdAt } - create: { id, event, actorId, origin, userAgent, ipAddress, success, createdAt } - update: { id, event, actorId, origin, userAgent, ipAddress, success, createdAt } - delete: { id } -``` - -### MODEL: user - -Access: `db.user` - -``` -METHODS: - db.user.findMany({ select, where?, orderBy?, first?, offset? }) - db.user.findOne({ where: { id }, select }) - db.user.create({ data: { username, displayName, profilePicture, searchTsv, type, searchTsvRank }, select }) - db.user.update({ where: { id }, data, select }) - db.user.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - username: string - displayName: string - profilePicture: ConstructiveInternalTypeImage - searchTsv: string - type: number - createdAt: string - updatedAt: string - searchTsvRank: number - -EDITABLE FIELDS: - username: string - displayName: string - profilePicture: ConstructiveInternalTypeImage - searchTsv: string - type: number - searchTsvRank: number - -OUTPUT: Promise - findMany: [{ id, username, displayName, profilePicture, searchTsv, type, createdAt, updatedAt, searchTsvRank }] - findOne: { id, username, displayName, profilePicture, searchTsv, type, createdAt, updatedAt, searchTsvRank } - create: { id, username, displayName, profilePicture, searchTsv, type, createdAt, updatedAt, searchTsvRank } - update: { id, username, displayName, profilePicture, searchTsv, type, createdAt, updatedAt, searchTsvRank } - delete: { id } -``` - -## CUSTOM OPERATIONS - -### OPERATION: currentIpAddress - -currentIpAddress - -``` -TYPE: query -ACCESS: db.query.currentIpAddress -USAGE: db.query.currentIpAddress().execute() - -INPUT: none - -OUTPUT: Promise -``` - -### OPERATION: currentUserAgent - -currentUserAgent - -``` -TYPE: query -ACCESS: db.query.currentUserAgent -USAGE: db.query.currentUserAgent().execute() - -INPUT: none - -OUTPUT: Promise -``` - -### OPERATION: currentUserId - -currentUserId - -``` -TYPE: query -ACCESS: db.query.currentUserId -USAGE: db.query.currentUserId().execute() - -INPUT: none - -OUTPUT: Promise -``` - -### OPERATION: currentUser - -currentUser - -``` -TYPE: query -ACCESS: db.query.currentUser -USAGE: db.query.currentUser().execute() - -INPUT: none - -OUTPUT: Promise -``` - -### OPERATION: signOut - -signOut - -``` -TYPE: mutation -ACCESS: db.mutation.signOut -USAGE: db.mutation.signOut({ input: }).execute() - -INPUT: - input: SignOutInput (required) - -OUTPUT: Promise -``` - -### OPERATION: sendAccountDeletionEmail - -sendAccountDeletionEmail - -``` -TYPE: mutation -ACCESS: db.mutation.sendAccountDeletionEmail -USAGE: db.mutation.sendAccountDeletionEmail({ input: }).execute() - -INPUT: - input: SendAccountDeletionEmailInput (required) - -OUTPUT: Promise -``` - -### OPERATION: checkPassword - -checkPassword - -``` -TYPE: mutation -ACCESS: db.mutation.checkPassword -USAGE: db.mutation.checkPassword({ input: }).execute() - -INPUT: - input: CheckPasswordInput (required) - -OUTPUT: Promise -``` - -### OPERATION: confirmDeleteAccount - -confirmDeleteAccount - -``` -TYPE: mutation -ACCESS: db.mutation.confirmDeleteAccount -USAGE: db.mutation.confirmDeleteAccount({ input: }).execute() - -INPUT: - input: ConfirmDeleteAccountInput (required) - -OUTPUT: Promise -``` - -### OPERATION: setPassword - -setPassword - -``` -TYPE: mutation -ACCESS: db.mutation.setPassword -USAGE: db.mutation.setPassword({ input: }).execute() - -INPUT: - input: SetPasswordInput (required) - -OUTPUT: Promise -``` - -### OPERATION: verifyEmail - -verifyEmail - -``` -TYPE: mutation -ACCESS: db.mutation.verifyEmail -USAGE: db.mutation.verifyEmail({ input: }).execute() - -INPUT: - input: VerifyEmailInput (required) - -OUTPUT: Promise -``` - -### OPERATION: resetPassword - -resetPassword - -``` -TYPE: mutation -ACCESS: db.mutation.resetPassword -USAGE: db.mutation.resetPassword({ input: }).execute() - -INPUT: - input: ResetPasswordInput (required) - -OUTPUT: Promise -``` - -### OPERATION: signInOneTimeToken - -signInOneTimeToken - -``` -TYPE: mutation -ACCESS: db.mutation.signInOneTimeToken -USAGE: db.mutation.signInOneTimeToken({ input: }).execute() - -INPUT: - input: SignInOneTimeTokenInput (required) - -OUTPUT: Promise -``` - -### OPERATION: signIn - -signIn - -``` -TYPE: mutation -ACCESS: db.mutation.signIn -USAGE: db.mutation.signIn({ input: }).execute() - -INPUT: - input: SignInInput (required) - -OUTPUT: Promise -``` - -### OPERATION: signUp - -signUp - -``` -TYPE: mutation -ACCESS: db.mutation.signUp -USAGE: db.mutation.signUp({ input: }).execute() - -INPUT: - input: SignUpInput (required) - -OUTPUT: Promise -``` - -### OPERATION: oneTimeToken - -oneTimeToken - -``` -TYPE: mutation -ACCESS: db.mutation.oneTimeToken -USAGE: db.mutation.oneTimeToken({ input: }).execute() - -INPUT: - input: OneTimeTokenInput (required) - -OUTPUT: Promise -``` - -### OPERATION: extendTokenExpires - -extendTokenExpires - -``` -TYPE: mutation -ACCESS: db.mutation.extendTokenExpires -USAGE: db.mutation.extendTokenExpires({ input: }).execute() - -INPUT: - input: ExtendTokenExpiresInput (required) - -OUTPUT: Promise -``` - -### OPERATION: forgotPassword - -forgotPassword - -``` -TYPE: mutation -ACCESS: db.mutation.forgotPassword -USAGE: db.mutation.forgotPassword({ input: }).execute() - -INPUT: - input: ForgotPasswordInput (required) - -OUTPUT: Promise -``` - -### OPERATION: sendVerificationEmail - -sendVerificationEmail - -``` -TYPE: mutation -ACCESS: db.mutation.sendVerificationEmail -USAGE: db.mutation.sendVerificationEmail({ input: }).execute() - -INPUT: - input: SendVerificationEmailInput (required) - -OUTPUT: Promise -``` - -### OPERATION: verifyPassword - -verifyPassword - -``` -TYPE: mutation -ACCESS: db.mutation.verifyPassword -USAGE: db.mutation.verifyPassword({ input: }).execute() - -INPUT: - input: VerifyPasswordInput (required) - -OUTPUT: Promise -``` - -### OPERATION: verifyTotp - -verifyTotp - -``` -TYPE: mutation -ACCESS: db.mutation.verifyTotp -USAGE: db.mutation.verifyTotp({ input: }).execute() - -INPUT: - input: VerifyTotpInput (required) - -OUTPUT: Promise -``` - -## PATTERNS - -```typescript -// All methods require .execute() to run -const result = await db.modelName.findMany({ select: { id: true } }).execute(); - -// Select specific fields -const partial = await db.modelName.findMany({ select: { id: true, name: true } }).execute(); - -// Filter with where clause -const filtered = await db.modelName.findMany({ select: { id: true }, where: { name: 'test' } }).execute(); -``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/auditLog.md b/sdk/constructive-sdk/src/auth/orm/skills/auditLog.md new file mode 100644 index 000000000..427a88c9b --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/auditLog.md @@ -0,0 +1,34 @@ +# orm-auditLog + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AuditLog records + +## Usage + +```typescript +db.auditLog.findMany({ select: { id: true } }).execute() +db.auditLog.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute() +db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute() +db.auditLog.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all auditLog records + +```typescript +const items = await db.auditLog.findMany({ + select: { id: true, event: true } +}).execute(); +``` + +### Create a auditLog + +```typescript +const item = await db.auditLog.create({ + data: { event: 'value', actorId: 'value', origin: 'value', userAgent: 'value', ipAddress: 'value', success: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/checkPassword.md b/sdk/constructive-sdk/src/auth/orm/skills/checkPassword.md new file mode 100644 index 000000000..d9c31103d --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/checkPassword.md @@ -0,0 +1,19 @@ +# orm-checkPassword + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the checkPassword mutation + +## Usage + +```typescript +db.mutation.checkPassword({ input: '' }).execute() +``` + +## Examples + +### Run checkPassword + +```typescript +const result = await db.mutation.checkPassword({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/confirmDeleteAccount.md b/sdk/constructive-sdk/src/auth/orm/skills/confirmDeleteAccount.md new file mode 100644 index 000000000..dac6e3d2f --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/confirmDeleteAccount.md @@ -0,0 +1,19 @@ +# orm-confirmDeleteAccount + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the confirmDeleteAccount mutation + +## Usage + +```typescript +db.mutation.confirmDeleteAccount({ input: '' }).execute() +``` + +## Examples + +### Run confirmDeleteAccount + +```typescript +const result = await db.mutation.confirmDeleteAccount({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/connectedAccount.md b/sdk/constructive-sdk/src/auth/orm/skills/connectedAccount.md new file mode 100644 index 000000000..e27136ed4 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/connectedAccount.md @@ -0,0 +1,34 @@ +# orm-connectedAccount + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for ConnectedAccount records + +## Usage + +```typescript +db.connectedAccount.findMany({ select: { id: true } }).execute() +db.connectedAccount.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute() +db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.connectedAccount.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all connectedAccount records + +```typescript +const items = await db.connectedAccount.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a connectedAccount + +```typescript +const item = await db.connectedAccount.create({ + data: { ownerId: 'value', service: 'value', identifier: 'value', details: 'value', isVerified: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/cryptoAddress.md b/sdk/constructive-sdk/src/auth/orm/skills/cryptoAddress.md new file mode 100644 index 000000000..9260f7053 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/cryptoAddress.md @@ -0,0 +1,34 @@ +# orm-cryptoAddress + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for CryptoAddress records + +## Usage + +```typescript +db.cryptoAddress.findMany({ select: { id: true } }).execute() +db.cryptoAddress.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() +db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.cryptoAddress.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all cryptoAddress records + +```typescript +const items = await db.cryptoAddress.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a cryptoAddress + +```typescript +const item = await db.cryptoAddress.create({ + data: { ownerId: 'value', address: 'value', isVerified: 'value', isPrimary: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/currentIpAddress.md b/sdk/constructive-sdk/src/auth/orm/skills/currentIpAddress.md new file mode 100644 index 000000000..e1527fdcb --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/currentIpAddress.md @@ -0,0 +1,19 @@ +# orm-currentIpAddress + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the currentIpAddress query + +## Usage + +```typescript +db.query.currentIpAddress().execute() +``` + +## Examples + +### Run currentIpAddress + +```typescript +const result = await db.query.currentIpAddress().execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/currentUser.md b/sdk/constructive-sdk/src/auth/orm/skills/currentUser.md new file mode 100644 index 000000000..08a5d92dc --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/currentUser.md @@ -0,0 +1,19 @@ +# orm-currentUser + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the currentUser query + +## Usage + +```typescript +db.query.currentUser().execute() +``` + +## Examples + +### Run currentUser + +```typescript +const result = await db.query.currentUser().execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/currentUserAgent.md b/sdk/constructive-sdk/src/auth/orm/skills/currentUserAgent.md new file mode 100644 index 000000000..001bda358 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/currentUserAgent.md @@ -0,0 +1,19 @@ +# orm-currentUserAgent + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the currentUserAgent query + +## Usage + +```typescript +db.query.currentUserAgent().execute() +``` + +## Examples + +### Run currentUserAgent + +```typescript +const result = await db.query.currentUserAgent().execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/currentUserId.md b/sdk/constructive-sdk/src/auth/orm/skills/currentUserId.md new file mode 100644 index 000000000..ebe9c170a --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/currentUserId.md @@ -0,0 +1,19 @@ +# orm-currentUserId + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the currentUserId query + +## Usage + +```typescript +db.query.currentUserId().execute() +``` + +## Examples + +### Run currentUserId + +```typescript +const result = await db.query.currentUserId().execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/email.md b/sdk/constructive-sdk/src/auth/orm/skills/email.md new file mode 100644 index 000000000..47b208130 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/email.md @@ -0,0 +1,34 @@ +# orm-email + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Email records + +## Usage + +```typescript +db.email.findMany({ select: { id: true } }).execute() +db.email.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() +db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.email.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all email records + +```typescript +const items = await db.email.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a email + +```typescript +const item = await db.email.create({ + data: { ownerId: 'value', email: 'value', isVerified: 'value', isPrimary: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/extendTokenExpires.md b/sdk/constructive-sdk/src/auth/orm/skills/extendTokenExpires.md new file mode 100644 index 000000000..f7f44ffab --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/extendTokenExpires.md @@ -0,0 +1,19 @@ +# orm-extendTokenExpires + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the extendTokenExpires mutation + +## Usage + +```typescript +db.mutation.extendTokenExpires({ input: '' }).execute() +``` + +## Examples + +### Run extendTokenExpires + +```typescript +const result = await db.mutation.extendTokenExpires({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/forgotPassword.md b/sdk/constructive-sdk/src/auth/orm/skills/forgotPassword.md new file mode 100644 index 000000000..f5e52f164 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/forgotPassword.md @@ -0,0 +1,19 @@ +# orm-forgotPassword + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the forgotPassword mutation + +## Usage + +```typescript +db.mutation.forgotPassword({ input: '' }).execute() +``` + +## Examples + +### Run forgotPassword + +```typescript +const result = await db.mutation.forgotPassword({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/oneTimeToken.md b/sdk/constructive-sdk/src/auth/orm/skills/oneTimeToken.md new file mode 100644 index 000000000..9dda575c6 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/oneTimeToken.md @@ -0,0 +1,19 @@ +# orm-oneTimeToken + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the oneTimeToken mutation + +## Usage + +```typescript +db.mutation.oneTimeToken({ input: '' }).execute() +``` + +## Examples + +### Run oneTimeToken + +```typescript +const result = await db.mutation.oneTimeToken({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/phoneNumber.md b/sdk/constructive-sdk/src/auth/orm/skills/phoneNumber.md new file mode 100644 index 000000000..894f658ec --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/phoneNumber.md @@ -0,0 +1,34 @@ +# orm-phoneNumber + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for PhoneNumber records + +## Usage + +```typescript +db.phoneNumber.findMany({ select: { id: true } }).execute() +db.phoneNumber.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() +db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.phoneNumber.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all phoneNumber records + +```typescript +const items = await db.phoneNumber.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a phoneNumber + +```typescript +const item = await db.phoneNumber.create({ + data: { ownerId: 'value', cc: 'value', number: 'value', isVerified: 'value', isPrimary: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/resetPassword.md b/sdk/constructive-sdk/src/auth/orm/skills/resetPassword.md new file mode 100644 index 000000000..4f9e2e541 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/resetPassword.md @@ -0,0 +1,19 @@ +# orm-resetPassword + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the resetPassword mutation + +## Usage + +```typescript +db.mutation.resetPassword({ input: '' }).execute() +``` + +## Examples + +### Run resetPassword + +```typescript +const result = await db.mutation.resetPassword({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/roleType.md b/sdk/constructive-sdk/src/auth/orm/skills/roleType.md new file mode 100644 index 000000000..678e88b33 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/roleType.md @@ -0,0 +1,34 @@ +# orm-roleType + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for RoleType records + +## Usage + +```typescript +db.roleType.findMany({ select: { id: true } }).execute() +db.roleType.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.roleType.create({ data: { name: '' }, select: { id: true } }).execute() +db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.roleType.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all roleType records + +```typescript +const items = await db.roleType.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a roleType + +```typescript +const item = await db.roleType.create({ + data: { name: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/sendAccountDeletionEmail.md b/sdk/constructive-sdk/src/auth/orm/skills/sendAccountDeletionEmail.md new file mode 100644 index 000000000..0081149b3 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/sendAccountDeletionEmail.md @@ -0,0 +1,19 @@ +# orm-sendAccountDeletionEmail + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the sendAccountDeletionEmail mutation + +## Usage + +```typescript +db.mutation.sendAccountDeletionEmail({ input: '' }).execute() +``` + +## Examples + +### Run sendAccountDeletionEmail + +```typescript +const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/sendVerificationEmail.md b/sdk/constructive-sdk/src/auth/orm/skills/sendVerificationEmail.md new file mode 100644 index 000000000..a82c920a0 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/sendVerificationEmail.md @@ -0,0 +1,19 @@ +# orm-sendVerificationEmail + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the sendVerificationEmail mutation + +## Usage + +```typescript +db.mutation.sendVerificationEmail({ input: '' }).execute() +``` + +## Examples + +### Run sendVerificationEmail + +```typescript +const result = await db.mutation.sendVerificationEmail({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/setPassword.md b/sdk/constructive-sdk/src/auth/orm/skills/setPassword.md new file mode 100644 index 000000000..692bcc7f4 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/setPassword.md @@ -0,0 +1,19 @@ +# orm-setPassword + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the setPassword mutation + +## Usage + +```typescript +db.mutation.setPassword({ input: '' }).execute() +``` + +## Examples + +### Run setPassword + +```typescript +const result = await db.mutation.setPassword({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/signIn.md b/sdk/constructive-sdk/src/auth/orm/skills/signIn.md new file mode 100644 index 000000000..9035cfcfc --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/signIn.md @@ -0,0 +1,19 @@ +# orm-signIn + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the signIn mutation + +## Usage + +```typescript +db.mutation.signIn({ input: '' }).execute() +``` + +## Examples + +### Run signIn + +```typescript +const result = await db.mutation.signIn({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/signInOneTimeToken.md b/sdk/constructive-sdk/src/auth/orm/skills/signInOneTimeToken.md new file mode 100644 index 000000000..97be17189 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/signInOneTimeToken.md @@ -0,0 +1,19 @@ +# orm-signInOneTimeToken + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the signInOneTimeToken mutation + +## Usage + +```typescript +db.mutation.signInOneTimeToken({ input: '' }).execute() +``` + +## Examples + +### Run signInOneTimeToken + +```typescript +const result = await db.mutation.signInOneTimeToken({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/signOut.md b/sdk/constructive-sdk/src/auth/orm/skills/signOut.md new file mode 100644 index 000000000..6581a2b63 --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/signOut.md @@ -0,0 +1,19 @@ +# orm-signOut + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the signOut mutation + +## Usage + +```typescript +db.mutation.signOut({ input: '' }).execute() +``` + +## Examples + +### Run signOut + +```typescript +const result = await db.mutation.signOut({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/signUp.md b/sdk/constructive-sdk/src/auth/orm/skills/signUp.md new file mode 100644 index 000000000..74e3d2d8d --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/signUp.md @@ -0,0 +1,19 @@ +# orm-signUp + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the signUp mutation + +## Usage + +```typescript +db.mutation.signUp({ input: '' }).execute() +``` + +## Examples + +### Run signUp + +```typescript +const result = await db.mutation.signUp({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/user.md b/sdk/constructive-sdk/src/auth/orm/skills/user.md new file mode 100644 index 000000000..0b351e7fd --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/user.md @@ -0,0 +1,34 @@ +# orm-user + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for User records + +## Usage + +```typescript +db.user.findMany({ select: { id: true } }).execute() +db.user.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }, select: { id: true } }).execute() +db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute() +db.user.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all user records + +```typescript +const items = await db.user.findMany({ + select: { id: true, username: true } +}).execute(); +``` + +### Create a user + +```typescript +const item = await db.user.create({ + data: { username: 'value', displayName: 'value', profilePicture: 'value', searchTsv: 'value', type: 'value', searchTsvRank: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/verifyEmail.md b/sdk/constructive-sdk/src/auth/orm/skills/verifyEmail.md new file mode 100644 index 000000000..c12e7745e --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/verifyEmail.md @@ -0,0 +1,19 @@ +# orm-verifyEmail + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the verifyEmail mutation + +## Usage + +```typescript +db.mutation.verifyEmail({ input: '' }).execute() +``` + +## Examples + +### Run verifyEmail + +```typescript +const result = await db.mutation.verifyEmail({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/verifyPassword.md b/sdk/constructive-sdk/src/auth/orm/skills/verifyPassword.md new file mode 100644 index 000000000..46404a0bd --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/verifyPassword.md @@ -0,0 +1,19 @@ +# orm-verifyPassword + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the verifyPassword mutation + +## Usage + +```typescript +db.mutation.verifyPassword({ input: '' }).execute() +``` + +## Examples + +### Run verifyPassword + +```typescript +const result = await db.mutation.verifyPassword({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/orm/skills/verifyTotp.md b/sdk/constructive-sdk/src/auth/orm/skills/verifyTotp.md new file mode 100644 index 000000000..d2cabafca --- /dev/null +++ b/sdk/constructive-sdk/src/auth/orm/skills/verifyTotp.md @@ -0,0 +1,19 @@ +# orm-verifyTotp + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the verifyTotp mutation + +## Usage + +```typescript +db.mutation.verifyTotp({ input: '' }).execute() +``` + +## Examples + +### Run verifyTotp + +```typescript +const result = await db.mutation.verifyTotp({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/auth/schema-types.ts b/sdk/constructive-sdk/src/auth/schema-types.ts deleted file mode 100644 index f540475f2..000000000 --- a/sdk/constructive-sdk/src/auth/schema-types.ts +++ /dev/null @@ -1,1061 +0,0 @@ -/** - * 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; -export type RoleTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -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'; -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'; -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'; -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'; -export type AuditLogOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC'; -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'; -export interface RoleTypeCondition { - id?: number; - name?: string; -} -export interface RoleTypeFilter { - id?: IntFilter; - name?: StringFilter; - and?: RoleTypeFilter[]; - or?: RoleTypeFilter[]; - not?: RoleTypeFilter; -} -export interface CryptoAddressCondition { - id?: string; - ownerId?: string; - address?: string; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; -} -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 PhoneNumberCondition { - id?: string; - ownerId?: string; - cc?: string; - number?: string; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; -} -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 ConnectedAccountCondition { - id?: string; - ownerId?: string; - service?: string; - identifier?: string; - details?: unknown; - isVerified?: boolean; - createdAt?: string; - updatedAt?: string; -} -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 EmailCondition { - id?: string; - ownerId?: string; - email?: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface EmailFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - email?: ConstructiveInternalTypeEmailFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: EmailFilter[]; - or?: EmailFilter[]; - not?: EmailFilter; -} -export interface ConstructiveInternalTypeEmailFilter { - 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?: ConstructiveInternalTypeEmail; - notIncludesInsensitive?: ConstructiveInternalTypeEmail; - startsWith?: string; - notStartsWith?: string; - startsWithInsensitive?: ConstructiveInternalTypeEmail; - notStartsWithInsensitive?: ConstructiveInternalTypeEmail; - endsWith?: string; - notEndsWith?: string; - endsWithInsensitive?: ConstructiveInternalTypeEmail; - notEndsWithInsensitive?: ConstructiveInternalTypeEmail; - like?: string; - notLike?: string; - likeInsensitive?: ConstructiveInternalTypeEmail; - notLikeInsensitive?: ConstructiveInternalTypeEmail; - equalToInsensitive?: ConstructiveInternalTypeEmail; - notEqualToInsensitive?: ConstructiveInternalTypeEmail; - distinctFromInsensitive?: ConstructiveInternalTypeEmail; - notDistinctFromInsensitive?: ConstructiveInternalTypeEmail; - inInsensitive?: ConstructiveInternalTypeEmail[]; - notInInsensitive?: ConstructiveInternalTypeEmail[]; - lessThanInsensitive?: ConstructiveInternalTypeEmail; - lessThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; - greaterThanInsensitive?: ConstructiveInternalTypeEmail; - greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; -} -export interface AuditLogCondition { - id?: string; - event?: string; - actorId?: string; - origin?: ConstructiveInternalTypeOrigin; - userAgent?: string; - ipAddress?: string; - success?: boolean; - createdAt?: string; -} -export interface AuditLogFilter { - id?: UUIDFilter; - event?: StringFilter; - actorId?: UUIDFilter; - origin?: ConstructiveInternalTypeOriginFilter; - userAgent?: StringFilter; - ipAddress?: InternetAddressFilter; - success?: BooleanFilter; - createdAt?: DatetimeFilter; - and?: AuditLogFilter[]; - or?: AuditLogFilter[]; - not?: AuditLogFilter; -} -export interface ConstructiveInternalTypeOriginFilter { - isNull?: boolean; - equalTo?: ConstructiveInternalTypeOrigin; - notEqualTo?: ConstructiveInternalTypeOrigin; - distinctFrom?: ConstructiveInternalTypeOrigin; - notDistinctFrom?: ConstructiveInternalTypeOrigin; - in?: ConstructiveInternalTypeOrigin[]; - notIn?: ConstructiveInternalTypeOrigin[]; - lessThan?: ConstructiveInternalTypeOrigin; - lessThanOrEqualTo?: ConstructiveInternalTypeOrigin; - greaterThan?: ConstructiveInternalTypeOrigin; - greaterThanOrEqualTo?: ConstructiveInternalTypeOrigin; - includes?: ConstructiveInternalTypeOrigin; - notIncludes?: ConstructiveInternalTypeOrigin; - includesInsensitive?: ConstructiveInternalTypeOrigin; - notIncludesInsensitive?: ConstructiveInternalTypeOrigin; - startsWith?: ConstructiveInternalTypeOrigin; - notStartsWith?: ConstructiveInternalTypeOrigin; - startsWithInsensitive?: ConstructiveInternalTypeOrigin; - notStartsWithInsensitive?: ConstructiveInternalTypeOrigin; - endsWith?: ConstructiveInternalTypeOrigin; - notEndsWith?: ConstructiveInternalTypeOrigin; - endsWithInsensitive?: ConstructiveInternalTypeOrigin; - notEndsWithInsensitive?: ConstructiveInternalTypeOrigin; - like?: ConstructiveInternalTypeOrigin; - notLike?: ConstructiveInternalTypeOrigin; - likeInsensitive?: ConstructiveInternalTypeOrigin; - notLikeInsensitive?: ConstructiveInternalTypeOrigin; - equalToInsensitive?: string; - notEqualToInsensitive?: string; - distinctFromInsensitive?: string; - notDistinctFromInsensitive?: string; - inInsensitive?: string[]; - notInInsensitive?: string[]; - lessThanInsensitive?: string; - lessThanOrEqualToInsensitive?: string; - greaterThanInsensitive?: string; - greaterThanOrEqualToInsensitive?: string; -} -export interface UserCondition { - id?: string; - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - searchTsv?: string; - type?: number; - createdAt?: string; - updatedAt?: string; - fullTextSearchTsv?: string; -} -export interface UserFilter { - id?: UUIDFilter; - username?: StringFilter; - displayName?: StringFilter; - profilePicture?: ConstructiveInternalTypeImageFilter; - searchTsv?: FullTextFilter; - type?: IntFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: UserFilter[]; - or?: UserFilter[]; - not?: UserFilter; -} -export interface ConstructiveInternalTypeImageFilter { - isNull?: boolean; - equalTo?: ConstructiveInternalTypeImage; - notEqualTo?: ConstructiveInternalTypeImage; - distinctFrom?: ConstructiveInternalTypeImage; - notDistinctFrom?: ConstructiveInternalTypeImage; - in?: ConstructiveInternalTypeImage[]; - notIn?: ConstructiveInternalTypeImage[]; - lessThan?: ConstructiveInternalTypeImage; - lessThanOrEqualTo?: ConstructiveInternalTypeImage; - greaterThan?: ConstructiveInternalTypeImage; - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - contains?: ConstructiveInternalTypeImage; - containsKey?: string; - containsAllKeys?: string[]; - containsAnyKeys?: string[]; - 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; -} -export interface IntervalInput { - seconds?: number; - minutes?: number; - hours?: number; - days?: number; - months?: number; - 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; - roleType: RoleTypeInput; -} -export interface RoleTypeInput { - id: number; - name: string; -} -export interface CreateCryptoAddressInput { - clientMutationId?: string; - cryptoAddress: CryptoAddressInput; -} -export interface CryptoAddressInput { - id?: string; - ownerId?: string; - address: string; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface CreatePhoneNumberInput { - clientMutationId?: string; - phoneNumber: PhoneNumberInput; -} -export interface PhoneNumberInput { - id?: string; - ownerId?: string; - cc: string; - number: string; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface CreateConnectedAccountInput { - clientMutationId?: string; - connectedAccount: ConnectedAccountInput; -} -export interface ConnectedAccountInput { - id?: string; - ownerId?: string; - service: string; - identifier: string; - details: unknown; - isVerified?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface CreateEmailInput { - clientMutationId?: string; - email: EmailInput; -} -export interface EmailInput { - id?: string; - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface CreateAuditLogInput { - clientMutationId?: string; - auditLog: AuditLogInput; -} -export interface AuditLogInput { - id?: string; - event: string; - actorId?: string; - origin?: ConstructiveInternalTypeOrigin; - userAgent?: string; - ipAddress?: string; - success: boolean; - createdAt?: string; -} -export interface CreateUserInput { - clientMutationId?: string; - user: UserInput; -} -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; - roleTypePatch: RoleTypePatch; -} -export interface RoleTypePatch { - id?: number; - name?: string; -} -export interface UpdateCryptoAddressInput { - clientMutationId?: string; - id: string; - cryptoAddressPatch: CryptoAddressPatch; -} -export interface CryptoAddressPatch { - id?: string; - ownerId?: string; - address?: string; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface UpdatePhoneNumberInput { - clientMutationId?: string; - id: string; - phoneNumberPatch: PhoneNumberPatch; -} -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; - connectedAccountPatch: ConnectedAccountPatch; -} -export interface ConnectedAccountPatch { - id?: string; - ownerId?: string; - service?: string; - identifier?: string; - details?: unknown; - isVerified?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - emailPatch: EmailPatch; -} -export interface EmailPatch { - id?: string; - ownerId?: string; - email?: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateAuditLogInput { - clientMutationId?: string; - id: string; - auditLogPatch: AuditLogPatch; -} -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; - userPatch: UserPatch; -} -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; -} -export interface RoleTypeConnection { - nodes: RoleType[]; - edges: RoleTypeEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface CryptoAddressConnection { - nodes: CryptoAddress[]; - edges: CryptoAddressEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface PhoneNumberConnection { - nodes: PhoneNumber[]; - edges: PhoneNumberEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface ConnectedAccountConnection { - nodes: ConnectedAccount[]; - edges: ConnectedAccountEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface EmailConnection { - nodes: Email[]; - edges: EmailEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AuditLogConnection { - nodes: AuditLog[]; - edges: AuditLogEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface UserConnection { - nodes: User[]; - edges: UserEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -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; - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export interface CreateCryptoAddressPayload { - clientMutationId?: string | null; - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export interface CreatePhoneNumberPayload { - clientMutationId?: string | null; - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; -} -export interface CreateConnectedAccountPayload { - clientMutationId?: string | null; - connectedAccount?: ConnectedAccount | null; - connectedAccountEdge?: ConnectedAccountEdge | null; -} -export interface CreateEmailPayload { - clientMutationId?: string | null; - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export interface CreateAuditLogPayload { - clientMutationId?: string | null; - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; -} -export interface CreateUserPayload { - clientMutationId?: string | null; - user?: User | null; - userEdge?: UserEdge | null; -} -export interface UpdateRoleTypePayload { - clientMutationId?: string | null; - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export interface UpdateCryptoAddressPayload { - clientMutationId?: string | null; - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export interface UpdatePhoneNumberPayload { - clientMutationId?: string | null; - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; -} -export interface UpdateConnectedAccountPayload { - clientMutationId?: string | null; - connectedAccount?: ConnectedAccount | null; - connectedAccountEdge?: ConnectedAccountEdge | null; -} -export interface UpdateEmailPayload { - clientMutationId?: string | null; - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export interface UpdateAuditLogPayload { - clientMutationId?: string | null; - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; -} -export interface UpdateUserPayload { - clientMutationId?: string | null; - user?: User | null; - userEdge?: UserEdge | null; -} -export interface DeleteRoleTypePayload { - clientMutationId?: string | null; - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export interface DeleteCryptoAddressPayload { - clientMutationId?: string | null; - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export interface DeletePhoneNumberPayload { - clientMutationId?: string | null; - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; -} -export interface DeleteConnectedAccountPayload { - clientMutationId?: string | null; - connectedAccount?: ConnectedAccount | null; - connectedAccountEdge?: ConnectedAccountEdge | null; -} -export interface DeleteEmailPayload { - clientMutationId?: string | null; - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export interface DeleteAuditLogPayload { - clientMutationId?: string | null; - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; -} -export interface DeleteUserPayload { - clientMutationId?: string | null; - user?: User | null; - userEdge?: UserEdge | null; -} -export interface RoleTypeEdge { - cursor?: string | null; - node?: RoleType | null; -} -export interface PageInfo { - hasNextPage: boolean; - hasPreviousPage: boolean; - startCursor?: string | null; - endCursor?: string | null; -} -export interface CryptoAddressEdge { - cursor?: string | null; - node?: CryptoAddress | null; -} -export interface PhoneNumberEdge { - cursor?: string | null; - node?: PhoneNumber | null; -} -export interface ConnectedAccountEdge { - cursor?: string | null; - node?: ConnectedAccount | null; -} -export interface EmailEdge { - cursor?: string | null; - node?: Email | null; -} -export interface AuditLogEdge { - cursor?: string | null; - node?: AuditLog | null; -} -export interface UserEdge { - cursor?: string | null; - node?: User | null; -} -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; -} -export interface MetaField { - name: string; - type: MetaType; - isNotNull: boolean; - hasDefault: boolean; -} -export interface MetaIndex { - name: string; - isUnique: boolean; - isPrimary: boolean; - columns: string[]; - fields?: MetaField[] | null; -} -export interface MetaConstraints { - primaryKey?: MetaPrimaryKeyConstraint | null; - unique: MetaUniqueConstraint[]; - foreignKey: MetaForeignKeyConstraint[]; -} -export interface MetaForeignKeyConstraint { - name: string; - fields: MetaField[]; - referencedTable: string; - referencedFields: string[]; - refFields?: MetaField[] | null; - refTable?: MetaRefTable | null; -} -export interface MetaPrimaryKeyConstraint { - name: string; - fields: MetaField[]; -} -export interface MetaUniqueConstraint { - name: string; - fields: MetaField[]; -} -export interface MetaRelations { - belongsTo: MetaBelongsToRelation[]; - has: MetaHasRelation[]; - hasOne: MetaHasRelation[]; - hasMany: MetaHasRelation[]; - manyToMany: MetaManyToManyRelation[]; -} -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; -} -export interface MetaQuery { - all: string; - one?: string | null; - create?: string | null; - update?: string | null; - delete?: string | null; -} -export interface MetaType { - pgType: string; - gqlType: string; - isArray: boolean; - isNotNull?: boolean | null; - hasDefault?: boolean | null; -} -export interface MetaRefTable { - name: string; -} -export interface MetaBelongsToRelation { - fieldName?: string | null; - isUnique: boolean; - type?: string | null; - keys: MetaField[]; - references: MetaRefTable; -} -export interface MetaHasRelation { - fieldName?: string | null; - isUnique: boolean; - type?: string | null; - keys: MetaField[]; - referencedBy: MetaRefTable; -} -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-sdk/src/auth/types.ts b/sdk/constructive-sdk/src/auth/types.ts deleted file mode 100644 index 400bc21ad..000000000 --- a/sdk/constructive-sdk/src/auth/types.ts +++ /dev/null @@ -1,288 +0,0 @@ -/** - * 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-sdk/src/objects/README.md b/sdk/constructive-sdk/src/objects/README.md index 87024845d..29fb287ff 100644 --- a/sdk/constructive-sdk/src/objects/README.md +++ b/sdk/constructive-sdk/src/objects/README.md @@ -12,7 +12,7 @@ - **Custom queries:** 4 - **Custom mutations:** 8 -**Generators:** ORM, React Query +**Generators:** ORM ## Modules @@ -30,19 +30,6 @@ const db = createClient({ 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. diff --git a/sdk/constructive-sdk/src/objects/hooks/AGENTS.md b/sdk/constructive-sdk/src/objects/hooks/AGENTS.md deleted file mode 100644 index 703b12e8b..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/AGENTS.md +++ /dev/null @@ -1,552 +0,0 @@ -# React Query Hooks - Agent Reference - -> @generated by @constructive-io/graphql-codegen - DO NOT EDIT -> This document is structured for LLM/agent consumption. - -## OVERVIEW - -React Query hooks wrapping ORM operations for data fetching and mutations. -All query hooks return `UseQueryResult`. All mutation hooks return `UseMutationResult`. - -## SETUP - -```typescript -import { configure } from './hooks'; -import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; - -configure({ endpoint: 'https://api.example.com/graphql' }); -const queryClient = new QueryClient(); -// Wrap app in -``` - -## HOOKS - -### HOOK: useGetAllQuery - -List all getAll. - -``` -TYPE: query -USAGE: useGetAllQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useCreateGetAllRecordMutation - -Create a new getAllRecord. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateGetAllRecordMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useObjectsQuery - -List all objects. - -``` -TYPE: query -USAGE: useObjectsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useObjectQuery - -Get a single object by id. - -``` -TYPE: query -USAGE: useObjectQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - hashUuid: string - id: string - databaseId: string - kids: string[] - ktree: string[] - data: unknown - frzn: boolean - createdAt: string -}> -``` - -### HOOK: useCreateObjectMutation - -Create a new object. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateObjectMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateObjectMutation - -Update an existing object. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateObjectMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteObjectMutation - -Delete a object. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteObjectMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useRefsQuery - -List all refs. - -``` -TYPE: query -USAGE: useRefsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useRefQuery - -Get a single ref by id. - -``` -TYPE: query -USAGE: useRefQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - name: string - databaseId: string - storeId: string - commitId: string -}> -``` - -### HOOK: useCreateRefMutation - -Create a new ref. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateRefMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateRefMutation - -Update an existing ref. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateRefMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteRefMutation - -Delete a ref. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteRefMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useStoresQuery - -List all stores. - -``` -TYPE: query -USAGE: useStoresQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useStoreQuery - -Get a single store by id. - -``` -TYPE: query -USAGE: useStoreQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - name: string - databaseId: string - hash: string - createdAt: string -}> -``` - -### HOOK: useCreateStoreMutation - -Create a new store. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateStoreMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateStoreMutation - -Update an existing store. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateStoreMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteStoreMutation - -Delete a store. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteStoreMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useCommitsQuery - -List all commits. - -``` -TYPE: query -USAGE: useCommitsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useCommitQuery - -Get a single commit by id. - -``` -TYPE: query -USAGE: useCommitQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - message: string - databaseId: string - storeId: string - parentIds: string[] - authorId: string - committerId: string - treeId: string - date: string -}> -``` - -### HOOK: useCreateCommitMutation - -Create a new commit. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateCommitMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateCommitMutation - -Update an existing commit. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateCommitMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteCommitMutation - -Delete a commit. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteCommitMutation({}) - -OUTPUT: UseMutationResult -``` - -## CUSTOM OPERATION HOOKS - -### HOOK: useRevParseQuery - -revParse - -``` -TYPE: query -USAGE: useRevParseQuery({ dbId: , storeId: , refname: }) - -INPUT: - dbId: UUID - storeId: UUID - refname: String - -OUTPUT: UseQueryResult -``` - -### HOOK: useGetAllObjectsFromRootQuery - -Reads and enables pagination through a set of `Object`. - -``` -TYPE: query -USAGE: useGetAllObjectsFromRootQuery({ databaseId: , id: , first: , offset: , after: }) - -INPUT: - databaseId: UUID - id: UUID - first: Int - offset: Int - after: Cursor - -OUTPUT: UseQueryResult -``` - -### HOOK: useGetPathObjectsFromRootQuery - -Reads and enables pagination through a set of `Object`. - -``` -TYPE: query -USAGE: useGetPathObjectsFromRootQuery({ databaseId: , id: , path: , first: , offset: , after: }) - -INPUT: - databaseId: UUID - id: UUID - path: [String] - first: Int - offset: Int - after: Cursor - -OUTPUT: UseQueryResult -``` - -### HOOK: useGetObjectAtPathQuery - -getObjectAtPath - -``` -TYPE: query -USAGE: useGetObjectAtPathQuery({ dbId: , storeId: , path: , refname: }) - -INPUT: - dbId: UUID - storeId: UUID - path: [String] - refname: String - -OUTPUT: UseQueryResult -``` - -### HOOK: useFreezeObjectsMutation - -freezeObjects - -``` -TYPE: mutation -USAGE: const { mutate } = useFreezeObjectsMutation() - mutate({ input: }) - -INPUT: - input: FreezeObjectsInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useInitEmptyRepoMutation - -initEmptyRepo - -``` -TYPE: mutation -USAGE: const { mutate } = useInitEmptyRepoMutation() - mutate({ input: }) - -INPUT: - input: InitEmptyRepoInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useRemoveNodeAtPathMutation - -removeNodeAtPath - -``` -TYPE: mutation -USAGE: const { mutate } = useRemoveNodeAtPathMutation() - mutate({ input: }) - -INPUT: - input: RemoveNodeAtPathInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSetDataAtPathMutation - -setDataAtPath - -``` -TYPE: mutation -USAGE: const { mutate } = useSetDataAtPathMutation() - mutate({ input: }) - -INPUT: - input: SetDataAtPathInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSetPropsAndCommitMutation - -setPropsAndCommit - -``` -TYPE: mutation -USAGE: const { mutate } = useSetPropsAndCommitMutation() - mutate({ input: }) - -INPUT: - input: SetPropsAndCommitInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useInsertNodeAtPathMutation - -insertNodeAtPath - -``` -TYPE: mutation -USAGE: const { mutate } = useInsertNodeAtPathMutation() - mutate({ input: }) - -INPUT: - input: InsertNodeAtPathInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateNodeAtPathMutation - -updateNodeAtPath - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateNodeAtPathMutation() - mutate({ input: }) - -INPUT: - input: UpdateNodeAtPathInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSetAndCommitMutation - -setAndCommit - -``` -TYPE: mutation -USAGE: const { mutate } = useSetAndCommitMutation() - mutate({ input: }) - -INPUT: - input: SetAndCommitInput (required) - -OUTPUT: UseMutationResult -``` diff --git a/sdk/constructive-sdk/src/objects/hooks/README.md b/sdk/constructive-sdk/src/objects/hooks/README.md deleted file mode 100644 index a6aa93cef..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/README.md +++ /dev/null @@ -1,327 +0,0 @@ -# React Query Hooks - -

- -

- -> @generated by @constructive-io/graphql-codegen - DO NOT EDIT - -## 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-sdk/src/objects/hooks/client.ts b/sdk/constructive-sdk/src/objects/hooks/client.ts deleted file mode 100644 index 47b9aa63f..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/client.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/index.ts b/sdk/constructive-sdk/src/objects/hooks/index.ts deleted file mode 100644 index 98b962dba..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/index.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Auto-generated 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-sdk/src/objects/hooks/invalidation.ts b/sdk/constructive-sdk/src/objects/hooks/invalidation.ts deleted file mode 100644 index f05662b38..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/invalidation.ts +++ /dev/null @@ -1,152 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutation-keys.ts b/sdk/constructive-sdk/src/objects/hooks/mutation-keys.ts deleted file mode 100644 index 7492d3b27..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutation-keys.ts +++ /dev/null @@ -1,130 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutations/index.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/index.ts deleted file mode 100644 index af4d44d6c..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutations/index.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutations/useCreateCommitMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useCreateCommitMutation.ts deleted file mode 100644 index 7e803c25a..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutations/useCreateCommitMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutations/useCreateGetAllRecordMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useCreateGetAllRecordMutation.ts deleted file mode 100644 index d7761690b..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutations/useCreateGetAllRecordMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutations/useCreateObjectMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useCreateObjectMutation.ts deleted file mode 100644 index c9d4c9828..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutations/useCreateObjectMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutations/useCreateRefMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useCreateRefMutation.ts deleted file mode 100644 index 6f26a224e..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutations/useCreateRefMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutations/useCreateStoreMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useCreateStoreMutation.ts deleted file mode 100644 index 54c3b2ab9..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutations/useCreateStoreMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutations/useDeleteCommitMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useDeleteCommitMutation.ts deleted file mode 100644 index 435da8423..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutations/useDeleteCommitMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutations/useDeleteObjectMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useDeleteObjectMutation.ts deleted file mode 100644 index c1027ecd6..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutations/useDeleteObjectMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutations/useDeleteRefMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useDeleteRefMutation.ts deleted file mode 100644 index 5059da529..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutations/useDeleteRefMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutations/useDeleteStoreMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useDeleteStoreMutation.ts deleted file mode 100644 index d78ea3bb5..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutations/useDeleteStoreMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutations/useFreezeObjectsMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useFreezeObjectsMutation.ts deleted file mode 100644 index 334bdcf31..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutations/useFreezeObjectsMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutations/useInitEmptyRepoMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useInitEmptyRepoMutation.ts deleted file mode 100644 index f82dc9e02..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutations/useInitEmptyRepoMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutations/useInsertNodeAtPathMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useInsertNodeAtPathMutation.ts deleted file mode 100644 index 9da7a1bd5..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutations/useInsertNodeAtPathMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutations/useRemoveNodeAtPathMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useRemoveNodeAtPathMutation.ts deleted file mode 100644 index e44daf6bf..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutations/useRemoveNodeAtPathMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutations/useSetAndCommitMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useSetAndCommitMutation.ts deleted file mode 100644 index efbed7692..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutations/useSetAndCommitMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutations/useSetDataAtPathMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useSetDataAtPathMutation.ts deleted file mode 100644 index 63f39667a..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutations/useSetDataAtPathMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutations/useSetPropsAndCommitMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useSetPropsAndCommitMutation.ts deleted file mode 100644 index 49e6bbcd0..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutations/useSetPropsAndCommitMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutations/useUpdateCommitMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateCommitMutation.ts deleted file mode 100644 index d03e177ec..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateCommitMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutations/useUpdateNodeAtPathMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateNodeAtPathMutation.ts deleted file mode 100644 index 79e3ebe21..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateNodeAtPathMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutations/useUpdateObjectMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateObjectMutation.ts deleted file mode 100644 index 3c60807de..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateObjectMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutations/useUpdateRefMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateRefMutation.ts deleted file mode 100644 index e9b413324..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateRefMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/mutations/useUpdateStoreMutation.ts b/sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateStoreMutation.ts deleted file mode 100644 index 8ddedfd0a..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/mutations/useUpdateStoreMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/queries/index.ts b/sdk/constructive-sdk/src/objects/hooks/queries/index.ts deleted file mode 100644 index 39e7edd6a..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/queries/index.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/queries/useCommitQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useCommitQuery.ts deleted file mode 100644 index 99bfe6e3c..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/queries/useCommitQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/queries/useCommitsQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useCommitsQuery.ts deleted file mode 100644 index 1ec69f698..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/queries/useCommitsQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/queries/useGetAllObjectsFromRootQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useGetAllObjectsFromRootQuery.ts deleted file mode 100644 index 250ee6c18..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/queries/useGetAllObjectsFromRootQuery.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/queries/useGetAllQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useGetAllQuery.ts deleted file mode 100644 index fa74ed4aa..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/queries/useGetAllQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/queries/useGetObjectAtPathQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useGetObjectAtPathQuery.ts deleted file mode 100644 index f36831e83..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/queries/useGetObjectAtPathQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/queries/useGetPathObjectsFromRootQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useGetPathObjectsFromRootQuery.ts deleted file mode 100644 index 32bb021f8..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/queries/useGetPathObjectsFromRootQuery.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/queries/useObjectQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useObjectQuery.ts deleted file mode 100644 index a846ce36d..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/queries/useObjectQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/queries/useObjectsQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useObjectsQuery.ts deleted file mode 100644 index 963b611ad..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/queries/useObjectsQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/queries/useRefQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useRefQuery.ts deleted file mode 100644 index b07bd3470..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/queries/useRefQuery.ts +++ /dev/null @@ -1,135 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/queries/useRefsQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useRefsQuery.ts deleted file mode 100644 index fbe141158..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/queries/useRefsQuery.ts +++ /dev/null @@ -1,129 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/queries/useRevParseQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useRevParseQuery.ts deleted file mode 100644 index d8b6226fb..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/queries/useRevParseQuery.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/queries/useStoreQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useStoreQuery.ts deleted file mode 100644 index 984f8bf06..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/queries/useStoreQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/queries/useStoresQuery.ts b/sdk/constructive-sdk/src/objects/hooks/queries/useStoresQuery.ts deleted file mode 100644 index 07374bd06..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/queries/useStoresQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/query-keys.ts b/sdk/constructive-sdk/src/objects/hooks/query-keys.ts deleted file mode 100644 index 33724a9e8..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/query-keys.ts +++ /dev/null @@ -1,112 +0,0 @@ -/** - * 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-sdk/src/objects/hooks/selection.ts b/sdk/constructive-sdk/src/objects/hooks/selection.ts deleted file mode 100644 index 2952aab64..000000000 --- a/sdk/constructive-sdk/src/objects/hooks/selection.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 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-sdk/src/objects/index.ts b/sdk/constructive-sdk/src/objects/index.ts index b6d442fc6..51e77d3d4 100644 --- a/sdk/constructive-sdk/src/objects/index.ts +++ b/sdk/constructive-sdk/src/objects/index.ts @@ -2,6 +2,4 @@ * Generated 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-sdk/src/objects/orm/AGENTS.md b/sdk/constructive-sdk/src/objects/orm/AGENTS.md deleted file mode 100644 index c39bc1a26..000000000 --- a/sdk/constructive-sdk/src/objects/orm/AGENTS.md +++ /dev/null @@ -1,403 +0,0 @@ -# ORM Client - Agent Reference - -> @generated by @constructive-io/graphql-codegen - DO NOT EDIT -> This document is structured for LLM/agent consumption. - -## OVERVIEW - -Prisma-like ORM client for interacting with a GraphQL API. -All methods return a query builder. Call `.execute()` to run the query. - -## SETUP - -```typescript -import { createClient } from './orm'; - -const db = createClient({ - endpoint: 'https://api.example.com/graphql', - headers: { Authorization: 'Bearer ' }, -}); -``` - -## MODELS - -### MODEL: getAllRecord - -Access: `db.getAllRecord` - -``` -METHODS: - db.getAllRecord.findMany({ select, where?, orderBy?, first?, offset? }) - db.getAllRecord.findOne({ where: { id }, select }) - db.getAllRecord.create({ data: { path, data }, select }) - db.getAllRecord.update({ where: { id }, data, select }) - db.getAllRecord.delete({ where: { id } }) - -FIELDS: - path: string[] - data: unknown - -EDITABLE FIELDS: - path: string[] - data: unknown - -OUTPUT: Promise - findMany: [{ path, data }] - findOne: { path, data } - create: { path, data } - update: { path, data } - delete: { id } -``` - -### MODEL: object - -Access: `db.object` - -``` -METHODS: - db.object.findMany({ select, where?, orderBy?, first?, offset? }) - db.object.findOne({ where: { id }, select }) - db.object.create({ data: { hashUuid, databaseId, kids, ktree, data, frzn }, select }) - db.object.update({ where: { id }, data, select }) - db.object.delete({ where: { id } }) - -FIELDS: - hashUuid: string - id: string (primary key) - databaseId: string - kids: string[] - ktree: string[] - data: unknown - frzn: boolean - createdAt: string - -EDITABLE FIELDS: - hashUuid: string - databaseId: string - kids: string[] - ktree: string[] - data: unknown - frzn: boolean - -OUTPUT: Promise - findMany: [{ hashUuid, id, databaseId, kids, ktree, data, frzn, createdAt }] - findOne: { hashUuid, id, databaseId, kids, ktree, data, frzn, createdAt } - create: { hashUuid, id, databaseId, kids, ktree, data, frzn, createdAt } - update: { hashUuid, id, databaseId, kids, ktree, data, frzn, createdAt } - delete: { id } -``` - -### MODEL: ref - -Access: `db.ref` - -``` -METHODS: - db.ref.findMany({ select, where?, orderBy?, first?, offset? }) - db.ref.findOne({ where: { id }, select }) - db.ref.create({ data: { name, databaseId, storeId, commitId }, select }) - db.ref.update({ where: { id }, data, select }) - db.ref.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - name: string - databaseId: string - storeId: string - commitId: string - -EDITABLE FIELDS: - name: string - databaseId: string - storeId: string - commitId: string - -OUTPUT: Promise - findMany: [{ id, name, databaseId, storeId, commitId }] - findOne: { id, name, databaseId, storeId, commitId } - create: { id, name, databaseId, storeId, commitId } - update: { id, name, databaseId, storeId, commitId } - delete: { id } -``` - -### MODEL: store - -Access: `db.store` - -``` -METHODS: - db.store.findMany({ select, where?, orderBy?, first?, offset? }) - db.store.findOne({ where: { id }, select }) - db.store.create({ data: { name, databaseId, hash }, select }) - db.store.update({ where: { id }, data, select }) - db.store.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - name: string - databaseId: string - hash: string - createdAt: string - -EDITABLE FIELDS: - name: string - databaseId: string - hash: string - -OUTPUT: Promise - findMany: [{ id, name, databaseId, hash, createdAt }] - findOne: { id, name, databaseId, hash, createdAt } - create: { id, name, databaseId, hash, createdAt } - update: { id, name, databaseId, hash, createdAt } - delete: { id } -``` - -### MODEL: commit - -Access: `db.commit` - -``` -METHODS: - db.commit.findMany({ select, where?, orderBy?, first?, offset? }) - db.commit.findOne({ where: { id }, select }) - db.commit.create({ data: { message, databaseId, storeId, parentIds, authorId, committerId, treeId, date }, select }) - db.commit.update({ where: { id }, data, select }) - db.commit.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - message: string - databaseId: string - storeId: string - parentIds: string[] - authorId: string - committerId: string - treeId: string - date: string - -EDITABLE FIELDS: - message: string - databaseId: string - storeId: string - parentIds: string[] - authorId: string - committerId: string - treeId: string - date: string - -OUTPUT: Promise - findMany: [{ id, message, databaseId, storeId, parentIds, authorId, committerId, treeId, date }] - findOne: { id, message, databaseId, storeId, parentIds, authorId, committerId, treeId, date } - create: { id, message, databaseId, storeId, parentIds, authorId, committerId, treeId, date } - update: { id, message, databaseId, storeId, parentIds, authorId, committerId, treeId, date } - delete: { id } -``` - -## CUSTOM OPERATIONS - -### OPERATION: revParse - -revParse - -``` -TYPE: query -ACCESS: db.query.revParse -USAGE: db.query.revParse({ dbId: , storeId: , refname: }).execute() - -INPUT: - dbId: UUID - storeId: UUID - refname: String - -OUTPUT: Promise -``` - -### OPERATION: getAllObjectsFromRoot - -Reads and enables pagination through a set of `Object`. - -``` -TYPE: query -ACCESS: db.query.getAllObjectsFromRoot -USAGE: db.query.getAllObjectsFromRoot({ databaseId: , id: , first: , offset: , after: }).execute() - -INPUT: - databaseId: UUID - id: UUID - first: Int - offset: Int - after: Cursor - -OUTPUT: Promise -``` - -### OPERATION: getPathObjectsFromRoot - -Reads and enables pagination through a set of `Object`. - -``` -TYPE: query -ACCESS: db.query.getPathObjectsFromRoot -USAGE: db.query.getPathObjectsFromRoot({ databaseId: , id: , path: , first: , offset: , after: }).execute() - -INPUT: - databaseId: UUID - id: UUID - path: [String] - first: Int - offset: Int - after: Cursor - -OUTPUT: Promise -``` - -### OPERATION: getObjectAtPath - -getObjectAtPath - -``` -TYPE: query -ACCESS: db.query.getObjectAtPath -USAGE: db.query.getObjectAtPath({ dbId: , storeId: , path: , refname: }).execute() - -INPUT: - dbId: UUID - storeId: UUID - path: [String] - refname: String - -OUTPUT: Promise -``` - -### OPERATION: freezeObjects - -freezeObjects - -``` -TYPE: mutation -ACCESS: db.mutation.freezeObjects -USAGE: db.mutation.freezeObjects({ input: }).execute() - -INPUT: - input: FreezeObjectsInput (required) - -OUTPUT: Promise -``` - -### OPERATION: initEmptyRepo - -initEmptyRepo - -``` -TYPE: mutation -ACCESS: db.mutation.initEmptyRepo -USAGE: db.mutation.initEmptyRepo({ input: }).execute() - -INPUT: - input: InitEmptyRepoInput (required) - -OUTPUT: Promise -``` - -### OPERATION: removeNodeAtPath - -removeNodeAtPath - -``` -TYPE: mutation -ACCESS: db.mutation.removeNodeAtPath -USAGE: db.mutation.removeNodeAtPath({ input: }).execute() - -INPUT: - input: RemoveNodeAtPathInput (required) - -OUTPUT: Promise -``` - -### OPERATION: setDataAtPath - -setDataAtPath - -``` -TYPE: mutation -ACCESS: db.mutation.setDataAtPath -USAGE: db.mutation.setDataAtPath({ input: }).execute() - -INPUT: - input: SetDataAtPathInput (required) - -OUTPUT: Promise -``` - -### OPERATION: setPropsAndCommit - -setPropsAndCommit - -``` -TYPE: mutation -ACCESS: db.mutation.setPropsAndCommit -USAGE: db.mutation.setPropsAndCommit({ input: }).execute() - -INPUT: - input: SetPropsAndCommitInput (required) - -OUTPUT: Promise -``` - -### OPERATION: insertNodeAtPath - -insertNodeAtPath - -``` -TYPE: mutation -ACCESS: db.mutation.insertNodeAtPath -USAGE: db.mutation.insertNodeAtPath({ input: }).execute() - -INPUT: - input: InsertNodeAtPathInput (required) - -OUTPUT: Promise -``` - -### OPERATION: updateNodeAtPath - -updateNodeAtPath - -``` -TYPE: mutation -ACCESS: db.mutation.updateNodeAtPath -USAGE: db.mutation.updateNodeAtPath({ input: }).execute() - -INPUT: - input: UpdateNodeAtPathInput (required) - -OUTPUT: Promise -``` - -### OPERATION: setAndCommit - -setAndCommit - -``` -TYPE: mutation -ACCESS: db.mutation.setAndCommit -USAGE: db.mutation.setAndCommit({ input: }).execute() - -INPUT: - input: SetAndCommitInput (required) - -OUTPUT: Promise -``` - -## PATTERNS - -```typescript -// All methods require .execute() to run -const result = await db.modelName.findMany({ select: { id: true } }).execute(); - -// Select specific fields -const partial = await db.modelName.findMany({ select: { id: true, name: true } }).execute(); - -// Filter with where clause -const filtered = await db.modelName.findMany({ select: { id: true }, where: { name: 'test' } }).execute(); -``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/commit.md b/sdk/constructive-sdk/src/objects/orm/skills/commit.md new file mode 100644 index 000000000..e6c5448df --- /dev/null +++ b/sdk/constructive-sdk/src/objects/orm/skills/commit.md @@ -0,0 +1,34 @@ +# orm-commit + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Commit records + +## Usage + +```typescript +db.commit.findMany({ select: { id: true } }).execute() +db.commit.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() +db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute() +db.commit.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all commit records + +```typescript +const items = await db.commit.findMany({ + select: { id: true, message: true } +}).execute(); +``` + +### Create a commit + +```typescript +const item = await db.commit.create({ + data: { message: 'value', databaseId: 'value', storeId: 'value', parentIds: 'value', authorId: 'value', committerId: 'value', treeId: 'value', date: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/freezeObjects.md b/sdk/constructive-sdk/src/objects/orm/skills/freezeObjects.md new file mode 100644 index 000000000..2448cce6e --- /dev/null +++ b/sdk/constructive-sdk/src/objects/orm/skills/freezeObjects.md @@ -0,0 +1,19 @@ +# orm-freezeObjects + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the freezeObjects mutation + +## Usage + +```typescript +db.mutation.freezeObjects({ input: '' }).execute() +``` + +## Examples + +### Run freezeObjects + +```typescript +const result = await db.mutation.freezeObjects({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/getAllObjectsFromRoot.md b/sdk/constructive-sdk/src/objects/orm/skills/getAllObjectsFromRoot.md new file mode 100644 index 000000000..0f4a74465 --- /dev/null +++ b/sdk/constructive-sdk/src/objects/orm/skills/getAllObjectsFromRoot.md @@ -0,0 +1,19 @@ +# orm-getAllObjectsFromRoot + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Reads and enables pagination through a set of `Object`. + +## Usage + +```typescript +db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute() +``` + +## Examples + +### Run getAllObjectsFromRoot + +```typescript +const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/getAllRecord.md b/sdk/constructive-sdk/src/objects/orm/skills/getAllRecord.md new file mode 100644 index 000000000..d5e8eb693 --- /dev/null +++ b/sdk/constructive-sdk/src/objects/orm/skills/getAllRecord.md @@ -0,0 +1,34 @@ +# orm-getAllRecord + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for GetAllRecord records + +## Usage + +```typescript +db.getAllRecord.findMany({ select: { id: true } }).execute() +db.getAllRecord.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute() +db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute() +db.getAllRecord.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all getAllRecord records + +```typescript +const items = await db.getAllRecord.findMany({ + select: { id: true, path: true } +}).execute(); +``` + +### Create a getAllRecord + +```typescript +const item = await db.getAllRecord.create({ + data: { path: 'value', data: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/getObjectAtPath.md b/sdk/constructive-sdk/src/objects/orm/skills/getObjectAtPath.md new file mode 100644 index 000000000..08cbea01f --- /dev/null +++ b/sdk/constructive-sdk/src/objects/orm/skills/getObjectAtPath.md @@ -0,0 +1,19 @@ +# orm-getObjectAtPath + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the getObjectAtPath query + +## Usage + +```typescript +db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute() +``` + +## Examples + +### Run getObjectAtPath + +```typescript +const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/getPathObjectsFromRoot.md b/sdk/constructive-sdk/src/objects/orm/skills/getPathObjectsFromRoot.md new file mode 100644 index 000000000..50bddd40f --- /dev/null +++ b/sdk/constructive-sdk/src/objects/orm/skills/getPathObjectsFromRoot.md @@ -0,0 +1,19 @@ +# orm-getPathObjectsFromRoot + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Reads and enables pagination through a set of `Object`. + +## Usage + +```typescript +db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute() +``` + +## Examples + +### Run getPathObjectsFromRoot + +```typescript +const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/initEmptyRepo.md b/sdk/constructive-sdk/src/objects/orm/skills/initEmptyRepo.md new file mode 100644 index 000000000..6fac5228f --- /dev/null +++ b/sdk/constructive-sdk/src/objects/orm/skills/initEmptyRepo.md @@ -0,0 +1,19 @@ +# orm-initEmptyRepo + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the initEmptyRepo mutation + +## Usage + +```typescript +db.mutation.initEmptyRepo({ input: '' }).execute() +``` + +## Examples + +### Run initEmptyRepo + +```typescript +const result = await db.mutation.initEmptyRepo({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/insertNodeAtPath.md b/sdk/constructive-sdk/src/objects/orm/skills/insertNodeAtPath.md new file mode 100644 index 000000000..fcbd25079 --- /dev/null +++ b/sdk/constructive-sdk/src/objects/orm/skills/insertNodeAtPath.md @@ -0,0 +1,19 @@ +# orm-insertNodeAtPath + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the insertNodeAtPath mutation + +## Usage + +```typescript +db.mutation.insertNodeAtPath({ input: '' }).execute() +``` + +## Examples + +### Run insertNodeAtPath + +```typescript +const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/object.md b/sdk/constructive-sdk/src/objects/orm/skills/object.md new file mode 100644 index 000000000..750722399 --- /dev/null +++ b/sdk/constructive-sdk/src/objects/orm/skills/object.md @@ -0,0 +1,34 @@ +# orm-object + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Object records + +## Usage + +```typescript +db.object.findMany({ select: { id: true } }).execute() +db.object.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute() +db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute() +db.object.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all object records + +```typescript +const items = await db.object.findMany({ + select: { id: true, hashUuid: true } +}).execute(); +``` + +### Create a object + +```typescript +const item = await db.object.create({ + data: { hashUuid: 'value', databaseId: 'value', kids: 'value', ktree: 'value', data: 'value', frzn: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/ref.md b/sdk/constructive-sdk/src/objects/orm/skills/ref.md new file mode 100644 index 000000000..c3350b040 --- /dev/null +++ b/sdk/constructive-sdk/src/objects/orm/skills/ref.md @@ -0,0 +1,34 @@ +# orm-ref + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Ref records + +## Usage + +```typescript +db.ref.findMany({ select: { id: true } }).execute() +db.ref.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() +db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.ref.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all ref records + +```typescript +const items = await db.ref.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a ref + +```typescript +const item = await db.ref.create({ + data: { name: 'value', databaseId: 'value', storeId: 'value', commitId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/removeNodeAtPath.md b/sdk/constructive-sdk/src/objects/orm/skills/removeNodeAtPath.md new file mode 100644 index 000000000..cd0d47e9a --- /dev/null +++ b/sdk/constructive-sdk/src/objects/orm/skills/removeNodeAtPath.md @@ -0,0 +1,19 @@ +# orm-removeNodeAtPath + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the removeNodeAtPath mutation + +## Usage + +```typescript +db.mutation.removeNodeAtPath({ input: '' }).execute() +``` + +## Examples + +### Run removeNodeAtPath + +```typescript +const result = await db.mutation.removeNodeAtPath({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/revParse.md b/sdk/constructive-sdk/src/objects/orm/skills/revParse.md new file mode 100644 index 000000000..59ac9b453 --- /dev/null +++ b/sdk/constructive-sdk/src/objects/orm/skills/revParse.md @@ -0,0 +1,19 @@ +# orm-revParse + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the revParse query + +## Usage + +```typescript +db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute() +``` + +## Examples + +### Run revParse + +```typescript +const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/setAndCommit.md b/sdk/constructive-sdk/src/objects/orm/skills/setAndCommit.md new file mode 100644 index 000000000..8fc7e3ba4 --- /dev/null +++ b/sdk/constructive-sdk/src/objects/orm/skills/setAndCommit.md @@ -0,0 +1,19 @@ +# orm-setAndCommit + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the setAndCommit mutation + +## Usage + +```typescript +db.mutation.setAndCommit({ input: '' }).execute() +``` + +## Examples + +### Run setAndCommit + +```typescript +const result = await db.mutation.setAndCommit({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/setDataAtPath.md b/sdk/constructive-sdk/src/objects/orm/skills/setDataAtPath.md new file mode 100644 index 000000000..c8d322516 --- /dev/null +++ b/sdk/constructive-sdk/src/objects/orm/skills/setDataAtPath.md @@ -0,0 +1,19 @@ +# orm-setDataAtPath + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the setDataAtPath mutation + +## Usage + +```typescript +db.mutation.setDataAtPath({ input: '' }).execute() +``` + +## Examples + +### Run setDataAtPath + +```typescript +const result = await db.mutation.setDataAtPath({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/setPropsAndCommit.md b/sdk/constructive-sdk/src/objects/orm/skills/setPropsAndCommit.md new file mode 100644 index 000000000..276c74aad --- /dev/null +++ b/sdk/constructive-sdk/src/objects/orm/skills/setPropsAndCommit.md @@ -0,0 +1,19 @@ +# orm-setPropsAndCommit + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the setPropsAndCommit mutation + +## Usage + +```typescript +db.mutation.setPropsAndCommit({ input: '' }).execute() +``` + +## Examples + +### Run setPropsAndCommit + +```typescript +const result = await db.mutation.setPropsAndCommit({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/store.md b/sdk/constructive-sdk/src/objects/orm/skills/store.md new file mode 100644 index 000000000..ba6dc69b1 --- /dev/null +++ b/sdk/constructive-sdk/src/objects/orm/skills/store.md @@ -0,0 +1,34 @@ +# orm-store + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Store records + +## Usage + +```typescript +db.store.findMany({ select: { id: true } }).execute() +db.store.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute() +db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.store.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all store records + +```typescript +const items = await db.store.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a store + +```typescript +const item = await db.store.create({ + data: { name: 'value', databaseId: 'value', hash: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/objects/orm/skills/updateNodeAtPath.md b/sdk/constructive-sdk/src/objects/orm/skills/updateNodeAtPath.md new file mode 100644 index 000000000..19cdfad04 --- /dev/null +++ b/sdk/constructive-sdk/src/objects/orm/skills/updateNodeAtPath.md @@ -0,0 +1,19 @@ +# orm-updateNodeAtPath + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the updateNodeAtPath mutation + +## Usage + +```typescript +db.mutation.updateNodeAtPath({ input: '' }).execute() +``` + +## Examples + +### Run updateNodeAtPath + +```typescript +const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/objects/schema-types.ts b/sdk/constructive-sdk/src/objects/schema-types.ts deleted file mode 100644 index d47edc65b..000000000 --- a/sdk/constructive-sdk/src/objects/schema-types.ts +++ /dev/null @@ -1,590 +0,0 @@ -/** - * 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'; -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'; -export type StoreOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type CommitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type ObjectOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'FRZN_ASC' - | 'FRZN_DESC'; -export interface RefCondition { - id?: string; - name?: string; - databaseId?: string; - storeId?: string; - commitId?: string; -} -export interface RefFilter { - id?: UUIDFilter; - name?: StringFilter; - databaseId?: UUIDFilter; - storeId?: UUIDFilter; - commitId?: UUIDFilter; - and?: RefFilter[]; - or?: RefFilter[]; - not?: RefFilter; -} -export interface StoreCondition { - id?: string; - name?: string; - databaseId?: string; - hash?: string; - createdAt?: string; -} -export interface StoreFilter { - id?: UUIDFilter; - name?: StringFilter; - databaseId?: UUIDFilter; - hash?: UUIDFilter; - createdAt?: DatetimeFilter; - and?: StoreFilter[]; - or?: StoreFilter[]; - not?: StoreFilter; -} -export interface CommitCondition { - id?: string; - message?: string; - databaseId?: string; - storeId?: string; - parentIds?: string[]; - authorId?: string; - committerId?: string; - treeId?: string; - date?: string; -} -export interface CommitFilter { - id?: UUIDFilter; - message?: StringFilter; - databaseId?: UUIDFilter; - storeId?: UUIDFilter; - parentIds?: UUIDListFilter; - authorId?: UUIDFilter; - committerId?: UUIDFilter; - treeId?: UUIDFilter; - date?: DatetimeFilter; - and?: CommitFilter[]; - or?: CommitFilter[]; - not?: CommitFilter; -} -export interface ObjectCondition { - id?: string; - databaseId?: string; - kids?: string[]; - ktree?: string[]; - data?: unknown; - frzn?: boolean; - createdAt?: string; -} -export interface ObjectFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - kids?: UUIDListFilter; - ktree?: StringListFilter; - data?: JSONFilter; - frzn?: BooleanFilter; - createdAt?: DatetimeFilter; - and?: ObjectFilter[]; - or?: ObjectFilter[]; - 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; - ref: RefInput; -} -export interface RefInput { - id?: string; - name: string; - databaseId: string; - storeId: string; - commitId?: string; -} -export interface CreateStoreInput { - clientMutationId?: string; - store: StoreInput; -} -export interface StoreInput { - id?: string; - name: string; - databaseId: string; - hash?: string; - createdAt?: string; -} -export interface CreateCommitInput { - clientMutationId?: string; - commit: CommitInput; -} -export interface CommitInput { - id?: string; - message?: string; - databaseId: string; - storeId: string; - parentIds?: string[]; - authorId?: string; - committerId?: string; - treeId?: string; - date?: string; -} -export interface CreateObjectInput { - clientMutationId?: string; - object: ObjectInput; -} -export interface ObjectInput { - id: string; - databaseId: string; - kids?: string[]; - ktree?: string[]; - data?: unknown; - frzn?: boolean; - createdAt?: string; -} -export interface UpdateRefInput { - clientMutationId?: string; - id: string; - databaseId: string; - refPatch: RefPatch; -} -export interface RefPatch { - id?: string; - name?: string; - databaseId?: string; - storeId?: string; - commitId?: string; -} -export interface UpdateStoreInput { - clientMutationId?: string; - id: string; - storePatch: StorePatch; -} -export interface StorePatch { - id?: string; - name?: string; - databaseId?: string; - hash?: string; - createdAt?: string; -} -export interface UpdateCommitInput { - clientMutationId?: string; - id: string; - databaseId: string; - commitPatch: CommitPatch; -} -export interface CommitPatch { - id?: string; - message?: string; - databaseId?: string; - storeId?: string; - parentIds?: string[]; - authorId?: string; - committerId?: string; - treeId?: string; - date?: string; -} -export interface UpdateObjectInput { - clientMutationId?: string; - id: string; - databaseId: string; - objectPatch: ObjectPatch; -} -export interface ObjectPatch { - id?: string; - databaseId?: string; - kids?: string[]; - ktree?: string[]; - data?: unknown; - frzn?: boolean; - createdAt?: string; -} -export interface DeleteRefInput { - clientMutationId?: string; - id: string; - databaseId: string; -} -export interface DeleteStoreInput { - clientMutationId?: string; - id: string; -} -export interface DeleteCommitInput { - clientMutationId?: string; - id: string; - databaseId: string; -} -export interface DeleteObjectInput { - clientMutationId?: string; - id: string; - databaseId: string; -} -export interface GetAllConnection { - nodes: GetAllRecord[]; - edges: GetAllEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface ObjectConnection { - nodes: Object[]; - edges: ObjectEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface RefConnection { - nodes: Ref[]; - edges: RefEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface StoreConnection { - nodes: Store[]; - edges: StoreEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface CommitConnection { - nodes: Commit[]; - edges: CommitEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -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; - ref?: Ref | null; - refEdge?: RefEdge | null; -} -export interface CreateStorePayload { - clientMutationId?: string | null; - store?: Store | null; - storeEdge?: StoreEdge | null; -} -export interface CreateCommitPayload { - clientMutationId?: string | null; - commit?: Commit | null; - commitEdge?: CommitEdge | null; -} -export interface CreateObjectPayload { - clientMutationId?: string | null; - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export interface UpdateRefPayload { - clientMutationId?: string | null; - ref?: Ref | null; - refEdge?: RefEdge | null; -} -export interface UpdateStorePayload { - clientMutationId?: string | null; - store?: Store | null; - storeEdge?: StoreEdge | null; -} -export interface UpdateCommitPayload { - clientMutationId?: string | null; - commit?: Commit | null; - commitEdge?: CommitEdge | null; -} -export interface UpdateObjectPayload { - clientMutationId?: string | null; - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export interface DeleteRefPayload { - clientMutationId?: string | null; - ref?: Ref | null; - refEdge?: RefEdge | null; -} -export interface DeleteStorePayload { - clientMutationId?: string | null; - store?: Store | null; - storeEdge?: StoreEdge | null; -} -export interface DeleteCommitPayload { - clientMutationId?: string | null; - commit?: Commit | null; - commitEdge?: CommitEdge | null; -} -export interface DeleteObjectPayload { - clientMutationId?: string | null; - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export interface GetAllEdge { - cursor?: string | null; - node?: GetAllRecord | null; -} -export interface PageInfo { - hasNextPage: boolean; - hasPreviousPage: boolean; - startCursor?: string | null; - endCursor?: string | null; -} -export interface ObjectEdge { - cursor?: string | null; - node?: Object | null; -} -export interface RefEdge { - cursor?: string | null; - node?: Ref | null; -} -export interface StoreEdge { - cursor?: string | null; - node?: Store | null; -} -export interface CommitEdge { - cursor?: string | null; - node?: Commit | null; -} -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 MetaField { - name: string; - type: MetaType; - isNotNull: boolean; - hasDefault: boolean; -} -export interface MetaIndex { - name: string; - isUnique: boolean; - isPrimary: boolean; - columns: string[]; - fields?: MetaField[] | null; -} -export interface MetaConstraints { - primaryKey?: MetaPrimaryKeyConstraint | null; - unique: MetaUniqueConstraint[]; - foreignKey: MetaForeignKeyConstraint[]; -} -export interface MetaForeignKeyConstraint { - name: string; - fields: MetaField[]; - referencedTable: string; - referencedFields: string[]; - refFields?: MetaField[] | null; - refTable?: MetaRefTable | null; -} -export interface MetaPrimaryKeyConstraint { - name: string; - fields: MetaField[]; -} -export interface MetaUniqueConstraint { - name: string; - fields: MetaField[]; -} -export interface MetaRelations { - belongsTo: MetaBelongsToRelation[]; - has: MetaHasRelation[]; - hasOne: MetaHasRelation[]; - hasMany: MetaHasRelation[]; - manyToMany: MetaManyToManyRelation[]; -} -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; -} -export interface MetaQuery { - all: string; - one?: string | null; - create?: string | null; - update?: string | null; - delete?: string | null; -} -export interface MetaType { - pgType: string; - gqlType: string; - isArray: boolean; - isNotNull?: boolean | null; - hasDefault?: boolean | null; -} -export interface MetaRefTable { - name: string; -} -export interface MetaBelongsToRelation { - fieldName?: string | null; - isUnique: boolean; - type?: string | null; - keys: MetaField[]; - references: MetaRefTable; -} -export interface MetaHasRelation { - fieldName?: string | null; - isUnique: boolean; - type?: string | null; - keys: MetaField[]; - referencedBy: MetaRefTable; -} -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-sdk/src/objects/types.ts b/sdk/constructive-sdk/src/objects/types.ts deleted file mode 100644 index 0b3404d8d..000000000 --- a/sdk/constructive-sdk/src/objects/types.ts +++ /dev/null @@ -1,261 +0,0 @@ -/** - * 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-sdk/src/public/README.md b/sdk/constructive-sdk/src/public/README.md index e3bc8895d..391c86f88 100644 --- a/sdk/constructive-sdk/src/public/README.md +++ b/sdk/constructive-sdk/src/public/README.md @@ -12,7 +12,7 @@ - **Custom queries:** 18 - **Custom mutations:** 31 -**Generators:** ORM, React Query +**Generators:** ORM ## Modules @@ -30,19 +30,6 @@ const db = createClient({ 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. diff --git a/sdk/constructive-sdk/src/public/hooks/AGENTS.md b/sdk/constructive-sdk/src/public/hooks/AGENTS.md deleted file mode 100644 index 5d3c81713..000000000 --- a/sdk/constructive-sdk/src/public/hooks/AGENTS.md +++ /dev/null @@ -1,8940 +0,0 @@ -# React Query Hooks - Agent Reference - -> @generated by @constructive-io/graphql-codegen - DO NOT EDIT -> This document is structured for LLM/agent consumption. - -## OVERVIEW - -React Query hooks wrapping ORM operations for data fetching and mutations. -All query hooks return `UseQueryResult`. All mutation hooks return `UseMutationResult`. - -## SETUP - -```typescript -import { configure } from './hooks'; -import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; - -configure({ endpoint: 'https://api.example.com/graphql' }); -const queryClient = new QueryClient(); -// Wrap app in -``` - -## HOOKS - -### HOOK: useGetAllQuery - -List all getAll. - -``` -TYPE: query -USAGE: useGetAllQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useCreateGetAllRecordMutation - -Create a new getAllRecord. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateGetAllRecordMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppPermissionsQuery - -List all appPermissions. - -``` -TYPE: query -USAGE: useAppPermissionsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppPermissionQuery - -Get a single appPermission by id. - -``` -TYPE: query -USAGE: useAppPermissionQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - name: string - bitnum: number - bitstr: string - description: string -}> -``` - -### HOOK: useCreateAppPermissionMutation - -Create a new appPermission. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppPermissionMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppPermissionMutation - -Update an existing appPermission. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppPermissionMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppPermissionMutation - -Delete a appPermission. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppPermissionMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgPermissionsQuery - -List all orgPermissions. - -``` -TYPE: query -USAGE: useOrgPermissionsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgPermissionQuery - -Get a single orgPermission by id. - -``` -TYPE: query -USAGE: useOrgPermissionQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - name: string - bitnum: number - bitstr: string - description: string -}> -``` - -### HOOK: useCreateOrgPermissionMutation - -Create a new orgPermission. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgPermissionMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgPermissionMutation - -Update an existing orgPermission. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgPermissionMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgPermissionMutation - -Delete a orgPermission. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgPermissionMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useObjectsQuery - -List all objects. - -``` -TYPE: query -USAGE: useObjectsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useObjectQuery - -Get a single object by id. - -``` -TYPE: query -USAGE: useObjectQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - hashUuid: string - id: string - databaseId: string - kids: string[] - ktree: string[] - data: unknown - frzn: boolean - createdAt: string -}> -``` - -### HOOK: useCreateObjectMutation - -Create a new object. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateObjectMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateObjectMutation - -Update an existing object. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateObjectMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteObjectMutation - -Delete a object. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteObjectMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppLevelRequirementsQuery - -List all appLevelRequirements. - -``` -TYPE: query -USAGE: useAppLevelRequirementsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppLevelRequirementQuery - -Get a single appLevelRequirement by id. - -``` -TYPE: query -USAGE: useAppLevelRequirementQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - name: string - level: string - description: string - requiredCount: number - priority: number - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateAppLevelRequirementMutation - -Create a new appLevelRequirement. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppLevelRequirementMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppLevelRequirementMutation - -Update an existing appLevelRequirement. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppLevelRequirementMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppLevelRequirementMutation - -Delete a appLevelRequirement. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppLevelRequirementMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDatabasesQuery - -List all databases. - -``` -TYPE: query -USAGE: useDatabasesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useDatabaseQuery - -Get a single database by id. - -``` -TYPE: query -USAGE: useDatabaseQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - ownerId: string - schemaHash: string - name: string - label: string - hash: string - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateDatabaseMutation - -Create a new database. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateDatabaseMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateDatabaseMutation - -Update an existing database. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateDatabaseMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteDatabaseMutation - -Delete a database. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteDatabaseMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSchemasQuery - -List all schemas. - -``` -TYPE: query -USAGE: useSchemasQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useSchemaQuery - -Get a single schema by id. - -``` -TYPE: query -USAGE: useSchemaQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateSchemaMutation - -Create a new schema. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateSchemaMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateSchemaMutation - -Update an existing schema. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateSchemaMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteSchemaMutation - -Delete a schema. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteSchemaMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useTablesQuery - -List all tables. - -``` -TYPE: query -USAGE: useTablesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useTableQuery - -Get a single table by id. - -``` -TYPE: query -USAGE: useTableQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateTableMutation - -Create a new table. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateTableMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateTableMutation - -Update an existing table. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateTableMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteTableMutation - -Delete a table. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteTableMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useCheckConstraintsQuery - -List all checkConstraints. - -``` -TYPE: query -USAGE: useCheckConstraintsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useCheckConstraintQuery - -Get a single checkConstraint by id. - -``` -TYPE: query -USAGE: useCheckConstraintQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateCheckConstraintMutation - -Create a new checkConstraint. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateCheckConstraintMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateCheckConstraintMutation - -Update an existing checkConstraint. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateCheckConstraintMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteCheckConstraintMutation - -Delete a checkConstraint. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteCheckConstraintMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useFieldsQuery - -List all fields. - -``` -TYPE: query -USAGE: useFieldsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useFieldQuery - -Get a single field by id. - -``` -TYPE: query -USAGE: useFieldQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateFieldMutation - -Create a new field. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateFieldMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateFieldMutation - -Update an existing field. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateFieldMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteFieldMutation - -Delete a field. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteFieldMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useForeignKeyConstraintsQuery - -List all foreignKeyConstraints. - -``` -TYPE: query -USAGE: useForeignKeyConstraintsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useForeignKeyConstraintQuery - -Get a single foreignKeyConstraint by id. - -``` -TYPE: query -USAGE: useForeignKeyConstraintQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateForeignKeyConstraintMutation - -Create a new foreignKeyConstraint. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateForeignKeyConstraintMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateForeignKeyConstraintMutation - -Update an existing foreignKeyConstraint. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateForeignKeyConstraintMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteForeignKeyConstraintMutation - -Delete a foreignKeyConstraint. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteForeignKeyConstraintMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useFullTextSearchesQuery - -List all fullTextSearches. - -``` -TYPE: query -USAGE: useFullTextSearchesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useFullTextSearchQuery - -Get a single fullTextSearch by id. - -``` -TYPE: query -USAGE: useFullTextSearchQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - tableId: string - fieldId: string - fieldIds: string[] - weights: string[] - langs: string[] - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateFullTextSearchMutation - -Create a new fullTextSearch. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateFullTextSearchMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateFullTextSearchMutation - -Update an existing fullTextSearch. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateFullTextSearchMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteFullTextSearchMutation - -Delete a fullTextSearch. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteFullTextSearchMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useIndicesQuery - -List all indices. - -``` -TYPE: query -USAGE: useIndicesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useIndexQuery - -Get a single index by id. - -``` -TYPE: query -USAGE: useIndexQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateIndexMutation - -Create a new index. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateIndexMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateIndexMutation - -Update an existing index. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateIndexMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteIndexMutation - -Delete a index. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteIndexMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useLimitFunctionsQuery - -List all limitFunctions. - -``` -TYPE: query -USAGE: useLimitFunctionsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useLimitFunctionQuery - -Get a single limitFunction by id. - -``` -TYPE: query -USAGE: useLimitFunctionQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - tableId: string - name: string - label: string - description: string - data: unknown - security: number -}> -``` - -### HOOK: useCreateLimitFunctionMutation - -Create a new limitFunction. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateLimitFunctionMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateLimitFunctionMutation - -Update an existing limitFunction. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateLimitFunctionMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteLimitFunctionMutation - -Delete a limitFunction. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteLimitFunctionMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: usePoliciesQuery - -List all policies. - -``` -TYPE: query -USAGE: usePoliciesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: usePolicyQuery - -Get a single policy by id. - -``` -TYPE: query -USAGE: usePolicyQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreatePolicyMutation - -Create a new policy. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreatePolicyMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdatePolicyMutation - -Update an existing policy. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdatePolicyMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeletePolicyMutation - -Delete a policy. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeletePolicyMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: usePrimaryKeyConstraintsQuery - -List all primaryKeyConstraints. - -``` -TYPE: query -USAGE: usePrimaryKeyConstraintsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: usePrimaryKeyConstraintQuery - -Get a single primaryKeyConstraint by id. - -``` -TYPE: query -USAGE: usePrimaryKeyConstraintQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreatePrimaryKeyConstraintMutation - -Create a new primaryKeyConstraint. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreatePrimaryKeyConstraintMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdatePrimaryKeyConstraintMutation - -Update an existing primaryKeyConstraint. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdatePrimaryKeyConstraintMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeletePrimaryKeyConstraintMutation - -Delete a primaryKeyConstraint. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeletePrimaryKeyConstraintMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useTableGrantsQuery - -List all tableGrants. - -``` -TYPE: query -USAGE: useTableGrantsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useTableGrantQuery - -Get a single tableGrant by id. - -``` -TYPE: query -USAGE: useTableGrantQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - tableId: string - privilege: string - roleName: string - fieldIds: string[] - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateTableGrantMutation - -Create a new tableGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateTableGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateTableGrantMutation - -Update an existing tableGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateTableGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteTableGrantMutation - -Delete a tableGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteTableGrantMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useTriggersQuery - -List all triggers. - -``` -TYPE: query -USAGE: useTriggersQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useTriggerQuery - -Get a single trigger by id. - -``` -TYPE: query -USAGE: useTriggerQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateTriggerMutation - -Create a new trigger. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateTriggerMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateTriggerMutation - -Update an existing trigger. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateTriggerMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteTriggerMutation - -Delete a trigger. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteTriggerMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUniqueConstraintsQuery - -List all uniqueConstraints. - -``` -TYPE: query -USAGE: useUniqueConstraintsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useUniqueConstraintQuery - -Get a single uniqueConstraint by id. - -``` -TYPE: query -USAGE: useUniqueConstraintQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateUniqueConstraintMutation - -Create a new uniqueConstraint. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateUniqueConstraintMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateUniqueConstraintMutation - -Update an existing uniqueConstraint. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateUniqueConstraintMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteUniqueConstraintMutation - -Delete a uniqueConstraint. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteUniqueConstraintMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useViewsQuery - -List all views. - -``` -TYPE: query -USAGE: useViewsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useViewQuery - -Get a single view by id. - -``` -TYPE: query -USAGE: useViewQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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[] -}> -``` - -### HOOK: useCreateViewMutation - -Create a new view. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateViewMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateViewMutation - -Update an existing view. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateViewMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteViewMutation - -Delete a view. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteViewMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useViewTablesQuery - -List all viewTables. - -``` -TYPE: query -USAGE: useViewTablesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useViewTableQuery - -Get a single viewTable by id. - -``` -TYPE: query -USAGE: useViewTableQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - viewId: string - tableId: string - joinOrder: number -}> -``` - -### HOOK: useCreateViewTableMutation - -Create a new viewTable. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateViewTableMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateViewTableMutation - -Update an existing viewTable. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateViewTableMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteViewTableMutation - -Delete a viewTable. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteViewTableMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useViewGrantsQuery - -List all viewGrants. - -``` -TYPE: query -USAGE: useViewGrantsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useViewGrantQuery - -Get a single viewGrant by id. - -``` -TYPE: query -USAGE: useViewGrantQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - viewId: string - roleName: string - privilege: string - withGrantOption: boolean -}> -``` - -### HOOK: useCreateViewGrantMutation - -Create a new viewGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateViewGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateViewGrantMutation - -Update an existing viewGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateViewGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteViewGrantMutation - -Delete a viewGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteViewGrantMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useViewRulesQuery - -List all viewRules. - -``` -TYPE: query -USAGE: useViewRulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useViewRuleQuery - -Get a single viewRule by id. - -``` -TYPE: query -USAGE: useViewRuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - viewId: string - name: string - event: string - action: string -}> -``` - -### HOOK: useCreateViewRuleMutation - -Create a new viewRule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateViewRuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateViewRuleMutation - -Update an existing viewRule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateViewRuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteViewRuleMutation - -Delete a viewRule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteViewRuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useTableModulesQuery - -List all tableModules. - -``` -TYPE: query -USAGE: useTableModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useTableModuleQuery - -Get a single tableModule by id. - -``` -TYPE: query -USAGE: useTableModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - privateSchemaId: string - tableId: string - nodeType: string - data: unknown - fields: string[] -}> -``` - -### HOOK: useCreateTableModuleMutation - -Create a new tableModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateTableModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateTableModuleMutation - -Update an existing tableModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateTableModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteTableModuleMutation - -Delete a tableModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteTableModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useTableTemplateModulesQuery - -List all tableTemplateModules. - -``` -TYPE: query -USAGE: useTableTemplateModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useTableTemplateModuleQuery - -Get a single tableTemplateModule by id. - -``` -TYPE: query -USAGE: useTableTemplateModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - schemaId: string - privateSchemaId: string - tableId: string - ownerTableId: string - tableName: string - nodeType: string - data: unknown -}> -``` - -### HOOK: useCreateTableTemplateModuleMutation - -Create a new tableTemplateModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateTableTemplateModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateTableTemplateModuleMutation - -Update an existing tableTemplateModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateTableTemplateModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteTableTemplateModuleMutation - -Delete a tableTemplateModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteTableTemplateModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSchemaGrantsQuery - -List all schemaGrants. - -``` -TYPE: query -USAGE: useSchemaGrantsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useSchemaGrantQuery - -Get a single schemaGrant by id. - -``` -TYPE: query -USAGE: useSchemaGrantQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - schemaId: string - granteeName: string - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateSchemaGrantMutation - -Create a new schemaGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateSchemaGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateSchemaGrantMutation - -Update an existing schemaGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateSchemaGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteSchemaGrantMutation - -Delete a schemaGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteSchemaGrantMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useApiSchemasQuery - -List all apiSchemas. - -``` -TYPE: query -USAGE: useApiSchemasQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useApiSchemaQuery - -Get a single apiSchema by id. - -``` -TYPE: query -USAGE: useApiSchemaQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - schemaId: string - apiId: string -}> -``` - -### HOOK: useCreateApiSchemaMutation - -Create a new apiSchema. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateApiSchemaMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateApiSchemaMutation - -Update an existing apiSchema. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateApiSchemaMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteApiSchemaMutation - -Delete a apiSchema. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteApiSchemaMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useApiModulesQuery - -List all apiModules. - -``` -TYPE: query -USAGE: useApiModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useApiModuleQuery - -Get a single apiModule by id. - -``` -TYPE: query -USAGE: useApiModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - apiId: string - name: string - data: unknown -}> -``` - -### HOOK: useCreateApiModuleMutation - -Create a new apiModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateApiModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateApiModuleMutation - -Update an existing apiModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateApiModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteApiModuleMutation - -Delete a apiModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteApiModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDomainsQuery - -List all domains. - -``` -TYPE: query -USAGE: useDomainsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useDomainQuery - -Get a single domain by id. - -``` -TYPE: query -USAGE: useDomainQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - apiId: string - siteId: string - subdomain: ConstructiveInternalTypeHostname - domain: ConstructiveInternalTypeHostname -}> -``` - -### HOOK: useCreateDomainMutation - -Create a new domain. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateDomainMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateDomainMutation - -Update an existing domain. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateDomainMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteDomainMutation - -Delete a domain. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteDomainMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSiteMetadataQuery - -List all siteMetadata. - -``` -TYPE: query -USAGE: useSiteMetadataQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useSiteMetadatumQuery - -Get a single siteMetadatum by id. - -``` -TYPE: query -USAGE: useSiteMetadatumQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - siteId: string - title: string - description: string - ogImage: ConstructiveInternalTypeImage -}> -``` - -### HOOK: useCreateSiteMetadatumMutation - -Create a new siteMetadatum. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateSiteMetadatumMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateSiteMetadatumMutation - -Update an existing siteMetadatum. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateSiteMetadatumMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteSiteMetadatumMutation - -Delete a siteMetadatum. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteSiteMetadatumMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSiteModulesQuery - -List all siteModules. - -``` -TYPE: query -USAGE: useSiteModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useSiteModuleQuery - -Get a single siteModule by id. - -``` -TYPE: query -USAGE: useSiteModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - siteId: string - name: string - data: unknown -}> -``` - -### HOOK: useCreateSiteModuleMutation - -Create a new siteModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateSiteModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateSiteModuleMutation - -Update an existing siteModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateSiteModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteSiteModuleMutation - -Delete a siteModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteSiteModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSiteThemesQuery - -List all siteThemes. - -``` -TYPE: query -USAGE: useSiteThemesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useSiteThemeQuery - -Get a single siteTheme by id. - -``` -TYPE: query -USAGE: useSiteThemeQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - siteId: string - theme: unknown -}> -``` - -### HOOK: useCreateSiteThemeMutation - -Create a new siteTheme. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateSiteThemeMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateSiteThemeMutation - -Update an existing siteTheme. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateSiteThemeMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteSiteThemeMutation - -Delete a siteTheme. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteSiteThemeMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useProceduresQuery - -List all procedures. - -``` -TYPE: query -USAGE: useProceduresQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useProcedureQuery - -Get a single procedure by id. - -``` -TYPE: query -USAGE: useProcedureQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateProcedureMutation - -Create a new procedure. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateProcedureMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateProcedureMutation - -Update an existing procedure. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateProcedureMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteProcedureMutation - -Delete a procedure. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteProcedureMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useTriggerFunctionsQuery - -List all triggerFunctions. - -``` -TYPE: query -USAGE: useTriggerFunctionsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useTriggerFunctionQuery - -Get a single triggerFunction by id. - -``` -TYPE: query -USAGE: useTriggerFunctionQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - name: string - code: string - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateTriggerFunctionMutation - -Create a new triggerFunction. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateTriggerFunctionMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateTriggerFunctionMutation - -Update an existing triggerFunction. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateTriggerFunctionMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteTriggerFunctionMutation - -Delete a triggerFunction. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteTriggerFunctionMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useApisQuery - -List all apis. - -``` -TYPE: query -USAGE: useApisQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useApiQuery - -Get a single api by id. - -``` -TYPE: query -USAGE: useApiQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - name: string - dbname: string - roleName: string - anonRole: string - isPublic: boolean -}> -``` - -### HOOK: useCreateApiMutation - -Create a new api. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateApiMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateApiMutation - -Update an existing api. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateApiMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteApiMutation - -Delete a api. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteApiMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSitesQuery - -List all sites. - -``` -TYPE: query -USAGE: useSitesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useSiteQuery - -Get a single site by id. - -``` -TYPE: query -USAGE: useSiteQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - title: string - description: string - ogImage: ConstructiveInternalTypeImage - favicon: ConstructiveInternalTypeAttachment - appleTouchIcon: ConstructiveInternalTypeImage - logo: ConstructiveInternalTypeImage - dbname: string -}> -``` - -### HOOK: useCreateSiteMutation - -Create a new site. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateSiteMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateSiteMutation - -Update an existing site. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateSiteMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteSiteMutation - -Delete a site. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteSiteMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppsQuery - -List all apps. - -``` -TYPE: query -USAGE: useAppsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppQuery - -Get a single app by id. - -``` -TYPE: query -USAGE: useAppQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - siteId: string - name: string - appImage: ConstructiveInternalTypeImage - appStoreLink: ConstructiveInternalTypeUrl - appStoreId: string - appIdPrefix: string - playStoreLink: ConstructiveInternalTypeUrl -}> -``` - -### HOOK: useCreateAppMutation - -Create a new app. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppMutation - -Update an existing app. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppMutation - -Delete a app. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useConnectedAccountsModulesQuery - -List all connectedAccountsModules. - -``` -TYPE: query -USAGE: useConnectedAccountsModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useConnectedAccountsModuleQuery - -Get a single connectedAccountsModule by id. - -``` -TYPE: query -USAGE: useConnectedAccountsModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - schemaId: string - privateSchemaId: string - tableId: string - ownerTableId: string - tableName: string -}> -``` - -### HOOK: useCreateConnectedAccountsModuleMutation - -Create a new connectedAccountsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateConnectedAccountsModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateConnectedAccountsModuleMutation - -Update an existing connectedAccountsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateConnectedAccountsModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteConnectedAccountsModuleMutation - -Delete a connectedAccountsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteConnectedAccountsModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useCryptoAddressesModulesQuery - -List all cryptoAddressesModules. - -``` -TYPE: query -USAGE: useCryptoAddressesModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useCryptoAddressesModuleQuery - -Get a single cryptoAddressesModule by id. - -``` -TYPE: query -USAGE: useCryptoAddressesModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - schemaId: string - privateSchemaId: string - tableId: string - ownerTableId: string - tableName: string - cryptoNetwork: string -}> -``` - -### HOOK: useCreateCryptoAddressesModuleMutation - -Create a new cryptoAddressesModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateCryptoAddressesModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateCryptoAddressesModuleMutation - -Update an existing cryptoAddressesModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateCryptoAddressesModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteCryptoAddressesModuleMutation - -Delete a cryptoAddressesModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteCryptoAddressesModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useCryptoAuthModulesQuery - -List all cryptoAuthModules. - -``` -TYPE: query -USAGE: useCryptoAuthModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useCryptoAuthModuleQuery - -Get a single cryptoAuthModule by id. - -``` -TYPE: query -USAGE: useCryptoAuthModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateCryptoAuthModuleMutation - -Create a new cryptoAuthModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateCryptoAuthModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateCryptoAuthModuleMutation - -Update an existing cryptoAuthModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateCryptoAuthModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteCryptoAuthModuleMutation - -Delete a cryptoAuthModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteCryptoAuthModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDefaultIdsModulesQuery - -List all defaultIdsModules. - -``` -TYPE: query -USAGE: useDefaultIdsModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useDefaultIdsModuleQuery - -Get a single defaultIdsModule by id. - -``` -TYPE: query -USAGE: useDefaultIdsModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string -}> -``` - -### HOOK: useCreateDefaultIdsModuleMutation - -Create a new defaultIdsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateDefaultIdsModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateDefaultIdsModuleMutation - -Update an existing defaultIdsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateDefaultIdsModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteDefaultIdsModuleMutation - -Delete a defaultIdsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteDefaultIdsModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDenormalizedTableFieldsQuery - -List all denormalizedTableFields. - -``` -TYPE: query -USAGE: useDenormalizedTableFieldsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useDenormalizedTableFieldQuery - -Get a single denormalizedTableField by id. - -``` -TYPE: query -USAGE: useDenormalizedTableFieldQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - tableId: string - fieldId: string - setIds: string[] - refTableId: string - refFieldId: string - refIds: string[] - useUpdates: boolean - updateDefaults: boolean - funcName: string - funcOrder: number -}> -``` - -### HOOK: useCreateDenormalizedTableFieldMutation - -Create a new denormalizedTableField. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateDenormalizedTableFieldMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateDenormalizedTableFieldMutation - -Update an existing denormalizedTableField. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateDenormalizedTableFieldMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteDenormalizedTableFieldMutation - -Delete a denormalizedTableField. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteDenormalizedTableFieldMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useEmailsModulesQuery - -List all emailsModules. - -``` -TYPE: query -USAGE: useEmailsModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useEmailsModuleQuery - -Get a single emailsModule by id. - -``` -TYPE: query -USAGE: useEmailsModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - schemaId: string - privateSchemaId: string - tableId: string - ownerTableId: string - tableName: string -}> -``` - -### HOOK: useCreateEmailsModuleMutation - -Create a new emailsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateEmailsModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateEmailsModuleMutation - -Update an existing emailsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateEmailsModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteEmailsModuleMutation - -Delete a emailsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteEmailsModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useEncryptedSecretsModulesQuery - -List all encryptedSecretsModules. - -``` -TYPE: query -USAGE: useEncryptedSecretsModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useEncryptedSecretsModuleQuery - -Get a single encryptedSecretsModule by id. - -``` -TYPE: query -USAGE: useEncryptedSecretsModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - schemaId: string - tableId: string - tableName: string -}> -``` - -### HOOK: useCreateEncryptedSecretsModuleMutation - -Create a new encryptedSecretsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateEncryptedSecretsModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateEncryptedSecretsModuleMutation - -Update an existing encryptedSecretsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateEncryptedSecretsModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteEncryptedSecretsModuleMutation - -Delete a encryptedSecretsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteEncryptedSecretsModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useFieldModulesQuery - -List all fieldModules. - -``` -TYPE: query -USAGE: useFieldModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useFieldModuleQuery - -Get a single fieldModule by id. - -``` -TYPE: query -USAGE: useFieldModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - privateSchemaId: string - tableId: string - fieldId: string - nodeType: string - data: unknown - triggers: string[] - functions: string[] -}> -``` - -### HOOK: useCreateFieldModuleMutation - -Create a new fieldModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateFieldModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateFieldModuleMutation - -Update an existing fieldModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateFieldModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteFieldModuleMutation - -Delete a fieldModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteFieldModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useInvitesModulesQuery - -List all invitesModules. - -``` -TYPE: query -USAGE: useInvitesModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useInvitesModuleQuery - -Get a single invitesModule by id. - -``` -TYPE: query -USAGE: useInvitesModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateInvitesModuleMutation - -Create a new invitesModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateInvitesModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateInvitesModuleMutation - -Update an existing invitesModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateInvitesModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteInvitesModuleMutation - -Delete a invitesModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteInvitesModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useLevelsModulesQuery - -List all levelsModules. - -``` -TYPE: query -USAGE: useLevelsModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useLevelsModuleQuery - -Get a single levelsModule by id. - -``` -TYPE: query -USAGE: useLevelsModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateLevelsModuleMutation - -Create a new levelsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateLevelsModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateLevelsModuleMutation - -Update an existing levelsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateLevelsModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteLevelsModuleMutation - -Delete a levelsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteLevelsModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useLimitsModulesQuery - -List all limitsModules. - -``` -TYPE: query -USAGE: useLimitsModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useLimitsModuleQuery - -Get a single limitsModule by id. - -``` -TYPE: query -USAGE: useLimitsModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateLimitsModuleMutation - -Create a new limitsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateLimitsModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateLimitsModuleMutation - -Update an existing limitsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateLimitsModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteLimitsModuleMutation - -Delete a limitsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteLimitsModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useMembershipTypesModulesQuery - -List all membershipTypesModules. - -``` -TYPE: query -USAGE: useMembershipTypesModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useMembershipTypesModuleQuery - -Get a single membershipTypesModule by id. - -``` -TYPE: query -USAGE: useMembershipTypesModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - schemaId: string - tableId: string - tableName: string -}> -``` - -### HOOK: useCreateMembershipTypesModuleMutation - -Create a new membershipTypesModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateMembershipTypesModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateMembershipTypesModuleMutation - -Update an existing membershipTypesModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateMembershipTypesModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteMembershipTypesModuleMutation - -Delete a membershipTypesModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteMembershipTypesModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useMembershipsModulesQuery - -List all membershipsModules. - -``` -TYPE: query -USAGE: useMembershipsModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useMembershipsModuleQuery - -Get a single membershipsModule by id. - -``` -TYPE: query -USAGE: useMembershipsModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateMembershipsModuleMutation - -Create a new membershipsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateMembershipsModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateMembershipsModuleMutation - -Update an existing membershipsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateMembershipsModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteMembershipsModuleMutation - -Delete a membershipsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteMembershipsModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: usePermissionsModulesQuery - -List all permissionsModules. - -``` -TYPE: query -USAGE: usePermissionsModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: usePermissionsModuleQuery - -Get a single permissionsModule by id. - -``` -TYPE: query -USAGE: usePermissionsModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreatePermissionsModuleMutation - -Create a new permissionsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreatePermissionsModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdatePermissionsModuleMutation - -Update an existing permissionsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdatePermissionsModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeletePermissionsModuleMutation - -Delete a permissionsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeletePermissionsModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: usePhoneNumbersModulesQuery - -List all phoneNumbersModules. - -``` -TYPE: query -USAGE: usePhoneNumbersModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: usePhoneNumbersModuleQuery - -Get a single phoneNumbersModule by id. - -``` -TYPE: query -USAGE: usePhoneNumbersModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - schemaId: string - privateSchemaId: string - tableId: string - ownerTableId: string - tableName: string -}> -``` - -### HOOK: useCreatePhoneNumbersModuleMutation - -Create a new phoneNumbersModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreatePhoneNumbersModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdatePhoneNumbersModuleMutation - -Update an existing phoneNumbersModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdatePhoneNumbersModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeletePhoneNumbersModuleMutation - -Delete a phoneNumbersModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeletePhoneNumbersModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useProfilesModulesQuery - -List all profilesModules. - -``` -TYPE: query -USAGE: useProfilesModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useProfilesModuleQuery - -Get a single profilesModule by id. - -``` -TYPE: query -USAGE: useProfilesModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateProfilesModuleMutation - -Create a new profilesModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateProfilesModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateProfilesModuleMutation - -Update an existing profilesModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateProfilesModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteProfilesModuleMutation - -Delete a profilesModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteProfilesModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useRlsModulesQuery - -List all rlsModules. - -``` -TYPE: query -USAGE: useRlsModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useRlsModuleQuery - -Get a single rlsModule by id. - -``` -TYPE: query -USAGE: useRlsModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - apiId: string - schemaId: string - privateSchemaId: string - sessionCredentialsTableId: string - sessionsTableId: string - usersTableId: string - authenticate: string - authenticateStrict: string - currentRole: string - currentRoleId: string -}> -``` - -### HOOK: useCreateRlsModuleMutation - -Create a new rlsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateRlsModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateRlsModuleMutation - -Update an existing rlsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateRlsModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteRlsModuleMutation - -Delete a rlsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteRlsModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSecretsModulesQuery - -List all secretsModules. - -``` -TYPE: query -USAGE: useSecretsModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useSecretsModuleQuery - -Get a single secretsModule by id. - -``` -TYPE: query -USAGE: useSecretsModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - schemaId: string - tableId: string - tableName: string -}> -``` - -### HOOK: useCreateSecretsModuleMutation - -Create a new secretsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateSecretsModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateSecretsModuleMutation - -Update an existing secretsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateSecretsModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteSecretsModuleMutation - -Delete a secretsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteSecretsModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSessionsModulesQuery - -List all sessionsModules. - -``` -TYPE: query -USAGE: useSessionsModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useSessionsModuleQuery - -Get a single sessionsModule by id. - -``` -TYPE: query -USAGE: useSessionsModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - schemaId: string - sessionsTableId: string - sessionCredentialsTableId: string - authSettingsTableId: string - usersTableId: string - sessionsDefaultExpiration: string - sessionsTable: string - sessionCredentialsTable: string - authSettingsTable: string -}> -``` - -### HOOK: useCreateSessionsModuleMutation - -Create a new sessionsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateSessionsModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateSessionsModuleMutation - -Update an existing sessionsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateSessionsModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteSessionsModuleMutation - -Delete a sessionsModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteSessionsModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUserAuthModulesQuery - -List all userAuthModules. - -``` -TYPE: query -USAGE: useUserAuthModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useUserAuthModuleQuery - -Get a single userAuthModule by id. - -``` -TYPE: query -USAGE: useUserAuthModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateUserAuthModuleMutation - -Create a new userAuthModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateUserAuthModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateUserAuthModuleMutation - -Update an existing userAuthModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateUserAuthModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteUserAuthModuleMutation - -Delete a userAuthModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteUserAuthModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUsersModulesQuery - -List all usersModules. - -``` -TYPE: query -USAGE: useUsersModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useUsersModuleQuery - -Get a single usersModule by id. - -``` -TYPE: query -USAGE: useUsersModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - schemaId: string - tableId: string - tableName: string - typeTableId: string - typeTableName: string -}> -``` - -### HOOK: useCreateUsersModuleMutation - -Create a new usersModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateUsersModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateUsersModuleMutation - -Update an existing usersModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateUsersModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteUsersModuleMutation - -Delete a usersModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteUsersModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUuidModulesQuery - -List all uuidModules. - -``` -TYPE: query -USAGE: useUuidModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useUuidModuleQuery - -Get a single uuidModule by id. - -``` -TYPE: query -USAGE: useUuidModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseId: string - schemaId: string - uuidFunction: string - uuidSeed: string -}> -``` - -### HOOK: useCreateUuidModuleMutation - -Create a new uuidModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateUuidModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateUuidModuleMutation - -Update an existing uuidModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateUuidModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteUuidModuleMutation - -Delete a uuidModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteUuidModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDatabaseProvisionModulesQuery - -List all databaseProvisionModules. - -``` -TYPE: query -USAGE: useDatabaseProvisionModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useDatabaseProvisionModuleQuery - -Get a single databaseProvisionModule by id. - -``` -TYPE: query -USAGE: useDatabaseProvisionModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - databaseName: string - ownerId: string - subdomain: string - domain: string - modules: string[] - options: unknown - bootstrapUser: boolean - status: string - errorMessage: string - databaseId: string - createdAt: string - updatedAt: string - completedAt: string -}> -``` - -### HOOK: useCreateDatabaseProvisionModuleMutation - -Create a new databaseProvisionModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateDatabaseProvisionModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateDatabaseProvisionModuleMutation - -Update an existing databaseProvisionModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateDatabaseProvisionModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteDatabaseProvisionModuleMutation - -Delete a databaseProvisionModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteDatabaseProvisionModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppAdminGrantsQuery - -List all appAdminGrants. - -``` -TYPE: query -USAGE: useAppAdminGrantsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppAdminGrantQuery - -Get a single appAdminGrant by id. - -``` -TYPE: query -USAGE: useAppAdminGrantQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - isGrant: boolean - actorId: string - grantorId: string - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateAppAdminGrantMutation - -Create a new appAdminGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppAdminGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppAdminGrantMutation - -Update an existing appAdminGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppAdminGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppAdminGrantMutation - -Delete a appAdminGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppAdminGrantMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppOwnerGrantsQuery - -List all appOwnerGrants. - -``` -TYPE: query -USAGE: useAppOwnerGrantsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppOwnerGrantQuery - -Get a single appOwnerGrant by id. - -``` -TYPE: query -USAGE: useAppOwnerGrantQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - isGrant: boolean - actorId: string - grantorId: string - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateAppOwnerGrantMutation - -Create a new appOwnerGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppOwnerGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppOwnerGrantMutation - -Update an existing appOwnerGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppOwnerGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppOwnerGrantMutation - -Delete a appOwnerGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppOwnerGrantMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppGrantsQuery - -List all appGrants. - -``` -TYPE: query -USAGE: useAppGrantsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppGrantQuery - -Get a single appGrant by id. - -``` -TYPE: query -USAGE: useAppGrantQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - permissions: string - isGrant: boolean - actorId: string - grantorId: string - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateAppGrantMutation - -Create a new appGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppGrantMutation - -Update an existing appGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppGrantMutation - -Delete a appGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppGrantMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgMembershipsQuery - -List all orgMemberships. - -``` -TYPE: query -USAGE: useOrgMembershipsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgMembershipQuery - -Get a single orgMembership by id. - -``` -TYPE: query -USAGE: useOrgMembershipQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateOrgMembershipMutation - -Create a new orgMembership. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgMembershipMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgMembershipMutation - -Update an existing orgMembership. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgMembershipMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgMembershipMutation - -Delete a orgMembership. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgMembershipMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgMembersQuery - -List all orgMembers. - -``` -TYPE: query -USAGE: useOrgMembersQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgMemberQuery - -Get a single orgMember by id. - -``` -TYPE: query -USAGE: useOrgMemberQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - isAdmin: boolean - actorId: string - entityId: string -}> -``` - -### HOOK: useCreateOrgMemberMutation - -Create a new orgMember. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgMemberMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgMemberMutation - -Update an existing orgMember. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgMemberMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgMemberMutation - -Delete a orgMember. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgMemberMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgAdminGrantsQuery - -List all orgAdminGrants. - -``` -TYPE: query -USAGE: useOrgAdminGrantsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgAdminGrantQuery - -Get a single orgAdminGrant by id. - -``` -TYPE: query -USAGE: useOrgAdminGrantQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - isGrant: boolean - actorId: string - entityId: string - grantorId: string - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateOrgAdminGrantMutation - -Create a new orgAdminGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgAdminGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgAdminGrantMutation - -Update an existing orgAdminGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgAdminGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgAdminGrantMutation - -Delete a orgAdminGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgAdminGrantMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgOwnerGrantsQuery - -List all orgOwnerGrants. - -``` -TYPE: query -USAGE: useOrgOwnerGrantsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgOwnerGrantQuery - -Get a single orgOwnerGrant by id. - -``` -TYPE: query -USAGE: useOrgOwnerGrantQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - isGrant: boolean - actorId: string - entityId: string - grantorId: string - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateOrgOwnerGrantMutation - -Create a new orgOwnerGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgOwnerGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgOwnerGrantMutation - -Update an existing orgOwnerGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgOwnerGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgOwnerGrantMutation - -Delete a orgOwnerGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgOwnerGrantMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgGrantsQuery - -List all orgGrants. - -``` -TYPE: query -USAGE: useOrgGrantsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgGrantQuery - -Get a single orgGrant by id. - -``` -TYPE: query -USAGE: useOrgGrantQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - permissions: string - isGrant: boolean - actorId: string - entityId: string - grantorId: string - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateOrgGrantMutation - -Create a new orgGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgGrantMutation - -Update an existing orgGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgGrantMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgGrantMutation - -Delete a orgGrant. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgGrantMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppLimitsQuery - -List all appLimits. - -``` -TYPE: query -USAGE: useAppLimitsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppLimitQuery - -Get a single appLimit by id. - -``` -TYPE: query -USAGE: useAppLimitQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - name: string - actorId: string - num: number - max: number -}> -``` - -### HOOK: useCreateAppLimitMutation - -Create a new appLimit. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppLimitMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppLimitMutation - -Update an existing appLimit. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppLimitMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppLimitMutation - -Delete a appLimit. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppLimitMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgLimitsQuery - -List all orgLimits. - -``` -TYPE: query -USAGE: useOrgLimitsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgLimitQuery - -Get a single orgLimit by id. - -``` -TYPE: query -USAGE: useOrgLimitQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - name: string - actorId: string - num: number - max: number - entityId: string -}> -``` - -### HOOK: useCreateOrgLimitMutation - -Create a new orgLimit. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgLimitMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgLimitMutation - -Update an existing orgLimit. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgLimitMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgLimitMutation - -Delete a orgLimit. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgLimitMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppStepsQuery - -List all appSteps. - -``` -TYPE: query -USAGE: useAppStepsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppStepQuery - -Get a single appStep by id. - -``` -TYPE: query -USAGE: useAppStepQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - actorId: string - name: string - count: number - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateAppStepMutation - -Create a new appStep. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppStepMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppStepMutation - -Update an existing appStep. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppStepMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppStepMutation - -Delete a appStep. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppStepMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppAchievementsQuery - -List all appAchievements. - -``` -TYPE: query -USAGE: useAppAchievementsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppAchievementQuery - -Get a single appAchievement by id. - -``` -TYPE: query -USAGE: useAppAchievementQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - actorId: string - name: string - count: number - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateAppAchievementMutation - -Create a new appAchievement. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppAchievementMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppAchievementMutation - -Update an existing appAchievement. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppAchievementMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppAchievementMutation - -Delete a appAchievement. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppAchievementMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useInvitesQuery - -List all invites. - -``` -TYPE: query -USAGE: useInvitesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useInviteQuery - -Get a single invite by id. - -``` -TYPE: query -USAGE: useInviteQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - email: ConstructiveInternalTypeEmail - senderId: string - inviteToken: string - inviteValid: boolean - inviteLimit: number - inviteCount: number - multiple: boolean - data: unknown - expiresAt: string - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateInviteMutation - -Create a new invite. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateInviteMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateInviteMutation - -Update an existing invite. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateInviteMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteInviteMutation - -Delete a invite. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteInviteMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useClaimedInvitesQuery - -List all claimedInvites. - -``` -TYPE: query -USAGE: useClaimedInvitesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useClaimedInviteQuery - -Get a single claimedInvite by id. - -``` -TYPE: query -USAGE: useClaimedInviteQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - data: unknown - senderId: string - receiverId: string - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateClaimedInviteMutation - -Create a new claimedInvite. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateClaimedInviteMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateClaimedInviteMutation - -Update an existing claimedInvite. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateClaimedInviteMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteClaimedInviteMutation - -Delete a claimedInvite. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteClaimedInviteMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgInvitesQuery - -List all orgInvites. - -``` -TYPE: query -USAGE: useOrgInvitesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgInviteQuery - -Get a single orgInvite by id. - -``` -TYPE: query -USAGE: useOrgInviteQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateOrgInviteMutation - -Create a new orgInvite. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgInviteMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgInviteMutation - -Update an existing orgInvite. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgInviteMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgInviteMutation - -Delete a orgInvite. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgInviteMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgClaimedInvitesQuery - -List all orgClaimedInvites. - -``` -TYPE: query -USAGE: useOrgClaimedInvitesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgClaimedInviteQuery - -Get a single orgClaimedInvite by id. - -``` -TYPE: query -USAGE: useOrgClaimedInviteQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - data: unknown - senderId: string - receiverId: string - createdAt: string - updatedAt: string - entityId: string -}> -``` - -### HOOK: useCreateOrgClaimedInviteMutation - -Create a new orgClaimedInvite. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgClaimedInviteMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgClaimedInviteMutation - -Update an existing orgClaimedInvite. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgClaimedInviteMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgClaimedInviteMutation - -Delete a orgClaimedInvite. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgClaimedInviteMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppPermissionDefaultsQuery - -List all appPermissionDefaults. - -``` -TYPE: query -USAGE: useAppPermissionDefaultsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppPermissionDefaultQuery - -Get a single appPermissionDefault by id. - -``` -TYPE: query -USAGE: useAppPermissionDefaultQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - permissions: string -}> -``` - -### HOOK: useCreateAppPermissionDefaultMutation - -Create a new appPermissionDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppPermissionDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppPermissionDefaultMutation - -Update an existing appPermissionDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppPermissionDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppPermissionDefaultMutation - -Delete a appPermissionDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppPermissionDefaultMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useRefsQuery - -List all refs. - -``` -TYPE: query -USAGE: useRefsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useRefQuery - -Get a single ref by id. - -``` -TYPE: query -USAGE: useRefQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - name: string - databaseId: string - storeId: string - commitId: string -}> -``` - -### HOOK: useCreateRefMutation - -Create a new ref. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateRefMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateRefMutation - -Update an existing ref. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateRefMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteRefMutation - -Delete a ref. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteRefMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useStoresQuery - -List all stores. - -``` -TYPE: query -USAGE: useStoresQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useStoreQuery - -Get a single store by id. - -``` -TYPE: query -USAGE: useStoreQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - name: string - databaseId: string - hash: string - createdAt: string -}> -``` - -### HOOK: useCreateStoreMutation - -Create a new store. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateStoreMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateStoreMutation - -Update an existing store. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateStoreMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteStoreMutation - -Delete a store. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteStoreMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useRoleTypesQuery - -List all roleTypes. - -``` -TYPE: query -USAGE: useRoleTypesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useRoleTypeQuery - -Get a single roleType by id. - -``` -TYPE: query -USAGE: useRoleTypeQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: number (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: number - name: string -}> -``` - -### HOOK: useCreateRoleTypeMutation - -Create a new roleType. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateRoleTypeMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateRoleTypeMutation - -Update an existing roleType. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateRoleTypeMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteRoleTypeMutation - -Delete a roleType. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteRoleTypeMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgPermissionDefaultsQuery - -List all orgPermissionDefaults. - -``` -TYPE: query -USAGE: useOrgPermissionDefaultsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgPermissionDefaultQuery - -Get a single orgPermissionDefault by id. - -``` -TYPE: query -USAGE: useOrgPermissionDefaultQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - permissions: string - entityId: string -}> -``` - -### HOOK: useCreateOrgPermissionDefaultMutation - -Create a new orgPermissionDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgPermissionDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgPermissionDefaultMutation - -Update an existing orgPermissionDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgPermissionDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgPermissionDefaultMutation - -Delete a orgPermissionDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgPermissionDefaultMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppLimitDefaultsQuery - -List all appLimitDefaults. - -``` -TYPE: query -USAGE: useAppLimitDefaultsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppLimitDefaultQuery - -Get a single appLimitDefault by id. - -``` -TYPE: query -USAGE: useAppLimitDefaultQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - name: string - max: number -}> -``` - -### HOOK: useCreateAppLimitDefaultMutation - -Create a new appLimitDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppLimitDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppLimitDefaultMutation - -Update an existing appLimitDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppLimitDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppLimitDefaultMutation - -Delete a appLimitDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppLimitDefaultMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgLimitDefaultsQuery - -List all orgLimitDefaults. - -``` -TYPE: query -USAGE: useOrgLimitDefaultsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgLimitDefaultQuery - -Get a single orgLimitDefault by id. - -``` -TYPE: query -USAGE: useOrgLimitDefaultQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - name: string - max: number -}> -``` - -### HOOK: useCreateOrgLimitDefaultMutation - -Create a new orgLimitDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgLimitDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgLimitDefaultMutation - -Update an existing orgLimitDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgLimitDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgLimitDefaultMutation - -Delete a orgLimitDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgLimitDefaultMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useCryptoAddressesQuery - -List all cryptoAddresses. - -``` -TYPE: query -USAGE: useCryptoAddressesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useCryptoAddressQuery - -Get a single cryptoAddress by id. - -``` -TYPE: query -USAGE: useCryptoAddressQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - ownerId: string - address: string - isVerified: boolean - isPrimary: boolean - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateCryptoAddressMutation - -Create a new cryptoAddress. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateCryptoAddressMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateCryptoAddressMutation - -Update an existing cryptoAddress. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateCryptoAddressMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteCryptoAddressMutation - -Delete a cryptoAddress. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteCryptoAddressMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useMembershipTypesQuery - -List all membershipTypes. - -``` -TYPE: query -USAGE: useMembershipTypesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useMembershipTypeQuery - -Get a single membershipType by id. - -``` -TYPE: query -USAGE: useMembershipTypeQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: number (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: number - name: string - description: string - prefix: string -}> -``` - -### HOOK: useCreateMembershipTypeMutation - -Create a new membershipType. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateMembershipTypeMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateMembershipTypeMutation - -Update an existing membershipType. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateMembershipTypeMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteMembershipTypeMutation - -Delete a membershipType. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteMembershipTypeMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useConnectedAccountsQuery - -List all connectedAccounts. - -``` -TYPE: query -USAGE: useConnectedAccountsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useConnectedAccountQuery - -Get a single connectedAccount by id. - -``` -TYPE: query -USAGE: useConnectedAccountQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - ownerId: string - service: string - identifier: string - details: unknown - isVerified: boolean - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateConnectedAccountMutation - -Create a new connectedAccount. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateConnectedAccountMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateConnectedAccountMutation - -Update an existing connectedAccount. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateConnectedAccountMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteConnectedAccountMutation - -Delete a connectedAccount. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteConnectedAccountMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: usePhoneNumbersQuery - -List all phoneNumbers. - -``` -TYPE: query -USAGE: usePhoneNumbersQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: usePhoneNumberQuery - -Get a single phoneNumber by id. - -``` -TYPE: query -USAGE: usePhoneNumberQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - ownerId: string - cc: string - number: string - isVerified: boolean - isPrimary: boolean - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreatePhoneNumberMutation - -Create a new phoneNumber. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreatePhoneNumberMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdatePhoneNumberMutation - -Update an existing phoneNumber. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdatePhoneNumberMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeletePhoneNumberMutation - -Delete a phoneNumber. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeletePhoneNumberMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppMembershipDefaultsQuery - -List all appMembershipDefaults. - -``` -TYPE: query -USAGE: useAppMembershipDefaultsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppMembershipDefaultQuery - -Get a single appMembershipDefault by id. - -``` -TYPE: query -USAGE: useAppMembershipDefaultQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - createdAt: string - updatedAt: string - createdBy: string - updatedBy: string - isApproved: boolean - isVerified: boolean -}> -``` - -### HOOK: useCreateAppMembershipDefaultMutation - -Create a new appMembershipDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppMembershipDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppMembershipDefaultMutation - -Update an existing appMembershipDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppMembershipDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppMembershipDefaultMutation - -Delete a appMembershipDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppMembershipDefaultMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useNodeTypeRegistriesQuery - -List all nodeTypeRegistries. - -``` -TYPE: query -USAGE: useNodeTypeRegistriesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useNodeTypeRegistryQuery - -Get a single nodeTypeRegistry by name. - -``` -TYPE: query -USAGE: useNodeTypeRegistryQuery({ name: '', selection: { fields: { ... } } }) - -INPUT: - name: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - name: string - slug: string - category: string - displayName: string - description: string - parameterSchema: unknown - tags: string[] - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateNodeTypeRegistryMutation - -Create a new nodeTypeRegistry. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateNodeTypeRegistryMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateNodeTypeRegistryMutation - -Update an existing nodeTypeRegistry. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateNodeTypeRegistryMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteNodeTypeRegistryMutation - -Delete a nodeTypeRegistry. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteNodeTypeRegistryMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useCommitsQuery - -List all commits. - -``` -TYPE: query -USAGE: useCommitsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useCommitQuery - -Get a single commit by id. - -``` -TYPE: query -USAGE: useCommitQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - message: string - databaseId: string - storeId: string - parentIds: string[] - authorId: string - committerId: string - treeId: string - date: string -}> -``` - -### HOOK: useCreateCommitMutation - -Create a new commit. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateCommitMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateCommitMutation - -Update an existing commit. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateCommitMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteCommitMutation - -Delete a commit. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteCommitMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOrgMembershipDefaultsQuery - -List all orgMembershipDefaults. - -``` -TYPE: query -USAGE: useOrgMembershipDefaultsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useOrgMembershipDefaultQuery - -Get a single orgMembershipDefault by id. - -``` -TYPE: query -USAGE: useOrgMembershipDefaultQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - createdAt: string - updatedAt: string - createdBy: string - updatedBy: string - isApproved: boolean - entityId: string - deleteMemberCascadeGroups: boolean - createGroupsCascadeMembers: boolean -}> -``` - -### HOOK: useCreateOrgMembershipDefaultMutation - -Create a new orgMembershipDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateOrgMembershipDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateOrgMembershipDefaultMutation - -Update an existing orgMembershipDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateOrgMembershipDefaultMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteOrgMembershipDefaultMutation - -Delete a orgMembershipDefault. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteOrgMembershipDefaultMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useEmailsQuery - -List all emails. - -``` -TYPE: query -USAGE: useEmailsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useEmailQuery - -Get a single email by id. - -``` -TYPE: query -USAGE: useEmailQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - ownerId: string - email: ConstructiveInternalTypeEmail - isVerified: boolean - isPrimary: boolean - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateEmailMutation - -Create a new email. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateEmailMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateEmailMutation - -Update an existing email. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateEmailMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteEmailMutation - -Delete a email. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteEmailMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAuditLogsQuery - -List all auditLogs. - -``` -TYPE: query -USAGE: useAuditLogsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAuditLogQuery - -Get a single auditLog by id. - -``` -TYPE: query -USAGE: useAuditLogQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - event: string - actorId: string - origin: ConstructiveInternalTypeOrigin - userAgent: string - ipAddress: string - success: boolean - createdAt: string -}> -``` - -### HOOK: useCreateAuditLogMutation - -Create a new auditLog. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAuditLogMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAuditLogMutation - -Update an existing auditLog. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAuditLogMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAuditLogMutation - -Delete a auditLog. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAuditLogMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppLevelsQuery - -List all appLevels. - -``` -TYPE: query -USAGE: useAppLevelsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppLevelQuery - -Get a single appLevel by id. - -``` -TYPE: query -USAGE: useAppLevelQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - name: string - description: string - image: ConstructiveInternalTypeImage - ownerId: string - createdAt: string - updatedAt: string -}> -``` - -### HOOK: useCreateAppLevelMutation - -Create a new appLevel. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppLevelMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppLevelMutation - -Update an existing appLevel. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppLevelMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppLevelMutation - -Delete a appLevel. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppLevelMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSqlMigrationsQuery - -List all sqlMigrations. - -``` -TYPE: query -USAGE: useSqlMigrationsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useSqlMigrationQuery - -Get a single sqlMigration by id. - -``` -TYPE: query -USAGE: useSqlMigrationQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: number (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateSqlMigrationMutation - -Create a new sqlMigration. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateSqlMigrationMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateSqlMigrationMutation - -Update an existing sqlMigration. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateSqlMigrationMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteSqlMigrationMutation - -Delete a sqlMigration. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteSqlMigrationMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAstMigrationsQuery - -List all astMigrations. - -``` -TYPE: query -USAGE: useAstMigrationsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAstMigrationQuery - -Get a single astMigration by id. - -``` -TYPE: query -USAGE: useAstMigrationQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: number (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateAstMigrationMutation - -Create a new astMigration. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAstMigrationMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAstMigrationMutation - -Update an existing astMigration. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAstMigrationMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAstMigrationMutation - -Delete a astMigration. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAstMigrationMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useAppMembershipsQuery - -List all appMemberships. - -``` -TYPE: query -USAGE: useAppMembershipsQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useAppMembershipQuery - -Get a single appMembership by id. - -``` -TYPE: query -USAGE: useAppMembershipQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateAppMembershipMutation - -Create a new appMembership. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateAppMembershipMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateAppMembershipMutation - -Update an existing appMembership. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateAppMembershipMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteAppMembershipMutation - -Delete a appMembership. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteAppMembershipMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUsersQuery - -List all users. - -``` -TYPE: query -USAGE: useUsersQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useUserQuery - -Get a single user by id. - -``` -TYPE: query -USAGE: useUserQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - id: string - username: string - displayName: string - profilePicture: ConstructiveInternalTypeImage - searchTsv: string - type: number - createdAt: string - updatedAt: string - searchTsvRank: number -}> -``` - -### HOOK: useCreateUserMutation - -Create a new user. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateUserMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateUserMutation - -Update an existing user. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateUserMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteUserMutation - -Delete a user. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteUserMutation({}) - -OUTPUT: UseMutationResult -``` - -### HOOK: useHierarchyModulesQuery - -List all hierarchyModules. - -``` -TYPE: query -USAGE: useHierarchyModulesQuery({ selection: { fields: { ... } } }) - -INPUT: - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult> -``` - -### HOOK: useHierarchyModuleQuery - -Get a single hierarchyModule by id. - -``` -TYPE: query -USAGE: useHierarchyModuleQuery({ id: '', selection: { fields: { ... } } }) - -INPUT: - id: string (required) - selection: { fields: Record } - Fields to select - -OUTPUT: UseQueryResult<{ - 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 -}> -``` - -### HOOK: useCreateHierarchyModuleMutation - -Create a new hierarchyModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useCreateHierarchyModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateHierarchyModuleMutation - -Update an existing hierarchyModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateHierarchyModuleMutation({ selection: { fields: { ... } } }) - -OUTPUT: UseMutationResult -``` - -### HOOK: useDeleteHierarchyModuleMutation - -Delete a hierarchyModule. - -``` -TYPE: mutation -USAGE: const { mutate } = useDeleteHierarchyModuleMutation({}) - -OUTPUT: UseMutationResult -``` - -## CUSTOM OPERATION HOOKS - -### HOOK: useCurrentUserIdQuery - -currentUserId - -``` -TYPE: query -USAGE: useCurrentUserIdQuery() - -INPUT: none - -OUTPUT: UseQueryResult -``` - -### HOOK: useCurrentIpAddressQuery - -currentIpAddress - -``` -TYPE: query -USAGE: useCurrentIpAddressQuery() - -INPUT: none - -OUTPUT: UseQueryResult -``` - -### HOOK: useCurrentUserAgentQuery - -currentUserAgent - -``` -TYPE: query -USAGE: useCurrentUserAgentQuery() - -INPUT: none - -OUTPUT: UseQueryResult -``` - -### HOOK: useAppPermissionsGetPaddedMaskQuery - -appPermissionsGetPaddedMask - -``` -TYPE: query -USAGE: useAppPermissionsGetPaddedMaskQuery({ mask: }) - -INPUT: - mask: BitString - -OUTPUT: UseQueryResult -``` - -### HOOK: useOrgPermissionsGetPaddedMaskQuery - -orgPermissionsGetPaddedMask - -``` -TYPE: query -USAGE: useOrgPermissionsGetPaddedMaskQuery({ mask: }) - -INPUT: - mask: BitString - -OUTPUT: UseQueryResult -``` - -### HOOK: useStepsAchievedQuery - -stepsAchieved - -``` -TYPE: query -USAGE: useStepsAchievedQuery({ vlevel: , vroleId: }) - -INPUT: - vlevel: String - vroleId: UUID - -OUTPUT: UseQueryResult -``` - -### HOOK: useRevParseQuery - -revParse - -``` -TYPE: query -USAGE: useRevParseQuery({ dbId: , storeId: , refname: }) - -INPUT: - dbId: UUID - storeId: UUID - refname: String - -OUTPUT: UseQueryResult -``` - -### HOOK: useAppPermissionsGetMaskQuery - -appPermissionsGetMask - -``` -TYPE: query -USAGE: useAppPermissionsGetMaskQuery({ ids: }) - -INPUT: - ids: [UUID] - -OUTPUT: UseQueryResult -``` - -### HOOK: useOrgPermissionsGetMaskQuery - -orgPermissionsGetMask - -``` -TYPE: query -USAGE: useOrgPermissionsGetMaskQuery({ ids: }) - -INPUT: - ids: [UUID] - -OUTPUT: UseQueryResult -``` - -### HOOK: useAppPermissionsGetMaskByNamesQuery - -appPermissionsGetMaskByNames - -``` -TYPE: query -USAGE: useAppPermissionsGetMaskByNamesQuery({ names: }) - -INPUT: - names: [String] - -OUTPUT: UseQueryResult -``` - -### HOOK: useOrgPermissionsGetMaskByNamesQuery - -orgPermissionsGetMaskByNames - -``` -TYPE: query -USAGE: useOrgPermissionsGetMaskByNamesQuery({ names: }) - -INPUT: - names: [String] - -OUTPUT: UseQueryResult -``` - -### HOOK: useAppPermissionsGetByMaskQuery - -Reads and enables pagination through a set of `AppPermission`. - -``` -TYPE: query -USAGE: useAppPermissionsGetByMaskQuery({ mask: , first: , offset: , after: }) - -INPUT: - mask: BitString - first: Int - offset: Int - after: Cursor - -OUTPUT: UseQueryResult -``` - -### HOOK: useOrgPermissionsGetByMaskQuery - -Reads and enables pagination through a set of `OrgPermission`. - -``` -TYPE: query -USAGE: useOrgPermissionsGetByMaskQuery({ mask: , first: , offset: , after: }) - -INPUT: - mask: BitString - first: Int - offset: Int - after: Cursor - -OUTPUT: UseQueryResult -``` - -### HOOK: useGetAllObjectsFromRootQuery - -Reads and enables pagination through a set of `Object`. - -``` -TYPE: query -USAGE: useGetAllObjectsFromRootQuery({ databaseId: , id: , first: , offset: , after: }) - -INPUT: - databaseId: UUID - id: UUID - first: Int - offset: Int - after: Cursor - -OUTPUT: UseQueryResult -``` - -### HOOK: useGetPathObjectsFromRootQuery - -Reads and enables pagination through a set of `Object`. - -``` -TYPE: query -USAGE: useGetPathObjectsFromRootQuery({ databaseId: , id: , path: , first: , offset: , after: }) - -INPUT: - databaseId: UUID - id: UUID - path: [String] - first: Int - offset: Int - after: Cursor - -OUTPUT: UseQueryResult -``` - -### HOOK: useGetObjectAtPathQuery - -getObjectAtPath - -``` -TYPE: query -USAGE: useGetObjectAtPathQuery({ dbId: , storeId: , path: , refname: }) - -INPUT: - dbId: UUID - storeId: UUID - path: [String] - refname: String - -OUTPUT: UseQueryResult -``` - -### HOOK: useStepsRequiredQuery - -Reads and enables pagination through a set of `AppLevelRequirement`. - -``` -TYPE: query -USAGE: useStepsRequiredQuery({ vlevel: , vroleId: , first: , offset: , after: }) - -INPUT: - vlevel: String - vroleId: UUID - first: Int - offset: Int - after: Cursor - -OUTPUT: UseQueryResult -``` - -### HOOK: useCurrentUserQuery - -currentUser - -``` -TYPE: query -USAGE: useCurrentUserQuery() - -INPUT: none - -OUTPUT: UseQueryResult -``` - -### HOOK: useSignOutMutation - -signOut - -``` -TYPE: mutation -USAGE: const { mutate } = useSignOutMutation() - mutate({ input: }) - -INPUT: - input: SignOutInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSendAccountDeletionEmailMutation - -sendAccountDeletionEmail - -``` -TYPE: mutation -USAGE: const { mutate } = useSendAccountDeletionEmailMutation() - mutate({ input: }) - -INPUT: - input: SendAccountDeletionEmailInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useCheckPasswordMutation - -checkPassword - -``` -TYPE: mutation -USAGE: const { mutate } = useCheckPasswordMutation() - mutate({ input: }) - -INPUT: - input: CheckPasswordInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSubmitInviteCodeMutation - -submitInviteCode - -``` -TYPE: mutation -USAGE: const { mutate } = useSubmitInviteCodeMutation() - mutate({ input: }) - -INPUT: - input: SubmitInviteCodeInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSubmitOrgInviteCodeMutation - -submitOrgInviteCode - -``` -TYPE: mutation -USAGE: const { mutate } = useSubmitOrgInviteCodeMutation() - mutate({ input: }) - -INPUT: - input: SubmitOrgInviteCodeInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useFreezeObjectsMutation - -freezeObjects - -``` -TYPE: mutation -USAGE: const { mutate } = useFreezeObjectsMutation() - mutate({ input: }) - -INPUT: - input: FreezeObjectsInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useInitEmptyRepoMutation - -initEmptyRepo - -``` -TYPE: mutation -USAGE: const { mutate } = useInitEmptyRepoMutation() - mutate({ input: }) - -INPUT: - input: InitEmptyRepoInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useConfirmDeleteAccountMutation - -confirmDeleteAccount - -``` -TYPE: mutation -USAGE: const { mutate } = useConfirmDeleteAccountMutation() - mutate({ input: }) - -INPUT: - input: ConfirmDeleteAccountInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSetPasswordMutation - -setPassword - -``` -TYPE: mutation -USAGE: const { mutate } = useSetPasswordMutation() - mutate({ input: }) - -INPUT: - input: SetPasswordInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useVerifyEmailMutation - -verifyEmail - -``` -TYPE: mutation -USAGE: const { mutate } = useVerifyEmailMutation() - mutate({ input: }) - -INPUT: - input: VerifyEmailInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useResetPasswordMutation - -resetPassword - -``` -TYPE: mutation -USAGE: const { mutate } = useResetPasswordMutation() - mutate({ input: }) - -INPUT: - input: ResetPasswordInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useRemoveNodeAtPathMutation - -removeNodeAtPath - -``` -TYPE: mutation -USAGE: const { mutate } = useRemoveNodeAtPathMutation() - mutate({ input: }) - -INPUT: - input: RemoveNodeAtPathInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useBootstrapUserMutation - -bootstrapUser - -``` -TYPE: mutation -USAGE: const { mutate } = useBootstrapUserMutation() - mutate({ input: }) - -INPUT: - input: BootstrapUserInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSetDataAtPathMutation - -setDataAtPath - -``` -TYPE: mutation -USAGE: const { mutate } = useSetDataAtPathMutation() - mutate({ input: }) - -INPUT: - input: SetDataAtPathInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSetPropsAndCommitMutation - -setPropsAndCommit - -``` -TYPE: mutation -USAGE: const { mutate } = useSetPropsAndCommitMutation() - mutate({ input: }) - -INPUT: - input: SetPropsAndCommitInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useProvisionDatabaseWithUserMutation - -provisionDatabaseWithUser - -``` -TYPE: mutation -USAGE: const { mutate } = useProvisionDatabaseWithUserMutation() - mutate({ input: }) - -INPUT: - input: ProvisionDatabaseWithUserInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSignInOneTimeTokenMutation - -signInOneTimeToken - -``` -TYPE: mutation -USAGE: const { mutate } = useSignInOneTimeTokenMutation() - mutate({ input: }) - -INPUT: - input: SignInOneTimeTokenInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: 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 -USAGE: const { mutate } = useCreateUserDatabaseMutation() - mutate({ input: }) - -INPUT: - input: CreateUserDatabaseInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useExtendTokenExpiresMutation - -extendTokenExpires - -``` -TYPE: mutation -USAGE: const { mutate } = useExtendTokenExpiresMutation() - mutate({ input: }) - -INPUT: - input: ExtendTokenExpiresInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSignInMutation - -signIn - -``` -TYPE: mutation -USAGE: const { mutate } = useSignInMutation() - mutate({ input: }) - -INPUT: - input: SignInInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSignUpMutation - -signUp - -``` -TYPE: mutation -USAGE: const { mutate } = useSignUpMutation() - mutate({ input: }) - -INPUT: - input: SignUpInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSetFieldOrderMutation - -setFieldOrder - -``` -TYPE: mutation -USAGE: const { mutate } = useSetFieldOrderMutation() - mutate({ input: }) - -INPUT: - input: SetFieldOrderInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useOneTimeTokenMutation - -oneTimeToken - -``` -TYPE: mutation -USAGE: const { mutate } = useOneTimeTokenMutation() - mutate({ input: }) - -INPUT: - input: OneTimeTokenInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useInsertNodeAtPathMutation - -insertNodeAtPath - -``` -TYPE: mutation -USAGE: const { mutate } = useInsertNodeAtPathMutation() - mutate({ input: }) - -INPUT: - input: InsertNodeAtPathInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useUpdateNodeAtPathMutation - -updateNodeAtPath - -``` -TYPE: mutation -USAGE: const { mutate } = useUpdateNodeAtPathMutation() - mutate({ input: }) - -INPUT: - input: UpdateNodeAtPathInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSetAndCommitMutation - -setAndCommit - -``` -TYPE: mutation -USAGE: const { mutate } = useSetAndCommitMutation() - mutate({ input: }) - -INPUT: - input: SetAndCommitInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useApplyRlsMutation - -applyRls - -``` -TYPE: mutation -USAGE: const { mutate } = useApplyRlsMutation() - mutate({ input: }) - -INPUT: - input: ApplyRlsInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useForgotPasswordMutation - -forgotPassword - -``` -TYPE: mutation -USAGE: const { mutate } = useForgotPasswordMutation() - mutate({ input: }) - -INPUT: - input: ForgotPasswordInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useSendVerificationEmailMutation - -sendVerificationEmail - -``` -TYPE: mutation -USAGE: const { mutate } = useSendVerificationEmailMutation() - mutate({ input: }) - -INPUT: - input: SendVerificationEmailInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useVerifyPasswordMutation - -verifyPassword - -``` -TYPE: mutation -USAGE: const { mutate } = useVerifyPasswordMutation() - mutate({ input: }) - -INPUT: - input: VerifyPasswordInput (required) - -OUTPUT: UseMutationResult -``` - -### HOOK: useVerifyTotpMutation - -verifyTotp - -``` -TYPE: mutation -USAGE: const { mutate } = useVerifyTotpMutation() - mutate({ input: }) - -INPUT: - input: VerifyTotpInput (required) - -OUTPUT: UseMutationResult -``` diff --git a/sdk/constructive-sdk/src/public/hooks/README.md b/sdk/constructive-sdk/src/public/hooks/README.md deleted file mode 100644 index fbc58d9cf..000000000 --- a/sdk/constructive-sdk/src/public/hooks/README.md +++ /dev/null @@ -1,3242 +0,0 @@ -# React Query Hooks - -

- -

- -> @generated by @constructive-io/graphql-codegen - DO NOT EDIT - -## 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-sdk/src/public/hooks/client.ts b/sdk/constructive-sdk/src/public/hooks/client.ts deleted file mode 100644 index 47b9aa63f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/client.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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-sdk/src/public/hooks/index.ts b/sdk/constructive-sdk/src/public/hooks/index.ts deleted file mode 100644 index f27516673..000000000 --- a/sdk/constructive-sdk/src/public/hooks/index.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Auto-generated 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-sdk/src/public/hooks/invalidation.ts b/sdk/constructive-sdk/src/public/hooks/invalidation.ts deleted file mode 100644 index 28d9e7c0e..000000000 --- a/sdk/constructive-sdk/src/public/hooks/invalidation.ts +++ /dev/null @@ -1,2431 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutation-keys.ts b/sdk/constructive-sdk/src/public/hooks/mutation-keys.ts deleted file mode 100644 index 1ec5b0f6d..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutation-keys.ts +++ /dev/null @@ -1,1144 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/index.ts b/sdk/constructive-sdk/src/public/hooks/mutations/index.ts deleted file mode 100644 index b5541e514..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/index.ts +++ /dev/null @@ -1,327 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useApplyRlsMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useApplyRlsMutation.ts deleted file mode 100644 index 615b86adb..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useApplyRlsMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useBootstrapUserMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useBootstrapUserMutation.ts deleted file mode 100644 index cf749c6d4..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useBootstrapUserMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCheckPasswordMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCheckPasswordMutation.ts deleted file mode 100644 index 36b79e2fe..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCheckPasswordMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useConfirmDeleteAccountMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useConfirmDeleteAccountMutation.ts deleted file mode 100644 index 2a430d07a..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useConfirmDeleteAccountMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateApiModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateApiModuleMutation.ts deleted file mode 100644 index a57c9d102..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateApiModuleMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateApiMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateApiMutation.ts deleted file mode 100644 index 2e5809137..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateApiMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateApiSchemaMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateApiSchemaMutation.ts deleted file mode 100644 index 59aaaa033..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateApiSchemaMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateAppAchievementMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppAchievementMutation.ts deleted file mode 100644 index b39c550bf..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppAchievementMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateAppAdminGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppAdminGrantMutation.ts deleted file mode 100644 index 7dd44401e..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppAdminGrantMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateAppGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppGrantMutation.ts deleted file mode 100644 index 0e2e4c286..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppGrantMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateAppLevelMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppLevelMutation.ts deleted file mode 100644 index 393ed2c2a..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppLevelMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateAppLevelRequirementMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppLevelRequirementMutation.ts deleted file mode 100644 index cde42cf7e..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppLevelRequirementMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateAppLimitDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppLimitDefaultMutation.ts deleted file mode 100644 index 40b24b14d..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppLimitDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateAppLimitMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppLimitMutation.ts deleted file mode 100644 index b7f7072be..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppLimitMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateAppMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppMembershipDefaultMutation.ts deleted file mode 100644 index 0a4ecf4bc..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppMembershipDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateAppMembershipMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppMembershipMutation.ts deleted file mode 100644 index fa08b65df..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppMembershipMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateAppMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppMutation.ts deleted file mode 100644 index a43fe0b18..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateAppOwnerGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppOwnerGrantMutation.ts deleted file mode 100644 index 81f12be36..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppOwnerGrantMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateAppPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppPermissionDefaultMutation.ts deleted file mode 100644 index 1f2314266..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppPermissionDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateAppPermissionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppPermissionMutation.ts deleted file mode 100644 index 73d4eceec..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppPermissionMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateAppStepMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppStepMutation.ts deleted file mode 100644 index 479dc0a3a..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAppStepMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateAstMigrationMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAstMigrationMutation.ts deleted file mode 100644 index 7f9caacb1..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAstMigrationMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateAuditLogMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAuditLogMutation.ts deleted file mode 100644 index e05ac6080..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateAuditLogMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateCheckConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateCheckConstraintMutation.ts deleted file mode 100644 index a20cc1e67..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateCheckConstraintMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateClaimedInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateClaimedInviteMutation.ts deleted file mode 100644 index a84eca95c..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateClaimedInviteMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateCommitMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateCommitMutation.ts deleted file mode 100644 index 7e803c25a..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateCommitMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateConnectedAccountMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateConnectedAccountMutation.ts deleted file mode 100644 index 0e381461b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateConnectedAccountMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateConnectedAccountsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateConnectedAccountsModuleMutation.ts deleted file mode 100644 index d87d4cfc0..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateConnectedAccountsModuleMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateCryptoAddressMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateCryptoAddressMutation.ts deleted file mode 100644 index cddfe450c..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateCryptoAddressMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateCryptoAddressesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateCryptoAddressesModuleMutation.ts deleted file mode 100644 index f1a5c8c81..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateCryptoAddressesModuleMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateCryptoAuthModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateCryptoAuthModuleMutation.ts deleted file mode 100644 index 064327266..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateCryptoAuthModuleMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateDatabaseMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateDatabaseMutation.ts deleted file mode 100644 index 4ec18e908..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateDatabaseMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateDatabaseProvisionModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateDatabaseProvisionModuleMutation.ts deleted file mode 100644 index 7192fd95a..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateDatabaseProvisionModuleMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateDefaultIdsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateDefaultIdsModuleMutation.ts deleted file mode 100644 index 58a7c6112..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateDefaultIdsModuleMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateDenormalizedTableFieldMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateDenormalizedTableFieldMutation.ts deleted file mode 100644 index 2d2d8334b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateDenormalizedTableFieldMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateDomainMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateDomainMutation.ts deleted file mode 100644 index 75ee25a3c..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateDomainMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateEmailMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateEmailMutation.ts deleted file mode 100644 index ff6741c90..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateEmailMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateEmailsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateEmailsModuleMutation.ts deleted file mode 100644 index 894488ce3..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateEmailsModuleMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateEncryptedSecretsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateEncryptedSecretsModuleMutation.ts deleted file mode 100644 index c68fbc4d6..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateEncryptedSecretsModuleMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateFieldModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateFieldModuleMutation.ts deleted file mode 100644 index e66b28b32..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateFieldModuleMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateFieldMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateFieldMutation.ts deleted file mode 100644 index a90bffd87..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateFieldMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateForeignKeyConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateForeignKeyConstraintMutation.ts deleted file mode 100644 index e7007f9c8..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateForeignKeyConstraintMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateFullTextSearchMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateFullTextSearchMutation.ts deleted file mode 100644 index ac28e0a6f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateFullTextSearchMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateGetAllRecordMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateGetAllRecordMutation.ts deleted file mode 100644 index d7761690b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateGetAllRecordMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateHierarchyModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateHierarchyModuleMutation.ts deleted file mode 100644 index 0ddc11ad7..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateHierarchyModuleMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateIndexMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateIndexMutation.ts deleted file mode 100644 index d598e78bb..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateIndexMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateInviteMutation.ts deleted file mode 100644 index 928d4f0cd..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateInviteMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateInvitesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateInvitesModuleMutation.ts deleted file mode 100644 index 6d740e5e3..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateInvitesModuleMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateLevelsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateLevelsModuleMutation.ts deleted file mode 100644 index 4f7a8d98f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateLevelsModuleMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateLimitFunctionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateLimitFunctionMutation.ts deleted file mode 100644 index fe19f6107..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateLimitFunctionMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Create mutation hook for LimitFunction - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { limitFunctionKeys } from '../query-keys'; -import { limitFunctionMutationKeys } from '../mutation-keys'; -import type { - LimitFunctionSelect, - LimitFunctionWithRelations, - CreateLimitFunctionInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - LimitFunctionSelect, - LimitFunctionWithRelations, - CreateLimitFunctionInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a LimitFunction - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateLimitFunctionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateLimitFunctionMutation( - params: { - selection: { - fields: S & LimitFunctionSelect; - } & HookStrictSelect, LimitFunctionSelect>; - } & Omit< - UseMutationOptions< - { - createLimitFunction: { - limitFunction: InferSelectResult; - }; - }, - Error, - CreateLimitFunctionInput['limitFunction'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createLimitFunction: { - limitFunction: InferSelectResult; - }; - }, - Error, - CreateLimitFunctionInput['limitFunction'] ->; -export function useCreateLimitFunctionMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: limitFunctionMutationKeys.create(), - mutationFn: (data: CreateLimitFunctionInput['limitFunction']) => - getClient() - .limitFunction.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: limitFunctionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateLimitsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateLimitsModuleMutation.ts deleted file mode 100644 index c7c2579d2..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateLimitsModuleMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateMembershipTypeMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateMembershipTypeMutation.ts deleted file mode 100644 index d8219655f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateMembershipTypeMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateMembershipTypesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateMembershipTypesModuleMutation.ts deleted file mode 100644 index f2455629c..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateMembershipTypesModuleMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateMembershipsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateMembershipsModuleMutation.ts deleted file mode 100644 index 4d9fe8861..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateMembershipsModuleMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateNodeTypeRegistryMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateNodeTypeRegistryMutation.ts deleted file mode 100644 index 584e4c995..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateNodeTypeRegistryMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateObjectMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateObjectMutation.ts deleted file mode 100644 index c9d4c9828..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateObjectMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateOrgAdminGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgAdminGrantMutation.ts deleted file mode 100644 index 00687d7da..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgAdminGrantMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateOrgClaimedInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgClaimedInviteMutation.ts deleted file mode 100644 index 4ee4b71c3..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgClaimedInviteMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateOrgGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgGrantMutation.ts deleted file mode 100644 index 391138997..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgGrantMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateOrgInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgInviteMutation.ts deleted file mode 100644 index 6d65fa995..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgInviteMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateOrgLimitDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgLimitDefaultMutation.ts deleted file mode 100644 index af559e6a2..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgLimitDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateOrgLimitMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgLimitMutation.ts deleted file mode 100644 index 33ed2f69e..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgLimitMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateOrgMemberMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgMemberMutation.ts deleted file mode 100644 index 73bbfce52..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgMemberMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts deleted file mode 100644 index 9c1290cfb..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgMembershipDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateOrgMembershipMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgMembershipMutation.ts deleted file mode 100644 index e2b7c7e9b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgMembershipMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateOrgOwnerGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgOwnerGrantMutation.ts deleted file mode 100644 index 9cec71f7f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgOwnerGrantMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts deleted file mode 100644 index da1688a0f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgPermissionDefaultMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateOrgPermissionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgPermissionMutation.ts deleted file mode 100644 index b1fd9fd3b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateOrgPermissionMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreatePermissionsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreatePermissionsModuleMutation.ts deleted file mode 100644 index 38c0b3b9b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreatePermissionsModuleMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreatePhoneNumberMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreatePhoneNumberMutation.ts deleted file mode 100644 index f0a8f239b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreatePhoneNumberMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreatePhoneNumbersModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreatePhoneNumbersModuleMutation.ts deleted file mode 100644 index 7239a2649..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreatePhoneNumbersModuleMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreatePolicyMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreatePolicyMutation.ts deleted file mode 100644 index 27702762d..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreatePolicyMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreatePrimaryKeyConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreatePrimaryKeyConstraintMutation.ts deleted file mode 100644 index 87bdac408..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreatePrimaryKeyConstraintMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateProcedureMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateProcedureMutation.ts deleted file mode 100644 index a681e7cff..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateProcedureMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Create mutation hook for Procedure - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { procedureKeys } from '../query-keys'; -import { procedureMutationKeys } from '../mutation-keys'; -import type { - ProcedureSelect, - ProcedureWithRelations, - CreateProcedureInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ProcedureSelect, - ProcedureWithRelations, - CreateProcedureInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a Procedure - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateProcedureMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateProcedureMutation( - params: { - selection: { - fields: S & ProcedureSelect; - } & HookStrictSelect, ProcedureSelect>; - } & Omit< - UseMutationOptions< - { - createProcedure: { - procedure: InferSelectResult; - }; - }, - Error, - CreateProcedureInput['procedure'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createProcedure: { - procedure: InferSelectResult; - }; - }, - Error, - CreateProcedureInput['procedure'] ->; -export function useCreateProcedureMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: procedureMutationKeys.create(), - mutationFn: (data: CreateProcedureInput['procedure']) => - getClient() - .procedure.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: procedureKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateProfilesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateProfilesModuleMutation.ts deleted file mode 100644 index 538d27637..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateProfilesModuleMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateRefMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateRefMutation.ts deleted file mode 100644 index 6f26a224e..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateRefMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateRlsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateRlsModuleMutation.ts deleted file mode 100644 index 741bf4139..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateRlsModuleMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateRoleTypeMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateRoleTypeMutation.ts deleted file mode 100644 index 212be3f45..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateRoleTypeMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateSchemaGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSchemaGrantMutation.ts deleted file mode 100644 index 80ebebb00..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSchemaGrantMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateSchemaMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSchemaMutation.ts deleted file mode 100644 index 427b850ef..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSchemaMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateSecretsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSecretsModuleMutation.ts deleted file mode 100644 index 2ef21197d..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSecretsModuleMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateSessionsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSessionsModuleMutation.ts deleted file mode 100644 index 6fd5bda75..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSessionsModuleMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateSiteMetadatumMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSiteMetadatumMutation.ts deleted file mode 100644 index 08190bb1f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSiteMetadatumMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateSiteModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSiteModuleMutation.ts deleted file mode 100644 index 89a52201a..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSiteModuleMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateSiteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSiteMutation.ts deleted file mode 100644 index 771cd48a9..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSiteMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateSiteThemeMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSiteThemeMutation.ts deleted file mode 100644 index a95aacd27..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSiteThemeMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateSqlMigrationMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSqlMigrationMutation.ts deleted file mode 100644 index 6484740a8..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateSqlMigrationMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateStoreMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateStoreMutation.ts deleted file mode 100644 index 54c3b2ab9..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateStoreMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateTableGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateTableGrantMutation.ts deleted file mode 100644 index e111ab768..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateTableGrantMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateTableModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateTableModuleMutation.ts deleted file mode 100644 index 789b377de..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateTableModuleMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateTableMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateTableMutation.ts deleted file mode 100644 index a14469fe1..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateTableMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateTableTemplateModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateTableTemplateModuleMutation.ts deleted file mode 100644 index af6255e35..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateTableTemplateModuleMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateTriggerFunctionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateTriggerFunctionMutation.ts deleted file mode 100644 index f9e47f2be..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateTriggerFunctionMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateTriggerMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateTriggerMutation.ts deleted file mode 100644 index 1a8e8a9f8..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateTriggerMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateUniqueConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateUniqueConstraintMutation.ts deleted file mode 100644 index 9dde059c6..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateUniqueConstraintMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateUserAuthModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateUserAuthModuleMutation.ts deleted file mode 100644 index edc15ead9..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateUserAuthModuleMutation.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateUserDatabaseMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateUserDatabaseMutation.ts deleted file mode 100644 index 3ac6d18c0..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateUserDatabaseMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateUserMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateUserMutation.ts deleted file mode 100644 index 0d5bfff47..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateUserMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateUsersModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateUsersModuleMutation.ts deleted file mode 100644 index bc8efbc99..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateUsersModuleMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateUuidModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateUuidModuleMutation.ts deleted file mode 100644 index feb0e549c..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateUuidModuleMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateViewGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateViewGrantMutation.ts deleted file mode 100644 index 16b37b379..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateViewGrantMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateViewMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateViewMutation.ts deleted file mode 100644 index 91e59f1e5..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateViewMutation.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateViewRuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateViewRuleMutation.ts deleted file mode 100644 index c20e74707..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateViewRuleMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useCreateViewTableMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useCreateViewTableMutation.ts deleted file mode 100644 index e042b1331..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useCreateViewTableMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteApiModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteApiModuleMutation.ts deleted file mode 100644 index 0ba69d251..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteApiModuleMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteApiMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteApiMutation.ts deleted file mode 100644 index 96bf7f0e0..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteApiMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteApiSchemaMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteApiSchemaMutation.ts deleted file mode 100644 index 85bf06041..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteApiSchemaMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteAppAchievementMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppAchievementMutation.ts deleted file mode 100644 index 73f3b0b52..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppAchievementMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteAppAdminGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppAdminGrantMutation.ts deleted file mode 100644 index 83efe201c..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppAdminGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteAppGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppGrantMutation.ts deleted file mode 100644 index 2dcc61484..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteAppLevelMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppLevelMutation.ts deleted file mode 100644 index d7d002ddb..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppLevelMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteAppLevelRequirementMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppLevelRequirementMutation.ts deleted file mode 100644 index bcb3e249f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppLevelRequirementMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteAppLimitDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppLimitDefaultMutation.ts deleted file mode 100644 index 3d8cec160..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppLimitDefaultMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteAppLimitMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppLimitMutation.ts deleted file mode 100644 index 9b3ebc52e..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppLimitMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts deleted file mode 100644 index bd2d8e77b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppMembershipDefaultMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteAppMembershipMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppMembershipMutation.ts deleted file mode 100644 index 270821ab2..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppMembershipMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteAppMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppMutation.ts deleted file mode 100644 index 9ba2f036a..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteAppOwnerGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppOwnerGrantMutation.ts deleted file mode 100644 index 037ca9d28..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppOwnerGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts deleted file mode 100644 index 1c350f3fb..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppPermissionDefaultMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteAppPermissionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppPermissionMutation.ts deleted file mode 100644 index 327b4a107..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppPermissionMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteAppStepMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppStepMutation.ts deleted file mode 100644 index f9f36baf8..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAppStepMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteAuditLogMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAuditLogMutation.ts deleted file mode 100644 index 694be08d8..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteAuditLogMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteCheckConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCheckConstraintMutation.ts deleted file mode 100644 index 8f5aa7190..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCheckConstraintMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteClaimedInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteClaimedInviteMutation.ts deleted file mode 100644 index 2c3709bd0..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteClaimedInviteMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteCommitMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCommitMutation.ts deleted file mode 100644 index 435da8423..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCommitMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteConnectedAccountMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteConnectedAccountMutation.ts deleted file mode 100644 index 29212bade..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteConnectedAccountMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteConnectedAccountsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteConnectedAccountsModuleMutation.ts deleted file mode 100644 index 8935b4ea0..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteConnectedAccountsModuleMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteCryptoAddressMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCryptoAddressMutation.ts deleted file mode 100644 index 15d7507ac..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCryptoAddressMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteCryptoAddressesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCryptoAddressesModuleMutation.ts deleted file mode 100644 index b08e20b4f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCryptoAddressesModuleMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteCryptoAuthModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCryptoAuthModuleMutation.ts deleted file mode 100644 index 2fc10c2fa..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteCryptoAuthModuleMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteDatabaseMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDatabaseMutation.ts deleted file mode 100644 index dbfb72c03..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDatabaseMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteDatabaseProvisionModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDatabaseProvisionModuleMutation.ts deleted file mode 100644 index a93386ca5..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDatabaseProvisionModuleMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteDefaultIdsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDefaultIdsModuleMutation.ts deleted file mode 100644 index 4eb6f0c89..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDefaultIdsModuleMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteDenormalizedTableFieldMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDenormalizedTableFieldMutation.ts deleted file mode 100644 index 1f8dd4bd9..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDenormalizedTableFieldMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteDomainMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDomainMutation.ts deleted file mode 100644 index 34649edce..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteDomainMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteEmailMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteEmailMutation.ts deleted file mode 100644 index 55d906a64..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteEmailMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteEmailsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteEmailsModuleMutation.ts deleted file mode 100644 index a8e0c47ca..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteEmailsModuleMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteEncryptedSecretsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteEncryptedSecretsModuleMutation.ts deleted file mode 100644 index 9177e8d37..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteEncryptedSecretsModuleMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteFieldModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteFieldModuleMutation.ts deleted file mode 100644 index 815afa5dc..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteFieldModuleMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteFieldMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteFieldMutation.ts deleted file mode 100644 index 96b9a2f6f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteFieldMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteForeignKeyConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteForeignKeyConstraintMutation.ts deleted file mode 100644 index 8c6df80cb..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteForeignKeyConstraintMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteFullTextSearchMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteFullTextSearchMutation.ts deleted file mode 100644 index ee81e5eee..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteFullTextSearchMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteHierarchyModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteHierarchyModuleMutation.ts deleted file mode 100644 index d798936eb..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteHierarchyModuleMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteIndexMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteIndexMutation.ts deleted file mode 100644 index 68af9ba2d..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteIndexMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteInviteMutation.ts deleted file mode 100644 index bf9850ba6..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteInviteMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteInvitesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteInvitesModuleMutation.ts deleted file mode 100644 index 42fa1699e..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteInvitesModuleMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteLevelsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteLevelsModuleMutation.ts deleted file mode 100644 index 7227e1f97..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteLevelsModuleMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteLimitFunctionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteLimitFunctionMutation.ts deleted file mode 100644 index 05debf225..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteLimitFunctionMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Delete mutation hook for LimitFunction - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { limitFunctionKeys } from '../query-keys'; -import { limitFunctionMutationKeys } from '../mutation-keys'; -import type { LimitFunctionSelect, LimitFunctionWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { LimitFunctionSelect, LimitFunctionWithRelations } from '../../orm/input-types'; -/** - * Mutation hook for deleting a LimitFunction with typed selection - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteLimitFunctionMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteLimitFunctionMutation( - params: { - selection: { - fields: S & LimitFunctionSelect; - } & HookStrictSelect, LimitFunctionSelect>; - } & Omit< - UseMutationOptions< - { - deleteLimitFunction: { - limitFunction: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteLimitFunction: { - limitFunction: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteLimitFunctionMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: limitFunctionMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .limitFunction.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: limitFunctionKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: limitFunctionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteLimitsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteLimitsModuleMutation.ts deleted file mode 100644 index a2eddb73b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteLimitsModuleMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteMembershipTypeMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteMembershipTypeMutation.ts deleted file mode 100644 index dbec0d9e9..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteMembershipTypeMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteMembershipTypesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteMembershipTypesModuleMutation.ts deleted file mode 100644 index 0b9ba6ef3..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteMembershipTypesModuleMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteMembershipsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteMembershipsModuleMutation.ts deleted file mode 100644 index cbba5195b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteMembershipsModuleMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts deleted file mode 100644 index a7a6c2ece..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteObjectMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteObjectMutation.ts deleted file mode 100644 index c1027ecd6..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteObjectMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteOrgAdminGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgAdminGrantMutation.ts deleted file mode 100644 index b2b62e271..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgAdminGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts deleted file mode 100644 index 267b1abfe..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgClaimedInviteMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteOrgGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgGrantMutation.ts deleted file mode 100644 index 94b80fa12..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteOrgInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgInviteMutation.ts deleted file mode 100644 index 2960aeac6..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgInviteMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts deleted file mode 100644 index a8e7bf162..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgLimitDefaultMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteOrgLimitMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgLimitMutation.ts deleted file mode 100644 index 818a3b294..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgLimitMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteOrgMemberMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgMemberMutation.ts deleted file mode 100644 index 9c7697147..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgMemberMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts deleted file mode 100644 index e5c398c57..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgMembershipDefaultMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteOrgMembershipMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgMembershipMutation.ts deleted file mode 100644 index 5108e73b9..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgMembershipMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts deleted file mode 100644 index 4700e63cd..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgOwnerGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts deleted file mode 100644 index 841805104..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgPermissionDefaultMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteOrgPermissionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgPermissionMutation.ts deleted file mode 100644 index 0792b5be9..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteOrgPermissionMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeletePermissionsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeletePermissionsModuleMutation.ts deleted file mode 100644 index bcd6060e2..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeletePermissionsModuleMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeletePhoneNumberMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeletePhoneNumberMutation.ts deleted file mode 100644 index a76ed1b26..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeletePhoneNumberMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeletePhoneNumbersModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeletePhoneNumbersModuleMutation.ts deleted file mode 100644 index 5234c3040..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeletePhoneNumbersModuleMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeletePolicyMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeletePolicyMutation.ts deleted file mode 100644 index 40ccfefbf..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeletePolicyMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeletePrimaryKeyConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeletePrimaryKeyConstraintMutation.ts deleted file mode 100644 index 758c59ca7..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeletePrimaryKeyConstraintMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteProcedureMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteProcedureMutation.ts deleted file mode 100644 index 080000ba9..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteProcedureMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Delete mutation hook for Procedure - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { procedureKeys } from '../query-keys'; -import { procedureMutationKeys } from '../mutation-keys'; -import type { ProcedureSelect, ProcedureWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { ProcedureSelect, ProcedureWithRelations } from '../../orm/input-types'; -/** - * Mutation hook for deleting a Procedure with typed selection - * - * @example - * ```tsx - * const { mutate, isPending } = useDeleteProcedureMutation({ - * selection: { fields: { id: true } }, - * }); - * - * mutate({ id: 'value-to-delete' }); - * ``` - */ -export function useDeleteProcedureMutation( - params: { - selection: { - fields: S & ProcedureSelect; - } & HookStrictSelect, ProcedureSelect>; - } & Omit< - UseMutationOptions< - { - deleteProcedure: { - procedure: InferSelectResult; - }; - }, - Error, - { - id: string; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - deleteProcedure: { - procedure: InferSelectResult; - }; - }, - Error, - { - id: string; - } ->; -export function useDeleteProcedureMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: procedureMutationKeys.all, - mutationFn: ({ id }: { id: string }) => - getClient() - .procedure.delete({ - where: { - id, - }, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.removeQueries({ - queryKey: procedureKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: procedureKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteProfilesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteProfilesModuleMutation.ts deleted file mode 100644 index 26b66b9b6..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteProfilesModuleMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteRefMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteRefMutation.ts deleted file mode 100644 index 5059da529..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteRefMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteRlsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteRlsModuleMutation.ts deleted file mode 100644 index ffd1df1f8..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteRlsModuleMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteRoleTypeMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteRoleTypeMutation.ts deleted file mode 100644 index 34495fa52..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteRoleTypeMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteSchemaGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSchemaGrantMutation.ts deleted file mode 100644 index f7e5535f9..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSchemaGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteSchemaMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSchemaMutation.ts deleted file mode 100644 index bec1dd04a..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSchemaMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteSecretsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSecretsModuleMutation.ts deleted file mode 100644 index eb7743b92..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSecretsModuleMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteSessionsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSessionsModuleMutation.ts deleted file mode 100644 index 225330732..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSessionsModuleMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteSiteMetadatumMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSiteMetadatumMutation.ts deleted file mode 100644 index 0801a13e4..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSiteMetadatumMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteSiteModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSiteModuleMutation.ts deleted file mode 100644 index da2029857..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSiteModuleMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteSiteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSiteMutation.ts deleted file mode 100644 index 619c413b6..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSiteMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteSiteThemeMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSiteThemeMutation.ts deleted file mode 100644 index e09679eae..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteSiteThemeMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteStoreMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteStoreMutation.ts deleted file mode 100644 index d78ea3bb5..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteStoreMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteTableGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTableGrantMutation.ts deleted file mode 100644 index de24465b5..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTableGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteTableModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTableModuleMutation.ts deleted file mode 100644 index 6ec2d2708..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTableModuleMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteTableMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTableMutation.ts deleted file mode 100644 index ab496db2f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTableMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteTableTemplateModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTableTemplateModuleMutation.ts deleted file mode 100644 index d80fc2f60..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTableTemplateModuleMutation.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteTriggerFunctionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTriggerFunctionMutation.ts deleted file mode 100644 index d36f5b47f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTriggerFunctionMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteTriggerMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTriggerMutation.ts deleted file mode 100644 index 8b7399942..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteTriggerMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteUniqueConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUniqueConstraintMutation.ts deleted file mode 100644 index 583e889d8..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUniqueConstraintMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteUserAuthModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUserAuthModuleMutation.ts deleted file mode 100644 index d36ff1776..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUserAuthModuleMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteUserMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUserMutation.ts deleted file mode 100644 index 77880ad09..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUserMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteUsersModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUsersModuleMutation.ts deleted file mode 100644 index 163eb549a..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUsersModuleMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteUuidModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUuidModuleMutation.ts deleted file mode 100644 index 0dc11108f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteUuidModuleMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteViewGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteViewGrantMutation.ts deleted file mode 100644 index 7f16bee8e..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteViewGrantMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteViewMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteViewMutation.ts deleted file mode 100644 index 4a51300ea..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteViewMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteViewRuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteViewRuleMutation.ts deleted file mode 100644 index b1f633bdf..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteViewRuleMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useDeleteViewTableMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteViewTableMutation.ts deleted file mode 100644 index 2c5d6fec7..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useDeleteViewTableMutation.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useExtendTokenExpiresMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useExtendTokenExpiresMutation.ts deleted file mode 100644 index d5d081a1f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useExtendTokenExpiresMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useForgotPasswordMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useForgotPasswordMutation.ts deleted file mode 100644 index a30ced386..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useForgotPasswordMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useFreezeObjectsMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useFreezeObjectsMutation.ts deleted file mode 100644 index 334bdcf31..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useFreezeObjectsMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useInitEmptyRepoMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useInitEmptyRepoMutation.ts deleted file mode 100644 index f82dc9e02..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useInitEmptyRepoMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useInsertNodeAtPathMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useInsertNodeAtPathMutation.ts deleted file mode 100644 index 9da7a1bd5..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useInsertNodeAtPathMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useOneTimeTokenMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useOneTimeTokenMutation.ts deleted file mode 100644 index 0215b7d08..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useOneTimeTokenMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useProvisionDatabaseWithUserMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useProvisionDatabaseWithUserMutation.ts deleted file mode 100644 index 10e5793db..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useProvisionDatabaseWithUserMutation.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useRemoveNodeAtPathMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useRemoveNodeAtPathMutation.ts deleted file mode 100644 index e44daf6bf..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useRemoveNodeAtPathMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useResetPasswordMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useResetPasswordMutation.ts deleted file mode 100644 index 383cb8fa3..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useResetPasswordMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useSendAccountDeletionEmailMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSendAccountDeletionEmailMutation.ts deleted file mode 100644 index 55a179118..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useSendAccountDeletionEmailMutation.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useSendVerificationEmailMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSendVerificationEmailMutation.ts deleted file mode 100644 index ea9ee0d76..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useSendVerificationEmailMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useSetAndCommitMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSetAndCommitMutation.ts deleted file mode 100644 index efbed7692..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useSetAndCommitMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useSetDataAtPathMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSetDataAtPathMutation.ts deleted file mode 100644 index 63f39667a..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useSetDataAtPathMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useSetFieldOrderMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSetFieldOrderMutation.ts deleted file mode 100644 index e24d213dd..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useSetFieldOrderMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useSetPasswordMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSetPasswordMutation.ts deleted file mode 100644 index af901aba1..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useSetPasswordMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useSetPropsAndCommitMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSetPropsAndCommitMutation.ts deleted file mode 100644 index 49e6bbcd0..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useSetPropsAndCommitMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useSignInMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSignInMutation.ts deleted file mode 100644 index ff20ed5c4..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useSignInMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useSignInOneTimeTokenMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSignInOneTimeTokenMutation.ts deleted file mode 100644 index 2485fe1a6..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useSignInOneTimeTokenMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useSignOutMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSignOutMutation.ts deleted file mode 100644 index fba4da1f5..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useSignOutMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useSignUpMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSignUpMutation.ts deleted file mode 100644 index 8dc94a896..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useSignUpMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useSubmitInviteCodeMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSubmitInviteCodeMutation.ts deleted file mode 100644 index f98317bc5..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useSubmitInviteCodeMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useSubmitOrgInviteCodeMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useSubmitOrgInviteCodeMutation.ts deleted file mode 100644 index a2e71103b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useSubmitOrgInviteCodeMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateApiModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateApiModuleMutation.ts deleted file mode 100644 index 0cbf3cb8e..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateApiModuleMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateApiMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateApiMutation.ts deleted file mode 100644 index 27a304c25..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateApiMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateApiSchemaMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateApiSchemaMutation.ts deleted file mode 100644 index 47185a7c0..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateApiSchemaMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateAppAchievementMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppAchievementMutation.ts deleted file mode 100644 index 799b7770f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppAchievementMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateAppAdminGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppAdminGrantMutation.ts deleted file mode 100644 index 9f97a4a26..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppAdminGrantMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateAppGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppGrantMutation.ts deleted file mode 100644 index fe323065c..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppGrantMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateAppLevelMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppLevelMutation.ts deleted file mode 100644 index 309666ec5..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppLevelMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateAppLevelRequirementMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppLevelRequirementMutation.ts deleted file mode 100644 index 418f3464a..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppLevelRequirementMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateAppLimitDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppLimitDefaultMutation.ts deleted file mode 100644 index e4bf58682..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppLimitDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateAppLimitMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppLimitMutation.ts deleted file mode 100644 index 673e80850..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppLimitMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts deleted file mode 100644 index c2d03af41..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppMembershipDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateAppMembershipMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppMembershipMutation.ts deleted file mode 100644 index 21a8572d7..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppMembershipMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateAppMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppMutation.ts deleted file mode 100644 index 63d62de1f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateAppOwnerGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppOwnerGrantMutation.ts deleted file mode 100644 index ec1d11eb5..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppOwnerGrantMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts deleted file mode 100644 index 9413e7ad3..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppPermissionDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateAppPermissionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppPermissionMutation.ts deleted file mode 100644 index 73effb82a..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppPermissionMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateAppStepMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppStepMutation.ts deleted file mode 100644 index 2cfe95818..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAppStepMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateAuditLogMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAuditLogMutation.ts deleted file mode 100644 index c1f3aba69..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateAuditLogMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateCheckConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCheckConstraintMutation.ts deleted file mode 100644 index 9088de037..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCheckConstraintMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateClaimedInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateClaimedInviteMutation.ts deleted file mode 100644 index 45ccdc49a..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateClaimedInviteMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateCommitMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCommitMutation.ts deleted file mode 100644 index d03e177ec..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCommitMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateConnectedAccountMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateConnectedAccountMutation.ts deleted file mode 100644 index 826dce155..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateConnectedAccountMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateConnectedAccountsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateConnectedAccountsModuleMutation.ts deleted file mode 100644 index 91acecbb4..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateConnectedAccountsModuleMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateCryptoAddressMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCryptoAddressMutation.ts deleted file mode 100644 index f1987ec6e..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCryptoAddressMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateCryptoAddressesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCryptoAddressesModuleMutation.ts deleted file mode 100644 index 192f5cf50..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCryptoAddressesModuleMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateCryptoAuthModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCryptoAuthModuleMutation.ts deleted file mode 100644 index bc53c2a60..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateCryptoAuthModuleMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateDatabaseMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDatabaseMutation.ts deleted file mode 100644 index 0f77a91ba..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDatabaseMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateDatabaseProvisionModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDatabaseProvisionModuleMutation.ts deleted file mode 100644 index c844f5426..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDatabaseProvisionModuleMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateDefaultIdsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDefaultIdsModuleMutation.ts deleted file mode 100644 index 26bd6ff0e..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDefaultIdsModuleMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateDenormalizedTableFieldMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDenormalizedTableFieldMutation.ts deleted file mode 100644 index 61e4a7bd8..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDenormalizedTableFieldMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateDomainMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDomainMutation.ts deleted file mode 100644 index d2cc9d031..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateDomainMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateEmailMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateEmailMutation.ts deleted file mode 100644 index 89c8a59da..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateEmailMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateEmailsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateEmailsModuleMutation.ts deleted file mode 100644 index bb2f31170..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateEmailsModuleMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateEncryptedSecretsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateEncryptedSecretsModuleMutation.ts deleted file mode 100644 index 9c6476ff2..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateEncryptedSecretsModuleMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateFieldModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateFieldModuleMutation.ts deleted file mode 100644 index 737225d95..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateFieldModuleMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateFieldMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateFieldMutation.ts deleted file mode 100644 index 33e20ed97..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateFieldMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateForeignKeyConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateForeignKeyConstraintMutation.ts deleted file mode 100644 index b918c3e4d..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateForeignKeyConstraintMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateFullTextSearchMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateFullTextSearchMutation.ts deleted file mode 100644 index b0e14575f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateFullTextSearchMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateHierarchyModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateHierarchyModuleMutation.ts deleted file mode 100644 index 86c709e4c..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateHierarchyModuleMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateIndexMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateIndexMutation.ts deleted file mode 100644 index 75faed6de..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateIndexMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateInviteMutation.ts deleted file mode 100644 index 819636de6..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateInviteMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateInvitesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateInvitesModuleMutation.ts deleted file mode 100644 index 93ac28817..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateInvitesModuleMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateLevelsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateLevelsModuleMutation.ts deleted file mode 100644 index 11fc05b15..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateLevelsModuleMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateLimitFunctionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateLimitFunctionMutation.ts deleted file mode 100644 index ca0f69bbb..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateLimitFunctionMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Update mutation hook for LimitFunction - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { limitFunctionKeys } from '../query-keys'; -import { limitFunctionMutationKeys } from '../mutation-keys'; -import type { - LimitFunctionSelect, - LimitFunctionWithRelations, - LimitFunctionPatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - LimitFunctionSelect, - LimitFunctionWithRelations, - LimitFunctionPatch, -} from '../../orm/input-types'; -/** - * Mutation hook for updating a LimitFunction - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateLimitFunctionMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', limitFunctionPatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateLimitFunctionMutation( - params: { - selection: { - fields: S & LimitFunctionSelect; - } & HookStrictSelect, LimitFunctionSelect>; - } & Omit< - UseMutationOptions< - { - updateLimitFunction: { - limitFunction: InferSelectResult; - }; - }, - Error, - { - id: string; - limitFunctionPatch: LimitFunctionPatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateLimitFunction: { - limitFunction: InferSelectResult; - }; - }, - Error, - { - id: string; - limitFunctionPatch: LimitFunctionPatch; - } ->; -export function useUpdateLimitFunctionMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - limitFunctionPatch: LimitFunctionPatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: limitFunctionMutationKeys.all, - mutationFn: ({ - id, - limitFunctionPatch, - }: { - id: string; - limitFunctionPatch: LimitFunctionPatch; - }) => - getClient() - .limitFunction.update({ - where: { - id, - }, - data: limitFunctionPatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: limitFunctionKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: limitFunctionKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateLimitsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateLimitsModuleMutation.ts deleted file mode 100644 index 99d8a8681..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateLimitsModuleMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateMembershipTypeMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateMembershipTypeMutation.ts deleted file mode 100644 index caee90ff0..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateMembershipTypeMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateMembershipTypesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateMembershipTypesModuleMutation.ts deleted file mode 100644 index 57c080be1..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateMembershipTypesModuleMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateMembershipsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateMembershipsModuleMutation.ts deleted file mode 100644 index 5571846e8..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateMembershipsModuleMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateNodeAtPathMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateNodeAtPathMutation.ts deleted file mode 100644 index 79e3ebe21..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateNodeAtPathMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts deleted file mode 100644 index 86d619ebb..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateObjectMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateObjectMutation.ts deleted file mode 100644 index 3c60807de..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateObjectMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateOrgAdminGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgAdminGrantMutation.ts deleted file mode 100644 index 41f8e6380..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgAdminGrantMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts deleted file mode 100644 index 8b2a21d55..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgClaimedInviteMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateOrgGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgGrantMutation.ts deleted file mode 100644 index fc612cf93..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgGrantMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateOrgInviteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgInviteMutation.ts deleted file mode 100644 index 5093adbfc..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgInviteMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts deleted file mode 100644 index 9226eadb8..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgLimitDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateOrgLimitMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgLimitMutation.ts deleted file mode 100644 index cd8f3baed..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgLimitMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateOrgMemberMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgMemberMutation.ts deleted file mode 100644 index 42f54bfc7..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgMemberMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts deleted file mode 100644 index 06b97181c..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgMembershipDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateOrgMembershipMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgMembershipMutation.ts deleted file mode 100644 index 5a8998fb2..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgMembershipMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts deleted file mode 100644 index f1704e8be..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgOwnerGrantMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts deleted file mode 100644 index b512499d2..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgPermissionDefaultMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateOrgPermissionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgPermissionMutation.ts deleted file mode 100644 index 69be765f0..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateOrgPermissionMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdatePermissionsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePermissionsModuleMutation.ts deleted file mode 100644 index de206e8b7..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePermissionsModuleMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdatePhoneNumberMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePhoneNumberMutation.ts deleted file mode 100644 index e78b8e139..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePhoneNumberMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdatePhoneNumbersModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePhoneNumbersModuleMutation.ts deleted file mode 100644 index c1250ba4f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePhoneNumbersModuleMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdatePolicyMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePolicyMutation.ts deleted file mode 100644 index 0c975e2a2..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePolicyMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdatePrimaryKeyConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePrimaryKeyConstraintMutation.ts deleted file mode 100644 index 82f94721f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdatePrimaryKeyConstraintMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateProcedureMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateProcedureMutation.ts deleted file mode 100644 index 7a4654e0e..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateProcedureMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Update mutation hook for Procedure - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { procedureKeys } from '../query-keys'; -import { procedureMutationKeys } from '../mutation-keys'; -import type { - ProcedureSelect, - ProcedureWithRelations, - ProcedurePatch, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - ProcedureSelect, - ProcedureWithRelations, - ProcedurePatch, -} from '../../orm/input-types'; -/** - * Mutation hook for updating a Procedure - * - * @example - * ```tsx - * const { mutate, isPending } = useUpdateProcedureMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ id: 'value-here', procedurePatch: { name: 'Updated' } }); - * ``` - */ -export function useUpdateProcedureMutation( - params: { - selection: { - fields: S & ProcedureSelect; - } & HookStrictSelect, ProcedureSelect>; - } & Omit< - UseMutationOptions< - { - updateProcedure: { - procedure: InferSelectResult; - }; - }, - Error, - { - id: string; - procedurePatch: ProcedurePatch; - } - >, - 'mutationFn' - > -): UseMutationResult< - { - updateProcedure: { - procedure: InferSelectResult; - }; - }, - Error, - { - id: string; - procedurePatch: ProcedurePatch; - } ->; -export function useUpdateProcedureMutation( - params: { - selection: SelectionConfig; - } & Omit< - UseMutationOptions< - any, - Error, - { - id: string; - procedurePatch: ProcedurePatch; - } - >, - 'mutationFn' - > -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: procedureMutationKeys.all, - mutationFn: ({ id, procedurePatch }: { id: string; procedurePatch: ProcedurePatch }) => - getClient() - .procedure.update({ - where: { - id, - }, - data: procedurePatch, - select: args.select, - }) - .unwrap(), - onSuccess: (_, variables) => { - queryClient.invalidateQueries({ - queryKey: procedureKeys.detail(variables.id), - }); - queryClient.invalidateQueries({ - queryKey: procedureKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateProfilesModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateProfilesModuleMutation.ts deleted file mode 100644 index dfe82354f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateProfilesModuleMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateRefMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateRefMutation.ts deleted file mode 100644 index e9b413324..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateRefMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateRlsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateRlsModuleMutation.ts deleted file mode 100644 index 27ec3409c..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateRlsModuleMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateRoleTypeMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateRoleTypeMutation.ts deleted file mode 100644 index b25b4efcb..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateRoleTypeMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateSchemaGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSchemaGrantMutation.ts deleted file mode 100644 index a09245137..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSchemaGrantMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateSchemaMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSchemaMutation.ts deleted file mode 100644 index e9567a51c..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSchemaMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateSecretsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSecretsModuleMutation.ts deleted file mode 100644 index be288cb5a..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSecretsModuleMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateSessionsModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSessionsModuleMutation.ts deleted file mode 100644 index d5aebc9f1..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSessionsModuleMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateSiteMetadatumMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSiteMetadatumMutation.ts deleted file mode 100644 index ff095193b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSiteMetadatumMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateSiteModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSiteModuleMutation.ts deleted file mode 100644 index bad5e2c14..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSiteModuleMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateSiteMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSiteMutation.ts deleted file mode 100644 index e0f36e311..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSiteMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateSiteThemeMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSiteThemeMutation.ts deleted file mode 100644 index 9f98fc641..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateSiteThemeMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateStoreMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateStoreMutation.ts deleted file mode 100644 index 8ddedfd0a..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateStoreMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateTableGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTableGrantMutation.ts deleted file mode 100644 index c88b15da6..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTableGrantMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateTableModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTableModuleMutation.ts deleted file mode 100644 index cdce5fcf2..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTableModuleMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateTableMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTableMutation.ts deleted file mode 100644 index 8c4039175..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTableMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateTableTemplateModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTableTemplateModuleMutation.ts deleted file mode 100644 index 8d4b9f9b6..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTableTemplateModuleMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateTriggerFunctionMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTriggerFunctionMutation.ts deleted file mode 100644 index 8f7beae21..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTriggerFunctionMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateTriggerMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTriggerMutation.ts deleted file mode 100644 index 94b2f3677..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateTriggerMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateUniqueConstraintMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUniqueConstraintMutation.ts deleted file mode 100644 index 76e118568..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUniqueConstraintMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateUserAuthModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUserAuthModuleMutation.ts deleted file mode 100644 index c07887316..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUserAuthModuleMutation.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateUserMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUserMutation.ts deleted file mode 100644 index d1ab02501..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUserMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateUsersModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUsersModuleMutation.ts deleted file mode 100644 index b3ce4f6bd..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUsersModuleMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateUuidModuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUuidModuleMutation.ts deleted file mode 100644 index d567d4730..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateUuidModuleMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateViewGrantMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateViewGrantMutation.ts deleted file mode 100644 index a8db2ef12..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateViewGrantMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateViewMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateViewMutation.ts deleted file mode 100644 index 2d396a059..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateViewMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateViewRuleMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateViewRuleMutation.ts deleted file mode 100644 index 6af2f784c..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateViewRuleMutation.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useUpdateViewTableMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateViewTableMutation.ts deleted file mode 100644 index 4dd3f2649..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useUpdateViewTableMutation.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useVerifyEmailMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useVerifyEmailMutation.ts deleted file mode 100644 index 6103a9bc1..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useVerifyEmailMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useVerifyPasswordMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useVerifyPasswordMutation.ts deleted file mode 100644 index 0cd31b8f3..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useVerifyPasswordMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/public/hooks/mutations/useVerifyTotpMutation.ts b/sdk/constructive-sdk/src/public/hooks/mutations/useVerifyTotpMutation.ts deleted file mode 100644 index 418d599a7..000000000 --- a/sdk/constructive-sdk/src/public/hooks/mutations/useVerifyTotpMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/index.ts b/sdk/constructive-sdk/src/public/hooks/queries/index.ts deleted file mode 100644 index dc028e7a2..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/index.ts +++ /dev/null @@ -1,220 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useApiModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useApiModuleQuery.ts deleted file mode 100644 index feea7a029..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useApiModuleQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useApiModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useApiModulesQuery.ts deleted file mode 100644 index 29071cbfb..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useApiModulesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useApiQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useApiQuery.ts deleted file mode 100644 index 090b98750..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useApiQuery.ts +++ /dev/null @@ -1,135 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useApiSchemaQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useApiSchemaQuery.ts deleted file mode 100644 index 451fb0299..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useApiSchemaQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useApiSchemasQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useApiSchemasQuery.ts deleted file mode 100644 index 56efdb59a..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useApiSchemasQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useApisQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useApisQuery.ts deleted file mode 100644 index b3fa3b5bd..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useApisQuery.ts +++ /dev/null @@ -1,129 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppAchievementQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppAchievementQuery.ts deleted file mode 100644 index 136d30313..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppAchievementQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppAchievementsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppAchievementsQuery.ts deleted file mode 100644 index fb905cd4e..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppAchievementsQuery.ts +++ /dev/null @@ -1,159 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppAdminGrantQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppAdminGrantQuery.ts deleted file mode 100644 index d010f7876..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppAdminGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppAdminGrantsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppAdminGrantsQuery.ts deleted file mode 100644 index eb47436de..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppAdminGrantsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppGrantQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppGrantQuery.ts deleted file mode 100644 index a730510c7..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppGrantsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppGrantsQuery.ts deleted file mode 100644 index cf20fe3c6..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppGrantsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppLevelQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppLevelQuery.ts deleted file mode 100644 index 0c550dd44..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppLevelQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppLevelRequirementQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppLevelRequirementQuery.ts deleted file mode 100644 index 03271277e..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppLevelRequirementQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppLevelRequirementsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppLevelRequirementsQuery.ts deleted file mode 100644 index f085058b5..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppLevelRequirementsQuery.ts +++ /dev/null @@ -1,174 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppLevelsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppLevelsQuery.ts deleted file mode 100644 index 39c9b44bc..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppLevelsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppLimitDefaultQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppLimitDefaultQuery.ts deleted file mode 100644 index c68c8c7ca..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppLimitDefaultQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppLimitDefaultsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppLimitDefaultsQuery.ts deleted file mode 100644 index 8f702ecb1..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppLimitDefaultsQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppLimitQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppLimitQuery.ts deleted file mode 100644 index eb7beb27f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppLimitQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppLimitsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppLimitsQuery.ts deleted file mode 100644 index 280fd25e8..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppLimitsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppMembershipDefaultQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppMembershipDefaultQuery.ts deleted file mode 100644 index b34f50fc2..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppMembershipDefaultQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppMembershipDefaultsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppMembershipDefaultsQuery.ts deleted file mode 100644 index bda74e8ba..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppMembershipDefaultsQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppMembershipQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppMembershipQuery.ts deleted file mode 100644 index 5cd832890..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppMembershipQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppMembershipsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppMembershipsQuery.ts deleted file mode 100644 index 714e4372b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppMembershipsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppOwnerGrantQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppOwnerGrantQuery.ts deleted file mode 100644 index 49fcb6506..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppOwnerGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppOwnerGrantsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppOwnerGrantsQuery.ts deleted file mode 100644 index 25a312bcc..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppOwnerGrantsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppPermissionDefaultQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionDefaultQuery.ts deleted file mode 100644 index 47eb66e64..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionDefaultQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppPermissionDefaultsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionDefaultsQuery.ts deleted file mode 100644 index 21414a9fb..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionDefaultsQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppPermissionQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionQuery.ts deleted file mode 100644 index 37a00c5e9..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppPermissionsGetByMaskQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsGetByMaskQuery.ts deleted file mode 100644 index 78774ab69..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsGetByMaskQuery.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts deleted file mode 100644 index cbfe1fad8..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsGetMaskByNamesQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppPermissionsGetMaskQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsGetMaskQuery.ts deleted file mode 100644 index b1e3289da..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsGetMaskQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts deleted file mode 100644 index cb504f810..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsGetPaddedMaskQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppPermissionsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsQuery.ts deleted file mode 100644 index f44f4e105..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppPermissionsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppQuery.ts deleted file mode 100644 index 517440db4..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppQuery.ts +++ /dev/null @@ -1,135 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppStepQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppStepQuery.ts deleted file mode 100644 index 7ccfc9884..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppStepQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppStepsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppStepsQuery.ts deleted file mode 100644 index b6f7d90d8..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppStepsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAppsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAppsQuery.ts deleted file mode 100644 index 34c802258..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAppsQuery.ts +++ /dev/null @@ -1,129 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAstMigrationQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAstMigrationQuery.ts deleted file mode 100644 index 7360593a5..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAstMigrationQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAstMigrationsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAstMigrationsQuery.ts deleted file mode 100644 index d2f381296..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAstMigrationsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAuditLogQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAuditLogQuery.ts deleted file mode 100644 index 99af2d7fe..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAuditLogQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useAuditLogsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useAuditLogsQuery.ts deleted file mode 100644 index 2fd0f9384..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useAuditLogsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useCheckConstraintQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCheckConstraintQuery.ts deleted file mode 100644 index daedfa56d..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useCheckConstraintQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useCheckConstraintsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCheckConstraintsQuery.ts deleted file mode 100644 index 8a3d4277b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useCheckConstraintsQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useClaimedInviteQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useClaimedInviteQuery.ts deleted file mode 100644 index e74f389c7..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useClaimedInviteQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useClaimedInvitesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useClaimedInvitesQuery.ts deleted file mode 100644 index 9373984d9..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useClaimedInvitesQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useCommitQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCommitQuery.ts deleted file mode 100644 index 99bfe6e3c..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useCommitQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useCommitsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCommitsQuery.ts deleted file mode 100644 index 1ec69f698..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useCommitsQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useConnectedAccountQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useConnectedAccountQuery.ts deleted file mode 100644 index 21a88edf9..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useConnectedAccountQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useConnectedAccountsModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useConnectedAccountsModuleQuery.ts deleted file mode 100644 index da1221e42..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useConnectedAccountsModuleQuery.ts +++ /dev/null @@ -1,146 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useConnectedAccountsModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useConnectedAccountsModulesQuery.ts deleted file mode 100644 index 61289bfb3..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useConnectedAccountsModulesQuery.ts +++ /dev/null @@ -1,182 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useConnectedAccountsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useConnectedAccountsQuery.ts deleted file mode 100644 index 326e1b80c..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useConnectedAccountsQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useCryptoAddressQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCryptoAddressQuery.ts deleted file mode 100644 index cc9c73a90..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useCryptoAddressQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useCryptoAddressesModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCryptoAddressesModuleQuery.ts deleted file mode 100644 index 941500402..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useCryptoAddressesModuleQuery.ts +++ /dev/null @@ -1,146 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useCryptoAddressesModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCryptoAddressesModulesQuery.ts deleted file mode 100644 index 7ecdd864e..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useCryptoAddressesModulesQuery.ts +++ /dev/null @@ -1,180 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useCryptoAddressesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCryptoAddressesQuery.ts deleted file mode 100644 index 33cafeede..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useCryptoAddressesQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useCryptoAuthModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCryptoAuthModuleQuery.ts deleted file mode 100644 index 48e2b561b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useCryptoAuthModuleQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useCryptoAuthModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCryptoAuthModulesQuery.ts deleted file mode 100644 index 72f8f5da8..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useCryptoAuthModulesQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useCurrentIpAddressQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCurrentIpAddressQuery.ts deleted file mode 100644 index 525306e3b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useCurrentIpAddressQuery.ts +++ /dev/null @@ -1,90 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useCurrentUserAgentQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCurrentUserAgentQuery.ts deleted file mode 100644 index 5a9c544d9..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useCurrentUserAgentQuery.ts +++ /dev/null @@ -1,90 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useCurrentUserIdQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCurrentUserIdQuery.ts deleted file mode 100644 index 5f65326cc..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useCurrentUserIdQuery.ts +++ /dev/null @@ -1,90 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useCurrentUserQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useCurrentUserQuery.ts deleted file mode 100644 index 0bc463f03..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useCurrentUserQuery.ts +++ /dev/null @@ -1,125 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useDatabaseProvisionModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useDatabaseProvisionModuleQuery.ts deleted file mode 100644 index 0899cb9b3..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useDatabaseProvisionModuleQuery.ts +++ /dev/null @@ -1,146 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useDatabaseProvisionModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useDatabaseProvisionModulesQuery.ts deleted file mode 100644 index 7c1c21c87..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useDatabaseProvisionModulesQuery.ts +++ /dev/null @@ -1,182 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useDatabaseQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useDatabaseQuery.ts deleted file mode 100644 index 79fc769b6..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useDatabaseQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useDatabasesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useDatabasesQuery.ts deleted file mode 100644 index c45a9af99..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useDatabasesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useDefaultIdsModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useDefaultIdsModuleQuery.ts deleted file mode 100644 index ef5f72f46..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useDefaultIdsModuleQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useDefaultIdsModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useDefaultIdsModulesQuery.ts deleted file mode 100644 index f6c5a2598..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useDefaultIdsModulesQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useDenormalizedTableFieldQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useDenormalizedTableFieldQuery.ts deleted file mode 100644 index e5603b4cc..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useDenormalizedTableFieldQuery.ts +++ /dev/null @@ -1,146 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useDenormalizedTableFieldsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useDenormalizedTableFieldsQuery.ts deleted file mode 100644 index d83bc9487..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useDenormalizedTableFieldsQuery.ts +++ /dev/null @@ -1,180 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useDomainQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useDomainQuery.ts deleted file mode 100644 index ca7e69348..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useDomainQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useDomainsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useDomainsQuery.ts deleted file mode 100644 index 02804c8fb..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useDomainsQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useEmailQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useEmailQuery.ts deleted file mode 100644 index d954e6328..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useEmailQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useEmailsModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useEmailsModuleQuery.ts deleted file mode 100644 index 8a20f5371..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useEmailsModuleQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useEmailsModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useEmailsModulesQuery.ts deleted file mode 100644 index d14bbb8d6..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useEmailsModulesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useEmailsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useEmailsQuery.ts deleted file mode 100644 index 1dca30b06..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useEmailsQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useEncryptedSecretsModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useEncryptedSecretsModuleQuery.ts deleted file mode 100644 index 82f923374..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useEncryptedSecretsModuleQuery.ts +++ /dev/null @@ -1,146 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useEncryptedSecretsModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useEncryptedSecretsModulesQuery.ts deleted file mode 100644 index c1f7bab93..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useEncryptedSecretsModulesQuery.ts +++ /dev/null @@ -1,180 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useFieldModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useFieldModuleQuery.ts deleted file mode 100644 index ed460cca9..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useFieldModuleQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useFieldModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useFieldModulesQuery.ts deleted file mode 100644 index 161146945..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useFieldModulesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useFieldQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useFieldQuery.ts deleted file mode 100644 index 3227d14eb..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useFieldQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useFieldsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useFieldsQuery.ts deleted file mode 100644 index 045808747..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useFieldsQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useForeignKeyConstraintQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useForeignKeyConstraintQuery.ts deleted file mode 100644 index 54dc67c50..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useForeignKeyConstraintQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useForeignKeyConstraintsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useForeignKeyConstraintsQuery.ts deleted file mode 100644 index 65b22f054..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useForeignKeyConstraintsQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useFullTextSearchQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useFullTextSearchQuery.ts deleted file mode 100644 index 2f1b7d54d..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useFullTextSearchQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useFullTextSearchesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useFullTextSearchesQuery.ts deleted file mode 100644 index 8c0d5db25..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useFullTextSearchesQuery.ts +++ /dev/null @@ -1,159 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useGetAllObjectsFromRootQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useGetAllObjectsFromRootQuery.ts deleted file mode 100644 index 250ee6c18..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useGetAllObjectsFromRootQuery.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useGetAllQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useGetAllQuery.ts deleted file mode 100644 index fa74ed4aa..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useGetAllQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useGetObjectAtPathQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useGetObjectAtPathQuery.ts deleted file mode 100644 index f36831e83..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useGetObjectAtPathQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useGetPathObjectsFromRootQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useGetPathObjectsFromRootQuery.ts deleted file mode 100644 index 32bb021f8..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useGetPathObjectsFromRootQuery.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useHierarchyModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useHierarchyModuleQuery.ts deleted file mode 100644 index f391086c7..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useHierarchyModuleQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useHierarchyModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useHierarchyModulesQuery.ts deleted file mode 100644 index 48939bd78..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useHierarchyModulesQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useIndexQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useIndexQuery.ts deleted file mode 100644 index c0bc193ca..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useIndexQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useIndicesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useIndicesQuery.ts deleted file mode 100644 index 342fc8d52..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useIndicesQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useInviteQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useInviteQuery.ts deleted file mode 100644 index 51db01afb..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useInviteQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useInvitesModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useInvitesModuleQuery.ts deleted file mode 100644 index 8fac4ad30..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useInvitesModuleQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useInvitesModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useInvitesModulesQuery.ts deleted file mode 100644 index ea3a6077f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useInvitesModulesQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useInvitesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useInvitesQuery.ts deleted file mode 100644 index 19a1fd3b1..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useInvitesQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useLevelsModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useLevelsModuleQuery.ts deleted file mode 100644 index 8088cff8f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useLevelsModuleQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useLevelsModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useLevelsModulesQuery.ts deleted file mode 100644 index 7b55ec26b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useLevelsModulesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useLimitFunctionQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useLimitFunctionQuery.ts deleted file mode 100644 index 6d7bed87d..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useLimitFunctionQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Single item query hook for LimitFunction - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { limitFunctionKeys } from '../query-keys'; -import type { LimitFunctionSelect, LimitFunctionWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { LimitFunctionSelect, LimitFunctionWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const limitFunctionQueryKey = limitFunctionKeys.detail; -/** - * Query hook for fetching a single LimitFunction - * - * @example - * ```tsx - * const { data, isLoading } = useLimitFunctionQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useLimitFunctionQuery< - S extends LimitFunctionSelect, - TData = { - limitFunction: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, LimitFunctionSelect>; - } & Omit< - UseQueryOptions< - { - limitFunction: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useLimitFunctionQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: limitFunctionKeys.detail(params.id), - queryFn: () => - getClient() - .limitFunction.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Fetch a single LimitFunction without React hooks - * - * @example - * ```ts - * const data = await fetchLimitFunctionQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchLimitFunctionQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, LimitFunctionSelect>; -}): Promise<{ - limitFunction: InferSelectResult | null; -}>; -export async function fetchLimitFunctionQuery(params: { - id: string; - selection: SelectionConfig; -}) { - const args = buildSelectionArgs(params.selection); - return getClient() - .limitFunction.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Prefetch a single LimitFunction for SSR or cache warming - * - * @example - * ```ts - * await prefetchLimitFunctionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchLimitFunctionQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, LimitFunctionSelect>; - } -): Promise; -export async function prefetchLimitFunctionQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: limitFunctionKeys.detail(params.id), - queryFn: () => - getClient() - .limitFunction.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-sdk/src/public/hooks/queries/useLimitFunctionsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useLimitFunctionsQuery.ts deleted file mode 100644 index a6b16f109..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useLimitFunctionsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * List query hook for LimitFunction - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { limitFunctionKeys } from '../query-keys'; -import type { - LimitFunctionSelect, - LimitFunctionWithRelations, - LimitFunctionFilter, - LimitFunctionOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - LimitFunctionSelect, - LimitFunctionWithRelations, - LimitFunctionFilter, - LimitFunctionOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const limitFunctionsQueryKey = limitFunctionKeys.list; -/** - * Query hook for fetching LimitFunction list - * - * @example - * ```tsx - * const { data, isLoading } = useLimitFunctionsQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useLimitFunctionsQuery< - S extends LimitFunctionSelect, - TData = { - limitFunctions: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, LimitFunctionSelect>; - } & Omit< - UseQueryOptions< - { - limitFunctions: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useLimitFunctionsQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs< - LimitFunctionSelect, - LimitFunctionFilter, - LimitFunctionOrderBy - >(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: limitFunctionKeys.list(args), - queryFn: () => getClient().limitFunction.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch LimitFunction list without React hooks - * - * @example - * ```ts - * const data = await fetchLimitFunctionsQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchLimitFunctionsQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, LimitFunctionSelect>; -}): Promise<{ - limitFunctions: ConnectionResult>; -}>; -export async function fetchLimitFunctionsQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs< - LimitFunctionSelect, - LimitFunctionFilter, - LimitFunctionOrderBy - >(params.selection); - return getClient().limitFunction.findMany(args).unwrap(); -} -/** - * Prefetch LimitFunction list for SSR or cache warming - * - * @example - * ```ts - * await prefetchLimitFunctionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchLimitFunctionsQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, LimitFunctionSelect>; - } -): Promise; -export async function prefetchLimitFunctionsQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs< - LimitFunctionSelect, - LimitFunctionFilter, - LimitFunctionOrderBy - >(params.selection); - await queryClient.prefetchQuery({ - queryKey: limitFunctionKeys.list(args), - queryFn: () => getClient().limitFunction.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-sdk/src/public/hooks/queries/useLimitsModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useLimitsModuleQuery.ts deleted file mode 100644 index e11b2489e..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useLimitsModuleQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useLimitsModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useLimitsModulesQuery.ts deleted file mode 100644 index fa325da6f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useLimitsModulesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useMembershipTypeQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useMembershipTypeQuery.ts deleted file mode 100644 index c8d749048..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useMembershipTypeQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useMembershipTypesModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useMembershipTypesModuleQuery.ts deleted file mode 100644 index 239bb6ee9..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useMembershipTypesModuleQuery.ts +++ /dev/null @@ -1,146 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useMembershipTypesModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useMembershipTypesModulesQuery.ts deleted file mode 100644 index ed17a6b5d..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useMembershipTypesModulesQuery.ts +++ /dev/null @@ -1,180 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useMembershipTypesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useMembershipTypesQuery.ts deleted file mode 100644 index c0f5b68c9..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useMembershipTypesQuery.ts +++ /dev/null @@ -1,159 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useMembershipsModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useMembershipsModuleQuery.ts deleted file mode 100644 index dec53546c..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useMembershipsModuleQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useMembershipsModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useMembershipsModulesQuery.ts deleted file mode 100644 index 13e9830a5..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useMembershipsModulesQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useNodeTypeRegistriesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useNodeTypeRegistriesQuery.ts deleted file mode 100644 index 1a6d70d89..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useNodeTypeRegistriesQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useNodeTypeRegistryQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useNodeTypeRegistryQuery.ts deleted file mode 100644 index ed4f7659b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useNodeTypeRegistryQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useObjectQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useObjectQuery.ts deleted file mode 100644 index a846ce36d..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useObjectQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useObjectsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useObjectsQuery.ts deleted file mode 100644 index 963b611ad..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useObjectsQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgAdminGrantQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgAdminGrantQuery.ts deleted file mode 100644 index a4f507c14..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgAdminGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgAdminGrantsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgAdminGrantsQuery.ts deleted file mode 100644 index e3ce559b3..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgAdminGrantsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgClaimedInviteQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgClaimedInviteQuery.ts deleted file mode 100644 index 42ac5f45a..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgClaimedInviteQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgClaimedInvitesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgClaimedInvitesQuery.ts deleted file mode 100644 index 965828b20..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgClaimedInvitesQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgGrantQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgGrantQuery.ts deleted file mode 100644 index 14ccf29ec..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgGrantsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgGrantsQuery.ts deleted file mode 100644 index 8f1ddc2ab..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgGrantsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgInviteQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgInviteQuery.ts deleted file mode 100644 index d6c2f623f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgInviteQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgInvitesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgInvitesQuery.ts deleted file mode 100644 index baaef3936..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgInvitesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgLimitDefaultQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgLimitDefaultQuery.ts deleted file mode 100644 index 695d1eff9..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgLimitDefaultQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgLimitDefaultsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgLimitDefaultsQuery.ts deleted file mode 100644 index fae82e41b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgLimitDefaultsQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgLimitQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgLimitQuery.ts deleted file mode 100644 index db061397b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgLimitQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgLimitsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgLimitsQuery.ts deleted file mode 100644 index 032866dfb..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgLimitsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgMemberQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgMemberQuery.ts deleted file mode 100644 index aa4257559..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgMemberQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgMembersQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgMembersQuery.ts deleted file mode 100644 index 651d52afb..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgMembersQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgMembershipDefaultQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgMembershipDefaultQuery.ts deleted file mode 100644 index 47264e0a5..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgMembershipDefaultQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgMembershipDefaultsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgMembershipDefaultsQuery.ts deleted file mode 100644 index 8cb20caae..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgMembershipDefaultsQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgMembershipQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgMembershipQuery.ts deleted file mode 100644 index ec1c49d75..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgMembershipQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgMembershipsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgMembershipsQuery.ts deleted file mode 100644 index cde182a7b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgMembershipsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgOwnerGrantQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgOwnerGrantQuery.ts deleted file mode 100644 index 9a0b0c9df..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgOwnerGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgOwnerGrantsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgOwnerGrantsQuery.ts deleted file mode 100644 index 315d1cc57..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgOwnerGrantsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgPermissionDefaultQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionDefaultQuery.ts deleted file mode 100644 index 3f324b798..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionDefaultQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgPermissionDefaultsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionDefaultsQuery.ts deleted file mode 100644 index 021e73f1c..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionDefaultsQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgPermissionQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionQuery.ts deleted file mode 100644 index 3d28f9542..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgPermissionsGetByMaskQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsGetByMaskQuery.ts deleted file mode 100644 index 7410e3b04..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsGetByMaskQuery.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts deleted file mode 100644 index 99199bcee..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsGetMaskByNamesQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgPermissionsGetMaskQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsGetMaskQuery.ts deleted file mode 100644 index dad45181b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsGetMaskQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts deleted file mode 100644 index 4b4f80e72..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsGetPaddedMaskQuery.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useOrgPermissionsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsQuery.ts deleted file mode 100644 index 3e48264a6..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useOrgPermissionsQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/usePermissionsModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/usePermissionsModuleQuery.ts deleted file mode 100644 index 736736bbe..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/usePermissionsModuleQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/usePermissionsModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/usePermissionsModulesQuery.ts deleted file mode 100644 index ccfc68c12..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/usePermissionsModulesQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/usePhoneNumberQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/usePhoneNumberQuery.ts deleted file mode 100644 index 7c7f6a47d..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/usePhoneNumberQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/usePhoneNumbersModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/usePhoneNumbersModuleQuery.ts deleted file mode 100644 index e92d5458d..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/usePhoneNumbersModuleQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/usePhoneNumbersModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/usePhoneNumbersModulesQuery.ts deleted file mode 100644 index 76977ab6b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/usePhoneNumbersModulesQuery.ts +++ /dev/null @@ -1,171 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/usePhoneNumbersQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/usePhoneNumbersQuery.ts deleted file mode 100644 index 3282244e1..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/usePhoneNumbersQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/usePoliciesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/usePoliciesQuery.ts deleted file mode 100644 index 1fb836810..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/usePoliciesQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/usePolicyQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/usePolicyQuery.ts deleted file mode 100644 index b2639d62f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/usePolicyQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/usePrimaryKeyConstraintQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/usePrimaryKeyConstraintQuery.ts deleted file mode 100644 index 5176f8f9f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/usePrimaryKeyConstraintQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/usePrimaryKeyConstraintsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/usePrimaryKeyConstraintsQuery.ts deleted file mode 100644 index 6691abe29..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/usePrimaryKeyConstraintsQuery.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useProcedureQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useProcedureQuery.ts deleted file mode 100644 index 17afb7969..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useProcedureQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Single item query hook for Procedure - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { procedureKeys } from '../query-keys'; -import type { ProcedureSelect, ProcedureWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { ProcedureSelect, ProcedureWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const procedureQueryKey = procedureKeys.detail; -/** - * Query hook for fetching a single Procedure - * - * @example - * ```tsx - * const { data, isLoading } = useProcedureQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useProcedureQuery< - S extends ProcedureSelect, - TData = { - procedure: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, ProcedureSelect>; - } & Omit< - UseQueryOptions< - { - procedure: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useProcedureQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: procedureKeys.detail(params.id), - queryFn: () => - getClient() - .procedure.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Fetch a single Procedure without React hooks - * - * @example - * ```ts - * const data = await fetchProcedureQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchProcedureQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, ProcedureSelect>; -}): Promise<{ - procedure: InferSelectResult | null; -}>; -export async function fetchProcedureQuery(params: { - id: string; - selection: SelectionConfig; -}) { - const args = buildSelectionArgs(params.selection); - return getClient() - .procedure.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Prefetch a single Procedure for SSR or cache warming - * - * @example - * ```ts - * await prefetchProcedureQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchProcedureQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, ProcedureSelect>; - } -): Promise; -export async function prefetchProcedureQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: procedureKeys.detail(params.id), - queryFn: () => - getClient() - .procedure.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-sdk/src/public/hooks/queries/useProceduresQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useProceduresQuery.ts deleted file mode 100644 index fbf5a1659..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useProceduresQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * List query hook for Procedure - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { procedureKeys } from '../query-keys'; -import type { - ProcedureSelect, - ProcedureWithRelations, - ProcedureFilter, - ProcedureOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - ProcedureSelect, - ProcedureWithRelations, - ProcedureFilter, - ProcedureOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const proceduresQueryKey = procedureKeys.list; -/** - * Query hook for fetching Procedure list - * - * @example - * ```tsx - * const { data, isLoading } = useProceduresQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useProceduresQuery< - S extends ProcedureSelect, - TData = { - procedures: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, ProcedureSelect>; - } & Omit< - UseQueryOptions< - { - procedures: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useProceduresQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: procedureKeys.list(args), - queryFn: () => getClient().procedure.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch Procedure list without React hooks - * - * @example - * ```ts - * const data = await fetchProceduresQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchProceduresQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, ProcedureSelect>; -}): Promise<{ - procedures: ConnectionResult>; -}>; -export async function fetchProceduresQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().procedure.findMany(args).unwrap(); -} -/** - * Prefetch Procedure list for SSR or cache warming - * - * @example - * ```ts - * await prefetchProceduresQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchProceduresQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, ProcedureSelect>; - } -): Promise; -export async function prefetchProceduresQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: procedureKeys.list(args), - queryFn: () => getClient().procedure.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-sdk/src/public/hooks/queries/useProfilesModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useProfilesModuleQuery.ts deleted file mode 100644 index 1a19cd9f5..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useProfilesModuleQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useProfilesModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useProfilesModulesQuery.ts deleted file mode 100644 index 2d008ec0c..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useProfilesModulesQuery.ts +++ /dev/null @@ -1,159 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useRefQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useRefQuery.ts deleted file mode 100644 index b07bd3470..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useRefQuery.ts +++ /dev/null @@ -1,135 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useRefsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useRefsQuery.ts deleted file mode 100644 index fbe141158..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useRefsQuery.ts +++ /dev/null @@ -1,129 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useRevParseQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useRevParseQuery.ts deleted file mode 100644 index d8b6226fb..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useRevParseQuery.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useRlsModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useRlsModuleQuery.ts deleted file mode 100644 index de4ac49a2..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useRlsModuleQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useRlsModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useRlsModulesQuery.ts deleted file mode 100644 index 7fb53b5bd..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useRlsModulesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useRoleTypeQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useRoleTypeQuery.ts deleted file mode 100644 index 6320e76b4..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useRoleTypeQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useRoleTypesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useRoleTypesQuery.ts deleted file mode 100644 index 9819ceed5..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useRoleTypesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useSchemaGrantQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSchemaGrantQuery.ts deleted file mode 100644 index 864c914a5..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useSchemaGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useSchemaGrantsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSchemaGrantsQuery.ts deleted file mode 100644 index 2f90e0bc5..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useSchemaGrantsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useSchemaQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSchemaQuery.ts deleted file mode 100644 index d49b168e0..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useSchemaQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useSchemasQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSchemasQuery.ts deleted file mode 100644 index cdb879719..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useSchemasQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useSecretsModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSecretsModuleQuery.ts deleted file mode 100644 index 7c5e20f5e..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useSecretsModuleQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useSecretsModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSecretsModulesQuery.ts deleted file mode 100644 index 3cc607fb7..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useSecretsModulesQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useSessionsModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSessionsModuleQuery.ts deleted file mode 100644 index db794bac8..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useSessionsModuleQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useSessionsModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSessionsModulesQuery.ts deleted file mode 100644 index ec1ee6c40..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useSessionsModulesQuery.ts +++ /dev/null @@ -1,159 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useSiteMetadataQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSiteMetadataQuery.ts deleted file mode 100644 index 7912d0be4..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useSiteMetadataQuery.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useSiteMetadatumQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSiteMetadatumQuery.ts deleted file mode 100644 index 979351686..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useSiteMetadatumQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useSiteModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSiteModuleQuery.ts deleted file mode 100644 index 5d0a71507..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useSiteModuleQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useSiteModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSiteModulesQuery.ts deleted file mode 100644 index 8101108d7..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useSiteModulesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useSiteQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSiteQuery.ts deleted file mode 100644 index 6dfecd120..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useSiteQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useSiteThemeQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSiteThemeQuery.ts deleted file mode 100644 index 19ea2251f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useSiteThemeQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useSiteThemesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSiteThemesQuery.ts deleted file mode 100644 index eec19b9e2..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useSiteThemesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useSitesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSitesQuery.ts deleted file mode 100644 index f159801f4..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useSitesQuery.ts +++ /dev/null @@ -1,129 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useSqlMigrationQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSqlMigrationQuery.ts deleted file mode 100644 index 9d46640a9..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useSqlMigrationQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useSqlMigrationsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useSqlMigrationsQuery.ts deleted file mode 100644 index 6a1181d9b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useSqlMigrationsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useStepsAchievedQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useStepsAchievedQuery.ts deleted file mode 100644 index e5c8bd35b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useStepsAchievedQuery.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useStepsRequiredQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useStepsRequiredQuery.ts deleted file mode 100644 index 196567b45..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useStepsRequiredQuery.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useStoreQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useStoreQuery.ts deleted file mode 100644 index 984f8bf06..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useStoreQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useStoresQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useStoresQuery.ts deleted file mode 100644 index 07374bd06..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useStoresQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useTableGrantQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTableGrantQuery.ts deleted file mode 100644 index 0940428e0..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useTableGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useTableGrantsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTableGrantsQuery.ts deleted file mode 100644 index 19f3f58c9..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useTableGrantsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useTableModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTableModuleQuery.ts deleted file mode 100644 index 72fd3c380..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useTableModuleQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useTableModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTableModulesQuery.ts deleted file mode 100644 index 199cd38be..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useTableModulesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useTableQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTableQuery.ts deleted file mode 100644 index b75a69c2e..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useTableQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useTableTemplateModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTableTemplateModuleQuery.ts deleted file mode 100644 index 7a60a5902..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useTableTemplateModuleQuery.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useTableTemplateModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTableTemplateModulesQuery.ts deleted file mode 100644 index c0db523db..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useTableTemplateModulesQuery.ts +++ /dev/null @@ -1,174 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useTablesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTablesQuery.ts deleted file mode 100644 index ded2092d6..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useTablesQuery.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useTriggerFunctionQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTriggerFunctionQuery.ts deleted file mode 100644 index ba894e2c5..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useTriggerFunctionQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useTriggerFunctionsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTriggerFunctionsQuery.ts deleted file mode 100644 index d69ece4b6..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useTriggerFunctionsQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useTriggerQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTriggerQuery.ts deleted file mode 100644 index 82cf9049c..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useTriggerQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useTriggersQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useTriggersQuery.ts deleted file mode 100644 index cc111ea08..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useTriggersQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useUniqueConstraintQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useUniqueConstraintQuery.ts deleted file mode 100644 index 314e83cd9..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useUniqueConstraintQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useUniqueConstraintsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useUniqueConstraintsQuery.ts deleted file mode 100644 index b68770cf9..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useUniqueConstraintsQuery.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useUserAuthModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useUserAuthModuleQuery.ts deleted file mode 100644 index 1424b66da..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useUserAuthModuleQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useUserAuthModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useUserAuthModulesQuery.ts deleted file mode 100644 index f223af012..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useUserAuthModulesQuery.ts +++ /dev/null @@ -1,159 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useUserQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useUserQuery.ts deleted file mode 100644 index c6ca9d01b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useUserQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useUsersModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useUsersModuleQuery.ts deleted file mode 100644 index 4bd5bc0f0..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useUsersModuleQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useUsersModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useUsersModulesQuery.ts deleted file mode 100644 index a19074b3c..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useUsersModulesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useUsersQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useUsersQuery.ts deleted file mode 100644 index 478d3eab4..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useUsersQuery.ts +++ /dev/null @@ -1,129 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useUuidModuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useUuidModuleQuery.ts deleted file mode 100644 index 0a42306d3..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useUuidModuleQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useUuidModulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useUuidModulesQuery.ts deleted file mode 100644 index b3a26771f..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useUuidModulesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useViewGrantQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useViewGrantQuery.ts deleted file mode 100644 index bc65e83c2..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useViewGrantQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useViewGrantsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useViewGrantsQuery.ts deleted file mode 100644 index 6cef5c67d..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useViewGrantsQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useViewQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useViewQuery.ts deleted file mode 100644 index 359c5bc55..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useViewQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useViewRuleQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useViewRuleQuery.ts deleted file mode 100644 index 3a33a3fa6..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useViewRuleQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useViewRulesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useViewRulesQuery.ts deleted file mode 100644 index 63994b707..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useViewRulesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useViewTableQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useViewTableQuery.ts deleted file mode 100644 index f49d71f68..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useViewTableQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useViewTablesQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useViewTablesQuery.ts deleted file mode 100644 index 341746862..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useViewTablesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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-sdk/src/public/hooks/queries/useViewsQuery.ts b/sdk/constructive-sdk/src/public/hooks/queries/useViewsQuery.ts deleted file mode 100644 index 4b62bbe5a..000000000 --- a/sdk/constructive-sdk/src/public/hooks/queries/useViewsQuery.ts +++ /dev/null @@ -1,129 +0,0 @@ -/** - * 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-sdk/src/public/hooks/query-keys.ts b/sdk/constructive-sdk/src/public/hooks/query-keys.ts deleted file mode 100644 index 8037ac67b..000000000 --- a/sdk/constructive-sdk/src/public/hooks/query-keys.ts +++ /dev/null @@ -1,1080 +0,0 @@ -/** - * 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-sdk/src/public/hooks/selection.ts b/sdk/constructive-sdk/src/public/hooks/selection.ts deleted file mode 100644 index 2952aab64..000000000 --- a/sdk/constructive-sdk/src/public/hooks/selection.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 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-sdk/src/public/index.ts b/sdk/constructive-sdk/src/public/index.ts index b6d442fc6..51e77d3d4 100644 --- a/sdk/constructive-sdk/src/public/index.ts +++ b/sdk/constructive-sdk/src/public/index.ts @@ -2,6 +2,4 @@ * Generated 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-sdk/src/public/orm/AGENTS.md b/sdk/constructive-sdk/src/public/orm/AGENTS.md deleted file mode 100644 index 8bd2f1c1b..000000000 --- a/sdk/constructive-sdk/src/public/orm/AGENTS.md +++ /dev/null @@ -1,4865 +0,0 @@ -# ORM Client - Agent Reference - -> @generated by @constructive-io/graphql-codegen - DO NOT EDIT -> This document is structured for LLM/agent consumption. - -## OVERVIEW - -Prisma-like ORM client for interacting with a GraphQL API. -All methods return a query builder. Call `.execute()` to run the query. - -## SETUP - -```typescript -import { createClient } from './orm'; - -const db = createClient({ - endpoint: 'https://api.example.com/graphql', - headers: { Authorization: 'Bearer ' }, -}); -``` - -## MODELS - -### MODEL: getAllRecord - -Access: `db.getAllRecord` - -``` -METHODS: - db.getAllRecord.findMany({ select, where?, orderBy?, first?, offset? }) - db.getAllRecord.findOne({ where: { id }, select }) - db.getAllRecord.create({ data: { path, data }, select }) - db.getAllRecord.update({ where: { id }, data, select }) - db.getAllRecord.delete({ where: { id } }) - -FIELDS: - path: string[] - data: unknown - -EDITABLE FIELDS: - path: string[] - data: unknown - -OUTPUT: Promise - findMany: [{ path, data }] - findOne: { path, data } - create: { path, data } - update: { path, data } - delete: { id } -``` - -### MODEL: appPermission - -Access: `db.appPermission` - -``` -METHODS: - db.appPermission.findMany({ select, where?, orderBy?, first?, offset? }) - db.appPermission.findOne({ where: { id }, select }) - db.appPermission.create({ data: { name, bitnum, bitstr, description }, select }) - db.appPermission.update({ where: { id }, data, select }) - db.appPermission.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - name: string - bitnum: number - bitstr: string - description: string - -EDITABLE FIELDS: - name: string - bitnum: number - bitstr: string - description: string - -OUTPUT: Promise - findMany: [{ id, name, bitnum, bitstr, description }] - findOne: { id, name, bitnum, bitstr, description } - create: { id, name, bitnum, bitstr, description } - update: { id, name, bitnum, bitstr, description } - delete: { id } -``` - -### MODEL: orgPermission - -Access: `db.orgPermission` - -``` -METHODS: - db.orgPermission.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgPermission.findOne({ where: { id }, select }) - db.orgPermission.create({ data: { name, bitnum, bitstr, description }, select }) - db.orgPermission.update({ where: { id }, data, select }) - db.orgPermission.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - name: string - bitnum: number - bitstr: string - description: string - -EDITABLE FIELDS: - name: string - bitnum: number - bitstr: string - description: string - -OUTPUT: Promise - findMany: [{ id, name, bitnum, bitstr, description }] - findOne: { id, name, bitnum, bitstr, description } - create: { id, name, bitnum, bitstr, description } - update: { id, name, bitnum, bitstr, description } - delete: { id } -``` - -### MODEL: object - -Access: `db.object` - -``` -METHODS: - db.object.findMany({ select, where?, orderBy?, first?, offset? }) - db.object.findOne({ where: { id }, select }) - db.object.create({ data: { hashUuid, databaseId, kids, ktree, data, frzn }, select }) - db.object.update({ where: { id }, data, select }) - db.object.delete({ where: { id } }) - -FIELDS: - hashUuid: string - id: string (primary key) - databaseId: string - kids: string[] - ktree: string[] - data: unknown - frzn: boolean - createdAt: string - -EDITABLE FIELDS: - hashUuid: string - databaseId: string - kids: string[] - ktree: string[] - data: unknown - frzn: boolean - -OUTPUT: Promise - findMany: [{ hashUuid, id, databaseId, kids, ktree, data, frzn, createdAt }] - findOne: { hashUuid, id, databaseId, kids, ktree, data, frzn, createdAt } - create: { hashUuid, id, databaseId, kids, ktree, data, frzn, createdAt } - update: { hashUuid, id, databaseId, kids, ktree, data, frzn, createdAt } - delete: { id } -``` - -### MODEL: appLevelRequirement - -Access: `db.appLevelRequirement` - -``` -METHODS: - db.appLevelRequirement.findMany({ select, where?, orderBy?, first?, offset? }) - db.appLevelRequirement.findOne({ where: { id }, select }) - db.appLevelRequirement.create({ data: { name, level, description, requiredCount, priority }, select }) - db.appLevelRequirement.update({ where: { id }, data, select }) - db.appLevelRequirement.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - name: string - level: string - description: string - requiredCount: number - priority: number - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - name: string - level: string - description: string - requiredCount: number - priority: number - -OUTPUT: Promise - findMany: [{ id, name, level, description, requiredCount, priority, createdAt, updatedAt }] - findOne: { id, name, level, description, requiredCount, priority, createdAt, updatedAt } - create: { id, name, level, description, requiredCount, priority, createdAt, updatedAt } - update: { id, name, level, description, requiredCount, priority, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: database - -Access: `db.database` - -``` -METHODS: - db.database.findMany({ select, where?, orderBy?, first?, offset? }) - db.database.findOne({ where: { id }, select }) - db.database.create({ data: { ownerId, schemaHash, name, label, hash }, select }) - db.database.update({ where: { id }, data, select }) - db.database.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - ownerId: string - schemaHash: string - name: string - label: string - hash: string - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - ownerId: string - schemaHash: string - name: string - label: string - hash: string - -OUTPUT: Promise - findMany: [{ id, ownerId, schemaHash, name, label, hash, createdAt, updatedAt }] - findOne: { id, ownerId, schemaHash, name, label, hash, createdAt, updatedAt } - create: { id, ownerId, schemaHash, name, label, hash, createdAt, updatedAt } - update: { id, ownerId, schemaHash, name, label, hash, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: schema - -Access: `db.schema` - -``` -METHODS: - db.schema.findMany({ select, where?, orderBy?, first?, offset? }) - db.schema.findOne({ where: { id }, select }) - db.schema.create({ data: { databaseId, name, schemaName, label, description, smartTags, category, module, scope, tags, isPublic }, select }) - db.schema.update({ where: { id }, data, select }) - db.schema.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - databaseId: string - name: string - schemaName: string - label: string - description: string - smartTags: unknown - category: ObjectCategory - module: string - scope: number - tags: string[] - isPublic: boolean - -OUTPUT: Promise - findMany: [{ id, databaseId, name, schemaName, label, description, smartTags, category, module, scope, tags, isPublic, createdAt, updatedAt }] - findOne: { id, databaseId, name, schemaName, label, description, smartTags, category, module, scope, tags, isPublic, createdAt, updatedAt } - create: { id, databaseId, name, schemaName, label, description, smartTags, category, module, scope, tags, isPublic, createdAt, updatedAt } - update: { id, databaseId, name, schemaName, label, description, smartTags, category, module, scope, tags, isPublic, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: table - -Access: `db.table` - -``` -METHODS: - db.table.findMany({ select, where?, orderBy?, first?, offset? }) - db.table.findOne({ where: { id }, select }) - db.table.create({ data: { databaseId, schemaId, name, label, description, smartTags, category, module, scope, useRls, timestamps, peoplestamps, pluralName, singularName, tags, inheritsId }, select }) - db.table.update({ where: { id }, data, select }) - db.table.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - 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 - -OUTPUT: Promise - findMany: [{ id, databaseId, schemaId, name, label, description, smartTags, category, module, scope, useRls, timestamps, peoplestamps, pluralName, singularName, tags, inheritsId, createdAt, updatedAt }] - findOne: { id, databaseId, schemaId, name, label, description, smartTags, category, module, scope, useRls, timestamps, peoplestamps, pluralName, singularName, tags, inheritsId, createdAt, updatedAt } - create: { id, databaseId, schemaId, name, label, description, smartTags, category, module, scope, useRls, timestamps, peoplestamps, pluralName, singularName, tags, inheritsId, createdAt, updatedAt } - update: { id, databaseId, schemaId, name, label, description, smartTags, category, module, scope, useRls, timestamps, peoplestamps, pluralName, singularName, tags, inheritsId, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: checkConstraint - -Access: `db.checkConstraint` - -``` -METHODS: - db.checkConstraint.findMany({ select, where?, orderBy?, first?, offset? }) - db.checkConstraint.findOne({ where: { id }, select }) - db.checkConstraint.create({ data: { databaseId, tableId, name, type, fieldIds, expr, smartTags, category, module, scope, tags }, select }) - db.checkConstraint.update({ where: { id }, data, select }) - db.checkConstraint.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - databaseId: string - tableId: string - name: string - type: string - fieldIds: string[] - expr: unknown - smartTags: unknown - category: ObjectCategory - module: string - scope: number - tags: string[] - -OUTPUT: Promise - findMany: [{ id, databaseId, tableId, name, type, fieldIds, expr, smartTags, category, module, scope, tags, createdAt, updatedAt }] - findOne: { id, databaseId, tableId, name, type, fieldIds, expr, smartTags, category, module, scope, tags, createdAt, updatedAt } - create: { id, databaseId, tableId, name, type, fieldIds, expr, smartTags, category, module, scope, tags, createdAt, updatedAt } - update: { id, databaseId, tableId, name, type, fieldIds, expr, smartTags, category, module, scope, tags, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: field - -Access: `db.field` - -``` -METHODS: - db.field.findMany({ select, where?, orderBy?, first?, offset? }) - db.field.findOne({ where: { id }, select }) - 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 }) - db.field.update({ where: { id }, data, select }) - db.field.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - 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 - -OUTPUT: Promise - findMany: [{ id, databaseId, tableId, name, label, description, smartTags, isRequired, defaultValue, defaultValueAst, isHidden, type, fieldOrder, regexp, chk, chkExpr, min, max, tags, category, module, scope, createdAt, updatedAt }] - findOne: { id, databaseId, tableId, name, label, description, smartTags, isRequired, defaultValue, defaultValueAst, isHidden, type, fieldOrder, regexp, chk, chkExpr, min, max, tags, category, module, scope, createdAt, updatedAt } - create: { id, databaseId, tableId, name, label, description, smartTags, isRequired, defaultValue, defaultValueAst, isHidden, type, fieldOrder, regexp, chk, chkExpr, min, max, tags, category, module, scope, createdAt, updatedAt } - update: { id, databaseId, tableId, name, label, description, smartTags, isRequired, defaultValue, defaultValueAst, isHidden, type, fieldOrder, regexp, chk, chkExpr, min, max, tags, category, module, scope, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: foreignKeyConstraint - -Access: `db.foreignKeyConstraint` - -``` -METHODS: - db.foreignKeyConstraint.findMany({ select, where?, orderBy?, first?, offset? }) - db.foreignKeyConstraint.findOne({ where: { id }, select }) - db.foreignKeyConstraint.create({ data: { databaseId, tableId, name, description, smartTags, type, fieldIds, refTableId, refFieldIds, deleteAction, updateAction, category, module, scope, tags }, select }) - db.foreignKeyConstraint.update({ where: { id }, data, select }) - db.foreignKeyConstraint.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - 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[] - -OUTPUT: Promise - findMany: [{ id, databaseId, tableId, name, description, smartTags, type, fieldIds, refTableId, refFieldIds, deleteAction, updateAction, category, module, scope, tags, createdAt, updatedAt }] - findOne: { id, databaseId, tableId, name, description, smartTags, type, fieldIds, refTableId, refFieldIds, deleteAction, updateAction, category, module, scope, tags, createdAt, updatedAt } - create: { id, databaseId, tableId, name, description, smartTags, type, fieldIds, refTableId, refFieldIds, deleteAction, updateAction, category, module, scope, tags, createdAt, updatedAt } - update: { id, databaseId, tableId, name, description, smartTags, type, fieldIds, refTableId, refFieldIds, deleteAction, updateAction, category, module, scope, tags, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: fullTextSearch - -Access: `db.fullTextSearch` - -``` -METHODS: - db.fullTextSearch.findMany({ select, where?, orderBy?, first?, offset? }) - db.fullTextSearch.findOne({ where: { id }, select }) - db.fullTextSearch.create({ data: { databaseId, tableId, fieldId, fieldIds, weights, langs }, select }) - db.fullTextSearch.update({ where: { id }, data, select }) - db.fullTextSearch.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - tableId: string - fieldId: string - fieldIds: string[] - weights: string[] - langs: string[] - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - databaseId: string - tableId: string - fieldId: string - fieldIds: string[] - weights: string[] - langs: string[] - -OUTPUT: Promise - findMany: [{ id, databaseId, tableId, fieldId, fieldIds, weights, langs, createdAt, updatedAt }] - findOne: { id, databaseId, tableId, fieldId, fieldIds, weights, langs, createdAt, updatedAt } - create: { id, databaseId, tableId, fieldId, fieldIds, weights, langs, createdAt, updatedAt } - update: { id, databaseId, tableId, fieldId, fieldIds, weights, langs, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: index - -Access: `db.index` - -``` -METHODS: - db.index.findMany({ select, where?, orderBy?, first?, offset? }) - db.index.findOne({ where: { id }, select }) - db.index.create({ data: { databaseId, tableId, name, fieldIds, includeFieldIds, accessMethod, indexParams, whereClause, isUnique, smartTags, category, module, scope, tags }, select }) - db.index.update({ where: { id }, data, select }) - db.index.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - 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[] - -OUTPUT: Promise - findMany: [{ id, databaseId, tableId, name, fieldIds, includeFieldIds, accessMethod, indexParams, whereClause, isUnique, smartTags, category, module, scope, tags, createdAt, updatedAt }] - findOne: { id, databaseId, tableId, name, fieldIds, includeFieldIds, accessMethod, indexParams, whereClause, isUnique, smartTags, category, module, scope, tags, createdAt, updatedAt } - create: { id, databaseId, tableId, name, fieldIds, includeFieldIds, accessMethod, indexParams, whereClause, isUnique, smartTags, category, module, scope, tags, createdAt, updatedAt } - update: { id, databaseId, tableId, name, fieldIds, includeFieldIds, accessMethod, indexParams, whereClause, isUnique, smartTags, category, module, scope, tags, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: limitFunction - -Access: `db.limitFunction` - -``` -METHODS: - db.limitFunction.findMany({ select, where?, orderBy?, first?, offset? }) - db.limitFunction.findOne({ where: { id }, select }) - db.limitFunction.create({ data: { databaseId, tableId, name, label, description, data, security }, select }) - db.limitFunction.update({ where: { id }, data, select }) - db.limitFunction.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - tableId: string - name: string - label: string - description: string - data: unknown - security: number - -EDITABLE FIELDS: - databaseId: string - tableId: string - name: string - label: string - description: string - data: unknown - security: number - -OUTPUT: Promise - findMany: [{ id, databaseId, tableId, name, label, description, data, security }] - findOne: { id, databaseId, tableId, name, label, description, data, security } - create: { id, databaseId, tableId, name, label, description, data, security } - update: { id, databaseId, tableId, name, label, description, data, security } - delete: { id } -``` - -### MODEL: policy - -Access: `db.policy` - -``` -METHODS: - db.policy.findMany({ select, where?, orderBy?, first?, offset? }) - db.policy.findOne({ where: { id }, select }) - db.policy.create({ data: { databaseId, tableId, name, roleName, privilege, permissive, disabled, policyType, data, smartTags, category, module, scope, tags }, select }) - db.policy.update({ where: { id }, data, select }) - db.policy.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - 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[] - -OUTPUT: Promise - findMany: [{ id, databaseId, tableId, name, roleName, privilege, permissive, disabled, policyType, data, smartTags, category, module, scope, tags, createdAt, updatedAt }] - findOne: { id, databaseId, tableId, name, roleName, privilege, permissive, disabled, policyType, data, smartTags, category, module, scope, tags, createdAt, updatedAt } - create: { id, databaseId, tableId, name, roleName, privilege, permissive, disabled, policyType, data, smartTags, category, module, scope, tags, createdAt, updatedAt } - update: { id, databaseId, tableId, name, roleName, privilege, permissive, disabled, policyType, data, smartTags, category, module, scope, tags, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: primaryKeyConstraint - -Access: `db.primaryKeyConstraint` - -``` -METHODS: - db.primaryKeyConstraint.findMany({ select, where?, orderBy?, first?, offset? }) - db.primaryKeyConstraint.findOne({ where: { id }, select }) - db.primaryKeyConstraint.create({ data: { databaseId, tableId, name, type, fieldIds, smartTags, category, module, scope, tags }, select }) - db.primaryKeyConstraint.update({ where: { id }, data, select }) - db.primaryKeyConstraint.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - tableId: string - name: string - type: string - fieldIds: string[] - smartTags: unknown - category: ObjectCategory - module: string - scope: number - tags: string[] - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - databaseId: string - tableId: string - name: string - type: string - fieldIds: string[] - smartTags: unknown - category: ObjectCategory - module: string - scope: number - tags: string[] - -OUTPUT: Promise - findMany: [{ id, databaseId, tableId, name, type, fieldIds, smartTags, category, module, scope, tags, createdAt, updatedAt }] - findOne: { id, databaseId, tableId, name, type, fieldIds, smartTags, category, module, scope, tags, createdAt, updatedAt } - create: { id, databaseId, tableId, name, type, fieldIds, smartTags, category, module, scope, tags, createdAt, updatedAt } - update: { id, databaseId, tableId, name, type, fieldIds, smartTags, category, module, scope, tags, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: tableGrant - -Access: `db.tableGrant` - -``` -METHODS: - db.tableGrant.findMany({ select, where?, orderBy?, first?, offset? }) - db.tableGrant.findOne({ where: { id }, select }) - db.tableGrant.create({ data: { databaseId, tableId, privilege, roleName, fieldIds }, select }) - db.tableGrant.update({ where: { id }, data, select }) - db.tableGrant.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - tableId: string - privilege: string - roleName: string - fieldIds: string[] - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - databaseId: string - tableId: string - privilege: string - roleName: string - fieldIds: string[] - -OUTPUT: Promise - findMany: [{ id, databaseId, tableId, privilege, roleName, fieldIds, createdAt, updatedAt }] - findOne: { id, databaseId, tableId, privilege, roleName, fieldIds, createdAt, updatedAt } - create: { id, databaseId, tableId, privilege, roleName, fieldIds, createdAt, updatedAt } - update: { id, databaseId, tableId, privilege, roleName, fieldIds, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: trigger - -Access: `db.trigger` - -``` -METHODS: - db.trigger.findMany({ select, where?, orderBy?, first?, offset? }) - db.trigger.findOne({ where: { id }, select }) - db.trigger.create({ data: { databaseId, tableId, name, event, functionName, smartTags, category, module, scope, tags }, select }) - db.trigger.update({ where: { id }, data, select }) - db.trigger.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - tableId: string - name: string - event: string - functionName: string - smartTags: unknown - category: ObjectCategory - module: string - scope: number - tags: string[] - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - databaseId: string - tableId: string - name: string - event: string - functionName: string - smartTags: unknown - category: ObjectCategory - module: string - scope: number - tags: string[] - -OUTPUT: Promise - findMany: [{ id, databaseId, tableId, name, event, functionName, smartTags, category, module, scope, tags, createdAt, updatedAt }] - findOne: { id, databaseId, tableId, name, event, functionName, smartTags, category, module, scope, tags, createdAt, updatedAt } - create: { id, databaseId, tableId, name, event, functionName, smartTags, category, module, scope, tags, createdAt, updatedAt } - update: { id, databaseId, tableId, name, event, functionName, smartTags, category, module, scope, tags, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: uniqueConstraint - -Access: `db.uniqueConstraint` - -``` -METHODS: - db.uniqueConstraint.findMany({ select, where?, orderBy?, first?, offset? }) - db.uniqueConstraint.findOne({ where: { id }, select }) - db.uniqueConstraint.create({ data: { databaseId, tableId, name, description, smartTags, type, fieldIds, category, module, scope, tags }, select }) - db.uniqueConstraint.update({ where: { id }, data, select }) - db.uniqueConstraint.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - databaseId: string - tableId: string - name: string - description: string - smartTags: unknown - type: string - fieldIds: string[] - category: ObjectCategory - module: string - scope: number - tags: string[] - -OUTPUT: Promise - findMany: [{ id, databaseId, tableId, name, description, smartTags, type, fieldIds, category, module, scope, tags, createdAt, updatedAt }] - findOne: { id, databaseId, tableId, name, description, smartTags, type, fieldIds, category, module, scope, tags, createdAt, updatedAt } - create: { id, databaseId, tableId, name, description, smartTags, type, fieldIds, category, module, scope, tags, createdAt, updatedAt } - update: { id, databaseId, tableId, name, description, smartTags, type, fieldIds, category, module, scope, tags, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: view - -Access: `db.view` - -``` -METHODS: - db.view.findMany({ select, where?, orderBy?, first?, offset? }) - db.view.findOne({ where: { id }, select }) - db.view.create({ data: { databaseId, schemaId, name, tableId, viewType, data, filterType, filterData, securityInvoker, isReadOnly, smartTags, category, module, scope, tags }, select }) - db.view.update({ where: { id }, data, select }) - db.view.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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[] - -EDITABLE FIELDS: - 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[] - -OUTPUT: Promise - findMany: [{ id, databaseId, schemaId, name, tableId, viewType, data, filterType, filterData, securityInvoker, isReadOnly, smartTags, category, module, scope, tags }] - findOne: { id, databaseId, schemaId, name, tableId, viewType, data, filterType, filterData, securityInvoker, isReadOnly, smartTags, category, module, scope, tags } - create: { id, databaseId, schemaId, name, tableId, viewType, data, filterType, filterData, securityInvoker, isReadOnly, smartTags, category, module, scope, tags } - update: { id, databaseId, schemaId, name, tableId, viewType, data, filterType, filterData, securityInvoker, isReadOnly, smartTags, category, module, scope, tags } - delete: { id } -``` - -### MODEL: viewTable - -Access: `db.viewTable` - -``` -METHODS: - db.viewTable.findMany({ select, where?, orderBy?, first?, offset? }) - db.viewTable.findOne({ where: { id }, select }) - db.viewTable.create({ data: { viewId, tableId, joinOrder }, select }) - db.viewTable.update({ where: { id }, data, select }) - db.viewTable.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - viewId: string - tableId: string - joinOrder: number - -EDITABLE FIELDS: - viewId: string - tableId: string - joinOrder: number - -OUTPUT: Promise - findMany: [{ id, viewId, tableId, joinOrder }] - findOne: { id, viewId, tableId, joinOrder } - create: { id, viewId, tableId, joinOrder } - update: { id, viewId, tableId, joinOrder } - delete: { id } -``` - -### MODEL: viewGrant - -Access: `db.viewGrant` - -``` -METHODS: - db.viewGrant.findMany({ select, where?, orderBy?, first?, offset? }) - db.viewGrant.findOne({ where: { id }, select }) - db.viewGrant.create({ data: { databaseId, viewId, roleName, privilege, withGrantOption }, select }) - db.viewGrant.update({ where: { id }, data, select }) - db.viewGrant.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - viewId: string - roleName: string - privilege: string - withGrantOption: boolean - -EDITABLE FIELDS: - databaseId: string - viewId: string - roleName: string - privilege: string - withGrantOption: boolean - -OUTPUT: Promise - findMany: [{ id, databaseId, viewId, roleName, privilege, withGrantOption }] - findOne: { id, databaseId, viewId, roleName, privilege, withGrantOption } - create: { id, databaseId, viewId, roleName, privilege, withGrantOption } - update: { id, databaseId, viewId, roleName, privilege, withGrantOption } - delete: { id } -``` - -### MODEL: viewRule - -Access: `db.viewRule` - -``` -METHODS: - db.viewRule.findMany({ select, where?, orderBy?, first?, offset? }) - db.viewRule.findOne({ where: { id }, select }) - db.viewRule.create({ data: { databaseId, viewId, name, event, action }, select }) - db.viewRule.update({ where: { id }, data, select }) - db.viewRule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - viewId: string - name: string - event: string - action: string - -EDITABLE FIELDS: - databaseId: string - viewId: string - name: string - event: string - action: string - -OUTPUT: Promise - findMany: [{ id, databaseId, viewId, name, event, action }] - findOne: { id, databaseId, viewId, name, event, action } - create: { id, databaseId, viewId, name, event, action } - update: { id, databaseId, viewId, name, event, action } - delete: { id } -``` - -### MODEL: tableModule - -Access: `db.tableModule` - -``` -METHODS: - db.tableModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.tableModule.findOne({ where: { id }, select }) - db.tableModule.create({ data: { databaseId, privateSchemaId, tableId, nodeType, data, fields }, select }) - db.tableModule.update({ where: { id }, data, select }) - db.tableModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - privateSchemaId: string - tableId: string - nodeType: string - data: unknown - fields: string[] - -EDITABLE FIELDS: - databaseId: string - privateSchemaId: string - tableId: string - nodeType: string - data: unknown - fields: string[] - -OUTPUT: Promise - findMany: [{ id, databaseId, privateSchemaId, tableId, nodeType, data, fields }] - findOne: { id, databaseId, privateSchemaId, tableId, nodeType, data, fields } - create: { id, databaseId, privateSchemaId, tableId, nodeType, data, fields } - update: { id, databaseId, privateSchemaId, tableId, nodeType, data, fields } - delete: { id } -``` - -### MODEL: tableTemplateModule - -Access: `db.tableTemplateModule` - -``` -METHODS: - db.tableTemplateModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.tableTemplateModule.findOne({ where: { id }, select }) - db.tableTemplateModule.create({ data: { databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName, nodeType, data }, select }) - db.tableTemplateModule.update({ where: { id }, data, select }) - db.tableTemplateModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - schemaId: string - privateSchemaId: string - tableId: string - ownerTableId: string - tableName: string - nodeType: string - data: unknown - -EDITABLE FIELDS: - databaseId: string - schemaId: string - privateSchemaId: string - tableId: string - ownerTableId: string - tableName: string - nodeType: string - data: unknown - -OUTPUT: Promise - findMany: [{ id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName, nodeType, data }] - findOne: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName, nodeType, data } - create: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName, nodeType, data } - update: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName, nodeType, data } - delete: { id } -``` - -### MODEL: schemaGrant - -Access: `db.schemaGrant` - -``` -METHODS: - db.schemaGrant.findMany({ select, where?, orderBy?, first?, offset? }) - db.schemaGrant.findOne({ where: { id }, select }) - db.schemaGrant.create({ data: { databaseId, schemaId, granteeName }, select }) - db.schemaGrant.update({ where: { id }, data, select }) - db.schemaGrant.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - schemaId: string - granteeName: string - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - databaseId: string - schemaId: string - granteeName: string - -OUTPUT: Promise - findMany: [{ id, databaseId, schemaId, granteeName, createdAt, updatedAt }] - findOne: { id, databaseId, schemaId, granteeName, createdAt, updatedAt } - create: { id, databaseId, schemaId, granteeName, createdAt, updatedAt } - update: { id, databaseId, schemaId, granteeName, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: apiSchema - -Access: `db.apiSchema` - -``` -METHODS: - db.apiSchema.findMany({ select, where?, orderBy?, first?, offset? }) - db.apiSchema.findOne({ where: { id }, select }) - db.apiSchema.create({ data: { databaseId, schemaId, apiId }, select }) - db.apiSchema.update({ where: { id }, data, select }) - db.apiSchema.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - schemaId: string - apiId: string - -EDITABLE FIELDS: - databaseId: string - schemaId: string - apiId: string - -OUTPUT: Promise - findMany: [{ id, databaseId, schemaId, apiId }] - findOne: { id, databaseId, schemaId, apiId } - create: { id, databaseId, schemaId, apiId } - update: { id, databaseId, schemaId, apiId } - delete: { id } -``` - -### MODEL: apiModule - -Access: `db.apiModule` - -``` -METHODS: - db.apiModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.apiModule.findOne({ where: { id }, select }) - db.apiModule.create({ data: { databaseId, apiId, name, data }, select }) - db.apiModule.update({ where: { id }, data, select }) - db.apiModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - apiId: string - name: string - data: unknown - -EDITABLE FIELDS: - databaseId: string - apiId: string - name: string - data: unknown - -OUTPUT: Promise - findMany: [{ id, databaseId, apiId, name, data }] - findOne: { id, databaseId, apiId, name, data } - create: { id, databaseId, apiId, name, data } - update: { id, databaseId, apiId, name, data } - delete: { id } -``` - -### MODEL: domain - -Access: `db.domain` - -``` -METHODS: - db.domain.findMany({ select, where?, orderBy?, first?, offset? }) - db.domain.findOne({ where: { id }, select }) - db.domain.create({ data: { databaseId, apiId, siteId, subdomain, domain }, select }) - db.domain.update({ where: { id }, data, select }) - db.domain.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - apiId: string - siteId: string - subdomain: ConstructiveInternalTypeHostname - domain: ConstructiveInternalTypeHostname - -EDITABLE FIELDS: - databaseId: string - apiId: string - siteId: string - subdomain: ConstructiveInternalTypeHostname - domain: ConstructiveInternalTypeHostname - -OUTPUT: Promise - findMany: [{ id, databaseId, apiId, siteId, subdomain, domain }] - findOne: { id, databaseId, apiId, siteId, subdomain, domain } - create: { id, databaseId, apiId, siteId, subdomain, domain } - update: { id, databaseId, apiId, siteId, subdomain, domain } - delete: { id } -``` - -### MODEL: siteMetadatum - -Access: `db.siteMetadatum` - -``` -METHODS: - db.siteMetadatum.findMany({ select, where?, orderBy?, first?, offset? }) - db.siteMetadatum.findOne({ where: { id }, select }) - db.siteMetadatum.create({ data: { databaseId, siteId, title, description, ogImage }, select }) - db.siteMetadatum.update({ where: { id }, data, select }) - db.siteMetadatum.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - siteId: string - title: string - description: string - ogImage: ConstructiveInternalTypeImage - -EDITABLE FIELDS: - databaseId: string - siteId: string - title: string - description: string - ogImage: ConstructiveInternalTypeImage - -OUTPUT: Promise - findMany: [{ id, databaseId, siteId, title, description, ogImage }] - findOne: { id, databaseId, siteId, title, description, ogImage } - create: { id, databaseId, siteId, title, description, ogImage } - update: { id, databaseId, siteId, title, description, ogImage } - delete: { id } -``` - -### MODEL: siteModule - -Access: `db.siteModule` - -``` -METHODS: - db.siteModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.siteModule.findOne({ where: { id }, select }) - db.siteModule.create({ data: { databaseId, siteId, name, data }, select }) - db.siteModule.update({ where: { id }, data, select }) - db.siteModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - siteId: string - name: string - data: unknown - -EDITABLE FIELDS: - databaseId: string - siteId: string - name: string - data: unknown - -OUTPUT: Promise - findMany: [{ id, databaseId, siteId, name, data }] - findOne: { id, databaseId, siteId, name, data } - create: { id, databaseId, siteId, name, data } - update: { id, databaseId, siteId, name, data } - delete: { id } -``` - -### MODEL: siteTheme - -Access: `db.siteTheme` - -``` -METHODS: - db.siteTheme.findMany({ select, where?, orderBy?, first?, offset? }) - db.siteTheme.findOne({ where: { id }, select }) - db.siteTheme.create({ data: { databaseId, siteId, theme }, select }) - db.siteTheme.update({ where: { id }, data, select }) - db.siteTheme.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - siteId: string - theme: unknown - -EDITABLE FIELDS: - databaseId: string - siteId: string - theme: unknown - -OUTPUT: Promise - findMany: [{ id, databaseId, siteId, theme }] - findOne: { id, databaseId, siteId, theme } - create: { id, databaseId, siteId, theme } - update: { id, databaseId, siteId, theme } - delete: { id } -``` - -### MODEL: procedure - -Access: `db.procedure` - -``` -METHODS: - db.procedure.findMany({ select, where?, orderBy?, first?, offset? }) - db.procedure.findOne({ where: { id }, select }) - db.procedure.create({ data: { databaseId, name, argnames, argtypes, argdefaults, langName, definition, smartTags, category, module, scope, tags }, select }) - db.procedure.update({ where: { id }, data, select }) - db.procedure.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - databaseId: string - name: string - argnames: string[] - argtypes: string[] - argdefaults: string[] - langName: string - definition: string - smartTags: unknown - category: ObjectCategory - module: string - scope: number - tags: string[] - -OUTPUT: Promise - findMany: [{ id, databaseId, name, argnames, argtypes, argdefaults, langName, definition, smartTags, category, module, scope, tags, createdAt, updatedAt }] - findOne: { id, databaseId, name, argnames, argtypes, argdefaults, langName, definition, smartTags, category, module, scope, tags, createdAt, updatedAt } - create: { id, databaseId, name, argnames, argtypes, argdefaults, langName, definition, smartTags, category, module, scope, tags, createdAt, updatedAt } - update: { id, databaseId, name, argnames, argtypes, argdefaults, langName, definition, smartTags, category, module, scope, tags, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: triggerFunction - -Access: `db.triggerFunction` - -``` -METHODS: - db.triggerFunction.findMany({ select, where?, orderBy?, first?, offset? }) - db.triggerFunction.findOne({ where: { id }, select }) - db.triggerFunction.create({ data: { databaseId, name, code }, select }) - db.triggerFunction.update({ where: { id }, data, select }) - db.triggerFunction.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - name: string - code: string - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - databaseId: string - name: string - code: string - -OUTPUT: Promise - findMany: [{ id, databaseId, name, code, createdAt, updatedAt }] - findOne: { id, databaseId, name, code, createdAt, updatedAt } - create: { id, databaseId, name, code, createdAt, updatedAt } - update: { id, databaseId, name, code, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: api - -Access: `db.api` - -``` -METHODS: - db.api.findMany({ select, where?, orderBy?, first?, offset? }) - db.api.findOne({ where: { id }, select }) - db.api.create({ data: { databaseId, name, dbname, roleName, anonRole, isPublic }, select }) - db.api.update({ where: { id }, data, select }) - db.api.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - name: string - dbname: string - roleName: string - anonRole: string - isPublic: boolean - -EDITABLE FIELDS: - databaseId: string - name: string - dbname: string - roleName: string - anonRole: string - isPublic: boolean - -OUTPUT: Promise - findMany: [{ id, databaseId, name, dbname, roleName, anonRole, isPublic }] - findOne: { id, databaseId, name, dbname, roleName, anonRole, isPublic } - create: { id, databaseId, name, dbname, roleName, anonRole, isPublic } - update: { id, databaseId, name, dbname, roleName, anonRole, isPublic } - delete: { id } -``` - -### MODEL: site - -Access: `db.site` - -``` -METHODS: - db.site.findMany({ select, where?, orderBy?, first?, offset? }) - db.site.findOne({ where: { id }, select }) - db.site.create({ data: { databaseId, title, description, ogImage, favicon, appleTouchIcon, logo, dbname }, select }) - db.site.update({ where: { id }, data, select }) - db.site.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - title: string - description: string - ogImage: ConstructiveInternalTypeImage - favicon: ConstructiveInternalTypeAttachment - appleTouchIcon: ConstructiveInternalTypeImage - logo: ConstructiveInternalTypeImage - dbname: string - -EDITABLE FIELDS: - databaseId: string - title: string - description: string - ogImage: ConstructiveInternalTypeImage - favicon: ConstructiveInternalTypeAttachment - appleTouchIcon: ConstructiveInternalTypeImage - logo: ConstructiveInternalTypeImage - dbname: string - -OUTPUT: Promise - findMany: [{ id, databaseId, title, description, ogImage, favicon, appleTouchIcon, logo, dbname }] - findOne: { id, databaseId, title, description, ogImage, favicon, appleTouchIcon, logo, dbname } - create: { id, databaseId, title, description, ogImage, favicon, appleTouchIcon, logo, dbname } - update: { id, databaseId, title, description, ogImage, favicon, appleTouchIcon, logo, dbname } - delete: { id } -``` - -### MODEL: app - -Access: `db.app` - -``` -METHODS: - db.app.findMany({ select, where?, orderBy?, first?, offset? }) - db.app.findOne({ where: { id }, select }) - db.app.create({ data: { databaseId, siteId, name, appImage, appStoreLink, appStoreId, appIdPrefix, playStoreLink }, select }) - db.app.update({ where: { id }, data, select }) - db.app.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - siteId: string - name: string - appImage: ConstructiveInternalTypeImage - appStoreLink: ConstructiveInternalTypeUrl - appStoreId: string - appIdPrefix: string - playStoreLink: ConstructiveInternalTypeUrl - -EDITABLE FIELDS: - databaseId: string - siteId: string - name: string - appImage: ConstructiveInternalTypeImage - appStoreLink: ConstructiveInternalTypeUrl - appStoreId: string - appIdPrefix: string - playStoreLink: ConstructiveInternalTypeUrl - -OUTPUT: Promise - findMany: [{ id, databaseId, siteId, name, appImage, appStoreLink, appStoreId, appIdPrefix, playStoreLink }] - findOne: { id, databaseId, siteId, name, appImage, appStoreLink, appStoreId, appIdPrefix, playStoreLink } - create: { id, databaseId, siteId, name, appImage, appStoreLink, appStoreId, appIdPrefix, playStoreLink } - update: { id, databaseId, siteId, name, appImage, appStoreLink, appStoreId, appIdPrefix, playStoreLink } - delete: { id } -``` - -### MODEL: connectedAccountsModule - -Access: `db.connectedAccountsModule` - -``` -METHODS: - db.connectedAccountsModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.connectedAccountsModule.findOne({ where: { id }, select }) - db.connectedAccountsModule.create({ data: { databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName }, select }) - db.connectedAccountsModule.update({ where: { id }, data, select }) - db.connectedAccountsModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - schemaId: string - privateSchemaId: string - tableId: string - ownerTableId: string - tableName: string - -EDITABLE FIELDS: - databaseId: string - schemaId: string - privateSchemaId: string - tableId: string - ownerTableId: string - tableName: string - -OUTPUT: Promise - findMany: [{ id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName }] - findOne: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName } - create: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName } - update: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName } - delete: { id } -``` - -### MODEL: cryptoAddressesModule - -Access: `db.cryptoAddressesModule` - -``` -METHODS: - db.cryptoAddressesModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.cryptoAddressesModule.findOne({ where: { id }, select }) - db.cryptoAddressesModule.create({ data: { databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName, cryptoNetwork }, select }) - db.cryptoAddressesModule.update({ where: { id }, data, select }) - db.cryptoAddressesModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - schemaId: string - privateSchemaId: string - tableId: string - ownerTableId: string - tableName: string - cryptoNetwork: string - -EDITABLE FIELDS: - databaseId: string - schemaId: string - privateSchemaId: string - tableId: string - ownerTableId: string - tableName: string - cryptoNetwork: string - -OUTPUT: Promise - findMany: [{ id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName, cryptoNetwork }] - findOne: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName, cryptoNetwork } - create: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName, cryptoNetwork } - update: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName, cryptoNetwork } - delete: { id } -``` - -### MODEL: cryptoAuthModule - -Access: `db.cryptoAuthModule` - -``` -METHODS: - db.cryptoAuthModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.cryptoAuthModule.findOne({ where: { id }, select }) - db.cryptoAuthModule.create({ data: { databaseId, schemaId, usersTableId, secretsTableId, sessionsTableId, sessionCredentialsTableId, addressesTableId, userField, cryptoNetwork, signInRequestChallenge, signInRecordFailure, signUpWithKey, signInWithChallenge }, select }) - db.cryptoAuthModule.update({ where: { id }, data, select }) - db.cryptoAuthModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - 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 - -OUTPUT: Promise - findMany: [{ id, databaseId, schemaId, usersTableId, secretsTableId, sessionsTableId, sessionCredentialsTableId, addressesTableId, userField, cryptoNetwork, signInRequestChallenge, signInRecordFailure, signUpWithKey, signInWithChallenge }] - findOne: { id, databaseId, schemaId, usersTableId, secretsTableId, sessionsTableId, sessionCredentialsTableId, addressesTableId, userField, cryptoNetwork, signInRequestChallenge, signInRecordFailure, signUpWithKey, signInWithChallenge } - create: { id, databaseId, schemaId, usersTableId, secretsTableId, sessionsTableId, sessionCredentialsTableId, addressesTableId, userField, cryptoNetwork, signInRequestChallenge, signInRecordFailure, signUpWithKey, signInWithChallenge } - update: { id, databaseId, schemaId, usersTableId, secretsTableId, sessionsTableId, sessionCredentialsTableId, addressesTableId, userField, cryptoNetwork, signInRequestChallenge, signInRecordFailure, signUpWithKey, signInWithChallenge } - delete: { id } -``` - -### MODEL: defaultIdsModule - -Access: `db.defaultIdsModule` - -``` -METHODS: - db.defaultIdsModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.defaultIdsModule.findOne({ where: { id }, select }) - db.defaultIdsModule.create({ data: { databaseId }, select }) - db.defaultIdsModule.update({ where: { id }, data, select }) - db.defaultIdsModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - -EDITABLE FIELDS: - databaseId: string - -OUTPUT: Promise - findMany: [{ id, databaseId }] - findOne: { id, databaseId } - create: { id, databaseId } - update: { id, databaseId } - delete: { id } -``` - -### MODEL: denormalizedTableField - -Access: `db.denormalizedTableField` - -``` -METHODS: - db.denormalizedTableField.findMany({ select, where?, orderBy?, first?, offset? }) - db.denormalizedTableField.findOne({ where: { id }, select }) - db.denormalizedTableField.create({ data: { databaseId, tableId, fieldId, setIds, refTableId, refFieldId, refIds, useUpdates, updateDefaults, funcName, funcOrder }, select }) - db.denormalizedTableField.update({ where: { id }, data, select }) - db.denormalizedTableField.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - tableId: string - fieldId: string - setIds: string[] - refTableId: string - refFieldId: string - refIds: string[] - useUpdates: boolean - updateDefaults: boolean - funcName: string - funcOrder: number - -EDITABLE FIELDS: - databaseId: string - tableId: string - fieldId: string - setIds: string[] - refTableId: string - refFieldId: string - refIds: string[] - useUpdates: boolean - updateDefaults: boolean - funcName: string - funcOrder: number - -OUTPUT: Promise - findMany: [{ id, databaseId, tableId, fieldId, setIds, refTableId, refFieldId, refIds, useUpdates, updateDefaults, funcName, funcOrder }] - findOne: { id, databaseId, tableId, fieldId, setIds, refTableId, refFieldId, refIds, useUpdates, updateDefaults, funcName, funcOrder } - create: { id, databaseId, tableId, fieldId, setIds, refTableId, refFieldId, refIds, useUpdates, updateDefaults, funcName, funcOrder } - update: { id, databaseId, tableId, fieldId, setIds, refTableId, refFieldId, refIds, useUpdates, updateDefaults, funcName, funcOrder } - delete: { id } -``` - -### MODEL: emailsModule - -Access: `db.emailsModule` - -``` -METHODS: - db.emailsModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.emailsModule.findOne({ where: { id }, select }) - db.emailsModule.create({ data: { databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName }, select }) - db.emailsModule.update({ where: { id }, data, select }) - db.emailsModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - schemaId: string - privateSchemaId: string - tableId: string - ownerTableId: string - tableName: string - -EDITABLE FIELDS: - databaseId: string - schemaId: string - privateSchemaId: string - tableId: string - ownerTableId: string - tableName: string - -OUTPUT: Promise - findMany: [{ id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName }] - findOne: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName } - create: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName } - update: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName } - delete: { id } -``` - -### MODEL: encryptedSecretsModule - -Access: `db.encryptedSecretsModule` - -``` -METHODS: - db.encryptedSecretsModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.encryptedSecretsModule.findOne({ where: { id }, select }) - db.encryptedSecretsModule.create({ data: { databaseId, schemaId, tableId, tableName }, select }) - db.encryptedSecretsModule.update({ where: { id }, data, select }) - db.encryptedSecretsModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - schemaId: string - tableId: string - tableName: string - -EDITABLE FIELDS: - databaseId: string - schemaId: string - tableId: string - tableName: string - -OUTPUT: Promise - findMany: [{ id, databaseId, schemaId, tableId, tableName }] - findOne: { id, databaseId, schemaId, tableId, tableName } - create: { id, databaseId, schemaId, tableId, tableName } - update: { id, databaseId, schemaId, tableId, tableName } - delete: { id } -``` - -### MODEL: fieldModule - -Access: `db.fieldModule` - -``` -METHODS: - db.fieldModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.fieldModule.findOne({ where: { id }, select }) - db.fieldModule.create({ data: { databaseId, privateSchemaId, tableId, fieldId, nodeType, data, triggers, functions }, select }) - db.fieldModule.update({ where: { id }, data, select }) - db.fieldModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - privateSchemaId: string - tableId: string - fieldId: string - nodeType: string - data: unknown - triggers: string[] - functions: string[] - -EDITABLE FIELDS: - databaseId: string - privateSchemaId: string - tableId: string - fieldId: string - nodeType: string - data: unknown - triggers: string[] - functions: string[] - -OUTPUT: Promise - findMany: [{ id, databaseId, privateSchemaId, tableId, fieldId, nodeType, data, triggers, functions }] - findOne: { id, databaseId, privateSchemaId, tableId, fieldId, nodeType, data, triggers, functions } - create: { id, databaseId, privateSchemaId, tableId, fieldId, nodeType, data, triggers, functions } - update: { id, databaseId, privateSchemaId, tableId, fieldId, nodeType, data, triggers, functions } - delete: { id } -``` - -### MODEL: invitesModule - -Access: `db.invitesModule` - -``` -METHODS: - db.invitesModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.invitesModule.findOne({ where: { id }, select }) - db.invitesModule.create({ data: { databaseId, schemaId, privateSchemaId, emailsTableId, usersTableId, invitesTableId, claimedInvitesTableId, invitesTableName, claimedInvitesTableName, submitInviteCodeFunction, prefix, membershipType, entityTableId }, select }) - db.invitesModule.update({ where: { id }, data, select }) - db.invitesModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - 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 - -OUTPUT: Promise - findMany: [{ id, databaseId, schemaId, privateSchemaId, emailsTableId, usersTableId, invitesTableId, claimedInvitesTableId, invitesTableName, claimedInvitesTableName, submitInviteCodeFunction, prefix, membershipType, entityTableId }] - findOne: { id, databaseId, schemaId, privateSchemaId, emailsTableId, usersTableId, invitesTableId, claimedInvitesTableId, invitesTableName, claimedInvitesTableName, submitInviteCodeFunction, prefix, membershipType, entityTableId } - create: { id, databaseId, schemaId, privateSchemaId, emailsTableId, usersTableId, invitesTableId, claimedInvitesTableId, invitesTableName, claimedInvitesTableName, submitInviteCodeFunction, prefix, membershipType, entityTableId } - update: { id, databaseId, schemaId, privateSchemaId, emailsTableId, usersTableId, invitesTableId, claimedInvitesTableId, invitesTableName, claimedInvitesTableName, submitInviteCodeFunction, prefix, membershipType, entityTableId } - delete: { id } -``` - -### MODEL: levelsModule - -Access: `db.levelsModule` - -``` -METHODS: - db.levelsModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.levelsModule.findOne({ where: { id }, select }) - 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 }) - db.levelsModule.update({ where: { id }, data, select }) - db.levelsModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - 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 - -OUTPUT: Promise - findMany: [{ id, 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 }] - findOne: { id, 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 } - create: { id, 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 } - update: { id, 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 } - delete: { id } -``` - -### MODEL: limitsModule - -Access: `db.limitsModule` - -``` -METHODS: - db.limitsModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.limitsModule.findOne({ where: { id }, select }) - db.limitsModule.create({ data: { databaseId, schemaId, privateSchemaId, tableId, tableName, defaultTableId, defaultTableName, limitIncrementFunction, limitDecrementFunction, limitIncrementTrigger, limitDecrementTrigger, limitUpdateTrigger, limitCheckFunction, prefix, membershipType, entityTableId, actorTableId }, select }) - db.limitsModule.update({ where: { id }, data, select }) - db.limitsModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - 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 - -OUTPUT: Promise - findMany: [{ id, databaseId, schemaId, privateSchemaId, tableId, tableName, defaultTableId, defaultTableName, limitIncrementFunction, limitDecrementFunction, limitIncrementTrigger, limitDecrementTrigger, limitUpdateTrigger, limitCheckFunction, prefix, membershipType, entityTableId, actorTableId }] - findOne: { id, databaseId, schemaId, privateSchemaId, tableId, tableName, defaultTableId, defaultTableName, limitIncrementFunction, limitDecrementFunction, limitIncrementTrigger, limitDecrementTrigger, limitUpdateTrigger, limitCheckFunction, prefix, membershipType, entityTableId, actorTableId } - create: { id, databaseId, schemaId, privateSchemaId, tableId, tableName, defaultTableId, defaultTableName, limitIncrementFunction, limitDecrementFunction, limitIncrementTrigger, limitDecrementTrigger, limitUpdateTrigger, limitCheckFunction, prefix, membershipType, entityTableId, actorTableId } - update: { id, databaseId, schemaId, privateSchemaId, tableId, tableName, defaultTableId, defaultTableName, limitIncrementFunction, limitDecrementFunction, limitIncrementTrigger, limitDecrementTrigger, limitUpdateTrigger, limitCheckFunction, prefix, membershipType, entityTableId, actorTableId } - delete: { id } -``` - -### MODEL: membershipTypesModule - -Access: `db.membershipTypesModule` - -``` -METHODS: - db.membershipTypesModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.membershipTypesModule.findOne({ where: { id }, select }) - db.membershipTypesModule.create({ data: { databaseId, schemaId, tableId, tableName }, select }) - db.membershipTypesModule.update({ where: { id }, data, select }) - db.membershipTypesModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - schemaId: string - tableId: string - tableName: string - -EDITABLE FIELDS: - databaseId: string - schemaId: string - tableId: string - tableName: string - -OUTPUT: Promise - findMany: [{ id, databaseId, schemaId, tableId, tableName }] - findOne: { id, databaseId, schemaId, tableId, tableName } - create: { id, databaseId, schemaId, tableId, tableName } - update: { id, databaseId, schemaId, tableId, tableName } - delete: { id } -``` - -### MODEL: membershipsModule - -Access: `db.membershipsModule` - -``` -METHODS: - db.membershipsModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.membershipsModule.findOne({ where: { id }, select }) - 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 }) - db.membershipsModule.update({ where: { id }, data, select }) - db.membershipsModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - 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 - -OUTPUT: Promise - findMany: [{ id, 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 }] - findOne: { id, 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 } - create: { id, 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 } - update: { id, 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 } - delete: { id } -``` - -### MODEL: permissionsModule - -Access: `db.permissionsModule` - -``` -METHODS: - db.permissionsModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.permissionsModule.findOne({ where: { id }, select }) - db.permissionsModule.create({ data: { databaseId, schemaId, privateSchemaId, tableId, tableName, defaultTableId, defaultTableName, bitlen, membershipType, entityTableId, actorTableId, prefix, getPaddedMask, getMask, getByMask, getMaskByName }, select }) - db.permissionsModule.update({ where: { id }, data, select }) - db.permissionsModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - 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 - -OUTPUT: Promise - findMany: [{ id, databaseId, schemaId, privateSchemaId, tableId, tableName, defaultTableId, defaultTableName, bitlen, membershipType, entityTableId, actorTableId, prefix, getPaddedMask, getMask, getByMask, getMaskByName }] - findOne: { id, databaseId, schemaId, privateSchemaId, tableId, tableName, defaultTableId, defaultTableName, bitlen, membershipType, entityTableId, actorTableId, prefix, getPaddedMask, getMask, getByMask, getMaskByName } - create: { id, databaseId, schemaId, privateSchemaId, tableId, tableName, defaultTableId, defaultTableName, bitlen, membershipType, entityTableId, actorTableId, prefix, getPaddedMask, getMask, getByMask, getMaskByName } - update: { id, databaseId, schemaId, privateSchemaId, tableId, tableName, defaultTableId, defaultTableName, bitlen, membershipType, entityTableId, actorTableId, prefix, getPaddedMask, getMask, getByMask, getMaskByName } - delete: { id } -``` - -### MODEL: phoneNumbersModule - -Access: `db.phoneNumbersModule` - -``` -METHODS: - db.phoneNumbersModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.phoneNumbersModule.findOne({ where: { id }, select }) - db.phoneNumbersModule.create({ data: { databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName }, select }) - db.phoneNumbersModule.update({ where: { id }, data, select }) - db.phoneNumbersModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - schemaId: string - privateSchemaId: string - tableId: string - ownerTableId: string - tableName: string - -EDITABLE FIELDS: - databaseId: string - schemaId: string - privateSchemaId: string - tableId: string - ownerTableId: string - tableName: string - -OUTPUT: Promise - findMany: [{ id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName }] - findOne: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName } - create: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName } - update: { id, databaseId, schemaId, privateSchemaId, tableId, ownerTableId, tableName } - delete: { id } -``` - -### MODEL: profilesModule - -Access: `db.profilesModule` - -``` -METHODS: - db.profilesModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.profilesModule.findOne({ where: { id }, select }) - db.profilesModule.create({ data: { databaseId, schemaId, privateSchemaId, tableId, tableName, profilePermissionsTableId, profilePermissionsTableName, profileGrantsTableId, profileGrantsTableName, profileDefinitionGrantsTableId, profileDefinitionGrantsTableName, bitlen, membershipType, entityTableId, actorTableId, permissionsTableId, membershipsTableId, prefix }, select }) - db.profilesModule.update({ where: { id }, data, select }) - db.profilesModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - 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 - -OUTPUT: Promise - findMany: [{ id, databaseId, schemaId, privateSchemaId, tableId, tableName, profilePermissionsTableId, profilePermissionsTableName, profileGrantsTableId, profileGrantsTableName, profileDefinitionGrantsTableId, profileDefinitionGrantsTableName, bitlen, membershipType, entityTableId, actorTableId, permissionsTableId, membershipsTableId, prefix }] - findOne: { id, databaseId, schemaId, privateSchemaId, tableId, tableName, profilePermissionsTableId, profilePermissionsTableName, profileGrantsTableId, profileGrantsTableName, profileDefinitionGrantsTableId, profileDefinitionGrantsTableName, bitlen, membershipType, entityTableId, actorTableId, permissionsTableId, membershipsTableId, prefix } - create: { id, databaseId, schemaId, privateSchemaId, tableId, tableName, profilePermissionsTableId, profilePermissionsTableName, profileGrantsTableId, profileGrantsTableName, profileDefinitionGrantsTableId, profileDefinitionGrantsTableName, bitlen, membershipType, entityTableId, actorTableId, permissionsTableId, membershipsTableId, prefix } - update: { id, databaseId, schemaId, privateSchemaId, tableId, tableName, profilePermissionsTableId, profilePermissionsTableName, profileGrantsTableId, profileGrantsTableName, profileDefinitionGrantsTableId, profileDefinitionGrantsTableName, bitlen, membershipType, entityTableId, actorTableId, permissionsTableId, membershipsTableId, prefix } - delete: { id } -``` - -### MODEL: rlsModule - -Access: `db.rlsModule` - -``` -METHODS: - db.rlsModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.rlsModule.findOne({ where: { id }, select }) - db.rlsModule.create({ data: { databaseId, apiId, schemaId, privateSchemaId, sessionCredentialsTableId, sessionsTableId, usersTableId, authenticate, authenticateStrict, currentRole, currentRoleId }, select }) - db.rlsModule.update({ where: { id }, data, select }) - db.rlsModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - apiId: string - schemaId: string - privateSchemaId: string - sessionCredentialsTableId: string - sessionsTableId: string - usersTableId: string - authenticate: string - authenticateStrict: string - currentRole: string - currentRoleId: string - -EDITABLE FIELDS: - databaseId: string - apiId: string - schemaId: string - privateSchemaId: string - sessionCredentialsTableId: string - sessionsTableId: string - usersTableId: string - authenticate: string - authenticateStrict: string - currentRole: string - currentRoleId: string - -OUTPUT: Promise - findMany: [{ id, databaseId, apiId, schemaId, privateSchemaId, sessionCredentialsTableId, sessionsTableId, usersTableId, authenticate, authenticateStrict, currentRole, currentRoleId }] - findOne: { id, databaseId, apiId, schemaId, privateSchemaId, sessionCredentialsTableId, sessionsTableId, usersTableId, authenticate, authenticateStrict, currentRole, currentRoleId } - create: { id, databaseId, apiId, schemaId, privateSchemaId, sessionCredentialsTableId, sessionsTableId, usersTableId, authenticate, authenticateStrict, currentRole, currentRoleId } - update: { id, databaseId, apiId, schemaId, privateSchemaId, sessionCredentialsTableId, sessionsTableId, usersTableId, authenticate, authenticateStrict, currentRole, currentRoleId } - delete: { id } -``` - -### MODEL: secretsModule - -Access: `db.secretsModule` - -``` -METHODS: - db.secretsModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.secretsModule.findOne({ where: { id }, select }) - db.secretsModule.create({ data: { databaseId, schemaId, tableId, tableName }, select }) - db.secretsModule.update({ where: { id }, data, select }) - db.secretsModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - schemaId: string - tableId: string - tableName: string - -EDITABLE FIELDS: - databaseId: string - schemaId: string - tableId: string - tableName: string - -OUTPUT: Promise - findMany: [{ id, databaseId, schemaId, tableId, tableName }] - findOne: { id, databaseId, schemaId, tableId, tableName } - create: { id, databaseId, schemaId, tableId, tableName } - update: { id, databaseId, schemaId, tableId, tableName } - delete: { id } -``` - -### MODEL: sessionsModule - -Access: `db.sessionsModule` - -``` -METHODS: - db.sessionsModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.sessionsModule.findOne({ where: { id }, select }) - db.sessionsModule.create({ data: { databaseId, schemaId, sessionsTableId, sessionCredentialsTableId, authSettingsTableId, usersTableId, sessionsDefaultExpiration, sessionsTable, sessionCredentialsTable, authSettingsTable }, select }) - db.sessionsModule.update({ where: { id }, data, select }) - db.sessionsModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - schemaId: string - sessionsTableId: string - sessionCredentialsTableId: string - authSettingsTableId: string - usersTableId: string - sessionsDefaultExpiration: string - sessionsTable: string - sessionCredentialsTable: string - authSettingsTable: string - -EDITABLE FIELDS: - databaseId: string - schemaId: string - sessionsTableId: string - sessionCredentialsTableId: string - authSettingsTableId: string - usersTableId: string - sessionsDefaultExpiration: string - sessionsTable: string - sessionCredentialsTable: string - authSettingsTable: string - -OUTPUT: Promise - findMany: [{ id, databaseId, schemaId, sessionsTableId, sessionCredentialsTableId, authSettingsTableId, usersTableId, sessionsDefaultExpiration, sessionsTable, sessionCredentialsTable, authSettingsTable }] - findOne: { id, databaseId, schemaId, sessionsTableId, sessionCredentialsTableId, authSettingsTableId, usersTableId, sessionsDefaultExpiration, sessionsTable, sessionCredentialsTable, authSettingsTable } - create: { id, databaseId, schemaId, sessionsTableId, sessionCredentialsTableId, authSettingsTableId, usersTableId, sessionsDefaultExpiration, sessionsTable, sessionCredentialsTable, authSettingsTable } - update: { id, databaseId, schemaId, sessionsTableId, sessionCredentialsTableId, authSettingsTableId, usersTableId, sessionsDefaultExpiration, sessionsTable, sessionCredentialsTable, authSettingsTable } - delete: { id } -``` - -### MODEL: userAuthModule - -Access: `db.userAuthModule` - -``` -METHODS: - db.userAuthModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.userAuthModule.findOne({ where: { id }, select }) - 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 }) - db.userAuthModule.update({ where: { id }, data, select }) - db.userAuthModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - 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 - -OUTPUT: Promise - findMany: [{ id, 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 }] - findOne: { id, 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 } - create: { id, 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 } - update: { id, 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 } - delete: { id } -``` - -### MODEL: usersModule - -Access: `db.usersModule` - -``` -METHODS: - db.usersModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.usersModule.findOne({ where: { id }, select }) - db.usersModule.create({ data: { databaseId, schemaId, tableId, tableName, typeTableId, typeTableName }, select }) - db.usersModule.update({ where: { id }, data, select }) - db.usersModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - schemaId: string - tableId: string - tableName: string - typeTableId: string - typeTableName: string - -EDITABLE FIELDS: - databaseId: string - schemaId: string - tableId: string - tableName: string - typeTableId: string - typeTableName: string - -OUTPUT: Promise - findMany: [{ id, databaseId, schemaId, tableId, tableName, typeTableId, typeTableName }] - findOne: { id, databaseId, schemaId, tableId, tableName, typeTableId, typeTableName } - create: { id, databaseId, schemaId, tableId, tableName, typeTableId, typeTableName } - update: { id, databaseId, schemaId, tableId, tableName, typeTableId, typeTableName } - delete: { id } -``` - -### MODEL: uuidModule - -Access: `db.uuidModule` - -``` -METHODS: - db.uuidModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.uuidModule.findOne({ where: { id }, select }) - db.uuidModule.create({ data: { databaseId, schemaId, uuidFunction, uuidSeed }, select }) - db.uuidModule.update({ where: { id }, data, select }) - db.uuidModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseId: string - schemaId: string - uuidFunction: string - uuidSeed: string - -EDITABLE FIELDS: - databaseId: string - schemaId: string - uuidFunction: string - uuidSeed: string - -OUTPUT: Promise - findMany: [{ id, databaseId, schemaId, uuidFunction, uuidSeed }] - findOne: { id, databaseId, schemaId, uuidFunction, uuidSeed } - create: { id, databaseId, schemaId, uuidFunction, uuidSeed } - update: { id, databaseId, schemaId, uuidFunction, uuidSeed } - delete: { id } -``` - -### MODEL: databaseProvisionModule - -Access: `db.databaseProvisionModule` - -``` -METHODS: - db.databaseProvisionModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.databaseProvisionModule.findOne({ where: { id }, select }) - db.databaseProvisionModule.create({ data: { databaseName, ownerId, subdomain, domain, modules, options, bootstrapUser, status, errorMessage, databaseId, completedAt }, select }) - db.databaseProvisionModule.update({ where: { id }, data, select }) - db.databaseProvisionModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - databaseName: string - ownerId: string - subdomain: string - domain: string - modules: string[] - options: unknown - bootstrapUser: boolean - status: string - errorMessage: string - databaseId: string - createdAt: string - updatedAt: string - completedAt: string - -EDITABLE FIELDS: - databaseName: string - ownerId: string - subdomain: string - domain: string - modules: string[] - options: unknown - bootstrapUser: boolean - status: string - errorMessage: string - databaseId: string - completedAt: string - -OUTPUT: Promise - findMany: [{ id, databaseName, ownerId, subdomain, domain, modules, options, bootstrapUser, status, errorMessage, databaseId, createdAt, updatedAt, completedAt }] - findOne: { id, databaseName, ownerId, subdomain, domain, modules, options, bootstrapUser, status, errorMessage, databaseId, createdAt, updatedAt, completedAt } - create: { id, databaseName, ownerId, subdomain, domain, modules, options, bootstrapUser, status, errorMessage, databaseId, createdAt, updatedAt, completedAt } - update: { id, databaseName, ownerId, subdomain, domain, modules, options, bootstrapUser, status, errorMessage, databaseId, createdAt, updatedAt, completedAt } - delete: { id } -``` - -### MODEL: appAdminGrant - -Access: `db.appAdminGrant` - -``` -METHODS: - db.appAdminGrant.findMany({ select, where?, orderBy?, first?, offset? }) - db.appAdminGrant.findOne({ where: { id }, select }) - db.appAdminGrant.create({ data: { isGrant, actorId, grantorId }, select }) - db.appAdminGrant.update({ where: { id }, data, select }) - db.appAdminGrant.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - isGrant: boolean - actorId: string - grantorId: string - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - isGrant: boolean - actorId: string - grantorId: string - -OUTPUT: Promise - findMany: [{ id, isGrant, actorId, grantorId, createdAt, updatedAt }] - findOne: { id, isGrant, actorId, grantorId, createdAt, updatedAt } - create: { id, isGrant, actorId, grantorId, createdAt, updatedAt } - update: { id, isGrant, actorId, grantorId, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: appOwnerGrant - -Access: `db.appOwnerGrant` - -``` -METHODS: - db.appOwnerGrant.findMany({ select, where?, orderBy?, first?, offset? }) - db.appOwnerGrant.findOne({ where: { id }, select }) - db.appOwnerGrant.create({ data: { isGrant, actorId, grantorId }, select }) - db.appOwnerGrant.update({ where: { id }, data, select }) - db.appOwnerGrant.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - isGrant: boolean - actorId: string - grantorId: string - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - isGrant: boolean - actorId: string - grantorId: string - -OUTPUT: Promise - findMany: [{ id, isGrant, actorId, grantorId, createdAt, updatedAt }] - findOne: { id, isGrant, actorId, grantorId, createdAt, updatedAt } - create: { id, isGrant, actorId, grantorId, createdAt, updatedAt } - update: { id, isGrant, actorId, grantorId, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: appGrant - -Access: `db.appGrant` - -``` -METHODS: - db.appGrant.findMany({ select, where?, orderBy?, first?, offset? }) - db.appGrant.findOne({ where: { id }, select }) - db.appGrant.create({ data: { permissions, isGrant, actorId, grantorId }, select }) - db.appGrant.update({ where: { id }, data, select }) - db.appGrant.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - permissions: string - isGrant: boolean - actorId: string - grantorId: string - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - permissions: string - isGrant: boolean - actorId: string - grantorId: string - -OUTPUT: Promise - findMany: [{ id, permissions, isGrant, actorId, grantorId, createdAt, updatedAt }] - findOne: { id, permissions, isGrant, actorId, grantorId, createdAt, updatedAt } - create: { id, permissions, isGrant, actorId, grantorId, createdAt, updatedAt } - update: { id, permissions, isGrant, actorId, grantorId, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: orgMembership - -Access: `db.orgMembership` - -``` -METHODS: - db.orgMembership.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgMembership.findOne({ where: { id }, select }) - db.orgMembership.create({ data: { createdBy, updatedBy, isApproved, isBanned, isDisabled, isActive, isOwner, isAdmin, permissions, granted, actorId, entityId }, select }) - db.orgMembership.update({ where: { id }, data, select }) - db.orgMembership.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - createdBy: string - updatedBy: string - isApproved: boolean - isBanned: boolean - isDisabled: boolean - isActive: boolean - isOwner: boolean - isAdmin: boolean - permissions: string - granted: string - actorId: string - entityId: string - -OUTPUT: Promise - findMany: [{ id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isActive, isOwner, isAdmin, permissions, granted, actorId, entityId }] - findOne: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isActive, isOwner, isAdmin, permissions, granted, actorId, entityId } - create: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isActive, isOwner, isAdmin, permissions, granted, actorId, entityId } - update: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isActive, isOwner, isAdmin, permissions, granted, actorId, entityId } - delete: { id } -``` - -### MODEL: orgMember - -Access: `db.orgMember` - -``` -METHODS: - db.orgMember.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgMember.findOne({ where: { id }, select }) - db.orgMember.create({ data: { isAdmin, actorId, entityId }, select }) - db.orgMember.update({ where: { id }, data, select }) - db.orgMember.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - isAdmin: boolean - actorId: string - entityId: string - -EDITABLE FIELDS: - isAdmin: boolean - actorId: string - entityId: string - -OUTPUT: Promise - findMany: [{ id, isAdmin, actorId, entityId }] - findOne: { id, isAdmin, actorId, entityId } - create: { id, isAdmin, actorId, entityId } - update: { id, isAdmin, actorId, entityId } - delete: { id } -``` - -### MODEL: orgAdminGrant - -Access: `db.orgAdminGrant` - -``` -METHODS: - db.orgAdminGrant.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgAdminGrant.findOne({ where: { id }, select }) - db.orgAdminGrant.create({ data: { isGrant, actorId, entityId, grantorId }, select }) - db.orgAdminGrant.update({ where: { id }, data, select }) - db.orgAdminGrant.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - isGrant: boolean - actorId: string - entityId: string - grantorId: string - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - isGrant: boolean - actorId: string - entityId: string - grantorId: string - -OUTPUT: Promise - findMany: [{ id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt }] - findOne: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } - create: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } - update: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: orgOwnerGrant - -Access: `db.orgOwnerGrant` - -``` -METHODS: - db.orgOwnerGrant.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgOwnerGrant.findOne({ where: { id }, select }) - db.orgOwnerGrant.create({ data: { isGrant, actorId, entityId, grantorId }, select }) - db.orgOwnerGrant.update({ where: { id }, data, select }) - db.orgOwnerGrant.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - isGrant: boolean - actorId: string - entityId: string - grantorId: string - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - isGrant: boolean - actorId: string - entityId: string - grantorId: string - -OUTPUT: Promise - findMany: [{ id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt }] - findOne: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } - create: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } - update: { id, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: orgGrant - -Access: `db.orgGrant` - -``` -METHODS: - db.orgGrant.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgGrant.findOne({ where: { id }, select }) - db.orgGrant.create({ data: { permissions, isGrant, actorId, entityId, grantorId }, select }) - db.orgGrant.update({ where: { id }, data, select }) - db.orgGrant.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - permissions: string - isGrant: boolean - actorId: string - entityId: string - grantorId: string - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - permissions: string - isGrant: boolean - actorId: string - entityId: string - grantorId: string - -OUTPUT: Promise - findMany: [{ id, permissions, isGrant, actorId, entityId, grantorId, createdAt, updatedAt }] - findOne: { id, permissions, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } - create: { id, permissions, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } - update: { id, permissions, isGrant, actorId, entityId, grantorId, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: appLimit - -Access: `db.appLimit` - -``` -METHODS: - db.appLimit.findMany({ select, where?, orderBy?, first?, offset? }) - db.appLimit.findOne({ where: { id }, select }) - db.appLimit.create({ data: { name, actorId, num, max }, select }) - db.appLimit.update({ where: { id }, data, select }) - db.appLimit.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - name: string - actorId: string - num: number - max: number - -EDITABLE FIELDS: - name: string - actorId: string - num: number - max: number - -OUTPUT: Promise - findMany: [{ id, name, actorId, num, max }] - findOne: { id, name, actorId, num, max } - create: { id, name, actorId, num, max } - update: { id, name, actorId, num, max } - delete: { id } -``` - -### MODEL: orgLimit - -Access: `db.orgLimit` - -``` -METHODS: - db.orgLimit.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgLimit.findOne({ where: { id }, select }) - db.orgLimit.create({ data: { name, actorId, num, max, entityId }, select }) - db.orgLimit.update({ where: { id }, data, select }) - db.orgLimit.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - name: string - actorId: string - num: number - max: number - entityId: string - -EDITABLE FIELDS: - name: string - actorId: string - num: number - max: number - entityId: string - -OUTPUT: Promise - findMany: [{ id, name, actorId, num, max, entityId }] - findOne: { id, name, actorId, num, max, entityId } - create: { id, name, actorId, num, max, entityId } - update: { id, name, actorId, num, max, entityId } - delete: { id } -``` - -### MODEL: appStep - -Access: `db.appStep` - -``` -METHODS: - db.appStep.findMany({ select, where?, orderBy?, first?, offset? }) - db.appStep.findOne({ where: { id }, select }) - db.appStep.create({ data: { actorId, name, count }, select }) - db.appStep.update({ where: { id }, data, select }) - db.appStep.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - actorId: string - name: string - count: number - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - actorId: string - name: string - count: number - -OUTPUT: Promise - findMany: [{ id, actorId, name, count, createdAt, updatedAt }] - findOne: { id, actorId, name, count, createdAt, updatedAt } - create: { id, actorId, name, count, createdAt, updatedAt } - update: { id, actorId, name, count, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: appAchievement - -Access: `db.appAchievement` - -``` -METHODS: - db.appAchievement.findMany({ select, where?, orderBy?, first?, offset? }) - db.appAchievement.findOne({ where: { id }, select }) - db.appAchievement.create({ data: { actorId, name, count }, select }) - db.appAchievement.update({ where: { id }, data, select }) - db.appAchievement.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - actorId: string - name: string - count: number - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - actorId: string - name: string - count: number - -OUTPUT: Promise - findMany: [{ id, actorId, name, count, createdAt, updatedAt }] - findOne: { id, actorId, name, count, createdAt, updatedAt } - create: { id, actorId, name, count, createdAt, updatedAt } - update: { id, actorId, name, count, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: invite - -Access: `db.invite` - -``` -METHODS: - db.invite.findMany({ select, where?, orderBy?, first?, offset? }) - db.invite.findOne({ where: { id }, select }) - db.invite.create({ data: { email, senderId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt }, select }) - db.invite.update({ where: { id }, data, select }) - db.invite.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - email: ConstructiveInternalTypeEmail - senderId: string - inviteToken: string - inviteValid: boolean - inviteLimit: number - inviteCount: number - multiple: boolean - data: unknown - expiresAt: string - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - email: ConstructiveInternalTypeEmail - senderId: string - inviteToken: string - inviteValid: boolean - inviteLimit: number - inviteCount: number - multiple: boolean - data: unknown - expiresAt: string - -OUTPUT: Promise - findMany: [{ id, email, senderId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt }] - findOne: { id, email, senderId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt } - create: { id, email, senderId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt } - update: { id, email, senderId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: claimedInvite - -Access: `db.claimedInvite` - -``` -METHODS: - db.claimedInvite.findMany({ select, where?, orderBy?, first?, offset? }) - db.claimedInvite.findOne({ where: { id }, select }) - db.claimedInvite.create({ data: { data, senderId, receiverId }, select }) - db.claimedInvite.update({ where: { id }, data, select }) - db.claimedInvite.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - data: unknown - senderId: string - receiverId: string - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - data: unknown - senderId: string - receiverId: string - -OUTPUT: Promise - findMany: [{ id, data, senderId, receiverId, createdAt, updatedAt }] - findOne: { id, data, senderId, receiverId, createdAt, updatedAt } - create: { id, data, senderId, receiverId, createdAt, updatedAt } - update: { id, data, senderId, receiverId, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: orgInvite - -Access: `db.orgInvite` - -``` -METHODS: - db.orgInvite.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgInvite.findOne({ where: { id }, select }) - db.orgInvite.create({ data: { email, senderId, receiverId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, entityId }, select }) - db.orgInvite.update({ where: { id }, data, select }) - db.orgInvite.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - email: ConstructiveInternalTypeEmail - senderId: string - receiverId: string - inviteToken: string - inviteValid: boolean - inviteLimit: number - inviteCount: number - multiple: boolean - data: unknown - expiresAt: string - entityId: string - -OUTPUT: Promise - findMany: [{ id, email, senderId, receiverId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt, entityId }] - findOne: { id, email, senderId, receiverId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt, entityId } - create: { id, email, senderId, receiverId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt, entityId } - update: { id, email, senderId, receiverId, inviteToken, inviteValid, inviteLimit, inviteCount, multiple, data, expiresAt, createdAt, updatedAt, entityId } - delete: { id } -``` - -### MODEL: orgClaimedInvite - -Access: `db.orgClaimedInvite` - -``` -METHODS: - db.orgClaimedInvite.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgClaimedInvite.findOne({ where: { id }, select }) - db.orgClaimedInvite.create({ data: { data, senderId, receiverId, entityId }, select }) - db.orgClaimedInvite.update({ where: { id }, data, select }) - db.orgClaimedInvite.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - data: unknown - senderId: string - receiverId: string - createdAt: string - updatedAt: string - entityId: string - -EDITABLE FIELDS: - data: unknown - senderId: string - receiverId: string - entityId: string - -OUTPUT: Promise - findMany: [{ id, data, senderId, receiverId, createdAt, updatedAt, entityId }] - findOne: { id, data, senderId, receiverId, createdAt, updatedAt, entityId } - create: { id, data, senderId, receiverId, createdAt, updatedAt, entityId } - update: { id, data, senderId, receiverId, createdAt, updatedAt, entityId } - delete: { id } -``` - -### MODEL: appPermissionDefault - -Access: `db.appPermissionDefault` - -``` -METHODS: - db.appPermissionDefault.findMany({ select, where?, orderBy?, first?, offset? }) - db.appPermissionDefault.findOne({ where: { id }, select }) - db.appPermissionDefault.create({ data: { permissions }, select }) - db.appPermissionDefault.update({ where: { id }, data, select }) - db.appPermissionDefault.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - permissions: string - -EDITABLE FIELDS: - permissions: string - -OUTPUT: Promise - findMany: [{ id, permissions }] - findOne: { id, permissions } - create: { id, permissions } - update: { id, permissions } - delete: { id } -``` - -### MODEL: ref - -Access: `db.ref` - -``` -METHODS: - db.ref.findMany({ select, where?, orderBy?, first?, offset? }) - db.ref.findOne({ where: { id }, select }) - db.ref.create({ data: { name, databaseId, storeId, commitId }, select }) - db.ref.update({ where: { id }, data, select }) - db.ref.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - name: string - databaseId: string - storeId: string - commitId: string - -EDITABLE FIELDS: - name: string - databaseId: string - storeId: string - commitId: string - -OUTPUT: Promise - findMany: [{ id, name, databaseId, storeId, commitId }] - findOne: { id, name, databaseId, storeId, commitId } - create: { id, name, databaseId, storeId, commitId } - update: { id, name, databaseId, storeId, commitId } - delete: { id } -``` - -### MODEL: store - -Access: `db.store` - -``` -METHODS: - db.store.findMany({ select, where?, orderBy?, first?, offset? }) - db.store.findOne({ where: { id }, select }) - db.store.create({ data: { name, databaseId, hash }, select }) - db.store.update({ where: { id }, data, select }) - db.store.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - name: string - databaseId: string - hash: string - createdAt: string - -EDITABLE FIELDS: - name: string - databaseId: string - hash: string - -OUTPUT: Promise - findMany: [{ id, name, databaseId, hash, createdAt }] - findOne: { id, name, databaseId, hash, createdAt } - create: { id, name, databaseId, hash, createdAt } - update: { id, name, databaseId, hash, createdAt } - delete: { id } -``` - -### MODEL: roleType - -Access: `db.roleType` - -``` -METHODS: - db.roleType.findMany({ select, where?, orderBy?, first?, offset? }) - db.roleType.findOne({ where: { id }, select }) - db.roleType.create({ data: { name }, select }) - db.roleType.update({ where: { id }, data, select }) - db.roleType.delete({ where: { id } }) - -FIELDS: - id: number (primary key) - name: string - -EDITABLE FIELDS: - name: string - -OUTPUT: Promise - findMany: [{ id, name }] - findOne: { id, name } - create: { id, name } - update: { id, name } - delete: { id } -``` - -### MODEL: orgPermissionDefault - -Access: `db.orgPermissionDefault` - -``` -METHODS: - db.orgPermissionDefault.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgPermissionDefault.findOne({ where: { id }, select }) - db.orgPermissionDefault.create({ data: { permissions, entityId }, select }) - db.orgPermissionDefault.update({ where: { id }, data, select }) - db.orgPermissionDefault.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - permissions: string - entityId: string - -EDITABLE FIELDS: - permissions: string - entityId: string - -OUTPUT: Promise - findMany: [{ id, permissions, entityId }] - findOne: { id, permissions, entityId } - create: { id, permissions, entityId } - update: { id, permissions, entityId } - delete: { id } -``` - -### MODEL: appLimitDefault - -Access: `db.appLimitDefault` - -``` -METHODS: - db.appLimitDefault.findMany({ select, where?, orderBy?, first?, offset? }) - db.appLimitDefault.findOne({ where: { id }, select }) - db.appLimitDefault.create({ data: { name, max }, select }) - db.appLimitDefault.update({ where: { id }, data, select }) - db.appLimitDefault.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - name: string - max: number - -EDITABLE FIELDS: - name: string - max: number - -OUTPUT: Promise - findMany: [{ id, name, max }] - findOne: { id, name, max } - create: { id, name, max } - update: { id, name, max } - delete: { id } -``` - -### MODEL: orgLimitDefault - -Access: `db.orgLimitDefault` - -``` -METHODS: - db.orgLimitDefault.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgLimitDefault.findOne({ where: { id }, select }) - db.orgLimitDefault.create({ data: { name, max }, select }) - db.orgLimitDefault.update({ where: { id }, data, select }) - db.orgLimitDefault.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - name: string - max: number - -EDITABLE FIELDS: - name: string - max: number - -OUTPUT: Promise - findMany: [{ id, name, max }] - findOne: { id, name, max } - create: { id, name, max } - update: { id, name, max } - delete: { id } -``` - -### MODEL: cryptoAddress - -Access: `db.cryptoAddress` - -``` -METHODS: - db.cryptoAddress.findMany({ select, where?, orderBy?, first?, offset? }) - db.cryptoAddress.findOne({ where: { id }, select }) - db.cryptoAddress.create({ data: { ownerId, address, isVerified, isPrimary }, select }) - db.cryptoAddress.update({ where: { id }, data, select }) - db.cryptoAddress.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - ownerId: string - address: string - isVerified: boolean - isPrimary: boolean - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - ownerId: string - address: string - isVerified: boolean - isPrimary: boolean - -OUTPUT: Promise - findMany: [{ id, ownerId, address, isVerified, isPrimary, createdAt, updatedAt }] - findOne: { id, ownerId, address, isVerified, isPrimary, createdAt, updatedAt } - create: { id, ownerId, address, isVerified, isPrimary, createdAt, updatedAt } - update: { id, ownerId, address, isVerified, isPrimary, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: membershipType - -Access: `db.membershipType` - -``` -METHODS: - db.membershipType.findMany({ select, where?, orderBy?, first?, offset? }) - db.membershipType.findOne({ where: { id }, select }) - db.membershipType.create({ data: { name, description, prefix }, select }) - db.membershipType.update({ where: { id }, data, select }) - db.membershipType.delete({ where: { id } }) - -FIELDS: - id: number (primary key) - name: string - description: string - prefix: string - -EDITABLE FIELDS: - name: string - description: string - prefix: string - -OUTPUT: Promise - findMany: [{ id, name, description, prefix }] - findOne: { id, name, description, prefix } - create: { id, name, description, prefix } - update: { id, name, description, prefix } - delete: { id } -``` - -### MODEL: connectedAccount - -Access: `db.connectedAccount` - -``` -METHODS: - db.connectedAccount.findMany({ select, where?, orderBy?, first?, offset? }) - db.connectedAccount.findOne({ where: { id }, select }) - db.connectedAccount.create({ data: { ownerId, service, identifier, details, isVerified }, select }) - db.connectedAccount.update({ where: { id }, data, select }) - db.connectedAccount.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - ownerId: string - service: string - identifier: string - details: unknown - isVerified: boolean - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - ownerId: string - service: string - identifier: string - details: unknown - isVerified: boolean - -OUTPUT: Promise - findMany: [{ id, ownerId, service, identifier, details, isVerified, createdAt, updatedAt }] - findOne: { id, ownerId, service, identifier, details, isVerified, createdAt, updatedAt } - create: { id, ownerId, service, identifier, details, isVerified, createdAt, updatedAt } - update: { id, ownerId, service, identifier, details, isVerified, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: phoneNumber - -Access: `db.phoneNumber` - -``` -METHODS: - db.phoneNumber.findMany({ select, where?, orderBy?, first?, offset? }) - db.phoneNumber.findOne({ where: { id }, select }) - db.phoneNumber.create({ data: { ownerId, cc, number, isVerified, isPrimary }, select }) - db.phoneNumber.update({ where: { id }, data, select }) - db.phoneNumber.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - ownerId: string - cc: string - number: string - isVerified: boolean - isPrimary: boolean - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - ownerId: string - cc: string - number: string - isVerified: boolean - isPrimary: boolean - -OUTPUT: Promise - findMany: [{ id, ownerId, cc, number, isVerified, isPrimary, createdAt, updatedAt }] - findOne: { id, ownerId, cc, number, isVerified, isPrimary, createdAt, updatedAt } - create: { id, ownerId, cc, number, isVerified, isPrimary, createdAt, updatedAt } - update: { id, ownerId, cc, number, isVerified, isPrimary, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: appMembershipDefault - -Access: `db.appMembershipDefault` - -``` -METHODS: - db.appMembershipDefault.findMany({ select, where?, orderBy?, first?, offset? }) - db.appMembershipDefault.findOne({ where: { id }, select }) - db.appMembershipDefault.create({ data: { createdBy, updatedBy, isApproved, isVerified }, select }) - db.appMembershipDefault.update({ where: { id }, data, select }) - db.appMembershipDefault.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - createdAt: string - updatedAt: string - createdBy: string - updatedBy: string - isApproved: boolean - isVerified: boolean - -EDITABLE FIELDS: - createdBy: string - updatedBy: string - isApproved: boolean - isVerified: boolean - -OUTPUT: Promise - findMany: [{ id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isVerified }] - findOne: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isVerified } - create: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isVerified } - update: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isVerified } - delete: { id } -``` - -### MODEL: nodeTypeRegistry - -Access: `db.nodeTypeRegistry` - -``` -METHODS: - db.nodeTypeRegistry.findMany({ select, where?, orderBy?, first?, offset? }) - db.nodeTypeRegistry.findOne({ where: { name }, select }) - db.nodeTypeRegistry.create({ data: { slug, category, displayName, description, parameterSchema, tags }, select }) - db.nodeTypeRegistry.update({ where: { name }, data, select }) - db.nodeTypeRegistry.delete({ where: { name } }) - -FIELDS: - name: string (primary key) - slug: string - category: string - displayName: string - description: string - parameterSchema: unknown - tags: string[] - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - slug: string - category: string - displayName: string - description: string - parameterSchema: unknown - tags: string[] - -OUTPUT: Promise - findMany: [{ name, slug, category, displayName, description, parameterSchema, tags, createdAt, updatedAt }] - findOne: { name, slug, category, displayName, description, parameterSchema, tags, createdAt, updatedAt } - create: { name, slug, category, displayName, description, parameterSchema, tags, createdAt, updatedAt } - update: { name, slug, category, displayName, description, parameterSchema, tags, createdAt, updatedAt } - delete: { name } -``` - -### MODEL: commit - -Access: `db.commit` - -``` -METHODS: - db.commit.findMany({ select, where?, orderBy?, first?, offset? }) - db.commit.findOne({ where: { id }, select }) - db.commit.create({ data: { message, databaseId, storeId, parentIds, authorId, committerId, treeId, date }, select }) - db.commit.update({ where: { id }, data, select }) - db.commit.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - message: string - databaseId: string - storeId: string - parentIds: string[] - authorId: string - committerId: string - treeId: string - date: string - -EDITABLE FIELDS: - message: string - databaseId: string - storeId: string - parentIds: string[] - authorId: string - committerId: string - treeId: string - date: string - -OUTPUT: Promise - findMany: [{ id, message, databaseId, storeId, parentIds, authorId, committerId, treeId, date }] - findOne: { id, message, databaseId, storeId, parentIds, authorId, committerId, treeId, date } - create: { id, message, databaseId, storeId, parentIds, authorId, committerId, treeId, date } - update: { id, message, databaseId, storeId, parentIds, authorId, committerId, treeId, date } - delete: { id } -``` - -### MODEL: orgMembershipDefault - -Access: `db.orgMembershipDefault` - -``` -METHODS: - db.orgMembershipDefault.findMany({ select, where?, orderBy?, first?, offset? }) - db.orgMembershipDefault.findOne({ where: { id }, select }) - db.orgMembershipDefault.create({ data: { createdBy, updatedBy, isApproved, entityId, deleteMemberCascadeGroups, createGroupsCascadeMembers }, select }) - db.orgMembershipDefault.update({ where: { id }, data, select }) - db.orgMembershipDefault.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - createdAt: string - updatedAt: string - createdBy: string - updatedBy: string - isApproved: boolean - entityId: string - deleteMemberCascadeGroups: boolean - createGroupsCascadeMembers: boolean - -EDITABLE FIELDS: - createdBy: string - updatedBy: string - isApproved: boolean - entityId: string - deleteMemberCascadeGroups: boolean - createGroupsCascadeMembers: boolean - -OUTPUT: Promise - findMany: [{ id, createdAt, updatedAt, createdBy, updatedBy, isApproved, entityId, deleteMemberCascadeGroups, createGroupsCascadeMembers }] - findOne: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, entityId, deleteMemberCascadeGroups, createGroupsCascadeMembers } - create: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, entityId, deleteMemberCascadeGroups, createGroupsCascadeMembers } - update: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, entityId, deleteMemberCascadeGroups, createGroupsCascadeMembers } - delete: { id } -``` - -### MODEL: email - -Access: `db.email` - -``` -METHODS: - db.email.findMany({ select, where?, orderBy?, first?, offset? }) - db.email.findOne({ where: { id }, select }) - db.email.create({ data: { ownerId, email, isVerified, isPrimary }, select }) - db.email.update({ where: { id }, data, select }) - db.email.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - ownerId: string - email: ConstructiveInternalTypeEmail - isVerified: boolean - isPrimary: boolean - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - ownerId: string - email: ConstructiveInternalTypeEmail - isVerified: boolean - isPrimary: boolean - -OUTPUT: Promise - findMany: [{ id, ownerId, email, isVerified, isPrimary, createdAt, updatedAt }] - findOne: { id, ownerId, email, isVerified, isPrimary, createdAt, updatedAt } - create: { id, ownerId, email, isVerified, isPrimary, createdAt, updatedAt } - update: { id, ownerId, email, isVerified, isPrimary, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: auditLog - -Access: `db.auditLog` - -``` -METHODS: - db.auditLog.findMany({ select, where?, orderBy?, first?, offset? }) - db.auditLog.findOne({ where: { id }, select }) - db.auditLog.create({ data: { event, actorId, origin, userAgent, ipAddress, success }, select }) - db.auditLog.update({ where: { id }, data, select }) - db.auditLog.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - event: string - actorId: string - origin: ConstructiveInternalTypeOrigin - userAgent: string - ipAddress: string - success: boolean - createdAt: string - -EDITABLE FIELDS: - event: string - actorId: string - origin: ConstructiveInternalTypeOrigin - userAgent: string - ipAddress: string - success: boolean - -OUTPUT: Promise - findMany: [{ id, event, actorId, origin, userAgent, ipAddress, success, createdAt }] - findOne: { id, event, actorId, origin, userAgent, ipAddress, success, createdAt } - create: { id, event, actorId, origin, userAgent, ipAddress, success, createdAt } - update: { id, event, actorId, origin, userAgent, ipAddress, success, createdAt } - delete: { id } -``` - -### MODEL: appLevel - -Access: `db.appLevel` - -``` -METHODS: - db.appLevel.findMany({ select, where?, orderBy?, first?, offset? }) - db.appLevel.findOne({ where: { id }, select }) - db.appLevel.create({ data: { name, description, image, ownerId }, select }) - db.appLevel.update({ where: { id }, data, select }) - db.appLevel.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - name: string - description: string - image: ConstructiveInternalTypeImage - ownerId: string - createdAt: string - updatedAt: string - -EDITABLE FIELDS: - name: string - description: string - image: ConstructiveInternalTypeImage - ownerId: string - -OUTPUT: Promise - findMany: [{ id, name, description, image, ownerId, createdAt, updatedAt }] - findOne: { id, name, description, image, ownerId, createdAt, updatedAt } - create: { id, name, description, image, ownerId, createdAt, updatedAt } - update: { id, name, description, image, ownerId, createdAt, updatedAt } - delete: { id } -``` - -### MODEL: sqlMigration - -Access: `db.sqlMigration` - -``` -METHODS: - db.sqlMigration.findMany({ select, where?, orderBy?, first?, offset? }) - db.sqlMigration.findOne({ where: { id }, select }) - db.sqlMigration.create({ data: { name, databaseId, deploy, deps, payload, content, revert, verify, action, actionId, actorId }, select }) - db.sqlMigration.update({ where: { id }, data, select }) - db.sqlMigration.delete({ where: { id } }) - -FIELDS: - id: number (primary key) - name: string - databaseId: string - deploy: string - deps: string[] - payload: unknown - content: string - revert: string - verify: string - createdAt: string - action: string - actionId: string - actorId: string - -EDITABLE FIELDS: - name: string - databaseId: string - deploy: string - deps: string[] - payload: unknown - content: string - revert: string - verify: string - action: string - actionId: string - actorId: string - -OUTPUT: Promise - findMany: [{ id, name, databaseId, deploy, deps, payload, content, revert, verify, createdAt, action, actionId, actorId }] - findOne: { id, name, databaseId, deploy, deps, payload, content, revert, verify, createdAt, action, actionId, actorId } - create: { id, name, databaseId, deploy, deps, payload, content, revert, verify, createdAt, action, actionId, actorId } - update: { id, name, databaseId, deploy, deps, payload, content, revert, verify, createdAt, action, actionId, actorId } - delete: { id } -``` - -### MODEL: astMigration - -Access: `db.astMigration` - -``` -METHODS: - db.astMigration.findMany({ select, where?, orderBy?, first?, offset? }) - db.astMigration.findOne({ where: { id }, select }) - db.astMigration.create({ data: { databaseId, name, requires, payload, deploys, deploy, revert, verify, action, actionId, actorId }, select }) - db.astMigration.update({ where: { id }, data, select }) - db.astMigration.delete({ where: { id } }) - -FIELDS: - id: number (primary key) - databaseId: string - name: string - requires: string[] - payload: unknown - deploys: string - deploy: unknown - revert: unknown - verify: unknown - createdAt: string - action: string - actionId: string - actorId: string - -EDITABLE FIELDS: - databaseId: string - name: string - requires: string[] - payload: unknown - deploys: string - deploy: unknown - revert: unknown - verify: unknown - action: string - actionId: string - actorId: string - -OUTPUT: Promise - findMany: [{ id, databaseId, name, requires, payload, deploys, deploy, revert, verify, createdAt, action, actionId, actorId }] - findOne: { id, databaseId, name, requires, payload, deploys, deploy, revert, verify, createdAt, action, actionId, actorId } - create: { id, databaseId, name, requires, payload, deploys, deploy, revert, verify, createdAt, action, actionId, actorId } - update: { id, databaseId, name, requires, payload, deploys, deploy, revert, verify, createdAt, action, actionId, actorId } - delete: { id } -``` - -### MODEL: appMembership - -Access: `db.appMembership` - -``` -METHODS: - db.appMembership.findMany({ select, where?, orderBy?, first?, offset? }) - db.appMembership.findOne({ where: { id }, select }) - db.appMembership.create({ data: { createdBy, updatedBy, isApproved, isBanned, isDisabled, isVerified, isActive, isOwner, isAdmin, permissions, granted, actorId }, select }) - db.appMembership.update({ where: { id }, data, select }) - db.appMembership.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - createdBy: string - updatedBy: string - isApproved: boolean - isBanned: boolean - isDisabled: boolean - isVerified: boolean - isActive: boolean - isOwner: boolean - isAdmin: boolean - permissions: string - granted: string - actorId: string - -OUTPUT: Promise - findMany: [{ id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isVerified, isActive, isOwner, isAdmin, permissions, granted, actorId }] - findOne: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isVerified, isActive, isOwner, isAdmin, permissions, granted, actorId } - create: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isVerified, isActive, isOwner, isAdmin, permissions, granted, actorId } - update: { id, createdAt, updatedAt, createdBy, updatedBy, isApproved, isBanned, isDisabled, isVerified, isActive, isOwner, isAdmin, permissions, granted, actorId } - delete: { id } -``` - -### MODEL: user - -Access: `db.user` - -``` -METHODS: - db.user.findMany({ select, where?, orderBy?, first?, offset? }) - db.user.findOne({ where: { id }, select }) - db.user.create({ data: { username, displayName, profilePicture, searchTsv, type, searchTsvRank }, select }) - db.user.update({ where: { id }, data, select }) - db.user.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - username: string - displayName: string - profilePicture: ConstructiveInternalTypeImage - searchTsv: string - type: number - createdAt: string - updatedAt: string - searchTsvRank: number - -EDITABLE FIELDS: - username: string - displayName: string - profilePicture: ConstructiveInternalTypeImage - searchTsv: string - type: number - searchTsvRank: number - -OUTPUT: Promise - findMany: [{ id, username, displayName, profilePicture, searchTsv, type, createdAt, updatedAt, searchTsvRank }] - findOne: { id, username, displayName, profilePicture, searchTsv, type, createdAt, updatedAt, searchTsvRank } - create: { id, username, displayName, profilePicture, searchTsv, type, createdAt, updatedAt, searchTsvRank } - update: { id, username, displayName, profilePicture, searchTsv, type, createdAt, updatedAt, searchTsvRank } - delete: { id } -``` - -### MODEL: hierarchyModule - -Access: `db.hierarchyModule` - -``` -METHODS: - db.hierarchyModule.findMany({ select, where?, orderBy?, first?, offset? }) - db.hierarchyModule.findOne({ where: { id }, select }) - db.hierarchyModule.create({ data: { databaseId, schemaId, privateSchemaId, chartEdgesTableId, chartEdgesTableName, hierarchySprtTableId, hierarchySprtTableName, chartEdgeGrantsTableId, chartEdgeGrantsTableName, entityTableId, usersTableId, prefix, privateSchemaName, sprtTableName, rebuildHierarchyFunction, getSubordinatesFunction, getManagersFunction, isManagerOfFunction }, select }) - db.hierarchyModule.update({ where: { id }, data, select }) - db.hierarchyModule.delete({ where: { id } }) - -FIELDS: - id: string (primary key) - 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 - -EDITABLE FIELDS: - 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 - -OUTPUT: Promise - findMany: [{ id, databaseId, schemaId, privateSchemaId, chartEdgesTableId, chartEdgesTableName, hierarchySprtTableId, hierarchySprtTableName, chartEdgeGrantsTableId, chartEdgeGrantsTableName, entityTableId, usersTableId, prefix, privateSchemaName, sprtTableName, rebuildHierarchyFunction, getSubordinatesFunction, getManagersFunction, isManagerOfFunction, createdAt }] - findOne: { id, databaseId, schemaId, privateSchemaId, chartEdgesTableId, chartEdgesTableName, hierarchySprtTableId, hierarchySprtTableName, chartEdgeGrantsTableId, chartEdgeGrantsTableName, entityTableId, usersTableId, prefix, privateSchemaName, sprtTableName, rebuildHierarchyFunction, getSubordinatesFunction, getManagersFunction, isManagerOfFunction, createdAt } - create: { id, databaseId, schemaId, privateSchemaId, chartEdgesTableId, chartEdgesTableName, hierarchySprtTableId, hierarchySprtTableName, chartEdgeGrantsTableId, chartEdgeGrantsTableName, entityTableId, usersTableId, prefix, privateSchemaName, sprtTableName, rebuildHierarchyFunction, getSubordinatesFunction, getManagersFunction, isManagerOfFunction, createdAt } - update: { id, databaseId, schemaId, privateSchemaId, chartEdgesTableId, chartEdgesTableName, hierarchySprtTableId, hierarchySprtTableName, chartEdgeGrantsTableId, chartEdgeGrantsTableName, entityTableId, usersTableId, prefix, privateSchemaName, sprtTableName, rebuildHierarchyFunction, getSubordinatesFunction, getManagersFunction, isManagerOfFunction, createdAt } - delete: { id } -``` - -## CUSTOM OPERATIONS - -### OPERATION: currentUserId - -currentUserId - -``` -TYPE: query -ACCESS: db.query.currentUserId -USAGE: db.query.currentUserId().execute() - -INPUT: none - -OUTPUT: Promise -``` - -### OPERATION: currentIpAddress - -currentIpAddress - -``` -TYPE: query -ACCESS: db.query.currentIpAddress -USAGE: db.query.currentIpAddress().execute() - -INPUT: none - -OUTPUT: Promise -``` - -### OPERATION: currentUserAgent - -currentUserAgent - -``` -TYPE: query -ACCESS: db.query.currentUserAgent -USAGE: db.query.currentUserAgent().execute() - -INPUT: none - -OUTPUT: Promise -``` - -### OPERATION: appPermissionsGetPaddedMask - -appPermissionsGetPaddedMask - -``` -TYPE: query -ACCESS: db.query.appPermissionsGetPaddedMask -USAGE: db.query.appPermissionsGetPaddedMask({ mask: }).execute() - -INPUT: - mask: BitString - -OUTPUT: Promise -``` - -### OPERATION: orgPermissionsGetPaddedMask - -orgPermissionsGetPaddedMask - -``` -TYPE: query -ACCESS: db.query.orgPermissionsGetPaddedMask -USAGE: db.query.orgPermissionsGetPaddedMask({ mask: }).execute() - -INPUT: - mask: BitString - -OUTPUT: Promise -``` - -### OPERATION: stepsAchieved - -stepsAchieved - -``` -TYPE: query -ACCESS: db.query.stepsAchieved -USAGE: db.query.stepsAchieved({ vlevel: , vroleId: }).execute() - -INPUT: - vlevel: String - vroleId: UUID - -OUTPUT: Promise -``` - -### OPERATION: revParse - -revParse - -``` -TYPE: query -ACCESS: db.query.revParse -USAGE: db.query.revParse({ dbId: , storeId: , refname: }).execute() - -INPUT: - dbId: UUID - storeId: UUID - refname: String - -OUTPUT: Promise -``` - -### OPERATION: appPermissionsGetMask - -appPermissionsGetMask - -``` -TYPE: query -ACCESS: db.query.appPermissionsGetMask -USAGE: db.query.appPermissionsGetMask({ ids: }).execute() - -INPUT: - ids: [UUID] - -OUTPUT: Promise -``` - -### OPERATION: orgPermissionsGetMask - -orgPermissionsGetMask - -``` -TYPE: query -ACCESS: db.query.orgPermissionsGetMask -USAGE: db.query.orgPermissionsGetMask({ ids: }).execute() - -INPUT: - ids: [UUID] - -OUTPUT: Promise -``` - -### OPERATION: appPermissionsGetMaskByNames - -appPermissionsGetMaskByNames - -``` -TYPE: query -ACCESS: db.query.appPermissionsGetMaskByNames -USAGE: db.query.appPermissionsGetMaskByNames({ names: }).execute() - -INPUT: - names: [String] - -OUTPUT: Promise -``` - -### OPERATION: orgPermissionsGetMaskByNames - -orgPermissionsGetMaskByNames - -``` -TYPE: query -ACCESS: db.query.orgPermissionsGetMaskByNames -USAGE: db.query.orgPermissionsGetMaskByNames({ names: }).execute() - -INPUT: - names: [String] - -OUTPUT: Promise -``` - -### OPERATION: appPermissionsGetByMask - -Reads and enables pagination through a set of `AppPermission`. - -``` -TYPE: query -ACCESS: db.query.appPermissionsGetByMask -USAGE: db.query.appPermissionsGetByMask({ mask: , first: , offset: , after: }).execute() - -INPUT: - mask: BitString - first: Int - offset: Int - after: Cursor - -OUTPUT: Promise -``` - -### OPERATION: orgPermissionsGetByMask - -Reads and enables pagination through a set of `OrgPermission`. - -``` -TYPE: query -ACCESS: db.query.orgPermissionsGetByMask -USAGE: db.query.orgPermissionsGetByMask({ mask: , first: , offset: , after: }).execute() - -INPUT: - mask: BitString - first: Int - offset: Int - after: Cursor - -OUTPUT: Promise -``` - -### OPERATION: getAllObjectsFromRoot - -Reads and enables pagination through a set of `Object`. - -``` -TYPE: query -ACCESS: db.query.getAllObjectsFromRoot -USAGE: db.query.getAllObjectsFromRoot({ databaseId: , id: , first: , offset: , after: }).execute() - -INPUT: - databaseId: UUID - id: UUID - first: Int - offset: Int - after: Cursor - -OUTPUT: Promise -``` - -### OPERATION: getPathObjectsFromRoot - -Reads and enables pagination through a set of `Object`. - -``` -TYPE: query -ACCESS: db.query.getPathObjectsFromRoot -USAGE: db.query.getPathObjectsFromRoot({ databaseId: , id: , path: , first: , offset: , after: }).execute() - -INPUT: - databaseId: UUID - id: UUID - path: [String] - first: Int - offset: Int - after: Cursor - -OUTPUT: Promise -``` - -### OPERATION: getObjectAtPath - -getObjectAtPath - -``` -TYPE: query -ACCESS: db.query.getObjectAtPath -USAGE: db.query.getObjectAtPath({ dbId: , storeId: , path: , refname: }).execute() - -INPUT: - dbId: UUID - storeId: UUID - path: [String] - refname: String - -OUTPUT: Promise -``` - -### OPERATION: stepsRequired - -Reads and enables pagination through a set of `AppLevelRequirement`. - -``` -TYPE: query -ACCESS: db.query.stepsRequired -USAGE: db.query.stepsRequired({ vlevel: , vroleId: , first: , offset: , after: }).execute() - -INPUT: - vlevel: String - vroleId: UUID - first: Int - offset: Int - after: Cursor - -OUTPUT: Promise -``` - -### OPERATION: currentUser - -currentUser - -``` -TYPE: query -ACCESS: db.query.currentUser -USAGE: db.query.currentUser().execute() - -INPUT: none - -OUTPUT: Promise -``` - -### OPERATION: signOut - -signOut - -``` -TYPE: mutation -ACCESS: db.mutation.signOut -USAGE: db.mutation.signOut({ input: }).execute() - -INPUT: - input: SignOutInput (required) - -OUTPUT: Promise -``` - -### OPERATION: sendAccountDeletionEmail - -sendAccountDeletionEmail - -``` -TYPE: mutation -ACCESS: db.mutation.sendAccountDeletionEmail -USAGE: db.mutation.sendAccountDeletionEmail({ input: }).execute() - -INPUT: - input: SendAccountDeletionEmailInput (required) - -OUTPUT: Promise -``` - -### OPERATION: checkPassword - -checkPassword - -``` -TYPE: mutation -ACCESS: db.mutation.checkPassword -USAGE: db.mutation.checkPassword({ input: }).execute() - -INPUT: - input: CheckPasswordInput (required) - -OUTPUT: Promise -``` - -### OPERATION: submitInviteCode - -submitInviteCode - -``` -TYPE: mutation -ACCESS: db.mutation.submitInviteCode -USAGE: db.mutation.submitInviteCode({ input: }).execute() - -INPUT: - input: SubmitInviteCodeInput (required) - -OUTPUT: Promise -``` - -### OPERATION: submitOrgInviteCode - -submitOrgInviteCode - -``` -TYPE: mutation -ACCESS: db.mutation.submitOrgInviteCode -USAGE: db.mutation.submitOrgInviteCode({ input: }).execute() - -INPUT: - input: SubmitOrgInviteCodeInput (required) - -OUTPUT: Promise -``` - -### OPERATION: freezeObjects - -freezeObjects - -``` -TYPE: mutation -ACCESS: db.mutation.freezeObjects -USAGE: db.mutation.freezeObjects({ input: }).execute() - -INPUT: - input: FreezeObjectsInput (required) - -OUTPUT: Promise -``` - -### OPERATION: initEmptyRepo - -initEmptyRepo - -``` -TYPE: mutation -ACCESS: db.mutation.initEmptyRepo -USAGE: db.mutation.initEmptyRepo({ input: }).execute() - -INPUT: - input: InitEmptyRepoInput (required) - -OUTPUT: Promise -``` - -### OPERATION: confirmDeleteAccount - -confirmDeleteAccount - -``` -TYPE: mutation -ACCESS: db.mutation.confirmDeleteAccount -USAGE: db.mutation.confirmDeleteAccount({ input: }).execute() - -INPUT: - input: ConfirmDeleteAccountInput (required) - -OUTPUT: Promise -``` - -### OPERATION: setPassword - -setPassword - -``` -TYPE: mutation -ACCESS: db.mutation.setPassword -USAGE: db.mutation.setPassword({ input: }).execute() - -INPUT: - input: SetPasswordInput (required) - -OUTPUT: Promise -``` - -### OPERATION: verifyEmail - -verifyEmail - -``` -TYPE: mutation -ACCESS: db.mutation.verifyEmail -USAGE: db.mutation.verifyEmail({ input: }).execute() - -INPUT: - input: VerifyEmailInput (required) - -OUTPUT: Promise -``` - -### OPERATION: resetPassword - -resetPassword - -``` -TYPE: mutation -ACCESS: db.mutation.resetPassword -USAGE: db.mutation.resetPassword({ input: }).execute() - -INPUT: - input: ResetPasswordInput (required) - -OUTPUT: Promise -``` - -### OPERATION: removeNodeAtPath - -removeNodeAtPath - -``` -TYPE: mutation -ACCESS: db.mutation.removeNodeAtPath -USAGE: db.mutation.removeNodeAtPath({ input: }).execute() - -INPUT: - input: RemoveNodeAtPathInput (required) - -OUTPUT: Promise -``` - -### OPERATION: bootstrapUser - -bootstrapUser - -``` -TYPE: mutation -ACCESS: db.mutation.bootstrapUser -USAGE: db.mutation.bootstrapUser({ input: }).execute() - -INPUT: - input: BootstrapUserInput (required) - -OUTPUT: Promise -``` - -### OPERATION: setDataAtPath - -setDataAtPath - -``` -TYPE: mutation -ACCESS: db.mutation.setDataAtPath -USAGE: db.mutation.setDataAtPath({ input: }).execute() - -INPUT: - input: SetDataAtPathInput (required) - -OUTPUT: Promise -``` - -### OPERATION: setPropsAndCommit - -setPropsAndCommit - -``` -TYPE: mutation -ACCESS: db.mutation.setPropsAndCommit -USAGE: db.mutation.setPropsAndCommit({ input: }).execute() - -INPUT: - input: SetPropsAndCommitInput (required) - -OUTPUT: Promise -``` - -### OPERATION: provisionDatabaseWithUser - -provisionDatabaseWithUser - -``` -TYPE: mutation -ACCESS: db.mutation.provisionDatabaseWithUser -USAGE: db.mutation.provisionDatabaseWithUser({ input: }).execute() - -INPUT: - input: ProvisionDatabaseWithUserInput (required) - -OUTPUT: Promise -``` - -### OPERATION: signInOneTimeToken - -signInOneTimeToken - -``` -TYPE: mutation -ACCESS: db.mutation.signInOneTimeToken -USAGE: db.mutation.signInOneTimeToken({ input: }).execute() - -INPUT: - input: SignInOneTimeTokenInput (required) - -OUTPUT: Promise -``` - -### OPERATION: 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 -ACCESS: db.mutation.createUserDatabase -USAGE: db.mutation.createUserDatabase({ input: }).execute() - -INPUT: - input: CreateUserDatabaseInput (required) - -OUTPUT: Promise -``` - -### OPERATION: extendTokenExpires - -extendTokenExpires - -``` -TYPE: mutation -ACCESS: db.mutation.extendTokenExpires -USAGE: db.mutation.extendTokenExpires({ input: }).execute() - -INPUT: - input: ExtendTokenExpiresInput (required) - -OUTPUT: Promise -``` - -### OPERATION: signIn - -signIn - -``` -TYPE: mutation -ACCESS: db.mutation.signIn -USAGE: db.mutation.signIn({ input: }).execute() - -INPUT: - input: SignInInput (required) - -OUTPUT: Promise -``` - -### OPERATION: signUp - -signUp - -``` -TYPE: mutation -ACCESS: db.mutation.signUp -USAGE: db.mutation.signUp({ input: }).execute() - -INPUT: - input: SignUpInput (required) - -OUTPUT: Promise -``` - -### OPERATION: setFieldOrder - -setFieldOrder - -``` -TYPE: mutation -ACCESS: db.mutation.setFieldOrder -USAGE: db.mutation.setFieldOrder({ input: }).execute() - -INPUT: - input: SetFieldOrderInput (required) - -OUTPUT: Promise -``` - -### OPERATION: oneTimeToken - -oneTimeToken - -``` -TYPE: mutation -ACCESS: db.mutation.oneTimeToken -USAGE: db.mutation.oneTimeToken({ input: }).execute() - -INPUT: - input: OneTimeTokenInput (required) - -OUTPUT: Promise -``` - -### OPERATION: insertNodeAtPath - -insertNodeAtPath - -``` -TYPE: mutation -ACCESS: db.mutation.insertNodeAtPath -USAGE: db.mutation.insertNodeAtPath({ input: }).execute() - -INPUT: - input: InsertNodeAtPathInput (required) - -OUTPUT: Promise -``` - -### OPERATION: updateNodeAtPath - -updateNodeAtPath - -``` -TYPE: mutation -ACCESS: db.mutation.updateNodeAtPath -USAGE: db.mutation.updateNodeAtPath({ input: }).execute() - -INPUT: - input: UpdateNodeAtPathInput (required) - -OUTPUT: Promise -``` - -### OPERATION: setAndCommit - -setAndCommit - -``` -TYPE: mutation -ACCESS: db.mutation.setAndCommit -USAGE: db.mutation.setAndCommit({ input: }).execute() - -INPUT: - input: SetAndCommitInput (required) - -OUTPUT: Promise -``` - -### OPERATION: applyRls - -applyRls - -``` -TYPE: mutation -ACCESS: db.mutation.applyRls -USAGE: db.mutation.applyRls({ input: }).execute() - -INPUT: - input: ApplyRlsInput (required) - -OUTPUT: Promise -``` - -### OPERATION: forgotPassword - -forgotPassword - -``` -TYPE: mutation -ACCESS: db.mutation.forgotPassword -USAGE: db.mutation.forgotPassword({ input: }).execute() - -INPUT: - input: ForgotPasswordInput (required) - -OUTPUT: Promise -``` - -### OPERATION: sendVerificationEmail - -sendVerificationEmail - -``` -TYPE: mutation -ACCESS: db.mutation.sendVerificationEmail -USAGE: db.mutation.sendVerificationEmail({ input: }).execute() - -INPUT: - input: SendVerificationEmailInput (required) - -OUTPUT: Promise -``` - -### OPERATION: verifyPassword - -verifyPassword - -``` -TYPE: mutation -ACCESS: db.mutation.verifyPassword -USAGE: db.mutation.verifyPassword({ input: }).execute() - -INPUT: - input: VerifyPasswordInput (required) - -OUTPUT: Promise -``` - -### OPERATION: verifyTotp - -verifyTotp - -``` -TYPE: mutation -ACCESS: db.mutation.verifyTotp -USAGE: db.mutation.verifyTotp({ input: }).execute() - -INPUT: - input: VerifyTotpInput (required) - -OUTPUT: Promise -``` - -## PATTERNS - -```typescript -// All methods require .execute() to run -const result = await db.modelName.findMany({ select: { id: true } }).execute(); - -// Select specific fields -const partial = await db.modelName.findMany({ select: { id: true, name: true } }).execute(); - -// Filter with where clause -const filtered = await db.modelName.findMany({ select: { id: true }, where: { name: 'test' } }).execute(); -``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/api.md b/sdk/constructive-sdk/src/public/orm/skills/api.md new file mode 100644 index 000000000..9aafa9368 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/api.md @@ -0,0 +1,34 @@ +# orm-api + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Api records + +## Usage + +```typescript +db.api.findMany({ select: { id: true } }).execute() +db.api.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.api.create({ data: { databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }, select: { id: true } }).execute() +db.api.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.api.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all api records + +```typescript +const items = await db.api.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a api + +```typescript +const item = await db.api.create({ + data: { databaseId: 'value', name: 'value', dbname: 'value', roleName: 'value', anonRole: 'value', isPublic: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/apiModule.md b/sdk/constructive-sdk/src/public/orm/skills/apiModule.md new file mode 100644 index 000000000..a4e1d94d3 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/apiModule.md @@ -0,0 +1,34 @@ +# orm-apiModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for ApiModule records + +## Usage + +```typescript +db.apiModule.findMany({ select: { id: true } }).execute() +db.apiModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.apiModule.create({ data: { databaseId: '', apiId: '', name: '', data: '' }, select: { id: true } }).execute() +db.apiModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.apiModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all apiModule records + +```typescript +const items = await db.apiModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a apiModule + +```typescript +const item = await db.apiModule.create({ + data: { databaseId: 'value', apiId: 'value', name: 'value', data: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/apiSchema.md b/sdk/constructive-sdk/src/public/orm/skills/apiSchema.md new file mode 100644 index 000000000..3035f4441 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/apiSchema.md @@ -0,0 +1,34 @@ +# orm-apiSchema + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for ApiSchema records + +## Usage + +```typescript +db.apiSchema.findMany({ select: { id: true } }).execute() +db.apiSchema.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.apiSchema.create({ data: { databaseId: '', schemaId: '', apiId: '' }, select: { id: true } }).execute() +db.apiSchema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.apiSchema.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all apiSchema records + +```typescript +const items = await db.apiSchema.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a apiSchema + +```typescript +const item = await db.apiSchema.create({ + data: { databaseId: 'value', schemaId: 'value', apiId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/app.md b/sdk/constructive-sdk/src/public/orm/skills/app.md new file mode 100644 index 000000000..70ea2b272 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/app.md @@ -0,0 +1,34 @@ +# orm-app + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for App records + +## Usage + +```typescript +db.app.findMany({ select: { id: true } }).execute() +db.app.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.app.create({ data: { databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }, select: { id: true } }).execute() +db.app.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.app.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all app records + +```typescript +const items = await db.app.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a app + +```typescript +const item = await db.app.create({ + data: { databaseId: 'value', siteId: 'value', name: 'value', appImage: 'value', appStoreLink: 'value', appStoreId: 'value', appIdPrefix: 'value', playStoreLink: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appAchievement.md b/sdk/constructive-sdk/src/public/orm/skills/appAchievement.md new file mode 100644 index 000000000..2c6c3ffbf --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/appAchievement.md @@ -0,0 +1,34 @@ +# orm-appAchievement + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppAchievement records + +## Usage + +```typescript +db.appAchievement.findMany({ select: { id: true } }).execute() +db.appAchievement.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() +db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.appAchievement.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appAchievement records + +```typescript +const items = await db.appAchievement.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a appAchievement + +```typescript +const item = await db.appAchievement.create({ + data: { actorId: 'value', name: 'value', count: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appAdminGrant.md b/sdk/constructive-sdk/src/public/orm/skills/appAdminGrant.md new file mode 100644 index 000000000..369c03155 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/appAdminGrant.md @@ -0,0 +1,34 @@ +# orm-appAdminGrant + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppAdminGrant records + +## Usage + +```typescript +db.appAdminGrant.findMany({ select: { id: true } }).execute() +db.appAdminGrant.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() +db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() +db.appAdminGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appAdminGrant records + +```typescript +const items = await db.appAdminGrant.findMany({ + select: { id: true, isGrant: true } +}).execute(); +``` + +### Create a appAdminGrant + +```typescript +const item = await db.appAdminGrant.create({ + data: { isGrant: 'value', actorId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appGrant.md b/sdk/constructive-sdk/src/public/orm/skills/appGrant.md new file mode 100644 index 000000000..a54730e13 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/appGrant.md @@ -0,0 +1,34 @@ +# orm-appGrant + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppGrant records + +## Usage + +```typescript +db.appGrant.findMany({ select: { id: true } }).execute() +db.appGrant.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() +db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() +db.appGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appGrant records + +```typescript +const items = await db.appGrant.findMany({ + select: { id: true, permissions: true } +}).execute(); +``` + +### Create a appGrant + +```typescript +const item = await db.appGrant.create({ + data: { permissions: 'value', isGrant: 'value', actorId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appLevel.md b/sdk/constructive-sdk/src/public/orm/skills/appLevel.md new file mode 100644 index 000000000..9eb953036 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/appLevel.md @@ -0,0 +1,34 @@ +# orm-appLevel + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppLevel records + +## Usage + +```typescript +db.appLevel.findMany({ select: { id: true } }).execute() +db.appLevel.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute() +db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLevel.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLevel records + +```typescript +const items = await db.appLevel.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLevel + +```typescript +const item = await db.appLevel.create({ + data: { name: 'value', description: 'value', image: 'value', ownerId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appLevelRequirement.md b/sdk/constructive-sdk/src/public/orm/skills/appLevelRequirement.md new file mode 100644 index 000000000..284d81a6d --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/appLevelRequirement.md @@ -0,0 +1,34 @@ +# orm-appLevelRequirement + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppLevelRequirement records + +## Usage + +```typescript +db.appLevelRequirement.findMany({ select: { id: true } }).execute() +db.appLevelRequirement.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '' }, select: { id: true } }).execute() +db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLevelRequirement.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLevelRequirement records + +```typescript +const items = await db.appLevelRequirement.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLevelRequirement + +```typescript +const item = await db.appLevelRequirement.create({ + data: { name: 'value', level: 'value', description: 'value', requiredCount: 'value', priority: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appLimit.md b/sdk/constructive-sdk/src/public/orm/skills/appLimit.md new file mode 100644 index 000000000..31c95e668 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/appLimit.md @@ -0,0 +1,34 @@ +# orm-appLimit + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppLimit records + +## Usage + +```typescript +db.appLimit.findMany({ select: { id: true } }).execute() +db.appLimit.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute() +db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLimit.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLimit records + +```typescript +const items = await db.appLimit.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLimit + +```typescript +const item = await db.appLimit.create({ + data: { name: 'value', actorId: 'value', num: 'value', max: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appLimitDefault.md b/sdk/constructive-sdk/src/public/orm/skills/appLimitDefault.md new file mode 100644 index 000000000..2ad984fef --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/appLimitDefault.md @@ -0,0 +1,34 @@ +# orm-appLimitDefault + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppLimitDefault records + +## Usage + +```typescript +db.appLimitDefault.findMany({ select: { id: true } }).execute() +db.appLimitDefault.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() +db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLimitDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLimitDefault records + +```typescript +const items = await db.appLimitDefault.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLimitDefault + +```typescript +const item = await db.appLimitDefault.create({ + data: { name: 'value', max: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appMembership.md b/sdk/constructive-sdk/src/public/orm/skills/appMembership.md new file mode 100644 index 000000000..430f01eb9 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/appMembership.md @@ -0,0 +1,34 @@ +# orm-appMembership + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppMembership records + +## Usage + +```typescript +db.appMembership.findMany({ select: { id: true } }).execute() +db.appMembership.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '' }, select: { id: true } }).execute() +db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.appMembership.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appMembership records + +```typescript +const items = await db.appMembership.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a appMembership + +```typescript +const item = await db.appMembership.create({ + data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isVerified: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appMembershipDefault.md b/sdk/constructive-sdk/src/public/orm/skills/appMembershipDefault.md new file mode 100644 index 000000000..9d349cb3f --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/appMembershipDefault.md @@ -0,0 +1,34 @@ +# orm-appMembershipDefault + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppMembershipDefault records + +## Usage + +```typescript +db.appMembershipDefault.findMany({ select: { id: true } }).execute() +db.appMembershipDefault.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute() +db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.appMembershipDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appMembershipDefault records + +```typescript +const items = await db.appMembershipDefault.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a appMembershipDefault + +```typescript +const item = await db.appMembershipDefault.create({ + data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isVerified: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appOwnerGrant.md b/sdk/constructive-sdk/src/public/orm/skills/appOwnerGrant.md new file mode 100644 index 000000000..a231f5ab1 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/appOwnerGrant.md @@ -0,0 +1,34 @@ +# orm-appOwnerGrant + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppOwnerGrant records + +## Usage + +```typescript +db.appOwnerGrant.findMany({ select: { id: true } }).execute() +db.appOwnerGrant.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute() +db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() +db.appOwnerGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appOwnerGrant records + +```typescript +const items = await db.appOwnerGrant.findMany({ + select: { id: true, isGrant: true } +}).execute(); +``` + +### Create a appOwnerGrant + +```typescript +const item = await db.appOwnerGrant.create({ + data: { isGrant: 'value', actorId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appPermission.md b/sdk/constructive-sdk/src/public/orm/skills/appPermission.md new file mode 100644 index 000000000..aa696c61d --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/appPermission.md @@ -0,0 +1,34 @@ +# orm-appPermission + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppPermission records + +## Usage + +```typescript +db.appPermission.findMany({ select: { id: true } }).execute() +db.appPermission.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute() +db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appPermission.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appPermission records + +```typescript +const items = await db.appPermission.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appPermission + +```typescript +const item = await db.appPermission.create({ + data: { name: 'value', bitnum: 'value', bitstr: 'value', description: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appPermissionDefault.md b/sdk/constructive-sdk/src/public/orm/skills/appPermissionDefault.md new file mode 100644 index 000000000..4fa6f182e --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/appPermissionDefault.md @@ -0,0 +1,34 @@ +# orm-appPermissionDefault + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppPermissionDefault records + +## Usage + +```typescript +db.appPermissionDefault.findMany({ select: { id: true } }).execute() +db.appPermissionDefault.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute() +db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() +db.appPermissionDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appPermissionDefault records + +```typescript +const items = await db.appPermissionDefault.findMany({ + select: { id: true, permissions: true } +}).execute(); +``` + +### Create a appPermissionDefault + +```typescript +const item = await db.appPermissionDefault.create({ + data: { permissions: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetByMask.md b/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetByMask.md new file mode 100644 index 000000000..c86b015fa --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetByMask.md @@ -0,0 +1,19 @@ +# orm-appPermissionsGetByMask + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Reads and enables pagination through a set of `AppPermission`. + +## Usage + +```typescript +db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute() +``` + +## Examples + +### Run appPermissionsGetByMask + +```typescript +const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetMask.md b/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetMask.md new file mode 100644 index 000000000..9c9b8298e --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetMask.md @@ -0,0 +1,19 @@ +# orm-appPermissionsGetMask + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the appPermissionsGetMask query + +## Usage + +```typescript +db.query.appPermissionsGetMask({ ids: '' }).execute() +``` + +## Examples + +### Run appPermissionsGetMask + +```typescript +const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetMaskByNames.md b/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetMaskByNames.md new file mode 100644 index 000000000..a3c3cc07d --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetMaskByNames.md @@ -0,0 +1,19 @@ +# orm-appPermissionsGetMaskByNames + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the appPermissionsGetMaskByNames query + +## Usage + +```typescript +db.query.appPermissionsGetMaskByNames({ names: '' }).execute() +``` + +## Examples + +### Run appPermissionsGetMaskByNames + +```typescript +const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetPaddedMask.md b/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetPaddedMask.md new file mode 100644 index 000000000..14f897ff1 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/appPermissionsGetPaddedMask.md @@ -0,0 +1,19 @@ +# orm-appPermissionsGetPaddedMask + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the appPermissionsGetPaddedMask query + +## Usage + +```typescript +db.query.appPermissionsGetPaddedMask({ mask: '' }).execute() +``` + +## Examples + +### Run appPermissionsGetPaddedMask + +```typescript +const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/appStep.md b/sdk/constructive-sdk/src/public/orm/skills/appStep.md new file mode 100644 index 000000000..150d5a10d --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/appStep.md @@ -0,0 +1,34 @@ +# orm-appStep + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AppStep records + +## Usage + +```typescript +db.appStep.findMany({ select: { id: true } }).execute() +db.appStep.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute() +db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() +db.appStep.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appStep records + +```typescript +const items = await db.appStep.findMany({ + select: { id: true, actorId: true } +}).execute(); +``` + +### Create a appStep + +```typescript +const item = await db.appStep.create({ + data: { actorId: 'value', name: 'value', count: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/applyRls.md b/sdk/constructive-sdk/src/public/orm/skills/applyRls.md new file mode 100644 index 000000000..3ea012179 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/applyRls.md @@ -0,0 +1,19 @@ +# orm-applyRls + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the applyRls mutation + +## Usage + +```typescript +db.mutation.applyRls({ input: '' }).execute() +``` + +## Examples + +### Run applyRls + +```typescript +const result = await db.mutation.applyRls({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/astMigration.md b/sdk/constructive-sdk/src/public/orm/skills/astMigration.md new file mode 100644 index 000000000..96a62ac61 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/astMigration.md @@ -0,0 +1,34 @@ +# orm-astMigration + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AstMigration records + +## Usage + +```typescript +db.astMigration.findMany({ select: { id: true } }).execute() +db.astMigration.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute() +db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.astMigration.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all astMigration records + +```typescript +const items = await db.astMigration.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a astMigration + +```typescript +const item = await db.astMigration.create({ + data: { databaseId: 'value', name: 'value', requires: 'value', payload: 'value', deploys: 'value', deploy: 'value', revert: 'value', verify: 'value', action: 'value', actionId: 'value', actorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/auditLog.md b/sdk/constructive-sdk/src/public/orm/skills/auditLog.md new file mode 100644 index 000000000..427a88c9b --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/auditLog.md @@ -0,0 +1,34 @@ +# orm-auditLog + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for AuditLog records + +## Usage + +```typescript +db.auditLog.findMany({ select: { id: true } }).execute() +db.auditLog.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute() +db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute() +db.auditLog.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all auditLog records + +```typescript +const items = await db.auditLog.findMany({ + select: { id: true, event: true } +}).execute(); +``` + +### Create a auditLog + +```typescript +const item = await db.auditLog.create({ + data: { event: 'value', actorId: 'value', origin: 'value', userAgent: 'value', ipAddress: 'value', success: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/bootstrapUser.md b/sdk/constructive-sdk/src/public/orm/skills/bootstrapUser.md new file mode 100644 index 000000000..1bb6b82fc --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/bootstrapUser.md @@ -0,0 +1,19 @@ +# orm-bootstrapUser + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the bootstrapUser mutation + +## Usage + +```typescript +db.mutation.bootstrapUser({ input: '' }).execute() +``` + +## Examples + +### Run bootstrapUser + +```typescript +const result = await db.mutation.bootstrapUser({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/checkConstraint.md b/sdk/constructive-sdk/src/public/orm/skills/checkConstraint.md new file mode 100644 index 000000000..45348ba3b --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/checkConstraint.md @@ -0,0 +1,34 @@ +# orm-checkConstraint + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for CheckConstraint records + +## Usage + +```typescript +db.checkConstraint.findMany({ select: { id: true } }).execute() +db.checkConstraint.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.checkConstraint.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all checkConstraint records + +```typescript +const items = await db.checkConstraint.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a checkConstraint + +```typescript +const item = await db.checkConstraint.create({ + data: { databaseId: 'value', tableId: 'value', name: 'value', type: 'value', fieldIds: 'value', expr: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/checkPassword.md b/sdk/constructive-sdk/src/public/orm/skills/checkPassword.md new file mode 100644 index 000000000..d9c31103d --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/checkPassword.md @@ -0,0 +1,19 @@ +# orm-checkPassword + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the checkPassword mutation + +## Usage + +```typescript +db.mutation.checkPassword({ input: '' }).execute() +``` + +## Examples + +### Run checkPassword + +```typescript +const result = await db.mutation.checkPassword({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/claimedInvite.md b/sdk/constructive-sdk/src/public/orm/skills/claimedInvite.md new file mode 100644 index 000000000..9d021e947 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/claimedInvite.md @@ -0,0 +1,34 @@ +# orm-claimedInvite + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for ClaimedInvite records + +## Usage + +```typescript +db.claimedInvite.findMany({ select: { id: true } }).execute() +db.claimedInvite.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute() +db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() +db.claimedInvite.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all claimedInvite records + +```typescript +const items = await db.claimedInvite.findMany({ + select: { id: true, data: true } +}).execute(); +``` + +### Create a claimedInvite + +```typescript +const item = await db.claimedInvite.create({ + data: { data: 'value', senderId: 'value', receiverId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/commit.md b/sdk/constructive-sdk/src/public/orm/skills/commit.md new file mode 100644 index 000000000..e6c5448df --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/commit.md @@ -0,0 +1,34 @@ +# orm-commit + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Commit records + +## Usage + +```typescript +db.commit.findMany({ select: { id: true } }).execute() +db.commit.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute() +db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute() +db.commit.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all commit records + +```typescript +const items = await db.commit.findMany({ + select: { id: true, message: true } +}).execute(); +``` + +### Create a commit + +```typescript +const item = await db.commit.create({ + data: { message: 'value', databaseId: 'value', storeId: 'value', parentIds: 'value', authorId: 'value', committerId: 'value', treeId: 'value', date: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/confirmDeleteAccount.md b/sdk/constructive-sdk/src/public/orm/skills/confirmDeleteAccount.md new file mode 100644 index 000000000..dac6e3d2f --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/confirmDeleteAccount.md @@ -0,0 +1,19 @@ +# orm-confirmDeleteAccount + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the confirmDeleteAccount mutation + +## Usage + +```typescript +db.mutation.confirmDeleteAccount({ input: '' }).execute() +``` + +## Examples + +### Run confirmDeleteAccount + +```typescript +const result = await db.mutation.confirmDeleteAccount({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/connectedAccount.md b/sdk/constructive-sdk/src/public/orm/skills/connectedAccount.md new file mode 100644 index 000000000..e27136ed4 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/connectedAccount.md @@ -0,0 +1,34 @@ +# orm-connectedAccount + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for ConnectedAccount records + +## Usage + +```typescript +db.connectedAccount.findMany({ select: { id: true } }).execute() +db.connectedAccount.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute() +db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.connectedAccount.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all connectedAccount records + +```typescript +const items = await db.connectedAccount.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a connectedAccount + +```typescript +const item = await db.connectedAccount.create({ + data: { ownerId: 'value', service: 'value', identifier: 'value', details: 'value', isVerified: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/connectedAccountsModule.md b/sdk/constructive-sdk/src/public/orm/skills/connectedAccountsModule.md new file mode 100644 index 000000000..0d3c5bc46 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/connectedAccountsModule.md @@ -0,0 +1,34 @@ +# orm-connectedAccountsModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for ConnectedAccountsModule records + +## Usage + +```typescript +db.connectedAccountsModule.findMany({ select: { id: true } }).execute() +db.connectedAccountsModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.connectedAccountsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute() +db.connectedAccountsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.connectedAccountsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all connectedAccountsModule records + +```typescript +const items = await db.connectedAccountsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a connectedAccountsModule + +```typescript +const item = await db.connectedAccountsModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/createUserDatabase.md b/sdk/constructive-sdk/src/public/orm/skills/createUserDatabase.md new file mode 100644 index 000000000..82db1736a --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/createUserDatabase.md @@ -0,0 +1,35 @@ +# orm-createUserDatabase + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Creates a new user database with all required modules, permissions, and RLS policies. + +Parameters: + - database_name: Name for the new database (required) + - owner_id: UUID of the owner user (required) + - include_invites: Include invite system (default: true) + - include_groups: Include group-level memberships (default: false) + - include_levels: Include levels/achievements (default: false) + - bitlen: Bit length for permission masks (default: 64) + - tokens_expiration: Token expiration interval (default: 30 days) + +Returns the database_id UUID of the newly created database. + +Example usage: + SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid); + SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups + + +## Usage + +```typescript +db.mutation.createUserDatabase({ input: '' }).execute() +``` + +## Examples + +### Run createUserDatabase + +```typescript +const result = await db.mutation.createUserDatabase({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/cryptoAddress.md b/sdk/constructive-sdk/src/public/orm/skills/cryptoAddress.md new file mode 100644 index 000000000..9260f7053 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/cryptoAddress.md @@ -0,0 +1,34 @@ +# orm-cryptoAddress + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for CryptoAddress records + +## Usage + +```typescript +db.cryptoAddress.findMany({ select: { id: true } }).execute() +db.cryptoAddress.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() +db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.cryptoAddress.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all cryptoAddress records + +```typescript +const items = await db.cryptoAddress.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a cryptoAddress + +```typescript +const item = await db.cryptoAddress.create({ + data: { ownerId: 'value', address: 'value', isVerified: 'value', isPrimary: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/cryptoAddressesModule.md b/sdk/constructive-sdk/src/public/orm/skills/cryptoAddressesModule.md new file mode 100644 index 000000000..e9cbdef5e --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/cryptoAddressesModule.md @@ -0,0 +1,34 @@ +# orm-cryptoAddressesModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for CryptoAddressesModule records + +## Usage + +```typescript +db.cryptoAddressesModule.findMany({ select: { id: true } }).execute() +db.cryptoAddressesModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.cryptoAddressesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '' }, select: { id: true } }).execute() +db.cryptoAddressesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.cryptoAddressesModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all cryptoAddressesModule records + +```typescript +const items = await db.cryptoAddressesModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a cryptoAddressesModule + +```typescript +const item = await db.cryptoAddressesModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value', cryptoNetwork: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/cryptoAuthModule.md b/sdk/constructive-sdk/src/public/orm/skills/cryptoAuthModule.md new file mode 100644 index 000000000..b98d08519 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/cryptoAuthModule.md @@ -0,0 +1,34 @@ +# orm-cryptoAuthModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for CryptoAuthModule records + +## Usage + +```typescript +db.cryptoAuthModule.findMany({ select: { id: true } }).execute() +db.cryptoAuthModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.cryptoAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }, select: { id: true } }).execute() +db.cryptoAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.cryptoAuthModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all cryptoAuthModule records + +```typescript +const items = await db.cryptoAuthModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a cryptoAuthModule + +```typescript +const item = await db.cryptoAuthModule.create({ + data: { databaseId: 'value', schemaId: 'value', usersTableId: 'value', secretsTableId: 'value', sessionsTableId: 'value', sessionCredentialsTableId: 'value', addressesTableId: 'value', userField: 'value', cryptoNetwork: 'value', signInRequestChallenge: 'value', signInRecordFailure: 'value', signUpWithKey: 'value', signInWithChallenge: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/currentIpAddress.md b/sdk/constructive-sdk/src/public/orm/skills/currentIpAddress.md new file mode 100644 index 000000000..e1527fdcb --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/currentIpAddress.md @@ -0,0 +1,19 @@ +# orm-currentIpAddress + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the currentIpAddress query + +## Usage + +```typescript +db.query.currentIpAddress().execute() +``` + +## Examples + +### Run currentIpAddress + +```typescript +const result = await db.query.currentIpAddress().execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/currentUser.md b/sdk/constructive-sdk/src/public/orm/skills/currentUser.md new file mode 100644 index 000000000..08a5d92dc --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/currentUser.md @@ -0,0 +1,19 @@ +# orm-currentUser + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the currentUser query + +## Usage + +```typescript +db.query.currentUser().execute() +``` + +## Examples + +### Run currentUser + +```typescript +const result = await db.query.currentUser().execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/currentUserAgent.md b/sdk/constructive-sdk/src/public/orm/skills/currentUserAgent.md new file mode 100644 index 000000000..001bda358 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/currentUserAgent.md @@ -0,0 +1,19 @@ +# orm-currentUserAgent + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the currentUserAgent query + +## Usage + +```typescript +db.query.currentUserAgent().execute() +``` + +## Examples + +### Run currentUserAgent + +```typescript +const result = await db.query.currentUserAgent().execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/currentUserId.md b/sdk/constructive-sdk/src/public/orm/skills/currentUserId.md new file mode 100644 index 000000000..ebe9c170a --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/currentUserId.md @@ -0,0 +1,19 @@ +# orm-currentUserId + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the currentUserId query + +## Usage + +```typescript +db.query.currentUserId().execute() +``` + +## Examples + +### Run currentUserId + +```typescript +const result = await db.query.currentUserId().execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/database.md b/sdk/constructive-sdk/src/public/orm/skills/database.md new file mode 100644 index 000000000..38b8e447f --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/database.md @@ -0,0 +1,34 @@ +# orm-database + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Database records + +## Usage + +```typescript +db.database.findMany({ select: { id: true } }).execute() +db.database.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, select: { id: true } }).execute() +db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.database.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all database records + +```typescript +const items = await db.database.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a database + +```typescript +const item = await db.database.create({ + data: { ownerId: 'value', schemaHash: 'value', name: 'value', label: 'value', hash: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/databaseProvisionModule.md b/sdk/constructive-sdk/src/public/orm/skills/databaseProvisionModule.md new file mode 100644 index 000000000..dfcfeaa5e --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/databaseProvisionModule.md @@ -0,0 +1,34 @@ +# orm-databaseProvisionModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for DatabaseProvisionModule records + +## Usage + +```typescript +db.databaseProvisionModule.findMany({ select: { id: true } }).execute() +db.databaseProvisionModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute() +db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute() +db.databaseProvisionModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all databaseProvisionModule records + +```typescript +const items = await db.databaseProvisionModule.findMany({ + select: { id: true, databaseName: true } +}).execute(); +``` + +### Create a databaseProvisionModule + +```typescript +const item = await db.databaseProvisionModule.create({ + data: { databaseName: 'value', ownerId: 'value', subdomain: 'value', domain: 'value', modules: 'value', options: 'value', bootstrapUser: 'value', status: 'value', errorMessage: 'value', databaseId: 'value', completedAt: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/defaultIdsModule.md b/sdk/constructive-sdk/src/public/orm/skills/defaultIdsModule.md new file mode 100644 index 000000000..6dd168588 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/defaultIdsModule.md @@ -0,0 +1,34 @@ +# orm-defaultIdsModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for DefaultIdsModule records + +## Usage + +```typescript +db.defaultIdsModule.findMany({ select: { id: true } }).execute() +db.defaultIdsModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.defaultIdsModule.create({ data: { databaseId: '' }, select: { id: true } }).execute() +db.defaultIdsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.defaultIdsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all defaultIdsModule records + +```typescript +const items = await db.defaultIdsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a defaultIdsModule + +```typescript +const item = await db.defaultIdsModule.create({ + data: { databaseId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/denormalizedTableField.md b/sdk/constructive-sdk/src/public/orm/skills/denormalizedTableField.md new file mode 100644 index 000000000..55f39dad6 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/denormalizedTableField.md @@ -0,0 +1,34 @@ +# orm-denormalizedTableField + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for DenormalizedTableField records + +## Usage + +```typescript +db.denormalizedTableField.findMany({ select: { id: true } }).execute() +db.denormalizedTableField.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute() +db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.denormalizedTableField.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all denormalizedTableField records + +```typescript +const items = await db.denormalizedTableField.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a denormalizedTableField + +```typescript +const item = await db.denormalizedTableField.create({ + data: { databaseId: 'value', tableId: 'value', fieldId: 'value', setIds: 'value', refTableId: 'value', refFieldId: 'value', refIds: 'value', useUpdates: 'value', updateDefaults: 'value', funcName: 'value', funcOrder: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/domain.md b/sdk/constructive-sdk/src/public/orm/skills/domain.md new file mode 100644 index 000000000..5b6e9cb14 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/domain.md @@ -0,0 +1,34 @@ +# orm-domain + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Domain records + +## Usage + +```typescript +db.domain.findMany({ select: { id: true } }).execute() +db.domain.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.domain.create({ data: { databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }, select: { id: true } }).execute() +db.domain.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.domain.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all domain records + +```typescript +const items = await db.domain.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a domain + +```typescript +const item = await db.domain.create({ + data: { databaseId: 'value', apiId: 'value', siteId: 'value', subdomain: 'value', domain: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/email.md b/sdk/constructive-sdk/src/public/orm/skills/email.md new file mode 100644 index 000000000..47b208130 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/email.md @@ -0,0 +1,34 @@ +# orm-email + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Email records + +## Usage + +```typescript +db.email.findMany({ select: { id: true } }).execute() +db.email.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() +db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.email.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all email records + +```typescript +const items = await db.email.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a email + +```typescript +const item = await db.email.create({ + data: { ownerId: 'value', email: 'value', isVerified: 'value', isPrimary: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/emailsModule.md b/sdk/constructive-sdk/src/public/orm/skills/emailsModule.md new file mode 100644 index 000000000..b76073d3c --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/emailsModule.md @@ -0,0 +1,34 @@ +# orm-emailsModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for EmailsModule records + +## Usage + +```typescript +db.emailsModule.findMany({ select: { id: true } }).execute() +db.emailsModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.emailsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute() +db.emailsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.emailsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all emailsModule records + +```typescript +const items = await db.emailsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a emailsModule + +```typescript +const item = await db.emailsModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/encryptedSecretsModule.md b/sdk/constructive-sdk/src/public/orm/skills/encryptedSecretsModule.md new file mode 100644 index 000000000..c0c78b7ce --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/encryptedSecretsModule.md @@ -0,0 +1,34 @@ +# orm-encryptedSecretsModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for EncryptedSecretsModule records + +## Usage + +```typescript +db.encryptedSecretsModule.findMany({ select: { id: true } }).execute() +db.encryptedSecretsModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.encryptedSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() +db.encryptedSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.encryptedSecretsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all encryptedSecretsModule records + +```typescript +const items = await db.encryptedSecretsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a encryptedSecretsModule + +```typescript +const item = await db.encryptedSecretsModule.create({ + data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/extendTokenExpires.md b/sdk/constructive-sdk/src/public/orm/skills/extendTokenExpires.md new file mode 100644 index 000000000..f7f44ffab --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/extendTokenExpires.md @@ -0,0 +1,19 @@ +# orm-extendTokenExpires + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the extendTokenExpires mutation + +## Usage + +```typescript +db.mutation.extendTokenExpires({ input: '' }).execute() +``` + +## Examples + +### Run extendTokenExpires + +```typescript +const result = await db.mutation.extendTokenExpires({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/field.md b/sdk/constructive-sdk/src/public/orm/skills/field.md new file mode 100644 index 000000000..a7257e0a7 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/field.md @@ -0,0 +1,34 @@ +# orm-field + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Field records + +## Usage + +```typescript +db.field.findMany({ select: { id: true } }).execute() +db.field.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', defaultValue: '', defaultValueAst: '', isHidden: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '' }, select: { id: true } }).execute() +db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.field.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all field records + +```typescript +const items = await db.field.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a field + +```typescript +const item = await db.field.create({ + data: { databaseId: 'value', tableId: 'value', name: 'value', label: 'value', description: 'value', smartTags: 'value', isRequired: 'value', defaultValue: 'value', defaultValueAst: 'value', isHidden: 'value', type: 'value', fieldOrder: 'value', regexp: 'value', chk: 'value', chkExpr: 'value', min: 'value', max: 'value', tags: 'value', category: 'value', module: 'value', scope: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/fieldModule.md b/sdk/constructive-sdk/src/public/orm/skills/fieldModule.md new file mode 100644 index 000000000..3fa9cd057 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/fieldModule.md @@ -0,0 +1,34 @@ +# orm-fieldModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for FieldModule records + +## Usage + +```typescript +db.fieldModule.findMany({ select: { id: true } }).execute() +db.fieldModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.fieldModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', fieldId: '', nodeType: '', data: '', triggers: '', functions: '' }, select: { id: true } }).execute() +db.fieldModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.fieldModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all fieldModule records + +```typescript +const items = await db.fieldModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a fieldModule + +```typescript +const item = await db.fieldModule.create({ + data: { databaseId: 'value', privateSchemaId: 'value', tableId: 'value', fieldId: 'value', nodeType: 'value', data: 'value', triggers: 'value', functions: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/foreignKeyConstraint.md b/sdk/constructive-sdk/src/public/orm/skills/foreignKeyConstraint.md new file mode 100644 index 000000000..d5f517295 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/foreignKeyConstraint.md @@ -0,0 +1,34 @@ +# orm-foreignKeyConstraint + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for ForeignKeyConstraint records + +## Usage + +```typescript +db.foreignKeyConstraint.findMany({ select: { id: true } }).execute() +db.foreignKeyConstraint.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.foreignKeyConstraint.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all foreignKeyConstraint records + +```typescript +const items = await db.foreignKeyConstraint.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a foreignKeyConstraint + +```typescript +const item = await db.foreignKeyConstraint.create({ + data: { databaseId: 'value', tableId: 'value', name: 'value', description: 'value', smartTags: 'value', type: 'value', fieldIds: 'value', refTableId: 'value', refFieldIds: 'value', deleteAction: 'value', updateAction: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/forgotPassword.md b/sdk/constructive-sdk/src/public/orm/skills/forgotPassword.md new file mode 100644 index 000000000..f5e52f164 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/forgotPassword.md @@ -0,0 +1,19 @@ +# orm-forgotPassword + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the forgotPassword mutation + +## Usage + +```typescript +db.mutation.forgotPassword({ input: '' }).execute() +``` + +## Examples + +### Run forgotPassword + +```typescript +const result = await db.mutation.forgotPassword({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/freezeObjects.md b/sdk/constructive-sdk/src/public/orm/skills/freezeObjects.md new file mode 100644 index 000000000..2448cce6e --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/freezeObjects.md @@ -0,0 +1,19 @@ +# orm-freezeObjects + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the freezeObjects mutation + +## Usage + +```typescript +db.mutation.freezeObjects({ input: '' }).execute() +``` + +## Examples + +### Run freezeObjects + +```typescript +const result = await db.mutation.freezeObjects({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/fullTextSearch.md b/sdk/constructive-sdk/src/public/orm/skills/fullTextSearch.md new file mode 100644 index 000000000..d4e6c69ce --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/fullTextSearch.md @@ -0,0 +1,34 @@ +# orm-fullTextSearch + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for FullTextSearch records + +## Usage + +```typescript +db.fullTextSearch.findMany({ select: { id: true } }).execute() +db.fullTextSearch.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.fullTextSearch.create({ data: { databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }, select: { id: true } }).execute() +db.fullTextSearch.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.fullTextSearch.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all fullTextSearch records + +```typescript +const items = await db.fullTextSearch.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a fullTextSearch + +```typescript +const item = await db.fullTextSearch.create({ + data: { databaseId: 'value', tableId: 'value', fieldId: 'value', fieldIds: 'value', weights: 'value', langs: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/getAllObjectsFromRoot.md b/sdk/constructive-sdk/src/public/orm/skills/getAllObjectsFromRoot.md new file mode 100644 index 000000000..0f4a74465 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/getAllObjectsFromRoot.md @@ -0,0 +1,19 @@ +# orm-getAllObjectsFromRoot + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Reads and enables pagination through a set of `Object`. + +## Usage + +```typescript +db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute() +``` + +## Examples + +### Run getAllObjectsFromRoot + +```typescript +const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/getAllRecord.md b/sdk/constructive-sdk/src/public/orm/skills/getAllRecord.md new file mode 100644 index 000000000..d5e8eb693 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/getAllRecord.md @@ -0,0 +1,34 @@ +# orm-getAllRecord + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for GetAllRecord records + +## Usage + +```typescript +db.getAllRecord.findMany({ select: { id: true } }).execute() +db.getAllRecord.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute() +db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute() +db.getAllRecord.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all getAllRecord records + +```typescript +const items = await db.getAllRecord.findMany({ + select: { id: true, path: true } +}).execute(); +``` + +### Create a getAllRecord + +```typescript +const item = await db.getAllRecord.create({ + data: { path: 'value', data: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/getObjectAtPath.md b/sdk/constructive-sdk/src/public/orm/skills/getObjectAtPath.md new file mode 100644 index 000000000..08cbea01f --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/getObjectAtPath.md @@ -0,0 +1,19 @@ +# orm-getObjectAtPath + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the getObjectAtPath query + +## Usage + +```typescript +db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute() +``` + +## Examples + +### Run getObjectAtPath + +```typescript +const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/getPathObjectsFromRoot.md b/sdk/constructive-sdk/src/public/orm/skills/getPathObjectsFromRoot.md new file mode 100644 index 000000000..50bddd40f --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/getPathObjectsFromRoot.md @@ -0,0 +1,19 @@ +# orm-getPathObjectsFromRoot + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Reads and enables pagination through a set of `Object`. + +## Usage + +```typescript +db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute() +``` + +## Examples + +### Run getPathObjectsFromRoot + +```typescript +const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/hierarchyModule.md b/sdk/constructive-sdk/src/public/orm/skills/hierarchyModule.md new file mode 100644 index 000000000..af1174f4c --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/hierarchyModule.md @@ -0,0 +1,34 @@ +# orm-hierarchyModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for HierarchyModule records + +## Usage + +```typescript +db.hierarchyModule.findMany({ select: { id: true } }).execute() +db.hierarchyModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }, select: { id: true } }).execute() +db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.hierarchyModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all hierarchyModule records + +```typescript +const items = await db.hierarchyModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a hierarchyModule + +```typescript +const item = await db.hierarchyModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', chartEdgesTableId: 'value', chartEdgesTableName: 'value', hierarchySprtTableId: 'value', hierarchySprtTableName: 'value', chartEdgeGrantsTableId: 'value', chartEdgeGrantsTableName: 'value', entityTableId: 'value', usersTableId: 'value', prefix: 'value', privateSchemaName: 'value', sprtTableName: 'value', rebuildHierarchyFunction: 'value', getSubordinatesFunction: 'value', getManagersFunction: 'value', isManagerOfFunction: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/index.md b/sdk/constructive-sdk/src/public/orm/skills/index.md new file mode 100644 index 000000000..ee22f68f2 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/index.md @@ -0,0 +1,34 @@ +# orm-index + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Index records + +## Usage + +```typescript +db.index.findMany({ select: { id: true } }).execute() +db.index.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.index.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all index records + +```typescript +const items = await db.index.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a index + +```typescript +const item = await db.index.create({ + data: { databaseId: 'value', tableId: 'value', name: 'value', fieldIds: 'value', includeFieldIds: 'value', accessMethod: 'value', indexParams: 'value', whereClause: 'value', isUnique: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/initEmptyRepo.md b/sdk/constructive-sdk/src/public/orm/skills/initEmptyRepo.md new file mode 100644 index 000000000..6fac5228f --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/initEmptyRepo.md @@ -0,0 +1,19 @@ +# orm-initEmptyRepo + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the initEmptyRepo mutation + +## Usage + +```typescript +db.mutation.initEmptyRepo({ input: '' }).execute() +``` + +## Examples + +### Run initEmptyRepo + +```typescript +const result = await db.mutation.initEmptyRepo({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/insertNodeAtPath.md b/sdk/constructive-sdk/src/public/orm/skills/insertNodeAtPath.md new file mode 100644 index 000000000..fcbd25079 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/insertNodeAtPath.md @@ -0,0 +1,19 @@ +# orm-insertNodeAtPath + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the insertNodeAtPath mutation + +## Usage + +```typescript +db.mutation.insertNodeAtPath({ input: '' }).execute() +``` + +## Examples + +### Run insertNodeAtPath + +```typescript +const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/invite.md b/sdk/constructive-sdk/src/public/orm/skills/invite.md new file mode 100644 index 000000000..9876bbfb4 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/invite.md @@ -0,0 +1,34 @@ +# orm-invite + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Invite records + +## Usage + +```typescript +db.invite.findMany({ select: { id: true } }).execute() +db.invite.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute() +db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() +db.invite.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all invite records + +```typescript +const items = await db.invite.findMany({ + select: { id: true, email: true } +}).execute(); +``` + +### Create a invite + +```typescript +const item = await db.invite.create({ + data: { email: 'value', senderId: 'value', inviteToken: 'value', inviteValid: 'value', inviteLimit: 'value', inviteCount: 'value', multiple: 'value', data: 'value', expiresAt: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/invitesModule.md b/sdk/constructive-sdk/src/public/orm/skills/invitesModule.md new file mode 100644 index 000000000..454306138 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/invitesModule.md @@ -0,0 +1,34 @@ +# orm-invitesModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for InvitesModule records + +## Usage + +```typescript +db.invitesModule.findMany({ select: { id: true } }).execute() +db.invitesModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '' }, select: { id: true } }).execute() +db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.invitesModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all invitesModule records + +```typescript +const items = await db.invitesModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a invitesModule + +```typescript +const item = await db.invitesModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', emailsTableId: 'value', usersTableId: 'value', invitesTableId: 'value', claimedInvitesTableId: 'value', invitesTableName: 'value', claimedInvitesTableName: 'value', submitInviteCodeFunction: 'value', prefix: 'value', membershipType: 'value', entityTableId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/levelsModule.md b/sdk/constructive-sdk/src/public/orm/skills/levelsModule.md new file mode 100644 index 000000000..e96bd0a79 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/levelsModule.md @@ -0,0 +1,34 @@ +# orm-levelsModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for LevelsModule records + +## Usage + +```typescript +db.levelsModule.findMany({ select: { id: true } }).execute() +db.levelsModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.levelsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', stepsTableId: '', stepsTableName: '', achievementsTableId: '', achievementsTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', completedStep: '', incompletedStep: '', tgAchievement: '', tgAchievementToggle: '', tgAchievementToggleBoolean: '', tgAchievementBoolean: '', upsertAchievement: '', tgUpdateAchievements: '', stepsRequired: '', levelAchieved: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute() +db.levelsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.levelsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all levelsModule records + +```typescript +const items = await db.levelsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a levelsModule + +```typescript +const item = await db.levelsModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', stepsTableId: 'value', stepsTableName: 'value', achievementsTableId: 'value', achievementsTableName: 'value', levelsTableId: 'value', levelsTableName: 'value', levelRequirementsTableId: 'value', levelRequirementsTableName: 'value', completedStep: 'value', incompletedStep: 'value', tgAchievement: 'value', tgAchievementToggle: 'value', tgAchievementToggleBoolean: 'value', tgAchievementBoolean: 'value', upsertAchievement: 'value', tgUpdateAchievements: 'value', stepsRequired: 'value', levelAchieved: 'value', prefix: 'value', membershipType: 'value', entityTableId: 'value', actorTableId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/limitFunction.md b/sdk/constructive-sdk/src/public/orm/skills/limitFunction.md new file mode 100644 index 000000000..fdeb78be4 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/limitFunction.md @@ -0,0 +1,34 @@ +# orm-limitFunction + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for LimitFunction records + +## Usage + +```typescript +db.limitFunction.findMany({ select: { id: true } }).execute() +db.limitFunction.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.limitFunction.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', data: '', security: '' }, select: { id: true } }).execute() +db.limitFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.limitFunction.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all limitFunction records + +```typescript +const items = await db.limitFunction.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a limitFunction + +```typescript +const item = await db.limitFunction.create({ + data: { databaseId: 'value', tableId: 'value', name: 'value', label: 'value', description: 'value', data: 'value', security: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/limitsModule.md b/sdk/constructive-sdk/src/public/orm/skills/limitsModule.md new file mode 100644 index 000000000..1a72bd133 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/limitsModule.md @@ -0,0 +1,34 @@ +# orm-limitsModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for LimitsModule records + +## Usage + +```typescript +db.limitsModule.findMany({ select: { id: true } }).execute() +db.limitsModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute() +db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.limitsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all limitsModule records + +```typescript +const items = await db.limitsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a limitsModule + +```typescript +const item = await db.limitsModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', tableName: 'value', defaultTableId: 'value', defaultTableName: 'value', limitIncrementFunction: 'value', limitDecrementFunction: 'value', limitIncrementTrigger: 'value', limitDecrementTrigger: 'value', limitUpdateTrigger: 'value', limitCheckFunction: 'value', prefix: 'value', membershipType: 'value', entityTableId: 'value', actorTableId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/membershipType.md b/sdk/constructive-sdk/src/public/orm/skills/membershipType.md new file mode 100644 index 000000000..0620ef53a --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/membershipType.md @@ -0,0 +1,34 @@ +# orm-membershipType + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for MembershipType records + +## Usage + +```typescript +db.membershipType.findMany({ select: { id: true } }).execute() +db.membershipType.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute() +db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.membershipType.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all membershipType records + +```typescript +const items = await db.membershipType.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a membershipType + +```typescript +const item = await db.membershipType.create({ + data: { name: 'value', description: 'value', prefix: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/membershipTypesModule.md b/sdk/constructive-sdk/src/public/orm/skills/membershipTypesModule.md new file mode 100644 index 000000000..0ff82b6ef --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/membershipTypesModule.md @@ -0,0 +1,34 @@ +# orm-membershipTypesModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for MembershipTypesModule records + +## Usage + +```typescript +db.membershipTypesModule.findMany({ select: { id: true } }).execute() +db.membershipTypesModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.membershipTypesModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() +db.membershipTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.membershipTypesModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all membershipTypesModule records + +```typescript +const items = await db.membershipTypesModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a membershipTypesModule + +```typescript +const item = await db.membershipTypesModule.create({ + data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/membershipsModule.md b/sdk/constructive-sdk/src/public/orm/skills/membershipsModule.md new file mode 100644 index 000000000..d99cb0e12 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/membershipsModule.md @@ -0,0 +1,34 @@ +# orm-membershipsModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for MembershipsModule records + +## Usage + +```typescript +db.membershipsModule.findMany({ select: { id: true } }).execute() +db.membershipsModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', membershipType: '', entityTableId: '', entityTableOwnerId: '', prefix: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '' }, select: { id: true } }).execute() +db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.membershipsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all membershipsModule records + +```typescript +const items = await db.membershipsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a membershipsModule + +```typescript +const item = await db.membershipsModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', membershipsTableId: 'value', membershipsTableName: 'value', membersTableId: 'value', membersTableName: 'value', membershipDefaultsTableId: 'value', membershipDefaultsTableName: 'value', grantsTableId: 'value', grantsTableName: 'value', actorTableId: 'value', limitsTableId: 'value', defaultLimitsTableId: 'value', permissionsTableId: 'value', defaultPermissionsTableId: 'value', sprtTableId: 'value', adminGrantsTableId: 'value', adminGrantsTableName: 'value', ownerGrantsTableId: 'value', ownerGrantsTableName: 'value', membershipType: 'value', entityTableId: 'value', entityTableOwnerId: 'value', prefix: 'value', actorMaskCheck: 'value', actorPermCheck: 'value', entityIdsByMask: 'value', entityIdsByPerm: 'value', entityIdsFunction: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/nodeTypeRegistry.md b/sdk/constructive-sdk/src/public/orm/skills/nodeTypeRegistry.md new file mode 100644 index 000000000..4738b9532 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/nodeTypeRegistry.md @@ -0,0 +1,34 @@ +# orm-nodeTypeRegistry + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for NodeTypeRegistry records + +## Usage + +```typescript +db.nodeTypeRegistry.findMany({ select: { id: true } }).execute() +db.nodeTypeRegistry.findOne({ where: { name: '' }, select: { id: true } }).execute() +db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { id: true } }).execute() +db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { id: true } }).execute() +db.nodeTypeRegistry.delete({ where: { name: '' } }).execute() +``` + +## Examples + +### List all nodeTypeRegistry records + +```typescript +const items = await db.nodeTypeRegistry.findMany({ + select: { name: true, slug: true } +}).execute(); +``` + +### Create a nodeTypeRegistry + +```typescript +const item = await db.nodeTypeRegistry.create({ + data: { slug: 'value', category: 'value', displayName: 'value', description: 'value', parameterSchema: 'value', tags: 'value' }, + select: { name: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/object.md b/sdk/constructive-sdk/src/public/orm/skills/object.md new file mode 100644 index 000000000..750722399 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/object.md @@ -0,0 +1,34 @@ +# orm-object + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Object records + +## Usage + +```typescript +db.object.findMany({ select: { id: true } }).execute() +db.object.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute() +db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute() +db.object.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all object records + +```typescript +const items = await db.object.findMany({ + select: { id: true, hashUuid: true } +}).execute(); +``` + +### Create a object + +```typescript +const item = await db.object.create({ + data: { hashUuid: 'value', databaseId: 'value', kids: 'value', ktree: 'value', data: 'value', frzn: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/oneTimeToken.md b/sdk/constructive-sdk/src/public/orm/skills/oneTimeToken.md new file mode 100644 index 000000000..9dda575c6 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/oneTimeToken.md @@ -0,0 +1,19 @@ +# orm-oneTimeToken + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the oneTimeToken mutation + +## Usage + +```typescript +db.mutation.oneTimeToken({ input: '' }).execute() +``` + +## Examples + +### Run oneTimeToken + +```typescript +const result = await db.mutation.oneTimeToken({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgAdminGrant.md b/sdk/constructive-sdk/src/public/orm/skills/orgAdminGrant.md new file mode 100644 index 000000000..714c32c1d --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/orgAdminGrant.md @@ -0,0 +1,34 @@ +# orm-orgAdminGrant + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgAdminGrant records + +## Usage + +```typescript +db.orgAdminGrant.findMany({ select: { id: true } }).execute() +db.orgAdminGrant.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() +db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() +db.orgAdminGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgAdminGrant records + +```typescript +const items = await db.orgAdminGrant.findMany({ + select: { id: true, isGrant: true } +}).execute(); +``` + +### Create a orgAdminGrant + +```typescript +const item = await db.orgAdminGrant.create({ + data: { isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgClaimedInvite.md b/sdk/constructive-sdk/src/public/orm/skills/orgClaimedInvite.md new file mode 100644 index 000000000..8935e2621 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/orgClaimedInvite.md @@ -0,0 +1,34 @@ +# orm-orgClaimedInvite + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgClaimedInvite records + +## Usage + +```typescript +db.orgClaimedInvite.findMany({ select: { id: true } }).execute() +db.orgClaimedInvite.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute() +db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute() +db.orgClaimedInvite.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgClaimedInvite records + +```typescript +const items = await db.orgClaimedInvite.findMany({ + select: { id: true, data: true } +}).execute(); +``` + +### Create a orgClaimedInvite + +```typescript +const item = await db.orgClaimedInvite.create({ + data: { data: 'value', senderId: 'value', receiverId: 'value', entityId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgGrant.md b/sdk/constructive-sdk/src/public/orm/skills/orgGrant.md new file mode 100644 index 000000000..0ab99fee3 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/orgGrant.md @@ -0,0 +1,34 @@ +# orm-orgGrant + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgGrant records + +## Usage + +```typescript +db.orgGrant.findMany({ select: { id: true } }).execute() +db.orgGrant.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() +db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() +db.orgGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgGrant records + +```typescript +const items = await db.orgGrant.findMany({ + select: { id: true, permissions: true } +}).execute(); +``` + +### Create a orgGrant + +```typescript +const item = await db.orgGrant.create({ + data: { permissions: 'value', isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgInvite.md b/sdk/constructive-sdk/src/public/orm/skills/orgInvite.md new file mode 100644 index 000000000..5a36676cd --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/orgInvite.md @@ -0,0 +1,34 @@ +# orm-orgInvite + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgInvite records + +## Usage + +```typescript +db.orgInvite.findMany({ select: { id: true } }).execute() +db.orgInvite.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute() +db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() +db.orgInvite.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgInvite records + +```typescript +const items = await db.orgInvite.findMany({ + select: { id: true, email: true } +}).execute(); +``` + +### Create a orgInvite + +```typescript +const item = await db.orgInvite.create({ + data: { email: 'value', senderId: 'value', receiverId: 'value', inviteToken: 'value', inviteValid: 'value', inviteLimit: 'value', inviteCount: 'value', multiple: 'value', data: 'value', expiresAt: 'value', entityId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgLimit.md b/sdk/constructive-sdk/src/public/orm/skills/orgLimit.md new file mode 100644 index 000000000..9830fe5d1 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/orgLimit.md @@ -0,0 +1,34 @@ +# orm-orgLimit + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgLimit records + +## Usage + +```typescript +db.orgLimit.findMany({ select: { id: true } }).execute() +db.orgLimit.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute() +db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgLimit.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgLimit records + +```typescript +const items = await db.orgLimit.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgLimit + +```typescript +const item = await db.orgLimit.create({ + data: { name: 'value', actorId: 'value', num: 'value', max: 'value', entityId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgLimitDefault.md b/sdk/constructive-sdk/src/public/orm/skills/orgLimitDefault.md new file mode 100644 index 000000000..482453e14 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/orgLimitDefault.md @@ -0,0 +1,34 @@ +# orm-orgLimitDefault + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgLimitDefault records + +## Usage + +```typescript +db.orgLimitDefault.findMany({ select: { id: true } }).execute() +db.orgLimitDefault.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() +db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgLimitDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgLimitDefault records + +```typescript +const items = await db.orgLimitDefault.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgLimitDefault + +```typescript +const item = await db.orgLimitDefault.create({ + data: { name: 'value', max: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgMember.md b/sdk/constructive-sdk/src/public/orm/skills/orgMember.md new file mode 100644 index 000000000..33ceae082 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/orgMember.md @@ -0,0 +1,34 @@ +# orm-orgMember + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgMember records + +## Usage + +```typescript +db.orgMember.findMany({ select: { id: true } }).execute() +db.orgMember.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute() +db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute() +db.orgMember.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgMember records + +```typescript +const items = await db.orgMember.findMany({ + select: { id: true, isAdmin: true } +}).execute(); +``` + +### Create a orgMember + +```typescript +const item = await db.orgMember.create({ + data: { isAdmin: 'value', actorId: 'value', entityId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgMembership.md b/sdk/constructive-sdk/src/public/orm/skills/orgMembership.md new file mode 100644 index 000000000..7afbaff12 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/orgMembership.md @@ -0,0 +1,34 @@ +# orm-orgMembership + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgMembership records + +## Usage + +```typescript +db.orgMembership.findMany({ select: { id: true } }).execute() +db.orgMembership.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '' }, select: { id: true } }).execute() +db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.orgMembership.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgMembership records + +```typescript +const items = await db.orgMembership.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a orgMembership + +```typescript +const item = await db.orgMembership.create({ + data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', isBanned: 'value', isDisabled: 'value', isActive: 'value', isOwner: 'value', isAdmin: 'value', permissions: 'value', granted: 'value', actorId: 'value', entityId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgMembershipDefault.md b/sdk/constructive-sdk/src/public/orm/skills/orgMembershipDefault.md new file mode 100644 index 000000000..5327629e2 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/orgMembershipDefault.md @@ -0,0 +1,34 @@ +# orm-orgMembershipDefault + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgMembershipDefault records + +## Usage + +```typescript +db.orgMembershipDefault.findMany({ select: { id: true } }).execute() +db.orgMembershipDefault.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute() +db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() +db.orgMembershipDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgMembershipDefault records + +```typescript +const items = await db.orgMembershipDefault.findMany({ + select: { id: true, createdBy: true } +}).execute(); +``` + +### Create a orgMembershipDefault + +```typescript +const item = await db.orgMembershipDefault.create({ + data: { createdBy: 'value', updatedBy: 'value', isApproved: 'value', entityId: 'value', deleteMemberCascadeGroups: 'value', createGroupsCascadeMembers: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgOwnerGrant.md b/sdk/constructive-sdk/src/public/orm/skills/orgOwnerGrant.md new file mode 100644 index 000000000..27866aaf1 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/orgOwnerGrant.md @@ -0,0 +1,34 @@ +# orm-orgOwnerGrant + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgOwnerGrant records + +## Usage + +```typescript +db.orgOwnerGrant.findMany({ select: { id: true } }).execute() +db.orgOwnerGrant.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute() +db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute() +db.orgOwnerGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgOwnerGrant records + +```typescript +const items = await db.orgOwnerGrant.findMany({ + select: { id: true, isGrant: true } +}).execute(); +``` + +### Create a orgOwnerGrant + +```typescript +const item = await db.orgOwnerGrant.create({ + data: { isGrant: 'value', actorId: 'value', entityId: 'value', grantorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgPermission.md b/sdk/constructive-sdk/src/public/orm/skills/orgPermission.md new file mode 100644 index 000000000..b134f520e --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/orgPermission.md @@ -0,0 +1,34 @@ +# orm-orgPermission + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgPermission records + +## Usage + +```typescript +db.orgPermission.findMany({ select: { id: true } }).execute() +db.orgPermission.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute() +db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgPermission.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgPermission records + +```typescript +const items = await db.orgPermission.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgPermission + +```typescript +const item = await db.orgPermission.create({ + data: { name: 'value', bitnum: 'value', bitstr: 'value', description: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionDefault.md b/sdk/constructive-sdk/src/public/orm/skills/orgPermissionDefault.md new file mode 100644 index 000000000..65324e31b --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/orgPermissionDefault.md @@ -0,0 +1,34 @@ +# orm-orgPermissionDefault + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for OrgPermissionDefault records + +## Usage + +```typescript +db.orgPermissionDefault.findMany({ select: { id: true } }).execute() +db.orgPermissionDefault.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute() +db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute() +db.orgPermissionDefault.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgPermissionDefault records + +```typescript +const items = await db.orgPermissionDefault.findMany({ + select: { id: true, permissions: true } +}).execute(); +``` + +### Create a orgPermissionDefault + +```typescript +const item = await db.orgPermissionDefault.create({ + data: { permissions: 'value', entityId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetByMask.md b/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetByMask.md new file mode 100644 index 000000000..83bec21a2 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetByMask.md @@ -0,0 +1,19 @@ +# orm-orgPermissionsGetByMask + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Reads and enables pagination through a set of `OrgPermission`. + +## Usage + +```typescript +db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute() +``` + +## Examples + +### Run orgPermissionsGetByMask + +```typescript +const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetMask.md b/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetMask.md new file mode 100644 index 000000000..2d1821395 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetMask.md @@ -0,0 +1,19 @@ +# orm-orgPermissionsGetMask + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the orgPermissionsGetMask query + +## Usage + +```typescript +db.query.orgPermissionsGetMask({ ids: '' }).execute() +``` + +## Examples + +### Run orgPermissionsGetMask + +```typescript +const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetMaskByNames.md b/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetMaskByNames.md new file mode 100644 index 000000000..609530a02 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetMaskByNames.md @@ -0,0 +1,19 @@ +# orm-orgPermissionsGetMaskByNames + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the orgPermissionsGetMaskByNames query + +## Usage + +```typescript +db.query.orgPermissionsGetMaskByNames({ names: '' }).execute() +``` + +## Examples + +### Run orgPermissionsGetMaskByNames + +```typescript +const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetPaddedMask.md b/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetPaddedMask.md new file mode 100644 index 000000000..c6d800691 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/orgPermissionsGetPaddedMask.md @@ -0,0 +1,19 @@ +# orm-orgPermissionsGetPaddedMask + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the orgPermissionsGetPaddedMask query + +## Usage + +```typescript +db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute() +``` + +## Examples + +### Run orgPermissionsGetPaddedMask + +```typescript +const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/permissionsModule.md b/sdk/constructive-sdk/src/public/orm/skills/permissionsModule.md new file mode 100644 index 000000000..fed2fea6d --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/permissionsModule.md @@ -0,0 +1,34 @@ +# orm-permissionsModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for PermissionsModule records + +## Usage + +```typescript +db.permissionsModule.findMany({ select: { id: true } }).execute() +db.permissionsModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '' }, select: { id: true } }).execute() +db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.permissionsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all permissionsModule records + +```typescript +const items = await db.permissionsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a permissionsModule + +```typescript +const item = await db.permissionsModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', tableName: 'value', defaultTableId: 'value', defaultTableName: 'value', bitlen: 'value', membershipType: 'value', entityTableId: 'value', actorTableId: 'value', prefix: 'value', getPaddedMask: 'value', getMask: 'value', getByMask: 'value', getMaskByName: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/phoneNumber.md b/sdk/constructive-sdk/src/public/orm/skills/phoneNumber.md new file mode 100644 index 000000000..894f658ec --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/phoneNumber.md @@ -0,0 +1,34 @@ +# orm-phoneNumber + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for PhoneNumber records + +## Usage + +```typescript +db.phoneNumber.findMany({ select: { id: true } }).execute() +db.phoneNumber.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute() +db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.phoneNumber.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all phoneNumber records + +```typescript +const items = await db.phoneNumber.findMany({ + select: { id: true, ownerId: true } +}).execute(); +``` + +### Create a phoneNumber + +```typescript +const item = await db.phoneNumber.create({ + data: { ownerId: 'value', cc: 'value', number: 'value', isVerified: 'value', isPrimary: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/phoneNumbersModule.md b/sdk/constructive-sdk/src/public/orm/skills/phoneNumbersModule.md new file mode 100644 index 000000000..8c767131c --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/phoneNumbersModule.md @@ -0,0 +1,34 @@ +# orm-phoneNumbersModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for PhoneNumbersModule records + +## Usage + +```typescript +db.phoneNumbersModule.findMany({ select: { id: true } }).execute() +db.phoneNumbersModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.phoneNumbersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute() +db.phoneNumbersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.phoneNumbersModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all phoneNumbersModule records + +```typescript +const items = await db.phoneNumbersModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a phoneNumbersModule + +```typescript +const item = await db.phoneNumbersModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/policy.md b/sdk/constructive-sdk/src/public/orm/skills/policy.md new file mode 100644 index 000000000..d66d72307 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/policy.md @@ -0,0 +1,34 @@ +# orm-policy + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Policy records + +## Usage + +```typescript +db.policy.findMany({ select: { id: true } }).execute() +db.policy.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.policy.create({ data: { databaseId: '', tableId: '', name: '', roleName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.policy.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all policy records + +```typescript +const items = await db.policy.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a policy + +```typescript +const item = await db.policy.create({ + data: { databaseId: 'value', tableId: 'value', name: 'value', roleName: 'value', privilege: 'value', permissive: 'value', disabled: 'value', policyType: 'value', data: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/primaryKeyConstraint.md b/sdk/constructive-sdk/src/public/orm/skills/primaryKeyConstraint.md new file mode 100644 index 000000000..ae0805ee3 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/primaryKeyConstraint.md @@ -0,0 +1,34 @@ +# orm-primaryKeyConstraint + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for PrimaryKeyConstraint records + +## Usage + +```typescript +db.primaryKeyConstraint.findMany({ select: { id: true } }).execute() +db.primaryKeyConstraint.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.primaryKeyConstraint.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all primaryKeyConstraint records + +```typescript +const items = await db.primaryKeyConstraint.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a primaryKeyConstraint + +```typescript +const item = await db.primaryKeyConstraint.create({ + data: { databaseId: 'value', tableId: 'value', name: 'value', type: 'value', fieldIds: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/procedure.md b/sdk/constructive-sdk/src/public/orm/skills/procedure.md new file mode 100644 index 000000000..e259aaa79 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/procedure.md @@ -0,0 +1,34 @@ +# orm-procedure + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Procedure records + +## Usage + +```typescript +db.procedure.findMany({ select: { id: true } }).execute() +db.procedure.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.procedure.create({ data: { databaseId: '', name: '', argnames: '', argtypes: '', argdefaults: '', langName: '', definition: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.procedure.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.procedure.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all procedure records + +```typescript +const items = await db.procedure.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a procedure + +```typescript +const item = await db.procedure.create({ + data: { databaseId: 'value', name: 'value', argnames: 'value', argtypes: 'value', argdefaults: 'value', langName: 'value', definition: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/profilesModule.md b/sdk/constructive-sdk/src/public/orm/skills/profilesModule.md new file mode 100644 index 000000000..39e4e7179 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/profilesModule.md @@ -0,0 +1,34 @@ +# orm-profilesModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for ProfilesModule records + +## Usage + +```typescript +db.profilesModule.findMany({ select: { id: true } }).execute() +db.profilesModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute() +db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.profilesModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all profilesModule records + +```typescript +const items = await db.profilesModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a profilesModule + +```typescript +const item = await db.profilesModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', tableName: 'value', profilePermissionsTableId: 'value', profilePermissionsTableName: 'value', profileGrantsTableId: 'value', profileGrantsTableName: 'value', profileDefinitionGrantsTableId: 'value', profileDefinitionGrantsTableName: 'value', bitlen: 'value', membershipType: 'value', entityTableId: 'value', actorTableId: 'value', permissionsTableId: 'value', membershipsTableId: 'value', prefix: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/provisionDatabaseWithUser.md b/sdk/constructive-sdk/src/public/orm/skills/provisionDatabaseWithUser.md new file mode 100644 index 000000000..92ebebbc2 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/provisionDatabaseWithUser.md @@ -0,0 +1,19 @@ +# orm-provisionDatabaseWithUser + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the provisionDatabaseWithUser mutation + +## Usage + +```typescript +db.mutation.provisionDatabaseWithUser({ input: '' }).execute() +``` + +## Examples + +### Run provisionDatabaseWithUser + +```typescript +const result = await db.mutation.provisionDatabaseWithUser({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/ref.md b/sdk/constructive-sdk/src/public/orm/skills/ref.md new file mode 100644 index 000000000..c3350b040 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/ref.md @@ -0,0 +1,34 @@ +# orm-ref + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Ref records + +## Usage + +```typescript +db.ref.findMany({ select: { id: true } }).execute() +db.ref.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute() +db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.ref.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all ref records + +```typescript +const items = await db.ref.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a ref + +```typescript +const item = await db.ref.create({ + data: { name: 'value', databaseId: 'value', storeId: 'value', commitId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/removeNodeAtPath.md b/sdk/constructive-sdk/src/public/orm/skills/removeNodeAtPath.md new file mode 100644 index 000000000..cd0d47e9a --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/removeNodeAtPath.md @@ -0,0 +1,19 @@ +# orm-removeNodeAtPath + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the removeNodeAtPath mutation + +## Usage + +```typescript +db.mutation.removeNodeAtPath({ input: '' }).execute() +``` + +## Examples + +### Run removeNodeAtPath + +```typescript +const result = await db.mutation.removeNodeAtPath({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/resetPassword.md b/sdk/constructive-sdk/src/public/orm/skills/resetPassword.md new file mode 100644 index 000000000..4f9e2e541 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/resetPassword.md @@ -0,0 +1,19 @@ +# orm-resetPassword + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the resetPassword mutation + +## Usage + +```typescript +db.mutation.resetPassword({ input: '' }).execute() +``` + +## Examples + +### Run resetPassword + +```typescript +const result = await db.mutation.resetPassword({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/revParse.md b/sdk/constructive-sdk/src/public/orm/skills/revParse.md new file mode 100644 index 000000000..59ac9b453 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/revParse.md @@ -0,0 +1,19 @@ +# orm-revParse + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the revParse query + +## Usage + +```typescript +db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute() +``` + +## Examples + +### Run revParse + +```typescript +const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/rlsModule.md b/sdk/constructive-sdk/src/public/orm/skills/rlsModule.md new file mode 100644 index 000000000..e04b06e6d --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/rlsModule.md @@ -0,0 +1,34 @@ +# orm-rlsModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for RlsModule records + +## Usage + +```typescript +db.rlsModule.findMany({ select: { id: true } }).execute() +db.rlsModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.rlsModule.create({ data: { databaseId: '', apiId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, select: { id: true } }).execute() +db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.rlsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all rlsModule records + +```typescript +const items = await db.rlsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a rlsModule + +```typescript +const item = await db.rlsModule.create({ + data: { databaseId: 'value', apiId: 'value', schemaId: 'value', privateSchemaId: 'value', sessionCredentialsTableId: 'value', sessionsTableId: 'value', usersTableId: 'value', authenticate: 'value', authenticateStrict: 'value', currentRole: 'value', currentRoleId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/roleType.md b/sdk/constructive-sdk/src/public/orm/skills/roleType.md new file mode 100644 index 000000000..678e88b33 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/roleType.md @@ -0,0 +1,34 @@ +# orm-roleType + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for RoleType records + +## Usage + +```typescript +db.roleType.findMany({ select: { id: true } }).execute() +db.roleType.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.roleType.create({ data: { name: '' }, select: { id: true } }).execute() +db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.roleType.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all roleType records + +```typescript +const items = await db.roleType.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a roleType + +```typescript +const item = await db.roleType.create({ + data: { name: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/schema.md b/sdk/constructive-sdk/src/public/orm/skills/schema.md new file mode 100644 index 000000000..becb24884 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/schema.md @@ -0,0 +1,34 @@ +# orm-schema + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Schema records + +## Usage + +```typescript +db.schema.findMany({ select: { id: true } }).execute() +db.schema.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute() +db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.schema.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all schema records + +```typescript +const items = await db.schema.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a schema + +```typescript +const item = await db.schema.create({ + data: { databaseId: 'value', name: 'value', schemaName: 'value', label: 'value', description: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value', isPublic: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/schemaGrant.md b/sdk/constructive-sdk/src/public/orm/skills/schemaGrant.md new file mode 100644 index 000000000..e57491c19 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/schemaGrant.md @@ -0,0 +1,34 @@ +# orm-schemaGrant + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for SchemaGrant records + +## Usage + +```typescript +db.schemaGrant.findMany({ select: { id: true } }).execute() +db.schemaGrant.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.schemaGrant.create({ data: { databaseId: '', schemaId: '', granteeName: '' }, select: { id: true } }).execute() +db.schemaGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.schemaGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all schemaGrant records + +```typescript +const items = await db.schemaGrant.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a schemaGrant + +```typescript +const item = await db.schemaGrant.create({ + data: { databaseId: 'value', schemaId: 'value', granteeName: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/secretsModule.md b/sdk/constructive-sdk/src/public/orm/skills/secretsModule.md new file mode 100644 index 000000000..b0c32940f --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/secretsModule.md @@ -0,0 +1,34 @@ +# orm-secretsModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for SecretsModule records + +## Usage + +```typescript +db.secretsModule.findMany({ select: { id: true } }).execute() +db.secretsModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.secretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute() +db.secretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.secretsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all secretsModule records + +```typescript +const items = await db.secretsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a secretsModule + +```typescript +const item = await db.secretsModule.create({ + data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/sendAccountDeletionEmail.md b/sdk/constructive-sdk/src/public/orm/skills/sendAccountDeletionEmail.md new file mode 100644 index 000000000..0081149b3 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/sendAccountDeletionEmail.md @@ -0,0 +1,19 @@ +# orm-sendAccountDeletionEmail + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the sendAccountDeletionEmail mutation + +## Usage + +```typescript +db.mutation.sendAccountDeletionEmail({ input: '' }).execute() +``` + +## Examples + +### Run sendAccountDeletionEmail + +```typescript +const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/sendVerificationEmail.md b/sdk/constructive-sdk/src/public/orm/skills/sendVerificationEmail.md new file mode 100644 index 000000000..a82c920a0 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/sendVerificationEmail.md @@ -0,0 +1,19 @@ +# orm-sendVerificationEmail + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the sendVerificationEmail mutation + +## Usage + +```typescript +db.mutation.sendVerificationEmail({ input: '' }).execute() +``` + +## Examples + +### Run sendVerificationEmail + +```typescript +const result = await db.mutation.sendVerificationEmail({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/sessionsModule.md b/sdk/constructive-sdk/src/public/orm/skills/sessionsModule.md new file mode 100644 index 000000000..6928af24c --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/sessionsModule.md @@ -0,0 +1,34 @@ +# orm-sessionsModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for SessionsModule records + +## Usage + +```typescript +db.sessionsModule.findMany({ select: { id: true } }).execute() +db.sessionsModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.sessionsModule.create({ data: { databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }, select: { id: true } }).execute() +db.sessionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.sessionsModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all sessionsModule records + +```typescript +const items = await db.sessionsModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a sessionsModule + +```typescript +const item = await db.sessionsModule.create({ + data: { databaseId: 'value', schemaId: 'value', sessionsTableId: 'value', sessionCredentialsTableId: 'value', authSettingsTableId: 'value', usersTableId: 'value', sessionsDefaultExpiration: 'value', sessionsTable: 'value', sessionCredentialsTable: 'value', authSettingsTable: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/setAndCommit.md b/sdk/constructive-sdk/src/public/orm/skills/setAndCommit.md new file mode 100644 index 000000000..8fc7e3ba4 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/setAndCommit.md @@ -0,0 +1,19 @@ +# orm-setAndCommit + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the setAndCommit mutation + +## Usage + +```typescript +db.mutation.setAndCommit({ input: '' }).execute() +``` + +## Examples + +### Run setAndCommit + +```typescript +const result = await db.mutation.setAndCommit({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/setDataAtPath.md b/sdk/constructive-sdk/src/public/orm/skills/setDataAtPath.md new file mode 100644 index 000000000..c8d322516 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/setDataAtPath.md @@ -0,0 +1,19 @@ +# orm-setDataAtPath + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the setDataAtPath mutation + +## Usage + +```typescript +db.mutation.setDataAtPath({ input: '' }).execute() +``` + +## Examples + +### Run setDataAtPath + +```typescript +const result = await db.mutation.setDataAtPath({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/setFieldOrder.md b/sdk/constructive-sdk/src/public/orm/skills/setFieldOrder.md new file mode 100644 index 000000000..2a26ba44b --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/setFieldOrder.md @@ -0,0 +1,19 @@ +# orm-setFieldOrder + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the setFieldOrder mutation + +## Usage + +```typescript +db.mutation.setFieldOrder({ input: '' }).execute() +``` + +## Examples + +### Run setFieldOrder + +```typescript +const result = await db.mutation.setFieldOrder({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/setPassword.md b/sdk/constructive-sdk/src/public/orm/skills/setPassword.md new file mode 100644 index 000000000..692bcc7f4 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/setPassword.md @@ -0,0 +1,19 @@ +# orm-setPassword + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the setPassword mutation + +## Usage + +```typescript +db.mutation.setPassword({ input: '' }).execute() +``` + +## Examples + +### Run setPassword + +```typescript +const result = await db.mutation.setPassword({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/setPropsAndCommit.md b/sdk/constructive-sdk/src/public/orm/skills/setPropsAndCommit.md new file mode 100644 index 000000000..276c74aad --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/setPropsAndCommit.md @@ -0,0 +1,19 @@ +# orm-setPropsAndCommit + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the setPropsAndCommit mutation + +## Usage + +```typescript +db.mutation.setPropsAndCommit({ input: '' }).execute() +``` + +## Examples + +### Run setPropsAndCommit + +```typescript +const result = await db.mutation.setPropsAndCommit({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/signIn.md b/sdk/constructive-sdk/src/public/orm/skills/signIn.md new file mode 100644 index 000000000..9035cfcfc --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/signIn.md @@ -0,0 +1,19 @@ +# orm-signIn + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the signIn mutation + +## Usage + +```typescript +db.mutation.signIn({ input: '' }).execute() +``` + +## Examples + +### Run signIn + +```typescript +const result = await db.mutation.signIn({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/signInOneTimeToken.md b/sdk/constructive-sdk/src/public/orm/skills/signInOneTimeToken.md new file mode 100644 index 000000000..97be17189 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/signInOneTimeToken.md @@ -0,0 +1,19 @@ +# orm-signInOneTimeToken + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the signInOneTimeToken mutation + +## Usage + +```typescript +db.mutation.signInOneTimeToken({ input: '' }).execute() +``` + +## Examples + +### Run signInOneTimeToken + +```typescript +const result = await db.mutation.signInOneTimeToken({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/signOut.md b/sdk/constructive-sdk/src/public/orm/skills/signOut.md new file mode 100644 index 000000000..6581a2b63 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/signOut.md @@ -0,0 +1,19 @@ +# orm-signOut + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the signOut mutation + +## Usage + +```typescript +db.mutation.signOut({ input: '' }).execute() +``` + +## Examples + +### Run signOut + +```typescript +const result = await db.mutation.signOut({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/signUp.md b/sdk/constructive-sdk/src/public/orm/skills/signUp.md new file mode 100644 index 000000000..74e3d2d8d --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/signUp.md @@ -0,0 +1,19 @@ +# orm-signUp + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the signUp mutation + +## Usage + +```typescript +db.mutation.signUp({ input: '' }).execute() +``` + +## Examples + +### Run signUp + +```typescript +const result = await db.mutation.signUp({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/site.md b/sdk/constructive-sdk/src/public/orm/skills/site.md new file mode 100644 index 000000000..f8299428b --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/site.md @@ -0,0 +1,34 @@ +# orm-site + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Site records + +## Usage + +```typescript +db.site.findMany({ select: { id: true } }).execute() +db.site.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.site.create({ data: { databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }, select: { id: true } }).execute() +db.site.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.site.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all site records + +```typescript +const items = await db.site.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a site + +```typescript +const item = await db.site.create({ + data: { databaseId: 'value', title: 'value', description: 'value', ogImage: 'value', favicon: 'value', appleTouchIcon: 'value', logo: 'value', dbname: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/siteMetadatum.md b/sdk/constructive-sdk/src/public/orm/skills/siteMetadatum.md new file mode 100644 index 000000000..526a13649 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/siteMetadatum.md @@ -0,0 +1,34 @@ +# orm-siteMetadatum + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for SiteMetadatum records + +## Usage + +```typescript +db.siteMetadatum.findMany({ select: { id: true } }).execute() +db.siteMetadatum.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.siteMetadatum.create({ data: { databaseId: '', siteId: '', title: '', description: '', ogImage: '' }, select: { id: true } }).execute() +db.siteMetadatum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.siteMetadatum.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all siteMetadatum records + +```typescript +const items = await db.siteMetadatum.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a siteMetadatum + +```typescript +const item = await db.siteMetadatum.create({ + data: { databaseId: 'value', siteId: 'value', title: 'value', description: 'value', ogImage: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/siteModule.md b/sdk/constructive-sdk/src/public/orm/skills/siteModule.md new file mode 100644 index 000000000..acfeb3669 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/siteModule.md @@ -0,0 +1,34 @@ +# orm-siteModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for SiteModule records + +## Usage + +```typescript +db.siteModule.findMany({ select: { id: true } }).execute() +db.siteModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.siteModule.create({ data: { databaseId: '', siteId: '', name: '', data: '' }, select: { id: true } }).execute() +db.siteModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.siteModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all siteModule records + +```typescript +const items = await db.siteModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a siteModule + +```typescript +const item = await db.siteModule.create({ + data: { databaseId: 'value', siteId: 'value', name: 'value', data: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/siteTheme.md b/sdk/constructive-sdk/src/public/orm/skills/siteTheme.md new file mode 100644 index 000000000..6fbc05291 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/siteTheme.md @@ -0,0 +1,34 @@ +# orm-siteTheme + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for SiteTheme records + +## Usage + +```typescript +db.siteTheme.findMany({ select: { id: true } }).execute() +db.siteTheme.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.siteTheme.create({ data: { databaseId: '', siteId: '', theme: '' }, select: { id: true } }).execute() +db.siteTheme.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.siteTheme.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all siteTheme records + +```typescript +const items = await db.siteTheme.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a siteTheme + +```typescript +const item = await db.siteTheme.create({ + data: { databaseId: 'value', siteId: 'value', theme: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/sqlMigration.md b/sdk/constructive-sdk/src/public/orm/skills/sqlMigration.md new file mode 100644 index 000000000..0a7ee312b --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/sqlMigration.md @@ -0,0 +1,34 @@ +# orm-sqlMigration + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for SqlMigration records + +## Usage + +```typescript +db.sqlMigration.findMany({ select: { id: true } }).execute() +db.sqlMigration.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.sqlMigration.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute() +db.sqlMigration.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.sqlMigration.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all sqlMigration records + +```typescript +const items = await db.sqlMigration.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a sqlMigration + +```typescript +const item = await db.sqlMigration.create({ + data: { name: 'value', databaseId: 'value', deploy: 'value', deps: 'value', payload: 'value', content: 'value', revert: 'value', verify: 'value', action: 'value', actionId: 'value', actorId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/stepsAchieved.md b/sdk/constructive-sdk/src/public/orm/skills/stepsAchieved.md new file mode 100644 index 000000000..e0de833fd --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/stepsAchieved.md @@ -0,0 +1,19 @@ +# orm-stepsAchieved + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the stepsAchieved query + +## Usage + +```typescript +db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute() +``` + +## Examples + +### Run stepsAchieved + +```typescript +const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/stepsRequired.md b/sdk/constructive-sdk/src/public/orm/skills/stepsRequired.md new file mode 100644 index 000000000..b346c983e --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/stepsRequired.md @@ -0,0 +1,19 @@ +# orm-stepsRequired + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Reads and enables pagination through a set of `AppLevelRequirement`. + +## Usage + +```typescript +db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute() +``` + +## Examples + +### Run stepsRequired + +```typescript +const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/store.md b/sdk/constructive-sdk/src/public/orm/skills/store.md new file mode 100644 index 000000000..ba6dc69b1 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/store.md @@ -0,0 +1,34 @@ +# orm-store + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Store records + +## Usage + +```typescript +db.store.findMany({ select: { id: true } }).execute() +db.store.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute() +db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.store.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all store records + +```typescript +const items = await db.store.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a store + +```typescript +const item = await db.store.create({ + data: { name: 'value', databaseId: 'value', hash: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/submitInviteCode.md b/sdk/constructive-sdk/src/public/orm/skills/submitInviteCode.md new file mode 100644 index 000000000..c75dab0db --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/submitInviteCode.md @@ -0,0 +1,19 @@ +# orm-submitInviteCode + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the submitInviteCode mutation + +## Usage + +```typescript +db.mutation.submitInviteCode({ input: '' }).execute() +``` + +## Examples + +### Run submitInviteCode + +```typescript +const result = await db.mutation.submitInviteCode({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/submitOrgInviteCode.md b/sdk/constructive-sdk/src/public/orm/skills/submitOrgInviteCode.md new file mode 100644 index 000000000..4021119d9 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/submitOrgInviteCode.md @@ -0,0 +1,19 @@ +# orm-submitOrgInviteCode + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the submitOrgInviteCode mutation + +## Usage + +```typescript +db.mutation.submitOrgInviteCode({ input: '' }).execute() +``` + +## Examples + +### Run submitOrgInviteCode + +```typescript +const result = await db.mutation.submitOrgInviteCode({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/table.md b/sdk/constructive-sdk/src/public/orm/skills/table.md new file mode 100644 index 000000000..4219bf469 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/table.md @@ -0,0 +1,34 @@ +# orm-table + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Table records + +## Usage + +```typescript +db.table.findMany({ select: { id: true } }).execute() +db.table.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', inheritsId: '' }, select: { id: true } }).execute() +db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.table.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all table records + +```typescript +const items = await db.table.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a table + +```typescript +const item = await db.table.create({ + data: { databaseId: 'value', schemaId: 'value', name: 'value', label: 'value', description: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', useRls: 'value', timestamps: 'value', peoplestamps: 'value', pluralName: 'value', singularName: 'value', tags: 'value', inheritsId: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/tableGrant.md b/sdk/constructive-sdk/src/public/orm/skills/tableGrant.md new file mode 100644 index 000000000..aefeb3ba6 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/tableGrant.md @@ -0,0 +1,34 @@ +# orm-tableGrant + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for TableGrant records + +## Usage + +```typescript +db.tableGrant.findMany({ select: { id: true } }).execute() +db.tableGrant.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', roleName: '', fieldIds: '' }, select: { id: true } }).execute() +db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.tableGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all tableGrant records + +```typescript +const items = await db.tableGrant.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a tableGrant + +```typescript +const item = await db.tableGrant.create({ + data: { databaseId: 'value', tableId: 'value', privilege: 'value', roleName: 'value', fieldIds: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/tableModule.md b/sdk/constructive-sdk/src/public/orm/skills/tableModule.md new file mode 100644 index 000000000..404a0b4e9 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/tableModule.md @@ -0,0 +1,34 @@ +# orm-tableModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for TableModule records + +## Usage + +```typescript +db.tableModule.findMany({ select: { id: true } }).execute() +db.tableModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.tableModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', nodeType: '', data: '', fields: '' }, select: { id: true } }).execute() +db.tableModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.tableModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all tableModule records + +```typescript +const items = await db.tableModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a tableModule + +```typescript +const item = await db.tableModule.create({ + data: { databaseId: 'value', privateSchemaId: 'value', tableId: 'value', nodeType: 'value', data: 'value', fields: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/tableTemplateModule.md b/sdk/constructive-sdk/src/public/orm/skills/tableTemplateModule.md new file mode 100644 index 000000000..68bc4f8b6 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/tableTemplateModule.md @@ -0,0 +1,34 @@ +# orm-tableTemplateModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for TableTemplateModule records + +## Usage + +```typescript +db.tableTemplateModule.findMany({ select: { id: true } }).execute() +db.tableTemplateModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.tableTemplateModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', nodeType: '', data: '' }, select: { id: true } }).execute() +db.tableTemplateModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.tableTemplateModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all tableTemplateModule records + +```typescript +const items = await db.tableTemplateModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a tableTemplateModule + +```typescript +const item = await db.tableTemplateModule.create({ + data: { databaseId: 'value', schemaId: 'value', privateSchemaId: 'value', tableId: 'value', ownerTableId: 'value', tableName: 'value', nodeType: 'value', data: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/trigger.md b/sdk/constructive-sdk/src/public/orm/skills/trigger.md new file mode 100644 index 000000000..d6948be87 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/trigger.md @@ -0,0 +1,34 @@ +# orm-trigger + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for Trigger records + +## Usage + +```typescript +db.trigger.findMany({ select: { id: true } }).execute() +db.trigger.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.trigger.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all trigger records + +```typescript +const items = await db.trigger.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a trigger + +```typescript +const item = await db.trigger.create({ + data: { databaseId: 'value', tableId: 'value', name: 'value', event: 'value', functionName: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/triggerFunction.md b/sdk/constructive-sdk/src/public/orm/skills/triggerFunction.md new file mode 100644 index 000000000..af5ddecd7 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/triggerFunction.md @@ -0,0 +1,34 @@ +# orm-triggerFunction + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for TriggerFunction records + +## Usage + +```typescript +db.triggerFunction.findMany({ select: { id: true } }).execute() +db.triggerFunction.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.triggerFunction.create({ data: { databaseId: '', name: '', code: '' }, select: { id: true } }).execute() +db.triggerFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.triggerFunction.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all triggerFunction records + +```typescript +const items = await db.triggerFunction.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a triggerFunction + +```typescript +const item = await db.triggerFunction.create({ + data: { databaseId: 'value', name: 'value', code: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/uniqueConstraint.md b/sdk/constructive-sdk/src/public/orm/skills/uniqueConstraint.md new file mode 100644 index 000000000..df2de4558 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/uniqueConstraint.md @@ -0,0 +1,34 @@ +# orm-uniqueConstraint + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for UniqueConstraint records + +## Usage + +```typescript +db.uniqueConstraint.findMany({ select: { id: true } }).execute() +db.uniqueConstraint.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.uniqueConstraint.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all uniqueConstraint records + +```typescript +const items = await db.uniqueConstraint.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a uniqueConstraint + +```typescript +const item = await db.uniqueConstraint.create({ + data: { databaseId: 'value', tableId: 'value', name: 'value', description: 'value', smartTags: 'value', type: 'value', fieldIds: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/updateNodeAtPath.md b/sdk/constructive-sdk/src/public/orm/skills/updateNodeAtPath.md new file mode 100644 index 000000000..19cdfad04 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/updateNodeAtPath.md @@ -0,0 +1,19 @@ +# orm-updateNodeAtPath + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the updateNodeAtPath mutation + +## Usage + +```typescript +db.mutation.updateNodeAtPath({ input: '' }).execute() +``` + +## Examples + +### Run updateNodeAtPath + +```typescript +const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/user.md b/sdk/constructive-sdk/src/public/orm/skills/user.md new file mode 100644 index 000000000..0b351e7fd --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/user.md @@ -0,0 +1,34 @@ +# orm-user + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for User records + +## Usage + +```typescript +db.user.findMany({ select: { id: true } }).execute() +db.user.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }, select: { id: true } }).execute() +db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute() +db.user.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all user records + +```typescript +const items = await db.user.findMany({ + select: { id: true, username: true } +}).execute(); +``` + +### Create a user + +```typescript +const item = await db.user.create({ + data: { username: 'value', displayName: 'value', profilePicture: 'value', searchTsv: 'value', type: 'value', searchTsvRank: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/userAuthModule.md b/sdk/constructive-sdk/src/public/orm/skills/userAuthModule.md new file mode 100644 index 000000000..d2022aad2 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/userAuthModule.md @@ -0,0 +1,34 @@ +# orm-userAuthModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for UserAuthModule records + +## Usage + +```typescript +db.userAuthModule.findMany({ select: { id: true } }).execute() +db.userAuthModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.userAuthModule.create({ data: { databaseId: '', schemaId: '', emailsTableId: '', usersTableId: '', secretsTableId: '', encryptedTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', auditsTableName: '', signInFunction: '', signUpFunction: '', signOutFunction: '', setPasswordFunction: '', resetPasswordFunction: '', forgotPasswordFunction: '', sendVerificationEmailFunction: '', verifyEmailFunction: '', verifyPasswordFunction: '', checkPasswordFunction: '', sendAccountDeletionEmailFunction: '', deleteAccountFunction: '', signInOneTimeTokenFunction: '', oneTimeTokenFunction: '', extendTokenExpires: '' }, select: { id: true } }).execute() +db.userAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.userAuthModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all userAuthModule records + +```typescript +const items = await db.userAuthModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a userAuthModule + +```typescript +const item = await db.userAuthModule.create({ + data: { databaseId: 'value', schemaId: 'value', emailsTableId: 'value', usersTableId: 'value', secretsTableId: 'value', encryptedTableId: 'value', sessionsTableId: 'value', sessionCredentialsTableId: 'value', auditsTableId: 'value', auditsTableName: 'value', signInFunction: 'value', signUpFunction: 'value', signOutFunction: 'value', setPasswordFunction: 'value', resetPasswordFunction: 'value', forgotPasswordFunction: 'value', sendVerificationEmailFunction: 'value', verifyEmailFunction: 'value', verifyPasswordFunction: 'value', checkPasswordFunction: 'value', sendAccountDeletionEmailFunction: 'value', deleteAccountFunction: 'value', signInOneTimeTokenFunction: 'value', oneTimeTokenFunction: 'value', extendTokenExpires: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/usersModule.md b/sdk/constructive-sdk/src/public/orm/skills/usersModule.md new file mode 100644 index 000000000..77eda83c9 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/usersModule.md @@ -0,0 +1,34 @@ +# orm-usersModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for UsersModule records + +## Usage + +```typescript +db.usersModule.findMany({ select: { id: true } }).execute() +db.usersModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.usersModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '' }, select: { id: true } }).execute() +db.usersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.usersModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all usersModule records + +```typescript +const items = await db.usersModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a usersModule + +```typescript +const item = await db.usersModule.create({ + data: { databaseId: 'value', schemaId: 'value', tableId: 'value', tableName: 'value', typeTableId: 'value', typeTableName: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/uuidModule.md b/sdk/constructive-sdk/src/public/orm/skills/uuidModule.md new file mode 100644 index 000000000..69c4eacef --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/uuidModule.md @@ -0,0 +1,34 @@ +# orm-uuidModule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for UuidModule records + +## Usage + +```typescript +db.uuidModule.findMany({ select: { id: true } }).execute() +db.uuidModule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.uuidModule.create({ data: { databaseId: '', schemaId: '', uuidFunction: '', uuidSeed: '' }, select: { id: true } }).execute() +db.uuidModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.uuidModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all uuidModule records + +```typescript +const items = await db.uuidModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a uuidModule + +```typescript +const item = await db.uuidModule.create({ + data: { databaseId: 'value', schemaId: 'value', uuidFunction: 'value', uuidSeed: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/verifyEmail.md b/sdk/constructive-sdk/src/public/orm/skills/verifyEmail.md new file mode 100644 index 000000000..c12e7745e --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/verifyEmail.md @@ -0,0 +1,19 @@ +# orm-verifyEmail + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the verifyEmail mutation + +## Usage + +```typescript +db.mutation.verifyEmail({ input: '' }).execute() +``` + +## Examples + +### Run verifyEmail + +```typescript +const result = await db.mutation.verifyEmail({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/verifyPassword.md b/sdk/constructive-sdk/src/public/orm/skills/verifyPassword.md new file mode 100644 index 000000000..46404a0bd --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/verifyPassword.md @@ -0,0 +1,19 @@ +# orm-verifyPassword + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the verifyPassword mutation + +## Usage + +```typescript +db.mutation.verifyPassword({ input: '' }).execute() +``` + +## Examples + +### Run verifyPassword + +```typescript +const result = await db.mutation.verifyPassword({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/verifyTotp.md b/sdk/constructive-sdk/src/public/orm/skills/verifyTotp.md new file mode 100644 index 000000000..d2cabafca --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/verifyTotp.md @@ -0,0 +1,19 @@ +# orm-verifyTotp + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +Execute the verifyTotp mutation + +## Usage + +```typescript +db.mutation.verifyTotp({ input: '' }).execute() +``` + +## Examples + +### Run verifyTotp + +```typescript +const result = await db.mutation.verifyTotp({ input: '' }).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/view.md b/sdk/constructive-sdk/src/public/orm/skills/view.md new file mode 100644 index 000000000..6ad9f8572 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/view.md @@ -0,0 +1,34 @@ +# orm-view + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for View records + +## Usage + +```typescript +db.view.findMany({ select: { id: true } }).execute() +db.view.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.view.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all view records + +```typescript +const items = await db.view.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a view + +```typescript +const item = await db.view.create({ + data: { databaseId: 'value', schemaId: 'value', name: 'value', tableId: 'value', viewType: 'value', data: 'value', filterType: 'value', filterData: 'value', securityInvoker: 'value', isReadOnly: 'value', smartTags: 'value', category: 'value', module: 'value', scope: 'value', tags: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/viewGrant.md b/sdk/constructive-sdk/src/public/orm/skills/viewGrant.md new file mode 100644 index 000000000..cd61d5576 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/viewGrant.md @@ -0,0 +1,34 @@ +# orm-viewGrant + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for ViewGrant records + +## Usage + +```typescript +db.viewGrant.findMany({ select: { id: true } }).execute() +db.viewGrant.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.viewGrant.create({ data: { databaseId: '', viewId: '', roleName: '', privilege: '', withGrantOption: '' }, select: { id: true } }).execute() +db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.viewGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all viewGrant records + +```typescript +const items = await db.viewGrant.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a viewGrant + +```typescript +const item = await db.viewGrant.create({ + data: { databaseId: 'value', viewId: 'value', roleName: 'value', privilege: 'value', withGrantOption: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/viewRule.md b/sdk/constructive-sdk/src/public/orm/skills/viewRule.md new file mode 100644 index 000000000..9e3f6d809 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/viewRule.md @@ -0,0 +1,34 @@ +# orm-viewRule + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for ViewRule records + +## Usage + +```typescript +db.viewRule.findMany({ select: { id: true } }).execute() +db.viewRule.findOne({ where: { id: '' }, select: { id: true } }).execute() +db.viewRule.create({ data: { databaseId: '', viewId: '', name: '', event: '', action: '' }, select: { id: true } }).execute() +db.viewRule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.viewRule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all viewRule records + +```typescript +const items = await db.viewRule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a viewRule + +```typescript +const item = await db.viewRule.create({ + data: { databaseId: 'value', viewId: 'value', name: 'value', event: 'value', action: 'value' }, + select: { id: true } +}).execute(); +``` diff --git a/sdk/constructive-sdk/src/public/orm/skills/viewTable.md b/sdk/constructive-sdk/src/public/orm/skills/viewTable.md new file mode 100644 index 000000000..88fd62a54 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/skills/viewTable.md @@ -0,0 +1,34 @@ +# orm-viewTable + +> @generated by @constructive-io/graphql-codegen - DO NOT EDIT + +ORM operations for ViewTable records + +## Usage + +```typescript +db.viewTable.findMany({ select: { id: true } }).execute() +db.viewTable.findOne({ where: { 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-sdk/src/public/schema-types.ts b/sdk/constructive-sdk/src/public/schema-types.ts deleted file mode 100644 index bc3a1fe4e..000000000 --- a/sdk/constructive-sdk/src/public/schema-types.ts +++ /dev/null @@ -1,10489 +0,0 @@ -/** - * 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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -export type ApiOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -export type SiteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -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'; -export type ConnectedAccountsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type CryptoAddressesModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type CryptoAuthModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type DefaultIdsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type DenormalizedTableFieldOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type EmailsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type EncryptedSecretsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -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'; -export type InvitesModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type LevelsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type LimitsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type MembershipTypesModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type MembershipsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type PermissionsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type PhoneNumbersModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -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'; -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'; -export type SecretsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type SessionsModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type UserAuthModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type UsersModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type UuidModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -export type AppLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; -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'; -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'; -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'; -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'; -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'; -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'; -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'; -export type AppPermissionDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC'; -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'; -export type StoreOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export type RoleTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -export type OrgPermissionDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC'; -export type AppLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -export type OrgLimitDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -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'; -export type MembershipTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -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'; -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'; -export type AppPermissionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC'; -export type OrgPermissionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC'; -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'; -export type NodeTypeRegistryOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'SLUG_ASC' - | 'SLUG_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC'; -export type ObjectOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'FRZN_ASC' - | 'FRZN_DESC'; -export type CommitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -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'; -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'; -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'; -export type AuditLogOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC'; -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'; -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'; -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'; -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'; -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'; -export type HierarchyModuleOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC'; -export interface CheckConstraintCondition { - 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 CheckConstraintFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - tableId?: UUIDFilter; - name?: StringFilter; - type?: StringFilter; - fieldIds?: UUIDListFilter; - expr?: JSONFilter; - smartTags?: JSONFilter; - category?: ObjectCategoryFilter; - module?: StringFilter; - scope?: IntFilter; - tags?: StringListFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: CheckConstraintFilter[]; - or?: CheckConstraintFilter[]; - not?: CheckConstraintFilter; -} -export interface ObjectCategoryFilter { - isNull?: boolean; - equalTo?: ObjectCategory; - notEqualTo?: ObjectCategory; - distinctFrom?: ObjectCategory; - notDistinctFrom?: ObjectCategory; - in?: ObjectCategory[]; - notIn?: ObjectCategory[]; - lessThan?: ObjectCategory; - lessThanOrEqualTo?: ObjectCategory; - greaterThan?: ObjectCategory; - greaterThanOrEqualTo?: ObjectCategory; -} -export interface FieldCondition { - 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 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?: StringListFilter; - category?: ObjectCategoryFilter; - module?: StringFilter; - scope?: IntFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: FieldFilter[]; - or?: FieldFilter[]; - not?: FieldFilter; -} -export interface ForeignKeyConstraintCondition { - 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 ForeignKeyConstraintFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - tableId?: UUIDFilter; - name?: StringFilter; - description?: StringFilter; - smartTags?: JSONFilter; - type?: StringFilter; - fieldIds?: UUIDListFilter; - refTableId?: UUIDFilter; - refFieldIds?: UUIDListFilter; - deleteAction?: StringFilter; - updateAction?: StringFilter; - category?: ObjectCategoryFilter; - module?: StringFilter; - scope?: IntFilter; - tags?: StringListFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: ForeignKeyConstraintFilter[]; - or?: ForeignKeyConstraintFilter[]; - not?: ForeignKeyConstraintFilter; -} -export interface FullTextSearchCondition { - id?: string; - databaseId?: string; - tableId?: string; - fieldId?: string; - fieldIds?: string[]; - weights?: string[]; - langs?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface FullTextSearchFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - tableId?: UUIDFilter; - fieldId?: UUIDFilter; - fieldIds?: UUIDListFilter; - weights?: StringListFilter; - langs?: StringListFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: FullTextSearchFilter[]; - or?: FullTextSearchFilter[]; - not?: FullTextSearchFilter; -} -export interface IndexCondition { - 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 IndexFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - tableId?: UUIDFilter; - name?: StringFilter; - fieldIds?: UUIDListFilter; - includeFieldIds?: UUIDListFilter; - accessMethod?: StringFilter; - indexParams?: JSONFilter; - whereClause?: JSONFilter; - isUnique?: BooleanFilter; - smartTags?: JSONFilter; - category?: ObjectCategoryFilter; - module?: StringFilter; - scope?: IntFilter; - tags?: StringListFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: IndexFilter[]; - or?: IndexFilter[]; - not?: IndexFilter; -} -export interface LimitFunctionCondition { - id?: string; - databaseId?: string; - tableId?: string; - name?: string; - label?: string; - description?: string; - data?: unknown; - security?: number; -} -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 PolicyCondition { - 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 PolicyFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - tableId?: UUIDFilter; - name?: StringFilter; - roleName?: StringFilter; - privilege?: StringFilter; - permissive?: BooleanFilter; - disabled?: BooleanFilter; - policyType?: StringFilter; - data?: JSONFilter; - smartTags?: JSONFilter; - category?: ObjectCategoryFilter; - module?: StringFilter; - scope?: IntFilter; - tags?: StringListFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: PolicyFilter[]; - or?: PolicyFilter[]; - not?: PolicyFilter; -} -export interface PrimaryKeyConstraintCondition { - 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 PrimaryKeyConstraintFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - tableId?: UUIDFilter; - name?: StringFilter; - type?: StringFilter; - fieldIds?: UUIDListFilter; - smartTags?: JSONFilter; - category?: ObjectCategoryFilter; - module?: StringFilter; - scope?: IntFilter; - tags?: StringListFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: PrimaryKeyConstraintFilter[]; - or?: PrimaryKeyConstraintFilter[]; - not?: PrimaryKeyConstraintFilter; -} -export interface TableGrantCondition { - id?: string; - databaseId?: string; - tableId?: string; - privilege?: string; - roleName?: string; - fieldIds?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface TableGrantFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - tableId?: UUIDFilter; - privilege?: StringFilter; - roleName?: StringFilter; - fieldIds?: UUIDListFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: TableGrantFilter[]; - or?: TableGrantFilter[]; - not?: TableGrantFilter; -} -export interface TriggerCondition { - 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 TriggerFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - tableId?: UUIDFilter; - name?: StringFilter; - event?: StringFilter; - functionName?: StringFilter; - smartTags?: JSONFilter; - category?: ObjectCategoryFilter; - module?: StringFilter; - scope?: IntFilter; - tags?: StringListFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: TriggerFilter[]; - or?: TriggerFilter[]; - not?: TriggerFilter; -} -export interface UniqueConstraintCondition { - 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 UniqueConstraintFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - tableId?: UUIDFilter; - name?: StringFilter; - description?: StringFilter; - smartTags?: JSONFilter; - type?: StringFilter; - fieldIds?: UUIDListFilter; - category?: ObjectCategoryFilter; - module?: StringFilter; - scope?: IntFilter; - tags?: StringListFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: UniqueConstraintFilter[]; - or?: UniqueConstraintFilter[]; - not?: UniqueConstraintFilter; -} -export interface ViewTableCondition { - id?: string; - viewId?: string; - tableId?: string; - joinOrder?: number; -} -export interface ViewTableFilter { - id?: UUIDFilter; - viewId?: UUIDFilter; - tableId?: UUIDFilter; - joinOrder?: IntFilter; - and?: ViewTableFilter[]; - or?: ViewTableFilter[]; - not?: ViewTableFilter; -} -export interface ViewGrantCondition { - id?: string; - databaseId?: string; - viewId?: string; - roleName?: string; - privilege?: string; - withGrantOption?: boolean; -} -export interface ViewGrantFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - viewId?: UUIDFilter; - roleName?: StringFilter; - privilege?: StringFilter; - withGrantOption?: BooleanFilter; - and?: ViewGrantFilter[]; - or?: ViewGrantFilter[]; - not?: ViewGrantFilter; -} -export interface ViewRuleCondition { - id?: string; - databaseId?: string; - viewId?: string; - name?: string; - event?: string; - action?: string; -} -export interface ViewRuleFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - viewId?: UUIDFilter; - name?: StringFilter; - event?: StringFilter; - action?: StringFilter; - and?: ViewRuleFilter[]; - or?: ViewRuleFilter[]; - not?: ViewRuleFilter; -} -export interface ViewCondition { - 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 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?: ObjectCategoryFilter; - module?: StringFilter; - scope?: IntFilter; - tags?: StringListFilter; - and?: ViewFilter[]; - or?: ViewFilter[]; - not?: ViewFilter; -} -export interface TableModuleCondition { - id?: string; - databaseId?: string; - privateSchemaId?: string; - tableId?: string; - nodeType?: string; - data?: unknown; - fields?: string[]; -} -export interface TableModuleFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - privateSchemaId?: UUIDFilter; - tableId?: UUIDFilter; - nodeType?: StringFilter; - data?: JSONFilter; - fields?: UUIDListFilter; - and?: TableModuleFilter[]; - or?: TableModuleFilter[]; - not?: TableModuleFilter; -} -export interface TableTemplateModuleCondition { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName?: string; - nodeType?: string; - data?: unknown; -} -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 TableCondition { - 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 TableFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - schemaId?: UUIDFilter; - name?: StringFilter; - label?: StringFilter; - description?: StringFilter; - smartTags?: JSONFilter; - category?: ObjectCategoryFilter; - module?: StringFilter; - scope?: IntFilter; - useRls?: BooleanFilter; - timestamps?: BooleanFilter; - peoplestamps?: BooleanFilter; - pluralName?: StringFilter; - singularName?: StringFilter; - tags?: StringListFilter; - inheritsId?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: TableFilter[]; - or?: TableFilter[]; - not?: TableFilter; -} -export interface SchemaGrantCondition { - id?: string; - databaseId?: string; - schemaId?: string; - granteeName?: string; - createdAt?: string; - updatedAt?: string; -} -export interface SchemaGrantFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - schemaId?: UUIDFilter; - granteeName?: StringFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: SchemaGrantFilter[]; - or?: SchemaGrantFilter[]; - not?: SchemaGrantFilter; -} -export interface ApiModuleCondition { - id?: string; - databaseId?: string; - apiId?: string; - name?: string; - data?: unknown; -} -export interface ApiModuleFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - apiId?: UUIDFilter; - name?: StringFilter; - and?: ApiModuleFilter[]; - or?: ApiModuleFilter[]; - not?: ApiModuleFilter; -} -export interface ApiSchemaCondition { - id?: string; - databaseId?: string; - schemaId?: string; - apiId?: string; -} -export interface ApiSchemaFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - schemaId?: UUIDFilter; - apiId?: UUIDFilter; - and?: ApiSchemaFilter[]; - or?: ApiSchemaFilter[]; - not?: ApiSchemaFilter; -} -export interface DomainCondition { - id?: string; - databaseId?: string; - apiId?: string; - siteId?: string; - subdomain?: ConstructiveInternalTypeHostname; - domain?: ConstructiveInternalTypeHostname; -} -export interface DomainFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - apiId?: UUIDFilter; - siteId?: UUIDFilter; - subdomain?: ConstructiveInternalTypeHostnameFilter; - domain?: ConstructiveInternalTypeHostnameFilter; - and?: DomainFilter[]; - or?: DomainFilter[]; - not?: DomainFilter; -} -export interface ConstructiveInternalTypeHostnameFilter { - isNull?: boolean; - equalTo?: ConstructiveInternalTypeHostname; - notEqualTo?: ConstructiveInternalTypeHostname; - distinctFrom?: ConstructiveInternalTypeHostname; - notDistinctFrom?: ConstructiveInternalTypeHostname; - in?: ConstructiveInternalTypeHostname[]; - notIn?: ConstructiveInternalTypeHostname[]; - lessThan?: ConstructiveInternalTypeHostname; - lessThanOrEqualTo?: ConstructiveInternalTypeHostname; - greaterThan?: ConstructiveInternalTypeHostname; - greaterThanOrEqualTo?: ConstructiveInternalTypeHostname; - includes?: ConstructiveInternalTypeHostname; - notIncludes?: ConstructiveInternalTypeHostname; - includesInsensitive?: ConstructiveInternalTypeHostname; - notIncludesInsensitive?: ConstructiveInternalTypeHostname; - startsWith?: ConstructiveInternalTypeHostname; - notStartsWith?: ConstructiveInternalTypeHostname; - startsWithInsensitive?: ConstructiveInternalTypeHostname; - notStartsWithInsensitive?: ConstructiveInternalTypeHostname; - endsWith?: ConstructiveInternalTypeHostname; - notEndsWith?: ConstructiveInternalTypeHostname; - endsWithInsensitive?: ConstructiveInternalTypeHostname; - notEndsWithInsensitive?: ConstructiveInternalTypeHostname; - like?: ConstructiveInternalTypeHostname; - notLike?: ConstructiveInternalTypeHostname; - likeInsensitive?: ConstructiveInternalTypeHostname; - notLikeInsensitive?: ConstructiveInternalTypeHostname; - equalToInsensitive?: string; - notEqualToInsensitive?: string; - distinctFromInsensitive?: string; - notDistinctFromInsensitive?: string; - inInsensitive?: string[]; - notInInsensitive?: string[]; - lessThanInsensitive?: string; - lessThanOrEqualToInsensitive?: string; - greaterThanInsensitive?: string; - greaterThanOrEqualToInsensitive?: string; -} -export interface SiteMetadatumCondition { - id?: string; - databaseId?: string; - siteId?: string; - title?: string; - description?: string; - ogImage?: ConstructiveInternalTypeImage; -} -export interface SiteMetadatumFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - siteId?: UUIDFilter; - title?: StringFilter; - description?: StringFilter; - ogImage?: ConstructiveInternalTypeImageFilter; - and?: SiteMetadatumFilter[]; - or?: SiteMetadatumFilter[]; - not?: SiteMetadatumFilter; -} -export interface ConstructiveInternalTypeImageFilter { - isNull?: boolean; - equalTo?: ConstructiveInternalTypeImage; - notEqualTo?: ConstructiveInternalTypeImage; - distinctFrom?: ConstructiveInternalTypeImage; - notDistinctFrom?: ConstructiveInternalTypeImage; - in?: ConstructiveInternalTypeImage[]; - notIn?: ConstructiveInternalTypeImage[]; - lessThan?: ConstructiveInternalTypeImage; - lessThanOrEqualTo?: ConstructiveInternalTypeImage; - greaterThan?: ConstructiveInternalTypeImage; - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - contains?: ConstructiveInternalTypeImage; - containsKey?: string; - containsAllKeys?: string[]; - containsAnyKeys?: string[]; - containedBy?: ConstructiveInternalTypeImage; -} -export interface SiteModuleCondition { - id?: string; - databaseId?: string; - siteId?: string; - name?: string; - data?: unknown; -} -export interface SiteModuleFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - siteId?: UUIDFilter; - name?: StringFilter; - and?: SiteModuleFilter[]; - or?: SiteModuleFilter[]; - not?: SiteModuleFilter; -} -export interface SiteThemeCondition { - id?: string; - databaseId?: string; - siteId?: string; - theme?: unknown; -} -export interface SiteThemeFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - siteId?: UUIDFilter; - theme?: JSONFilter; - and?: SiteThemeFilter[]; - or?: SiteThemeFilter[]; - not?: SiteThemeFilter; -} -export interface SchemaCondition { - 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 SchemaFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - name?: StringFilter; - schemaName?: StringFilter; - label?: StringFilter; - description?: StringFilter; - smartTags?: JSONFilter; - category?: ObjectCategoryFilter; - module?: StringFilter; - scope?: IntFilter; - tags?: StringListFilter; - isPublic?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: SchemaFilter[]; - or?: SchemaFilter[]; - not?: SchemaFilter; -} -export interface ProcedureCondition { - 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 ProcedureFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - name?: StringFilter; - argnames?: StringListFilter; - argtypes?: StringListFilter; - argdefaults?: StringListFilter; - langName?: StringFilter; - definition?: StringFilter; - smartTags?: JSONFilter; - category?: ObjectCategoryFilter; - module?: StringFilter; - scope?: IntFilter; - tags?: StringListFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: ProcedureFilter[]; - or?: ProcedureFilter[]; - not?: ProcedureFilter; -} -export interface TriggerFunctionCondition { - id?: string; - databaseId?: string; - name?: string; - code?: string; - createdAt?: string; - updatedAt?: string; -} -export interface TriggerFunctionFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - name?: StringFilter; - code?: StringFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: TriggerFunctionFilter[]; - or?: TriggerFunctionFilter[]; - not?: TriggerFunctionFilter; -} -export interface ApiCondition { - id?: string; - databaseId?: string; - name?: string; - dbname?: string; - roleName?: string; - anonRole?: string; - isPublic?: boolean; -} -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 SiteCondition { - id?: string; - databaseId?: string; - title?: string; - description?: string; - ogImage?: ConstructiveInternalTypeImage; - favicon?: ConstructiveInternalTypeAttachment; - appleTouchIcon?: ConstructiveInternalTypeImage; - logo?: ConstructiveInternalTypeImage; - dbname?: string; -} -export interface SiteFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - title?: StringFilter; - description?: StringFilter; - ogImage?: ConstructiveInternalTypeImageFilter; - favicon?: ConstructiveInternalTypeAttachmentFilter; - appleTouchIcon?: ConstructiveInternalTypeImageFilter; - logo?: ConstructiveInternalTypeImageFilter; - dbname?: StringFilter; - and?: SiteFilter[]; - or?: SiteFilter[]; - not?: SiteFilter; -} -export interface ConstructiveInternalTypeAttachmentFilter { - isNull?: boolean; - equalTo?: ConstructiveInternalTypeAttachment; - notEqualTo?: ConstructiveInternalTypeAttachment; - distinctFrom?: ConstructiveInternalTypeAttachment; - notDistinctFrom?: ConstructiveInternalTypeAttachment; - in?: ConstructiveInternalTypeAttachment[]; - notIn?: ConstructiveInternalTypeAttachment[]; - lessThan?: ConstructiveInternalTypeAttachment; - lessThanOrEqualTo?: ConstructiveInternalTypeAttachment; - greaterThan?: ConstructiveInternalTypeAttachment; - greaterThanOrEqualTo?: ConstructiveInternalTypeAttachment; - includes?: ConstructiveInternalTypeAttachment; - notIncludes?: ConstructiveInternalTypeAttachment; - includesInsensitive?: ConstructiveInternalTypeAttachment; - notIncludesInsensitive?: ConstructiveInternalTypeAttachment; - startsWith?: ConstructiveInternalTypeAttachment; - notStartsWith?: ConstructiveInternalTypeAttachment; - startsWithInsensitive?: ConstructiveInternalTypeAttachment; - notStartsWithInsensitive?: ConstructiveInternalTypeAttachment; - endsWith?: ConstructiveInternalTypeAttachment; - notEndsWith?: ConstructiveInternalTypeAttachment; - endsWithInsensitive?: ConstructiveInternalTypeAttachment; - notEndsWithInsensitive?: ConstructiveInternalTypeAttachment; - like?: ConstructiveInternalTypeAttachment; - notLike?: ConstructiveInternalTypeAttachment; - likeInsensitive?: ConstructiveInternalTypeAttachment; - notLikeInsensitive?: ConstructiveInternalTypeAttachment; - equalToInsensitive?: string; - notEqualToInsensitive?: string; - distinctFromInsensitive?: string; - notDistinctFromInsensitive?: string; - inInsensitive?: string[]; - notInInsensitive?: string[]; - lessThanInsensitive?: string; - lessThanOrEqualToInsensitive?: string; - greaterThanInsensitive?: string; - greaterThanOrEqualToInsensitive?: string; -} -export interface AppCondition { - id?: string; - databaseId?: string; - siteId?: string; - name?: string; - appImage?: ConstructiveInternalTypeImage; - appStoreLink?: ConstructiveInternalTypeUrl; - appStoreId?: string; - appIdPrefix?: string; - playStoreLink?: ConstructiveInternalTypeUrl; -} -export interface AppFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - siteId?: UUIDFilter; - name?: StringFilter; - appImage?: ConstructiveInternalTypeImageFilter; - appStoreLink?: ConstructiveInternalTypeUrlFilter; - appStoreId?: StringFilter; - appIdPrefix?: StringFilter; - playStoreLink?: ConstructiveInternalTypeUrlFilter; - and?: AppFilter[]; - or?: AppFilter[]; - not?: AppFilter; -} -export interface ConstructiveInternalTypeUrlFilter { - isNull?: boolean; - equalTo?: ConstructiveInternalTypeUrl; - notEqualTo?: ConstructiveInternalTypeUrl; - distinctFrom?: ConstructiveInternalTypeUrl; - notDistinctFrom?: ConstructiveInternalTypeUrl; - in?: ConstructiveInternalTypeUrl[]; - notIn?: ConstructiveInternalTypeUrl[]; - lessThan?: ConstructiveInternalTypeUrl; - lessThanOrEqualTo?: ConstructiveInternalTypeUrl; - greaterThan?: ConstructiveInternalTypeUrl; - greaterThanOrEqualTo?: ConstructiveInternalTypeUrl; - includes?: ConstructiveInternalTypeUrl; - notIncludes?: ConstructiveInternalTypeUrl; - includesInsensitive?: ConstructiveInternalTypeUrl; - notIncludesInsensitive?: ConstructiveInternalTypeUrl; - startsWith?: ConstructiveInternalTypeUrl; - notStartsWith?: ConstructiveInternalTypeUrl; - startsWithInsensitive?: ConstructiveInternalTypeUrl; - notStartsWithInsensitive?: ConstructiveInternalTypeUrl; - endsWith?: ConstructiveInternalTypeUrl; - notEndsWith?: ConstructiveInternalTypeUrl; - endsWithInsensitive?: ConstructiveInternalTypeUrl; - notEndsWithInsensitive?: ConstructiveInternalTypeUrl; - like?: ConstructiveInternalTypeUrl; - notLike?: ConstructiveInternalTypeUrl; - likeInsensitive?: ConstructiveInternalTypeUrl; - notLikeInsensitive?: ConstructiveInternalTypeUrl; - equalToInsensitive?: string; - notEqualToInsensitive?: string; - distinctFromInsensitive?: string; - notDistinctFromInsensitive?: string; - inInsensitive?: string[]; - notInInsensitive?: string[]; - lessThanInsensitive?: string; - lessThanOrEqualToInsensitive?: string; - greaterThanInsensitive?: string; - greaterThanOrEqualToInsensitive?: string; -} -export interface ConnectedAccountsModuleCondition { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName?: string; -} -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 CryptoAddressesModuleCondition { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName?: string; - cryptoNetwork?: string; -} -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 CryptoAuthModuleCondition { - 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 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 DefaultIdsModuleCondition { - id?: string; - databaseId?: string; -} -export interface DefaultIdsModuleFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - and?: DefaultIdsModuleFilter[]; - or?: DefaultIdsModuleFilter[]; - not?: DefaultIdsModuleFilter; -} -export interface DenormalizedTableFieldCondition { - 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 DenormalizedTableFieldFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - tableId?: UUIDFilter; - fieldId?: UUIDFilter; - setIds?: UUIDListFilter; - refTableId?: UUIDFilter; - refFieldId?: UUIDFilter; - refIds?: UUIDListFilter; - useUpdates?: BooleanFilter; - updateDefaults?: BooleanFilter; - funcName?: StringFilter; - funcOrder?: IntFilter; - and?: DenormalizedTableFieldFilter[]; - or?: DenormalizedTableFieldFilter[]; - not?: DenormalizedTableFieldFilter; -} -export interface EmailsModuleCondition { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName?: string; -} -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 EncryptedSecretsModuleCondition { - id?: string; - databaseId?: string; - schemaId?: string; - tableId?: string; - tableName?: string; -} -export interface EncryptedSecretsModuleFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - schemaId?: UUIDFilter; - tableId?: UUIDFilter; - tableName?: StringFilter; - and?: EncryptedSecretsModuleFilter[]; - or?: EncryptedSecretsModuleFilter[]; - not?: EncryptedSecretsModuleFilter; -} -export interface FieldModuleCondition { - id?: string; - databaseId?: string; - privateSchemaId?: string; - tableId?: string; - fieldId?: string; - nodeType?: string; - data?: unknown; - triggers?: string[]; - functions?: string[]; -} -export interface FieldModuleFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - privateSchemaId?: UUIDFilter; - tableId?: UUIDFilter; - fieldId?: UUIDFilter; - nodeType?: StringFilter; - data?: JSONFilter; - triggers?: StringListFilter; - functions?: StringListFilter; - and?: FieldModuleFilter[]; - or?: FieldModuleFilter[]; - not?: FieldModuleFilter; -} -export interface InvitesModuleCondition { - 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 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 LevelsModuleCondition { - 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 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 LimitsModuleCondition { - 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 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 MembershipTypesModuleCondition { - id?: string; - databaseId?: string; - schemaId?: string; - tableId?: string; - tableName?: string; -} -export interface MembershipTypesModuleFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - schemaId?: UUIDFilter; - tableId?: UUIDFilter; - tableName?: StringFilter; - and?: MembershipTypesModuleFilter[]; - or?: MembershipTypesModuleFilter[]; - not?: MembershipTypesModuleFilter; -} -export interface MembershipsModuleCondition { - 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 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 PermissionsModuleCondition { - 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 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 PhoneNumbersModuleCondition { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName?: string; -} -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 ProfilesModuleCondition { - 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 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 RlsModuleCondition { - 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 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 SecretsModuleCondition { - id?: string; - databaseId?: string; - schemaId?: string; - tableId?: string; - tableName?: string; -} -export interface SecretsModuleFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - schemaId?: UUIDFilter; - tableId?: UUIDFilter; - tableName?: StringFilter; - and?: SecretsModuleFilter[]; - or?: SecretsModuleFilter[]; - not?: SecretsModuleFilter; -} -export interface SessionsModuleCondition { - id?: string; - databaseId?: string; - schemaId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - authSettingsTableId?: string; - usersTableId?: string; - sessionsDefaultExpiration?: IntervalInput; - sessionsTable?: string; - sessionCredentialsTable?: string; - authSettingsTable?: string; -} -export interface IntervalInput { - seconds?: number; - minutes?: number; - hours?: number; - days?: number; - months?: number; - years?: number; -} -export interface SessionsModuleFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - schemaId?: UUIDFilter; - sessionsTableId?: UUIDFilter; - sessionCredentialsTableId?: UUIDFilter; - authSettingsTableId?: UUIDFilter; - usersTableId?: UUIDFilter; - sessionsDefaultExpiration?: IntervalFilter; - sessionsTable?: StringFilter; - sessionCredentialsTable?: StringFilter; - authSettingsTable?: StringFilter; - and?: SessionsModuleFilter[]; - or?: SessionsModuleFilter[]; - not?: SessionsModuleFilter; -} -export interface IntervalFilter { - isNull?: boolean; - equalTo?: IntervalInput; - notEqualTo?: IntervalInput; - distinctFrom?: IntervalInput; - notDistinctFrom?: IntervalInput; - in?: IntervalInput[]; - notIn?: IntervalInput[]; - lessThan?: IntervalInput; - lessThanOrEqualTo?: IntervalInput; - greaterThan?: IntervalInput; - greaterThanOrEqualTo?: IntervalInput; -} -export interface UserAuthModuleCondition { - 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 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 UsersModuleCondition { - id?: string; - databaseId?: string; - schemaId?: string; - tableId?: string; - tableName?: string; - typeTableId?: string; - typeTableName?: string; -} -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 UuidModuleCondition { - id?: string; - databaseId?: string; - schemaId?: string; - uuidFunction?: string; - uuidSeed?: string; -} -export interface UuidModuleFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - schemaId?: UUIDFilter; - uuidFunction?: StringFilter; - uuidSeed?: StringFilter; - and?: UuidModuleFilter[]; - or?: UuidModuleFilter[]; - not?: UuidModuleFilter; -} -export interface DatabaseProvisionModuleCondition { - id?: string; - databaseName?: string; - ownerId?: string; - subdomain?: string; - domain?: string; - modules?: string[]; - options?: unknown; - bootstrapUser?: boolean; - status?: string; - errorMessage?: string; - databaseId?: string; - createdAt?: string; - updatedAt?: string; - completedAt?: string; -} -export interface DatabaseProvisionModuleFilter { - id?: UUIDFilter; - databaseName?: StringFilter; - ownerId?: UUIDFilter; - subdomain?: StringFilter; - domain?: StringFilter; - modules?: StringListFilter; - options?: JSONFilter; - bootstrapUser?: BooleanFilter; - status?: StringFilter; - errorMessage?: StringFilter; - databaseId?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - completedAt?: DatetimeFilter; - and?: DatabaseProvisionModuleFilter[]; - or?: DatabaseProvisionModuleFilter[]; - not?: DatabaseProvisionModuleFilter; -} -export interface DatabaseCondition { - id?: string; - ownerId?: string; - schemaHash?: string; - name?: string; - label?: string; - hash?: string; - createdAt?: string; - updatedAt?: string; -} -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 AppAdminGrantCondition { - id?: string; - isGrant?: boolean; - actorId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface AppAdminGrantFilter { - id?: UUIDFilter; - isGrant?: BooleanFilter; - actorId?: UUIDFilter; - grantorId?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: AppAdminGrantFilter[]; - or?: AppAdminGrantFilter[]; - not?: AppAdminGrantFilter; -} -export interface AppOwnerGrantCondition { - id?: string; - isGrant?: boolean; - actorId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface AppOwnerGrantFilter { - id?: UUIDFilter; - isGrant?: BooleanFilter; - actorId?: UUIDFilter; - grantorId?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: AppOwnerGrantFilter[]; - or?: AppOwnerGrantFilter[]; - not?: AppOwnerGrantFilter; -} -export interface AppGrantCondition { - id?: string; - permissions?: string; - isGrant?: boolean; - actorId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -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 OrgMembershipCondition { - 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 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 OrgMemberCondition { - id?: string; - isAdmin?: boolean; - actorId?: string; - entityId?: string; -} -export interface OrgMemberFilter { - id?: UUIDFilter; - isAdmin?: BooleanFilter; - actorId?: UUIDFilter; - entityId?: UUIDFilter; - and?: OrgMemberFilter[]; - or?: OrgMemberFilter[]; - not?: OrgMemberFilter; -} -export interface OrgAdminGrantCondition { - id?: string; - isGrant?: boolean; - actorId?: string; - entityId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -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 OrgOwnerGrantCondition { - id?: string; - isGrant?: boolean; - actorId?: string; - entityId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -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 OrgGrantCondition { - id?: string; - permissions?: string; - isGrant?: boolean; - actorId?: string; - entityId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -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 AppLimitCondition { - id?: string; - name?: string; - actorId?: string; - num?: number; - max?: number; -} -export interface AppLimitFilter { - id?: UUIDFilter; - name?: StringFilter; - actorId?: UUIDFilter; - num?: IntFilter; - max?: IntFilter; - and?: AppLimitFilter[]; - or?: AppLimitFilter[]; - not?: AppLimitFilter; -} -export interface OrgLimitCondition { - id?: string; - name?: string; - actorId?: string; - num?: number; - max?: number; - entityId?: string; -} -export interface OrgLimitFilter { - id?: UUIDFilter; - name?: StringFilter; - actorId?: UUIDFilter; - num?: IntFilter; - max?: IntFilter; - entityId?: UUIDFilter; - and?: OrgLimitFilter[]; - or?: OrgLimitFilter[]; - not?: OrgLimitFilter; -} -export interface AppStepCondition { - id?: string; - actorId?: string; - name?: string; - count?: number; - createdAt?: string; - updatedAt?: string; -} -export interface AppStepFilter { - id?: UUIDFilter; - actorId?: UUIDFilter; - name?: StringFilter; - count?: IntFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: AppStepFilter[]; - or?: AppStepFilter[]; - not?: AppStepFilter; -} -export interface AppAchievementCondition { - id?: string; - actorId?: string; - name?: string; - count?: number; - createdAt?: string; - updatedAt?: string; -} -export interface AppAchievementFilter { - id?: UUIDFilter; - actorId?: UUIDFilter; - name?: StringFilter; - count?: IntFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: AppAchievementFilter[]; - or?: AppAchievementFilter[]; - not?: AppAchievementFilter; -} -export interface InviteCondition { - 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 InviteFilter { - id?: UUIDFilter; - email?: ConstructiveInternalTypeEmailFilter; - senderId?: UUIDFilter; - inviteToken?: StringFilter; - inviteValid?: BooleanFilter; - inviteLimit?: IntFilter; - inviteCount?: IntFilter; - multiple?: BooleanFilter; - expiresAt?: DatetimeFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: InviteFilter[]; - or?: InviteFilter[]; - not?: InviteFilter; -} -export interface ConstructiveInternalTypeEmailFilter { - 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?: ConstructiveInternalTypeEmail; - notIncludesInsensitive?: ConstructiveInternalTypeEmail; - startsWith?: string; - notStartsWith?: string; - startsWithInsensitive?: ConstructiveInternalTypeEmail; - notStartsWithInsensitive?: ConstructiveInternalTypeEmail; - endsWith?: string; - notEndsWith?: string; - endsWithInsensitive?: ConstructiveInternalTypeEmail; - notEndsWithInsensitive?: ConstructiveInternalTypeEmail; - like?: string; - notLike?: string; - likeInsensitive?: ConstructiveInternalTypeEmail; - notLikeInsensitive?: ConstructiveInternalTypeEmail; - equalToInsensitive?: ConstructiveInternalTypeEmail; - notEqualToInsensitive?: ConstructiveInternalTypeEmail; - distinctFromInsensitive?: ConstructiveInternalTypeEmail; - notDistinctFromInsensitive?: ConstructiveInternalTypeEmail; - inInsensitive?: ConstructiveInternalTypeEmail[]; - notInInsensitive?: ConstructiveInternalTypeEmail[]; - lessThanInsensitive?: ConstructiveInternalTypeEmail; - lessThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; - greaterThanInsensitive?: ConstructiveInternalTypeEmail; - greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; -} -export interface ClaimedInviteCondition { - id?: string; - data?: unknown; - senderId?: string; - receiverId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface ClaimedInviteFilter { - id?: UUIDFilter; - senderId?: UUIDFilter; - receiverId?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: ClaimedInviteFilter[]; - or?: ClaimedInviteFilter[]; - not?: ClaimedInviteFilter; -} -export interface OrgInviteCondition { - 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 OrgInviteFilter { - id?: UUIDFilter; - email?: ConstructiveInternalTypeEmailFilter; - senderId?: UUIDFilter; - receiverId?: UUIDFilter; - inviteToken?: StringFilter; - inviteValid?: BooleanFilter; - inviteLimit?: IntFilter; - inviteCount?: IntFilter; - multiple?: BooleanFilter; - expiresAt?: DatetimeFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - entityId?: UUIDFilter; - and?: OrgInviteFilter[]; - or?: OrgInviteFilter[]; - not?: OrgInviteFilter; -} -export interface OrgClaimedInviteCondition { - id?: string; - data?: unknown; - senderId?: string; - receiverId?: string; - createdAt?: string; - updatedAt?: string; - entityId?: string; -} -export interface OrgClaimedInviteFilter { - id?: UUIDFilter; - senderId?: UUIDFilter; - receiverId?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - entityId?: UUIDFilter; - and?: OrgClaimedInviteFilter[]; - or?: OrgClaimedInviteFilter[]; - not?: OrgClaimedInviteFilter; -} -export interface AppPermissionDefaultCondition { - id?: string; - permissions?: string; -} -export interface AppPermissionDefaultFilter { - id?: UUIDFilter; - permissions?: BitStringFilter; - and?: AppPermissionDefaultFilter[]; - or?: AppPermissionDefaultFilter[]; - not?: AppPermissionDefaultFilter; -} -export interface RefCondition { - id?: string; - name?: string; - databaseId?: string; - storeId?: string; - commitId?: string; -} -export interface RefFilter { - id?: UUIDFilter; - name?: StringFilter; - databaseId?: UUIDFilter; - storeId?: UUIDFilter; - commitId?: UUIDFilter; - and?: RefFilter[]; - or?: RefFilter[]; - not?: RefFilter; -} -export interface StoreCondition { - id?: string; - name?: string; - databaseId?: string; - hash?: string; - createdAt?: string; -} -export interface StoreFilter { - id?: UUIDFilter; - name?: StringFilter; - databaseId?: UUIDFilter; - hash?: UUIDFilter; - createdAt?: DatetimeFilter; - and?: StoreFilter[]; - or?: StoreFilter[]; - not?: StoreFilter; -} -export interface RoleTypeCondition { - id?: number; - name?: string; -} -export interface RoleTypeFilter { - id?: IntFilter; - name?: StringFilter; - and?: RoleTypeFilter[]; - or?: RoleTypeFilter[]; - not?: RoleTypeFilter; -} -export interface OrgPermissionDefaultCondition { - id?: string; - permissions?: string; - entityId?: string; -} -export interface OrgPermissionDefaultFilter { - id?: UUIDFilter; - permissions?: BitStringFilter; - entityId?: UUIDFilter; - and?: OrgPermissionDefaultFilter[]; - or?: OrgPermissionDefaultFilter[]; - not?: OrgPermissionDefaultFilter; -} -export interface AppLimitDefaultCondition { - id?: string; - name?: string; - max?: number; -} -export interface AppLimitDefaultFilter { - id?: UUIDFilter; - name?: StringFilter; - max?: IntFilter; - and?: AppLimitDefaultFilter[]; - or?: AppLimitDefaultFilter[]; - not?: AppLimitDefaultFilter; -} -export interface OrgLimitDefaultCondition { - id?: string; - name?: string; - max?: number; -} -export interface OrgLimitDefaultFilter { - id?: UUIDFilter; - name?: StringFilter; - max?: IntFilter; - and?: OrgLimitDefaultFilter[]; - or?: OrgLimitDefaultFilter[]; - not?: OrgLimitDefaultFilter; -} -export interface CryptoAddressCondition { - id?: string; - ownerId?: string; - address?: string; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; -} -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 MembershipTypeCondition { - id?: number; - name?: string; - description?: string; - prefix?: string; -} -export interface MembershipTypeFilter { - id?: IntFilter; - name?: StringFilter; - description?: StringFilter; - prefix?: StringFilter; - and?: MembershipTypeFilter[]; - or?: MembershipTypeFilter[]; - not?: MembershipTypeFilter; -} -export interface ConnectedAccountCondition { - id?: string; - ownerId?: string; - service?: string; - identifier?: string; - details?: unknown; - isVerified?: boolean; - createdAt?: string; - updatedAt?: string; -} -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 PhoneNumberCondition { - id?: string; - ownerId?: string; - cc?: string; - number?: string; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; -} -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 AppPermissionCondition { - id?: string; - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; -} -export interface AppPermissionFilter { - id?: UUIDFilter; - name?: StringFilter; - bitnum?: IntFilter; - bitstr?: BitStringFilter; - description?: StringFilter; - and?: AppPermissionFilter[]; - or?: AppPermissionFilter[]; - not?: AppPermissionFilter; -} -export interface OrgPermissionCondition { - id?: string; - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; -} -export interface OrgPermissionFilter { - id?: UUIDFilter; - name?: StringFilter; - bitnum?: IntFilter; - bitstr?: BitStringFilter; - description?: StringFilter; - and?: OrgPermissionFilter[]; - or?: OrgPermissionFilter[]; - not?: OrgPermissionFilter; -} -export interface AppMembershipDefaultCondition { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; -} -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 NodeTypeRegistryCondition { - name?: string; - slug?: string; - category?: string; - displayName?: string; - description?: string; - parameterSchema?: unknown; - tags?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface NodeTypeRegistryFilter { - name?: StringFilter; - slug?: StringFilter; - category?: StringFilter; - displayName?: StringFilter; - description?: StringFilter; - parameterSchema?: JSONFilter; - tags?: StringListFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: NodeTypeRegistryFilter[]; - or?: NodeTypeRegistryFilter[]; - not?: NodeTypeRegistryFilter; -} -export interface ObjectCondition { - id?: string; - databaseId?: string; - kids?: string[]; - ktree?: string[]; - data?: unknown; - frzn?: boolean; - createdAt?: string; -} -export interface ObjectFilter { - id?: UUIDFilter; - databaseId?: UUIDFilter; - kids?: UUIDListFilter; - ktree?: StringListFilter; - data?: JSONFilter; - frzn?: BooleanFilter; - createdAt?: DatetimeFilter; - and?: ObjectFilter[]; - or?: ObjectFilter[]; - not?: ObjectFilter; -} -export interface CommitCondition { - id?: string; - message?: string; - databaseId?: string; - storeId?: string; - parentIds?: string[]; - authorId?: string; - committerId?: string; - treeId?: string; - date?: string; -} -export interface CommitFilter { - id?: UUIDFilter; - message?: StringFilter; - databaseId?: UUIDFilter; - storeId?: UUIDFilter; - parentIds?: UUIDListFilter; - authorId?: UUIDFilter; - committerId?: UUIDFilter; - treeId?: UUIDFilter; - date?: DatetimeFilter; - and?: CommitFilter[]; - or?: CommitFilter[]; - not?: CommitFilter; -} -export interface OrgMembershipDefaultCondition { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId?: string; - deleteMemberCascadeGroups?: boolean; - createGroupsCascadeMembers?: boolean; -} -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 EmailCondition { - id?: string; - ownerId?: string; - email?: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface EmailFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - email?: ConstructiveInternalTypeEmailFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: EmailFilter[]; - or?: EmailFilter[]; - not?: EmailFilter; -} -export interface AppLevelRequirementCondition { - id?: string; - name?: string; - level?: string; - description?: string; - requiredCount?: number; - priority?: number; - createdAt?: string; - updatedAt?: string; -} -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 AuditLogCondition { - id?: string; - event?: string; - actorId?: string; - origin?: ConstructiveInternalTypeOrigin; - userAgent?: string; - ipAddress?: string; - success?: boolean; - createdAt?: string; -} -export interface AuditLogFilter { - id?: UUIDFilter; - event?: StringFilter; - actorId?: UUIDFilter; - origin?: ConstructiveInternalTypeOriginFilter; - userAgent?: StringFilter; - ipAddress?: InternetAddressFilter; - success?: BooleanFilter; - createdAt?: DatetimeFilter; - and?: AuditLogFilter[]; - or?: AuditLogFilter[]; - not?: AuditLogFilter; -} -export interface ConstructiveInternalTypeOriginFilter { - isNull?: boolean; - equalTo?: ConstructiveInternalTypeOrigin; - notEqualTo?: ConstructiveInternalTypeOrigin; - distinctFrom?: ConstructiveInternalTypeOrigin; - notDistinctFrom?: ConstructiveInternalTypeOrigin; - in?: ConstructiveInternalTypeOrigin[]; - notIn?: ConstructiveInternalTypeOrigin[]; - lessThan?: ConstructiveInternalTypeOrigin; - lessThanOrEqualTo?: ConstructiveInternalTypeOrigin; - greaterThan?: ConstructiveInternalTypeOrigin; - greaterThanOrEqualTo?: ConstructiveInternalTypeOrigin; - includes?: ConstructiveInternalTypeOrigin; - notIncludes?: ConstructiveInternalTypeOrigin; - includesInsensitive?: ConstructiveInternalTypeOrigin; - notIncludesInsensitive?: ConstructiveInternalTypeOrigin; - startsWith?: ConstructiveInternalTypeOrigin; - notStartsWith?: ConstructiveInternalTypeOrigin; - startsWithInsensitive?: ConstructiveInternalTypeOrigin; - notStartsWithInsensitive?: ConstructiveInternalTypeOrigin; - endsWith?: ConstructiveInternalTypeOrigin; - notEndsWith?: ConstructiveInternalTypeOrigin; - endsWithInsensitive?: ConstructiveInternalTypeOrigin; - notEndsWithInsensitive?: ConstructiveInternalTypeOrigin; - like?: ConstructiveInternalTypeOrigin; - notLike?: ConstructiveInternalTypeOrigin; - likeInsensitive?: ConstructiveInternalTypeOrigin; - notLikeInsensitive?: ConstructiveInternalTypeOrigin; - equalToInsensitive?: string; - notEqualToInsensitive?: string; - distinctFromInsensitive?: string; - notDistinctFromInsensitive?: string; - inInsensitive?: string[]; - notInInsensitive?: string[]; - lessThanInsensitive?: string; - lessThanOrEqualToInsensitive?: string; - greaterThanInsensitive?: string; - greaterThanOrEqualToInsensitive?: string; -} -export interface AppLevelCondition { - id?: string; - name?: string; - description?: string; - image?: ConstructiveInternalTypeImage; - ownerId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface AppLevelFilter { - id?: UUIDFilter; - name?: StringFilter; - description?: StringFilter; - image?: ConstructiveInternalTypeImageFilter; - ownerId?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: AppLevelFilter[]; - or?: AppLevelFilter[]; - not?: AppLevelFilter; -} -export interface SqlMigrationCondition { - 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 SqlMigrationFilter { - id?: IntFilter; - name?: StringFilter; - databaseId?: UUIDFilter; - deploy?: StringFilter; - deps?: StringListFilter; - content?: StringFilter; - revert?: StringFilter; - verify?: StringFilter; - createdAt?: DatetimeFilter; - action?: StringFilter; - actionId?: UUIDFilter; - actorId?: UUIDFilter; - and?: SqlMigrationFilter[]; - or?: SqlMigrationFilter[]; - not?: SqlMigrationFilter; -} -export interface AstMigrationCondition { - 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 AstMigrationFilter { - id?: IntFilter; - databaseId?: UUIDFilter; - name?: StringFilter; - requires?: StringListFilter; - 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 AppMembershipCondition { - 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 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 UserCondition { - id?: string; - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - searchTsv?: string; - type?: number; - createdAt?: string; - updatedAt?: string; - fullTextSearchTsv?: string; -} -export interface UserFilter { - id?: UUIDFilter; - username?: StringFilter; - displayName?: StringFilter; - profilePicture?: ConstructiveInternalTypeImageFilter; - searchTsv?: FullTextFilter; - type?: IntFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: UserFilter[]; - or?: UserFilter[]; - not?: UserFilter; -} -export interface HierarchyModuleCondition { - 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 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; -} -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; - defaultIdsModule: DefaultIdsModuleInput; -} -export interface DefaultIdsModuleInput { - id?: string; - databaseId: string; -} -export interface CreateViewTableInput { - clientMutationId?: string; - viewTable: ViewTableInput; -} -export interface ViewTableInput { - id?: string; - viewId: string; - tableId: string; - joinOrder?: number; -} -export interface CreateApiSchemaInput { - clientMutationId?: string; - apiSchema: ApiSchemaInput; -} -export interface ApiSchemaInput { - id?: string; - databaseId: string; - schemaId: string; - apiId: string; -} -export interface CreateSiteThemeInput { - clientMutationId?: string; - siteTheme: SiteThemeInput; -} -export interface SiteThemeInput { - id?: string; - databaseId: string; - siteId: string; - theme: unknown; -} -export interface CreateOrgMemberInput { - clientMutationId?: string; - orgMember: OrgMemberInput; -} -export interface OrgMemberInput { - id?: string; - isAdmin?: boolean; - actorId: string; - entityId: string; -} -export interface CreateAppPermissionDefaultInput { - clientMutationId?: string; - appPermissionDefault: AppPermissionDefaultInput; -} -export interface AppPermissionDefaultInput { - id?: string; - permissions?: string; -} -export interface CreateRefInput { - clientMutationId?: string; - ref: RefInput; -} -export interface RefInput { - id?: string; - name: string; - databaseId: string; - storeId: string; - commitId?: string; -} -export interface CreateStoreInput { - clientMutationId?: string; - store: StoreInput; -} -export interface StoreInput { - id?: string; - name: string; - databaseId: string; - hash?: string; - createdAt?: string; -} -export interface CreateApiModuleInput { - clientMutationId?: string; - apiModule: ApiModuleInput; -} -export interface ApiModuleInput { - id?: string; - databaseId: string; - apiId: string; - name: string; - data: unknown; -} -export interface CreateSiteModuleInput { - clientMutationId?: string; - siteModule: SiteModuleInput; -} -export interface SiteModuleInput { - id?: string; - databaseId: string; - siteId: string; - name: string; - data: unknown; -} -export interface CreateEncryptedSecretsModuleInput { - clientMutationId?: string; - encryptedSecretsModule: EncryptedSecretsModuleInput; -} -export interface EncryptedSecretsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; -} -export interface CreateMembershipTypesModuleInput { - clientMutationId?: string; - membershipTypesModule: MembershipTypesModuleInput; -} -export interface MembershipTypesModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; -} -export interface CreateSecretsModuleInput { - clientMutationId?: string; - secretsModule: SecretsModuleInput; -} -export interface SecretsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; -} -export interface CreateUuidModuleInput { - clientMutationId?: string; - uuidModule: UuidModuleInput; -} -export interface UuidModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - uuidFunction?: string; - uuidSeed: string; -} -export interface CreateRoleTypeInput { - clientMutationId?: string; - roleType: RoleTypeInput; -} -export interface RoleTypeInput { - id: number; - name: string; -} -export interface CreateOrgPermissionDefaultInput { - clientMutationId?: string; - orgPermissionDefault: OrgPermissionDefaultInput; -} -export interface OrgPermissionDefaultInput { - id?: string; - permissions?: string; - entityId: string; -} -export interface CreateSchemaGrantInput { - clientMutationId?: string; - schemaGrant: SchemaGrantInput; -} -export interface SchemaGrantInput { - id?: string; - databaseId?: string; - schemaId: string; - granteeName: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateTriggerFunctionInput { - clientMutationId?: string; - triggerFunction: TriggerFunctionInput; -} -export interface TriggerFunctionInput { - id?: string; - databaseId: string; - name: string; - code?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateViewGrantInput { - clientMutationId?: string; - viewGrant: ViewGrantInput; -} -export interface ViewGrantInput { - id?: string; - databaseId?: string; - viewId: string; - roleName: string; - privilege: string; - withGrantOption?: boolean; -} -export interface CreateViewRuleInput { - clientMutationId?: string; - viewRule: ViewRuleInput; -} -export interface ViewRuleInput { - id?: string; - databaseId?: string; - viewId: string; - name: string; - event: string; - action?: string; -} -export interface CreateAppAdminGrantInput { - clientMutationId?: string; - appAdminGrant: AppAdminGrantInput; -} -export interface AppAdminGrantInput { - id?: string; - isGrant?: boolean; - actorId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateAppOwnerGrantInput { - clientMutationId?: string; - appOwnerGrant: AppOwnerGrantInput; -} -export interface AppOwnerGrantInput { - id?: string; - isGrant?: boolean; - actorId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateAppLimitDefaultInput { - clientMutationId?: string; - appLimitDefault: AppLimitDefaultInput; -} -export interface AppLimitDefaultInput { - id?: string; - name: string; - max?: number; -} -export interface CreateOrgLimitDefaultInput { - clientMutationId?: string; - orgLimitDefault: OrgLimitDefaultInput; -} -export interface OrgLimitDefaultInput { - id?: string; - name: string; - max?: number; -} -export interface CreateApiInput { - clientMutationId?: string; - api: ApiInput; -} -export interface ApiInput { - id?: string; - databaseId: string; - name: string; - dbname?: string; - roleName?: string; - anonRole?: string; - isPublic?: boolean; -} -export interface CreateConnectedAccountsModuleInput { - clientMutationId?: string; - connectedAccountsModule: ConnectedAccountsModuleInput; -} -export interface ConnectedAccountsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName: string; -} -export interface CreateEmailsModuleInput { - clientMutationId?: string; - emailsModule: EmailsModuleInput; -} -export interface EmailsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName: string; -} -export interface CreatePhoneNumbersModuleInput { - clientMutationId?: string; - phoneNumbersModule: PhoneNumbersModuleInput; -} -export interface PhoneNumbersModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName: string; -} -export interface CreateTableModuleInput { - clientMutationId?: string; - tableModule: TableModuleInput; -} -export interface TableModuleInput { - id?: string; - databaseId: string; - privateSchemaId?: string; - tableId: string; - nodeType: string; - data?: unknown; - fields?: string[]; -} -export interface CreateUsersModuleInput { - clientMutationId?: string; - usersModule: UsersModuleInput; -} -export interface UsersModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - typeTableId?: string; - typeTableName?: string; -} -export interface CreateOrgAdminGrantInput { - clientMutationId?: string; - orgAdminGrant: OrgAdminGrantInput; -} -export interface OrgAdminGrantInput { - id?: string; - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateOrgOwnerGrantInput { - clientMutationId?: string; - orgOwnerGrant: OrgOwnerGrantInput; -} -export interface OrgOwnerGrantInput { - id?: string; - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateCryptoAddressInput { - clientMutationId?: string; - cryptoAddress: CryptoAddressInput; -} -export interface CryptoAddressInput { - id?: string; - ownerId?: string; - address: string; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: MembershipTypeInput; -} -export interface MembershipTypeInput { - id: number; - name: string; - description: string; - prefix: string; -} -export interface CreateDatabaseInput { - clientMutationId?: string; - database: DatabaseInput; -} -export interface DatabaseInput { - id?: string; - ownerId?: string; - schemaHash?: string; - name?: string; - label?: string; - hash?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateLimitFunctionInput { - clientMutationId?: string; - limitFunction: LimitFunctionInput; -} -export interface LimitFunctionInput { - id?: string; - databaseId?: string; - tableId: string; - name?: string; - label?: string; - description?: string; - data?: unknown; - security?: number; -} -export interface CreateTableGrantInput { - clientMutationId?: string; - tableGrant: TableGrantInput; -} -export interface TableGrantInput { - id?: string; - databaseId?: string; - tableId: string; - privilege: string; - roleName: string; - fieldIds?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface CreateCryptoAddressesModuleInput { - clientMutationId?: string; - cryptoAddressesModule: CryptoAddressesModuleInput; -} -export interface CryptoAddressesModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName: string; - cryptoNetwork?: string; -} -export interface CreateConnectedAccountInput { - clientMutationId?: string; - connectedAccount: ConnectedAccountInput; -} -export interface ConnectedAccountInput { - id?: string; - ownerId?: string; - service: string; - identifier: string; - details: unknown; - isVerified?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface CreatePhoneNumberInput { - clientMutationId?: string; - phoneNumber: PhoneNumberInput; -} -export interface PhoneNumberInput { - id?: string; - ownerId?: string; - cc: string; - number: string; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface CreateAppPermissionInput { - clientMutationId?: string; - appPermission: AppPermissionInput; -} -export interface AppPermissionInput { - id?: string; - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; -} -export interface CreateOrgPermissionInput { - clientMutationId?: string; - orgPermission: OrgPermissionInput; -} -export interface OrgPermissionInput { - id?: string; - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; -} -export interface CreateAppLimitInput { - clientMutationId?: string; - appLimit: AppLimitInput; -} -export interface AppLimitInput { - id?: string; - name?: string; - actorId: string; - num?: number; - max?: number; -} -export interface CreateAppAchievementInput { - clientMutationId?: string; - appAchievement: AppAchievementInput; -} -export interface AppAchievementInput { - id?: string; - actorId?: string; - name: string; - count?: number; - createdAt?: string; - updatedAt?: string; -} -export interface CreateAppStepInput { - clientMutationId?: string; - appStep: AppStepInput; -} -export interface AppStepInput { - id?: string; - actorId?: string; - name: string; - count?: number; - createdAt?: string; - updatedAt?: string; -} -export interface CreateClaimedInviteInput { - clientMutationId?: string; - claimedInvite: ClaimedInviteInput; -} -export interface ClaimedInviteInput { - id?: string; - data?: unknown; - senderId?: string; - receiverId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateAppMembershipDefaultInput { - clientMutationId?: string; - appMembershipDefault: AppMembershipDefaultInput; -} -export interface AppMembershipDefaultInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; -} -export interface CreateSiteMetadatumInput { - clientMutationId?: string; - siteMetadatum: SiteMetadatumInput; -} -export interface SiteMetadatumInput { - id?: string; - databaseId: string; - siteId: string; - title?: string; - description?: string; - ogImage?: ConstructiveInternalTypeImage; -} -export interface CreateFieldModuleInput { - clientMutationId?: string; - fieldModule: FieldModuleInput; -} -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; - tableTemplateModule: TableTemplateModuleInput; -} -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; - nodeTypeRegistry: NodeTypeRegistryInput; -} -export interface NodeTypeRegistryInput { - name: string; - slug: string; - category: string; - displayName?: string; - description?: string; - parameterSchema?: unknown; - tags?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface CreateObjectInput { - clientMutationId?: string; - object: ObjectInput; -} -export interface ObjectInput { - id: string; - databaseId: string; - kids?: string[]; - ktree?: string[]; - data?: unknown; - frzn?: boolean; - createdAt?: string; -} -export interface CreateFullTextSearchInput { - clientMutationId?: string; - fullTextSearch: FullTextSearchInput; -} -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; - commit: CommitInput; -} -export interface CommitInput { - id?: string; - message?: string; - databaseId: string; - storeId: string; - parentIds?: string[]; - authorId?: string; - committerId?: string; - treeId?: string; - date?: string; -} -export interface CreateOrgLimitInput { - clientMutationId?: string; - orgLimit: OrgLimitInput; -} -export interface OrgLimitInput { - id?: string; - name?: string; - actorId: string; - num?: number; - max?: number; - entityId: string; -} -export interface CreateAppGrantInput { - clientMutationId?: string; - appGrant: AppGrantInput; -} -export interface AppGrantInput { - id?: string; - permissions?: string; - isGrant?: boolean; - actorId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateOrgClaimedInviteInput { - clientMutationId?: string; - orgClaimedInvite: OrgClaimedInviteInput; -} -export interface OrgClaimedInviteInput { - id?: string; - data?: unknown; - senderId?: string; - receiverId?: string; - createdAt?: string; - updatedAt?: string; - entityId: string; -} -export interface CreateDomainInput { - clientMutationId?: string; - domain: DomainInput; -} -export interface DomainInput { - id?: string; - databaseId: string; - apiId?: string; - siteId?: string; - subdomain?: ConstructiveInternalTypeHostname; - domain?: ConstructiveInternalTypeHostname; -} -export interface CreateOrgGrantInput { - clientMutationId?: string; - orgGrant: OrgGrantInput; -} -export interface OrgGrantInput { - id?: string; - permissions?: string; - isGrant?: boolean; - actorId: string; - entityId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateOrgMembershipDefaultInput { - clientMutationId?: string; - orgMembershipDefault: OrgMembershipDefaultInput; -} -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; - sessionsModule: SessionsModuleInput; -} -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; - email: EmailInput; -} -export interface EmailInput { - id?: string; - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface CreateAppLevelRequirementInput { - clientMutationId?: string; - appLevelRequirement: AppLevelRequirementInput; -} -export interface AppLevelRequirementInput { - id?: string; - name: string; - level: string; - description?: string; - requiredCount?: number; - priority?: number; - createdAt?: string; - updatedAt?: string; -} -export interface CreateAuditLogInput { - clientMutationId?: string; - auditLog: AuditLogInput; -} -export interface AuditLogInput { - id?: string; - event: string; - actorId?: string; - origin?: ConstructiveInternalTypeOrigin; - userAgent?: string; - ipAddress?: string; - success: boolean; - createdAt?: string; -} -export interface CreateAppLevelInput { - clientMutationId?: string; - appLevel: AppLevelInput; -} -export interface AppLevelInput { - id?: string; - name: string; - description?: string; - image?: ConstructiveInternalTypeImage; - ownerId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateRlsModuleInput { - clientMutationId?: string; - rlsModule: RlsModuleInput; -} -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; - denormalizedTableField: DenormalizedTableFieldInput; -} -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; - sqlMigration: SqlMigrationInput; -} -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; - cryptoAuthModule: CryptoAuthModuleInput; -} -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; - databaseProvisionModule: DatabaseProvisionModuleInput; -} -export interface DatabaseProvisionModuleInput { - id?: string; - databaseName: string; - ownerId: string; - subdomain?: string; - domain: string; - modules?: string[]; - options?: unknown; - bootstrapUser?: boolean; - status?: string; - errorMessage?: string; - databaseId?: string; - createdAt?: string; - updatedAt?: string; - completedAt?: string; -} -export interface CreateInvitesModuleInput { - clientMutationId?: string; - invitesModule: InvitesModuleInput; -} -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; - view: ViewInput; -} -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; - astMigration: AstMigrationInput; -} -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; - appMembership: AppMembershipInput; -} -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; - orgMembership: OrgMembershipInput; -} -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; - app: AppInput; -} -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; - site: SiteInput; -} -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; - user: UserInput; -} -export interface UserInput { - id?: string; - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - searchTsv?: string; - type?: number; - createdAt?: string; - updatedAt?: string; -} -export interface CreatePermissionsModuleInput { - clientMutationId?: string; - permissionsModule: PermissionsModuleInput; -} -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; - primaryKeyConstraint: PrimaryKeyConstraintInput; -} -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; - trigger: TriggerInput; -} -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; - checkConstraint: CheckConstraintInput; -} -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; - uniqueConstraint: UniqueConstraintInput; -} -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; - procedure: ProcedureInput; -} -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; - policy: PolicyInput; -} -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; - invite: InviteInput; -} -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; - index: IndexInput; -} -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; - limitsModule: LimitsModuleInput; -} -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; - schema: SchemaInput; -} -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; - profilesModule: ProfilesModuleInput; -} -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; - orgInvite: OrgInviteInput; -} -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; - hierarchyModule: HierarchyModuleInput; -} -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; - foreignKeyConstraint: ForeignKeyConstraintInput; -} -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; - table: TableInput; -} -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; - levelsModule: LevelsModuleInput; -} -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; - userAuthModule: UserAuthModuleInput; -} -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; - field: FieldInput; -} -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; - membershipsModule: MembershipsModuleInput; -} -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; - defaultIdsModulePatch: DefaultIdsModulePatch; -} -export interface DefaultIdsModulePatch { - id?: string; - databaseId?: string; -} -export interface UpdateViewTableInput { - clientMutationId?: string; - id: string; - viewTablePatch: ViewTablePatch; -} -export interface ViewTablePatch { - id?: string; - viewId?: string; - tableId?: string; - joinOrder?: number; -} -export interface UpdateApiSchemaInput { - clientMutationId?: string; - id: string; - apiSchemaPatch: ApiSchemaPatch; -} -export interface ApiSchemaPatch { - id?: string; - databaseId?: string; - schemaId?: string; - apiId?: string; -} -export interface UpdateSiteThemeInput { - clientMutationId?: string; - id: string; - siteThemePatch: SiteThemePatch; -} -export interface SiteThemePatch { - id?: string; - databaseId?: string; - siteId?: string; - theme?: unknown; -} -export interface UpdateOrgMemberInput { - clientMutationId?: string; - id: string; - orgMemberPatch: OrgMemberPatch; -} -export interface OrgMemberPatch { - id?: string; - isAdmin?: boolean; - actorId?: string; - entityId?: string; -} -export interface UpdateAppPermissionDefaultInput { - clientMutationId?: string; - id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; -} -export interface AppPermissionDefaultPatch { - id?: string; - permissions?: string; -} -export interface UpdateRefInput { - clientMutationId?: string; - id: string; - databaseId: string; - refPatch: RefPatch; -} -export interface RefPatch { - id?: string; - name?: string; - databaseId?: string; - storeId?: string; - commitId?: string; -} -export interface UpdateStoreInput { - clientMutationId?: string; - id: string; - storePatch: StorePatch; -} -export interface StorePatch { - id?: string; - name?: string; - databaseId?: string; - hash?: string; - createdAt?: string; -} -export interface UpdateApiModuleInput { - clientMutationId?: string; - id: string; - apiModulePatch: ApiModulePatch; -} -export interface ApiModulePatch { - id?: string; - databaseId?: string; - apiId?: string; - name?: string; - data?: unknown; -} -export interface UpdateSiteModuleInput { - clientMutationId?: string; - id: string; - siteModulePatch: SiteModulePatch; -} -export interface SiteModulePatch { - id?: string; - databaseId?: string; - siteId?: string; - name?: string; - data?: unknown; -} -export interface UpdateEncryptedSecretsModuleInput { - clientMutationId?: string; - id: string; - encryptedSecretsModulePatch: EncryptedSecretsModulePatch; -} -export interface EncryptedSecretsModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - tableId?: string; - tableName?: string; -} -export interface UpdateMembershipTypesModuleInput { - clientMutationId?: string; - id: string; - membershipTypesModulePatch: MembershipTypesModulePatch; -} -export interface MembershipTypesModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - tableId?: string; - tableName?: string; -} -export interface UpdateSecretsModuleInput { - clientMutationId?: string; - id: string; - secretsModulePatch: SecretsModulePatch; -} -export interface SecretsModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - tableId?: string; - tableName?: string; -} -export interface UpdateUuidModuleInput { - clientMutationId?: string; - id: string; - uuidModulePatch: UuidModulePatch; -} -export interface UuidModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - uuidFunction?: string; - uuidSeed?: string; -} -export interface UpdateRoleTypeInput { - clientMutationId?: string; - id: number; - roleTypePatch: RoleTypePatch; -} -export interface RoleTypePatch { - id?: number; - name?: string; -} -export interface UpdateOrgPermissionDefaultInput { - clientMutationId?: string; - id: string; - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; -} -export interface OrgPermissionDefaultPatch { - id?: string; - permissions?: string; - entityId?: string; -} -export interface UpdateSchemaGrantInput { - clientMutationId?: string; - id: string; - schemaGrantPatch: SchemaGrantPatch; -} -export interface SchemaGrantPatch { - id?: string; - databaseId?: string; - schemaId?: string; - granteeName?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateTriggerFunctionInput { - clientMutationId?: string; - id: string; - triggerFunctionPatch: TriggerFunctionPatch; -} -export interface TriggerFunctionPatch { - id?: string; - databaseId?: string; - name?: string; - code?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateViewGrantInput { - clientMutationId?: string; - id: string; - viewGrantPatch: ViewGrantPatch; -} -export interface ViewGrantPatch { - id?: string; - databaseId?: string; - viewId?: string; - roleName?: string; - privilege?: string; - withGrantOption?: boolean; -} -export interface UpdateViewRuleInput { - clientMutationId?: string; - id: string; - viewRulePatch: ViewRulePatch; -} -export interface ViewRulePatch { - id?: string; - databaseId?: string; - viewId?: string; - name?: string; - event?: string; - action?: string; -} -export interface UpdateAppAdminGrantInput { - clientMutationId?: string; - id: string; - appAdminGrantPatch: AppAdminGrantPatch; -} -export interface AppAdminGrantPatch { - id?: string; - isGrant?: boolean; - actorId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateAppOwnerGrantInput { - clientMutationId?: string; - id: string; - appOwnerGrantPatch: AppOwnerGrantPatch; -} -export interface AppOwnerGrantPatch { - id?: string; - isGrant?: boolean; - actorId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateAppLimitDefaultInput { - clientMutationId?: string; - id: string; - appLimitDefaultPatch: AppLimitDefaultPatch; -} -export interface AppLimitDefaultPatch { - id?: string; - name?: string; - max?: number; -} -export interface UpdateOrgLimitDefaultInput { - clientMutationId?: string; - id: string; - orgLimitDefaultPatch: OrgLimitDefaultPatch; -} -export interface OrgLimitDefaultPatch { - id?: string; - name?: string; - max?: number; -} -export interface UpdateApiInput { - clientMutationId?: string; - id: string; - apiPatch: ApiPatch; -} -export interface ApiPatch { - id?: string; - databaseId?: string; - name?: string; - dbname?: string; - roleName?: string; - anonRole?: string; - isPublic?: boolean; -} -export interface UpdateConnectedAccountsModuleInput { - clientMutationId?: string; - id: string; - connectedAccountsModulePatch: ConnectedAccountsModulePatch; -} -export interface ConnectedAccountsModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName?: string; -} -export interface UpdateEmailsModuleInput { - clientMutationId?: string; - id: string; - emailsModulePatch: EmailsModulePatch; -} -export interface EmailsModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName?: string; -} -export interface UpdatePhoneNumbersModuleInput { - clientMutationId?: string; - id: string; - phoneNumbersModulePatch: PhoneNumbersModulePatch; -} -export interface PhoneNumbersModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - ownerTableId?: string; - tableName?: string; -} -export interface UpdateTableModuleInput { - clientMutationId?: string; - id: string; - tableModulePatch: TableModulePatch; -} -export interface TableModulePatch { - id?: string; - databaseId?: string; - privateSchemaId?: string; - tableId?: string; - nodeType?: string; - data?: unknown; - fields?: string[]; -} -export interface UpdateUsersModuleInput { - clientMutationId?: string; - id: string; - usersModulePatch: UsersModulePatch; -} -export interface UsersModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - tableId?: string; - tableName?: string; - typeTableId?: string; - typeTableName?: string; -} -export interface UpdateOrgAdminGrantInput { - clientMutationId?: string; - id: string; - orgAdminGrantPatch: OrgAdminGrantPatch; -} -export interface OrgAdminGrantPatch { - id?: string; - isGrant?: boolean; - actorId?: string; - entityId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateOrgOwnerGrantInput { - clientMutationId?: string; - id: string; - orgOwnerGrantPatch: OrgOwnerGrantPatch; -} -export interface OrgOwnerGrantPatch { - id?: string; - isGrant?: boolean; - actorId?: string; - entityId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateCryptoAddressInput { - clientMutationId?: string; - id: string; - cryptoAddressPatch: CryptoAddressPatch; -} -export interface CryptoAddressPatch { - id?: string; - ownerId?: string; - address?: string; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface MembershipTypePatch { - id?: number; - name?: string; - description?: string; - prefix?: string; -} -export interface UpdateDatabaseInput { - clientMutationId?: string; - id: string; - databasePatch: DatabasePatch; -} -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; - limitFunctionPatch: LimitFunctionPatch; -} -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; - tableGrantPatch: TableGrantPatch; -} -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; - cryptoAddressesModulePatch: CryptoAddressesModulePatch; -} -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; - connectedAccountPatch: ConnectedAccountPatch; -} -export interface ConnectedAccountPatch { - id?: string; - ownerId?: string; - service?: string; - identifier?: string; - details?: unknown; - isVerified?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface UpdatePhoneNumberInput { - clientMutationId?: string; - id: string; - phoneNumberPatch: PhoneNumberPatch; -} -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; - appPermissionPatch: AppPermissionPatch; -} -export interface AppPermissionPatch { - id?: string; - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; -} -export interface UpdateOrgPermissionInput { - clientMutationId?: string; - id: string; - orgPermissionPatch: OrgPermissionPatch; -} -export interface OrgPermissionPatch { - id?: string; - name?: string; - bitnum?: number; - bitstr?: string; - description?: string; -} -export interface UpdateAppLimitInput { - clientMutationId?: string; - id: string; - appLimitPatch: AppLimitPatch; -} -export interface AppLimitPatch { - id?: string; - name?: string; - actorId?: string; - num?: number; - max?: number; -} -export interface UpdateAppAchievementInput { - clientMutationId?: string; - id: string; - appAchievementPatch: AppAchievementPatch; -} -export interface AppAchievementPatch { - id?: string; - actorId?: string; - name?: string; - count?: number; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateAppStepInput { - clientMutationId?: string; - id: string; - appStepPatch: AppStepPatch; -} -export interface AppStepPatch { - id?: string; - actorId?: string; - name?: string; - count?: number; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateClaimedInviteInput { - clientMutationId?: string; - id: string; - claimedInvitePatch: ClaimedInvitePatch; -} -export interface ClaimedInvitePatch { - id?: string; - data?: unknown; - senderId?: string; - receiverId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateAppMembershipDefaultInput { - clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -export interface AppMembershipDefaultPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; -} -export interface UpdateSiteMetadatumInput { - clientMutationId?: string; - id: string; - siteMetadatumPatch: SiteMetadatumPatch; -} -export interface SiteMetadatumPatch { - id?: string; - databaseId?: string; - siteId?: string; - title?: string; - description?: string; - ogImage?: ConstructiveInternalTypeImage; -} -export interface UpdateFieldModuleInput { - clientMutationId?: string; - id: string; - fieldModulePatch: FieldModulePatch; -} -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; - tableTemplateModulePatch: TableTemplateModulePatch; -} -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; - name: string; - nodeTypeRegistryPatch: NodeTypeRegistryPatch; -} -export interface NodeTypeRegistryPatch { - name?: string; - slug?: string; - category?: string; - displayName?: string; - description?: string; - parameterSchema?: unknown; - tags?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateObjectInput { - clientMutationId?: string; - id: string; - databaseId: string; - objectPatch: ObjectPatch; -} -export interface ObjectPatch { - id?: string; - databaseId?: string; - kids?: string[]; - ktree?: string[]; - data?: unknown; - frzn?: boolean; - createdAt?: string; -} -export interface UpdateFullTextSearchInput { - clientMutationId?: string; - id: string; - fullTextSearchPatch: FullTextSearchPatch; -} -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; - id: string; - databaseId: string; - commitPatch: CommitPatch; -} -export interface CommitPatch { - id?: string; - message?: string; - databaseId?: string; - storeId?: string; - parentIds?: string[]; - authorId?: string; - committerId?: string; - treeId?: string; - date?: string; -} -export interface UpdateOrgLimitInput { - clientMutationId?: string; - id: string; - orgLimitPatch: OrgLimitPatch; -} -export interface OrgLimitPatch { - id?: string; - name?: string; - actorId?: string; - num?: number; - max?: number; - entityId?: string; -} -export interface UpdateAppGrantInput { - clientMutationId?: string; - id: string; - appGrantPatch: AppGrantPatch; -} -export interface AppGrantPatch { - id?: string; - permissions?: string; - isGrant?: boolean; - actorId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateOrgClaimedInviteInput { - clientMutationId?: string; - id: string; - orgClaimedInvitePatch: OrgClaimedInvitePatch; -} -export interface OrgClaimedInvitePatch { - id?: string; - data?: unknown; - senderId?: string; - receiverId?: string; - createdAt?: string; - updatedAt?: string; - entityId?: string; -} -export interface UpdateDomainInput { - clientMutationId?: string; - id: string; - domainPatch: DomainPatch; -} -export interface DomainPatch { - id?: string; - databaseId?: string; - apiId?: string; - siteId?: string; - subdomain?: ConstructiveInternalTypeHostname; - domain?: ConstructiveInternalTypeHostname; -} -export interface UpdateOrgGrantInput { - clientMutationId?: string; - id: string; - orgGrantPatch: OrgGrantPatch; -} -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; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; -} -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; - sessionsModulePatch: SessionsModulePatch; -} -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; - emailPatch: EmailPatch; -} -export interface EmailPatch { - id?: string; - ownerId?: string; - email?: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateAppLevelRequirementInput { - clientMutationId?: string; - id: string; - appLevelRequirementPatch: AppLevelRequirementPatch; -} -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; - auditLogPatch: AuditLogPatch; -} -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; - appLevelPatch: AppLevelPatch; -} -export interface AppLevelPatch { - id?: string; - name?: string; - description?: string; - image?: ConstructiveInternalTypeImage; - ownerId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateRlsModuleInput { - clientMutationId?: string; - id: string; - rlsModulePatch: RlsModulePatch; -} -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; - denormalizedTableFieldPatch: DenormalizedTableFieldPatch; -} -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; - cryptoAuthModulePatch: CryptoAuthModulePatch; -} -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; - databaseProvisionModulePatch: DatabaseProvisionModulePatch; -} -export interface DatabaseProvisionModulePatch { - id?: string; - databaseName?: string; - ownerId?: string; - subdomain?: string; - domain?: string; - modules?: string[]; - options?: unknown; - bootstrapUser?: boolean; - status?: string; - errorMessage?: string; - databaseId?: string; - createdAt?: string; - updatedAt?: string; - completedAt?: string; -} -export interface UpdateInvitesModuleInput { - clientMutationId?: string; - id: string; - invitesModulePatch: InvitesModulePatch; -} -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; - viewPatch: ViewPatch; -} -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; - appMembershipPatch: AppMembershipPatch; -} -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; - orgMembershipPatch: OrgMembershipPatch; -} -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; - appPatch: AppPatch; -} -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; - sitePatch: SitePatch; -} -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; - userPatch: UserPatch; -} -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; - permissionsModulePatch: PermissionsModulePatch; -} -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; - primaryKeyConstraintPatch: PrimaryKeyConstraintPatch; -} -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; - triggerPatch: TriggerPatch; -} -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; - checkConstraintPatch: CheckConstraintPatch; -} -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; - uniqueConstraintPatch: UniqueConstraintPatch; -} -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; - procedurePatch: ProcedurePatch; -} -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; - policyPatch: PolicyPatch; -} -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; - invitePatch: InvitePatch; -} -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; - indexPatch: IndexPatch; -} -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; - limitsModulePatch: LimitsModulePatch; -} -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; - schemaPatch: SchemaPatch; -} -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; - profilesModulePatch: ProfilesModulePatch; -} -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; - orgInvitePatch: OrgInvitePatch; -} -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; - hierarchyModulePatch: HierarchyModulePatch; -} -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; - foreignKeyConstraintPatch: ForeignKeyConstraintPatch; -} -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; - tablePatch: TablePatch; -} -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; - levelsModulePatch: LevelsModulePatch; -} -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; - userAuthModulePatch: UserAuthModulePatch; -} -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; - fieldPatch: FieldPatch; -} -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; - membershipsModulePatch: MembershipsModulePatch; -} -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; - id: string; - databaseId: string; -} -export interface DeleteStoreInput { - clientMutationId?: string; - 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; - name: string; -} -export interface DeleteObjectInput { - clientMutationId?: string; - id: string; - databaseId: string; -} -export interface DeleteFullTextSearchInput { - clientMutationId?: string; - id: string; -} -export interface DeleteCommitInput { - clientMutationId?: string; - id: string; - 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; -} -export interface GetAllConnection { - nodes: GetAllRecord[]; - edges: GetAllEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppPermissionConnection { - nodes: AppPermission[]; - edges: AppPermissionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgPermissionConnection { - nodes: OrgPermission[]; - edges: OrgPermissionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface ObjectConnection { - nodes: Object[]; - edges: ObjectEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppLevelRequirementConnection { - nodes: AppLevelRequirement[]; - edges: AppLevelRequirementEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface DefaultIdsModuleConnection { - nodes: DefaultIdsModule[]; - edges: DefaultIdsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface ViewTableConnection { - nodes: ViewTable[]; - edges: ViewTableEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface ApiSchemaConnection { - nodes: ApiSchema[]; - edges: ApiSchemaEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface SiteThemeConnection { - nodes: SiteTheme[]; - edges: SiteThemeEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgMemberConnection { - nodes: OrgMember[]; - edges: OrgMemberEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppPermissionDefaultConnection { - nodes: AppPermissionDefault[]; - edges: AppPermissionDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface RefConnection { - nodes: Ref[]; - edges: RefEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface StoreConnection { - nodes: Store[]; - edges: StoreEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface ApiModuleConnection { - nodes: ApiModule[]; - edges: ApiModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface SiteModuleConnection { - nodes: SiteModule[]; - edges: SiteModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface EncryptedSecretsModuleConnection { - nodes: EncryptedSecretsModule[]; - edges: EncryptedSecretsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface MembershipTypesModuleConnection { - nodes: MembershipTypesModule[]; - edges: MembershipTypesModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface SecretsModuleConnection { - nodes: SecretsModule[]; - edges: SecretsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface UuidModuleConnection { - nodes: UuidModule[]; - edges: UuidModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface RoleTypeConnection { - nodes: RoleType[]; - edges: RoleTypeEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgPermissionDefaultConnection { - nodes: OrgPermissionDefault[]; - edges: OrgPermissionDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface SchemaGrantConnection { - nodes: SchemaGrant[]; - edges: SchemaGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface TriggerFunctionConnection { - nodes: TriggerFunction[]; - edges: TriggerFunctionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface ViewGrantConnection { - nodes: ViewGrant[]; - edges: ViewGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface ViewRuleConnection { - nodes: ViewRule[]; - edges: ViewRuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppAdminGrantConnection { - nodes: AppAdminGrant[]; - edges: AppAdminGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppOwnerGrantConnection { - nodes: AppOwnerGrant[]; - edges: AppOwnerGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppLimitDefaultConnection { - nodes: AppLimitDefault[]; - edges: AppLimitDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgLimitDefaultConnection { - nodes: OrgLimitDefault[]; - edges: OrgLimitDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface ApiConnection { - nodes: Api[]; - edges: ApiEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface ConnectedAccountsModuleConnection { - nodes: ConnectedAccountsModule[]; - edges: ConnectedAccountsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface EmailsModuleConnection { - nodes: EmailsModule[]; - edges: EmailsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface PhoneNumbersModuleConnection { - nodes: PhoneNumbersModule[]; - edges: PhoneNumbersModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface TableModuleConnection { - nodes: TableModule[]; - edges: TableModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface UsersModuleConnection { - nodes: UsersModule[]; - edges: UsersModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgAdminGrantConnection { - nodes: OrgAdminGrant[]; - edges: OrgAdminGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgOwnerGrantConnection { - nodes: OrgOwnerGrant[]; - edges: OrgOwnerGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface CryptoAddressConnection { - nodes: CryptoAddress[]; - edges: CryptoAddressEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface MembershipTypeConnection { - nodes: MembershipType[]; - edges: MembershipTypeEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface DatabaseConnection { - nodes: Database[]; - edges: DatabaseEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface LimitFunctionConnection { - nodes: LimitFunction[]; - edges: LimitFunctionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface TableGrantConnection { - nodes: TableGrant[]; - edges: TableGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface CryptoAddressesModuleConnection { - nodes: CryptoAddressesModule[]; - edges: CryptoAddressesModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface ConnectedAccountConnection { - nodes: ConnectedAccount[]; - edges: ConnectedAccountEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface PhoneNumberConnection { - nodes: PhoneNumber[]; - edges: PhoneNumberEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppLimitConnection { - nodes: AppLimit[]; - edges: AppLimitEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppAchievementConnection { - nodes: AppAchievement[]; - edges: AppAchievementEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppStepConnection { - nodes: AppStep[]; - edges: AppStepEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface ClaimedInviteConnection { - nodes: ClaimedInvite[]; - edges: ClaimedInviteEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppMembershipDefaultConnection { - nodes: AppMembershipDefault[]; - edges: AppMembershipDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface SiteMetadatumConnection { - nodes: SiteMetadatum[]; - edges: SiteMetadatumEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface FieldModuleConnection { - nodes: FieldModule[]; - edges: FieldModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface TableTemplateModuleConnection { - nodes: TableTemplateModule[]; - edges: TableTemplateModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface NodeTypeRegistryConnection { - nodes: NodeTypeRegistry[]; - edges: NodeTypeRegistryEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface FullTextSearchConnection { - nodes: FullTextSearch[]; - edges: FullTextSearchEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface CommitConnection { - nodes: Commit[]; - edges: CommitEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgLimitConnection { - nodes: OrgLimit[]; - edges: OrgLimitEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppGrantConnection { - nodes: AppGrant[]; - edges: AppGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgClaimedInviteConnection { - nodes: OrgClaimedInvite[]; - edges: OrgClaimedInviteEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface DomainConnection { - nodes: Domain[]; - edges: DomainEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgGrantConnection { - nodes: OrgGrant[]; - edges: OrgGrantEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgMembershipDefaultConnection { - nodes: OrgMembershipDefault[]; - edges: OrgMembershipDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface SessionsModuleConnection { - nodes: SessionsModule[]; - edges: SessionsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface EmailConnection { - nodes: Email[]; - edges: EmailEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AuditLogConnection { - nodes: AuditLog[]; - edges: AuditLogEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppLevelConnection { - nodes: AppLevel[]; - edges: AppLevelEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface RlsModuleConnection { - nodes: RlsModule[]; - edges: RlsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface DenormalizedTableFieldConnection { - nodes: DenormalizedTableField[]; - edges: DenormalizedTableFieldEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface SqlMigrationConnection { - nodes: SqlMigration[]; - edges: SqlMigrationEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface CryptoAuthModuleConnection { - nodes: CryptoAuthModule[]; - edges: CryptoAuthModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface DatabaseProvisionModuleConnection { - nodes: DatabaseProvisionModule[]; - edges: DatabaseProvisionModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface InvitesModuleConnection { - nodes: InvitesModule[]; - edges: InvitesModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface ViewConnection { - nodes: View[]; - edges: ViewEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AstMigrationConnection { - nodes: AstMigration[]; - edges: AstMigrationEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppMembershipConnection { - nodes: AppMembership[]; - edges: AppMembershipEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgMembershipConnection { - nodes: OrgMembership[]; - edges: OrgMembershipEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface AppConnection { - nodes: App[]; - edges: AppEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface SiteConnection { - nodes: Site[]; - edges: SiteEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface UserConnection { - nodes: User[]; - edges: UserEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface PermissionsModuleConnection { - nodes: PermissionsModule[]; - edges: PermissionsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface PrimaryKeyConstraintConnection { - nodes: PrimaryKeyConstraint[]; - edges: PrimaryKeyConstraintEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface TriggerConnection { - nodes: Trigger[]; - edges: TriggerEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface CheckConstraintConnection { - nodes: CheckConstraint[]; - edges: CheckConstraintEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface UniqueConstraintConnection { - nodes: UniqueConstraint[]; - edges: UniqueConstraintEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface ProcedureConnection { - nodes: Procedure[]; - edges: ProcedureEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface PolicyConnection { - nodes: Policy[]; - edges: PolicyEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface InviteConnection { - nodes: Invite[]; - edges: InviteEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface IndexConnection { - nodes: Index[]; - edges: IndexEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface LimitsModuleConnection { - nodes: LimitsModule[]; - edges: LimitsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface SchemaConnection { - nodes: Schema[]; - edges: SchemaEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface ProfilesModuleConnection { - nodes: ProfilesModule[]; - edges: ProfilesModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface OrgInviteConnection { - nodes: OrgInvite[]; - edges: OrgInviteEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface HierarchyModuleConnection { - nodes: HierarchyModule[]; - edges: HierarchyModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface ForeignKeyConstraintConnection { - nodes: ForeignKeyConstraint[]; - edges: ForeignKeyConstraintEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface TableConnection { - nodes: Table[]; - edges: TableEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface LevelsModuleConnection { - nodes: LevelsModule[]; - edges: LevelsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface UserAuthModuleConnection { - nodes: UserAuthModule[]; - edges: UserAuthModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface FieldConnection { - nodes: Field[]; - edges: FieldEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export interface MembershipsModuleConnection { - nodes: MembershipsModule[]; - edges: MembershipsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -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; - defaultIdsModule?: DefaultIdsModule | null; - defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; -} -export interface CreateViewTablePayload { - clientMutationId?: string | null; - viewTable?: ViewTable | null; - viewTableEdge?: ViewTableEdge | null; -} -export interface CreateApiSchemaPayload { - clientMutationId?: string | null; - apiSchema?: ApiSchema | null; - apiSchemaEdge?: ApiSchemaEdge | null; -} -export interface CreateSiteThemePayload { - clientMutationId?: string | null; - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} -export interface CreateOrgMemberPayload { - clientMutationId?: string | null; - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export interface CreateAppPermissionDefaultPayload { - clientMutationId?: string | null; - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export interface CreateRefPayload { - clientMutationId?: string | null; - ref?: Ref | null; - refEdge?: RefEdge | null; -} -export interface CreateStorePayload { - clientMutationId?: string | null; - store?: Store | null; - storeEdge?: StoreEdge | null; -} -export interface CreateApiModulePayload { - clientMutationId?: string | null; - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export interface CreateSiteModulePayload { - clientMutationId?: string | null; - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} -export interface CreateEncryptedSecretsModulePayload { - clientMutationId?: string | null; - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; -} -export interface CreateMembershipTypesModulePayload { - clientMutationId?: string | null; - membershipTypesModule?: MembershipTypesModule | null; - membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; -} -export interface CreateSecretsModulePayload { - clientMutationId?: string | null; - secretsModule?: SecretsModule | null; - secretsModuleEdge?: SecretsModuleEdge | null; -} -export interface CreateUuidModulePayload { - clientMutationId?: string | null; - uuidModule?: UuidModule | null; - uuidModuleEdge?: UuidModuleEdge | null; -} -export interface CreateRoleTypePayload { - clientMutationId?: string | null; - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export interface CreateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export interface CreateSchemaGrantPayload { - clientMutationId?: string | null; - schemaGrant?: SchemaGrant | null; - schemaGrantEdge?: SchemaGrantEdge | null; -} -export interface CreateTriggerFunctionPayload { - clientMutationId?: string | null; - triggerFunction?: TriggerFunction | null; - triggerFunctionEdge?: TriggerFunctionEdge | null; -} -export interface CreateViewGrantPayload { - clientMutationId?: string | null; - viewGrant?: ViewGrant | null; - viewGrantEdge?: ViewGrantEdge | null; -} -export interface CreateViewRulePayload { - clientMutationId?: string | null; - viewRule?: ViewRule | null; - viewRuleEdge?: ViewRuleEdge | null; -} -export interface CreateAppAdminGrantPayload { - clientMutationId?: string | null; - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export interface CreateAppOwnerGrantPayload { - clientMutationId?: string | null; - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export interface CreateAppLimitDefaultPayload { - clientMutationId?: string | null; - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export interface CreateOrgLimitDefaultPayload { - clientMutationId?: string | null; - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} -export interface CreateApiPayload { - clientMutationId?: string | null; - api?: Api | null; - apiEdge?: ApiEdge | null; -} -export interface CreateConnectedAccountsModulePayload { - clientMutationId?: string | null; - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; -} -export interface CreateEmailsModulePayload { - clientMutationId?: string | null; - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; -} -export interface CreatePhoneNumbersModulePayload { - clientMutationId?: string | null; - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; -} -export interface CreateTableModulePayload { - clientMutationId?: string | null; - tableModule?: TableModule | null; - tableModuleEdge?: TableModuleEdge | null; -} -export interface CreateUsersModulePayload { - clientMutationId?: string | null; - usersModule?: UsersModule | null; - usersModuleEdge?: UsersModuleEdge | null; -} -export interface CreateOrgAdminGrantPayload { - clientMutationId?: string | null; - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export interface CreateOrgOwnerGrantPayload { - clientMutationId?: string | null; - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export interface CreateCryptoAddressPayload { - clientMutationId?: string | null; - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export interface CreateMembershipTypePayload { - clientMutationId?: string | null; - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export interface CreateDatabasePayload { - clientMutationId?: string | null; - database?: Database | null; - databaseEdge?: DatabaseEdge | null; -} -export interface CreateLimitFunctionPayload { - clientMutationId?: string | null; - limitFunction?: LimitFunction | null; - limitFunctionEdge?: LimitFunctionEdge | null; -} -export interface CreateTableGrantPayload { - clientMutationId?: string | null; - tableGrant?: TableGrant | null; - tableGrantEdge?: TableGrantEdge | null; -} -export interface CreateCryptoAddressesModulePayload { - clientMutationId?: string | null; - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; -} -export interface CreateConnectedAccountPayload { - clientMutationId?: string | null; - connectedAccount?: ConnectedAccount | null; - connectedAccountEdge?: ConnectedAccountEdge | null; -} -export interface CreatePhoneNumberPayload { - clientMutationId?: string | null; - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; -} -export interface CreateAppPermissionPayload { - clientMutationId?: string | null; - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export interface CreateOrgPermissionPayload { - clientMutationId?: string | null; - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export interface CreateAppLimitPayload { - clientMutationId?: string | null; - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export interface CreateAppAchievementPayload { - clientMutationId?: string | null; - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; -} -export interface CreateAppStepPayload { - clientMutationId?: string | null; - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; -} -export interface CreateClaimedInvitePayload { - clientMutationId?: string | null; - claimedInvite?: ClaimedInvite | null; - claimedInviteEdge?: ClaimedInviteEdge | null; -} -export interface CreateAppMembershipDefaultPayload { - clientMutationId?: string | null; - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export interface CreateSiteMetadatumPayload { - clientMutationId?: string | null; - siteMetadatum?: SiteMetadatum | null; - siteMetadatumEdge?: SiteMetadatumEdge | null; -} -export interface CreateFieldModulePayload { - clientMutationId?: string | null; - fieldModule?: FieldModule | null; - fieldModuleEdge?: FieldModuleEdge | null; -} -export interface CreateTableTemplateModulePayload { - clientMutationId?: string | null; - tableTemplateModule?: TableTemplateModule | null; - tableTemplateModuleEdge?: TableTemplateModuleEdge | null; -} -export interface CreateNodeTypeRegistryPayload { - clientMutationId?: string | null; - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} -export interface CreateObjectPayload { - clientMutationId?: string | null; - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export interface CreateFullTextSearchPayload { - clientMutationId?: string | null; - fullTextSearch?: FullTextSearch | null; - fullTextSearchEdge?: FullTextSearchEdge | null; -} -export interface CreateCommitPayload { - clientMutationId?: string | null; - commit?: Commit | null; - commitEdge?: CommitEdge | null; -} -export interface CreateOrgLimitPayload { - clientMutationId?: string | null; - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export interface CreateAppGrantPayload { - clientMutationId?: string | null; - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; -} -export interface CreateOrgClaimedInvitePayload { - clientMutationId?: string | null; - orgClaimedInvite?: OrgClaimedInvite | null; - orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; -} -export interface CreateDomainPayload { - clientMutationId?: string | null; - domain?: Domain | null; - domainEdge?: DomainEdge | null; -} -export interface CreateOrgGrantPayload { - clientMutationId?: string | null; - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; -} -export interface CreateOrgMembershipDefaultPayload { - clientMutationId?: string | null; - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} -export interface CreateSessionsModulePayload { - clientMutationId?: string | null; - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; -} -export interface CreateEmailPayload { - clientMutationId?: string | null; - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export interface CreateAppLevelRequirementPayload { - clientMutationId?: string | null; - appLevelRequirement?: AppLevelRequirement | null; - appLevelRequirementEdge?: AppLevelRequirementEdge | null; -} -export interface CreateAuditLogPayload { - clientMutationId?: string | null; - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; -} -export interface CreateAppLevelPayload { - clientMutationId?: string | null; - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export interface CreateRlsModulePayload { - clientMutationId?: string | null; - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; -} -export interface CreateDenormalizedTableFieldPayload { - clientMutationId?: string | null; - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; -} -export interface CreateSqlMigrationPayload { - clientMutationId?: string | null; - sqlMigration?: SqlMigration | null; -} -export interface CreateCryptoAuthModulePayload { - clientMutationId?: string | null; - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; -} -export interface CreateDatabaseProvisionModulePayload { - clientMutationId?: string | null; - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; -} -export interface CreateInvitesModulePayload { - clientMutationId?: string | null; - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export interface CreateViewPayload { - clientMutationId?: string | null; - view?: View | null; - viewEdge?: ViewEdge | null; -} -export interface CreateAstMigrationPayload { - clientMutationId?: string | null; - astMigration?: AstMigration | null; -} -export interface CreateAppMembershipPayload { - clientMutationId?: string | null; - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export interface CreateOrgMembershipPayload { - clientMutationId?: string | null; - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export interface CreateAppPayload { - clientMutationId?: string | null; - app?: App | null; - appEdge?: AppEdge | null; -} -export interface CreateSitePayload { - clientMutationId?: string | null; - site?: Site | null; - siteEdge?: SiteEdge | null; -} -export interface CreateUserPayload { - clientMutationId?: string | null; - user?: User | null; - userEdge?: UserEdge | null; -} -export interface CreatePermissionsModulePayload { - clientMutationId?: string | null; - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export interface CreatePrimaryKeyConstraintPayload { - clientMutationId?: string | null; - primaryKeyConstraint?: PrimaryKeyConstraint | null; - primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; -} -export interface CreateTriggerPayload { - clientMutationId?: string | null; - trigger?: Trigger | null; - triggerEdge?: TriggerEdge | null; -} -export interface CreateCheckConstraintPayload { - clientMutationId?: string | null; - checkConstraint?: CheckConstraint | null; - checkConstraintEdge?: CheckConstraintEdge | null; -} -export interface CreateUniqueConstraintPayload { - clientMutationId?: string | null; - uniqueConstraint?: UniqueConstraint | null; - uniqueConstraintEdge?: UniqueConstraintEdge | null; -} -export interface CreateProcedurePayload { - clientMutationId?: string | null; - procedure?: Procedure | null; - procedureEdge?: ProcedureEdge | null; -} -export interface CreatePolicyPayload { - clientMutationId?: string | null; - policy?: Policy | null; - policyEdge?: PolicyEdge | null; -} -export interface CreateInvitePayload { - clientMutationId?: string | null; - invite?: Invite | null; - inviteEdge?: InviteEdge | null; -} -export interface CreateIndexPayload { - clientMutationId?: string | null; - index?: Index | null; - indexEdge?: IndexEdge | null; -} -export interface CreateLimitsModulePayload { - clientMutationId?: string | null; - limitsModule?: LimitsModule | null; - limitsModuleEdge?: LimitsModuleEdge | null; -} -export interface CreateSchemaPayload { - clientMutationId?: string | null; - schema?: Schema | null; - schemaEdge?: SchemaEdge | null; -} -export interface CreateProfilesModulePayload { - clientMutationId?: string | null; - profilesModule?: ProfilesModule | null; - profilesModuleEdge?: ProfilesModuleEdge | null; -} -export interface CreateOrgInvitePayload { - clientMutationId?: string | null; - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; -} -export interface CreateHierarchyModulePayload { - clientMutationId?: string | null; - hierarchyModule?: HierarchyModule | null; - hierarchyModuleEdge?: HierarchyModuleEdge | null; -} -export interface CreateForeignKeyConstraintPayload { - clientMutationId?: string | null; - foreignKeyConstraint?: ForeignKeyConstraint | null; - foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; -} -export interface CreateTablePayload { - clientMutationId?: string | null; - table?: Table | null; - tableEdge?: TableEdge | null; -} -export interface CreateLevelsModulePayload { - clientMutationId?: string | null; - levelsModule?: LevelsModule | null; - levelsModuleEdge?: LevelsModuleEdge | null; -} -export interface CreateUserAuthModulePayload { - clientMutationId?: string | null; - userAuthModule?: UserAuthModule | null; - userAuthModuleEdge?: UserAuthModuleEdge | null; -} -export interface CreateFieldPayload { - clientMutationId?: string | null; - field?: Field | null; - fieldEdge?: FieldEdge | null; -} -export interface CreateMembershipsModulePayload { - clientMutationId?: string | null; - membershipsModule?: MembershipsModule | null; - membershipsModuleEdge?: MembershipsModuleEdge | null; -} -export interface UpdateDefaultIdsModulePayload { - clientMutationId?: string | null; - defaultIdsModule?: DefaultIdsModule | null; - defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; -} -export interface UpdateViewTablePayload { - clientMutationId?: string | null; - viewTable?: ViewTable | null; - viewTableEdge?: ViewTableEdge | null; -} -export interface UpdateApiSchemaPayload { - clientMutationId?: string | null; - apiSchema?: ApiSchema | null; - apiSchemaEdge?: ApiSchemaEdge | null; -} -export interface UpdateSiteThemePayload { - clientMutationId?: string | null; - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} -export interface UpdateOrgMemberPayload { - clientMutationId?: string | null; - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export interface UpdateAppPermissionDefaultPayload { - clientMutationId?: string | null; - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export interface UpdateRefPayload { - clientMutationId?: string | null; - ref?: Ref | null; - refEdge?: RefEdge | null; -} -export interface UpdateStorePayload { - clientMutationId?: string | null; - store?: Store | null; - storeEdge?: StoreEdge | null; -} -export interface UpdateApiModulePayload { - clientMutationId?: string | null; - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export interface UpdateSiteModulePayload { - clientMutationId?: string | null; - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} -export interface UpdateEncryptedSecretsModulePayload { - clientMutationId?: string | null; - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; -} -export interface UpdateMembershipTypesModulePayload { - clientMutationId?: string | null; - membershipTypesModule?: MembershipTypesModule | null; - membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; -} -export interface UpdateSecretsModulePayload { - clientMutationId?: string | null; - secretsModule?: SecretsModule | null; - secretsModuleEdge?: SecretsModuleEdge | null; -} -export interface UpdateUuidModulePayload { - clientMutationId?: string | null; - uuidModule?: UuidModule | null; - uuidModuleEdge?: UuidModuleEdge | null; -} -export interface UpdateRoleTypePayload { - clientMutationId?: string | null; - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export interface UpdateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export interface UpdateSchemaGrantPayload { - clientMutationId?: string | null; - schemaGrant?: SchemaGrant | null; - schemaGrantEdge?: SchemaGrantEdge | null; -} -export interface UpdateTriggerFunctionPayload { - clientMutationId?: string | null; - triggerFunction?: TriggerFunction | null; - triggerFunctionEdge?: TriggerFunctionEdge | null; -} -export interface UpdateViewGrantPayload { - clientMutationId?: string | null; - viewGrant?: ViewGrant | null; - viewGrantEdge?: ViewGrantEdge | null; -} -export interface UpdateViewRulePayload { - clientMutationId?: string | null; - viewRule?: ViewRule | null; - viewRuleEdge?: ViewRuleEdge | null; -} -export interface UpdateAppAdminGrantPayload { - clientMutationId?: string | null; - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export interface UpdateAppOwnerGrantPayload { - clientMutationId?: string | null; - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export interface UpdateAppLimitDefaultPayload { - clientMutationId?: string | null; - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export interface UpdateOrgLimitDefaultPayload { - clientMutationId?: string | null; - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} -export interface UpdateApiPayload { - clientMutationId?: string | null; - api?: Api | null; - apiEdge?: ApiEdge | null; -} -export interface UpdateConnectedAccountsModulePayload { - clientMutationId?: string | null; - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; -} -export interface UpdateEmailsModulePayload { - clientMutationId?: string | null; - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; -} -export interface UpdatePhoneNumbersModulePayload { - clientMutationId?: string | null; - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; -} -export interface UpdateTableModulePayload { - clientMutationId?: string | null; - tableModule?: TableModule | null; - tableModuleEdge?: TableModuleEdge | null; -} -export interface UpdateUsersModulePayload { - clientMutationId?: string | null; - usersModule?: UsersModule | null; - usersModuleEdge?: UsersModuleEdge | null; -} -export interface UpdateOrgAdminGrantPayload { - clientMutationId?: string | null; - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export interface UpdateOrgOwnerGrantPayload { - clientMutationId?: string | null; - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export interface UpdateCryptoAddressPayload { - clientMutationId?: string | null; - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export interface UpdateMembershipTypePayload { - clientMutationId?: string | null; - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export interface UpdateDatabasePayload { - clientMutationId?: string | null; - database?: Database | null; - databaseEdge?: DatabaseEdge | null; -} -export interface UpdateLimitFunctionPayload { - clientMutationId?: string | null; - limitFunction?: LimitFunction | null; - limitFunctionEdge?: LimitFunctionEdge | null; -} -export interface UpdateTableGrantPayload { - clientMutationId?: string | null; - tableGrant?: TableGrant | null; - tableGrantEdge?: TableGrantEdge | null; -} -export interface UpdateCryptoAddressesModulePayload { - clientMutationId?: string | null; - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; -} -export interface UpdateConnectedAccountPayload { - clientMutationId?: string | null; - connectedAccount?: ConnectedAccount | null; - connectedAccountEdge?: ConnectedAccountEdge | null; -} -export interface UpdatePhoneNumberPayload { - clientMutationId?: string | null; - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; -} -export interface UpdateAppPermissionPayload { - clientMutationId?: string | null; - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export interface UpdateOrgPermissionPayload { - clientMutationId?: string | null; - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export interface UpdateAppLimitPayload { - clientMutationId?: string | null; - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export interface UpdateAppAchievementPayload { - clientMutationId?: string | null; - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; -} -export interface UpdateAppStepPayload { - clientMutationId?: string | null; - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; -} -export interface UpdateClaimedInvitePayload { - clientMutationId?: string | null; - claimedInvite?: ClaimedInvite | null; - claimedInviteEdge?: ClaimedInviteEdge | null; -} -export interface UpdateAppMembershipDefaultPayload { - clientMutationId?: string | null; - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export interface UpdateSiteMetadatumPayload { - clientMutationId?: string | null; - siteMetadatum?: SiteMetadatum | null; - siteMetadatumEdge?: SiteMetadatumEdge | null; -} -export interface UpdateFieldModulePayload { - clientMutationId?: string | null; - fieldModule?: FieldModule | null; - fieldModuleEdge?: FieldModuleEdge | null; -} -export interface UpdateTableTemplateModulePayload { - clientMutationId?: string | null; - tableTemplateModule?: TableTemplateModule | null; - tableTemplateModuleEdge?: TableTemplateModuleEdge | null; -} -export interface UpdateNodeTypeRegistryPayload { - clientMutationId?: string | null; - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} -export interface UpdateObjectPayload { - clientMutationId?: string | null; - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export interface UpdateFullTextSearchPayload { - clientMutationId?: string | null; - fullTextSearch?: FullTextSearch | null; - fullTextSearchEdge?: FullTextSearchEdge | null; -} -export interface UpdateCommitPayload { - clientMutationId?: string | null; - commit?: Commit | null; - commitEdge?: CommitEdge | null; -} -export interface UpdateOrgLimitPayload { - clientMutationId?: string | null; - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export interface UpdateAppGrantPayload { - clientMutationId?: string | null; - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; -} -export interface UpdateOrgClaimedInvitePayload { - clientMutationId?: string | null; - orgClaimedInvite?: OrgClaimedInvite | null; - orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; -} -export interface UpdateDomainPayload { - clientMutationId?: string | null; - domain?: Domain | null; - domainEdge?: DomainEdge | null; -} -export interface UpdateOrgGrantPayload { - clientMutationId?: string | null; - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; -} -export interface UpdateOrgMembershipDefaultPayload { - clientMutationId?: string | null; - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} -export interface UpdateSessionsModulePayload { - clientMutationId?: string | null; - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; -} -export interface UpdateEmailPayload { - clientMutationId?: string | null; - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export interface UpdateAppLevelRequirementPayload { - clientMutationId?: string | null; - appLevelRequirement?: AppLevelRequirement | null; - appLevelRequirementEdge?: AppLevelRequirementEdge | null; -} -export interface UpdateAuditLogPayload { - clientMutationId?: string | null; - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; -} -export interface UpdateAppLevelPayload { - clientMutationId?: string | null; - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export interface UpdateRlsModulePayload { - clientMutationId?: string | null; - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; -} -export interface UpdateDenormalizedTableFieldPayload { - clientMutationId?: string | null; - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; -} -export interface UpdateCryptoAuthModulePayload { - clientMutationId?: string | null; - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; -} -export interface UpdateDatabaseProvisionModulePayload { - clientMutationId?: string | null; - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; -} -export interface UpdateInvitesModulePayload { - clientMutationId?: string | null; - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export interface UpdateViewPayload { - clientMutationId?: string | null; - view?: View | null; - viewEdge?: ViewEdge | null; -} -export interface UpdateAppMembershipPayload { - clientMutationId?: string | null; - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export interface UpdateOrgMembershipPayload { - clientMutationId?: string | null; - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export interface UpdateAppPayload { - clientMutationId?: string | null; - app?: App | null; - appEdge?: AppEdge | null; -} -export interface UpdateSitePayload { - clientMutationId?: string | null; - site?: Site | null; - siteEdge?: SiteEdge | null; -} -export interface UpdateUserPayload { - clientMutationId?: string | null; - user?: User | null; - userEdge?: UserEdge | null; -} -export interface UpdatePermissionsModulePayload { - clientMutationId?: string | null; - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export interface UpdatePrimaryKeyConstraintPayload { - clientMutationId?: string | null; - primaryKeyConstraint?: PrimaryKeyConstraint | null; - primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; -} -export interface UpdateTriggerPayload { - clientMutationId?: string | null; - trigger?: Trigger | null; - triggerEdge?: TriggerEdge | null; -} -export interface UpdateCheckConstraintPayload { - clientMutationId?: string | null; - checkConstraint?: CheckConstraint | null; - checkConstraintEdge?: CheckConstraintEdge | null; -} -export interface UpdateUniqueConstraintPayload { - clientMutationId?: string | null; - uniqueConstraint?: UniqueConstraint | null; - uniqueConstraintEdge?: UniqueConstraintEdge | null; -} -export interface UpdateProcedurePayload { - clientMutationId?: string | null; - procedure?: Procedure | null; - procedureEdge?: ProcedureEdge | null; -} -export interface UpdatePolicyPayload { - clientMutationId?: string | null; - policy?: Policy | null; - policyEdge?: PolicyEdge | null; -} -export interface UpdateInvitePayload { - clientMutationId?: string | null; - invite?: Invite | null; - inviteEdge?: InviteEdge | null; -} -export interface UpdateIndexPayload { - clientMutationId?: string | null; - index?: Index | null; - indexEdge?: IndexEdge | null; -} -export interface UpdateLimitsModulePayload { - clientMutationId?: string | null; - limitsModule?: LimitsModule | null; - limitsModuleEdge?: LimitsModuleEdge | null; -} -export interface UpdateSchemaPayload { - clientMutationId?: string | null; - schema?: Schema | null; - schemaEdge?: SchemaEdge | null; -} -export interface UpdateProfilesModulePayload { - clientMutationId?: string | null; - profilesModule?: ProfilesModule | null; - profilesModuleEdge?: ProfilesModuleEdge | null; -} -export interface UpdateOrgInvitePayload { - clientMutationId?: string | null; - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; -} -export interface UpdateHierarchyModulePayload { - clientMutationId?: string | null; - hierarchyModule?: HierarchyModule | null; - hierarchyModuleEdge?: HierarchyModuleEdge | null; -} -export interface UpdateForeignKeyConstraintPayload { - clientMutationId?: string | null; - foreignKeyConstraint?: ForeignKeyConstraint | null; - foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; -} -export interface UpdateTablePayload { - clientMutationId?: string | null; - table?: Table | null; - tableEdge?: TableEdge | null; -} -export interface UpdateLevelsModulePayload { - clientMutationId?: string | null; - levelsModule?: LevelsModule | null; - levelsModuleEdge?: LevelsModuleEdge | null; -} -export interface UpdateUserAuthModulePayload { - clientMutationId?: string | null; - userAuthModule?: UserAuthModule | null; - userAuthModuleEdge?: UserAuthModuleEdge | null; -} -export interface UpdateFieldPayload { - clientMutationId?: string | null; - field?: Field | null; - fieldEdge?: FieldEdge | null; -} -export interface UpdateMembershipsModulePayload { - clientMutationId?: string | null; - membershipsModule?: MembershipsModule | null; - membershipsModuleEdge?: MembershipsModuleEdge | null; -} -export interface DeleteDefaultIdsModulePayload { - clientMutationId?: string | null; - defaultIdsModule?: DefaultIdsModule | null; - defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; -} -export interface DeleteViewTablePayload { - clientMutationId?: string | null; - viewTable?: ViewTable | null; - viewTableEdge?: ViewTableEdge | null; -} -export interface DeleteApiSchemaPayload { - clientMutationId?: string | null; - apiSchema?: ApiSchema | null; - apiSchemaEdge?: ApiSchemaEdge | null; -} -export interface DeleteSiteThemePayload { - clientMutationId?: string | null; - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} -export interface DeleteOrgMemberPayload { - clientMutationId?: string | null; - orgMember?: OrgMember | null; - orgMemberEdge?: OrgMemberEdge | null; -} -export interface DeleteAppPermissionDefaultPayload { - clientMutationId?: string | null; - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export interface DeleteRefPayload { - clientMutationId?: string | null; - ref?: Ref | null; - refEdge?: RefEdge | null; -} -export interface DeleteStorePayload { - clientMutationId?: string | null; - store?: Store | null; - storeEdge?: StoreEdge | null; -} -export interface DeleteApiModulePayload { - clientMutationId?: string | null; - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export interface DeleteSiteModulePayload { - clientMutationId?: string | null; - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} -export interface DeleteEncryptedSecretsModulePayload { - clientMutationId?: string | null; - encryptedSecretsModule?: EncryptedSecretsModule | null; - encryptedSecretsModuleEdge?: EncryptedSecretsModuleEdge | null; -} -export interface DeleteMembershipTypesModulePayload { - clientMutationId?: string | null; - membershipTypesModule?: MembershipTypesModule | null; - membershipTypesModuleEdge?: MembershipTypesModuleEdge | null; -} -export interface DeleteSecretsModulePayload { - clientMutationId?: string | null; - secretsModule?: SecretsModule | null; - secretsModuleEdge?: SecretsModuleEdge | null; -} -export interface DeleteUuidModulePayload { - clientMutationId?: string | null; - uuidModule?: UuidModule | null; - uuidModuleEdge?: UuidModuleEdge | null; -} -export interface DeleteRoleTypePayload { - clientMutationId?: string | null; - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export interface DeleteOrgPermissionDefaultPayload { - clientMutationId?: string | null; - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export interface DeleteSchemaGrantPayload { - clientMutationId?: string | null; - schemaGrant?: SchemaGrant | null; - schemaGrantEdge?: SchemaGrantEdge | null; -} -export interface DeleteTriggerFunctionPayload { - clientMutationId?: string | null; - triggerFunction?: TriggerFunction | null; - triggerFunctionEdge?: TriggerFunctionEdge | null; -} -export interface DeleteViewGrantPayload { - clientMutationId?: string | null; - viewGrant?: ViewGrant | null; - viewGrantEdge?: ViewGrantEdge | null; -} -export interface DeleteViewRulePayload { - clientMutationId?: string | null; - viewRule?: ViewRule | null; - viewRuleEdge?: ViewRuleEdge | null; -} -export interface DeleteAppAdminGrantPayload { - clientMutationId?: string | null; - appAdminGrant?: AppAdminGrant | null; - appAdminGrantEdge?: AppAdminGrantEdge | null; -} -export interface DeleteAppOwnerGrantPayload { - clientMutationId?: string | null; - appOwnerGrant?: AppOwnerGrant | null; - appOwnerGrantEdge?: AppOwnerGrantEdge | null; -} -export interface DeleteAppLimitDefaultPayload { - clientMutationId?: string | null; - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; -} -export interface DeleteOrgLimitDefaultPayload { - clientMutationId?: string | null; - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; -} -export interface DeleteApiPayload { - clientMutationId?: string | null; - api?: Api | null; - apiEdge?: ApiEdge | null; -} -export interface DeleteConnectedAccountsModulePayload { - clientMutationId?: string | null; - connectedAccountsModule?: ConnectedAccountsModule | null; - connectedAccountsModuleEdge?: ConnectedAccountsModuleEdge | null; -} -export interface DeleteEmailsModulePayload { - clientMutationId?: string | null; - emailsModule?: EmailsModule | null; - emailsModuleEdge?: EmailsModuleEdge | null; -} -export interface DeletePhoneNumbersModulePayload { - clientMutationId?: string | null; - phoneNumbersModule?: PhoneNumbersModule | null; - phoneNumbersModuleEdge?: PhoneNumbersModuleEdge | null; -} -export interface DeleteTableModulePayload { - clientMutationId?: string | null; - tableModule?: TableModule | null; - tableModuleEdge?: TableModuleEdge | null; -} -export interface DeleteUsersModulePayload { - clientMutationId?: string | null; - usersModule?: UsersModule | null; - usersModuleEdge?: UsersModuleEdge | null; -} -export interface DeleteOrgAdminGrantPayload { - clientMutationId?: string | null; - orgAdminGrant?: OrgAdminGrant | null; - orgAdminGrantEdge?: OrgAdminGrantEdge | null; -} -export interface DeleteOrgOwnerGrantPayload { - clientMutationId?: string | null; - orgOwnerGrant?: OrgOwnerGrant | null; - orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; -} -export interface DeleteCryptoAddressPayload { - clientMutationId?: string | null; - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export interface DeleteMembershipTypePayload { - clientMutationId?: string | null; - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export interface DeleteDatabasePayload { - clientMutationId?: string | null; - database?: Database | null; - databaseEdge?: DatabaseEdge | null; -} -export interface DeleteLimitFunctionPayload { - clientMutationId?: string | null; - limitFunction?: LimitFunction | null; - limitFunctionEdge?: LimitFunctionEdge | null; -} -export interface DeleteTableGrantPayload { - clientMutationId?: string | null; - tableGrant?: TableGrant | null; - tableGrantEdge?: TableGrantEdge | null; -} -export interface DeleteCryptoAddressesModulePayload { - clientMutationId?: string | null; - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; -} -export interface DeleteConnectedAccountPayload { - clientMutationId?: string | null; - connectedAccount?: ConnectedAccount | null; - connectedAccountEdge?: ConnectedAccountEdge | null; -} -export interface DeletePhoneNumberPayload { - clientMutationId?: string | null; - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; -} -export interface DeleteAppPermissionPayload { - clientMutationId?: string | null; - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export interface DeleteOrgPermissionPayload { - clientMutationId?: string | null; - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export interface DeleteAppLimitPayload { - clientMutationId?: string | null; - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export interface DeleteAppAchievementPayload { - clientMutationId?: string | null; - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; -} -export interface DeleteAppStepPayload { - clientMutationId?: string | null; - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; -} -export interface DeleteClaimedInvitePayload { - clientMutationId?: string | null; - claimedInvite?: ClaimedInvite | null; - claimedInviteEdge?: ClaimedInviteEdge | null; -} -export interface DeleteAppMembershipDefaultPayload { - clientMutationId?: string | null; - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export interface DeleteSiteMetadatumPayload { - clientMutationId?: string | null; - siteMetadatum?: SiteMetadatum | null; - siteMetadatumEdge?: SiteMetadatumEdge | null; -} -export interface DeleteFieldModulePayload { - clientMutationId?: string | null; - fieldModule?: FieldModule | null; - fieldModuleEdge?: FieldModuleEdge | null; -} -export interface DeleteTableTemplateModulePayload { - clientMutationId?: string | null; - tableTemplateModule?: TableTemplateModule | null; - tableTemplateModuleEdge?: TableTemplateModuleEdge | null; -} -export interface DeleteNodeTypeRegistryPayload { - clientMutationId?: string | null; - nodeTypeRegistry?: NodeTypeRegistry | null; - nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; -} -export interface DeleteObjectPayload { - clientMutationId?: string | null; - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export interface DeleteFullTextSearchPayload { - clientMutationId?: string | null; - fullTextSearch?: FullTextSearch | null; - fullTextSearchEdge?: FullTextSearchEdge | null; -} -export interface DeleteCommitPayload { - clientMutationId?: string | null; - commit?: Commit | null; - commitEdge?: CommitEdge | null; -} -export interface DeleteOrgLimitPayload { - clientMutationId?: string | null; - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export interface DeleteAppGrantPayload { - clientMutationId?: string | null; - appGrant?: AppGrant | null; - appGrantEdge?: AppGrantEdge | null; -} -export interface DeleteOrgClaimedInvitePayload { - clientMutationId?: string | null; - orgClaimedInvite?: OrgClaimedInvite | null; - orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; -} -export interface DeleteDomainPayload { - clientMutationId?: string | null; - domain?: Domain | null; - domainEdge?: DomainEdge | null; -} -export interface DeleteOrgGrantPayload { - clientMutationId?: string | null; - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; -} -export interface DeleteOrgMembershipDefaultPayload { - clientMutationId?: string | null; - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} -export interface DeleteSessionsModulePayload { - clientMutationId?: string | null; - sessionsModule?: SessionsModule | null; - sessionsModuleEdge?: SessionsModuleEdge | null; -} -export interface DeleteEmailPayload { - clientMutationId?: string | null; - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export interface DeleteAppLevelRequirementPayload { - clientMutationId?: string | null; - appLevelRequirement?: AppLevelRequirement | null; - appLevelRequirementEdge?: AppLevelRequirementEdge | null; -} -export interface DeleteAuditLogPayload { - clientMutationId?: string | null; - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; -} -export interface DeleteAppLevelPayload { - clientMutationId?: string | null; - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export interface DeleteRlsModulePayload { - clientMutationId?: string | null; - rlsModule?: RlsModule | null; - rlsModuleEdge?: RlsModuleEdge | null; -} -export interface DeleteDenormalizedTableFieldPayload { - clientMutationId?: string | null; - denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; -} -export interface DeleteCryptoAuthModulePayload { - clientMutationId?: string | null; - cryptoAuthModule?: CryptoAuthModule | null; - cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; -} -export interface DeleteDatabaseProvisionModulePayload { - clientMutationId?: string | null; - databaseProvisionModule?: DatabaseProvisionModule | null; - databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; -} -export interface DeleteInvitesModulePayload { - clientMutationId?: string | null; - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export interface DeleteViewPayload { - clientMutationId?: string | null; - view?: View | null; - viewEdge?: ViewEdge | null; -} -export interface DeleteAppMembershipPayload { - clientMutationId?: string | null; - appMembership?: AppMembership | null; - appMembershipEdge?: AppMembershipEdge | null; -} -export interface DeleteOrgMembershipPayload { - clientMutationId?: string | null; - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; -} -export interface DeleteAppPayload { - clientMutationId?: string | null; - app?: App | null; - appEdge?: AppEdge | null; -} -export interface DeleteSitePayload { - clientMutationId?: string | null; - site?: Site | null; - siteEdge?: SiteEdge | null; -} -export interface DeleteUserPayload { - clientMutationId?: string | null; - user?: User | null; - userEdge?: UserEdge | null; -} -export interface DeletePermissionsModulePayload { - clientMutationId?: string | null; - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export interface DeletePrimaryKeyConstraintPayload { - clientMutationId?: string | null; - primaryKeyConstraint?: PrimaryKeyConstraint | null; - primaryKeyConstraintEdge?: PrimaryKeyConstraintEdge | null; -} -export interface DeleteTriggerPayload { - clientMutationId?: string | null; - trigger?: Trigger | null; - triggerEdge?: TriggerEdge | null; -} -export interface DeleteCheckConstraintPayload { - clientMutationId?: string | null; - checkConstraint?: CheckConstraint | null; - checkConstraintEdge?: CheckConstraintEdge | null; -} -export interface DeleteUniqueConstraintPayload { - clientMutationId?: string | null; - uniqueConstraint?: UniqueConstraint | null; - uniqueConstraintEdge?: UniqueConstraintEdge | null; -} -export interface DeleteProcedurePayload { - clientMutationId?: string | null; - procedure?: Procedure | null; - procedureEdge?: ProcedureEdge | null; -} -export interface DeletePolicyPayload { - clientMutationId?: string | null; - policy?: Policy | null; - policyEdge?: PolicyEdge | null; -} -export interface DeleteInvitePayload { - clientMutationId?: string | null; - invite?: Invite | null; - inviteEdge?: InviteEdge | null; -} -export interface DeleteIndexPayload { - clientMutationId?: string | null; - index?: Index | null; - indexEdge?: IndexEdge | null; -} -export interface DeleteLimitsModulePayload { - clientMutationId?: string | null; - limitsModule?: LimitsModule | null; - limitsModuleEdge?: LimitsModuleEdge | null; -} -export interface DeleteSchemaPayload { - clientMutationId?: string | null; - schema?: Schema | null; - schemaEdge?: SchemaEdge | null; -} -export interface DeleteProfilesModulePayload { - clientMutationId?: string | null; - profilesModule?: ProfilesModule | null; - profilesModuleEdge?: ProfilesModuleEdge | null; -} -export interface DeleteOrgInvitePayload { - clientMutationId?: string | null; - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; -} -export interface DeleteHierarchyModulePayload { - clientMutationId?: string | null; - hierarchyModule?: HierarchyModule | null; - hierarchyModuleEdge?: HierarchyModuleEdge | null; -} -export interface DeleteForeignKeyConstraintPayload { - clientMutationId?: string | null; - foreignKeyConstraint?: ForeignKeyConstraint | null; - foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; -} -export interface DeleteTablePayload { - clientMutationId?: string | null; - table?: Table | null; - tableEdge?: TableEdge | null; -} -export interface DeleteLevelsModulePayload { - clientMutationId?: string | null; - levelsModule?: LevelsModule | null; - levelsModuleEdge?: LevelsModuleEdge | null; -} -export interface DeleteUserAuthModulePayload { - clientMutationId?: string | null; - userAuthModule?: UserAuthModule | null; - userAuthModuleEdge?: UserAuthModuleEdge | null; -} -export interface DeleteFieldPayload { - clientMutationId?: string | null; - field?: Field | null; - fieldEdge?: FieldEdge | null; -} -export interface DeleteMembershipsModulePayload { - clientMutationId?: string | null; - membershipsModule?: MembershipsModule | null; - membershipsModuleEdge?: MembershipsModuleEdge | null; -} -export interface GetAllEdge { - cursor?: string | null; - node?: GetAllRecord | null; -} -export interface PageInfo { - hasNextPage: boolean; - hasPreviousPage: boolean; - startCursor?: string | null; - endCursor?: string | null; -} -export interface AppPermissionEdge { - cursor?: string | null; - node?: AppPermission | null; -} -export interface OrgPermissionEdge { - cursor?: string | null; - node?: OrgPermission | null; -} -export interface ObjectEdge { - cursor?: string | null; - node?: Object | null; -} -export interface AppLevelRequirementEdge { - cursor?: string | null; - node?: AppLevelRequirement | null; -} -export interface DefaultIdsModuleEdge { - cursor?: string | null; - node?: DefaultIdsModule | null; -} -export interface ViewTableEdge { - cursor?: string | null; - node?: ViewTable | null; -} -export interface ApiSchemaEdge { - cursor?: string | null; - node?: ApiSchema | null; -} -export interface SiteThemeEdge { - cursor?: string | null; - node?: SiteTheme | null; -} -export interface OrgMemberEdge { - cursor?: string | null; - node?: OrgMember | null; -} -export interface AppPermissionDefaultEdge { - cursor?: string | null; - node?: AppPermissionDefault | null; -} -export interface RefEdge { - cursor?: string | null; - node?: Ref | null; -} -export interface StoreEdge { - cursor?: string | null; - node?: Store | null; -} -export interface ApiModuleEdge { - cursor?: string | null; - node?: ApiModule | null; -} -export interface SiteModuleEdge { - cursor?: string | null; - node?: SiteModule | null; -} -export interface EncryptedSecretsModuleEdge { - cursor?: string | null; - node?: EncryptedSecretsModule | null; -} -export interface MembershipTypesModuleEdge { - cursor?: string | null; - node?: MembershipTypesModule | null; -} -export interface SecretsModuleEdge { - cursor?: string | null; - node?: SecretsModule | null; -} -export interface UuidModuleEdge { - cursor?: string | null; - node?: UuidModule | null; -} -export interface RoleTypeEdge { - cursor?: string | null; - node?: RoleType | null; -} -export interface OrgPermissionDefaultEdge { - cursor?: string | null; - node?: OrgPermissionDefault | null; -} -export interface SchemaGrantEdge { - cursor?: string | null; - node?: SchemaGrant | null; -} -export interface TriggerFunctionEdge { - cursor?: string | null; - node?: TriggerFunction | null; -} -export interface ViewGrantEdge { - cursor?: string | null; - node?: ViewGrant | null; -} -export interface ViewRuleEdge { - cursor?: string | null; - node?: ViewRule | null; -} -export interface AppAdminGrantEdge { - cursor?: string | null; - node?: AppAdminGrant | null; -} -export interface AppOwnerGrantEdge { - cursor?: string | null; - node?: AppOwnerGrant | null; -} -export interface AppLimitDefaultEdge { - cursor?: string | null; - node?: AppLimitDefault | null; -} -export interface OrgLimitDefaultEdge { - cursor?: string | null; - node?: OrgLimitDefault | null; -} -export interface ApiEdge { - cursor?: string | null; - node?: Api | null; -} -export interface ConnectedAccountsModuleEdge { - cursor?: string | null; - node?: ConnectedAccountsModule | null; -} -export interface EmailsModuleEdge { - cursor?: string | null; - node?: EmailsModule | null; -} -export interface PhoneNumbersModuleEdge { - cursor?: string | null; - node?: PhoneNumbersModule | null; -} -export interface TableModuleEdge { - cursor?: string | null; - node?: TableModule | null; -} -export interface UsersModuleEdge { - cursor?: string | null; - node?: UsersModule | null; -} -export interface OrgAdminGrantEdge { - cursor?: string | null; - node?: OrgAdminGrant | null; -} -export interface OrgOwnerGrantEdge { - cursor?: string | null; - node?: OrgOwnerGrant | null; -} -export interface CryptoAddressEdge { - cursor?: string | null; - node?: CryptoAddress | null; -} -export interface MembershipTypeEdge { - cursor?: string | null; - node?: MembershipType | null; -} -export interface DatabaseEdge { - cursor?: string | null; - node?: Database | null; -} -export interface LimitFunctionEdge { - cursor?: string | null; - node?: LimitFunction | null; -} -export interface TableGrantEdge { - cursor?: string | null; - node?: TableGrant | null; -} -export interface CryptoAddressesModuleEdge { - cursor?: string | null; - node?: CryptoAddressesModule | null; -} -export interface ConnectedAccountEdge { - cursor?: string | null; - node?: ConnectedAccount | null; -} -export interface PhoneNumberEdge { - cursor?: string | null; - node?: PhoneNumber | null; -} -export interface AppLimitEdge { - cursor?: string | null; - node?: AppLimit | null; -} -export interface AppAchievementEdge { - cursor?: string | null; - node?: AppAchievement | null; -} -export interface AppStepEdge { - cursor?: string | null; - node?: AppStep | null; -} -export interface ClaimedInviteEdge { - cursor?: string | null; - node?: ClaimedInvite | null; -} -export interface AppMembershipDefaultEdge { - cursor?: string | null; - node?: AppMembershipDefault | null; -} -export interface SiteMetadatumEdge { - cursor?: string | null; - node?: SiteMetadatum | null; -} -export interface FieldModuleEdge { - cursor?: string | null; - node?: FieldModule | null; -} -export interface TableTemplateModuleEdge { - cursor?: string | null; - node?: TableTemplateModule | null; -} -export interface NodeTypeRegistryEdge { - cursor?: string | null; - node?: NodeTypeRegistry | null; -} -export interface FullTextSearchEdge { - cursor?: string | null; - node?: FullTextSearch | null; -} -export interface CommitEdge { - cursor?: string | null; - node?: Commit | null; -} -export interface OrgLimitEdge { - cursor?: string | null; - node?: OrgLimit | null; -} -export interface AppGrantEdge { - cursor?: string | null; - node?: AppGrant | null; -} -export interface OrgClaimedInviteEdge { - cursor?: string | null; - node?: OrgClaimedInvite | null; -} -export interface DomainEdge { - cursor?: string | null; - node?: Domain | null; -} -export interface OrgGrantEdge { - cursor?: string | null; - node?: OrgGrant | null; -} -export interface OrgMembershipDefaultEdge { - cursor?: string | null; - node?: OrgMembershipDefault | null; -} -export interface SessionsModuleEdge { - cursor?: string | null; - node?: SessionsModule | null; -} -export interface EmailEdge { - cursor?: string | null; - node?: Email | null; -} -export interface AuditLogEdge { - cursor?: string | null; - node?: AuditLog | null; -} -export interface AppLevelEdge { - cursor?: string | null; - node?: AppLevel | null; -} -export interface RlsModuleEdge { - cursor?: string | null; - node?: RlsModule | null; -} -export interface DenormalizedTableFieldEdge { - cursor?: string | null; - node?: DenormalizedTableField | null; -} -export interface SqlMigrationEdge { - cursor?: string | null; - node?: SqlMigration | null; -} -export interface CryptoAuthModuleEdge { - cursor?: string | null; - node?: CryptoAuthModule | null; -} -export interface DatabaseProvisionModuleEdge { - cursor?: string | null; - node?: DatabaseProvisionModule | null; -} -export interface InvitesModuleEdge { - cursor?: string | null; - node?: InvitesModule | null; -} -export interface ViewEdge { - cursor?: string | null; - node?: View | null; -} -export interface AstMigrationEdge { - cursor?: string | null; - node?: AstMigration | null; -} -export interface AppMembershipEdge { - cursor?: string | null; - node?: AppMembership | null; -} -export interface OrgMembershipEdge { - cursor?: string | null; - node?: OrgMembership | null; -} -export interface AppEdge { - cursor?: string | null; - node?: App | null; -} -export interface SiteEdge { - cursor?: string | null; - node?: Site | null; -} -export interface UserEdge { - cursor?: string | null; - node?: User | null; -} -export interface PermissionsModuleEdge { - cursor?: string | null; - node?: PermissionsModule | null; -} -export interface PrimaryKeyConstraintEdge { - cursor?: string | null; - node?: PrimaryKeyConstraint | null; -} -export interface TriggerEdge { - cursor?: string | null; - node?: Trigger | null; -} -export interface CheckConstraintEdge { - cursor?: string | null; - node?: CheckConstraint | null; -} -export interface UniqueConstraintEdge { - cursor?: string | null; - node?: UniqueConstraint | null; -} -export interface ProcedureEdge { - cursor?: string | null; - node?: Procedure | null; -} -export interface PolicyEdge { - cursor?: string | null; - node?: Policy | null; -} -export interface InviteEdge { - cursor?: string | null; - node?: Invite | null; -} -export interface IndexEdge { - cursor?: string | null; - node?: Index | null; -} -export interface LimitsModuleEdge { - cursor?: string | null; - node?: LimitsModule | null; -} -export interface SchemaEdge { - cursor?: string | null; - node?: Schema | null; -} -export interface ProfilesModuleEdge { - cursor?: string | null; - node?: ProfilesModule | null; -} -export interface OrgInviteEdge { - cursor?: string | null; - node?: OrgInvite | null; -} -export interface HierarchyModuleEdge { - cursor?: string | null; - node?: HierarchyModule | null; -} -export interface ForeignKeyConstraintEdge { - cursor?: string | null; - node?: ForeignKeyConstraint | null; -} -export interface TableEdge { - cursor?: string | null; - node?: Table | null; -} -export interface LevelsModuleEdge { - cursor?: string | null; - node?: LevelsModule | null; -} -export interface UserAuthModuleEdge { - cursor?: string | null; - node?: UserAuthModule | null; -} -export interface FieldEdge { - cursor?: string | null; - node?: Field | null; -} -export interface MembershipsModuleEdge { - cursor?: string | null; - node?: MembershipsModule | null; -} -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; -} -export interface MetaField { - name: string; - type: MetaType; - isNotNull: boolean; - hasDefault: boolean; -} -export interface MetaIndex { - name: string; - isUnique: boolean; - isPrimary: boolean; - columns: string[]; - fields?: MetaField[] | null; -} -export interface MetaConstraints { - primaryKey?: MetaPrimaryKeyConstraint | null; - unique: MetaUniqueConstraint[]; - foreignKey: MetaForeignKeyConstraint[]; -} -export interface MetaForeignKeyConstraint { - name: string; - fields: MetaField[]; - referencedTable: string; - referencedFields: string[]; - refFields?: MetaField[] | null; - refTable?: MetaRefTable | null; -} -export interface MetaPrimaryKeyConstraint { - name: string; - fields: MetaField[]; -} -export interface MetaUniqueConstraint { - name: string; - fields: MetaField[]; -} -export interface MetaRelations { - belongsTo: MetaBelongsToRelation[]; - has: MetaHasRelation[]; - hasOne: MetaHasRelation[]; - hasMany: MetaHasRelation[]; - manyToMany: MetaManyToManyRelation[]; -} -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; -} -export interface MetaQuery { - all: string; - one?: string | null; - create?: string | null; - update?: string | null; - delete?: string | null; -} -export interface MetaType { - pgType: string; - gqlType: string; - isArray: boolean; - isNotNull?: boolean | null; - hasDefault?: boolean | null; -} -export interface MetaRefTable { - name: string; -} -export interface MetaBelongsToRelation { - fieldName?: string | null; - isUnique: boolean; - type?: string | null; - keys: MetaField[]; - references: MetaRefTable; -} -export interface MetaHasRelation { - fieldName?: string | null; - isUnique: boolean; - type?: string | null; - keys: MetaField[]; - referencedBy: MetaRefTable; -} -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-sdk/src/public/types.ts b/sdk/constructive-sdk/src/public/types.ts deleted file mode 100644 index ef7ecf2ed..000000000 --- a/sdk/constructive-sdk/src/public/types.ts +++ /dev/null @@ -1,1360 +0,0 @@ -/** - * 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; -}