@constructive-io/react 1.20.5 → 1.20.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/orm/input-types.d.ts +4 -4
- package/admin/orm/mutation/index.d.ts +5 -4
- package/admin/schema-types.d.ts +3 -3
- package/agent/orm/input-types.d.ts +4 -4
- package/agent/orm/mutation/index.d.ts +5 -4
- package/agent/schema-types.d.ts +3 -3
- package/api/hooks/index.d.ts +1 -1
- package/api/hooks/index.js +1 -1
- package/api/hooks/invalidation.d.ts +0 -12
- package/api/hooks/invalidation.js +0 -32
- package/api/hooks/mutation-keys.d.ts +4 -24
- package/api/hooks/mutation-keys.js +8 -16
- package/api/hooks/mutations/index.d.ts +2 -6
- package/api/hooks/mutations/index.js +2 -6
- package/api/hooks/mutations/useCreateFunctionFromSourceMutation.d.ts +20 -0
- package/api/hooks/mutations/{useCreateHostnameBindingMutation.js → useCreateFunctionFromSourceMutation.js} +6 -14
- package/api/hooks/mutations/useUpdateFunctionFromSourceMutation.d.ts +20 -0
- package/api/hooks/mutations/useUpdateFunctionFromSourceMutation.js +26 -0
- package/api/hooks/queries/index.d.ts +1 -4
- package/api/hooks/queries/index.js +1 -4
- package/api/hooks/queries/useEmailSharedAccountQuery.d.ts +45 -0
- package/api/hooks/queries/useEmailSharedAccountQuery.js +49 -0
- package/api/hooks/query-keys.d.ts +2 -28
- package/api/hooks/query-keys.js +3 -18
- package/api/orm/index.d.ts +15 -4
- package/api/orm/index.js +0 -4
- package/api/orm/input-types.d.ts +96 -439
- package/api/orm/models/index.d.ts +0 -2
- package/api/orm/models/index.js +2 -6
- package/api/orm/mutation/index.d.ts +30 -5
- package/api/orm/mutation/index.js +24 -0
- package/api/orm/query/index.d.ts +5 -0
- package/api/orm/query/index.js +7 -0
- package/api/schema-types.d.ts +39 -273
- package/api/types.d.ts +3 -28
- package/auth/orm/input-types.d.ts +5 -29
- package/auth/orm/mutation/index.d.ts +5 -4
- package/auth/schema-types.d.ts +4 -16
- package/compute/orm/input-types.d.ts +50 -6
- package/compute/orm/mutation/index.d.ts +5 -4
- package/compute/schema-types.d.ts +29 -5
- package/compute/types.d.ts +4 -0
- package/config/orm/input-types.d.ts +4 -4
- package/config/orm/mutation/index.d.ts +5 -4
- package/config/schema-types.d.ts +3 -3
- package/esm/admin/orm/input-types.d.ts +4 -4
- package/esm/admin/orm/mutation/index.d.ts +5 -4
- package/esm/admin/schema-types.d.ts +3 -3
- package/esm/agent/orm/input-types.d.ts +4 -4
- package/esm/agent/orm/mutation/index.d.ts +5 -4
- package/esm/agent/schema-types.d.ts +3 -3
- package/esm/api/hooks/index.d.ts +1 -1
- package/esm/api/hooks/index.js +1 -1
- package/esm/api/hooks/invalidation.d.ts +0 -12
- package/esm/api/hooks/invalidation.js +1 -33
- package/esm/api/hooks/mutation-keys.d.ts +4 -24
- package/esm/api/hooks/mutation-keys.js +6 -14
- package/esm/api/hooks/mutations/index.d.ts +2 -6
- package/esm/api/hooks/mutations/index.js +2 -6
- package/esm/api/hooks/mutations/useCreateFunctionFromSourceMutation.d.ts +20 -0
- package/esm/api/hooks/mutations/useCreateFunctionFromSourceMutation.js +23 -0
- package/esm/api/hooks/mutations/useUpdateFunctionFromSourceMutation.d.ts +20 -0
- package/esm/api/hooks/mutations/useUpdateFunctionFromSourceMutation.js +23 -0
- package/esm/api/hooks/queries/index.d.ts +1 -4
- package/esm/api/hooks/queries/index.js +1 -4
- package/esm/api/hooks/queries/useEmailSharedAccountQuery.d.ts +45 -0
- package/esm/api/hooks/queries/useEmailSharedAccountQuery.js +43 -0
- package/esm/api/hooks/query-keys.d.ts +2 -28
- package/esm/api/hooks/query-keys.js +1 -16
- package/esm/api/orm/index.d.ts +15 -4
- package/esm/api/orm/index.js +0 -4
- package/esm/api/orm/input-types.d.ts +96 -439
- package/esm/api/orm/models/index.d.ts +0 -2
- package/esm/api/orm/models/index.js +0 -2
- package/esm/api/orm/mutation/index.d.ts +30 -5
- package/esm/api/orm/mutation/index.js +24 -0
- package/esm/api/orm/query/index.d.ts +5 -0
- package/esm/api/orm/query/index.js +7 -0
- package/esm/api/schema-types.d.ts +39 -273
- package/esm/api/types.d.ts +3 -28
- package/esm/auth/orm/input-types.d.ts +5 -29
- package/esm/auth/orm/mutation/index.d.ts +5 -4
- package/esm/auth/schema-types.d.ts +4 -16
- package/esm/compute/orm/input-types.d.ts +50 -6
- package/esm/compute/orm/mutation/index.d.ts +5 -4
- package/esm/compute/schema-types.d.ts +29 -5
- package/esm/compute/types.d.ts +4 -0
- package/esm/config/orm/input-types.d.ts +4 -4
- package/esm/config/orm/mutation/index.d.ts +5 -4
- package/esm/config/schema-types.d.ts +3 -3
- package/esm/infra/orm/input-types.d.ts +4 -4
- package/esm/infra/orm/mutation/index.d.ts +5 -4
- package/esm/infra/schema-types.d.ts +3 -3
- package/esm/modules/orm/input-types.d.ts +72 -21
- package/esm/modules/orm/mutation/index.d.ts +6 -5
- package/esm/modules/schema-types.d.ts +41 -15
- package/esm/modules/types.d.ts +8 -1
- package/esm/objects/orm/input-types.d.ts +4 -4
- package/esm/objects/orm/mutation/index.d.ts +5 -4
- package/esm/objects/schema-types.d.ts +3 -3
- package/esm/remote/orm/input-types.d.ts +4 -4
- package/esm/remote/orm/mutation/index.d.ts +5 -4
- package/esm/remote/schema-types.d.ts +3 -3
- package/esm/storage/orm/input-types.d.ts +34 -6
- package/esm/storage/orm/mutation/index.d.ts +7 -6
- package/esm/storage/schema-types.d.ts +17 -5
- package/esm/storage/types.d.ts +4 -0
- package/esm/usage/orm/input-types.d.ts +4 -4
- package/esm/usage/orm/mutation/index.d.ts +5 -4
- package/esm/usage/schema-types.d.ts +3 -3
- package/infra/orm/input-types.d.ts +4 -4
- package/infra/orm/mutation/index.d.ts +5 -4
- package/infra/schema-types.d.ts +3 -3
- package/modules/orm/input-types.d.ts +72 -21
- package/modules/orm/mutation/index.d.ts +6 -5
- package/modules/schema-types.d.ts +41 -15
- package/modules/types.d.ts +8 -1
- package/objects/orm/input-types.d.ts +4 -4
- package/objects/orm/mutation/index.d.ts +5 -4
- package/objects/schema-types.d.ts +3 -3
- package/package.json +2 -2
- package/remote/orm/input-types.d.ts +4 -4
- package/remote/orm/mutation/index.d.ts +5 -4
- package/remote/schema-types.d.ts +3 -3
- package/storage/orm/input-types.d.ts +34 -6
- package/storage/orm/mutation/index.d.ts +7 -6
- package/storage/schema-types.d.ts +17 -5
- package/storage/types.d.ts +4 -0
- package/usage/orm/input-types.d.ts +4 -4
- package/usage/orm/mutation/index.d.ts +5 -4
- package/usage/schema-types.d.ts +3 -3
- package/api/hooks/mutations/useCreateHostnameBindingMutation.d.ts +0 -34
- package/api/hooks/mutations/useCreateRouteBindingMutation.d.ts +0 -34
- package/api/hooks/mutations/useCreateRouteBindingMutation.js +0 -34
- package/api/hooks/mutations/useDeleteHostnameBindingMutation.d.ts +0 -38
- package/api/hooks/mutations/useDeleteHostnameBindingMutation.js +0 -39
- package/api/hooks/mutations/useDeleteRouteBindingMutation.d.ts +0 -38
- package/api/hooks/mutations/useDeleteRouteBindingMutation.js +0 -39
- package/api/hooks/mutations/useUpdateHostnameBindingMutation.d.ts +0 -40
- package/api/hooks/mutations/useUpdateHostnameBindingMutation.js +0 -40
- package/api/hooks/mutations/useUpdateRouteBindingMutation.d.ts +0 -40
- package/api/hooks/mutations/useUpdateRouteBindingMutation.js +0 -40
- package/api/hooks/queries/useHostnameBindingQuery.d.ts +0 -65
- package/api/hooks/queries/useHostnameBindingQuery.js +0 -53
- package/api/hooks/queries/useHostnameBindingsQuery.d.ts +0 -69
- package/api/hooks/queries/useHostnameBindingsQuery.js +0 -38
- package/api/hooks/queries/useRouteBindingQuery.d.ts +0 -65
- package/api/hooks/queries/useRouteBindingQuery.js +0 -53
- package/api/hooks/queries/useRouteBindingsQuery.d.ts +0 -69
- package/api/hooks/queries/useRouteBindingsQuery.js +0 -38
- package/api/orm/models/hostnameBinding.d.ts +0 -54
- package/api/orm/models/hostnameBinding.js +0 -104
- package/api/orm/models/routeBinding.d.ts +0 -54
- package/api/orm/models/routeBinding.js +0 -104
- package/esm/api/hooks/mutations/useCreateHostnameBindingMutation.d.ts +0 -34
- package/esm/api/hooks/mutations/useCreateHostnameBindingMutation.js +0 -31
- package/esm/api/hooks/mutations/useCreateRouteBindingMutation.d.ts +0 -34
- package/esm/api/hooks/mutations/useCreateRouteBindingMutation.js +0 -31
- package/esm/api/hooks/mutations/useDeleteHostnameBindingMutation.d.ts +0 -38
- package/esm/api/hooks/mutations/useDeleteHostnameBindingMutation.js +0 -36
- package/esm/api/hooks/mutations/useDeleteRouteBindingMutation.d.ts +0 -38
- package/esm/api/hooks/mutations/useDeleteRouteBindingMutation.js +0 -36
- package/esm/api/hooks/mutations/useUpdateHostnameBindingMutation.d.ts +0 -40
- package/esm/api/hooks/mutations/useUpdateHostnameBindingMutation.js +0 -37
- package/esm/api/hooks/mutations/useUpdateRouteBindingMutation.d.ts +0 -40
- package/esm/api/hooks/mutations/useUpdateRouteBindingMutation.js +0 -37
- package/esm/api/hooks/queries/useHostnameBindingQuery.d.ts +0 -65
- package/esm/api/hooks/queries/useHostnameBindingQuery.js +0 -47
- package/esm/api/hooks/queries/useHostnameBindingsQuery.d.ts +0 -69
- package/esm/api/hooks/queries/useHostnameBindingsQuery.js +0 -32
- package/esm/api/hooks/queries/useRouteBindingQuery.d.ts +0 -65
- package/esm/api/hooks/queries/useRouteBindingQuery.js +0 -47
- package/esm/api/hooks/queries/useRouteBindingsQuery.d.ts +0 -69
- package/esm/api/hooks/queries/useRouteBindingsQuery.js +0 -32
- package/esm/api/orm/models/hostnameBinding.d.ts +0 -54
- package/esm/api/orm/models/hostnameBinding.js +0 -100
- package/esm/api/orm/models/routeBinding.d.ts +0 -54
- package/esm/api/orm/models/routeBinding.js +0 -100
|
@@ -1559,19 +1559,19 @@ export type PlatformSecretsSetPayloadSelect = {
|
|
|
1559
1559
|
result?: boolean;
|
|
1560
1560
|
};
|
|
1561
1561
|
export interface ProvisionBucketPayload {
|
|
1562
|
-
/** The logical bucket row
|
|
1562
|
+
/** The logical bucket row whose reconciliation was requested. */
|
|
1563
1563
|
bucketId: string;
|
|
1564
1564
|
bucketKey: string;
|
|
1565
|
-
/** The reconciler job enqueued to provision this bucket. */
|
|
1566
|
-
jobId: string;
|
|
1567
1565
|
/** The physical bucket name already recorded, or null when reconciliation has not completed. */
|
|
1568
1566
|
physicalName?: string | null;
|
|
1567
|
+
/** When reconciliation was last requested for this bucket. */
|
|
1568
|
+
provisionRequestedAt: string;
|
|
1569
1569
|
}
|
|
1570
1570
|
export type ProvisionBucketPayloadSelect = {
|
|
1571
1571
|
bucketId?: boolean;
|
|
1572
1572
|
bucketKey?: boolean;
|
|
1573
|
-
jobId?: boolean;
|
|
1574
1573
|
physicalName?: boolean;
|
|
1574
|
+
provisionRequestedAt?: boolean;
|
|
1575
1575
|
};
|
|
1576
1576
|
export interface CreateConfigPayload {
|
|
1577
1577
|
clientMutationId?: string | null;
|
|
@@ -70,10 +70,11 @@ export interface PlatformSecretsSetVariables {
|
|
|
70
70
|
/**
|
|
71
71
|
* Variables for provisionBucket
|
|
72
72
|
* Reconcile an S3 bucket for a logical bucket in the database.
|
|
73
|
-
|
|
74
|
-
storage:provision_bucket job used
|
|
75
|
-
|
|
76
|
-
GraphQL
|
|
73
|
+
Records the request on the bucket row via RLS; the bucket's job
|
|
74
|
+
trigger then enqueues the same storage:provision_bucket job used on
|
|
75
|
+
INSERT, and repeated requests collapse into one pending job. This is
|
|
76
|
+
idempotent for an already-reconciled bucket; failures become GraphQL
|
|
77
|
+
errors.
|
|
77
78
|
*/
|
|
78
79
|
export interface ProvisionBucketVariables {
|
|
79
80
|
input: ProvisionBucketInput;
|
package/config/schema-types.d.ts
CHANGED
|
@@ -928,13 +928,13 @@ export interface PlatformSecretsSetPayload {
|
|
|
928
928
|
result?: boolean | null;
|
|
929
929
|
}
|
|
930
930
|
export interface ProvisionBucketPayload {
|
|
931
|
-
/** The logical bucket row
|
|
931
|
+
/** The logical bucket row whose reconciliation was requested. */
|
|
932
932
|
bucketId: string;
|
|
933
933
|
bucketKey: string;
|
|
934
|
-
/** The reconciler job enqueued to provision this bucket. */
|
|
935
|
-
jobId: string;
|
|
936
934
|
/** The physical bucket name already recorded, or null when reconciliation has not completed. */
|
|
937
935
|
physicalName?: string | null;
|
|
936
|
+
/** When reconciliation was last requested for this bucket. */
|
|
937
|
+
provisionRequestedAt: string;
|
|
938
938
|
}
|
|
939
939
|
export interface UpdateConfigPayload {
|
|
940
940
|
clientMutationId?: string | null;
|
|
@@ -3199,19 +3199,19 @@ export type ProvisionAppUsersBulkPayloadSelect = {
|
|
|
3199
3199
|
};
|
|
3200
3200
|
};
|
|
3201
3201
|
export interface ProvisionBucketPayload {
|
|
3202
|
-
/** The logical bucket row
|
|
3202
|
+
/** The logical bucket row whose reconciliation was requested. */
|
|
3203
3203
|
bucketId: string;
|
|
3204
3204
|
bucketKey: string;
|
|
3205
|
-
/** The reconciler job enqueued to provision this bucket. */
|
|
3206
|
-
jobId: string;
|
|
3207
3205
|
/** The physical bucket name already recorded, or null when reconciliation has not completed. */
|
|
3208
3206
|
physicalName?: string | null;
|
|
3207
|
+
/** When reconciliation was last requested for this bucket. */
|
|
3208
|
+
provisionRequestedAt: string;
|
|
3209
3209
|
}
|
|
3210
3210
|
export type ProvisionBucketPayloadSelect = {
|
|
3211
3211
|
bucketId?: boolean;
|
|
3212
3212
|
bucketKey?: boolean;
|
|
3213
|
-
jobId?: boolean;
|
|
3214
3213
|
physicalName?: boolean;
|
|
3214
|
+
provisionRequestedAt?: boolean;
|
|
3215
3215
|
};
|
|
3216
3216
|
export interface ProvisionOrgUserPayload {
|
|
3217
3217
|
clientMutationId?: string | null;
|
|
@@ -22,10 +22,11 @@ export interface ProvisionAppUsersBulkVariables {
|
|
|
22
22
|
/**
|
|
23
23
|
* Variables for provisionBucket
|
|
24
24
|
* Reconcile an S3 bucket for a logical bucket in the database.
|
|
25
|
-
|
|
26
|
-
storage:provision_bucket job used
|
|
27
|
-
|
|
28
|
-
GraphQL
|
|
25
|
+
Records the request on the bucket row via RLS; the bucket's job
|
|
26
|
+
trigger then enqueues the same storage:provision_bucket job used on
|
|
27
|
+
INSERT, and repeated requests collapse into one pending job. This is
|
|
28
|
+
idempotent for an already-reconciled bucket; failures become GraphQL
|
|
29
|
+
errors.
|
|
29
30
|
*/
|
|
30
31
|
export interface ProvisionBucketVariables {
|
|
31
32
|
input: ProvisionBucketInput;
|
|
@@ -2617,13 +2617,13 @@ export interface ProvisionAppUsersBulkPayload {
|
|
|
2617
2617
|
result?: ProvisionAppUsersBulkRecord[] | null;
|
|
2618
2618
|
}
|
|
2619
2619
|
export interface ProvisionBucketPayload {
|
|
2620
|
-
/** The logical bucket row
|
|
2620
|
+
/** The logical bucket row whose reconciliation was requested. */
|
|
2621
2621
|
bucketId: string;
|
|
2622
2622
|
bucketKey: string;
|
|
2623
|
-
/** The reconciler job enqueued to provision this bucket. */
|
|
2624
|
-
jobId: string;
|
|
2625
2623
|
/** The physical bucket name already recorded, or null when reconciliation has not completed. */
|
|
2626
2624
|
physicalName?: string | null;
|
|
2625
|
+
/** When reconciliation was last requested for this bucket. */
|
|
2626
|
+
provisionRequestedAt: string;
|
|
2627
2627
|
}
|
|
2628
2628
|
export interface ProvisionOrgUserPayload {
|
|
2629
2629
|
clientMutationId?: string | null;
|
|
@@ -6357,19 +6357,19 @@ export interface FullTextFilter {
|
|
|
6357
6357
|
notIn?: string[];
|
|
6358
6358
|
}
|
|
6359
6359
|
export interface ProvisionBucketPayload {
|
|
6360
|
-
/** The logical bucket row
|
|
6360
|
+
/** The logical bucket row whose reconciliation was requested. */
|
|
6361
6361
|
bucketId: string;
|
|
6362
6362
|
bucketKey: string;
|
|
6363
|
-
/** The reconciler job enqueued to provision this bucket. */
|
|
6364
|
-
jobId: string;
|
|
6365
6363
|
/** The physical bucket name already recorded, or null when reconciliation has not completed. */
|
|
6366
6364
|
physicalName?: string | null;
|
|
6365
|
+
/** When reconciliation was last requested for this bucket. */
|
|
6366
|
+
provisionRequestedAt: string;
|
|
6367
6367
|
}
|
|
6368
6368
|
export type ProvisionBucketPayloadSelect = {
|
|
6369
6369
|
bucketId?: boolean;
|
|
6370
6370
|
bucketKey?: boolean;
|
|
6371
|
-
jobId?: boolean;
|
|
6372
6371
|
physicalName?: boolean;
|
|
6372
|
+
provisionRequestedAt?: boolean;
|
|
6373
6373
|
};
|
|
6374
6374
|
export interface CreateAgentPayload {
|
|
6375
6375
|
/** The `Agent` that was created by this mutation. */
|
|
@@ -10,10 +10,11 @@ import type { ProvisionBucketInput, ProvisionBucketPayload, ProvisionBucketPaylo
|
|
|
10
10
|
/**
|
|
11
11
|
* Variables for provisionBucket
|
|
12
12
|
* Reconcile an S3 bucket for a logical bucket in the database.
|
|
13
|
-
|
|
14
|
-
storage:provision_bucket job used
|
|
15
|
-
|
|
16
|
-
GraphQL
|
|
13
|
+
Records the request on the bucket row via RLS; the bucket's job
|
|
14
|
+
trigger then enqueues the same storage:provision_bucket job used on
|
|
15
|
+
INSERT, and repeated requests collapse into one pending job. This is
|
|
16
|
+
idempotent for an already-reconciled bucket; failures become GraphQL
|
|
17
|
+
errors.
|
|
17
18
|
*/
|
|
18
19
|
export interface ProvisionBucketVariables {
|
|
19
20
|
input: ProvisionBucketInput;
|
|
@@ -3731,13 +3731,13 @@ export interface DeletePlatformAgentThreadPayload {
|
|
|
3731
3731
|
platformAgentThreadEdge?: PlatformAgentThreadEdge | null;
|
|
3732
3732
|
}
|
|
3733
3733
|
export interface ProvisionBucketPayload {
|
|
3734
|
-
/** The logical bucket row
|
|
3734
|
+
/** The logical bucket row whose reconciliation was requested. */
|
|
3735
3735
|
bucketId: string;
|
|
3736
3736
|
bucketKey: string;
|
|
3737
|
-
/** The reconciler job enqueued to provision this bucket. */
|
|
3738
|
-
jobId: string;
|
|
3739
3737
|
/** The physical bucket name already recorded, or null when reconciliation has not completed. */
|
|
3740
3738
|
physicalName?: string | null;
|
|
3739
|
+
/** When reconciliation was last requested for this bucket. */
|
|
3740
|
+
provisionRequestedAt: string;
|
|
3741
3741
|
}
|
|
3742
3742
|
export interface UpdateAgentPayload {
|
|
3743
3743
|
/** The `Agent` that was updated by this mutation. */
|
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,
|
|
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, 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, 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,
|
|
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, 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, 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
|
*
|
|
@@ -169,11 +169,6 @@ export declare const invalidate: {
|
|
|
169
169
|
/** Invalidate getSitePreviewsRecord list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
170
170
|
/** Invalidate a specific getSitePreviewsRecord */ readonly detail: (queryClient: QueryClient, id: string | number) => Promise<void>;
|
|
171
171
|
};
|
|
172
|
-
/** Invalidate hostnameBinding queries */ readonly hostnameBinding: {
|
|
173
|
-
/** Invalidate all hostnameBinding queries */ readonly all: (queryClient: QueryClient) => Promise<void>;
|
|
174
|
-
/** Invalidate hostnameBinding list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
175
|
-
/** Invalidate a specific hostnameBinding */ readonly detail: (queryClient: QueryClient, id: string | number) => Promise<void>;
|
|
176
|
-
};
|
|
177
172
|
/** Invalidate identityProviderRegistry queries */ readonly identityProviderRegistry: {
|
|
178
173
|
/** Invalidate all identityProviderRegistry queries */ readonly all: (queryClient: QueryClient) => Promise<void>;
|
|
179
174
|
/** Invalidate identityProviderRegistry list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
@@ -344,11 +339,6 @@ export declare const invalidate: {
|
|
|
344
339
|
/** Invalidate rlsSetting list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
345
340
|
/** Invalidate a specific rlsSetting */ readonly detail: (queryClient: QueryClient, id: string | number) => Promise<void>;
|
|
346
341
|
};
|
|
347
|
-
/** Invalidate routeBinding queries */ readonly routeBinding: {
|
|
348
|
-
/** Invalidate all routeBinding queries */ readonly all: (queryClient: QueryClient) => Promise<void>;
|
|
349
|
-
/** Invalidate routeBinding list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
350
|
-
/** Invalidate a specific routeBinding */ readonly detail: (queryClient: QueryClient, id: string | number) => Promise<void>;
|
|
351
|
-
};
|
|
352
342
|
/** Invalidate route queries */ readonly route: {
|
|
353
343
|
/** Invalidate all route queries */ readonly all: (queryClient: QueryClient) => Promise<void>;
|
|
354
344
|
/** Invalidate route list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
@@ -526,7 +516,6 @@ export declare const remove: {
|
|
|
526
516
|
/** Remove fullTextSearch from cache */ readonly fullTextSearch: (queryClient: QueryClient, id: string | number) => void;
|
|
527
517
|
/** Remove function from cache */ readonly function: (queryClient: QueryClient, id: string | number) => void;
|
|
528
518
|
/** Remove getSitePreviewsRecord from cache */ readonly getSitePreviewsRecord: (queryClient: QueryClient, id: string | number) => void;
|
|
529
|
-
/** Remove hostnameBinding from cache */ readonly hostnameBinding: (queryClient: QueryClient, id: string | number) => void;
|
|
530
519
|
/** Remove identityProviderRegistry from cache */ readonly identityProviderRegistry: (queryClient: QueryClient, id: string | number) => void;
|
|
531
520
|
/** Remove index from cache */ readonly index: (queryClient: QueryClient, id: string | number) => void;
|
|
532
521
|
/** Remove listSuspendedDatabasesRecord from cache */ readonly listSuspendedDatabasesRecord: (queryClient: QueryClient, id: string | number) => void;
|
|
@@ -561,7 +550,6 @@ export declare const remove: {
|
|
|
561
550
|
/** Remove pubkeySetting from cache */ readonly pubkeySetting: (queryClient: QueryClient, id: string | number) => void;
|
|
562
551
|
/** Remove redirect from cache */ readonly redirect: (queryClient: QueryClient, id: string | number) => void;
|
|
563
552
|
/** Remove rlsSetting from cache */ readonly rlsSetting: (queryClient: QueryClient, id: string | number) => void;
|
|
564
|
-
/** Remove routeBinding from cache */ readonly routeBinding: (queryClient: QueryClient, id: string | number) => void;
|
|
565
553
|
/** Remove route from cache */ readonly route: (queryClient: QueryClient, id: string | number) => void;
|
|
566
554
|
/** Remove schema from cache */ readonly schema: (queryClient: QueryClient, id: string | number) => void;
|
|
567
555
|
/** Remove schemaGrant from cache */ readonly schemaGrant: (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,
|
|
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, 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, 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
|
|
@@ -343,17 +343,6 @@ export const invalidate = {
|
|
|
343
343
|
queryKey: getSitePreviewsRecordKeys.detail(id),
|
|
344
344
|
}),
|
|
345
345
|
},
|
|
346
|
-
/** Invalidate hostnameBinding queries */ hostnameBinding: {
|
|
347
|
-
/** Invalidate all hostnameBinding queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
348
|
-
queryKey: hostnameBindingKeys.all,
|
|
349
|
-
}),
|
|
350
|
-
/** Invalidate hostnameBinding list queries */ lists: (queryClient) => queryClient.invalidateQueries({
|
|
351
|
-
queryKey: hostnameBindingKeys.lists(),
|
|
352
|
-
}),
|
|
353
|
-
/** Invalidate a specific hostnameBinding */ detail: (queryClient, id) => queryClient.invalidateQueries({
|
|
354
|
-
queryKey: hostnameBindingKeys.detail(id),
|
|
355
|
-
}),
|
|
356
|
-
},
|
|
357
346
|
/** Invalidate identityProviderRegistry queries */ identityProviderRegistry: {
|
|
358
347
|
/** Invalidate all identityProviderRegistry queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
359
348
|
queryKey: identityProviderRegistryKeys.all,
|
|
@@ -728,17 +717,6 @@ export const invalidate = {
|
|
|
728
717
|
queryKey: rlsSettingKeys.detail(id),
|
|
729
718
|
}),
|
|
730
719
|
},
|
|
731
|
-
/** Invalidate routeBinding queries */ routeBinding: {
|
|
732
|
-
/** Invalidate all routeBinding queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
733
|
-
queryKey: routeBindingKeys.all,
|
|
734
|
-
}),
|
|
735
|
-
/** Invalidate routeBinding list queries */ lists: (queryClient) => queryClient.invalidateQueries({
|
|
736
|
-
queryKey: routeBindingKeys.lists(),
|
|
737
|
-
}),
|
|
738
|
-
/** Invalidate a specific routeBinding */ detail: (queryClient, id) => queryClient.invalidateQueries({
|
|
739
|
-
queryKey: routeBindingKeys.detail(id),
|
|
740
|
-
}),
|
|
741
|
-
},
|
|
742
720
|
/** Invalidate route queries */ route: {
|
|
743
721
|
/** Invalidate all route queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
744
722
|
queryKey: routeKeys.all,
|
|
@@ -1194,11 +1172,6 @@ export const remove = {
|
|
|
1194
1172
|
queryKey: getSitePreviewsRecordKeys.detail(id),
|
|
1195
1173
|
});
|
|
1196
1174
|
},
|
|
1197
|
-
/** Remove hostnameBinding from cache */ hostnameBinding: (queryClient, id) => {
|
|
1198
|
-
queryClient.removeQueries({
|
|
1199
|
-
queryKey: hostnameBindingKeys.detail(id),
|
|
1200
|
-
});
|
|
1201
|
-
},
|
|
1202
1175
|
/** Remove identityProviderRegistry from cache */ identityProviderRegistry: (queryClient, id) => {
|
|
1203
1176
|
queryClient.removeQueries({
|
|
1204
1177
|
queryKey: identityProviderRegistryKeys.detail(id),
|
|
@@ -1369,11 +1342,6 @@ export const remove = {
|
|
|
1369
1342
|
queryKey: rlsSettingKeys.detail(id),
|
|
1370
1343
|
});
|
|
1371
1344
|
},
|
|
1372
|
-
/** Remove routeBinding from cache */ routeBinding: (queryClient, id) => {
|
|
1373
|
-
queryClient.removeQueries({
|
|
1374
|
-
queryKey: routeBindingKeys.detail(id),
|
|
1375
|
-
});
|
|
1376
|
-
},
|
|
1377
1345
|
/** Remove route from cache */ route: (queryClient, id) => {
|
|
1378
1346
|
queryClient.removeQueries({
|
|
1379
1347
|
queryKey: routeKeys.detail(id),
|
|
@@ -177,12 +177,6 @@ export declare const getSitePreviewsRecordMutationKeys: {
|
|
|
177
177
|
/** Update getSitePreviewsRecord mutation key */ readonly update: (id: string | number) => readonly ["mutation", "getsitepreviewsrecord", "update", string | number];
|
|
178
178
|
/** Delete getSitePreviewsRecord mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "getsitepreviewsrecord", "delete", string | number];
|
|
179
179
|
};
|
|
180
|
-
export declare const hostnameBindingMutationKeys: {
|
|
181
|
-
/** All hostnameBinding mutation keys */ readonly all: readonly ["mutation", "hostnamebinding"];
|
|
182
|
-
/** Create hostnameBinding mutation key */ readonly create: () => readonly ["mutation", "hostnamebinding", "create"];
|
|
183
|
-
/** Update hostnameBinding mutation key */ readonly update: (id: string | number) => readonly ["mutation", "hostnamebinding", "update", string | number];
|
|
184
|
-
/** Delete hostnameBinding mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "hostnamebinding", "delete", string | number];
|
|
185
|
-
};
|
|
186
180
|
export declare const identityProviderRegistryMutationKeys: {
|
|
187
181
|
/** All identityProviderRegistry mutation keys */ readonly all: readonly ["mutation", "identityproviderregistry"];
|
|
188
182
|
/** Create identityProviderRegistry mutation key */ readonly create: () => readonly ["mutation", "identityproviderregistry", "create"];
|
|
@@ -387,12 +381,6 @@ export declare const rlsSettingMutationKeys: {
|
|
|
387
381
|
/** Update rlsSetting mutation key */ readonly update: (id: string | number) => readonly ["mutation", "rlssetting", "update", string | number];
|
|
388
382
|
/** Delete rlsSetting mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "rlssetting", "delete", string | number];
|
|
389
383
|
};
|
|
390
|
-
export declare const routeBindingMutationKeys: {
|
|
391
|
-
/** All routeBinding mutation keys */ readonly all: readonly ["mutation", "routebinding"];
|
|
392
|
-
/** Create routeBinding mutation key */ readonly create: () => readonly ["mutation", "routebinding", "create"];
|
|
393
|
-
/** Update routeBinding mutation key */ readonly update: (id: string | number) => readonly ["mutation", "routebinding", "update", string | number];
|
|
394
|
-
/** Delete routeBinding mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "routebinding", "delete", string | number];
|
|
395
|
-
};
|
|
396
384
|
export declare const routeMutationKeys: {
|
|
397
385
|
/** All route mutation keys */ readonly all: readonly ["mutation", "route"];
|
|
398
386
|
/** Create route mutation key */ readonly create: () => readonly ["mutation", "route", "create"];
|
|
@@ -559,6 +547,7 @@ export declare const customMutationKeys: {
|
|
|
559
547
|
/** Mutation key for acceptDatabaseTransfer */ readonly acceptDatabaseTransfer: (identifier?: string) => readonly ["mutation", "acceptDatabaseTransfer", string] | readonly ["mutation", "acceptDatabaseTransfer"];
|
|
560
548
|
/** Mutation key for applyRls */ readonly applyRls: (identifier?: string) => readonly ["mutation", "applyRls", string] | readonly ["mutation", "applyRls"];
|
|
561
549
|
/** Mutation key for cancelDatabaseTransfer */ readonly cancelDatabaseTransfer: (identifier?: string) => readonly ["mutation", "cancelDatabaseTransfer", string] | readonly ["mutation", "cancelDatabaseTransfer"];
|
|
550
|
+
/** Mutation key for createFunctionFromSource */ readonly createFunctionFromSource: (identifier?: string) => readonly ["mutation", "createFunctionFromSource", string] | readonly ["mutation", "createFunctionFromSource"];
|
|
562
551
|
/** Mutation key for deleteSitePreview */ readonly deleteSitePreview: (identifier?: string) => readonly ["mutation", "deleteSitePreview", string] | readonly ["mutation", "deleteSitePreview"];
|
|
563
552
|
/** Mutation key for domainsAssignSubdomain */ readonly domainsAssignSubdomain: (identifier?: string) => readonly ["mutation", "domainsAssignSubdomain", string] | readonly ["mutation", "domainsAssignSubdomain"];
|
|
564
553
|
/** Mutation key for mintSitePreviewToken */ readonly mintSitePreviewToken: (identifier?: string) => readonly ["mutation", "mintSitePreviewToken", string] | readonly ["mutation", "mintSitePreviewToken"];
|
|
@@ -585,6 +574,7 @@ export declare const customMutationKeys: {
|
|
|
585
574
|
/** Mutation key for sitesProvisionStaticSite */ readonly sitesProvisionStaticSite: (identifier?: string) => readonly ["mutation", "sitesProvisionStaticSite", string] | readonly ["mutation", "sitesProvisionStaticSite"];
|
|
586
575
|
/** Mutation key for suspendDatabase */ readonly suspendDatabase: (identifier?: string) => readonly ["mutation", "suspendDatabase", string] | readonly ["mutation", "suspendDatabase"];
|
|
587
576
|
/** Mutation key for unsuspendDatabase */ readonly unsuspendDatabase: (identifier?: string) => readonly ["mutation", "unsuspendDatabase", string] | readonly ["mutation", "unsuspendDatabase"];
|
|
577
|
+
/** Mutation key for updateFunctionFromSource */ readonly updateFunctionFromSource: (identifier?: string) => readonly ["mutation", "updateFunctionFromSource", string] | readonly ["mutation", "updateFunctionFromSource"];
|
|
588
578
|
};
|
|
589
579
|
/**
|
|
590
580
|
|
|
@@ -783,12 +773,6 @@ export declare const mutationKeys: {
|
|
|
783
773
|
/** Update getSitePreviewsRecord mutation key */ readonly update: (id: string | number) => readonly ["mutation", "getsitepreviewsrecord", "update", string | number];
|
|
784
774
|
/** Delete getSitePreviewsRecord mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "getsitepreviewsrecord", "delete", string | number];
|
|
785
775
|
};
|
|
786
|
-
readonly hostnameBinding: {
|
|
787
|
-
/** All hostnameBinding mutation keys */ readonly all: readonly ["mutation", "hostnamebinding"];
|
|
788
|
-
/** Create hostnameBinding mutation key */ readonly create: () => readonly ["mutation", "hostnamebinding", "create"];
|
|
789
|
-
/** Update hostnameBinding mutation key */ readonly update: (id: string | number) => readonly ["mutation", "hostnamebinding", "update", string | number];
|
|
790
|
-
/** Delete hostnameBinding mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "hostnamebinding", "delete", string | number];
|
|
791
|
-
};
|
|
792
776
|
readonly identityProviderRegistry: {
|
|
793
777
|
/** All identityProviderRegistry mutation keys */ readonly all: readonly ["mutation", "identityproviderregistry"];
|
|
794
778
|
/** Create identityProviderRegistry mutation key */ readonly create: () => readonly ["mutation", "identityproviderregistry", "create"];
|
|
@@ -993,12 +977,6 @@ export declare const mutationKeys: {
|
|
|
993
977
|
/** Update rlsSetting mutation key */ readonly update: (id: string | number) => readonly ["mutation", "rlssetting", "update", string | number];
|
|
994
978
|
/** Delete rlsSetting mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "rlssetting", "delete", string | number];
|
|
995
979
|
};
|
|
996
|
-
readonly routeBinding: {
|
|
997
|
-
/** All routeBinding mutation keys */ readonly all: readonly ["mutation", "routebinding"];
|
|
998
|
-
/** Create routeBinding mutation key */ readonly create: () => readonly ["mutation", "routebinding", "create"];
|
|
999
|
-
/** Update routeBinding mutation key */ readonly update: (id: string | number) => readonly ["mutation", "routebinding", "update", string | number];
|
|
1000
|
-
/** Delete routeBinding mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "routebinding", "delete", string | number];
|
|
1001
|
-
};
|
|
1002
980
|
readonly route: {
|
|
1003
981
|
/** All route mutation keys */ readonly all: readonly ["mutation", "route"];
|
|
1004
982
|
/** Create route mutation key */ readonly create: () => readonly ["mutation", "route", "create"];
|
|
@@ -1165,6 +1143,7 @@ export declare const mutationKeys: {
|
|
|
1165
1143
|
/** Mutation key for acceptDatabaseTransfer */ readonly acceptDatabaseTransfer: (identifier?: string) => readonly ["mutation", "acceptDatabaseTransfer", string] | readonly ["mutation", "acceptDatabaseTransfer"];
|
|
1166
1144
|
/** Mutation key for applyRls */ readonly applyRls: (identifier?: string) => readonly ["mutation", "applyRls", string] | readonly ["mutation", "applyRls"];
|
|
1167
1145
|
/** Mutation key for cancelDatabaseTransfer */ readonly cancelDatabaseTransfer: (identifier?: string) => readonly ["mutation", "cancelDatabaseTransfer", string] | readonly ["mutation", "cancelDatabaseTransfer"];
|
|
1146
|
+
/** Mutation key for createFunctionFromSource */ readonly createFunctionFromSource: (identifier?: string) => readonly ["mutation", "createFunctionFromSource", string] | readonly ["mutation", "createFunctionFromSource"];
|
|
1168
1147
|
/** Mutation key for deleteSitePreview */ readonly deleteSitePreview: (identifier?: string) => readonly ["mutation", "deleteSitePreview", string] | readonly ["mutation", "deleteSitePreview"];
|
|
1169
1148
|
/** Mutation key for domainsAssignSubdomain */ readonly domainsAssignSubdomain: (identifier?: string) => readonly ["mutation", "domainsAssignSubdomain", string] | readonly ["mutation", "domainsAssignSubdomain"];
|
|
1170
1149
|
/** Mutation key for mintSitePreviewToken */ readonly mintSitePreviewToken: (identifier?: string) => readonly ["mutation", "mintSitePreviewToken", string] | readonly ["mutation", "mintSitePreviewToken"];
|
|
@@ -1191,5 +1170,6 @@ export declare const mutationKeys: {
|
|
|
1191
1170
|
/** Mutation key for sitesProvisionStaticSite */ readonly sitesProvisionStaticSite: (identifier?: string) => readonly ["mutation", "sitesProvisionStaticSite", string] | readonly ["mutation", "sitesProvisionStaticSite"];
|
|
1192
1171
|
/** Mutation key for suspendDatabase */ readonly suspendDatabase: (identifier?: string) => readonly ["mutation", "suspendDatabase", string] | readonly ["mutation", "suspendDatabase"];
|
|
1193
1172
|
/** Mutation key for unsuspendDatabase */ readonly unsuspendDatabase: (identifier?: string) => readonly ["mutation", "unsuspendDatabase", string] | readonly ["mutation", "unsuspendDatabase"];
|
|
1173
|
+
/** Mutation key for updateFunctionFromSource */ readonly updateFunctionFromSource: (identifier?: string) => readonly ["mutation", "updateFunctionFromSource", string] | readonly ["mutation", "updateFunctionFromSource"];
|
|
1194
1174
|
};
|
|
1195
1175
|
};
|
|
@@ -195,12 +195,6 @@ export const getSitePreviewsRecordMutationKeys = {
|
|
|
195
195
|
/** Update getSitePreviewsRecord mutation key */ update: (id) => ['mutation', 'getsitepreviewsrecord', 'update', id],
|
|
196
196
|
/** Delete getSitePreviewsRecord mutation key */ delete: (id) => ['mutation', 'getsitepreviewsrecord', 'delete', id],
|
|
197
197
|
};
|
|
198
|
-
export const hostnameBindingMutationKeys = {
|
|
199
|
-
/** All hostnameBinding mutation keys */ all: ['mutation', 'hostnamebinding'],
|
|
200
|
-
/** Create hostnameBinding mutation key */ create: () => ['mutation', 'hostnamebinding', 'create'],
|
|
201
|
-
/** Update hostnameBinding mutation key */ update: (id) => ['mutation', 'hostnamebinding', 'update', id],
|
|
202
|
-
/** Delete hostnameBinding mutation key */ delete: (id) => ['mutation', 'hostnamebinding', 'delete', id],
|
|
203
|
-
};
|
|
204
198
|
export const identityProviderRegistryMutationKeys = {
|
|
205
199
|
/** All identityProviderRegistry mutation keys */ all: [
|
|
206
200
|
'mutation',
|
|
@@ -438,12 +432,6 @@ export const rlsSettingMutationKeys = {
|
|
|
438
432
|
/** Update rlsSetting mutation key */ update: (id) => ['mutation', 'rlssetting', 'update', id],
|
|
439
433
|
/** Delete rlsSetting mutation key */ delete: (id) => ['mutation', 'rlssetting', 'delete', id],
|
|
440
434
|
};
|
|
441
|
-
export const routeBindingMutationKeys = {
|
|
442
|
-
/** All routeBinding mutation keys */ all: ['mutation', 'routebinding'],
|
|
443
|
-
/** Create routeBinding mutation key */ create: () => ['mutation', 'routebinding', 'create'],
|
|
444
|
-
/** Update routeBinding mutation key */ update: (id) => ['mutation', 'routebinding', 'update', id],
|
|
445
|
-
/** Delete routeBinding mutation key */ delete: (id) => ['mutation', 'routebinding', 'delete', id],
|
|
446
|
-
};
|
|
447
435
|
export const routeMutationKeys = {
|
|
448
436
|
/** All route mutation keys */ all: ['mutation', 'route'],
|
|
449
437
|
/** Create route mutation key */ create: () => ['mutation', 'route', 'create'],
|
|
@@ -622,6 +610,9 @@ export const customMutationKeys = {
|
|
|
622
610
|
/** Mutation key for cancelDatabaseTransfer */ cancelDatabaseTransfer: (identifier) => identifier
|
|
623
611
|
? ['mutation', 'cancelDatabaseTransfer', identifier]
|
|
624
612
|
: ['mutation', 'cancelDatabaseTransfer'],
|
|
613
|
+
/** Mutation key for createFunctionFromSource */ createFunctionFromSource: (identifier) => identifier
|
|
614
|
+
? ['mutation', 'createFunctionFromSource', identifier]
|
|
615
|
+
: ['mutation', 'createFunctionFromSource'],
|
|
625
616
|
/** Mutation key for deleteSitePreview */ deleteSitePreview: (identifier) => identifier
|
|
626
617
|
? ['mutation', 'deleteSitePreview', identifier]
|
|
627
618
|
: ['mutation', 'deleteSitePreview'],
|
|
@@ -700,6 +691,9 @@ export const customMutationKeys = {
|
|
|
700
691
|
/** Mutation key for unsuspendDatabase */ unsuspendDatabase: (identifier) => identifier
|
|
701
692
|
? ['mutation', 'unsuspendDatabase', identifier]
|
|
702
693
|
: ['mutation', 'unsuspendDatabase'],
|
|
694
|
+
/** Mutation key for updateFunctionFromSource */ updateFunctionFromSource: (identifier) => identifier
|
|
695
|
+
? ['mutation', 'updateFunctionFromSource', identifier]
|
|
696
|
+
: ['mutation', 'updateFunctionFromSource'],
|
|
703
697
|
};
|
|
704
698
|
/**
|
|
705
699
|
|
|
@@ -753,7 +747,6 @@ export const mutationKeys = {
|
|
|
753
747
|
fullTextSearch: fullTextSearchMutationKeys,
|
|
754
748
|
function: functionMutationKeys,
|
|
755
749
|
getSitePreviewsRecord: getSitePreviewsRecordMutationKeys,
|
|
756
|
-
hostnameBinding: hostnameBindingMutationKeys,
|
|
757
750
|
identityProviderRegistry: identityProviderRegistryMutationKeys,
|
|
758
751
|
index: indexMutationKeys,
|
|
759
752
|
listSuspendedDatabasesRecord: listSuspendedDatabasesRecordMutationKeys,
|
|
@@ -788,7 +781,6 @@ export const mutationKeys = {
|
|
|
788
781
|
pubkeySetting: pubkeySettingMutationKeys,
|
|
789
782
|
redirect: redirectMutationKeys,
|
|
790
783
|
rlsSetting: rlsSettingMutationKeys,
|
|
791
|
-
routeBinding: routeBindingMutationKeys,
|
|
792
784
|
route: routeMutationKeys,
|
|
793
785
|
schema: schemaMutationKeys,
|
|
794
786
|
schemaGrant: schemaGrantMutationKeys,
|
|
@@ -86,9 +86,6 @@ export * from './useCreateFunctionMutation';
|
|
|
86
86
|
export * from './useUpdateFunctionMutation';
|
|
87
87
|
export * from './useDeleteFunctionMutation';
|
|
88
88
|
export * from './useCreateGetSitePreviewsRecordMutation';
|
|
89
|
-
export * from './useCreateHostnameBindingMutation';
|
|
90
|
-
export * from './useUpdateHostnameBindingMutation';
|
|
91
|
-
export * from './useDeleteHostnameBindingMutation';
|
|
92
89
|
export * from './useCreateIdentityProviderRegistryMutation';
|
|
93
90
|
export * from './useUpdateIdentityProviderRegistryMutation';
|
|
94
91
|
export * from './useDeleteIdentityProviderRegistryMutation';
|
|
@@ -187,9 +184,6 @@ export * from './useDeleteRedirectMutation';
|
|
|
187
184
|
export * from './useCreateRlsSettingMutation';
|
|
188
185
|
export * from './useUpdateRlsSettingMutation';
|
|
189
186
|
export * from './useDeleteRlsSettingMutation';
|
|
190
|
-
export * from './useCreateRouteBindingMutation';
|
|
191
|
-
export * from './useUpdateRouteBindingMutation';
|
|
192
|
-
export * from './useDeleteRouteBindingMutation';
|
|
193
187
|
export * from './useCreateRouteMutation';
|
|
194
188
|
export * from './useUpdateRouteMutation';
|
|
195
189
|
export * from './useDeleteRouteMutation';
|
|
@@ -272,6 +266,7 @@ export * from './useDeleteWebauthnSettingMutation';
|
|
|
272
266
|
export * from './useAcceptDatabaseTransferMutation';
|
|
273
267
|
export * from './useApplyRlsMutation';
|
|
274
268
|
export * from './useCancelDatabaseTransferMutation';
|
|
269
|
+
export * from './useCreateFunctionFromSourceMutation';
|
|
275
270
|
export * from './useDeleteSitePreviewMutation';
|
|
276
271
|
export * from './useDomainsAssignSubdomainMutation';
|
|
277
272
|
export * from './useMintSitePreviewTokenMutation';
|
|
@@ -298,3 +293,4 @@ export * from './useSitesInstallMantraMutation';
|
|
|
298
293
|
export * from './useSitesProvisionStaticSiteMutation';
|
|
299
294
|
export * from './useSuspendDatabaseMutation';
|
|
300
295
|
export * from './useUnsuspendDatabaseMutation';
|
|
296
|
+
export * from './useUpdateFunctionFromSourceMutation';
|
|
@@ -86,9 +86,6 @@ export * from './useCreateFunctionMutation';
|
|
|
86
86
|
export * from './useUpdateFunctionMutation';
|
|
87
87
|
export * from './useDeleteFunctionMutation';
|
|
88
88
|
export * from './useCreateGetSitePreviewsRecordMutation';
|
|
89
|
-
export * from './useCreateHostnameBindingMutation';
|
|
90
|
-
export * from './useUpdateHostnameBindingMutation';
|
|
91
|
-
export * from './useDeleteHostnameBindingMutation';
|
|
92
89
|
export * from './useCreateIdentityProviderRegistryMutation';
|
|
93
90
|
export * from './useUpdateIdentityProviderRegistryMutation';
|
|
94
91
|
export * from './useDeleteIdentityProviderRegistryMutation';
|
|
@@ -187,9 +184,6 @@ export * from './useDeleteRedirectMutation';
|
|
|
187
184
|
export * from './useCreateRlsSettingMutation';
|
|
188
185
|
export * from './useUpdateRlsSettingMutation';
|
|
189
186
|
export * from './useDeleteRlsSettingMutation';
|
|
190
|
-
export * from './useCreateRouteBindingMutation';
|
|
191
|
-
export * from './useUpdateRouteBindingMutation';
|
|
192
|
-
export * from './useDeleteRouteBindingMutation';
|
|
193
187
|
export * from './useCreateRouteMutation';
|
|
194
188
|
export * from './useUpdateRouteMutation';
|
|
195
189
|
export * from './useDeleteRouteMutation';
|
|
@@ -272,6 +266,7 @@ export * from './useDeleteWebauthnSettingMutation';
|
|
|
272
266
|
export * from './useAcceptDatabaseTransferMutation';
|
|
273
267
|
export * from './useApplyRlsMutation';
|
|
274
268
|
export * from './useCancelDatabaseTransferMutation';
|
|
269
|
+
export * from './useCreateFunctionFromSourceMutation';
|
|
275
270
|
export * from './useDeleteSitePreviewMutation';
|
|
276
271
|
export * from './useDomainsAssignSubdomainMutation';
|
|
277
272
|
export * from './useMintSitePreviewTokenMutation';
|
|
@@ -298,3 +293,4 @@ export * from './useSitesInstallMantraMutation';
|
|
|
298
293
|
export * from './useSitesProvisionStaticSiteMutation';
|
|
299
294
|
export * from './useSuspendDatabaseMutation';
|
|
300
295
|
export * from './useUnsuspendDatabaseMutation';
|
|
296
|
+
export * from './useUpdateFunctionFromSourceMutation';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for createFunctionFromSource
|
|
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 { CreateFunctionFromSourceVariables } from '../../orm/mutation';
|
|
8
|
+
import type { CreateFunctionPayloadSelect, CreateFunctionPayload } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { CreateFunctionFromSourceVariables } from '../../orm/mutation';
|
|
11
|
+
export type { CreateFunctionPayloadSelect } from '../../orm/input-types';
|
|
12
|
+
export declare function useCreateFunctionFromSourceMutation<S extends CreateFunctionPayloadSelect>(params: {
|
|
13
|
+
selection: {
|
|
14
|
+
fields: S & CreateFunctionPayloadSelect;
|
|
15
|
+
} & HookStrictSelect<NoInfer<S>, CreateFunctionPayloadSelect>;
|
|
16
|
+
} & Omit<UseMutationOptions<{
|
|
17
|
+
createFunctionFromSource: InferSelectResult<CreateFunctionPayload, S> | null;
|
|
18
|
+
}, Error, CreateFunctionFromSourceVariables>, 'mutationFn'>): UseMutationResult<{
|
|
19
|
+
createFunctionFromSource: InferSelectResult<CreateFunctionPayload, S> | null;
|
|
20
|
+
}, Error, CreateFunctionFromSourceVariables>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for createFunctionFromSource
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { customMutationKeys } from '../mutation-keys';
|
|
10
|
+
export function useCreateFunctionFromSourceMutation(params) {
|
|
11
|
+
const args = buildSelectionArgs(params.selection);
|
|
12
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
13
|
+
void _selection;
|
|
14
|
+
return useMutation({
|
|
15
|
+
mutationKey: customMutationKeys.createFunctionFromSource(),
|
|
16
|
+
mutationFn: (variables) => getClient()
|
|
17
|
+
.mutation.createFunctionFromSource(variables, {
|
|
18
|
+
select: args.select,
|
|
19
|
+
})
|
|
20
|
+
.unwrap(),
|
|
21
|
+
...mutationOptions,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for updateFunctionFromSource
|
|
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 { UpdateFunctionFromSourceVariables } from '../../orm/mutation';
|
|
8
|
+
import type { UpdateFunctionPayloadSelect, UpdateFunctionPayload } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { UpdateFunctionFromSourceVariables } from '../../orm/mutation';
|
|
11
|
+
export type { UpdateFunctionPayloadSelect } from '../../orm/input-types';
|
|
12
|
+
export declare function useUpdateFunctionFromSourceMutation<S extends UpdateFunctionPayloadSelect>(params: {
|
|
13
|
+
selection: {
|
|
14
|
+
fields: S & UpdateFunctionPayloadSelect;
|
|
15
|
+
} & HookStrictSelect<NoInfer<S>, UpdateFunctionPayloadSelect>;
|
|
16
|
+
} & Omit<UseMutationOptions<{
|
|
17
|
+
updateFunctionFromSource: InferSelectResult<UpdateFunctionPayload, S> | null;
|
|
18
|
+
}, Error, UpdateFunctionFromSourceVariables>, 'mutationFn'>): UseMutationResult<{
|
|
19
|
+
updateFunctionFromSource: InferSelectResult<UpdateFunctionPayload, S> | null;
|
|
20
|
+
}, Error, UpdateFunctionFromSourceVariables>;
|