@constructive-io/react 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/hooks/index.d.ts +1 -1
- package/admin/hooks/index.js +1 -1
- package/admin/hooks/invalidation.d.ts +18 -12
- package/admin/hooks/invalidation.js +48 -32
- package/admin/hooks/mutation-keys.d.ts +36 -24
- package/admin/hooks/mutation-keys.js +22 -15
- package/admin/hooks/mutations/index.d.ts +9 -6
- package/admin/hooks/mutations/index.js +9 -6
- package/admin/hooks/mutations/useCreateOrgMemberProfileMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateOrgMemberProfileMutation.js +34 -0
- package/admin/hooks/mutations/useDeleteOrgMemberProfileMutation.d.ts +38 -0
- package/{public/hooks/mutations/useDeleteConnectedAccountMutation.js → admin/hooks/mutations/useDeleteOrgMemberProfileMutation.js} +7 -7
- package/admin/hooks/mutations/useUpdateOrgMemberProfileMutation.d.ts +40 -0
- package/{auth/hooks/mutations/useUpdateConnectedAccountMutation.js → admin/hooks/mutations/useUpdateOrgMemberProfileMutation.js} +9 -9
- package/admin/hooks/queries/index.d.ts +6 -4
- package/admin/hooks/queries/index.js +6 -4
- package/admin/hooks/queries/useOrgMemberProfileQuery.d.ts +65 -0
- package/{public/hooks/queries/useConnectedAccountQuery.js → admin/hooks/queries/useOrgMemberProfileQuery.js} +14 -14
- package/admin/hooks/queries/useOrgMemberProfilesQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgMemberProfilesQuery.js +38 -0
- package/admin/hooks/query-keys.d.ts +42 -28
- package/admin/hooks/query-keys.js +25 -17
- package/admin/orm/index.d.ts +6 -4
- package/admin/orm/index.js +6 -4
- package/admin/orm/input-types.d.ts +503 -295
- package/admin/orm/models/index.d.ts +3 -2
- package/admin/orm/models/index.js +7 -5
- package/admin/orm/models/orgMemberProfile.d.ts +56 -0
- package/{auth/orm/models/connectedAccount.js → admin/orm/models/orgMemberProfile.js} +26 -26
- package/admin/schema-types.d.ts +449 -288
- package/admin/types.d.ts +40 -22
- package/auth/hooks/index.d.ts +1 -1
- package/auth/hooks/index.js +1 -1
- package/auth/hooks/invalidation.d.ts +6 -6
- package/auth/hooks/invalidation.js +16 -16
- package/auth/hooks/mutation-keys.d.ts +28 -18
- package/auth/hooks/mutation-keys.js +30 -15
- package/auth/hooks/mutations/index.d.ts +9 -6
- package/auth/hooks/mutations/index.js +9 -6
- package/auth/hooks/mutations/useCreateApiKeyMutation.d.ts +20 -0
- package/auth/hooks/mutations/{useOneTimeTokenMutation.js → useCreateApiKeyMutation.js} +5 -5
- package/auth/hooks/mutations/useCreateUserConnectedAccountMutation.d.ts +34 -0
- package/auth/hooks/mutations/{useCreateConnectedAccountMutation.js → useCreateUserConnectedAccountMutation.js} +6 -6
- package/auth/hooks/mutations/useDisconnectAccountMutation.d.ts +20 -0
- package/auth/hooks/mutations/{useSignInOneTimeTokenMutation.js → useDisconnectAccountMutation.js} +5 -5
- package/auth/hooks/mutations/useProvisionNewUserMutation.d.ts +20 -0
- package/{public/hooks/mutations/useSignInOneTimeTokenMutation.js → auth/hooks/mutations/useProvisionNewUserMutation.js} +5 -5
- package/auth/hooks/mutations/useRequestCrossOriginTokenMutation.d.ts +20 -0
- package/auth/hooks/mutations/useRequestCrossOriginTokenMutation.js +26 -0
- package/auth/hooks/mutations/useRevokeApiKeyMutation.d.ts +20 -0
- package/{public/hooks/mutations/useOneTimeTokenMutation.js → auth/hooks/mutations/useRevokeApiKeyMutation.js} +5 -5
- package/auth/hooks/mutations/useRevokeSessionMutation.d.ts +20 -0
- package/auth/hooks/mutations/useRevokeSessionMutation.js +26 -0
- package/auth/hooks/mutations/useSignInCrossOriginMutation.d.ts +20 -0
- package/auth/hooks/mutations/useSignInCrossOriginMutation.js +26 -0
- package/auth/hooks/queries/index.d.ts +4 -3
- package/auth/hooks/queries/index.js +4 -3
- package/auth/hooks/queries/useRequireStepUpQuery.d.ts +53 -0
- package/auth/hooks/queries/useRequireStepUpQuery.js +53 -0
- package/auth/hooks/queries/useUserConnectedAccountQuery.d.ts +65 -0
- package/auth/hooks/queries/useUserConnectedAccountQuery.js +53 -0
- package/auth/hooks/queries/useUserConnectedAccountsQuery.d.ts +69 -0
- package/auth/hooks/queries/useUserConnectedAccountsQuery.js +38 -0
- package/auth/hooks/query-keys.d.ts +18 -16
- package/auth/hooks/query-keys.js +11 -10
- package/auth/orm/index.d.ts +45 -15
- package/auth/orm/index.js +2 -2
- package/auth/orm/input-types.d.ts +186 -251
- package/auth/orm/input-types.js +0 -1
- package/auth/orm/models/index.d.ts +1 -1
- package/auth/orm/models/index.js +3 -3
- package/auth/orm/models/userConnectedAccount.d.ts +38 -0
- package/auth/orm/models/userConnectedAccount.js +76 -0
- package/auth/orm/mutation/index.d.ts +56 -16
- package/auth/orm/mutation/index.js +78 -18
- package/auth/orm/query/index.d.ts +12 -4
- package/auth/orm/query/index.js +19 -7
- package/auth/schema-types.d.ts +112 -119
- package/auth/types.d.ts +10 -10
- package/esm/admin/hooks/index.d.ts +1 -1
- package/esm/admin/hooks/index.js +1 -1
- package/esm/admin/hooks/invalidation.d.ts +18 -12
- package/esm/admin/hooks/invalidation.js +49 -33
- package/esm/admin/hooks/mutation-keys.d.ts +36 -24
- package/esm/admin/hooks/mutation-keys.js +21 -14
- package/esm/admin/hooks/mutations/index.d.ts +9 -6
- package/esm/admin/hooks/mutations/index.js +9 -6
- package/esm/admin/hooks/mutations/useCreateOrgMemberProfileMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateOrgMemberProfileMutation.js +31 -0
- package/esm/admin/hooks/mutations/useDeleteOrgMemberProfileMutation.d.ts +38 -0
- package/esm/{public/hooks/mutations/useDeleteConnectedAccountMutation.js → admin/hooks/mutations/useDeleteOrgMemberProfileMutation.js} +8 -8
- package/esm/admin/hooks/mutations/useUpdateOrgMemberProfileMutation.d.ts +40 -0
- package/esm/{public/hooks/mutations/useUpdateConnectedAccountMutation.js → admin/hooks/mutations/useUpdateOrgMemberProfileMutation.js} +10 -10
- package/esm/admin/hooks/queries/index.d.ts +6 -4
- package/esm/admin/hooks/queries/index.js +6 -4
- package/esm/admin/hooks/queries/useOrgMemberProfileQuery.d.ts +65 -0
- package/esm/admin/hooks/queries/useOrgMemberProfileQuery.js +47 -0
- package/esm/admin/hooks/queries/useOrgMemberProfilesQuery.d.ts +69 -0
- package/esm/{public/hooks/queries/useConnectedAccountsQuery.js → admin/hooks/queries/useOrgMemberProfilesQuery.js} +11 -11
- package/esm/admin/hooks/query-keys.d.ts +42 -28
- package/esm/admin/hooks/query-keys.js +24 -16
- package/esm/admin/orm/index.d.ts +6 -4
- package/esm/admin/orm/index.js +6 -4
- package/esm/admin/orm/input-types.d.ts +503 -295
- package/esm/admin/orm/models/index.d.ts +3 -2
- package/esm/admin/orm/models/index.js +3 -2
- package/esm/admin/orm/models/orgMemberProfile.d.ts +56 -0
- package/esm/{auth/orm/models/connectedAccount.js → admin/orm/models/orgMemberProfile.js} +24 -24
- package/esm/admin/schema-types.d.ts +449 -288
- package/esm/admin/types.d.ts +40 -22
- package/esm/auth/hooks/index.d.ts +1 -1
- package/esm/auth/hooks/index.js +1 -1
- package/esm/auth/hooks/invalidation.d.ts +6 -6
- package/esm/auth/hooks/invalidation.js +17 -17
- package/esm/auth/hooks/mutation-keys.d.ts +28 -18
- package/esm/auth/hooks/mutation-keys.js +29 -14
- package/esm/auth/hooks/mutations/index.d.ts +9 -6
- package/esm/auth/hooks/mutations/index.js +9 -6
- package/esm/auth/hooks/mutations/useCreateApiKeyMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/{useOneTimeTokenMutation.js → useCreateApiKeyMutation.js} +4 -4
- package/esm/auth/hooks/mutations/useCreateUserConnectedAccountMutation.d.ts +34 -0
- package/esm/{public/hooks/mutations/useCreateConnectedAccountMutation.js → auth/hooks/mutations/useCreateUserConnectedAccountMutation.js} +7 -7
- package/esm/auth/hooks/mutations/useDisconnectAccountMutation.d.ts +20 -0
- package/esm/{public/hooks/mutations/useSignInOneTimeTokenMutation.js → auth/hooks/mutations/useDisconnectAccountMutation.js} +4 -4
- package/esm/auth/hooks/mutations/useProvisionNewUserMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/{useSignInOneTimeTokenMutation.js → useProvisionNewUserMutation.js} +4 -4
- package/esm/auth/hooks/mutations/useRequestCrossOriginTokenMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useRequestCrossOriginTokenMutation.js +23 -0
- package/esm/auth/hooks/mutations/useRevokeApiKeyMutation.d.ts +20 -0
- package/esm/{public/hooks/mutations/useOneTimeTokenMutation.js → auth/hooks/mutations/useRevokeApiKeyMutation.js} +4 -4
- package/esm/auth/hooks/mutations/useRevokeSessionMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useRevokeSessionMutation.js +23 -0
- package/esm/auth/hooks/mutations/useSignInCrossOriginMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useSignInCrossOriginMutation.js +23 -0
- package/esm/auth/hooks/queries/index.d.ts +4 -3
- package/esm/auth/hooks/queries/index.js +4 -3
- package/esm/auth/hooks/queries/useRequireStepUpQuery.d.ts +53 -0
- package/esm/auth/hooks/queries/useRequireStepUpQuery.js +47 -0
- package/esm/auth/hooks/queries/useUserConnectedAccountQuery.d.ts +65 -0
- package/esm/{public/hooks/queries/useTableTemplateModuleQuery.js → auth/hooks/queries/useUserConnectedAccountQuery.js} +11 -11
- package/esm/auth/hooks/queries/useUserConnectedAccountsQuery.d.ts +69 -0
- package/esm/auth/hooks/queries/useUserConnectedAccountsQuery.js +32 -0
- package/esm/auth/hooks/query-keys.d.ts +18 -16
- package/esm/auth/hooks/query-keys.js +10 -9
- package/esm/auth/orm/index.d.ts +45 -15
- package/esm/auth/orm/index.js +2 -2
- package/esm/auth/orm/input-types.d.ts +186 -251
- package/esm/auth/orm/input-types.js +0 -1
- package/esm/auth/orm/models/index.d.ts +1 -1
- package/esm/auth/orm/models/index.js +1 -1
- package/esm/auth/orm/models/userConnectedAccount.d.ts +38 -0
- package/esm/auth/orm/models/userConnectedAccount.js +72 -0
- package/esm/auth/orm/mutation/index.d.ts +56 -16
- package/esm/auth/orm/mutation/index.js +78 -18
- package/esm/auth/orm/query/index.d.ts +12 -4
- package/esm/auth/orm/query/index.js +19 -7
- package/esm/auth/schema-types.d.ts +112 -119
- package/esm/auth/types.d.ts +10 -10
- package/esm/public/hooks/index.d.ts +1 -1
- package/esm/public/hooks/index.js +1 -1
- package/esm/public/hooks/invalidation.d.ts +47 -17
- package/esm/public/hooks/invalidation.js +122 -42
- package/esm/public/hooks/mutation-keys.d.ts +112 -40
- package/esm/public/hooks/mutation-keys.js +83 -27
- package/esm/public/hooks/mutations/index.d.ts +31 -12
- package/esm/public/hooks/mutations/index.js +31 -12
- package/esm/public/hooks/mutations/useCreateApiKeyMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useCreateApiKeyMutation.js +23 -0
- package/esm/public/hooks/mutations/useCreateDevicesModuleMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/{useCreateTableTemplateModuleMutation.js → useCreateDevicesModuleMutation.js} +7 -7
- package/esm/public/hooks/mutations/useCreateEntityTypeProvisionMutation.d.ts +48 -0
- package/esm/public/hooks/mutations/useCreateEntityTypeProvisionMutation.js +38 -0
- package/esm/public/hooks/mutations/useCreateOrgMemberProfileMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateOrgMemberProfileMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateSessionSecretsModuleMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateSessionSecretsModuleMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateSpatialRelationMutation.d.ts +34 -0
- package/esm/{auth/hooks/mutations/useCreateConnectedAccountMutation.js → public/hooks/mutations/useCreateSpatialRelationMutation.js} +7 -7
- package/esm/public/hooks/mutations/useCreateUserConnectedAccountMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateUserConnectedAccountMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateWebauthnCredentialsModuleMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateWebauthnCredentialsModuleMutation.js +31 -0
- package/esm/public/hooks/mutations/useDeleteDevicesModuleMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/{useDeleteTableTemplateModuleMutation.js → useDeleteDevicesModuleMutation.js} +8 -8
- package/esm/public/hooks/mutations/useDeleteEntityTypeProvisionMutation.d.ts +52 -0
- package/esm/public/hooks/mutations/useDeleteEntityTypeProvisionMutation.js +43 -0
- package/esm/public/hooks/mutations/useDeleteOrgMemberProfileMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteOrgMemberProfileMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteSessionSecretsModuleMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteSessionSecretsModuleMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteSpatialRelationMutation.d.ts +38 -0
- package/esm/{auth/hooks/mutations/useDeleteConnectedAccountMutation.js → public/hooks/mutations/useDeleteSpatialRelationMutation.js} +8 -8
- package/esm/public/hooks/mutations/useDeleteWebauthnCredentialsModuleMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteWebauthnCredentialsModuleMutation.js +36 -0
- package/esm/public/hooks/mutations/useDisconnectAccountMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useDisconnectAccountMutation.js +23 -0
- package/esm/public/hooks/mutations/useProvisionNewUserMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useProvisionNewUserMutation.js +23 -0
- package/esm/public/hooks/mutations/useProvisionSpatialRelationMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useProvisionSpatialRelationMutation.js +23 -0
- package/esm/public/hooks/mutations/useRequestCrossOriginTokenMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useRequestCrossOriginTokenMutation.js +23 -0
- package/esm/public/hooks/mutations/useRevokeApiKeyMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useRevokeApiKeyMutation.js +23 -0
- package/esm/public/hooks/mutations/useRevokeSessionMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useRevokeSessionMutation.js +23 -0
- package/esm/public/hooks/mutations/useSignInCrossOriginMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useSignInCrossOriginMutation.js +23 -0
- package/esm/public/hooks/mutations/useUpdateDevicesModuleMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/{useUpdateTableTemplateModuleMutation.js → useUpdateDevicesModuleMutation.js} +10 -10
- package/esm/public/hooks/mutations/useUpdateEntityTypeProvisionMutation.d.ts +54 -0
- package/esm/public/hooks/mutations/useUpdateEntityTypeProvisionMutation.js +44 -0
- package/esm/public/hooks/mutations/useUpdateOrgMemberProfileMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateOrgMemberProfileMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateSessionSecretsModuleMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateSessionSecretsModuleMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateSpatialRelationMutation.d.ts +40 -0
- package/esm/{auth/hooks/mutations/useUpdateConnectedAccountMutation.js → public/hooks/mutations/useUpdateSpatialRelationMutation.js} +10 -10
- package/esm/public/hooks/mutations/useUpdateWebauthnCredentialsModuleMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateWebauthnCredentialsModuleMutation.js +37 -0
- package/esm/public/hooks/queries/index.d.ts +19 -7
- package/esm/public/hooks/queries/index.js +19 -7
- package/esm/public/hooks/queries/useDevicesModuleQuery.d.ts +65 -0
- package/esm/{auth/hooks/queries/useConnectedAccountQuery.js → public/hooks/queries/useDevicesModuleQuery.js} +11 -11
- package/esm/public/hooks/queries/useDevicesModulesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useDevicesModulesQuery.js +32 -0
- package/esm/public/hooks/queries/useEntityTypeProvisionQuery.d.ts +93 -0
- package/esm/public/hooks/queries/useEntityTypeProvisionQuery.js +54 -0
- package/esm/public/hooks/queries/useEntityTypeProvisionsQuery.d.ts +97 -0
- package/esm/public/hooks/queries/useEntityTypeProvisionsQuery.js +39 -0
- package/esm/public/hooks/queries/useOrgMemberProfileQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useOrgMemberProfileQuery.js +47 -0
- package/esm/public/hooks/queries/useOrgMemberProfilesQuery.d.ts +69 -0
- package/esm/{auth/hooks/queries/useConnectedAccountsQuery.js → public/hooks/queries/useOrgMemberProfilesQuery.js} +11 -11
- package/esm/public/hooks/queries/useRequireStepUpQuery.d.ts +53 -0
- package/esm/public/hooks/queries/useRequireStepUpQuery.js +47 -0
- package/esm/public/hooks/queries/useResolveBlueprintFieldQuery.d.ts +53 -0
- package/esm/public/hooks/queries/useResolveBlueprintFieldQuery.js +47 -0
- package/esm/public/hooks/queries/useSessionSecretsModuleQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useSessionSecretsModuleQuery.js +47 -0
- package/esm/public/hooks/queries/useSessionSecretsModulesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useSessionSecretsModulesQuery.js +32 -0
- package/esm/public/hooks/queries/useSpatialRelationQuery.d.ts +65 -0
- package/esm/public/hooks/queries/{useConnectedAccountQuery.js → useSpatialRelationQuery.js} +11 -11
- package/esm/public/hooks/queries/useSpatialRelationsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useSpatialRelationsQuery.js +32 -0
- package/esm/public/hooks/queries/useUserConnectedAccountQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useUserConnectedAccountQuery.js +47 -0
- package/esm/public/hooks/queries/useUserConnectedAccountsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useUserConnectedAccountsQuery.js +32 -0
- package/esm/public/hooks/queries/useWebauthnCredentialsModuleQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useWebauthnCredentialsModuleQuery.js +47 -0
- package/esm/public/hooks/queries/useWebauthnCredentialsModulesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useWebauthnCredentialsModulesQuery.js +32 -0
- package/esm/public/hooks/query-keys.d.ts +116 -42
- package/esm/public/hooks/query-keys.js +66 -24
- package/esm/public/orm/index.d.ts +69 -19
- package/esm/public/orm/index.js +16 -6
- package/esm/public/orm/input-types.d.ts +2047 -640
- package/esm/public/orm/input-types.js +15 -6
- package/esm/public/orm/models/devicesModule.d.ts +56 -0
- package/esm/public/orm/models/devicesModule.js +96 -0
- package/esm/public/orm/models/entityTypeProvision.d.ts +56 -0
- package/esm/public/orm/models/{tableTemplateModule.js → entityTypeProvision.js} +24 -24
- package/esm/public/orm/models/index.d.ts +8 -3
- package/esm/public/orm/models/index.js +8 -3
- package/esm/public/orm/models/orgMemberProfile.d.ts +56 -0
- package/esm/public/orm/models/{connectedAccount.js → orgMemberProfile.js} +24 -24
- package/esm/public/orm/models/sessionSecretsModule.d.ts +56 -0
- package/esm/public/orm/models/sessionSecretsModule.js +96 -0
- package/esm/public/orm/models/spatialRelation.d.ts +56 -0
- package/esm/public/orm/models/spatialRelation.js +96 -0
- package/esm/public/orm/models/userConnectedAccount.d.ts +38 -0
- package/esm/public/orm/models/userConnectedAccount.js +72 -0
- package/esm/public/orm/models/webauthnCredentialsModule.d.ts +56 -0
- package/esm/public/orm/models/webauthnCredentialsModule.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +72 -20
- package/esm/public/orm/mutation/index.js +96 -24
- package/esm/public/orm/query/index.d.ts +24 -2
- package/esm/public/orm/query/index.js +36 -4
- package/esm/public/schema-types.d.ts +1550 -611
- package/esm/public/types.d.ts +98 -28
- package/package.json +2 -2
- package/public/hooks/index.d.ts +1 -1
- package/public/hooks/index.js +1 -1
- package/public/hooks/invalidation.d.ts +47 -17
- package/public/hooks/invalidation.js +121 -41
- package/public/hooks/mutation-keys.d.ts +112 -40
- package/public/hooks/mutation-keys.js +86 -30
- package/public/hooks/mutations/index.d.ts +31 -12
- package/public/hooks/mutations/index.js +31 -12
- package/public/hooks/mutations/useCreateApiKeyMutation.d.ts +20 -0
- package/public/hooks/mutations/useCreateApiKeyMutation.js +26 -0
- package/public/hooks/mutations/useCreateDevicesModuleMutation.d.ts +34 -0
- package/public/hooks/mutations/{useCreateTableTemplateModuleMutation.js → useCreateDevicesModuleMutation.js} +6 -6
- package/public/hooks/mutations/useCreateEntityTypeProvisionMutation.d.ts +48 -0
- package/public/hooks/mutations/useCreateEntityTypeProvisionMutation.js +41 -0
- package/public/hooks/mutations/useCreateOrgMemberProfileMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateOrgMemberProfileMutation.js +34 -0
- package/public/hooks/mutations/useCreateSessionSecretsModuleMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateSessionSecretsModuleMutation.js +34 -0
- package/public/hooks/mutations/useCreateSpatialRelationMutation.d.ts +34 -0
- package/public/hooks/mutations/{useCreateConnectedAccountMutation.js → useCreateSpatialRelationMutation.js} +6 -6
- package/public/hooks/mutations/useCreateUserConnectedAccountMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateUserConnectedAccountMutation.js +34 -0
- package/public/hooks/mutations/useCreateWebauthnCredentialsModuleMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateWebauthnCredentialsModuleMutation.js +34 -0
- package/public/hooks/mutations/useDeleteDevicesModuleMutation.d.ts +38 -0
- package/public/hooks/mutations/{useDeleteTableTemplateModuleMutation.js → useDeleteDevicesModuleMutation.js} +7 -7
- package/public/hooks/mutations/useDeleteEntityTypeProvisionMutation.d.ts +52 -0
- package/public/hooks/mutations/useDeleteEntityTypeProvisionMutation.js +46 -0
- package/public/hooks/mutations/useDeleteOrgMemberProfileMutation.d.ts +38 -0
- package/{auth/hooks/mutations/useDeleteConnectedAccountMutation.js → public/hooks/mutations/useDeleteOrgMemberProfileMutation.js} +7 -7
- package/public/hooks/mutations/useDeleteSessionSecretsModuleMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteSessionSecretsModuleMutation.js +39 -0
- package/public/hooks/mutations/useDeleteSpatialRelationMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteSpatialRelationMutation.js +39 -0
- package/public/hooks/mutations/useDeleteWebauthnCredentialsModuleMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteWebauthnCredentialsModuleMutation.js +39 -0
- package/public/hooks/mutations/useDisconnectAccountMutation.d.ts +20 -0
- package/public/hooks/mutations/useDisconnectAccountMutation.js +26 -0
- package/public/hooks/mutations/useProvisionNewUserMutation.d.ts +20 -0
- package/public/hooks/mutations/useProvisionNewUserMutation.js +26 -0
- package/public/hooks/mutations/useProvisionSpatialRelationMutation.d.ts +20 -0
- package/public/hooks/mutations/useProvisionSpatialRelationMutation.js +26 -0
- package/public/hooks/mutations/useRequestCrossOriginTokenMutation.d.ts +20 -0
- package/public/hooks/mutations/useRequestCrossOriginTokenMutation.js +26 -0
- package/public/hooks/mutations/useRevokeApiKeyMutation.d.ts +20 -0
- package/public/hooks/mutations/useRevokeApiKeyMutation.js +26 -0
- package/public/hooks/mutations/useRevokeSessionMutation.d.ts +20 -0
- package/public/hooks/mutations/useRevokeSessionMutation.js +26 -0
- package/public/hooks/mutations/useSignInCrossOriginMutation.d.ts +20 -0
- package/public/hooks/mutations/useSignInCrossOriginMutation.js +26 -0
- package/public/hooks/mutations/useUpdateDevicesModuleMutation.d.ts +40 -0
- package/public/hooks/mutations/{useUpdateTableTemplateModuleMutation.js → useUpdateDevicesModuleMutation.js} +9 -9
- package/public/hooks/mutations/useUpdateEntityTypeProvisionMutation.d.ts +54 -0
- package/public/hooks/mutations/useUpdateEntityTypeProvisionMutation.js +47 -0
- package/public/hooks/mutations/useUpdateOrgMemberProfileMutation.d.ts +40 -0
- package/public/hooks/mutations/{useUpdateConnectedAccountMutation.js → useUpdateOrgMemberProfileMutation.js} +9 -9
- package/public/hooks/mutations/useUpdateSessionSecretsModuleMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateSessionSecretsModuleMutation.js +40 -0
- package/public/hooks/mutations/useUpdateSpatialRelationMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateSpatialRelationMutation.js +40 -0
- package/public/hooks/mutations/useUpdateWebauthnCredentialsModuleMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateWebauthnCredentialsModuleMutation.js +40 -0
- package/public/hooks/queries/index.d.ts +19 -7
- package/public/hooks/queries/index.js +19 -7
- package/public/hooks/queries/useDevicesModuleQuery.d.ts +65 -0
- package/public/hooks/queries/{useTableTemplateModuleQuery.js → useDevicesModuleQuery.js} +14 -14
- package/public/hooks/queries/useDevicesModulesQuery.d.ts +69 -0
- package/public/hooks/queries/useDevicesModulesQuery.js +38 -0
- package/public/hooks/queries/useEntityTypeProvisionQuery.d.ts +93 -0
- package/public/hooks/queries/useEntityTypeProvisionQuery.js +60 -0
- package/public/hooks/queries/useEntityTypeProvisionsQuery.d.ts +97 -0
- package/public/hooks/queries/useEntityTypeProvisionsQuery.js +45 -0
- package/public/hooks/queries/useOrgMemberProfileQuery.d.ts +65 -0
- package/{auth/hooks/queries/useConnectedAccountQuery.js → public/hooks/queries/useOrgMemberProfileQuery.js} +14 -14
- package/public/hooks/queries/useOrgMemberProfilesQuery.d.ts +69 -0
- package/public/hooks/queries/useOrgMemberProfilesQuery.js +38 -0
- package/public/hooks/queries/useRequireStepUpQuery.d.ts +53 -0
- package/public/hooks/queries/useRequireStepUpQuery.js +53 -0
- package/public/hooks/queries/useResolveBlueprintFieldQuery.d.ts +53 -0
- package/public/hooks/queries/useResolveBlueprintFieldQuery.js +53 -0
- package/public/hooks/queries/useSessionSecretsModuleQuery.d.ts +65 -0
- package/public/hooks/queries/useSessionSecretsModuleQuery.js +53 -0
- package/public/hooks/queries/useSessionSecretsModulesQuery.d.ts +69 -0
- package/public/hooks/queries/useSessionSecretsModulesQuery.js +38 -0
- package/public/hooks/queries/useSpatialRelationQuery.d.ts +65 -0
- package/public/hooks/queries/useSpatialRelationQuery.js +53 -0
- package/public/hooks/queries/useSpatialRelationsQuery.d.ts +69 -0
- package/public/hooks/queries/useSpatialRelationsQuery.js +38 -0
- package/public/hooks/queries/useUserConnectedAccountQuery.d.ts +65 -0
- package/public/hooks/queries/useUserConnectedAccountQuery.js +53 -0
- package/public/hooks/queries/useUserConnectedAccountsQuery.d.ts +69 -0
- package/public/hooks/queries/useUserConnectedAccountsQuery.js +38 -0
- package/public/hooks/queries/useWebauthnCredentialsModuleQuery.d.ts +65 -0
- package/public/hooks/queries/useWebauthnCredentialsModuleQuery.js +53 -0
- package/public/hooks/queries/useWebauthnCredentialsModulesQuery.d.ts +69 -0
- package/public/hooks/queries/useWebauthnCredentialsModulesQuery.js +38 -0
- package/public/hooks/query-keys.d.ts +116 -42
- package/public/hooks/query-keys.js +69 -27
- package/public/orm/index.d.ts +69 -19
- package/public/orm/index.js +16 -6
- package/public/orm/input-types.d.ts +2047 -640
- package/public/orm/input-types.js +15 -6
- package/public/orm/models/devicesModule.d.ts +56 -0
- package/public/orm/models/devicesModule.js +100 -0
- package/public/orm/models/entityTypeProvision.d.ts +56 -0
- package/public/orm/models/{tableTemplateModule.js → entityTypeProvision.js} +26 -26
- package/public/orm/models/index.d.ts +8 -3
- package/public/orm/models/index.js +19 -9
- package/public/orm/models/orgMemberProfile.d.ts +56 -0
- package/public/orm/models/{connectedAccount.js → orgMemberProfile.js} +26 -26
- package/public/orm/models/sessionSecretsModule.d.ts +56 -0
- package/public/orm/models/sessionSecretsModule.js +100 -0
- package/public/orm/models/spatialRelation.d.ts +56 -0
- package/public/orm/models/spatialRelation.js +100 -0
- package/public/orm/models/userConnectedAccount.d.ts +38 -0
- package/public/orm/models/userConnectedAccount.js +76 -0
- package/public/orm/models/webauthnCredentialsModule.d.ts +56 -0
- package/public/orm/models/webauthnCredentialsModule.js +100 -0
- package/public/orm/mutation/index.d.ts +72 -20
- package/public/orm/mutation/index.js +96 -24
- package/public/orm/query/index.d.ts +24 -2
- package/public/orm/query/index.js +36 -4
- package/public/schema-types.d.ts +1550 -611
- package/public/types.d.ts +98 -28
- package/auth/hooks/mutations/useCreateConnectedAccountMutation.d.ts +0 -34
- package/auth/hooks/mutations/useDeleteConnectedAccountMutation.d.ts +0 -38
- package/auth/hooks/mutations/useOneTimeTokenMutation.d.ts +0 -20
- package/auth/hooks/mutations/useSignInOneTimeTokenMutation.d.ts +0 -20
- package/auth/hooks/mutations/useUpdateConnectedAccountMutation.d.ts +0 -40
- package/auth/hooks/queries/useConnectedAccountQuery.d.ts +0 -65
- package/auth/hooks/queries/useConnectedAccountsQuery.d.ts +0 -69
- package/auth/hooks/queries/useConnectedAccountsQuery.js +0 -38
- package/auth/orm/models/connectedAccount.d.ts +0 -56
- package/esm/auth/hooks/mutations/useCreateConnectedAccountMutation.d.ts +0 -34
- package/esm/auth/hooks/mutations/useDeleteConnectedAccountMutation.d.ts +0 -38
- package/esm/auth/hooks/mutations/useOneTimeTokenMutation.d.ts +0 -20
- package/esm/auth/hooks/mutations/useSignInOneTimeTokenMutation.d.ts +0 -20
- package/esm/auth/hooks/mutations/useUpdateConnectedAccountMutation.d.ts +0 -40
- package/esm/auth/hooks/queries/useConnectedAccountQuery.d.ts +0 -65
- package/esm/auth/hooks/queries/useConnectedAccountsQuery.d.ts +0 -69
- package/esm/auth/orm/models/connectedAccount.d.ts +0 -56
- package/esm/public/hooks/mutations/useCreateConnectedAccountMutation.d.ts +0 -34
- package/esm/public/hooks/mutations/useCreateTableTemplateModuleMutation.d.ts +0 -34
- package/esm/public/hooks/mutations/useDeleteConnectedAccountMutation.d.ts +0 -38
- package/esm/public/hooks/mutations/useDeleteTableTemplateModuleMutation.d.ts +0 -38
- package/esm/public/hooks/mutations/useOneTimeTokenMutation.d.ts +0 -20
- package/esm/public/hooks/mutations/useSignInOneTimeTokenMutation.d.ts +0 -20
- package/esm/public/hooks/mutations/useUpdateConnectedAccountMutation.d.ts +0 -40
- package/esm/public/hooks/mutations/useUpdateTableTemplateModuleMutation.d.ts +0 -40
- package/esm/public/hooks/queries/useConnectedAccountQuery.d.ts +0 -65
- package/esm/public/hooks/queries/useConnectedAccountsQuery.d.ts +0 -69
- package/esm/public/hooks/queries/useTableTemplateModuleQuery.d.ts +0 -65
- package/esm/public/hooks/queries/useTableTemplateModulesQuery.d.ts +0 -69
- package/esm/public/hooks/queries/useTableTemplateModulesQuery.js +0 -32
- package/esm/public/orm/models/connectedAccount.d.ts +0 -56
- package/esm/public/orm/models/tableTemplateModule.d.ts +0 -56
- package/public/hooks/mutations/useCreateConnectedAccountMutation.d.ts +0 -34
- package/public/hooks/mutations/useCreateTableTemplateModuleMutation.d.ts +0 -34
- package/public/hooks/mutations/useDeleteConnectedAccountMutation.d.ts +0 -38
- package/public/hooks/mutations/useDeleteTableTemplateModuleMutation.d.ts +0 -38
- package/public/hooks/mutations/useOneTimeTokenMutation.d.ts +0 -20
- package/public/hooks/mutations/useSignInOneTimeTokenMutation.d.ts +0 -20
- package/public/hooks/mutations/useUpdateConnectedAccountMutation.d.ts +0 -40
- package/public/hooks/mutations/useUpdateTableTemplateModuleMutation.d.ts +0 -40
- package/public/hooks/queries/useConnectedAccountQuery.d.ts +0 -65
- package/public/hooks/queries/useConnectedAccountsQuery.d.ts +0 -69
- package/public/hooks/queries/useConnectedAccountsQuery.js +0 -38
- package/public/hooks/queries/useTableTemplateModuleQuery.d.ts +0 -65
- package/public/hooks/queries/useTableTemplateModulesQuery.d.ts +0 -69
- package/public/hooks/queries/useTableTemplateModulesQuery.js +0 -38
- package/public/orm/models/connectedAccount.d.ts +0 -56
- package/public/orm/models/tableTemplateModule.d.ts +0 -56
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type,
|
|
3
|
+
and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites).
|
|
4
|
+
Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped
|
|
5
|
+
via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING).
|
|
6
|
+
Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible).
|
|
7
|
+
Set table_provision to a single jsonb object (using the same shape as provision_table() /
|
|
8
|
+
blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true
|
|
9
|
+
as an escape hatch to apply zero policies.
|
|
10
|
+
* @generated by @constructive-io/graphql-codegen
|
|
11
|
+
* DO NOT EDIT - changes will be overwritten
|
|
12
|
+
*/
|
|
13
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
14
|
+
import type { EntityTypeProvisionSelect, EntityTypeProvisionWithRelations } from '../../orm/input-types';
|
|
15
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
16
|
+
export type { EntityTypeProvisionSelect, EntityTypeProvisionWithRelations, } from '../../orm/input-types';
|
|
17
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
18
|
+
export declare const entityTypeProvisionQueryKey: (id: string | number) => readonly ["entitytypeprovision", "detail", string | number];
|
|
19
|
+
/**
|
|
20
|
+
* Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type,
|
|
21
|
+
and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites).
|
|
22
|
+
Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped
|
|
23
|
+
via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING).
|
|
24
|
+
Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible).
|
|
25
|
+
Set table_provision to a single jsonb object (using the same shape as provision_table() /
|
|
26
|
+
blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true
|
|
27
|
+
as an escape hatch to apply zero policies.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* const { data, isLoading } = useEntityTypeProvisionQuery({
|
|
32
|
+
* id: 'some-id',
|
|
33
|
+
* selection: { fields: { id: true, name: true } },
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare function useEntityTypeProvisionQuery<S extends EntityTypeProvisionSelect, TData = {
|
|
38
|
+
entityTypeProvision: InferSelectResult<EntityTypeProvisionWithRelations, S> | null;
|
|
39
|
+
}>(params: {
|
|
40
|
+
id: string;
|
|
41
|
+
selection: {
|
|
42
|
+
fields: S;
|
|
43
|
+
} & HookStrictSelect<NoInfer<S>, EntityTypeProvisionSelect>;
|
|
44
|
+
} & Omit<UseQueryOptions<{
|
|
45
|
+
entityTypeProvision: InferSelectResult<EntityTypeProvisionWithRelations, S> | null;
|
|
46
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
47
|
+
/**
|
|
48
|
+
* Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type,
|
|
49
|
+
and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites).
|
|
50
|
+
Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped
|
|
51
|
+
via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING).
|
|
52
|
+
Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible).
|
|
53
|
+
Set table_provision to a single jsonb object (using the same shape as provision_table() /
|
|
54
|
+
blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true
|
|
55
|
+
as an escape hatch to apply zero policies.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const data = await fetchEntityTypeProvisionQuery({
|
|
60
|
+
* id: 'some-id',
|
|
61
|
+
* selection: { fields: { id: true } },
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function fetchEntityTypeProvisionQuery<S extends EntityTypeProvisionSelect>(params: {
|
|
66
|
+
id: string;
|
|
67
|
+
selection: {
|
|
68
|
+
fields: S;
|
|
69
|
+
} & HookStrictSelect<NoInfer<S>, EntityTypeProvisionSelect>;
|
|
70
|
+
}): Promise<{
|
|
71
|
+
entityTypeProvision: InferSelectResult<EntityTypeProvisionWithRelations, S> | null;
|
|
72
|
+
}>;
|
|
73
|
+
/**
|
|
74
|
+
* Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type,
|
|
75
|
+
and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites).
|
|
76
|
+
Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped
|
|
77
|
+
via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING).
|
|
78
|
+
Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible).
|
|
79
|
+
Set table_provision to a single jsonb object (using the same shape as provision_table() /
|
|
80
|
+
blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true
|
|
81
|
+
as an escape hatch to apply zero policies.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```ts
|
|
85
|
+
* await prefetchEntityTypeProvisionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
export declare function prefetchEntityTypeProvisionQuery<S extends EntityTypeProvisionSelect>(queryClient: QueryClient, params: {
|
|
89
|
+
id: string;
|
|
90
|
+
selection: {
|
|
91
|
+
fields: S;
|
|
92
|
+
} & HookStrictSelect<NoInfer<S>, EntityTypeProvisionSelect>;
|
|
93
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type,
|
|
3
|
+
and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites).
|
|
4
|
+
Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped
|
|
5
|
+
via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING).
|
|
6
|
+
Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible).
|
|
7
|
+
Set table_provision to a single jsonb object (using the same shape as provision_table() /
|
|
8
|
+
blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true
|
|
9
|
+
as an escape hatch to apply zero policies.
|
|
10
|
+
* @generated by @constructive-io/graphql-codegen
|
|
11
|
+
* DO NOT EDIT - changes will be overwritten
|
|
12
|
+
*/
|
|
13
|
+
import { useQuery } from '@tanstack/react-query';
|
|
14
|
+
import { getClient } from '../client';
|
|
15
|
+
import { buildSelectionArgs } from '../selection';
|
|
16
|
+
import { entityTypeProvisionKeys } from '../query-keys';
|
|
17
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
18
|
+
export const entityTypeProvisionQueryKey = entityTypeProvisionKeys.detail;
|
|
19
|
+
export function useEntityTypeProvisionQuery(params) {
|
|
20
|
+
const args = buildSelectionArgs(params.selection);
|
|
21
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
22
|
+
void _selection;
|
|
23
|
+
return useQuery({
|
|
24
|
+
queryKey: entityTypeProvisionKeys.detail(params.id),
|
|
25
|
+
queryFn: () => getClient()
|
|
26
|
+
.entityTypeProvision.findOne({
|
|
27
|
+
id: params.id,
|
|
28
|
+
select: args.select,
|
|
29
|
+
})
|
|
30
|
+
.unwrap(),
|
|
31
|
+
...queryOptions,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
export async function fetchEntityTypeProvisionQuery(params) {
|
|
35
|
+
const args = buildSelectionArgs(params.selection);
|
|
36
|
+
return getClient()
|
|
37
|
+
.entityTypeProvision.findOne({
|
|
38
|
+
id: params.id,
|
|
39
|
+
select: args.select,
|
|
40
|
+
})
|
|
41
|
+
.unwrap();
|
|
42
|
+
}
|
|
43
|
+
export async function prefetchEntityTypeProvisionQuery(queryClient, params) {
|
|
44
|
+
const args = buildSelectionArgs(params.selection);
|
|
45
|
+
await queryClient.prefetchQuery({
|
|
46
|
+
queryKey: entityTypeProvisionKeys.detail(params.id),
|
|
47
|
+
queryFn: () => getClient()
|
|
48
|
+
.entityTypeProvision.findOne({
|
|
49
|
+
id: params.id,
|
|
50
|
+
select: args.select,
|
|
51
|
+
})
|
|
52
|
+
.unwrap(),
|
|
53
|
+
});
|
|
54
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type,
|
|
3
|
+
and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites).
|
|
4
|
+
Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped
|
|
5
|
+
via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING).
|
|
6
|
+
Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible).
|
|
7
|
+
Set table_provision to a single jsonb object (using the same shape as provision_table() /
|
|
8
|
+
blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true
|
|
9
|
+
as an escape hatch to apply zero policies.
|
|
10
|
+
* @generated by @constructive-io/graphql-codegen
|
|
11
|
+
* DO NOT EDIT - changes will be overwritten
|
|
12
|
+
*/
|
|
13
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
14
|
+
import type { ListSelectionConfig } from '../selection';
|
|
15
|
+
import type { EntityTypeProvisionSelect, EntityTypeProvisionWithRelations, EntityTypeProvisionFilter, EntityTypeProvisionOrderBy } from '../../orm/input-types';
|
|
16
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
17
|
+
export type { EntityTypeProvisionSelect, EntityTypeProvisionWithRelations, EntityTypeProvisionFilter, EntityTypeProvisionOrderBy, } from '../../orm/input-types';
|
|
18
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
19
|
+
export declare const entityTypeProvisionsQueryKey: (variables?: object) => readonly ["entitytypeprovision", "list", object];
|
|
20
|
+
/**
|
|
21
|
+
* Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type,
|
|
22
|
+
and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites).
|
|
23
|
+
Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped
|
|
24
|
+
via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING).
|
|
25
|
+
Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible).
|
|
26
|
+
Set table_provision to a single jsonb object (using the same shape as provision_table() /
|
|
27
|
+
blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true
|
|
28
|
+
as an escape hatch to apply zero policies.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```tsx
|
|
32
|
+
* const { data, isLoading } = useEntityTypeProvisionsQuery({
|
|
33
|
+
* selection: {
|
|
34
|
+
* fields: { id: true, name: true },
|
|
35
|
+
* where: { name: { equalTo: "example" } },
|
|
36
|
+
* orderBy: ['CREATED_AT_DESC'],
|
|
37
|
+
* first: 10,
|
|
38
|
+
* },
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export declare function useEntityTypeProvisionsQuery<S extends EntityTypeProvisionSelect, TData = {
|
|
43
|
+
entityTypeProvisions: ConnectionResult<InferSelectResult<EntityTypeProvisionWithRelations, S>>;
|
|
44
|
+
}>(params: {
|
|
45
|
+
selection: {
|
|
46
|
+
fields: S;
|
|
47
|
+
} & Omit<ListSelectionConfig<S, EntityTypeProvisionFilter, EntityTypeProvisionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, EntityTypeProvisionSelect>;
|
|
48
|
+
} & Omit<UseQueryOptions<{
|
|
49
|
+
entityTypeProvisions: ConnectionResult<InferSelectResult<EntityTypeProvisionWithRelations, S>>;
|
|
50
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
51
|
+
/**
|
|
52
|
+
* Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type,
|
|
53
|
+
and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites).
|
|
54
|
+
Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped
|
|
55
|
+
via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING).
|
|
56
|
+
Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible).
|
|
57
|
+
Set table_provision to a single jsonb object (using the same shape as provision_table() /
|
|
58
|
+
blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true
|
|
59
|
+
as an escape hatch to apply zero policies.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* const data = await fetchEntityTypeProvisionsQuery({
|
|
64
|
+
* selection: {
|
|
65
|
+
* fields: { id: true },
|
|
66
|
+
* first: 10,
|
|
67
|
+
* },
|
|
68
|
+
* });
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
export declare function fetchEntityTypeProvisionsQuery<S extends EntityTypeProvisionSelect>(params: {
|
|
72
|
+
selection: {
|
|
73
|
+
fields: S;
|
|
74
|
+
} & Omit<ListSelectionConfig<S, EntityTypeProvisionFilter, EntityTypeProvisionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, EntityTypeProvisionSelect>;
|
|
75
|
+
}): Promise<{
|
|
76
|
+
entityTypeProvisions: ConnectionResult<InferSelectResult<EntityTypeProvisionWithRelations, S>>;
|
|
77
|
+
}>;
|
|
78
|
+
/**
|
|
79
|
+
* Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type,
|
|
80
|
+
and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites).
|
|
81
|
+
Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped
|
|
82
|
+
via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING).
|
|
83
|
+
Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible).
|
|
84
|
+
Set table_provision to a single jsonb object (using the same shape as provision_table() /
|
|
85
|
+
blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true
|
|
86
|
+
as an escape hatch to apply zero policies.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```ts
|
|
90
|
+
* await prefetchEntityTypeProvisionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
export declare function prefetchEntityTypeProvisionsQuery<S extends EntityTypeProvisionSelect>(queryClient: QueryClient, params: {
|
|
94
|
+
selection: {
|
|
95
|
+
fields: S;
|
|
96
|
+
} & Omit<ListSelectionConfig<S, EntityTypeProvisionFilter, EntityTypeProvisionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, EntityTypeProvisionSelect>;
|
|
97
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type,
|
|
3
|
+
and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites).
|
|
4
|
+
Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped
|
|
5
|
+
via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING).
|
|
6
|
+
Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible).
|
|
7
|
+
Set table_provision to a single jsonb object (using the same shape as provision_table() /
|
|
8
|
+
blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true
|
|
9
|
+
as an escape hatch to apply zero policies.
|
|
10
|
+
* @generated by @constructive-io/graphql-codegen
|
|
11
|
+
* DO NOT EDIT - changes will be overwritten
|
|
12
|
+
*/
|
|
13
|
+
import { useQuery } from '@tanstack/react-query';
|
|
14
|
+
import { getClient } from '../client';
|
|
15
|
+
import { buildListSelectionArgs } from '../selection';
|
|
16
|
+
import { entityTypeProvisionKeys } from '../query-keys';
|
|
17
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
18
|
+
export const entityTypeProvisionsQueryKey = entityTypeProvisionKeys.list;
|
|
19
|
+
export function useEntityTypeProvisionsQuery(params) {
|
|
20
|
+
const args = buildListSelectionArgs(params.selection);
|
|
21
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
22
|
+
void _selection;
|
|
23
|
+
return useQuery({
|
|
24
|
+
queryKey: entityTypeProvisionKeys.list(args),
|
|
25
|
+
queryFn: () => getClient().entityTypeProvision.findMany(args).unwrap(),
|
|
26
|
+
...queryOptions,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
export async function fetchEntityTypeProvisionsQuery(params) {
|
|
30
|
+
const args = buildListSelectionArgs(params.selection);
|
|
31
|
+
return getClient().entityTypeProvision.findMany(args).unwrap();
|
|
32
|
+
}
|
|
33
|
+
export async function prefetchEntityTypeProvisionsQuery(queryClient, params) {
|
|
34
|
+
const args = buildListSelectionArgs(params.selection);
|
|
35
|
+
await queryClient.prefetchQuery({
|
|
36
|
+
queryKey: entityTypeProvisionKeys.list(args),
|
|
37
|
+
queryFn: () => getClient().entityTypeProvision.findMany(args).unwrap(),
|
|
38
|
+
});
|
|
39
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-membership profile information visible to other entity members (display name, email, title, bio, avatar)
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
+
import type { OrgMemberProfileSelect, OrgMemberProfileWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { OrgMemberProfileSelect, OrgMemberProfileWithRelations } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const orgMemberProfileQueryKey: (id: string | number) => readonly ["orgmemberprofile", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* Per-membership profile information visible to other entity members (display name, email, title, bio, avatar)
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useOrgMemberProfileQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useOrgMemberProfileQuery<S extends OrgMemberProfileSelect, TData = {
|
|
24
|
+
orgMemberProfile: InferSelectResult<OrgMemberProfileWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, OrgMemberProfileSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
orgMemberProfile: InferSelectResult<OrgMemberProfileWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* Per-membership profile information visible to other entity members (display name, email, title, bio, avatar)
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchOrgMemberProfileQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchOrgMemberProfileQuery<S extends OrgMemberProfileSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, OrgMemberProfileSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
orgMemberProfile: InferSelectResult<OrgMemberProfileWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Per-membership profile information visible to other entity members (display name, email, title, bio, avatar)
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchOrgMemberProfileQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchOrgMemberProfileQuery<S extends OrgMemberProfileSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, OrgMemberProfileSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-membership profile information visible to other entity members (display name, email, title, bio, avatar)
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useQuery } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { orgMemberProfileKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const orgMemberProfileQueryKey = orgMemberProfileKeys.detail;
|
|
12
|
+
export function useOrgMemberProfileQuery(params) {
|
|
13
|
+
const args = buildSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: orgMemberProfileKeys.detail(params.id),
|
|
18
|
+
queryFn: () => getClient()
|
|
19
|
+
.orgMemberProfile.findOne({
|
|
20
|
+
id: params.id,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
...queryOptions,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export async function fetchOrgMemberProfileQuery(params) {
|
|
28
|
+
const args = buildSelectionArgs(params.selection);
|
|
29
|
+
return getClient()
|
|
30
|
+
.orgMemberProfile.findOne({
|
|
31
|
+
id: params.id,
|
|
32
|
+
select: args.select,
|
|
33
|
+
})
|
|
34
|
+
.unwrap();
|
|
35
|
+
}
|
|
36
|
+
export async function prefetchOrgMemberProfileQuery(queryClient, params) {
|
|
37
|
+
const args = buildSelectionArgs(params.selection);
|
|
38
|
+
await queryClient.prefetchQuery({
|
|
39
|
+
queryKey: orgMemberProfileKeys.detail(params.id),
|
|
40
|
+
queryFn: () => getClient()
|
|
41
|
+
.orgMemberProfile.findOne({
|
|
42
|
+
id: params.id,
|
|
43
|
+
select: args.select,
|
|
44
|
+
})
|
|
45
|
+
.unwrap(),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-membership profile information visible to other entity members (display name, email, title, bio, avatar)
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
+
import type { ListSelectionConfig } from '../selection';
|
|
8
|
+
import type { OrgMemberProfileSelect, OrgMemberProfileWithRelations, OrgMemberProfileFilter, OrgMemberProfileOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { OrgMemberProfileSelect, OrgMemberProfileWithRelations, OrgMemberProfileFilter, OrgMemberProfileOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const orgMemberProfilesQueryKey: (variables?: object) => readonly ["orgmemberprofile", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Per-membership profile information visible to other entity members (display name, email, title, bio, avatar)
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = useOrgMemberProfilesQuery({
|
|
19
|
+
* selection: {
|
|
20
|
+
* fields: { id: true, name: true },
|
|
21
|
+
* where: { name: { equalTo: "example" } },
|
|
22
|
+
* orderBy: ['CREATED_AT_DESC'],
|
|
23
|
+
* first: 10,
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function useOrgMemberProfilesQuery<S extends OrgMemberProfileSelect, TData = {
|
|
29
|
+
orgMemberProfiles: ConnectionResult<InferSelectResult<OrgMemberProfileWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, OrgMemberProfileFilter, OrgMemberProfileOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgMemberProfileSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
orgMemberProfiles: ConnectionResult<InferSelectResult<OrgMemberProfileWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Per-membership profile information visible to other entity members (display name, email, title, bio, avatar)
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchOrgMemberProfilesQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchOrgMemberProfilesQuery<S extends OrgMemberProfileSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, OrgMemberProfileFilter, OrgMemberProfileOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgMemberProfileSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
orgMemberProfiles: ConnectionResult<InferSelectResult<OrgMemberProfileWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Per-membership profile information visible to other entity members (display name, email, title, bio, avatar)
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchOrgMemberProfilesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchOrgMemberProfilesQuery<S extends OrgMemberProfileSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, OrgMemberProfileFilter, OrgMemberProfileOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgMemberProfileSelect>;
|
|
69
|
+
}): Promise<void>;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Per-membership profile information visible to other entity members (display name, email, title, bio, avatar)
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
6
|
import { useQuery } from '@tanstack/react-query';
|
|
7
7
|
import { getClient } from '../client';
|
|
8
8
|
import { buildListSelectionArgs } from '../selection';
|
|
9
|
-
import {
|
|
9
|
+
import { orgMemberProfileKeys } from '../query-keys';
|
|
10
10
|
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
-
export const
|
|
12
|
-
export function
|
|
11
|
+
export const orgMemberProfilesQueryKey = orgMemberProfileKeys.list;
|
|
12
|
+
export function useOrgMemberProfilesQuery(params) {
|
|
13
13
|
const args = buildListSelectionArgs(params.selection);
|
|
14
14
|
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
15
|
void _selection;
|
|
16
16
|
return useQuery({
|
|
17
|
-
queryKey:
|
|
18
|
-
queryFn: () => getClient().
|
|
17
|
+
queryKey: orgMemberProfileKeys.list(args),
|
|
18
|
+
queryFn: () => getClient().orgMemberProfile.findMany(args).unwrap(),
|
|
19
19
|
...queryOptions,
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
export async function
|
|
22
|
+
export async function fetchOrgMemberProfilesQuery(params) {
|
|
23
23
|
const args = buildListSelectionArgs(params.selection);
|
|
24
|
-
return getClient().
|
|
24
|
+
return getClient().orgMemberProfile.findMany(args).unwrap();
|
|
25
25
|
}
|
|
26
|
-
export async function
|
|
26
|
+
export async function prefetchOrgMemberProfilesQuery(queryClient, params) {
|
|
27
27
|
const args = buildListSelectionArgs(params.selection);
|
|
28
28
|
await queryClient.prefetchQuery({
|
|
29
|
-
queryKey:
|
|
30
|
-
queryFn: () => getClient().
|
|
29
|
+
queryKey: orgMemberProfileKeys.list(args),
|
|
30
|
+
queryFn: () => getClient().orgMemberProfile.findMany(args).unwrap(),
|
|
31
31
|
});
|
|
32
32
|
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom query hook for requireStepUp
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
+
import type { RequireStepUpVariables } from '../../orm/query';
|
|
8
|
+
export type { RequireStepUpVariables } from '../../orm/query';
|
|
9
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
10
|
+
export declare const requireStepUpQueryKey: (variables?: object) => readonly ["requireStepUp", object];
|
|
11
|
+
/**
|
|
12
|
+
* Query hook for requireStepUp
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* const { data, isLoading } = useRequireStepUpQuery({ variables: { stepUpType } });
|
|
17
|
+
*
|
|
18
|
+
* if (data?.requireStepUp) {
|
|
19
|
+
* console.log(data.requireStepUp);
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useRequireStepUpQuery<TData = {
|
|
24
|
+
requireStepUp: boolean | null;
|
|
25
|
+
}>(params?: {
|
|
26
|
+
variables?: RequireStepUpVariables;
|
|
27
|
+
} & Omit<UseQueryOptions<{
|
|
28
|
+
requireStepUp: boolean | null;
|
|
29
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
30
|
+
/**
|
|
31
|
+
* Fetch requireStepUp without React hooks
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const data = await fetchRequireStepUpQuery({ variables: { stepUpType } });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare function fetchRequireStepUpQuery(params?: {
|
|
39
|
+
variables?: RequireStepUpVariables;
|
|
40
|
+
}): Promise<{
|
|
41
|
+
requireStepUp: boolean | null;
|
|
42
|
+
}>;
|
|
43
|
+
/**
|
|
44
|
+
* Prefetch requireStepUp for SSR or cache warming
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* await prefetchRequireStepUpQuery(queryClient, { variables: { stepUpType } });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare function prefetchRequireStepUpQuery(queryClient: QueryClient, params?: {
|
|
52
|
+
variables?: RequireStepUpVariables;
|
|
53
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom query hook for requireStepUp
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useQuery } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { customQueryKeys } from '../query-keys';
|
|
9
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
10
|
+
export const requireStepUpQueryKey = customQueryKeys.requireStepUp;
|
|
11
|
+
export function useRequireStepUpQuery(params) {
|
|
12
|
+
const variables = params?.variables ?? {};
|
|
13
|
+
const { variables: _variables, ...queryOptions } = params ?? {};
|
|
14
|
+
void _variables;
|
|
15
|
+
return useQuery({
|
|
16
|
+
queryKey: requireStepUpQueryKey(variables),
|
|
17
|
+
queryFn: () => getClient().query.requireStepUp(variables).unwrap(),
|
|
18
|
+
...queryOptions,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Fetch requireStepUp without React hooks
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const data = await fetchRequireStepUpQuery({ variables: { stepUpType } });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export async function fetchRequireStepUpQuery(params) {
|
|
30
|
+
const variables = params?.variables ?? {};
|
|
31
|
+
return getClient().query.requireStepUp(variables).unwrap();
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Prefetch requireStepUp for SSR or cache warming
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* await prefetchRequireStepUpQuery(queryClient, { variables: { stepUpType } });
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export async function prefetchRequireStepUpQuery(queryClient, params) {
|
|
42
|
+
const variables = params?.variables ?? {};
|
|
43
|
+
await queryClient.prefetchQuery({
|
|
44
|
+
queryKey: requireStepUpQueryKey(variables),
|
|
45
|
+
queryFn: () => getClient().query.requireStepUp(variables).unwrap(),
|
|
46
|
+
});
|
|
47
|
+
}
|