@constructive-io/react 1.19.7 → 1.19.9
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/agent/orm/input-types.d.ts +4 -4
- package/agent/schema-types.d.ts +4 -4
- package/api/hooks/index.d.ts +1 -1
- package/api/hooks/index.js +1 -1
- package/api/hooks/invalidation.d.ts +6 -0
- package/api/hooks/invalidation.js +16 -0
- package/api/hooks/mutation-keys.d.ts +12 -0
- package/api/hooks/mutation-keys.js +12 -2
- package/api/hooks/mutations/index.d.ts +1 -0
- package/api/hooks/mutations/index.js +1 -0
- package/api/hooks/mutations/useCreateListSuspendedDatabasesRecordMutation.d.ts +34 -0
- package/api/hooks/mutations/useCreateListSuspendedDatabasesRecordMutation.js +34 -0
- package/api/hooks/queries/index.d.ts +2 -0
- package/api/hooks/queries/index.js +2 -0
- package/api/hooks/queries/useListSuspendedDatabasesQuery.d.ts +69 -0
- package/api/hooks/queries/useListSuspendedDatabasesQuery.js +38 -0
- package/api/hooks/queries/useListSuspendedDatabasesRecordQuery.d.ts +65 -0
- package/api/hooks/queries/useListSuspendedDatabasesRecordQuery.js +53 -0
- package/api/hooks/query-keys.d.ts +14 -0
- package/api/hooks/query-keys.js +10 -2
- package/api/orm/index.d.ts +2 -0
- package/api/orm/index.js +2 -0
- package/api/orm/input-types.d.ts +60 -30
- package/api/orm/models/index.d.ts +1 -0
- package/api/orm/models/index.js +4 -2
- package/api/orm/models/listSuspendedDatabasesRecord.d.ts +36 -0
- package/api/orm/models/listSuspendedDatabasesRecord.js +80 -0
- package/api/schema-types.d.ts +22 -21
- package/api/types.d.ts +7 -2
- package/auth/hooks/mutation-keys.d.ts +6 -2
- package/auth/hooks/mutation-keys.js +9 -3
- package/auth/hooks/mutations/index.d.ts +3 -1
- package/auth/hooks/mutations/index.js +3 -1
- package/auth/hooks/mutations/useRequestMagicLinkMutation.d.ts +20 -0
- package/auth/hooks/mutations/{useProvisionNewUserMutation.js → useRequestMagicLinkMutation.js} +5 -5
- package/auth/hooks/mutations/useSendMfaChallengeCodeMutation.d.ts +20 -0
- package/auth/hooks/mutations/useSendMfaChallengeCodeMutation.js +26 -0
- package/auth/hooks/mutations/useSendSmsOtpMutation.d.ts +20 -0
- package/auth/hooks/mutations/useSendSmsOtpMutation.js +26 -0
- package/auth/orm/index.d.ts +15 -5
- package/auth/orm/input-types.d.ts +44 -14
- package/auth/orm/mutation/index.d.ts +25 -9
- package/auth/orm/mutation/index.js +36 -12
- package/auth/schema-types.d.ts +29 -10
- package/compute/hooks/index.d.ts +1 -1
- package/compute/hooks/index.js +1 -1
- package/compute/hooks/invalidation.d.ts +12 -0
- package/compute/hooks/invalidation.js +32 -0
- package/compute/hooks/mutation-keys.d.ts +28 -0
- package/compute/hooks/mutation-keys.js +26 -3
- package/compute/hooks/mutations/index.d.ts +8 -0
- package/compute/hooks/mutations/index.js +8 -0
- package/compute/hooks/mutations/useCreateFunctionScheduleMutation.d.ts +34 -0
- package/compute/hooks/mutations/useCreateFunctionScheduleMutation.js +34 -0
- package/compute/hooks/mutations/useCreatePlatformFunctionScheduleMutation.d.ts +34 -0
- package/compute/hooks/mutations/useCreatePlatformFunctionScheduleMutation.js +34 -0
- package/compute/hooks/mutations/useDeleteFunctionScheduleMutation.d.ts +38 -0
- package/compute/hooks/mutations/useDeleteFunctionScheduleMutation.js +39 -0
- package/compute/hooks/mutations/useDeletePlatformFunctionScheduleMutation.d.ts +38 -0
- package/compute/hooks/mutations/useDeletePlatformFunctionScheduleMutation.js +39 -0
- package/compute/hooks/mutations/useFunctionExecutionLogsAppendMutation.d.ts +20 -0
- package/compute/hooks/mutations/useFunctionExecutionLogsAppendMutation.js +26 -0
- package/compute/hooks/mutations/usePlatformFunctionExecutionLogsAppendMutation.d.ts +20 -0
- package/compute/hooks/mutations/usePlatformFunctionExecutionLogsAppendMutation.js +26 -0
- package/compute/hooks/mutations/useUpdateFunctionScheduleMutation.d.ts +40 -0
- package/compute/hooks/mutations/useUpdateFunctionScheduleMutation.js +40 -0
- package/compute/hooks/mutations/useUpdatePlatformFunctionScheduleMutation.d.ts +40 -0
- package/compute/hooks/mutations/useUpdatePlatformFunctionScheduleMutation.js +40 -0
- package/compute/hooks/queries/index.d.ts +4 -0
- package/compute/hooks/queries/index.js +4 -0
- package/compute/hooks/queries/useFunctionScheduleQuery.d.ts +65 -0
- package/compute/hooks/queries/useFunctionScheduleQuery.js +53 -0
- package/compute/hooks/queries/useFunctionSchedulesQuery.d.ts +69 -0
- package/compute/hooks/queries/useFunctionSchedulesQuery.js +38 -0
- package/compute/hooks/queries/usePlatformFunctionScheduleQuery.d.ts +65 -0
- package/compute/hooks/queries/usePlatformFunctionScheduleQuery.js +53 -0
- package/compute/hooks/queries/usePlatformFunctionSchedulesQuery.d.ts +69 -0
- package/compute/hooks/queries/usePlatformFunctionSchedulesQuery.js +38 -0
- package/compute/hooks/query-keys.d.ts +28 -0
- package/compute/hooks/query-keys.js +19 -3
- package/compute/orm/index.d.ts +14 -0
- package/compute/orm/index.js +4 -0
- package/compute/orm/input-types.d.ts +553 -4
- package/compute/orm/input-types.js +2 -0
- package/compute/orm/models/functionSchedule.d.ts +54 -0
- package/compute/orm/models/functionSchedule.js +104 -0
- package/compute/orm/models/index.d.ts +2 -0
- package/compute/orm/models/index.js +7 -3
- package/compute/orm/models/platformFunctionSchedule.d.ts +54 -0
- package/compute/orm/models/platformFunctionSchedule.js +104 -0
- package/compute/orm/mutation/index.d.ts +17 -1
- package/compute/orm/mutation/index.js +24 -0
- package/compute/schema-types.d.ts +319 -1
- package/compute/types.d.ts +29 -0
- package/esm/agent/orm/input-types.d.ts +4 -4
- package/esm/agent/schema-types.d.ts +4 -4
- package/esm/api/hooks/index.d.ts +1 -1
- package/esm/api/hooks/index.js +1 -1
- package/esm/api/hooks/invalidation.d.ts +6 -0
- package/esm/api/hooks/invalidation.js +17 -1
- package/esm/api/hooks/mutation-keys.d.ts +12 -0
- package/esm/api/hooks/mutation-keys.js +10 -0
- package/esm/api/hooks/mutations/index.d.ts +1 -0
- package/esm/api/hooks/mutations/index.js +1 -0
- package/esm/api/hooks/mutations/useCreateListSuspendedDatabasesRecordMutation.d.ts +34 -0
- package/esm/api/hooks/mutations/useCreateListSuspendedDatabasesRecordMutation.js +31 -0
- package/esm/api/hooks/queries/index.d.ts +2 -0
- package/esm/api/hooks/queries/index.js +2 -0
- package/esm/api/hooks/queries/useListSuspendedDatabasesQuery.d.ts +69 -0
- package/esm/api/hooks/queries/useListSuspendedDatabasesQuery.js +32 -0
- package/esm/api/hooks/queries/useListSuspendedDatabasesRecordQuery.d.ts +65 -0
- package/esm/api/hooks/queries/useListSuspendedDatabasesRecordQuery.js +47 -0
- package/esm/api/hooks/query-keys.d.ts +14 -0
- package/esm/api/hooks/query-keys.js +8 -0
- package/esm/api/orm/index.d.ts +2 -0
- package/esm/api/orm/index.js +2 -0
- package/esm/api/orm/input-types.d.ts +60 -30
- package/esm/api/orm/models/index.d.ts +1 -0
- package/esm/api/orm/models/index.js +1 -0
- package/esm/api/orm/models/listSuspendedDatabasesRecord.d.ts +36 -0
- package/esm/api/orm/models/listSuspendedDatabasesRecord.js +76 -0
- package/esm/api/schema-types.d.ts +22 -21
- package/esm/api/types.d.ts +7 -2
- package/esm/auth/hooks/mutation-keys.d.ts +6 -2
- package/esm/auth/hooks/mutation-keys.js +9 -3
- package/esm/auth/hooks/mutations/index.d.ts +3 -1
- package/esm/auth/hooks/mutations/index.js +3 -1
- package/esm/auth/hooks/mutations/useRequestMagicLinkMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/{useProvisionNewUserMutation.js → useRequestMagicLinkMutation.js} +4 -4
- package/esm/auth/hooks/mutations/useSendMfaChallengeCodeMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useSendMfaChallengeCodeMutation.js +23 -0
- package/esm/auth/hooks/mutations/useSendSmsOtpMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useSendSmsOtpMutation.js +23 -0
- package/esm/auth/orm/index.d.ts +15 -5
- package/esm/auth/orm/input-types.d.ts +44 -14
- package/esm/auth/orm/mutation/index.d.ts +25 -9
- package/esm/auth/orm/mutation/index.js +36 -12
- package/esm/auth/schema-types.d.ts +29 -10
- package/esm/compute/hooks/index.d.ts +1 -1
- package/esm/compute/hooks/index.js +1 -1
- package/esm/compute/hooks/invalidation.d.ts +12 -0
- package/esm/compute/hooks/invalidation.js +33 -1
- package/esm/compute/hooks/mutation-keys.d.ts +28 -0
- package/esm/compute/hooks/mutation-keys.js +23 -0
- package/esm/compute/hooks/mutations/index.d.ts +8 -0
- package/esm/compute/hooks/mutations/index.js +8 -0
- package/esm/compute/hooks/mutations/useCreateFunctionScheduleMutation.d.ts +34 -0
- package/esm/compute/hooks/mutations/useCreateFunctionScheduleMutation.js +31 -0
- package/esm/compute/hooks/mutations/useCreatePlatformFunctionScheduleMutation.d.ts +34 -0
- package/esm/compute/hooks/mutations/useCreatePlatformFunctionScheduleMutation.js +31 -0
- package/esm/compute/hooks/mutations/useDeleteFunctionScheduleMutation.d.ts +38 -0
- package/esm/compute/hooks/mutations/useDeleteFunctionScheduleMutation.js +36 -0
- package/esm/compute/hooks/mutations/useDeletePlatformFunctionScheduleMutation.d.ts +38 -0
- package/esm/compute/hooks/mutations/useDeletePlatformFunctionScheduleMutation.js +36 -0
- package/esm/compute/hooks/mutations/useFunctionExecutionLogsAppendMutation.d.ts +20 -0
- package/esm/compute/hooks/mutations/useFunctionExecutionLogsAppendMutation.js +23 -0
- package/esm/compute/hooks/mutations/usePlatformFunctionExecutionLogsAppendMutation.d.ts +20 -0
- package/esm/compute/hooks/mutations/usePlatformFunctionExecutionLogsAppendMutation.js +23 -0
- package/esm/compute/hooks/mutations/useUpdateFunctionScheduleMutation.d.ts +40 -0
- package/esm/compute/hooks/mutations/useUpdateFunctionScheduleMutation.js +37 -0
- package/esm/compute/hooks/mutations/useUpdatePlatformFunctionScheduleMutation.d.ts +40 -0
- package/esm/compute/hooks/mutations/useUpdatePlatformFunctionScheduleMutation.js +37 -0
- package/esm/compute/hooks/queries/index.d.ts +4 -0
- package/esm/compute/hooks/queries/index.js +4 -0
- package/esm/compute/hooks/queries/useFunctionScheduleQuery.d.ts +65 -0
- package/esm/compute/hooks/queries/useFunctionScheduleQuery.js +47 -0
- package/esm/compute/hooks/queries/useFunctionSchedulesQuery.d.ts +69 -0
- package/esm/compute/hooks/queries/useFunctionSchedulesQuery.js +32 -0
- package/esm/compute/hooks/queries/usePlatformFunctionScheduleQuery.d.ts +65 -0
- package/esm/compute/hooks/queries/usePlatformFunctionScheduleQuery.js +47 -0
- package/esm/compute/hooks/queries/usePlatformFunctionSchedulesQuery.d.ts +69 -0
- package/esm/compute/hooks/queries/usePlatformFunctionSchedulesQuery.js +32 -0
- package/esm/compute/hooks/query-keys.d.ts +28 -0
- package/esm/compute/hooks/query-keys.js +16 -0
- package/esm/compute/orm/index.d.ts +14 -0
- package/esm/compute/orm/index.js +4 -0
- package/esm/compute/orm/input-types.d.ts +553 -4
- package/esm/compute/orm/input-types.js +2 -0
- package/esm/compute/orm/models/functionSchedule.d.ts +54 -0
- package/esm/compute/orm/models/functionSchedule.js +100 -0
- package/esm/compute/orm/models/index.d.ts +2 -0
- package/esm/compute/orm/models/index.js +2 -0
- package/esm/compute/orm/models/platformFunctionSchedule.d.ts +54 -0
- package/esm/compute/orm/models/platformFunctionSchedule.js +100 -0
- package/esm/compute/orm/mutation/index.d.ts +17 -1
- package/esm/compute/orm/mutation/index.js +24 -0
- package/esm/compute/schema-types.d.ts +319 -1
- package/esm/compute/types.d.ts +29 -0
- package/esm/modules/orm/input-types.d.ts +26 -48
- package/esm/modules/schema-types.d.ts +17 -33
- package/esm/modules/types.d.ts +3 -5
- package/esm/remote/orm/input-types.d.ts +13 -1
- package/esm/remote/schema-types.d.ts +8 -1
- package/esm/remote/types.d.ts +1 -0
- package/modules/orm/input-types.d.ts +26 -48
- package/modules/schema-types.d.ts +17 -33
- package/modules/types.d.ts +3 -5
- package/package.json +5 -5
- package/remote/orm/input-types.d.ts +13 -1
- package/remote/schema-types.d.ts +8 -1
- package/remote/types.d.ts +1 -0
- package/auth/hooks/mutations/useProvisionNewUserMutation.d.ts +0 -20
- package/esm/auth/hooks/mutations/useProvisionNewUserMutation.d.ts +0 -20
package/esm/api/hooks/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* GraphQL SDK
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
*
|
|
5
|
-
* Tables: Api, ApiSchema, ApiSetting, AstMigration, CheckConstraint, CompositeType, CorsSetting, Database, DatabaseSetting, DatabaseTransfer, DefaultPrivilege, Derive, Domain, DomainEvent, DomainType, DomainVerification, EmailIdentity, EmailProviderAccount, EmailSiteIdentity, EmbeddingChunk, Enum, ExclusionConstraint, FieldBehavior, Field, ForeignKeyConstraintBehavior, ForeignKeyConstraint, FullTextSearch, Function, GetSitePreviewsRecord, HostnameBinding, IdentityProviderRegistry, Index, ManagedDomain, NodeTypeRegistry, Page, Partition, PlatformApi, PlatformApiSchema, PlatformApiSetting, PlatformCorsSetting, PlatformDomain, PlatformDomainEvent, PlatformDomainVerification, PlatformEmailIdentity, PlatformEmailProviderAccount, PlatformEmailSiteIdentity, PlatformGetSitePreviewsRecord, PlatformManagedDomain, PlatformPage, PlatformSiteAppLink, PlatformSite, PlatformSiteDeepLink, PlatformSiteErrorPage, PlatformSiteMetadatum, PlatformSiteModule, PlatformSiteRelease, PlatformSiteTheme, PlatformSiteWebConfig, Policy, PrimaryKeyConstraint, PubkeySetting, Redirect, RlsSetting, RouteBinding, Route, Schema, SchemaGrant, SiteAppLink, Site, SiteDeepLink, SiteErrorPage, SiteMetadatum, SiteModule, SiteRelease, SiteTheme, SiteWebConfig, SpatialRelation, SqlAction, TableBehavior, Table, TableGrant, Trigger, TriggerFunction, UniqueConstraintBehavior, UniqueConstraint, ViewBehavior, View, ViewGrant, ViewRule, ViewTable, WebauthnSetting
|
|
5
|
+
* Tables: Api, ApiSchema, ApiSetting, AstMigration, CheckConstraint, CompositeType, CorsSetting, Database, DatabaseSetting, DatabaseTransfer, DefaultPrivilege, Derive, Domain, DomainEvent, DomainType, DomainVerification, EmailIdentity, EmailProviderAccount, EmailSiteIdentity, EmbeddingChunk, Enum, ExclusionConstraint, FieldBehavior, Field, ForeignKeyConstraintBehavior, ForeignKeyConstraint, FullTextSearch, Function, GetSitePreviewsRecord, HostnameBinding, IdentityProviderRegistry, Index, ListSuspendedDatabasesRecord, ManagedDomain, NodeTypeRegistry, Page, Partition, PlatformApi, PlatformApiSchema, PlatformApiSetting, PlatformCorsSetting, PlatformDomain, PlatformDomainEvent, PlatformDomainVerification, PlatformEmailIdentity, PlatformEmailProviderAccount, PlatformEmailSiteIdentity, PlatformGetSitePreviewsRecord, PlatformManagedDomain, PlatformPage, PlatformSiteAppLink, PlatformSite, PlatformSiteDeepLink, PlatformSiteErrorPage, PlatformSiteMetadatum, PlatformSiteModule, PlatformSiteRelease, PlatformSiteTheme, PlatformSiteWebConfig, Policy, PrimaryKeyConstraint, PubkeySetting, Redirect, RlsSetting, RouteBinding, Route, Schema, SchemaGrant, SiteAppLink, Site, SiteDeepLink, SiteErrorPage, SiteMetadatum, SiteModule, SiteRelease, SiteTheme, SiteWebConfig, SpatialRelation, SqlAction, TableBehavior, Table, TableGrant, Trigger, TriggerFunction, UniqueConstraintBehavior, UniqueConstraint, ViewBehavior, View, ViewGrant, ViewRule, ViewTable, WebauthnSetting
|
|
6
6
|
*
|
|
7
7
|
* Usage:
|
|
8
8
|
*
|
package/esm/api/hooks/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* GraphQL SDK
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
*
|
|
5
|
-
* Tables: Api, ApiSchema, ApiSetting, AstMigration, CheckConstraint, CompositeType, CorsSetting, Database, DatabaseSetting, DatabaseTransfer, DefaultPrivilege, Derive, Domain, DomainEvent, DomainType, DomainVerification, EmailIdentity, EmailProviderAccount, EmailSiteIdentity, EmbeddingChunk, Enum, ExclusionConstraint, FieldBehavior, Field, ForeignKeyConstraintBehavior, ForeignKeyConstraint, FullTextSearch, Function, GetSitePreviewsRecord, HostnameBinding, IdentityProviderRegistry, Index, ManagedDomain, NodeTypeRegistry, Page, Partition, PlatformApi, PlatformApiSchema, PlatformApiSetting, PlatformCorsSetting, PlatformDomain, PlatformDomainEvent, PlatformDomainVerification, PlatformEmailIdentity, PlatformEmailProviderAccount, PlatformEmailSiteIdentity, PlatformGetSitePreviewsRecord, PlatformManagedDomain, PlatformPage, PlatformSiteAppLink, PlatformSite, PlatformSiteDeepLink, PlatformSiteErrorPage, PlatformSiteMetadatum, PlatformSiteModule, PlatformSiteRelease, PlatformSiteTheme, PlatformSiteWebConfig, Policy, PrimaryKeyConstraint, PubkeySetting, Redirect, RlsSetting, RouteBinding, Route, Schema, SchemaGrant, SiteAppLink, Site, SiteDeepLink, SiteErrorPage, SiteMetadatum, SiteModule, SiteRelease, SiteTheme, SiteWebConfig, SpatialRelation, SqlAction, TableBehavior, Table, TableGrant, Trigger, TriggerFunction, UniqueConstraintBehavior, UniqueConstraint, ViewBehavior, View, ViewGrant, ViewRule, ViewTable, WebauthnSetting
|
|
5
|
+
* Tables: Api, ApiSchema, ApiSetting, AstMigration, CheckConstraint, CompositeType, CorsSetting, Database, DatabaseSetting, DatabaseTransfer, DefaultPrivilege, Derive, Domain, DomainEvent, DomainType, DomainVerification, EmailIdentity, EmailProviderAccount, EmailSiteIdentity, EmbeddingChunk, Enum, ExclusionConstraint, FieldBehavior, Field, ForeignKeyConstraintBehavior, ForeignKeyConstraint, FullTextSearch, Function, GetSitePreviewsRecord, HostnameBinding, IdentityProviderRegistry, Index, ListSuspendedDatabasesRecord, ManagedDomain, NodeTypeRegistry, Page, Partition, PlatformApi, PlatformApiSchema, PlatformApiSetting, PlatformCorsSetting, PlatformDomain, PlatformDomainEvent, PlatformDomainVerification, PlatformEmailIdentity, PlatformEmailProviderAccount, PlatformEmailSiteIdentity, PlatformGetSitePreviewsRecord, PlatformManagedDomain, PlatformPage, PlatformSiteAppLink, PlatformSite, PlatformSiteDeepLink, PlatformSiteErrorPage, PlatformSiteMetadatum, PlatformSiteModule, PlatformSiteRelease, PlatformSiteTheme, PlatformSiteWebConfig, Policy, PrimaryKeyConstraint, PubkeySetting, Redirect, RlsSetting, RouteBinding, Route, Schema, SchemaGrant, SiteAppLink, Site, SiteDeepLink, SiteErrorPage, SiteMetadatum, SiteModule, SiteRelease, SiteTheme, SiteWebConfig, SpatialRelation, SqlAction, TableBehavior, Table, TableGrant, Trigger, TriggerFunction, UniqueConstraintBehavior, UniqueConstraint, ViewBehavior, View, ViewGrant, ViewRule, ViewTable, WebauthnSetting
|
|
6
6
|
*
|
|
7
7
|
* Usage:
|
|
8
8
|
*
|
|
@@ -184,6 +184,11 @@ export declare const invalidate: {
|
|
|
184
184
|
/** Invalidate index list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
185
185
|
/** Invalidate a specific index */ readonly detail: (queryClient: QueryClient, id: string | number) => Promise<void>;
|
|
186
186
|
};
|
|
187
|
+
/** Invalidate listSuspendedDatabasesRecord queries */ readonly listSuspendedDatabasesRecord: {
|
|
188
|
+
/** Invalidate all listSuspendedDatabasesRecord queries */ readonly all: (queryClient: QueryClient) => Promise<void>;
|
|
189
|
+
/** Invalidate listSuspendedDatabasesRecord list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
190
|
+
/** Invalidate a specific listSuspendedDatabasesRecord */ readonly detail: (queryClient: QueryClient, id: string | number) => Promise<void>;
|
|
191
|
+
};
|
|
187
192
|
/** Invalidate managedDomain queries */ readonly managedDomain: {
|
|
188
193
|
/** Invalidate all managedDomain queries */ readonly all: (queryClient: QueryClient) => Promise<void>;
|
|
189
194
|
/** Invalidate managedDomain list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
@@ -524,6 +529,7 @@ export declare const remove: {
|
|
|
524
529
|
/** Remove hostnameBinding from cache */ readonly hostnameBinding: (queryClient: QueryClient, id: string | number) => void;
|
|
525
530
|
/** Remove identityProviderRegistry from cache */ readonly identityProviderRegistry: (queryClient: QueryClient, id: string | number) => void;
|
|
526
531
|
/** Remove index from cache */ readonly index: (queryClient: QueryClient, id: string | number) => void;
|
|
532
|
+
/** Remove listSuspendedDatabasesRecord from cache */ readonly listSuspendedDatabasesRecord: (queryClient: QueryClient, id: string | number) => void;
|
|
527
533
|
/** Remove managedDomain from cache */ readonly managedDomain: (queryClient: QueryClient, id: string | number) => void;
|
|
528
534
|
/** Remove nodeTypeRegistry from cache */ readonly nodeTypeRegistry: (queryClient: QueryClient, id: string | number) => void;
|
|
529
535
|
/** Remove page from cache */ readonly page: (queryClient: QueryClient, id: string | number) => void;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
|
-
import { apiKeys, apiSchemaKeys, apiSettingKeys, astMigrationKeys, checkConstraintKeys, compositeTypeKeys, corsSettingKeys, databaseKeys, databaseSettingKeys, databaseTransferKeys, defaultPrivilegeKeys, deriveKeys, domainKeys, domainEventKeys, domainTypeKeys, domainVerificationKeys, emailIdentityKeys, emailProviderAccountKeys, emailSiteIdentityKeys, embeddingChunkKeys, enumKeys, exclusionConstraintKeys, fieldBehaviorKeys, fieldKeys, foreignKeyConstraintBehaviorKeys, foreignKeyConstraintKeys, fullTextSearchKeys, functionKeys, getSitePreviewsRecordKeys, hostnameBindingKeys, identityProviderRegistryKeys, indexKeys, managedDomainKeys, nodeTypeRegistryKeys, pageKeys, partitionKeys, platformApiKeys, platformApiSchemaKeys, platformApiSettingKeys, platformCorsSettingKeys, platformDomainKeys, platformDomainEventKeys, platformDomainVerificationKeys, platformEmailIdentityKeys, platformEmailProviderAccountKeys, platformEmailSiteIdentityKeys, platformGetSitePreviewsRecordKeys, platformManagedDomainKeys, platformPageKeys, platformSiteAppLinkKeys, platformSiteKeys, platformSiteDeepLinkKeys, platformSiteErrorPageKeys, platformSiteMetadatumKeys, platformSiteModuleKeys, platformSiteReleaseKeys, platformSiteThemeKeys, platformSiteWebConfigKeys, policyKeys, primaryKeyConstraintKeys, pubkeySettingKeys, redirectKeys, rlsSettingKeys, routeBindingKeys, routeKeys, schemaKeys, schemaGrantKeys, siteAppLinkKeys, siteKeys, siteDeepLinkKeys, siteErrorPageKeys, siteMetadatumKeys, siteModuleKeys, siteReleaseKeys, siteThemeKeys, siteWebConfigKeys, spatialRelationKeys, sqlActionKeys, tableBehaviorKeys, tableKeys, tableGrantKeys, triggerKeys, triggerFunctionKeys, uniqueConstraintBehaviorKeys, uniqueConstraintKeys, viewBehaviorKeys, viewKeys, viewGrantKeys, viewRuleKeys, viewTableKeys, webauthnSettingKeys, } from './query-keys';
|
|
6
|
+
import { apiKeys, apiSchemaKeys, apiSettingKeys, astMigrationKeys, checkConstraintKeys, compositeTypeKeys, corsSettingKeys, databaseKeys, databaseSettingKeys, databaseTransferKeys, defaultPrivilegeKeys, deriveKeys, domainKeys, domainEventKeys, domainTypeKeys, domainVerificationKeys, emailIdentityKeys, emailProviderAccountKeys, emailSiteIdentityKeys, embeddingChunkKeys, enumKeys, exclusionConstraintKeys, fieldBehaviorKeys, fieldKeys, foreignKeyConstraintBehaviorKeys, foreignKeyConstraintKeys, fullTextSearchKeys, functionKeys, getSitePreviewsRecordKeys, hostnameBindingKeys, identityProviderRegistryKeys, indexKeys, listSuspendedDatabasesRecordKeys, managedDomainKeys, nodeTypeRegistryKeys, pageKeys, partitionKeys, platformApiKeys, platformApiSchemaKeys, platformApiSettingKeys, platformCorsSettingKeys, platformDomainKeys, platformDomainEventKeys, platformDomainVerificationKeys, platformEmailIdentityKeys, platformEmailProviderAccountKeys, platformEmailSiteIdentityKeys, platformGetSitePreviewsRecordKeys, platformManagedDomainKeys, platformPageKeys, platformSiteAppLinkKeys, platformSiteKeys, platformSiteDeepLinkKeys, platformSiteErrorPageKeys, platformSiteMetadatumKeys, platformSiteModuleKeys, platformSiteReleaseKeys, platformSiteThemeKeys, platformSiteWebConfigKeys, policyKeys, primaryKeyConstraintKeys, pubkeySettingKeys, redirectKeys, rlsSettingKeys, routeBindingKeys, routeKeys, schemaKeys, schemaGrantKeys, siteAppLinkKeys, siteKeys, siteDeepLinkKeys, siteErrorPageKeys, siteMetadatumKeys, siteModuleKeys, siteReleaseKeys, siteThemeKeys, siteWebConfigKeys, spatialRelationKeys, sqlActionKeys, tableBehaviorKeys, tableKeys, tableGrantKeys, triggerKeys, triggerFunctionKeys, uniqueConstraintBehaviorKeys, uniqueConstraintKeys, viewBehaviorKeys, viewKeys, viewGrantKeys, viewRuleKeys, viewTableKeys, webauthnSettingKeys, } from './query-keys';
|
|
7
7
|
/**
|
|
8
8
|
// ============================================================================
|
|
9
9
|
// Invalidation Helpers
|
|
@@ -376,6 +376,17 @@ export const invalidate = {
|
|
|
376
376
|
queryKey: indexKeys.detail(id),
|
|
377
377
|
}),
|
|
378
378
|
},
|
|
379
|
+
/** Invalidate listSuspendedDatabasesRecord queries */ listSuspendedDatabasesRecord: {
|
|
380
|
+
/** Invalidate all listSuspendedDatabasesRecord queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
381
|
+
queryKey: listSuspendedDatabasesRecordKeys.all,
|
|
382
|
+
}),
|
|
383
|
+
/** Invalidate listSuspendedDatabasesRecord list queries */ lists: (queryClient) => queryClient.invalidateQueries({
|
|
384
|
+
queryKey: listSuspendedDatabasesRecordKeys.lists(),
|
|
385
|
+
}),
|
|
386
|
+
/** Invalidate a specific listSuspendedDatabasesRecord */ detail: (queryClient, id) => queryClient.invalidateQueries({
|
|
387
|
+
queryKey: listSuspendedDatabasesRecordKeys.detail(id),
|
|
388
|
+
}),
|
|
389
|
+
},
|
|
379
390
|
/** Invalidate managedDomain queries */ managedDomain: {
|
|
380
391
|
/** Invalidate all managedDomain queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
381
392
|
queryKey: managedDomainKeys.all,
|
|
@@ -1198,6 +1209,11 @@ export const remove = {
|
|
|
1198
1209
|
queryKey: indexKeys.detail(id),
|
|
1199
1210
|
});
|
|
1200
1211
|
},
|
|
1212
|
+
/** Remove listSuspendedDatabasesRecord from cache */ listSuspendedDatabasesRecord: (queryClient, id) => {
|
|
1213
|
+
queryClient.removeQueries({
|
|
1214
|
+
queryKey: listSuspendedDatabasesRecordKeys.detail(id),
|
|
1215
|
+
});
|
|
1216
|
+
},
|
|
1201
1217
|
/** Remove managedDomain from cache */ managedDomain: (queryClient, id) => {
|
|
1202
1218
|
queryClient.removeQueries({
|
|
1203
1219
|
queryKey: managedDomainKeys.detail(id),
|
|
@@ -195,6 +195,12 @@ export declare const indexMutationKeys: {
|
|
|
195
195
|
/** Update index mutation key */ readonly update: (id: string | number) => readonly ["mutation", "index", "update", string | number];
|
|
196
196
|
/** Delete index mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "index", "delete", string | number];
|
|
197
197
|
};
|
|
198
|
+
export declare const listSuspendedDatabasesRecordMutationKeys: {
|
|
199
|
+
/** All listSuspendedDatabasesRecord mutation keys */ readonly all: readonly ["mutation", "listsuspendeddatabasesrecord"];
|
|
200
|
+
/** Create listSuspendedDatabasesRecord mutation key */ readonly create: () => readonly ["mutation", "listsuspendeddatabasesrecord", "create"];
|
|
201
|
+
/** Update listSuspendedDatabasesRecord mutation key */ readonly update: (id: string | number) => readonly ["mutation", "listsuspendeddatabasesrecord", "update", string | number];
|
|
202
|
+
/** Delete listSuspendedDatabasesRecord mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "listsuspendeddatabasesrecord", "delete", string | number];
|
|
203
|
+
};
|
|
198
204
|
export declare const managedDomainMutationKeys: {
|
|
199
205
|
/** All managedDomain mutation keys */ readonly all: readonly ["mutation", "manageddomain"];
|
|
200
206
|
/** Create managedDomain mutation key */ readonly create: () => readonly ["mutation", "manageddomain", "create"];
|
|
@@ -795,6 +801,12 @@ export declare const mutationKeys: {
|
|
|
795
801
|
/** Update index mutation key */ readonly update: (id: string | number) => readonly ["mutation", "index", "update", string | number];
|
|
796
802
|
/** Delete index mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "index", "delete", string | number];
|
|
797
803
|
};
|
|
804
|
+
readonly listSuspendedDatabasesRecord: {
|
|
805
|
+
/** All listSuspendedDatabasesRecord mutation keys */ readonly all: readonly ["mutation", "listsuspendeddatabasesrecord"];
|
|
806
|
+
/** Create listSuspendedDatabasesRecord mutation key */ readonly create: () => readonly ["mutation", "listsuspendeddatabasesrecord", "create"];
|
|
807
|
+
/** Update listSuspendedDatabasesRecord mutation key */ readonly update: (id: string | number) => readonly ["mutation", "listsuspendeddatabasesrecord", "update", string | number];
|
|
808
|
+
/** Delete listSuspendedDatabasesRecord mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "listsuspendeddatabasesrecord", "delete", string | number];
|
|
809
|
+
};
|
|
798
810
|
readonly managedDomain: {
|
|
799
811
|
/** All managedDomain mutation keys */ readonly all: readonly ["mutation", "manageddomain"];
|
|
800
812
|
/** Create managedDomain mutation key */ readonly create: () => readonly ["mutation", "manageddomain", "create"];
|
|
@@ -216,6 +216,15 @@ export const indexMutationKeys = {
|
|
|
216
216
|
/** Update index mutation key */ update: (id) => ['mutation', 'index', 'update', id],
|
|
217
217
|
/** Delete index mutation key */ delete: (id) => ['mutation', 'index', 'delete', id],
|
|
218
218
|
};
|
|
219
|
+
export const listSuspendedDatabasesRecordMutationKeys = {
|
|
220
|
+
/** All listSuspendedDatabasesRecord mutation keys */ all: [
|
|
221
|
+
'mutation',
|
|
222
|
+
'listsuspendeddatabasesrecord',
|
|
223
|
+
],
|
|
224
|
+
/** Create listSuspendedDatabasesRecord mutation key */ create: () => ['mutation', 'listsuspendeddatabasesrecord', 'create'],
|
|
225
|
+
/** Update listSuspendedDatabasesRecord mutation key */ update: (id) => ['mutation', 'listsuspendeddatabasesrecord', 'update', id],
|
|
226
|
+
/** Delete listSuspendedDatabasesRecord mutation key */ delete: (id) => ['mutation', 'listsuspendeddatabasesrecord', 'delete', id],
|
|
227
|
+
};
|
|
219
228
|
export const managedDomainMutationKeys = {
|
|
220
229
|
/** All managedDomain mutation keys */ all: ['mutation', 'manageddomain'],
|
|
221
230
|
/** Create managedDomain mutation key */ create: () => ['mutation', 'manageddomain', 'create'],
|
|
@@ -747,6 +756,7 @@ export const mutationKeys = {
|
|
|
747
756
|
hostnameBinding: hostnameBindingMutationKeys,
|
|
748
757
|
identityProviderRegistry: identityProviderRegistryMutationKeys,
|
|
749
758
|
index: indexMutationKeys,
|
|
759
|
+
listSuspendedDatabasesRecord: listSuspendedDatabasesRecordMutationKeys,
|
|
750
760
|
managedDomain: managedDomainMutationKeys,
|
|
751
761
|
nodeTypeRegistry: nodeTypeRegistryMutationKeys,
|
|
752
762
|
page: pageMutationKeys,
|
|
@@ -95,6 +95,7 @@ export * from './useDeleteIdentityProviderRegistryMutation';
|
|
|
95
95
|
export * from './useCreateIndexMutation';
|
|
96
96
|
export * from './useUpdateIndexMutation';
|
|
97
97
|
export * from './useDeleteIndexMutation';
|
|
98
|
+
export * from './useCreateListSuspendedDatabasesRecordMutation';
|
|
98
99
|
export * from './useCreateManagedDomainMutation';
|
|
99
100
|
export * from './useUpdateManagedDomainMutation';
|
|
100
101
|
export * from './useDeleteManagedDomainMutation';
|
|
@@ -95,6 +95,7 @@ export * from './useDeleteIdentityProviderRegistryMutation';
|
|
|
95
95
|
export * from './useCreateIndexMutation';
|
|
96
96
|
export * from './useUpdateIndexMutation';
|
|
97
97
|
export * from './useDeleteIndexMutation';
|
|
98
|
+
export * from './useCreateListSuspendedDatabasesRecordMutation';
|
|
98
99
|
export * from './useCreateManagedDomainMutation';
|
|
99
100
|
export * from './useUpdateManagedDomainMutation';
|
|
100
101
|
export * from './useDeleteManagedDomainMutation';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create mutation hook for ListSuspendedDatabasesRecord
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
+
import type { ListSuspendedDatabasesRecordSelect, ListSuspendedDatabasesRecordWithRelations, CreateListSuspendedDatabasesRecordInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { ListSuspendedDatabasesRecordSelect, ListSuspendedDatabasesRecordWithRelations, CreateListSuspendedDatabasesRecordInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for creating a ListSuspendedDatabasesRecord
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreateListSuspendedDatabasesRecordMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateListSuspendedDatabasesRecordMutation<S extends ListSuspendedDatabasesRecordSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & ListSuspendedDatabasesRecordSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, ListSuspendedDatabasesRecordSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createListSuspendedDatabasesRecord: {
|
|
28
|
+
listSuspendedDatabasesRecord: InferSelectResult<ListSuspendedDatabasesRecordWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateListSuspendedDatabasesRecordInput['listSuspendedDatabasesRecord']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createListSuspendedDatabasesRecord: {
|
|
32
|
+
listSuspendedDatabasesRecord: InferSelectResult<ListSuspendedDatabasesRecordWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateListSuspendedDatabasesRecordInput['listSuspendedDatabasesRecord']>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create mutation hook for ListSuspendedDatabasesRecord
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { listSuspendedDatabasesRecordKeys } from '../query-keys';
|
|
10
|
+
import { listSuspendedDatabasesRecordMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useCreateListSuspendedDatabasesRecordMutation(params) {
|
|
12
|
+
const args = buildSelectionArgs(params.selection);
|
|
13
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
|
+
void _selection;
|
|
15
|
+
const queryClient = useQueryClient();
|
|
16
|
+
return useMutation({
|
|
17
|
+
mutationKey: listSuspendedDatabasesRecordMutationKeys.create(),
|
|
18
|
+
mutationFn: (data) => getClient()
|
|
19
|
+
.listSuspendedDatabasesRecord.create({
|
|
20
|
+
data,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
onSuccess: () => {
|
|
25
|
+
queryClient.invalidateQueries({
|
|
26
|
+
queryKey: listSuspendedDatabasesRecordKeys.lists(),
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
...mutationOptions,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
@@ -66,6 +66,8 @@ export * from './useIdentityProviderRegistriesQuery';
|
|
|
66
66
|
export * from './useIdentityProviderRegistryQuery';
|
|
67
67
|
export * from './useIndicesQuery';
|
|
68
68
|
export * from './useIndexQuery';
|
|
69
|
+
export * from './useListSuspendedDatabasesQuery';
|
|
70
|
+
export * from './useListSuspendedDatabasesRecordQuery';
|
|
69
71
|
export * from './useManagedDomainsQuery';
|
|
70
72
|
export * from './useManagedDomainQuery';
|
|
71
73
|
export * from './useNodeTypeRegistriesQuery';
|
|
@@ -66,6 +66,8 @@ export * from './useIdentityProviderRegistriesQuery';
|
|
|
66
66
|
export * from './useIdentityProviderRegistryQuery';
|
|
67
67
|
export * from './useIndicesQuery';
|
|
68
68
|
export * from './useIndexQuery';
|
|
69
|
+
export * from './useListSuspendedDatabasesQuery';
|
|
70
|
+
export * from './useListSuspendedDatabasesRecordQuery';
|
|
69
71
|
export * from './useManagedDomainsQuery';
|
|
70
72
|
export * from './useManagedDomainQuery';
|
|
71
73
|
export * from './useNodeTypeRegistriesQuery';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List query hook for ListSuspendedDatabasesRecord
|
|
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 { ListSuspendedDatabasesRecordSelect, ListSuspendedDatabasesRecordWithRelations, ListSuspendedDatabasesRecordFilter, ListSuspendedDatabasesRecordsOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { ListSuspendedDatabasesRecordSelect, ListSuspendedDatabasesRecordWithRelations, ListSuspendedDatabasesRecordFilter, ListSuspendedDatabasesRecordsOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const listSuspendedDatabasesQueryKey: (variables?: object) => readonly ["listsuspendeddatabasesrecord", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Query hook for fetching ListSuspendedDatabasesRecord list
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = useListSuspendedDatabasesQuery({
|
|
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 useListSuspendedDatabasesQuery<S extends ListSuspendedDatabasesRecordSelect, TData = {
|
|
29
|
+
listSuspendedDatabases: ConnectionResult<InferSelectResult<ListSuspendedDatabasesRecordWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, ListSuspendedDatabasesRecordFilter, ListSuspendedDatabasesRecordsOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ListSuspendedDatabasesRecordSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
listSuspendedDatabases: ConnectionResult<InferSelectResult<ListSuspendedDatabasesRecordWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Fetch ListSuspendedDatabasesRecord list without React hooks
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchListSuspendedDatabasesQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchListSuspendedDatabasesQuery<S extends ListSuspendedDatabasesRecordSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, ListSuspendedDatabasesRecordFilter, ListSuspendedDatabasesRecordsOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ListSuspendedDatabasesRecordSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
listSuspendedDatabases: ConnectionResult<InferSelectResult<ListSuspendedDatabasesRecordWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Prefetch ListSuspendedDatabasesRecord list for SSR or cache warming
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchListSuspendedDatabasesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchListSuspendedDatabasesQuery<S extends ListSuspendedDatabasesRecordSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, ListSuspendedDatabasesRecordFilter, ListSuspendedDatabasesRecordsOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, ListSuspendedDatabasesRecordSelect>;
|
|
69
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List query hook for ListSuspendedDatabasesRecord
|
|
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 { buildListSelectionArgs } from '../selection';
|
|
9
|
+
import { listSuspendedDatabasesRecordKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const listSuspendedDatabasesQueryKey = listSuspendedDatabasesRecordKeys.list;
|
|
12
|
+
export function useListSuspendedDatabasesQuery(params) {
|
|
13
|
+
const args = buildListSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: listSuspendedDatabasesRecordKeys.list(args),
|
|
18
|
+
queryFn: () => getClient().listSuspendedDatabasesRecord.findMany(args).unwrap(),
|
|
19
|
+
...queryOptions,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export async function fetchListSuspendedDatabasesQuery(params) {
|
|
23
|
+
const args = buildListSelectionArgs(params.selection);
|
|
24
|
+
return getClient().listSuspendedDatabasesRecord.findMany(args).unwrap();
|
|
25
|
+
}
|
|
26
|
+
export async function prefetchListSuspendedDatabasesQuery(queryClient, params) {
|
|
27
|
+
const args = buildListSelectionArgs(params.selection);
|
|
28
|
+
await queryClient.prefetchQuery({
|
|
29
|
+
queryKey: listSuspendedDatabasesRecordKeys.list(args),
|
|
30
|
+
queryFn: () => getClient().listSuspendedDatabasesRecord.findMany(args).unwrap(),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single item query hook for ListSuspendedDatabasesRecord
|
|
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 { ListSuspendedDatabasesRecordSelect, ListSuspendedDatabasesRecordWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { ListSuspendedDatabasesRecordSelect, ListSuspendedDatabasesRecordWithRelations, } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const listSuspendedDatabasesRecordQueryKey: (id: string | number) => readonly ["listsuspendeddatabasesrecord", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* Query hook for fetching a single ListSuspendedDatabasesRecord
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useListSuspendedDatabasesRecordQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useListSuspendedDatabasesRecordQuery<S extends ListSuspendedDatabasesRecordSelect, TData = {
|
|
24
|
+
listSuspendedDatabasesRecord: InferSelectResult<ListSuspendedDatabasesRecordWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, ListSuspendedDatabasesRecordSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
listSuspendedDatabasesRecord: InferSelectResult<ListSuspendedDatabasesRecordWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* Fetch a single ListSuspendedDatabasesRecord without React hooks
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchListSuspendedDatabasesRecordQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchListSuspendedDatabasesRecordQuery<S extends ListSuspendedDatabasesRecordSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, ListSuspendedDatabasesRecordSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
listSuspendedDatabasesRecord: InferSelectResult<ListSuspendedDatabasesRecordWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Prefetch a single ListSuspendedDatabasesRecord for SSR or cache warming
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchListSuspendedDatabasesRecordQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchListSuspendedDatabasesRecordQuery<S extends ListSuspendedDatabasesRecordSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, ListSuspendedDatabasesRecordSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single item query hook for ListSuspendedDatabasesRecord
|
|
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 { listSuspendedDatabasesRecordKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const listSuspendedDatabasesRecordQueryKey = listSuspendedDatabasesRecordKeys.detail;
|
|
12
|
+
export function useListSuspendedDatabasesRecordQuery(params) {
|
|
13
|
+
const args = buildSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: listSuspendedDatabasesRecordKeys.detail(params.id),
|
|
18
|
+
queryFn: () => getClient()
|
|
19
|
+
.listSuspendedDatabasesRecord.findOne({
|
|
20
|
+
id: params.id,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
...queryOptions,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export async function fetchListSuspendedDatabasesRecordQuery(params) {
|
|
28
|
+
const args = buildSelectionArgs(params.selection);
|
|
29
|
+
return getClient()
|
|
30
|
+
.listSuspendedDatabasesRecord.findOne({
|
|
31
|
+
id: params.id,
|
|
32
|
+
select: args.select,
|
|
33
|
+
})
|
|
34
|
+
.unwrap();
|
|
35
|
+
}
|
|
36
|
+
export async function prefetchListSuspendedDatabasesRecordQuery(queryClient, params) {
|
|
37
|
+
const args = buildSelectionArgs(params.selection);
|
|
38
|
+
await queryClient.prefetchQuery({
|
|
39
|
+
queryKey: listSuspendedDatabasesRecordKeys.detail(params.id),
|
|
40
|
+
queryFn: () => getClient()
|
|
41
|
+
.listSuspendedDatabasesRecord.findOne({
|
|
42
|
+
id: params.id,
|
|
43
|
+
select: args.select,
|
|
44
|
+
})
|
|
45
|
+
.unwrap(),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
@@ -227,6 +227,13 @@ export declare const indexKeys: {
|
|
|
227
227
|
/** Detail query keys */ readonly details: () => readonly ["index", "detail"];
|
|
228
228
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["index", "detail", string | number];
|
|
229
229
|
};
|
|
230
|
+
export declare const listSuspendedDatabasesRecordKeys: {
|
|
231
|
+
/** All listSuspendedDatabasesRecord queries */ readonly all: readonly ["listsuspendeddatabasesrecord"];
|
|
232
|
+
/** List query keys */ readonly lists: () => readonly ["listsuspendeddatabasesrecord", "list"];
|
|
233
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["listsuspendeddatabasesrecord", "list", object];
|
|
234
|
+
/** Detail query keys */ readonly details: () => readonly ["listsuspendeddatabasesrecord", "detail"];
|
|
235
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["listsuspendeddatabasesrecord", "detail", string | number];
|
|
236
|
+
};
|
|
230
237
|
export declare const managedDomainKeys: {
|
|
231
238
|
/** All managedDomain queries */ readonly all: readonly ["manageddomain"];
|
|
232
239
|
/** List query keys */ readonly lists: () => readonly ["manageddomain", "list"];
|
|
@@ -906,6 +913,13 @@ export declare const queryKeys: {
|
|
|
906
913
|
/** Detail query keys */ readonly details: () => readonly ["index", "detail"];
|
|
907
914
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["index", "detail", string | number];
|
|
908
915
|
};
|
|
916
|
+
readonly listSuspendedDatabasesRecord: {
|
|
917
|
+
/** All listSuspendedDatabasesRecord queries */ readonly all: readonly ["listsuspendeddatabasesrecord"];
|
|
918
|
+
/** List query keys */ readonly lists: () => readonly ["listsuspendeddatabasesrecord", "list"];
|
|
919
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["listsuspendeddatabasesrecord", "list", object];
|
|
920
|
+
/** Detail query keys */ readonly details: () => readonly ["listsuspendeddatabasesrecord", "detail"];
|
|
921
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["listsuspendeddatabasesrecord", "detail", string | number];
|
|
922
|
+
};
|
|
909
923
|
readonly managedDomain: {
|
|
910
924
|
/** All managedDomain queries */ readonly all: readonly ["manageddomain"];
|
|
911
925
|
/** List query keys */ readonly lists: () => readonly ["manageddomain", "list"];
|
|
@@ -240,6 +240,13 @@ export const indexKeys = {
|
|
|
240
240
|
/** Detail query keys */ details: () => [...indexKeys.all, 'detail'],
|
|
241
241
|
/** Detail query key for specific item */ detail: (id) => [...indexKeys.details(), id],
|
|
242
242
|
};
|
|
243
|
+
export const listSuspendedDatabasesRecordKeys = {
|
|
244
|
+
/** All listSuspendedDatabasesRecord queries */ all: ['listsuspendeddatabasesrecord'],
|
|
245
|
+
/** List query keys */ lists: () => [...listSuspendedDatabasesRecordKeys.all, 'list'],
|
|
246
|
+
/** List query key with variables */ list: (variables) => [...listSuspendedDatabasesRecordKeys.lists(), variables],
|
|
247
|
+
/** Detail query keys */ details: () => [...listSuspendedDatabasesRecordKeys.all, 'detail'],
|
|
248
|
+
/** Detail query key for specific item */ detail: (id) => [...listSuspendedDatabasesRecordKeys.details(), id],
|
|
249
|
+
};
|
|
243
250
|
export const managedDomainKeys = {
|
|
244
251
|
/** All managedDomain queries */ all: ['manageddomain'],
|
|
245
252
|
/** List query keys */ lists: () => [...managedDomainKeys.all, 'list'],
|
|
@@ -730,6 +737,7 @@ export const queryKeys = {
|
|
|
730
737
|
hostnameBinding: hostnameBindingKeys,
|
|
731
738
|
identityProviderRegistry: identityProviderRegistryKeys,
|
|
732
739
|
index: indexKeys,
|
|
740
|
+
listSuspendedDatabasesRecord: listSuspendedDatabasesRecordKeys,
|
|
733
741
|
managedDomain: managedDomainKeys,
|
|
734
742
|
nodeTypeRegistry: nodeTypeRegistryKeys,
|
|
735
743
|
page: pageKeys,
|
package/esm/api/orm/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ import { GetSitePreviewsRecordModel } from './models/getSitePreviewsRecord';
|
|
|
31
31
|
import { HostnameBindingModel } from './models/hostnameBinding';
|
|
32
32
|
import { IdentityProviderRegistryModel } from './models/identityProviderRegistry';
|
|
33
33
|
import { IndexModel } from './models/index';
|
|
34
|
+
import { ListSuspendedDatabasesRecordModel } from './models/listSuspendedDatabasesRecord';
|
|
34
35
|
import { ManagedDomainModel } from './models/managedDomain';
|
|
35
36
|
import { NodeTypeRegistryModel } from './models/nodeTypeRegistry';
|
|
36
37
|
import { PageModel } from './models/page';
|
|
@@ -153,6 +154,7 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
153
154
|
hostnameBinding: HostnameBindingModel;
|
|
154
155
|
identityProviderRegistry: IdentityProviderRegistryModel;
|
|
155
156
|
index: IndexModel;
|
|
157
|
+
listSuspendedDatabasesRecord: ListSuspendedDatabasesRecordModel;
|
|
156
158
|
managedDomain: ManagedDomainModel;
|
|
157
159
|
nodeTypeRegistry: NodeTypeRegistryModel;
|
|
158
160
|
page: PageModel;
|
package/esm/api/orm/index.js
CHANGED
|
@@ -36,6 +36,7 @@ import { GetSitePreviewsRecordModel } from './models/getSitePreviewsRecord';
|
|
|
36
36
|
import { HostnameBindingModel } from './models/hostnameBinding';
|
|
37
37
|
import { IdentityProviderRegistryModel } from './models/identityProviderRegistry';
|
|
38
38
|
import { IndexModel } from './models/index';
|
|
39
|
+
import { ListSuspendedDatabasesRecordModel } from './models/listSuspendedDatabasesRecord';
|
|
39
40
|
import { ManagedDomainModel } from './models/managedDomain';
|
|
40
41
|
import { NodeTypeRegistryModel } from './models/nodeTypeRegistry';
|
|
41
42
|
import { PageModel } from './models/page';
|
|
@@ -161,6 +162,7 @@ export function createClient(config) {
|
|
|
161
162
|
hostnameBinding: new HostnameBindingModel(client),
|
|
162
163
|
identityProviderRegistry: new IdentityProviderRegistryModel(client),
|
|
163
164
|
index: new IndexModel(client),
|
|
165
|
+
listSuspendedDatabasesRecord: new ListSuspendedDatabasesRecordModel(client),
|
|
164
166
|
managedDomain: new ManagedDomainModel(client),
|
|
165
167
|
nodeTypeRegistry: new NodeTypeRegistryModel(client),
|
|
166
168
|
page: new PageModel(client),
|