@constructive-io/react 1.19.6 → 1.19.8
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
|
@@ -453,7 +453,7 @@ export interface AgentRun {
|
|
|
453
453
|
databaseId?: string | null;
|
|
454
454
|
/** When a supervisor should consider this run abandoned */
|
|
455
455
|
deadlineAt?: string | null;
|
|
456
|
-
/** Entity billed for this run:
|
|
456
|
+
/** Entity billed for this run: the database it executes in (rolls up to the database owner) */
|
|
457
457
|
entityId?: string | null;
|
|
458
458
|
/** Failure reason when status is failed */
|
|
459
459
|
error?: string | null;
|
|
@@ -804,7 +804,7 @@ export interface PlatformAgentRun {
|
|
|
804
804
|
databaseId?: string | null;
|
|
805
805
|
/** When a supervisor should consider this run abandoned */
|
|
806
806
|
deadlineAt?: string | null;
|
|
807
|
-
/** Entity billed for this run:
|
|
807
|
+
/** Entity billed for this run: the database it executes in (rolls up to the database owner) */
|
|
808
808
|
entityId?: string | null;
|
|
809
809
|
/** Failure reason when status is failed */
|
|
810
810
|
error?: string | null;
|
|
@@ -4423,7 +4423,7 @@ export interface AgentRunInput {
|
|
|
4423
4423
|
createdAt?: string;
|
|
4424
4424
|
/** When a supervisor should consider this run abandoned */
|
|
4425
4425
|
deadlineAt?: string;
|
|
4426
|
-
/** Entity billed for this run:
|
|
4426
|
+
/** Entity billed for this run: the database it executes in (rolls up to the database owner) */
|
|
4427
4427
|
entityId?: string;
|
|
4428
4428
|
/** Failure reason when status is failed */
|
|
4429
4429
|
error?: string;
|
|
@@ -4739,7 +4739,7 @@ export interface PlatformAgentRunInput {
|
|
|
4739
4739
|
databaseId?: string;
|
|
4740
4740
|
/** When a supervisor should consider this run abandoned */
|
|
4741
4741
|
deadlineAt?: string;
|
|
4742
|
-
/** Entity billed for this run:
|
|
4742
|
+
/** Entity billed for this run: the database it executes in (rolls up to the database owner) */
|
|
4743
4743
|
entityId?: string;
|
|
4744
4744
|
/** Failure reason when status is failed */
|
|
4745
4745
|
error?: string;
|
package/agent/schema-types.d.ts
CHANGED
|
@@ -906,7 +906,7 @@ export interface AgentRunInput {
|
|
|
906
906
|
createdAt?: string;
|
|
907
907
|
/** When a supervisor should consider this run abandoned */
|
|
908
908
|
deadlineAt?: string;
|
|
909
|
-
/** Entity billed for this run:
|
|
909
|
+
/** Entity billed for this run: the database it executes in (rolls up to the database owner) */
|
|
910
910
|
entityId?: string;
|
|
911
911
|
/** Failure reason when status is failed */
|
|
912
912
|
error?: string;
|
|
@@ -956,7 +956,7 @@ export interface AgentRunPatch {
|
|
|
956
956
|
databaseId?: string;
|
|
957
957
|
/** When a supervisor should consider this run abandoned */
|
|
958
958
|
deadlineAt?: string;
|
|
959
|
-
/** Entity billed for this run:
|
|
959
|
+
/** Entity billed for this run: the database it executes in (rolls up to the database owner) */
|
|
960
960
|
entityId?: string;
|
|
961
961
|
/** Failure reason when status is failed */
|
|
962
962
|
error?: string;
|
|
@@ -2482,7 +2482,7 @@ export interface PlatformAgentRunInput {
|
|
|
2482
2482
|
databaseId?: string;
|
|
2483
2483
|
/** When a supervisor should consider this run abandoned */
|
|
2484
2484
|
deadlineAt?: string;
|
|
2485
|
-
/** Entity billed for this run:
|
|
2485
|
+
/** Entity billed for this run: the database it executes in (rolls up to the database owner) */
|
|
2486
2486
|
entityId?: string;
|
|
2487
2487
|
/** Failure reason when status is failed */
|
|
2488
2488
|
error?: string;
|
|
@@ -2532,7 +2532,7 @@ export interface PlatformAgentRunPatch {
|
|
|
2532
2532
|
databaseId?: string;
|
|
2533
2533
|
/** When a supervisor should consider this run abandoned */
|
|
2534
2534
|
deadlineAt?: string;
|
|
2535
|
-
/** Entity billed for this run:
|
|
2535
|
+
/** Entity billed for this run: the database it executes in (rolls up to the database owner) */
|
|
2536
2536
|
entityId?: string;
|
|
2537
2537
|
/** Failure reason when status is failed */
|
|
2538
2538
|
error?: string;
|
package/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/api/hooks/index.js
CHANGED
|
@@ -18,7 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
* GraphQL SDK
|
|
19
19
|
* @generated by @constructive-io/graphql-codegen
|
|
20
20
|
*
|
|
21
|
-
* 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
|
|
21
|
+
* 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
|
|
22
22
|
*
|
|
23
23
|
* Usage:
|
|
24
24
|
*
|
|
@@ -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;
|
|
@@ -379,6 +379,17 @@ exports.invalidate = {
|
|
|
379
379
|
queryKey: query_keys_1.indexKeys.detail(id),
|
|
380
380
|
}),
|
|
381
381
|
},
|
|
382
|
+
/** Invalidate listSuspendedDatabasesRecord queries */ listSuspendedDatabasesRecord: {
|
|
383
|
+
/** Invalidate all listSuspendedDatabasesRecord queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
384
|
+
queryKey: query_keys_1.listSuspendedDatabasesRecordKeys.all,
|
|
385
|
+
}),
|
|
386
|
+
/** Invalidate listSuspendedDatabasesRecord list queries */ lists: (queryClient) => queryClient.invalidateQueries({
|
|
387
|
+
queryKey: query_keys_1.listSuspendedDatabasesRecordKeys.lists(),
|
|
388
|
+
}),
|
|
389
|
+
/** Invalidate a specific listSuspendedDatabasesRecord */ detail: (queryClient, id) => queryClient.invalidateQueries({
|
|
390
|
+
queryKey: query_keys_1.listSuspendedDatabasesRecordKeys.detail(id),
|
|
391
|
+
}),
|
|
392
|
+
},
|
|
382
393
|
/** Invalidate managedDomain queries */ managedDomain: {
|
|
383
394
|
/** Invalidate all managedDomain queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
384
395
|
queryKey: query_keys_1.managedDomainKeys.all,
|
|
@@ -1201,6 +1212,11 @@ exports.remove = {
|
|
|
1201
1212
|
queryKey: query_keys_1.indexKeys.detail(id),
|
|
1202
1213
|
});
|
|
1203
1214
|
},
|
|
1215
|
+
/** Remove listSuspendedDatabasesRecord from cache */ listSuspendedDatabasesRecord: (queryClient, id) => {
|
|
1216
|
+
queryClient.removeQueries({
|
|
1217
|
+
queryKey: query_keys_1.listSuspendedDatabasesRecordKeys.detail(id),
|
|
1218
|
+
});
|
|
1219
|
+
},
|
|
1204
1220
|
/** Remove managedDomain from cache */ managedDomain: (queryClient, id) => {
|
|
1205
1221
|
queryClient.removeQueries({
|
|
1206
1222
|
queryKey: query_keys_1.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"];
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* DO NOT EDIT - changes will be overwritten
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.mutationKeys = exports.customMutationKeys = exports.webauthnSettingMutationKeys = exports.viewTableMutationKeys = exports.viewRuleMutationKeys = exports.viewGrantMutationKeys = exports.viewMutationKeys = exports.viewBehaviorMutationKeys = exports.uniqueConstraintMutationKeys = exports.uniqueConstraintBehaviorMutationKeys = exports.triggerFunctionMutationKeys = exports.triggerMutationKeys = exports.tableGrantMutationKeys = exports.tableMutationKeys = exports.tableBehaviorMutationKeys = exports.sqlActionMutationKeys = exports.spatialRelationMutationKeys = exports.siteWebConfigMutationKeys = exports.siteThemeMutationKeys = exports.siteReleaseMutationKeys = exports.siteModuleMutationKeys = exports.siteMetadatumMutationKeys = exports.siteErrorPageMutationKeys = exports.siteDeepLinkMutationKeys = exports.siteMutationKeys = exports.siteAppLinkMutationKeys = exports.schemaGrantMutationKeys = exports.schemaMutationKeys = exports.routeMutationKeys = exports.routeBindingMutationKeys = exports.rlsSettingMutationKeys = exports.redirectMutationKeys = exports.pubkeySettingMutationKeys = exports.primaryKeyConstraintMutationKeys = exports.policyMutationKeys = exports.platformSiteWebConfigMutationKeys = exports.platformSiteThemeMutationKeys = exports.platformSiteReleaseMutationKeys = exports.platformSiteModuleMutationKeys = exports.platformSiteMetadatumMutationKeys = exports.platformSiteErrorPageMutationKeys = exports.platformSiteDeepLinkMutationKeys = exports.platformSiteMutationKeys = void 0;
|
|
8
|
+
exports.platformPageMutationKeys = exports.platformManagedDomainMutationKeys = exports.platformGetSitePreviewsRecordMutationKeys = exports.platformEmailSiteIdentityMutationKeys = exports.platformEmailProviderAccountMutationKeys = exports.platformEmailIdentityMutationKeys = exports.platformDomainVerificationMutationKeys = exports.platformDomainEventMutationKeys = exports.platformDomainMutationKeys = exports.platformCorsSettingMutationKeys = exports.platformApiSettingMutationKeys = exports.platformApiSchemaMutationKeys = exports.platformApiMutationKeys = exports.partitionMutationKeys = exports.pageMutationKeys = exports.nodeTypeRegistryMutationKeys = exports.managedDomainMutationKeys = exports.listSuspendedDatabasesRecordMutationKeys = exports.indexMutationKeys = exports.identityProviderRegistryMutationKeys = exports.hostnameBindingMutationKeys = exports.getSitePreviewsRecordMutationKeys = exports.functionMutationKeys = exports.fullTextSearchMutationKeys = exports.foreignKeyConstraintMutationKeys = exports.foreignKeyConstraintBehaviorMutationKeys = exports.fieldMutationKeys = exports.fieldBehaviorMutationKeys = exports.exclusionConstraintMutationKeys = exports.enumMutationKeys = exports.embeddingChunkMutationKeys = exports.emailSiteIdentityMutationKeys = exports.emailProviderAccountMutationKeys = exports.emailIdentityMutationKeys = exports.domainVerificationMutationKeys = exports.domainTypeMutationKeys = exports.domainEventMutationKeys = exports.domainMutationKeys = exports.deriveMutationKeys = exports.defaultPrivilegeMutationKeys = exports.databaseTransferMutationKeys = exports.databaseSettingMutationKeys = exports.databaseMutationKeys = exports.corsSettingMutationKeys = exports.compositeTypeMutationKeys = exports.checkConstraintMutationKeys = exports.astMigrationMutationKeys = exports.apiSettingMutationKeys = exports.apiSchemaMutationKeys = exports.apiMutationKeys = void 0;
|
|
9
|
+
exports.mutationKeys = exports.customMutationKeys = exports.webauthnSettingMutationKeys = exports.viewTableMutationKeys = exports.viewRuleMutationKeys = exports.viewGrantMutationKeys = exports.viewMutationKeys = exports.viewBehaviorMutationKeys = exports.uniqueConstraintMutationKeys = exports.uniqueConstraintBehaviorMutationKeys = exports.triggerFunctionMutationKeys = exports.triggerMutationKeys = exports.tableGrantMutationKeys = exports.tableMutationKeys = exports.tableBehaviorMutationKeys = exports.sqlActionMutationKeys = exports.spatialRelationMutationKeys = exports.siteWebConfigMutationKeys = exports.siteThemeMutationKeys = exports.siteReleaseMutationKeys = exports.siteModuleMutationKeys = exports.siteMetadatumMutationKeys = exports.siteErrorPageMutationKeys = exports.siteDeepLinkMutationKeys = exports.siteMutationKeys = exports.siteAppLinkMutationKeys = exports.schemaGrantMutationKeys = exports.schemaMutationKeys = exports.routeMutationKeys = exports.routeBindingMutationKeys = exports.rlsSettingMutationKeys = exports.redirectMutationKeys = exports.pubkeySettingMutationKeys = exports.primaryKeyConstraintMutationKeys = exports.policyMutationKeys = exports.platformSiteWebConfigMutationKeys = exports.platformSiteThemeMutationKeys = exports.platformSiteReleaseMutationKeys = exports.platformSiteModuleMutationKeys = exports.platformSiteMetadatumMutationKeys = exports.platformSiteErrorPageMutationKeys = exports.platformSiteDeepLinkMutationKeys = exports.platformSiteMutationKeys = exports.platformSiteAppLinkMutationKeys = void 0;
|
|
10
10
|
// ============================================================================
|
|
11
11
|
// Mutation keys for tracking in-flight mutations
|
|
12
12
|
//
|
|
@@ -220,6 +220,15 @@ exports.indexMutationKeys = {
|
|
|
220
220
|
/** Update index mutation key */ update: (id) => ['mutation', 'index', 'update', id],
|
|
221
221
|
/** Delete index mutation key */ delete: (id) => ['mutation', 'index', 'delete', id],
|
|
222
222
|
};
|
|
223
|
+
exports.listSuspendedDatabasesRecordMutationKeys = {
|
|
224
|
+
/** All listSuspendedDatabasesRecord mutation keys */ all: [
|
|
225
|
+
'mutation',
|
|
226
|
+
'listsuspendeddatabasesrecord',
|
|
227
|
+
],
|
|
228
|
+
/** Create listSuspendedDatabasesRecord mutation key */ create: () => ['mutation', 'listsuspendeddatabasesrecord', 'create'],
|
|
229
|
+
/** Update listSuspendedDatabasesRecord mutation key */ update: (id) => ['mutation', 'listsuspendeddatabasesrecord', 'update', id],
|
|
230
|
+
/** Delete listSuspendedDatabasesRecord mutation key */ delete: (id) => ['mutation', 'listsuspendeddatabasesrecord', 'delete', id],
|
|
231
|
+
};
|
|
223
232
|
exports.managedDomainMutationKeys = {
|
|
224
233
|
/** All managedDomain mutation keys */ all: ['mutation', 'manageddomain'],
|
|
225
234
|
/** Create managedDomain mutation key */ create: () => ['mutation', 'manageddomain', 'create'],
|
|
@@ -751,6 +760,7 @@ exports.mutationKeys = {
|
|
|
751
760
|
hostnameBinding: exports.hostnameBindingMutationKeys,
|
|
752
761
|
identityProviderRegistry: exports.identityProviderRegistryMutationKeys,
|
|
753
762
|
index: exports.indexMutationKeys,
|
|
763
|
+
listSuspendedDatabasesRecord: exports.listSuspendedDatabasesRecordMutationKeys,
|
|
754
764
|
managedDomain: exports.managedDomainMutationKeys,
|
|
755
765
|
nodeTypeRegistry: exports.nodeTypeRegistryMutationKeys,
|
|
756
766
|
page: exports.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';
|
|
@@ -111,6 +111,7 @@ __exportStar(require("./useDeleteIdentityProviderRegistryMutation"), exports);
|
|
|
111
111
|
__exportStar(require("./useCreateIndexMutation"), exports);
|
|
112
112
|
__exportStar(require("./useUpdateIndexMutation"), exports);
|
|
113
113
|
__exportStar(require("./useDeleteIndexMutation"), exports);
|
|
114
|
+
__exportStar(require("./useCreateListSuspendedDatabasesRecordMutation"), exports);
|
|
114
115
|
__exportStar(require("./useCreateManagedDomainMutation"), exports);
|
|
115
116
|
__exportStar(require("./useUpdateManagedDomainMutation"), exports);
|
|
116
117
|
__exportStar(require("./useDeleteManagedDomainMutation"), exports);
|
|
@@ -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,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Create mutation hook for ListSuspendedDatabasesRecord
|
|
4
|
+
* @generated by @constructive-io/graphql-codegen
|
|
5
|
+
* DO NOT EDIT - changes will be overwritten
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.useCreateListSuspendedDatabasesRecordMutation = useCreateListSuspendedDatabasesRecordMutation;
|
|
9
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
10
|
+
const client_1 = require("../client");
|
|
11
|
+
const selection_1 = require("../selection");
|
|
12
|
+
const query_keys_1 = require("../query-keys");
|
|
13
|
+
const mutation_keys_1 = require("../mutation-keys");
|
|
14
|
+
function useCreateListSuspendedDatabasesRecordMutation(params) {
|
|
15
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
16
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
17
|
+
void _selection;
|
|
18
|
+
const queryClient = (0, react_query_1.useQueryClient)();
|
|
19
|
+
return (0, react_query_1.useMutation)({
|
|
20
|
+
mutationKey: mutation_keys_1.listSuspendedDatabasesRecordMutationKeys.create(),
|
|
21
|
+
mutationFn: (data) => (0, client_1.getClient)()
|
|
22
|
+
.listSuspendedDatabasesRecord.create({
|
|
23
|
+
data,
|
|
24
|
+
select: args.select,
|
|
25
|
+
})
|
|
26
|
+
.unwrap(),
|
|
27
|
+
onSuccess: () => {
|
|
28
|
+
queryClient.invalidateQueries({
|
|
29
|
+
queryKey: query_keys_1.listSuspendedDatabasesRecordKeys.lists(),
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
...mutationOptions,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
@@ -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';
|
|
@@ -82,6 +82,8 @@ __exportStar(require("./useIdentityProviderRegistriesQuery"), exports);
|
|
|
82
82
|
__exportStar(require("./useIdentityProviderRegistryQuery"), exports);
|
|
83
83
|
__exportStar(require("./useIndicesQuery"), exports);
|
|
84
84
|
__exportStar(require("./useIndexQuery"), exports);
|
|
85
|
+
__exportStar(require("./useListSuspendedDatabasesQuery"), exports);
|
|
86
|
+
__exportStar(require("./useListSuspendedDatabasesRecordQuery"), exports);
|
|
85
87
|
__exportStar(require("./useManagedDomainsQuery"), exports);
|
|
86
88
|
__exportStar(require("./useManagedDomainQuery"), exports);
|
|
87
89
|
__exportStar(require("./useNodeTypeRegistriesQuery"), exports);
|
|
@@ -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,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* List query hook for ListSuspendedDatabasesRecord
|
|
4
|
+
* @generated by @constructive-io/graphql-codegen
|
|
5
|
+
* DO NOT EDIT - changes will be overwritten
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.listSuspendedDatabasesQueryKey = void 0;
|
|
9
|
+
exports.useListSuspendedDatabasesQuery = useListSuspendedDatabasesQuery;
|
|
10
|
+
exports.fetchListSuspendedDatabasesQuery = fetchListSuspendedDatabasesQuery;
|
|
11
|
+
exports.prefetchListSuspendedDatabasesQuery = prefetchListSuspendedDatabasesQuery;
|
|
12
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
13
|
+
const client_1 = require("../client");
|
|
14
|
+
const selection_1 = require("../selection");
|
|
15
|
+
const query_keys_1 = require("../query-keys");
|
|
16
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
17
|
+
exports.listSuspendedDatabasesQueryKey = query_keys_1.listSuspendedDatabasesRecordKeys.list;
|
|
18
|
+
function useListSuspendedDatabasesQuery(params) {
|
|
19
|
+
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
20
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
21
|
+
void _selection;
|
|
22
|
+
return (0, react_query_1.useQuery)({
|
|
23
|
+
queryKey: query_keys_1.listSuspendedDatabasesRecordKeys.list(args),
|
|
24
|
+
queryFn: () => (0, client_1.getClient)().listSuspendedDatabasesRecord.findMany(args).unwrap(),
|
|
25
|
+
...queryOptions,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
async function fetchListSuspendedDatabasesQuery(params) {
|
|
29
|
+
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
30
|
+
return (0, client_1.getClient)().listSuspendedDatabasesRecord.findMany(args).unwrap();
|
|
31
|
+
}
|
|
32
|
+
async function prefetchListSuspendedDatabasesQuery(queryClient, params) {
|
|
33
|
+
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
34
|
+
await queryClient.prefetchQuery({
|
|
35
|
+
queryKey: query_keys_1.listSuspendedDatabasesRecordKeys.list(args),
|
|
36
|
+
queryFn: () => (0, client_1.getClient)().listSuspendedDatabasesRecord.findMany(args).unwrap(),
|
|
37
|
+
});
|
|
38
|
+
}
|
|
@@ -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,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Single item query hook for ListSuspendedDatabasesRecord
|
|
4
|
+
* @generated by @constructive-io/graphql-codegen
|
|
5
|
+
* DO NOT EDIT - changes will be overwritten
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.listSuspendedDatabasesRecordQueryKey = void 0;
|
|
9
|
+
exports.useListSuspendedDatabasesRecordQuery = useListSuspendedDatabasesRecordQuery;
|
|
10
|
+
exports.fetchListSuspendedDatabasesRecordQuery = fetchListSuspendedDatabasesRecordQuery;
|
|
11
|
+
exports.prefetchListSuspendedDatabasesRecordQuery = prefetchListSuspendedDatabasesRecordQuery;
|
|
12
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
13
|
+
const client_1 = require("../client");
|
|
14
|
+
const selection_1 = require("../selection");
|
|
15
|
+
const query_keys_1 = require("../query-keys");
|
|
16
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
17
|
+
exports.listSuspendedDatabasesRecordQueryKey = query_keys_1.listSuspendedDatabasesRecordKeys.detail;
|
|
18
|
+
function useListSuspendedDatabasesRecordQuery(params) {
|
|
19
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
20
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
21
|
+
void _selection;
|
|
22
|
+
return (0, react_query_1.useQuery)({
|
|
23
|
+
queryKey: query_keys_1.listSuspendedDatabasesRecordKeys.detail(params.id),
|
|
24
|
+
queryFn: () => (0, client_1.getClient)()
|
|
25
|
+
.listSuspendedDatabasesRecord.findOne({
|
|
26
|
+
id: params.id,
|
|
27
|
+
select: args.select,
|
|
28
|
+
})
|
|
29
|
+
.unwrap(),
|
|
30
|
+
...queryOptions,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
async function fetchListSuspendedDatabasesRecordQuery(params) {
|
|
34
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
35
|
+
return (0, client_1.getClient)()
|
|
36
|
+
.listSuspendedDatabasesRecord.findOne({
|
|
37
|
+
id: params.id,
|
|
38
|
+
select: args.select,
|
|
39
|
+
})
|
|
40
|
+
.unwrap();
|
|
41
|
+
}
|
|
42
|
+
async function prefetchListSuspendedDatabasesRecordQuery(queryClient, params) {
|
|
43
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
44
|
+
await queryClient.prefetchQuery({
|
|
45
|
+
queryKey: query_keys_1.listSuspendedDatabasesRecordKeys.detail(params.id),
|
|
46
|
+
queryFn: () => (0, client_1.getClient)()
|
|
47
|
+
.listSuspendedDatabasesRecord.findOne({
|
|
48
|
+
id: params.id,
|
|
49
|
+
select: args.select,
|
|
50
|
+
})
|
|
51
|
+
.unwrap(),
|
|
52
|
+
});
|
|
53
|
+
}
|
|
@@ -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"];
|