@constructive-io/react 0.10.3 → 0.10.5
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
|
@@ -52,7 +52,6 @@ export { DefaultIdsModuleModel } from './defaultIdsModule';
|
|
|
52
52
|
export { DenormalizedTableFieldModel } from './denormalizedTableField';
|
|
53
53
|
export { EmailsModuleModel } from './emailsModule';
|
|
54
54
|
export { EncryptedSecretsModuleModel } from './encryptedSecretsModule';
|
|
55
|
-
export { FieldModuleModel } from './fieldModule';
|
|
56
55
|
export { InvitesModuleModel } from './invitesModule';
|
|
57
56
|
export { LevelsModuleModel } from './levelsModule';
|
|
58
57
|
export { LimitsModuleModel } from './limitsModule';
|
|
@@ -97,6 +96,7 @@ export { RefModel } from './ref';
|
|
|
97
96
|
export { StoreModel } from './store';
|
|
98
97
|
export { AppPermissionDefaultModel } from './appPermissionDefault';
|
|
99
98
|
export { RoleTypeModel } from './roleType';
|
|
99
|
+
export { MigrateFileModel } from './migrateFile';
|
|
100
100
|
export { AppLimitDefaultModel } from './appLimitDefault';
|
|
101
101
|
export { OrgLimitDefaultModel } from './orgLimitDefault';
|
|
102
102
|
export { NodeTypeRegistryModel } from './nodeTypeRegistry';
|
|
@@ -105,7 +105,7 @@ export { CommitModel } from './commit';
|
|
|
105
105
|
export { AppMembershipDefaultModel } from './appMembershipDefault';
|
|
106
106
|
export { RlsModuleModel } from './rlsModule';
|
|
107
107
|
export { OrgMembershipDefaultModel } from './orgMembershipDefault';
|
|
108
|
-
export {
|
|
108
|
+
export { SqlActionModel } from './sqlAction';
|
|
109
109
|
export { UserModel } from './user';
|
|
110
110
|
export { AstMigrationModel } from './astMigration';
|
|
111
111
|
export { AppMembershipModel } from './appMembership';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MigrateFile model for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from '../client';
|
|
7
|
+
import { QueryBuilder } from '../query-builder';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { MigrateFileWithRelations, MigrateFileSelect, MigrateFileFilter, MigrateFileOrderBy, CreateMigrateFileInput } from '../input-types';
|
|
10
|
+
export declare class MigrateFileModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends MigrateFileSelect>(args: FindManyArgs<S, MigrateFileFilter, never, MigrateFileOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, MigrateFileSelect>): QueryBuilder<{
|
|
16
|
+
migrateFiles: ConnectionResult<InferSelectResult<MigrateFileWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends MigrateFileSelect>(args: FindFirstArgs<S, MigrateFileFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, MigrateFileSelect>): QueryBuilder<{
|
|
21
|
+
migrateFiles: {
|
|
22
|
+
nodes: InferSelectResult<MigrateFileWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends MigrateFileSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, MigrateFileSelect>): QueryBuilder<{
|
|
29
|
+
migrateFile: InferSelectResult<MigrateFileWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends MigrateFileSelect>(args: CreateArgs<S, CreateMigrateFileInput['migrateFile']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, MigrateFileSelect>): QueryBuilder<{
|
|
34
|
+
createMigrateFile: {
|
|
35
|
+
migrateFile: InferSelectResult<MigrateFileWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class MigrateFileModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('MigrateFile', 'migrateFiles', args.select, {
|
|
10
|
+
where: args?.where,
|
|
11
|
+
orderBy: args?.orderBy,
|
|
12
|
+
first: args?.first,
|
|
13
|
+
last: args?.last,
|
|
14
|
+
after: args?.after,
|
|
15
|
+
before: args?.before,
|
|
16
|
+
offset: args?.offset,
|
|
17
|
+
}, 'MigrateFileFilter', 'MigrateFileOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'MigrateFile',
|
|
22
|
+
fieldName: 'migrateFiles',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('MigrateFile', 'migrateFiles', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
}, 'MigrateFileFilter', connectionFieldsMap);
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'MigrateFile',
|
|
35
|
+
fieldName: 'migrateFiles',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
findOne(args) {
|
|
41
|
+
const { document, variables } = buildFindManyDocument('MigrateFile', 'migrateFiles', args.select, {
|
|
42
|
+
where: {
|
|
43
|
+
id: {
|
|
44
|
+
equalTo: args.id,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
first: 1,
|
|
48
|
+
}, 'MigrateFileFilter', 'MigrateFileOrderBy', connectionFieldsMap);
|
|
49
|
+
return new QueryBuilder({
|
|
50
|
+
client: this.client,
|
|
51
|
+
operation: 'query',
|
|
52
|
+
operationName: 'MigrateFile',
|
|
53
|
+
fieldName: 'migrateFile',
|
|
54
|
+
document,
|
|
55
|
+
variables,
|
|
56
|
+
transform: (data) => ({
|
|
57
|
+
migrateFile: data.migrateFiles?.nodes?.[0] ?? null,
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
create(args) {
|
|
62
|
+
const { document, variables } = buildCreateDocument('MigrateFile', 'createMigrateFile', 'migrateFile', args.select, args.data, 'CreateMigrateFileInput', connectionFieldsMap);
|
|
63
|
+
return new QueryBuilder({
|
|
64
|
+
client: this.client,
|
|
65
|
+
operation: 'mutation',
|
|
66
|
+
operationName: 'MigrateFile',
|
|
67
|
+
fieldName: 'createMigrateFile',
|
|
68
|
+
document,
|
|
69
|
+
variables,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SqlAction model for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from '../client';
|
|
7
|
+
import { QueryBuilder } from '../query-builder';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { SqlActionWithRelations, SqlActionSelect, SqlActionFilter, SqlActionOrderBy, CreateSqlActionInput } from '../input-types';
|
|
10
|
+
export declare class SqlActionModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends SqlActionSelect>(args: FindManyArgs<S, SqlActionFilter, never, SqlActionOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, SqlActionSelect>): QueryBuilder<{
|
|
16
|
+
sqlActions: ConnectionResult<InferSelectResult<SqlActionWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends SqlActionSelect>(args: FindFirstArgs<S, SqlActionFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, SqlActionSelect>): QueryBuilder<{
|
|
21
|
+
sqlActions: {
|
|
22
|
+
nodes: InferSelectResult<SqlActionWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends SqlActionSelect>(args: {
|
|
26
|
+
id: number;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, SqlActionSelect>): QueryBuilder<{
|
|
29
|
+
sqlAction: InferSelectResult<SqlActionWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends SqlActionSelect>(args: CreateArgs<S, CreateSqlActionInput['sqlAction']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, SqlActionSelect>): QueryBuilder<{
|
|
34
|
+
createSqlAction: {
|
|
35
|
+
sqlAction: InferSelectResult<SqlActionWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
|
|
2
2
|
import { connectionFieldsMap } from '../input-types';
|
|
3
|
-
export class
|
|
3
|
+
export class SqlActionModel {
|
|
4
4
|
client;
|
|
5
5
|
constructor(client) {
|
|
6
6
|
this.client = client;
|
|
7
7
|
}
|
|
8
8
|
findMany(args) {
|
|
9
|
-
const { document, variables } = buildFindManyDocument('
|
|
9
|
+
const { document, variables } = buildFindManyDocument('SqlAction', 'sqlActions', args.select, {
|
|
10
10
|
where: args?.where,
|
|
11
11
|
orderBy: args?.orderBy,
|
|
12
12
|
first: args?.first,
|
|
@@ -14,57 +14,57 @@ export class SqlMigrationModel {
|
|
|
14
14
|
after: args?.after,
|
|
15
15
|
before: args?.before,
|
|
16
16
|
offset: args?.offset,
|
|
17
|
-
}, '
|
|
17
|
+
}, 'SqlActionFilter', 'SqlActionOrderBy', connectionFieldsMap);
|
|
18
18
|
return new QueryBuilder({
|
|
19
19
|
client: this.client,
|
|
20
20
|
operation: 'query',
|
|
21
|
-
operationName: '
|
|
22
|
-
fieldName: '
|
|
21
|
+
operationName: 'SqlAction',
|
|
22
|
+
fieldName: 'sqlActions',
|
|
23
23
|
document,
|
|
24
24
|
variables,
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
findFirst(args) {
|
|
28
|
-
const { document, variables } = buildFindFirstDocument('
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('SqlAction', 'sqlActions', args.select, {
|
|
29
29
|
where: args?.where,
|
|
30
|
-
}, '
|
|
30
|
+
}, 'SqlActionFilter', connectionFieldsMap);
|
|
31
31
|
return new QueryBuilder({
|
|
32
32
|
client: this.client,
|
|
33
33
|
operation: 'query',
|
|
34
|
-
operationName: '
|
|
35
|
-
fieldName: '
|
|
34
|
+
operationName: 'SqlAction',
|
|
35
|
+
fieldName: 'sqlActions',
|
|
36
36
|
document,
|
|
37
37
|
variables,
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
findOne(args) {
|
|
41
|
-
const { document, variables } = buildFindManyDocument('
|
|
41
|
+
const { document, variables } = buildFindManyDocument('SqlAction', 'sqlActions', args.select, {
|
|
42
42
|
where: {
|
|
43
43
|
id: {
|
|
44
44
|
equalTo: args.id,
|
|
45
45
|
},
|
|
46
46
|
},
|
|
47
47
|
first: 1,
|
|
48
|
-
}, '
|
|
48
|
+
}, 'SqlActionFilter', 'SqlActionOrderBy', connectionFieldsMap);
|
|
49
49
|
return new QueryBuilder({
|
|
50
50
|
client: this.client,
|
|
51
51
|
operation: 'query',
|
|
52
|
-
operationName: '
|
|
53
|
-
fieldName: '
|
|
52
|
+
operationName: 'SqlAction',
|
|
53
|
+
fieldName: 'sqlAction',
|
|
54
54
|
document,
|
|
55
55
|
variables,
|
|
56
56
|
transform: (data) => ({
|
|
57
|
-
|
|
57
|
+
sqlAction: data.sqlActions?.nodes?.[0] ?? null,
|
|
58
58
|
}),
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
create(args) {
|
|
62
|
-
const { document, variables } = buildCreateDocument('
|
|
62
|
+
const { document, variables } = buildCreateDocument('SqlAction', 'createSqlAction', 'sqlAction', args.select, args.data, 'CreateSqlActionInput', connectionFieldsMap);
|
|
63
63
|
return new QueryBuilder({
|
|
64
64
|
client: this.client,
|
|
65
65
|
operation: 'mutation',
|
|
66
|
-
operationName: '
|
|
67
|
-
fieldName: '
|
|
66
|
+
operationName: 'SqlAction',
|
|
67
|
+
fieldName: 'createSqlAction',
|
|
68
68
|
document,
|
|
69
69
|
variables,
|
|
70
70
|
});
|