@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.AppMembershipDefaultModel = exports.CommitModel = exports.MembershipTypeModel = exports.NodeTypeRegistryModel = exports.OrgLimitDefaultModel = exports.AppLimitDefaultModel = exports.RoleTypeModel = exports.AppPermissionDefaultModel = exports.StoreModel = exports.RefModel = exports.AuditLogModel = exports.OrgClaimedInviteModel = exports.OrgInviteModel = exports.ClaimedInviteModel = exports.InviteModel = exports.ConnectedAccountModel = exports.CryptoAddressModel = exports.PhoneNumberModel = exports.EmailModel = exports.AppLevelModel = exports.AppAchievementModel = exports.AppStepModel = exports.OrgLimitModel = exports.AppLimitModel = exports.OrgPermissionDefaultModel = exports.OrgChartEdgeGrantModel = exports.OrgChartEdgeModel = exports.OrgGrantModel = exports.OrgOwnerGrantModel = exports.OrgAdminGrantModel = exports.OrgMemberModel = exports.OrgMembershipModel = exports.AppGrantModel = exports.AppOwnerGrantModel = exports.AppAdminGrantModel = exports.DatabaseProvisionModuleModel = exports.BlueprintTemplateModel = exports.BlueprintModel = exports.UsersModuleModel = exports.UserAuthModuleModel = exports.SessionsModuleModel = exports.SecretsModuleModel = exports.ProfilesModuleModel = exports.PhoneNumbersModuleModel = exports.PermissionsModuleModel = exports.MembershipsModuleModel = exports.MembershipTypesModuleModel = exports.LimitsModuleModel = exports.LevelsModuleModel =
|
|
5
|
-
exports.HierarchyModuleModel = exports.AppMembershipModel = exports.AstMigrationModel = exports.UserModel = exports.
|
|
3
|
+
exports.InvitesModuleModel = exports.EncryptedSecretsModuleModel = exports.EmailsModuleModel = exports.DenormalizedTableFieldModel = exports.DefaultIdsModuleModel = exports.CryptoAuthModuleModel = exports.CryptoAddressesModuleModel = exports.ConnectedAccountsModuleModel = exports.AppModel = exports.SiteModel = exports.ApiModel = exports.DatabaseTransferModel = exports.TriggerFunctionModel = exports.SiteThemeModel = exports.SiteModuleModel = exports.SiteMetadatumModel = exports.DomainModel = exports.ApiModuleModel = exports.ApiSchemaModel = exports.EnumModel = exports.DefaultPrivilegeModel = exports.SchemaGrantModel = exports.RelationProvisionModel = exports.SecureTableProvisionModel = exports.TableTemplateModuleModel = exports.EmbeddingChunkModel = exports.ViewRuleModel = exports.ViewGrantModel = exports.ViewTableModel = exports.ViewModel = exports.UniqueConstraintModel = exports.TriggerModel = exports.TableGrantModel = exports.PrimaryKeyConstraintModel = exports.PolicyModel = exports.IndexModel = exports.FullTextSearchModel = exports.ForeignKeyConstraintModel = exports.FieldModel = exports.CheckConstraintModel = exports.TableModel = exports.SchemaModel = exports.DatabaseModel = exports.AppLevelRequirementModel = exports.OrgPermissionModel = exports.AppPermissionModel = exports.ObjectModel = exports.OrgGetSubordinatesRecordModel = exports.OrgGetManagersRecordModel = exports.GetAllRecordModel = void 0;
|
|
4
|
+
exports.AppMembershipDefaultModel = exports.CommitModel = exports.MembershipTypeModel = exports.NodeTypeRegistryModel = exports.OrgLimitDefaultModel = exports.AppLimitDefaultModel = exports.MigrateFileModel = exports.RoleTypeModel = exports.AppPermissionDefaultModel = exports.StoreModel = exports.RefModel = exports.AuditLogModel = exports.OrgClaimedInviteModel = exports.OrgInviteModel = exports.ClaimedInviteModel = exports.InviteModel = exports.ConnectedAccountModel = exports.CryptoAddressModel = exports.PhoneNumberModel = exports.EmailModel = exports.AppLevelModel = exports.AppAchievementModel = exports.AppStepModel = exports.OrgLimitModel = exports.AppLimitModel = exports.OrgPermissionDefaultModel = exports.OrgChartEdgeGrantModel = exports.OrgChartEdgeModel = exports.OrgGrantModel = exports.OrgOwnerGrantModel = exports.OrgAdminGrantModel = exports.OrgMemberModel = exports.OrgMembershipModel = exports.AppGrantModel = exports.AppOwnerGrantModel = exports.AppAdminGrantModel = exports.DatabaseProvisionModuleModel = exports.BlueprintTemplateModel = exports.BlueprintModel = exports.UsersModuleModel = exports.UserAuthModuleModel = exports.SessionsModuleModel = exports.SecretsModuleModel = exports.ProfilesModuleModel = exports.PhoneNumbersModuleModel = exports.PermissionsModuleModel = exports.MembershipsModuleModel = exports.MembershipTypesModuleModel = exports.LimitsModuleModel = exports.LevelsModuleModel = void 0;
|
|
5
|
+
exports.HierarchyModuleModel = exports.AppMembershipModel = exports.AstMigrationModel = exports.UserModel = exports.SqlActionModel = exports.OrgMembershipDefaultModel = exports.RlsModuleModel = void 0;
|
|
6
6
|
/**
|
|
7
7
|
* Models barrel export
|
|
8
8
|
* @generated by @constructive-io/graphql-codegen
|
|
@@ -106,8 +106,6 @@ var emailsModule_1 = require("./emailsModule");
|
|
|
106
106
|
Object.defineProperty(exports, "EmailsModuleModel", { enumerable: true, get: function () { return emailsModule_1.EmailsModuleModel; } });
|
|
107
107
|
var encryptedSecretsModule_1 = require("./encryptedSecretsModule");
|
|
108
108
|
Object.defineProperty(exports, "EncryptedSecretsModuleModel", { enumerable: true, get: function () { return encryptedSecretsModule_1.EncryptedSecretsModuleModel; } });
|
|
109
|
-
var fieldModule_1 = require("./fieldModule");
|
|
110
|
-
Object.defineProperty(exports, "FieldModuleModel", { enumerable: true, get: function () { return fieldModule_1.FieldModuleModel; } });
|
|
111
109
|
var invitesModule_1 = require("./invitesModule");
|
|
112
110
|
Object.defineProperty(exports, "InvitesModuleModel", { enumerable: true, get: function () { return invitesModule_1.InvitesModuleModel; } });
|
|
113
111
|
var levelsModule_1 = require("./levelsModule");
|
|
@@ -196,6 +194,8 @@ var appPermissionDefault_1 = require("./appPermissionDefault");
|
|
|
196
194
|
Object.defineProperty(exports, "AppPermissionDefaultModel", { enumerable: true, get: function () { return appPermissionDefault_1.AppPermissionDefaultModel; } });
|
|
197
195
|
var roleType_1 = require("./roleType");
|
|
198
196
|
Object.defineProperty(exports, "RoleTypeModel", { enumerable: true, get: function () { return roleType_1.RoleTypeModel; } });
|
|
197
|
+
var migrateFile_1 = require("./migrateFile");
|
|
198
|
+
Object.defineProperty(exports, "MigrateFileModel", { enumerable: true, get: function () { return migrateFile_1.MigrateFileModel; } });
|
|
199
199
|
var appLimitDefault_1 = require("./appLimitDefault");
|
|
200
200
|
Object.defineProperty(exports, "AppLimitDefaultModel", { enumerable: true, get: function () { return appLimitDefault_1.AppLimitDefaultModel; } });
|
|
201
201
|
var orgLimitDefault_1 = require("./orgLimitDefault");
|
|
@@ -212,8 +212,8 @@ var rlsModule_1 = require("./rlsModule");
|
|
|
212
212
|
Object.defineProperty(exports, "RlsModuleModel", { enumerable: true, get: function () { return rlsModule_1.RlsModuleModel; } });
|
|
213
213
|
var orgMembershipDefault_1 = require("./orgMembershipDefault");
|
|
214
214
|
Object.defineProperty(exports, "OrgMembershipDefaultModel", { enumerable: true, get: function () { return orgMembershipDefault_1.OrgMembershipDefaultModel; } });
|
|
215
|
-
var
|
|
216
|
-
Object.defineProperty(exports, "
|
|
215
|
+
var sqlAction_1 = require("./sqlAction");
|
|
216
|
+
Object.defineProperty(exports, "SqlActionModel", { enumerable: true, get: function () { return sqlAction_1.SqlActionModel; } });
|
|
217
217
|
var user_1 = require("./user");
|
|
218
218
|
Object.defineProperty(exports, "UserModel", { enumerable: true, get: function () { return user_1.UserModel; } });
|
|
219
219
|
var astMigration_1 = require("./astMigration");
|
|
@@ -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
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MigrateFileModel = void 0;
|
|
4
4
|
const query_builder_1 = require("../query-builder");
|
|
5
5
|
const input_types_1 = require("../input-types");
|
|
6
|
-
class
|
|
6
|
+
class MigrateFileModel {
|
|
7
7
|
client;
|
|
8
8
|
constructor(client) {
|
|
9
9
|
this.client = client;
|
|
10
10
|
}
|
|
11
11
|
findMany(args) {
|
|
12
|
-
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('MigrateFile', 'migrateFiles', args.select, {
|
|
13
13
|
where: args?.where,
|
|
14
14
|
orderBy: args?.orderBy,
|
|
15
15
|
first: args?.first,
|
|
@@ -17,60 +17,60 @@ class SqlMigrationModel {
|
|
|
17
17
|
after: args?.after,
|
|
18
18
|
before: args?.before,
|
|
19
19
|
offset: args?.offset,
|
|
20
|
-
}, '
|
|
20
|
+
}, 'MigrateFileFilter', 'MigrateFileOrderBy', input_types_1.connectionFieldsMap);
|
|
21
21
|
return new query_builder_1.QueryBuilder({
|
|
22
22
|
client: this.client,
|
|
23
23
|
operation: 'query',
|
|
24
|
-
operationName: '
|
|
25
|
-
fieldName: '
|
|
24
|
+
operationName: 'MigrateFile',
|
|
25
|
+
fieldName: 'migrateFiles',
|
|
26
26
|
document,
|
|
27
27
|
variables,
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
findFirst(args) {
|
|
31
|
-
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('MigrateFile', 'migrateFiles', args.select, {
|
|
32
32
|
where: args?.where,
|
|
33
|
-
}, '
|
|
33
|
+
}, 'MigrateFileFilter', input_types_1.connectionFieldsMap);
|
|
34
34
|
return new query_builder_1.QueryBuilder({
|
|
35
35
|
client: this.client,
|
|
36
36
|
operation: 'query',
|
|
37
|
-
operationName: '
|
|
38
|
-
fieldName: '
|
|
37
|
+
operationName: 'MigrateFile',
|
|
38
|
+
fieldName: 'migrateFiles',
|
|
39
39
|
document,
|
|
40
40
|
variables,
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
findOne(args) {
|
|
44
|
-
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('MigrateFile', 'migrateFiles', args.select, {
|
|
45
45
|
where: {
|
|
46
46
|
id: {
|
|
47
47
|
equalTo: args.id,
|
|
48
48
|
},
|
|
49
49
|
},
|
|
50
50
|
first: 1,
|
|
51
|
-
}, '
|
|
51
|
+
}, 'MigrateFileFilter', 'MigrateFileOrderBy', input_types_1.connectionFieldsMap);
|
|
52
52
|
return new query_builder_1.QueryBuilder({
|
|
53
53
|
client: this.client,
|
|
54
54
|
operation: 'query',
|
|
55
|
-
operationName: '
|
|
56
|
-
fieldName: '
|
|
55
|
+
operationName: 'MigrateFile',
|
|
56
|
+
fieldName: 'migrateFile',
|
|
57
57
|
document,
|
|
58
58
|
variables,
|
|
59
59
|
transform: (data) => ({
|
|
60
|
-
|
|
60
|
+
migrateFile: data.migrateFiles?.nodes?.[0] ?? null,
|
|
61
61
|
}),
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
create(args) {
|
|
65
|
-
const { document, variables } = (0, query_builder_1.buildCreateDocument)('
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('MigrateFile', 'createMigrateFile', 'migrateFile', args.select, args.data, 'CreateMigrateFileInput', input_types_1.connectionFieldsMap);
|
|
66
66
|
return new query_builder_1.QueryBuilder({
|
|
67
67
|
client: this.client,
|
|
68
68
|
operation: 'mutation',
|
|
69
|
-
operationName: '
|
|
70
|
-
fieldName: '
|
|
69
|
+
operationName: 'MigrateFile',
|
|
70
|
+
fieldName: 'createMigrateFile',
|
|
71
71
|
document,
|
|
72
72
|
variables,
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
exports.
|
|
76
|
+
exports.MigrateFileModel = MigrateFileModel;
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SqlActionModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class SqlActionModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('SqlAction', 'sqlActions', args.select, {
|
|
13
|
+
where: args?.where,
|
|
14
|
+
orderBy: args?.orderBy,
|
|
15
|
+
first: args?.first,
|
|
16
|
+
last: args?.last,
|
|
17
|
+
after: args?.after,
|
|
18
|
+
before: args?.before,
|
|
19
|
+
offset: args?.offset,
|
|
20
|
+
}, 'SqlActionFilter', 'SqlActionOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'SqlAction',
|
|
25
|
+
fieldName: 'sqlActions',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('SqlAction', 'sqlActions', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'SqlActionFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'SqlAction',
|
|
38
|
+
fieldName: 'sqlActions',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('SqlAction', 'sqlActions', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
id: {
|
|
47
|
+
equalTo: args.id,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'SqlActionFilter', 'SqlActionOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'SqlAction',
|
|
56
|
+
fieldName: 'sqlAction',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
sqlAction: data.sqlActions?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('SqlAction', 'createSqlAction', 'sqlAction', args.select, args.data, 'CreateSqlActionInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'SqlAction',
|
|
70
|
+
fieldName: 'createSqlAction',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
exports.SqlActionModel = SqlActionModel;
|