@constructive-io/react 0.10.3 → 0.10.4
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/esm/public/hooks/index.d.ts +1 -1
- package/esm/public/hooks/index.js +1 -1
- package/esm/public/hooks/invalidation.d.ts +11 -11
- package/esm/public/hooks/invalidation.js +26 -26
- package/esm/public/hooks/mutation-keys.d.ts +22 -22
- package/esm/public/hooks/mutation-keys.js +13 -13
- package/esm/public/hooks/mutations/index.d.ts +2 -4
- package/esm/public/hooks/mutations/index.js +2 -4
- package/esm/public/hooks/mutations/useCreateMigrateFileMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/{useCreateFieldModuleMutation.js → useCreateMigrateFileMutation.js} +7 -7
- package/esm/public/hooks/mutations/useCreateSqlActionMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/{useCreateSqlMigrationMutation.js → useCreateSqlActionMutation.js} +7 -7
- package/esm/public/hooks/queries/index.d.ts +4 -4
- package/esm/public/hooks/queries/index.js +4 -4
- package/esm/public/hooks/queries/useMigrateFileQuery.d.ts +65 -0
- package/esm/public/hooks/queries/{useFieldModuleQuery.js → useMigrateFileQuery.js} +11 -11
- package/esm/public/hooks/queries/useMigrateFilesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/{useFieldModulesQuery.js → useMigrateFilesQuery.js} +11 -11
- package/esm/public/hooks/queries/useSqlActionQuery.d.ts +65 -0
- package/esm/public/hooks/queries/{useSqlMigrationQuery.js → useSqlActionQuery.js} +11 -11
- package/esm/public/hooks/queries/useSqlActionsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/{useSqlMigrationsQuery.js → useSqlActionsQuery.js} +11 -11
- package/esm/public/hooks/query-keys.d.ts +26 -26
- package/esm/public/hooks/query-keys.js +15 -15
- package/esm/public/orm/index.d.ts +4 -4
- package/esm/public/orm/index.js +4 -4
- package/esm/public/orm/input-types.d.ts +118 -247
- package/esm/public/orm/input-types.js +0 -1
- package/esm/public/orm/models/index.d.ts +2 -2
- package/esm/public/orm/models/index.js +2 -2
- package/esm/public/orm/models/migrateFile.d.ts +38 -0
- package/esm/public/orm/models/migrateFile.js +72 -0
- package/esm/public/orm/models/sqlAction.d.ts +38 -0
- package/esm/public/orm/models/{sqlMigration.js → sqlAction.js} +17 -17
- package/esm/public/schema-types.d.ts +112 -150
- package/esm/public/types.d.ts +7 -12
- package/package.json +3 -3
- package/public/hooks/index.d.ts +1 -1
- package/public/hooks/index.js +1 -1
- package/public/hooks/invalidation.d.ts +11 -11
- package/public/hooks/invalidation.js +25 -25
- package/public/hooks/mutation-keys.d.ts +22 -22
- package/public/hooks/mutation-keys.js +16 -16
- package/public/hooks/mutations/index.d.ts +2 -4
- package/public/hooks/mutations/index.js +2 -4
- package/public/hooks/mutations/useCreateMigrateFileMutation.d.ts +34 -0
- package/public/hooks/mutations/{useCreateFieldModuleMutation.js → useCreateMigrateFileMutation.js} +6 -6
- package/public/hooks/mutations/useCreateSqlActionMutation.d.ts +34 -0
- package/public/hooks/mutations/{useCreateSqlMigrationMutation.js → useCreateSqlActionMutation.js} +6 -6
- package/public/hooks/queries/index.d.ts +4 -4
- package/public/hooks/queries/index.js +4 -4
- package/public/hooks/queries/useMigrateFileQuery.d.ts +65 -0
- package/public/hooks/queries/{useFieldModuleQuery.js → useMigrateFileQuery.js} +14 -14
- package/public/hooks/queries/useMigrateFilesQuery.d.ts +69 -0
- package/public/hooks/queries/{useFieldModulesQuery.js → useMigrateFilesQuery.js} +14 -14
- package/public/hooks/queries/useSqlActionQuery.d.ts +65 -0
- package/public/hooks/queries/{useSqlMigrationQuery.js → useSqlActionQuery.js} +14 -14
- package/public/hooks/queries/useSqlActionsQuery.d.ts +69 -0
- package/public/hooks/queries/{useSqlMigrationsQuery.js → useSqlActionsQuery.js} +14 -14
- package/public/hooks/query-keys.d.ts +26 -26
- package/public/hooks/query-keys.js +18 -18
- package/public/orm/index.d.ts +4 -4
- package/public/orm/index.js +4 -4
- package/public/orm/input-types.d.ts +118 -247
- package/public/orm/input-types.js +0 -1
- package/public/orm/models/index.d.ts +2 -2
- package/public/orm/models/index.js +7 -7
- package/public/orm/models/migrateFile.d.ts +38 -0
- package/public/orm/models/{sqlMigration.js → migrateFile.js} +19 -19
- package/public/orm/models/sqlAction.d.ts +38 -0
- package/public/orm/models/sqlAction.js +76 -0
- package/public/schema-types.d.ts +112 -150
- package/public/types.d.ts +7 -12
- package/esm/public/hooks/mutations/useCreateFieldModuleMutation.d.ts +0 -34
- package/esm/public/hooks/mutations/useCreateSqlMigrationMutation.d.ts +0 -34
- package/esm/public/hooks/mutations/useDeleteFieldModuleMutation.d.ts +0 -38
- package/esm/public/hooks/mutations/useDeleteFieldModuleMutation.js +0 -36
- package/esm/public/hooks/mutations/useUpdateFieldModuleMutation.d.ts +0 -40
- package/esm/public/hooks/mutations/useUpdateFieldModuleMutation.js +0 -37
- package/esm/public/hooks/queries/useFieldModuleQuery.d.ts +0 -65
- package/esm/public/hooks/queries/useFieldModulesQuery.d.ts +0 -69
- package/esm/public/hooks/queries/useSqlMigrationQuery.d.ts +0 -65
- package/esm/public/hooks/queries/useSqlMigrationsQuery.d.ts +0 -69
- package/esm/public/orm/models/fieldModule.d.ts +0 -56
- package/esm/public/orm/models/fieldModule.js +0 -96
- package/esm/public/orm/models/sqlMigration.d.ts +0 -38
- package/public/hooks/mutations/useCreateFieldModuleMutation.d.ts +0 -34
- package/public/hooks/mutations/useCreateSqlMigrationMutation.d.ts +0 -34
- package/public/hooks/mutations/useDeleteFieldModuleMutation.d.ts +0 -38
- package/public/hooks/mutations/useDeleteFieldModuleMutation.js +0 -39
- package/public/hooks/mutations/useUpdateFieldModuleMutation.d.ts +0 -40
- package/public/hooks/mutations/useUpdateFieldModuleMutation.js +0 -40
- package/public/hooks/queries/useFieldModuleQuery.d.ts +0 -65
- package/public/hooks/queries/useFieldModulesQuery.d.ts +0 -69
- package/public/hooks/queries/useSqlMigrationQuery.d.ts +0 -65
- package/public/hooks/queries/useSqlMigrationsQuery.d.ts +0 -69
- package/public/orm/models/fieldModule.d.ts +0 -56
- package/public/orm/models/fieldModule.js +0 -100
- package/public/orm/models/sqlMigration.d.ts +0 -38
package/public/schema-types.d.ts
CHANGED
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
|
-
import type { Api, ApiModule, ApiSchema, App, AppAchievement, AppAdminGrant, AppGrant, AppLevel, AppLevelRequirement, AppLimit, AppLimitDefault, AppMembership, AppMembershipDefault, AppOwnerGrant, AppPermission, AppPermissionDefault, AppStep, AstMigration, AuditLog, Blueprint, BlueprintTemplate, CheckConstraint, ClaimedInvite, Commit, ConnectedAccount, ConnectedAccountsModule, CryptoAddress, CryptoAddressesModule, CryptoAuthModule, Database, DatabaseProvisionModule, DatabaseTransfer, DefaultIdsModule, DefaultPrivilege, DenormalizedTableField, Domain, Email, EmailsModule, EmbeddingChunk, EncryptedSecretsModule, Enum, Field,
|
|
6
|
+
import type { Api, ApiModule, ApiSchema, App, AppAchievement, AppAdminGrant, AppGrant, AppLevel, AppLevelRequirement, AppLimit, AppLimitDefault, AppMembership, AppMembershipDefault, AppOwnerGrant, AppPermission, AppPermissionDefault, AppStep, AstMigration, AuditLog, Blueprint, BlueprintTemplate, CheckConstraint, ClaimedInvite, Commit, ConnectedAccount, ConnectedAccountsModule, CryptoAddress, CryptoAddressesModule, CryptoAuthModule, Database, DatabaseProvisionModule, DatabaseTransfer, DefaultIdsModule, DefaultPrivilege, DenormalizedTableField, Domain, Email, EmailsModule, EmbeddingChunk, EncryptedSecretsModule, Enum, Field, ForeignKeyConstraint, FullTextSearch, GetAllRecord, HierarchyModule, Index, Invite, InvitesModule, LevelsModule, LimitsModule, MembershipType, MembershipTypesModule, MembershipsModule, MigrateFile, NodeTypeRegistry, Object, OrgAdminGrant, OrgChartEdge, OrgChartEdgeGrant, OrgClaimedInvite, OrgGetManagersRecord, OrgGetSubordinatesRecord, OrgGrant, OrgInvite, OrgLimit, OrgLimitDefault, OrgMember, OrgMembership, OrgMembershipDefault, OrgOwnerGrant, OrgPermission, OrgPermissionDefault, PermissionsModule, PhoneNumber, PhoneNumbersModule, Policy, PrimaryKeyConstraint, ProfilesModule, Ref, RelationProvision, RlsModule, RoleType, Schema, SchemaGrant, SecretsModule, SecureTableProvision, SessionsModule, Site, SiteMetadatum, SiteModule, SiteTheme, SqlAction, Store, Table, TableGrant, TableTemplateModule, Trigger, TriggerFunction, UniqueConstraint, User, UserAuthModule, UsersModule, View, ViewGrant, ViewRule, ViewTable, BitStringFilter, BooleanFilter, DatetimeFilter, FloatFilter, FullTextFilter, IntFilter, InternetAddressFilter, JSONFilter, StringFilter, StringListFilter, UUIDFilter, UUIDListFilter } from './types';
|
|
7
7
|
export type ConstructiveInternalTypeAttachment = unknown;
|
|
8
8
|
export type ConstructiveInternalTypeEmail = unknown;
|
|
9
9
|
export type ConstructiveInternalTypeHostname = unknown;
|
|
10
10
|
export type ConstructiveInternalTypeImage = unknown;
|
|
11
11
|
export type ConstructiveInternalTypeOrigin = unknown;
|
|
12
|
+
export type ConstructiveInternalTypeUpload = unknown;
|
|
12
13
|
export type ConstructiveInternalTypeUrl = unknown;
|
|
13
14
|
export type ObjectCategory = 'CORE' | 'MODULE' | 'APP';
|
|
14
15
|
/** Methods to use when ordering `CheckConstraint`. */
|
|
@@ -93,8 +94,6 @@ export type DenormalizedTableFieldOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRI
|
|
|
93
94
|
export type EmailsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC';
|
|
94
95
|
/** Methods to use when ordering `EncryptedSecretsModule`. */
|
|
95
96
|
export type EncryptedSecretsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC';
|
|
96
|
-
/** Methods to use when ordering `FieldModule`. */
|
|
97
|
-
export type FieldModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'NODE_TYPE_ASC' | 'NODE_TYPE_DESC';
|
|
98
97
|
/** Methods to use when ordering `InvitesModule`. */
|
|
99
98
|
export type InvitesModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC';
|
|
100
99
|
/** Methods to use when ordering `LevelsModule`. */
|
|
@@ -185,6 +184,8 @@ export type StoreOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' |
|
|
|
185
184
|
export type AppPermissionDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC';
|
|
186
185
|
/** Methods to use when ordering `RoleType`. */
|
|
187
186
|
export type RoleTypeOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC';
|
|
187
|
+
/** Methods to use when ordering `MigrateFile`. */
|
|
188
|
+
export type MigrateFileOrderBy = 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC';
|
|
188
189
|
/** Methods to use when ordering `AppLimitDefault`. */
|
|
189
190
|
export type AppLimitDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC';
|
|
190
191
|
/** Methods to use when ordering `OrgLimitDefault`. */
|
|
@@ -209,8 +210,8 @@ export type RlsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC
|
|
|
209
210
|
export type OrgMembershipDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
|
|
210
211
|
/** Methods to use when ordering `AppLevelRequirement`. */
|
|
211
212
|
export type AppLevelRequirementOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'LEVEL_ASC' | 'LEVEL_DESC' | 'PRIORITY_ASC' | 'PRIORITY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
|
|
212
|
-
/** Methods to use when ordering `
|
|
213
|
-
export type
|
|
213
|
+
/** Methods to use when ordering `SqlAction`. */
|
|
214
|
+
export type SqlActionOrderBy = 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEPLOY_ASC' | 'DEPLOY_DESC' | 'CONTENT_ASC' | 'CONTENT_DESC' | 'REVERT_ASC' | 'REVERT_DESC' | 'VERIFY_ASC' | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ACTION_ASC' | 'ACTION_DESC' | 'ACTION_ID_ASC' | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC';
|
|
214
215
|
/** Methods to use when ordering `User`. */
|
|
215
216
|
export type UserOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'USERNAME_ASC' | 'USERNAME_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'SEARCH_TSV_RANK_ASC' | 'SEARCH_TSV_RANK_DESC' | 'DISPLAY_NAME_TRGM_SIMILARITY_ASC' | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC';
|
|
216
217
|
/** Methods to use when ordering `AstMigration`. */
|
|
@@ -461,10 +462,6 @@ export interface DatabaseFilter {
|
|
|
461
462
|
encryptedSecretsModules?: DatabaseToManyEncryptedSecretsModuleFilter;
|
|
462
463
|
/** `encryptedSecretsModules` exist. */
|
|
463
464
|
encryptedSecretsModulesExist?: boolean;
|
|
464
|
-
/** Filter by the object’s `fieldModules` relation. */
|
|
465
|
-
fieldModules?: DatabaseToManyFieldModuleFilter;
|
|
466
|
-
/** `fieldModules` exist. */
|
|
467
|
-
fieldModulesExist?: boolean;
|
|
468
465
|
/** Filter by the object’s `invitesModules` relation. */
|
|
469
466
|
invitesModules?: DatabaseToManyInvitesModuleFilter;
|
|
470
467
|
/** `invitesModules` exist. */
|
|
@@ -4591,50 +4588,6 @@ export interface EncryptedSecretsModuleFilter {
|
|
|
4591
4588
|
/** Filter by the object’s `table` relation. */
|
|
4592
4589
|
table?: TableFilter;
|
|
4593
4590
|
}
|
|
4594
|
-
/** A filter to be used against many `FieldModule` object types. All fields are combined with a logical ‘and.’ */
|
|
4595
|
-
export interface DatabaseToManyFieldModuleFilter {
|
|
4596
|
-
/** Filters to entities where at least one related entity matches. */
|
|
4597
|
-
some?: FieldModuleFilter;
|
|
4598
|
-
/** Filters to entities where every related entity matches. */
|
|
4599
|
-
every?: FieldModuleFilter;
|
|
4600
|
-
/** Filters to entities where no related entity matches. */
|
|
4601
|
-
none?: FieldModuleFilter;
|
|
4602
|
-
}
|
|
4603
|
-
/** A filter to be used against `FieldModule` object types. All fields are combined with a logical ‘and.’ */
|
|
4604
|
-
export interface FieldModuleFilter {
|
|
4605
|
-
/** Filter by the object’s `id` field. */
|
|
4606
|
-
id?: UUIDFilter;
|
|
4607
|
-
/** Filter by the object’s `databaseId` field. */
|
|
4608
|
-
databaseId?: UUIDFilter;
|
|
4609
|
-
/** Filter by the object’s `privateSchemaId` field. */
|
|
4610
|
-
privateSchemaId?: UUIDFilter;
|
|
4611
|
-
/** Filter by the object’s `tableId` field. */
|
|
4612
|
-
tableId?: UUIDFilter;
|
|
4613
|
-
/** Filter by the object’s `fieldId` field. */
|
|
4614
|
-
fieldId?: UUIDFilter;
|
|
4615
|
-
/** Filter by the object’s `nodeType` field. */
|
|
4616
|
-
nodeType?: StringFilter;
|
|
4617
|
-
/** Filter by the object’s `data` field. */
|
|
4618
|
-
data?: JSONFilter;
|
|
4619
|
-
/** Filter by the object’s `triggers` field. */
|
|
4620
|
-
triggers?: StringListFilter;
|
|
4621
|
-
/** Filter by the object’s `functions` field. */
|
|
4622
|
-
functions?: StringListFilter;
|
|
4623
|
-
/** Checks for all expressions in this list. */
|
|
4624
|
-
and?: FieldModuleFilter[];
|
|
4625
|
-
/** Checks for any expressions in this list. */
|
|
4626
|
-
or?: FieldModuleFilter[];
|
|
4627
|
-
/** Negates the expression. */
|
|
4628
|
-
not?: FieldModuleFilter;
|
|
4629
|
-
/** Filter by the object’s `database` relation. */
|
|
4630
|
-
database?: DatabaseFilter;
|
|
4631
|
-
/** Filter by the object’s `field` relation. */
|
|
4632
|
-
field?: FieldFilter;
|
|
4633
|
-
/** Filter by the object’s `privateSchema` relation. */
|
|
4634
|
-
privateSchema?: SchemaFilter;
|
|
4635
|
-
/** Filter by the object’s `table` relation. */
|
|
4636
|
-
table?: TableFilter;
|
|
4637
|
-
}
|
|
4638
4591
|
/** A filter to be used against many `InvitesModule` object types. All fields are combined with a logical ‘and.’ */
|
|
4639
4592
|
export interface DatabaseToManyInvitesModuleFilter {
|
|
4640
4593
|
/** Filters to entities where at least one related entity matches. */
|
|
@@ -5824,6 +5777,56 @@ export interface AppPermissionDefaultFilter {
|
|
|
5824
5777
|
/** Negates the expression. */
|
|
5825
5778
|
not?: AppPermissionDefaultFilter;
|
|
5826
5779
|
}
|
|
5780
|
+
/** A filter to be used against `MigrateFile` object types. All fields are combined with a logical ‘and.’ */
|
|
5781
|
+
export interface MigrateFileFilter {
|
|
5782
|
+
/** Filter by the object’s `id` field. */
|
|
5783
|
+
id?: UUIDFilter;
|
|
5784
|
+
/** Filter by the object’s `databaseId` field. */
|
|
5785
|
+
databaseId?: UUIDFilter;
|
|
5786
|
+
/** Filter by the object’s `upload` field. */
|
|
5787
|
+
upload?: ConstructiveInternalTypeUploadFilter;
|
|
5788
|
+
/** Checks for all expressions in this list. */
|
|
5789
|
+
and?: MigrateFileFilter[];
|
|
5790
|
+
/** Checks for any expressions in this list. */
|
|
5791
|
+
or?: MigrateFileFilter[];
|
|
5792
|
+
/** Negates the expression. */
|
|
5793
|
+
not?: MigrateFileFilter;
|
|
5794
|
+
}
|
|
5795
|
+
/** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */
|
|
5796
|
+
export interface ConstructiveInternalTypeUploadFilter {
|
|
5797
|
+
/** Is null (if `true` is specified) or is not null (if `false` is specified). */
|
|
5798
|
+
isNull?: boolean;
|
|
5799
|
+
/** Equal to the specified value. */
|
|
5800
|
+
equalTo?: ConstructiveInternalTypeUpload;
|
|
5801
|
+
/** Not equal to the specified value. */
|
|
5802
|
+
notEqualTo?: ConstructiveInternalTypeUpload;
|
|
5803
|
+
/** Not equal to the specified value, treating null like an ordinary value. */
|
|
5804
|
+
distinctFrom?: ConstructiveInternalTypeUpload;
|
|
5805
|
+
/** Equal to the specified value, treating null like an ordinary value. */
|
|
5806
|
+
notDistinctFrom?: ConstructiveInternalTypeUpload;
|
|
5807
|
+
/** Included in the specified list. */
|
|
5808
|
+
in?: ConstructiveInternalTypeUpload[];
|
|
5809
|
+
/** Not included in the specified list. */
|
|
5810
|
+
notIn?: ConstructiveInternalTypeUpload[];
|
|
5811
|
+
/** Less than the specified value. */
|
|
5812
|
+
lessThan?: ConstructiveInternalTypeUpload;
|
|
5813
|
+
/** Less than or equal to the specified value. */
|
|
5814
|
+
lessThanOrEqualTo?: ConstructiveInternalTypeUpload;
|
|
5815
|
+
/** Greater than the specified value. */
|
|
5816
|
+
greaterThan?: ConstructiveInternalTypeUpload;
|
|
5817
|
+
/** Greater than or equal to the specified value. */
|
|
5818
|
+
greaterThanOrEqualTo?: ConstructiveInternalTypeUpload;
|
|
5819
|
+
/** Contains the specified JSON. */
|
|
5820
|
+
contains?: ConstructiveInternalTypeUpload;
|
|
5821
|
+
/** Contains the specified key. */
|
|
5822
|
+
containsKey?: string;
|
|
5823
|
+
/** Contains all of the specified keys. */
|
|
5824
|
+
containsAllKeys?: string[];
|
|
5825
|
+
/** Contains any of the specified keys. */
|
|
5826
|
+
containsAnyKeys?: string[];
|
|
5827
|
+
/** Contained by the specified JSON. */
|
|
5828
|
+
containedBy?: ConstructiveInternalTypeUpload;
|
|
5829
|
+
}
|
|
5827
5830
|
/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */
|
|
5828
5831
|
export interface AppLimitDefaultFilter {
|
|
5829
5832
|
/** Filter by the object’s `id` field. */
|
|
@@ -6034,8 +6037,8 @@ export interface AppLevelRequirementFilter {
|
|
|
6034
6037
|
/** Negates the expression. */
|
|
6035
6038
|
not?: AppLevelRequirementFilter;
|
|
6036
6039
|
}
|
|
6037
|
-
/** A filter to be used against `
|
|
6038
|
-
export interface
|
|
6040
|
+
/** A filter to be used against `SqlAction` object types. All fields are combined with a logical ‘and.’ */
|
|
6041
|
+
export interface SqlActionFilter {
|
|
6039
6042
|
/** Filter by the object’s `id` field. */
|
|
6040
6043
|
id?: IntFilter;
|
|
6041
6044
|
/** Filter by the object’s `name` field. */
|
|
@@ -6061,11 +6064,11 @@ export interface SqlMigrationFilter {
|
|
|
6061
6064
|
/** Filter by the object’s `actorId` field. */
|
|
6062
6065
|
actorId?: UUIDFilter;
|
|
6063
6066
|
/** Checks for all expressions in this list. */
|
|
6064
|
-
and?:
|
|
6067
|
+
and?: SqlActionFilter[];
|
|
6065
6068
|
/** Checks for any expressions in this list. */
|
|
6066
|
-
or?:
|
|
6069
|
+
or?: SqlActionFilter[];
|
|
6067
6070
|
/** Negates the expression. */
|
|
6068
|
-
not?:
|
|
6071
|
+
not?: SqlActionFilter;
|
|
6069
6072
|
}
|
|
6070
6073
|
/** A filter to be used against `AstMigration` object types. All fields are combined with a logical ‘and.’ */
|
|
6071
6074
|
export interface AstMigrationFilter {
|
|
@@ -6839,6 +6842,17 @@ export interface PhoneNumberInput {
|
|
|
6839
6842
|
createdAt?: string;
|
|
6840
6843
|
updatedAt?: string;
|
|
6841
6844
|
}
|
|
6845
|
+
export interface CreateMigrateFileInput {
|
|
6846
|
+
clientMutationId?: string;
|
|
6847
|
+
/** The `MigrateFile` to be created by this mutation. */
|
|
6848
|
+
migrateFile: MigrateFileInput;
|
|
6849
|
+
}
|
|
6850
|
+
/** An input for mutations affecting `MigrateFile` */
|
|
6851
|
+
export interface MigrateFileInput {
|
|
6852
|
+
id?: string;
|
|
6853
|
+
databaseId?: string;
|
|
6854
|
+
upload?: ConstructiveInternalTypeUpload;
|
|
6855
|
+
}
|
|
6842
6856
|
export interface CreateAppLimitDefaultInput {
|
|
6843
6857
|
clientMutationId?: string;
|
|
6844
6858
|
/** The `AppLimitDefault` to be created by this mutation. */
|
|
@@ -6882,23 +6896,6 @@ export interface TableGrantInput {
|
|
|
6882
6896
|
createdAt?: string;
|
|
6883
6897
|
updatedAt?: string;
|
|
6884
6898
|
}
|
|
6885
|
-
export interface CreateFieldModuleInput {
|
|
6886
|
-
clientMutationId?: string;
|
|
6887
|
-
/** The `FieldModule` to be created by this mutation. */
|
|
6888
|
-
fieldModule: FieldModuleInput;
|
|
6889
|
-
}
|
|
6890
|
-
/** An input for mutations affecting `FieldModule` */
|
|
6891
|
-
export interface FieldModuleInput {
|
|
6892
|
-
id?: string;
|
|
6893
|
-
databaseId: string;
|
|
6894
|
-
privateSchemaId?: string;
|
|
6895
|
-
tableId?: string;
|
|
6896
|
-
fieldId?: string;
|
|
6897
|
-
nodeType: string;
|
|
6898
|
-
data?: unknown;
|
|
6899
|
-
triggers?: string[];
|
|
6900
|
-
functions?: string[];
|
|
6901
|
-
}
|
|
6902
6899
|
export interface CreateTableTemplateModuleInput {
|
|
6903
6900
|
clientMutationId?: string;
|
|
6904
6901
|
/** The `TableTemplateModule` to be created by this mutation. */
|
|
@@ -6948,11 +6945,11 @@ export interface CreateNodeTypeRegistryInput {
|
|
|
6948
6945
|
}
|
|
6949
6946
|
/** An input for mutations affecting `NodeTypeRegistry` */
|
|
6950
6947
|
export interface NodeTypeRegistryInput {
|
|
6951
|
-
/** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps,
|
|
6948
|
+
/** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, DataImmutableFields) */
|
|
6952
6949
|
name: string;
|
|
6953
6950
|
/** snake_case slug for use in code and configuration (e.g., authz_direct_owner, data_timestamps) */
|
|
6954
6951
|
slug: string;
|
|
6955
|
-
/** Node type category: authz (authorization semantics), data (table-level behaviors),
|
|
6952
|
+
/** Node type category: authz (authorization semantics), data (table-level behaviors), view (view query types), relation (relational structure between tables) */
|
|
6956
6953
|
category: string;
|
|
6957
6954
|
/** Human-readable display name for UI */
|
|
6958
6955
|
displayName?: string;
|
|
@@ -7431,13 +7428,13 @@ export interface AppLevelInput {
|
|
|
7431
7428
|
createdAt?: string;
|
|
7432
7429
|
updatedAt?: string;
|
|
7433
7430
|
}
|
|
7434
|
-
export interface
|
|
7431
|
+
export interface CreateSqlActionInput {
|
|
7435
7432
|
clientMutationId?: string;
|
|
7436
|
-
/** The `
|
|
7437
|
-
|
|
7433
|
+
/** The `SqlAction` to be created by this mutation. */
|
|
7434
|
+
sqlAction: SqlActionInput;
|
|
7438
7435
|
}
|
|
7439
|
-
/** An input for mutations affecting `
|
|
7440
|
-
export interface
|
|
7436
|
+
/** An input for mutations affecting `SqlAction` */
|
|
7437
|
+
export interface SqlActionInput {
|
|
7441
7438
|
id?: number;
|
|
7442
7439
|
name?: string;
|
|
7443
7440
|
databaseId?: string;
|
|
@@ -9215,24 +9212,6 @@ export interface TableGrantPatch {
|
|
|
9215
9212
|
createdAt?: string;
|
|
9216
9213
|
updatedAt?: string;
|
|
9217
9214
|
}
|
|
9218
|
-
export interface UpdateFieldModuleInput {
|
|
9219
|
-
clientMutationId?: string;
|
|
9220
|
-
id: string;
|
|
9221
|
-
/** An object where the defined keys will be set on the `FieldModule` being updated. */
|
|
9222
|
-
fieldModulePatch: FieldModulePatch;
|
|
9223
|
-
}
|
|
9224
|
-
/** Represents an update to a `FieldModule`. Fields that are set will be updated. */
|
|
9225
|
-
export interface FieldModulePatch {
|
|
9226
|
-
id?: string;
|
|
9227
|
-
databaseId?: string;
|
|
9228
|
-
privateSchemaId?: string;
|
|
9229
|
-
tableId?: string;
|
|
9230
|
-
fieldId?: string;
|
|
9231
|
-
nodeType?: string;
|
|
9232
|
-
data?: unknown;
|
|
9233
|
-
triggers?: string[];
|
|
9234
|
-
functions?: string[];
|
|
9235
|
-
}
|
|
9236
9215
|
export interface UpdateTableTemplateModuleInput {
|
|
9237
9216
|
clientMutationId?: string;
|
|
9238
9217
|
id: string;
|
|
@@ -9279,18 +9258,18 @@ export interface OrgChartEdgeGrantPatch {
|
|
|
9279
9258
|
}
|
|
9280
9259
|
export interface UpdateNodeTypeRegistryInput {
|
|
9281
9260
|
clientMutationId?: string;
|
|
9282
|
-
/** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps,
|
|
9261
|
+
/** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, DataImmutableFields) */
|
|
9283
9262
|
name: string;
|
|
9284
9263
|
/** An object where the defined keys will be set on the `NodeTypeRegistry` being updated. */
|
|
9285
9264
|
nodeTypeRegistryPatch: NodeTypeRegistryPatch;
|
|
9286
9265
|
}
|
|
9287
9266
|
/** Represents an update to a `NodeTypeRegistry`. Fields that are set will be updated. */
|
|
9288
9267
|
export interface NodeTypeRegistryPatch {
|
|
9289
|
-
/** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps,
|
|
9268
|
+
/** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, DataImmutableFields) */
|
|
9290
9269
|
name?: string;
|
|
9291
9270
|
/** snake_case slug for use in code and configuration (e.g., authz_direct_owner, data_timestamps) */
|
|
9292
9271
|
slug?: string;
|
|
9293
|
-
/** Node type category: authz (authorization semantics), data (table-level behaviors),
|
|
9272
|
+
/** Node type category: authz (authorization semantics), data (table-level behaviors), view (view query types), relation (relational structure between tables) */
|
|
9294
9273
|
category?: string;
|
|
9295
9274
|
/** Human-readable display name for UI */
|
|
9296
9275
|
displayName?: string;
|
|
@@ -11145,10 +11124,6 @@ export interface DeleteTableGrantInput {
|
|
|
11145
11124
|
clientMutationId?: string;
|
|
11146
11125
|
id: string;
|
|
11147
11126
|
}
|
|
11148
|
-
export interface DeleteFieldModuleInput {
|
|
11149
|
-
clientMutationId?: string;
|
|
11150
|
-
id: string;
|
|
11151
|
-
}
|
|
11152
11127
|
export interface DeleteTableTemplateModuleInput {
|
|
11153
11128
|
clientMutationId?: string;
|
|
11154
11129
|
id: string;
|
|
@@ -11159,7 +11134,7 @@ export interface DeleteOrgChartEdgeGrantInput {
|
|
|
11159
11134
|
}
|
|
11160
11135
|
export interface DeleteNodeTypeRegistryInput {
|
|
11161
11136
|
clientMutationId?: string;
|
|
11162
|
-
/** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps,
|
|
11137
|
+
/** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, DataImmutableFields) */
|
|
11163
11138
|
name: string;
|
|
11164
11139
|
}
|
|
11165
11140
|
export interface DeleteMembershipTypeInput {
|
|
@@ -11706,6 +11681,13 @@ export interface PhoneNumberConnection {
|
|
|
11706
11681
|
pageInfo: PageInfo;
|
|
11707
11682
|
totalCount: number;
|
|
11708
11683
|
}
|
|
11684
|
+
/** A connection to a list of `MigrateFile` values. */
|
|
11685
|
+
export interface MigrateFileConnection {
|
|
11686
|
+
nodes: MigrateFile[];
|
|
11687
|
+
edges: MigrateFileEdge[];
|
|
11688
|
+
pageInfo: PageInfo;
|
|
11689
|
+
totalCount: number;
|
|
11690
|
+
}
|
|
11709
11691
|
/** A connection to a list of `AppLimitDefault` values. */
|
|
11710
11692
|
export interface AppLimitDefaultConnection {
|
|
11711
11693
|
nodes: AppLimitDefault[];
|
|
@@ -11727,13 +11709,6 @@ export interface TableGrantConnection {
|
|
|
11727
11709
|
pageInfo: PageInfo;
|
|
11728
11710
|
totalCount: number;
|
|
11729
11711
|
}
|
|
11730
|
-
/** A connection to a list of `FieldModule` values. */
|
|
11731
|
-
export interface FieldModuleConnection {
|
|
11732
|
-
nodes: FieldModule[];
|
|
11733
|
-
edges: FieldModuleEdge[];
|
|
11734
|
-
pageInfo: PageInfo;
|
|
11735
|
-
totalCount: number;
|
|
11736
|
-
}
|
|
11737
11712
|
/** A connection to a list of `TableTemplateModule` values. */
|
|
11738
11713
|
export interface TableTemplateModuleConnection {
|
|
11739
11714
|
nodes: TableTemplateModule[];
|
|
@@ -11902,10 +11877,10 @@ export interface AppLevelConnection {
|
|
|
11902
11877
|
pageInfo: PageInfo;
|
|
11903
11878
|
totalCount: number;
|
|
11904
11879
|
}
|
|
11905
|
-
/** A connection to a list of `
|
|
11906
|
-
export interface
|
|
11907
|
-
nodes:
|
|
11908
|
-
edges:
|
|
11880
|
+
/** A connection to a list of `SqlAction` values. */
|
|
11881
|
+
export interface SqlActionConnection {
|
|
11882
|
+
nodes: SqlAction[];
|
|
11883
|
+
edges: SqlActionEdge[];
|
|
11909
11884
|
pageInfo: PageInfo;
|
|
11910
11885
|
totalCount: number;
|
|
11911
11886
|
}
|
|
@@ -12513,6 +12488,11 @@ export interface CreatePhoneNumberPayload {
|
|
|
12513
12488
|
phoneNumber?: PhoneNumber | null;
|
|
12514
12489
|
phoneNumberEdge?: PhoneNumberEdge | null;
|
|
12515
12490
|
}
|
|
12491
|
+
export interface CreateMigrateFilePayload {
|
|
12492
|
+
clientMutationId?: string | null;
|
|
12493
|
+
/** The `MigrateFile` that was created by this mutation. */
|
|
12494
|
+
migrateFile?: MigrateFile | null;
|
|
12495
|
+
}
|
|
12516
12496
|
export interface CreateAppLimitDefaultPayload {
|
|
12517
12497
|
clientMutationId?: string | null;
|
|
12518
12498
|
/** The `AppLimitDefault` that was created by this mutation. */
|
|
@@ -12531,12 +12511,6 @@ export interface CreateTableGrantPayload {
|
|
|
12531
12511
|
tableGrant?: TableGrant | null;
|
|
12532
12512
|
tableGrantEdge?: TableGrantEdge | null;
|
|
12533
12513
|
}
|
|
12534
|
-
export interface CreateFieldModulePayload {
|
|
12535
|
-
clientMutationId?: string | null;
|
|
12536
|
-
/** The `FieldModule` that was created by this mutation. */
|
|
12537
|
-
fieldModule?: FieldModule | null;
|
|
12538
|
-
fieldModuleEdge?: FieldModuleEdge | null;
|
|
12539
|
-
}
|
|
12540
12514
|
export interface CreateTableTemplateModulePayload {
|
|
12541
12515
|
clientMutationId?: string | null;
|
|
12542
12516
|
/** The `TableTemplateModule` that was created by this mutation. */
|
|
@@ -12705,10 +12679,10 @@ export interface CreateAppLevelPayload {
|
|
|
12705
12679
|
appLevel?: AppLevel | null;
|
|
12706
12680
|
appLevelEdge?: AppLevelEdge | null;
|
|
12707
12681
|
}
|
|
12708
|
-
export interface
|
|
12682
|
+
export interface CreateSqlActionPayload {
|
|
12709
12683
|
clientMutationId?: string | null;
|
|
12710
|
-
/** The `
|
|
12711
|
-
|
|
12684
|
+
/** The `SqlAction` that was created by this mutation. */
|
|
12685
|
+
sqlAction?: SqlAction | null;
|
|
12712
12686
|
}
|
|
12713
12687
|
export interface CreateDatabaseTransferPayload {
|
|
12714
12688
|
clientMutationId?: string | null;
|
|
@@ -13153,12 +13127,6 @@ export interface UpdateTableGrantPayload {
|
|
|
13153
13127
|
tableGrant?: TableGrant | null;
|
|
13154
13128
|
tableGrantEdge?: TableGrantEdge | null;
|
|
13155
13129
|
}
|
|
13156
|
-
export interface UpdateFieldModulePayload {
|
|
13157
|
-
clientMutationId?: string | null;
|
|
13158
|
-
/** The `FieldModule` that was updated by this mutation. */
|
|
13159
|
-
fieldModule?: FieldModule | null;
|
|
13160
|
-
fieldModuleEdge?: FieldModuleEdge | null;
|
|
13161
|
-
}
|
|
13162
13130
|
export interface UpdateTableTemplateModulePayload {
|
|
13163
13131
|
clientMutationId?: string | null;
|
|
13164
13132
|
/** The `TableTemplateModule` that was updated by this mutation. */
|
|
@@ -13765,12 +13733,6 @@ export interface DeleteTableGrantPayload {
|
|
|
13765
13733
|
tableGrant?: TableGrant | null;
|
|
13766
13734
|
tableGrantEdge?: TableGrantEdge | null;
|
|
13767
13735
|
}
|
|
13768
|
-
export interface DeleteFieldModulePayload {
|
|
13769
|
-
clientMutationId?: string | null;
|
|
13770
|
-
/** The `FieldModule` that was deleted by this mutation. */
|
|
13771
|
-
fieldModule?: FieldModule | null;
|
|
13772
|
-
fieldModuleEdge?: FieldModuleEdge | null;
|
|
13773
|
-
}
|
|
13774
13736
|
export interface DeleteTableTemplateModulePayload {
|
|
13775
13737
|
clientMutationId?: string | null;
|
|
13776
13738
|
/** The `TableTemplateModule` that was deleted by this mutation. */
|
|
@@ -14412,6 +14374,12 @@ export interface PhoneNumberEdge {
|
|
|
14412
14374
|
/** The `PhoneNumber` at the end of the edge. */
|
|
14413
14375
|
node?: PhoneNumber | null;
|
|
14414
14376
|
}
|
|
14377
|
+
/** A `MigrateFile` edge in the connection. */
|
|
14378
|
+
export interface MigrateFileEdge {
|
|
14379
|
+
cursor?: string | null;
|
|
14380
|
+
/** The `MigrateFile` at the end of the edge. */
|
|
14381
|
+
node?: MigrateFile | null;
|
|
14382
|
+
}
|
|
14415
14383
|
/** A `AppLimitDefault` edge in the connection. */
|
|
14416
14384
|
export interface AppLimitDefaultEdge {
|
|
14417
14385
|
cursor?: string | null;
|
|
@@ -14430,12 +14398,6 @@ export interface TableGrantEdge {
|
|
|
14430
14398
|
/** The `TableGrant` at the end of the edge. */
|
|
14431
14399
|
node?: TableGrant | null;
|
|
14432
14400
|
}
|
|
14433
|
-
/** A `FieldModule` edge in the connection. */
|
|
14434
|
-
export interface FieldModuleEdge {
|
|
14435
|
-
cursor?: string | null;
|
|
14436
|
-
/** The `FieldModule` at the end of the edge. */
|
|
14437
|
-
node?: FieldModule | null;
|
|
14438
|
-
}
|
|
14439
14401
|
/** A `TableTemplateModule` edge in the connection. */
|
|
14440
14402
|
export interface TableTemplateModuleEdge {
|
|
14441
14403
|
cursor?: string | null;
|
|
@@ -14580,11 +14542,11 @@ export interface AppLevelEdge {
|
|
|
14580
14542
|
/** The `AppLevel` at the end of the edge. */
|
|
14581
14543
|
node?: AppLevel | null;
|
|
14582
14544
|
}
|
|
14583
|
-
/** A `
|
|
14584
|
-
export interface
|
|
14545
|
+
/** A `SqlAction` edge in the connection. */
|
|
14546
|
+
export interface SqlActionEdge {
|
|
14585
14547
|
cursor?: string | null;
|
|
14586
|
-
/** The `
|
|
14587
|
-
node?:
|
|
14548
|
+
/** The `SqlAction` at the end of the edge. */
|
|
14549
|
+
node?: SqlAction | null;
|
|
14588
14550
|
}
|
|
14589
14551
|
/** A `DatabaseTransfer` edge in the connection. */
|
|
14590
14552
|
export interface DatabaseTransferEdge {
|
package/public/types.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export type ConstructiveInternalTypeEmail = unknown;
|
|
|
9
9
|
export type ConstructiveInternalTypeHostname = unknown;
|
|
10
10
|
export type ConstructiveInternalTypeImage = unknown;
|
|
11
11
|
export type ConstructiveInternalTypeOrigin = unknown;
|
|
12
|
+
export type ConstructiveInternalTypeUpload = unknown;
|
|
12
13
|
export type ConstructiveInternalTypeUrl = unknown;
|
|
13
14
|
export interface GetAllRecord {
|
|
14
15
|
path: string[] | null;
|
|
@@ -595,17 +596,6 @@ export interface EncryptedSecretsModule {
|
|
|
595
596
|
tableId: string | null;
|
|
596
597
|
tableName: string | null;
|
|
597
598
|
}
|
|
598
|
-
export interface FieldModule {
|
|
599
|
-
id: string | null;
|
|
600
|
-
databaseId: string | null;
|
|
601
|
-
privateSchemaId: string | null;
|
|
602
|
-
tableId: string | null;
|
|
603
|
-
fieldId: string | null;
|
|
604
|
-
nodeType: string | null;
|
|
605
|
-
data: unknown | null;
|
|
606
|
-
triggers: string[] | null;
|
|
607
|
-
functions: string[] | null;
|
|
608
|
-
}
|
|
609
599
|
export interface InvitesModule {
|
|
610
600
|
id: string | null;
|
|
611
601
|
databaseId: string | null;
|
|
@@ -1132,6 +1122,11 @@ export interface RoleType {
|
|
|
1132
1122
|
id: number | null;
|
|
1133
1123
|
name: string | null;
|
|
1134
1124
|
}
|
|
1125
|
+
export interface MigrateFile {
|
|
1126
|
+
id: string | null;
|
|
1127
|
+
databaseId: string | null;
|
|
1128
|
+
upload: ConstructiveInternalTypeUpload | null;
|
|
1129
|
+
}
|
|
1135
1130
|
export interface AppLimitDefault {
|
|
1136
1131
|
id: string | null;
|
|
1137
1132
|
name: string | null;
|
|
@@ -1203,7 +1198,7 @@ export interface OrgMembershipDefault {
|
|
|
1203
1198
|
deleteMemberCascadeGroups: boolean | null;
|
|
1204
1199
|
createGroupsCascadeMembers: boolean | null;
|
|
1205
1200
|
}
|
|
1206
|
-
export interface
|
|
1201
|
+
export interface SqlAction {
|
|
1207
1202
|
id: number | null;
|
|
1208
1203
|
name: string | null;
|
|
1209
1204
|
databaseId: string | null;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create mutation hook for FieldModule
|
|
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 { FieldModuleSelect, FieldModuleWithRelations, CreateFieldModuleInput } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { FieldModuleSelect, FieldModuleWithRelations, CreateFieldModuleInput, } from '../../orm/input-types';
|
|
10
|
-
/**
|
|
11
|
-
* Mutation hook for creating a FieldModule
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* const { mutate, isPending } = useCreateFieldModuleMutation({
|
|
16
|
-
* selection: { fields: { id: true, name: true } },
|
|
17
|
-
* });
|
|
18
|
-
*
|
|
19
|
-
* mutate({ name: 'New item' });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function useCreateFieldModuleMutation<S extends FieldModuleSelect>(params: {
|
|
23
|
-
selection: {
|
|
24
|
-
fields: S & FieldModuleSelect;
|
|
25
|
-
} & HookStrictSelect<NoInfer<S>, FieldModuleSelect>;
|
|
26
|
-
} & Omit<UseMutationOptions<{
|
|
27
|
-
createFieldModule: {
|
|
28
|
-
fieldModule: InferSelectResult<FieldModuleWithRelations, S>;
|
|
29
|
-
};
|
|
30
|
-
}, Error, CreateFieldModuleInput['fieldModule']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
-
createFieldModule: {
|
|
32
|
-
fieldModule: InferSelectResult<FieldModuleWithRelations, S>;
|
|
33
|
-
};
|
|
34
|
-
}, Error, CreateFieldModuleInput['fieldModule']>;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create mutation hook for SqlMigration
|
|
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 { SqlMigrationSelect, SqlMigrationWithRelations, CreateSqlMigrationInput } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { SqlMigrationSelect, SqlMigrationWithRelations, CreateSqlMigrationInput, } from '../../orm/input-types';
|
|
10
|
-
/**
|
|
11
|
-
* Mutation hook for creating a SqlMigration
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* const { mutate, isPending } = useCreateSqlMigrationMutation({
|
|
16
|
-
* selection: { fields: { id: true, name: true } },
|
|
17
|
-
* });
|
|
18
|
-
*
|
|
19
|
-
* mutate({ name: 'New item' });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function useCreateSqlMigrationMutation<S extends SqlMigrationSelect>(params: {
|
|
23
|
-
selection: {
|
|
24
|
-
fields: S & SqlMigrationSelect;
|
|
25
|
-
} & HookStrictSelect<NoInfer<S>, SqlMigrationSelect>;
|
|
26
|
-
} & Omit<UseMutationOptions<{
|
|
27
|
-
createSqlMigration: {
|
|
28
|
-
sqlMigration: InferSelectResult<SqlMigrationWithRelations, S>;
|
|
29
|
-
};
|
|
30
|
-
}, Error, CreateSqlMigrationInput['sqlMigration']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
-
createSqlMigration: {
|
|
32
|
-
sqlMigration: InferSelectResult<SqlMigrationWithRelations, S>;
|
|
33
|
-
};
|
|
34
|
-
}, Error, CreateSqlMigrationInput['sqlMigration']>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Delete mutation hook for FieldModule
|
|
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 { FieldModuleSelect, FieldModuleWithRelations } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { FieldModuleSelect, FieldModuleWithRelations } from '../../orm/input-types';
|
|
10
|
-
/**
|
|
11
|
-
* Mutation hook for deleting a FieldModule with typed selection
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* const { mutate, isPending } = useDeleteFieldModuleMutation({
|
|
16
|
-
* selection: { fields: { id: true } },
|
|
17
|
-
* });
|
|
18
|
-
*
|
|
19
|
-
* mutate({ id: 'value-to-delete' });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function useDeleteFieldModuleMutation<S extends FieldModuleSelect>(params: {
|
|
23
|
-
selection: {
|
|
24
|
-
fields: S & FieldModuleSelect;
|
|
25
|
-
} & HookStrictSelect<NoInfer<S>, FieldModuleSelect>;
|
|
26
|
-
} & Omit<UseMutationOptions<{
|
|
27
|
-
deleteFieldModule: {
|
|
28
|
-
fieldModule: InferSelectResult<FieldModuleWithRelations, S>;
|
|
29
|
-
};
|
|
30
|
-
}, Error, {
|
|
31
|
-
id: string;
|
|
32
|
-
}>, 'mutationFn'>): UseMutationResult<{
|
|
33
|
-
deleteFieldModule: {
|
|
34
|
-
fieldModule: InferSelectResult<FieldModuleWithRelations, S>;
|
|
35
|
-
};
|
|
36
|
-
}, Error, {
|
|
37
|
-
id: string;
|
|
38
|
-
}>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Delete mutation hook for FieldModule
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
|
-
import { getClient } from '../client';
|
|
8
|
-
import { buildSelectionArgs } from '../selection';
|
|
9
|
-
import { fieldModuleKeys } from '../query-keys';
|
|
10
|
-
import { fieldModuleMutationKeys } from '../mutation-keys';
|
|
11
|
-
export function useDeleteFieldModuleMutation(params) {
|
|
12
|
-
const args = buildSelectionArgs(params.selection);
|
|
13
|
-
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
|
-
void _selection;
|
|
15
|
-
const queryClient = useQueryClient();
|
|
16
|
-
return useMutation({
|
|
17
|
-
mutationKey: fieldModuleMutationKeys.all,
|
|
18
|
-
mutationFn: ({ id }) => getClient()
|
|
19
|
-
.fieldModule.delete({
|
|
20
|
-
where: {
|
|
21
|
-
id,
|
|
22
|
-
},
|
|
23
|
-
select: args.select,
|
|
24
|
-
})
|
|
25
|
-
.unwrap(),
|
|
26
|
-
onSuccess: (_, variables) => {
|
|
27
|
-
queryClient.removeQueries({
|
|
28
|
-
queryKey: fieldModuleKeys.detail(variables.id),
|
|
29
|
-
});
|
|
30
|
-
queryClient.invalidateQueries({
|
|
31
|
-
queryKey: fieldModuleKeys.lists(),
|
|
32
|
-
});
|
|
33
|
-
},
|
|
34
|
-
...mutationOptions,
|
|
35
|
-
});
|
|
36
|
-
}
|