@constructive-io/sdk 0.2.4 → 0.3.0
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/index.d.ts +19 -6
- package/admin/orm/index.js +14 -6
- package/admin/orm/input-types.d.ts +879 -363
- package/admin/orm/models/index.d.ts +7 -3
- package/admin/orm/models/index.js +15 -7
- package/admin/orm/models/orgChartEdge.d.ts +56 -0
- package/{public/orm/models/limitFunction.js → admin/orm/models/orgChartEdge.js} +25 -25
- package/admin/orm/models/orgChartEdgeGrant.d.ts +56 -0
- package/admin/orm/models/orgChartEdgeGrant.js +98 -0
- package/admin/orm/models/orgGetManagersRecord.d.ts +32 -0
- package/admin/orm/models/orgGetManagersRecord.js +55 -0
- package/admin/orm/models/orgGetSubordinatesRecord.d.ts +32 -0
- package/admin/orm/models/orgGetSubordinatesRecord.js +55 -0
- package/admin/orm/query/index.d.ts +11 -0
- package/admin/orm/query/index.js +24 -0
- package/auth/orm/index.d.ts +2 -2
- package/auth/orm/index.js +2 -2
- package/auth/orm/input-types.d.ts +163 -128
- package/auth/orm/models/index.d.ts +1 -1
- package/auth/orm/models/index.js +3 -3
- package/esm/admin/orm/index.d.ts +19 -6
- package/esm/admin/orm/index.js +14 -6
- package/esm/admin/orm/input-types.d.ts +879 -363
- package/esm/admin/orm/models/index.d.ts +7 -3
- package/esm/admin/orm/models/index.js +7 -3
- package/esm/admin/orm/models/orgChartEdge.d.ts +56 -0
- package/esm/{public/orm/models/procedure.js → admin/orm/models/orgChartEdge.js} +23 -23
- package/esm/admin/orm/models/orgChartEdgeGrant.d.ts +56 -0
- package/esm/admin/orm/models/orgChartEdgeGrant.js +94 -0
- package/esm/admin/orm/models/orgGetManagersRecord.d.ts +32 -0
- package/esm/admin/orm/models/orgGetManagersRecord.js +51 -0
- package/esm/admin/orm/models/orgGetSubordinatesRecord.d.ts +32 -0
- package/esm/admin/orm/models/orgGetSubordinatesRecord.js +51 -0
- package/esm/admin/orm/query/index.d.ts +11 -0
- package/esm/admin/orm/query/index.js +24 -0
- package/esm/auth/orm/index.d.ts +2 -2
- package/esm/auth/orm/index.js +2 -2
- package/esm/auth/orm/input-types.d.ts +163 -128
- package/esm/auth/orm/models/index.d.ts +1 -1
- package/esm/auth/orm/models/index.js +1 -1
- package/esm/public/orm/index.d.ts +31 -16
- package/esm/public/orm/index.js +26 -16
- package/esm/public/orm/input-types.d.ts +2255 -1110
- package/esm/public/orm/input-types.js +14 -3
- package/esm/public/orm/models/defaultPrivilege.d.ts +56 -0
- package/esm/public/orm/models/defaultPrivilege.js +94 -0
- package/esm/public/orm/models/index.d.ts +13 -8
- package/esm/public/orm/models/index.js +13 -8
- package/esm/public/orm/models/orgChartEdge.d.ts +56 -0
- package/esm/public/orm/models/{limitFunction.js → orgChartEdge.js} +23 -23
- package/esm/public/orm/models/orgChartEdgeGrant.d.ts +56 -0
- package/esm/public/orm/models/orgChartEdgeGrant.js +94 -0
- package/esm/public/orm/models/orgGetManagersRecord.d.ts +32 -0
- package/esm/public/orm/models/orgGetManagersRecord.js +51 -0
- package/esm/public/orm/models/orgGetSubordinatesRecord.d.ts +32 -0
- package/esm/public/orm/models/orgGetSubordinatesRecord.js +51 -0
- package/esm/public/orm/models/relationProvision.d.ts +56 -0
- package/esm/public/orm/models/relationProvision.js +94 -0
- package/esm/public/orm/models/secureTableProvision.d.ts +56 -0
- package/esm/public/orm/models/secureTableProvision.js +94 -0
- package/esm/public/orm/query/index.d.ts +11 -0
- package/esm/public/orm/query/index.js +24 -0
- package/package.json +6 -6
- package/public/orm/index.d.ts +31 -16
- package/public/orm/index.js +26 -16
- package/public/orm/input-types.d.ts +2255 -1110
- package/public/orm/input-types.js +14 -3
- package/public/orm/models/defaultPrivilege.d.ts +56 -0
- package/public/orm/models/defaultPrivilege.js +98 -0
- package/public/orm/models/index.d.ts +13 -8
- package/public/orm/models/index.js +29 -18
- package/public/orm/models/orgChartEdge.d.ts +56 -0
- package/public/orm/models/{procedure.js → orgChartEdge.js} +25 -25
- package/public/orm/models/orgChartEdgeGrant.d.ts +56 -0
- package/public/orm/models/orgChartEdgeGrant.js +98 -0
- package/public/orm/models/orgGetManagersRecord.d.ts +32 -0
- package/public/orm/models/orgGetManagersRecord.js +55 -0
- package/public/orm/models/orgGetSubordinatesRecord.d.ts +32 -0
- package/public/orm/models/orgGetSubordinatesRecord.js +55 -0
- package/public/orm/models/relationProvision.d.ts +56 -0
- package/public/orm/models/relationProvision.js +98 -0
- package/public/orm/models/secureTableProvision.d.ts +56 -0
- package/public/orm/models/secureTableProvision.js +98 -0
- package/public/orm/query/index.d.ts +11 -0
- package/public/orm/query/index.js +24 -0
- package/esm/public/orm/models/limitFunction.d.ts +0 -56
- package/esm/public/orm/models/procedure.d.ts +0 -56
- package/public/orm/models/limitFunction.d.ts +0 -56
- package/public/orm/models/procedure.d.ts +0 -56
|
@@ -8,10 +8,8 @@ export const connectionFieldsMap = {
|
|
|
8
8
|
foreignKeyConstraints: 'ForeignKeyConstraint',
|
|
9
9
|
fullTextSearches: 'FullTextSearch',
|
|
10
10
|
indices: 'Index',
|
|
11
|
-
limitFunctions: 'LimitFunction',
|
|
12
11
|
policies: 'Policy',
|
|
13
12
|
primaryKeyConstraints: 'PrimaryKeyConstraint',
|
|
14
|
-
procedures: 'Procedure',
|
|
15
13
|
schemaGrants: 'SchemaGrant',
|
|
16
14
|
tableGrants: 'TableGrant',
|
|
17
15
|
triggerFunctions: 'TriggerFunction',
|
|
@@ -20,6 +18,7 @@ export const connectionFieldsMap = {
|
|
|
20
18
|
views: 'View',
|
|
21
19
|
viewGrants: 'ViewGrant',
|
|
22
20
|
viewRules: 'ViewRule',
|
|
21
|
+
defaultPrivileges: 'DefaultPrivilege',
|
|
23
22
|
apis: 'Api',
|
|
24
23
|
apiModules: 'ApiModule',
|
|
25
24
|
apiSchemas: 'ApiSchema',
|
|
@@ -53,12 +52,15 @@ export const connectionFieldsMap = {
|
|
|
53
52
|
usersModules: 'UsersModule',
|
|
54
53
|
uuidModules: 'UuidModule',
|
|
55
54
|
tableTemplateModules: 'TableTemplateModule',
|
|
55
|
+
secureTableProvisions: 'SecureTableProvision',
|
|
56
|
+
relationProvisions: 'RelationProvision',
|
|
56
57
|
databaseProvisionModules: 'DatabaseProvisionModule',
|
|
57
58
|
},
|
|
58
59
|
Schema: {
|
|
59
60
|
tables: 'Table',
|
|
60
61
|
schemaGrants: 'SchemaGrant',
|
|
61
62
|
views: 'View',
|
|
63
|
+
defaultPrivileges: 'DefaultPrivilege',
|
|
62
64
|
apiSchemas: 'ApiSchema',
|
|
63
65
|
tableTemplateModulesByPrivateSchemaId: 'TableTemplateModule',
|
|
64
66
|
tableTemplateModules: 'TableTemplateModule',
|
|
@@ -69,7 +71,6 @@ export const connectionFieldsMap = {
|
|
|
69
71
|
foreignKeyConstraints: 'ForeignKeyConstraint',
|
|
70
72
|
fullTextSearches: 'FullTextSearch',
|
|
71
73
|
indices: 'Index',
|
|
72
|
-
limitFunctions: 'LimitFunction',
|
|
73
74
|
policies: 'Policy',
|
|
74
75
|
primaryKeyConstraints: 'PrimaryKeyConstraint',
|
|
75
76
|
tableGrants: 'TableGrant',
|
|
@@ -80,6 +81,9 @@ export const connectionFieldsMap = {
|
|
|
80
81
|
tableModules: 'TableModule',
|
|
81
82
|
tableTemplateModulesByOwnerTableId: 'TableTemplateModule',
|
|
82
83
|
tableTemplateModules: 'TableTemplateModule',
|
|
84
|
+
secureTableProvisions: 'SecureTableProvision',
|
|
85
|
+
relationProvisionsBySourceTableId: 'RelationProvision',
|
|
86
|
+
relationProvisionsByTargetTableId: 'RelationProvision',
|
|
83
87
|
},
|
|
84
88
|
View: {
|
|
85
89
|
viewTables: 'ViewTable',
|
|
@@ -112,6 +116,13 @@ export const connectionFieldsMap = {
|
|
|
112
116
|
orgOwnerGrantsByGrantorId: 'OrgOwnerGrant',
|
|
113
117
|
orgGrantsByEntityId: 'OrgGrant',
|
|
114
118
|
orgGrantsByGrantorId: 'OrgGrant',
|
|
119
|
+
parentOrgChartEdges: 'OrgChartEdge',
|
|
120
|
+
orgChartEdgesByEntityId: 'OrgChartEdge',
|
|
121
|
+
childOrgChartEdges: 'OrgChartEdge',
|
|
122
|
+
parentOrgChartEdgeGrants: 'OrgChartEdgeGrant',
|
|
123
|
+
orgChartEdgeGrantsByEntityId: 'OrgChartEdgeGrant',
|
|
124
|
+
orgChartEdgeGrantsByGrantorId: 'OrgChartEdgeGrant',
|
|
125
|
+
childOrgChartEdgeGrants: 'OrgChartEdgeGrant',
|
|
115
126
|
appLimitsByActorId: 'AppLimit',
|
|
116
127
|
orgLimitsByActorId: 'OrgLimit',
|
|
117
128
|
orgLimitsByEntityId: 'OrgLimit',
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DefaultPrivilege 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, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { DefaultPrivilegeWithRelations, DefaultPrivilegeSelect, DefaultPrivilegeFilter, DefaultPrivilegeOrderBy, CreateDefaultPrivilegeInput, DefaultPrivilegePatch } from '../input-types';
|
|
10
|
+
export declare class DefaultPrivilegeModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends DefaultPrivilegeSelect>(args: FindManyArgs<S, DefaultPrivilegeFilter, DefaultPrivilegeOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, DefaultPrivilegeSelect>): QueryBuilder<{
|
|
16
|
+
defaultPrivileges: ConnectionResult<InferSelectResult<DefaultPrivilegeWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends DefaultPrivilegeSelect>(args: FindFirstArgs<S, DefaultPrivilegeFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, DefaultPrivilegeSelect>): QueryBuilder<{
|
|
21
|
+
defaultPrivileges: {
|
|
22
|
+
nodes: InferSelectResult<DefaultPrivilegeWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends DefaultPrivilegeSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, DefaultPrivilegeSelect>): QueryBuilder<{
|
|
29
|
+
defaultPrivilege: InferSelectResult<DefaultPrivilegeWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends DefaultPrivilegeSelect>(args: CreateArgs<S, CreateDefaultPrivilegeInput['defaultPrivilege']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, DefaultPrivilegeSelect>): QueryBuilder<{
|
|
34
|
+
createDefaultPrivilege: {
|
|
35
|
+
defaultPrivilege: InferSelectResult<DefaultPrivilegeWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends DefaultPrivilegeSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, DefaultPrivilegePatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, DefaultPrivilegeSelect>): QueryBuilder<{
|
|
43
|
+
updateDefaultPrivilege: {
|
|
44
|
+
defaultPrivilege: InferSelectResult<DefaultPrivilegeWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends DefaultPrivilegeSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, DefaultPrivilegeSelect>): QueryBuilder<{
|
|
52
|
+
deleteDefaultPrivilege: {
|
|
53
|
+
defaultPrivilege: InferSelectResult<DefaultPrivilegeWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class DefaultPrivilegeModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('DefaultPrivilege', 'defaultPrivileges', 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
|
+
}, 'DefaultPrivilegeFilter', 'DefaultPrivilegeOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'DefaultPrivilege',
|
|
22
|
+
fieldName: 'defaultPrivileges',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('DefaultPrivilege', 'defaultPrivileges', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
}, 'DefaultPrivilegeFilter', connectionFieldsMap);
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'DefaultPrivilege',
|
|
35
|
+
fieldName: 'defaultPrivileges',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
findOne(args) {
|
|
41
|
+
const { document, variables } = buildFindManyDocument('DefaultPrivilege', 'defaultPrivileges', args.select, {
|
|
42
|
+
where: {
|
|
43
|
+
id: {
|
|
44
|
+
equalTo: args.id,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
first: 1,
|
|
48
|
+
}, 'DefaultPrivilegeFilter', 'DefaultPrivilegeOrderBy', connectionFieldsMap);
|
|
49
|
+
return new QueryBuilder({
|
|
50
|
+
client: this.client,
|
|
51
|
+
operation: 'query',
|
|
52
|
+
operationName: 'DefaultPrivilege',
|
|
53
|
+
fieldName: 'defaultPrivilege',
|
|
54
|
+
document,
|
|
55
|
+
variables,
|
|
56
|
+
transform: (data) => ({
|
|
57
|
+
defaultPrivilege: data.defaultPrivileges?.nodes?.[0] ?? null,
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
create(args) {
|
|
62
|
+
const { document, variables } = buildCreateDocument('DefaultPrivilege', 'createDefaultPrivilege', 'defaultPrivilege', args.select, args.data, 'CreateDefaultPrivilegeInput', connectionFieldsMap);
|
|
63
|
+
return new QueryBuilder({
|
|
64
|
+
client: this.client,
|
|
65
|
+
operation: 'mutation',
|
|
66
|
+
operationName: 'DefaultPrivilege',
|
|
67
|
+
fieldName: 'createDefaultPrivilege',
|
|
68
|
+
document,
|
|
69
|
+
variables,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
update(args) {
|
|
73
|
+
const { document, variables } = buildUpdateByPkDocument('DefaultPrivilege', 'updateDefaultPrivilege', 'defaultPrivilege', args.select, args.where.id, args.data, 'UpdateDefaultPrivilegeInput', 'id', 'defaultPrivilegePatch', connectionFieldsMap);
|
|
74
|
+
return new QueryBuilder({
|
|
75
|
+
client: this.client,
|
|
76
|
+
operation: 'mutation',
|
|
77
|
+
operationName: 'DefaultPrivilege',
|
|
78
|
+
fieldName: 'updateDefaultPrivilege',
|
|
79
|
+
document,
|
|
80
|
+
variables,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
delete(args) {
|
|
84
|
+
const { document, variables } = buildDeleteByPkDocument('DefaultPrivilege', 'deleteDefaultPrivilege', 'defaultPrivilege', args.where.id, 'DeleteDefaultPrivilegeInput', 'id', args.select, connectionFieldsMap);
|
|
85
|
+
return new QueryBuilder({
|
|
86
|
+
client: this.client,
|
|
87
|
+
operation: 'mutation',
|
|
88
|
+
operationName: 'DefaultPrivilege',
|
|
89
|
+
fieldName: 'deleteDefaultPrivilege',
|
|
90
|
+
document,
|
|
91
|
+
variables,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
|
+
export { OrgGetManagersRecordModel } from './orgGetManagersRecord';
|
|
7
|
+
export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord';
|
|
6
8
|
export { GetAllRecordModel } from './getAllRecord';
|
|
7
9
|
export { AppPermissionModel } from './appPermission';
|
|
8
10
|
export { OrgPermissionModel } from './orgPermission';
|
|
@@ -16,7 +18,6 @@ export { FieldModel } from './field';
|
|
|
16
18
|
export { ForeignKeyConstraintModel } from './foreignKeyConstraint';
|
|
17
19
|
export { FullTextSearchModel } from './fullTextSearch';
|
|
18
20
|
export { IndexModel } from './indexModel';
|
|
19
|
-
export { LimitFunctionModel } from './limitFunction';
|
|
20
21
|
export { PolicyModel } from './policy';
|
|
21
22
|
export { PrimaryKeyConstraintModel } from './primaryKeyConstraint';
|
|
22
23
|
export { TableGrantModel } from './tableGrant';
|
|
@@ -28,14 +29,16 @@ export { ViewGrantModel } from './viewGrant';
|
|
|
28
29
|
export { ViewRuleModel } from './viewRule';
|
|
29
30
|
export { TableModuleModel } from './tableModule';
|
|
30
31
|
export { TableTemplateModuleModel } from './tableTemplateModule';
|
|
32
|
+
export { SecureTableProvisionModel } from './secureTableProvision';
|
|
33
|
+
export { RelationProvisionModel } from './relationProvision';
|
|
31
34
|
export { SchemaGrantModel } from './schemaGrant';
|
|
35
|
+
export { DefaultPrivilegeModel } from './defaultPrivilege';
|
|
32
36
|
export { ApiSchemaModel } from './apiSchema';
|
|
33
37
|
export { ApiModuleModel } from './apiModule';
|
|
34
38
|
export { DomainModel } from './domain';
|
|
35
39
|
export { SiteMetadatumModel } from './siteMetadatum';
|
|
36
40
|
export { SiteModuleModel } from './siteModule';
|
|
37
41
|
export { SiteThemeModel } from './siteTheme';
|
|
38
|
-
export { ProcedureModel } from './procedure';
|
|
39
42
|
export { TriggerFunctionModel } from './triggerFunction';
|
|
40
43
|
export { ApiModel } from './api';
|
|
41
44
|
export { SiteModel } from './site';
|
|
@@ -71,6 +74,8 @@ export { OrgMemberModel } from './orgMember';
|
|
|
71
74
|
export { OrgAdminGrantModel } from './orgAdminGrant';
|
|
72
75
|
export { OrgOwnerGrantModel } from './orgOwnerGrant';
|
|
73
76
|
export { OrgGrantModel } from './orgGrant';
|
|
77
|
+
export { OrgChartEdgeModel } from './orgChartEdge';
|
|
78
|
+
export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant';
|
|
74
79
|
export { AppLimitModel } from './appLimit';
|
|
75
80
|
export { OrgLimitModel } from './orgLimit';
|
|
76
81
|
export { AppStepModel } from './appStep';
|
|
@@ -79,26 +84,26 @@ export { InviteModel } from './invite';
|
|
|
79
84
|
export { ClaimedInviteModel } from './claimedInvite';
|
|
80
85
|
export { OrgInviteModel } from './orgInvite';
|
|
81
86
|
export { OrgClaimedInviteModel } from './orgClaimedInvite';
|
|
82
|
-
export { AppPermissionDefaultModel } from './appPermissionDefault';
|
|
83
87
|
export { RefModel } from './ref';
|
|
84
88
|
export { StoreModel } from './store';
|
|
89
|
+
export { AppPermissionDefaultModel } from './appPermissionDefault';
|
|
85
90
|
export { RoleTypeModel } from './roleType';
|
|
86
91
|
export { OrgPermissionDefaultModel } from './orgPermissionDefault';
|
|
92
|
+
export { CryptoAddressModel } from './cryptoAddress';
|
|
87
93
|
export { AppLimitDefaultModel } from './appLimitDefault';
|
|
88
94
|
export { OrgLimitDefaultModel } from './orgLimitDefault';
|
|
89
|
-
export { CryptoAddressModel } from './cryptoAddress';
|
|
90
|
-
export { MembershipTypeModel } from './membershipType';
|
|
91
95
|
export { ConnectedAccountModel } from './connectedAccount';
|
|
92
96
|
export { PhoneNumberModel } from './phoneNumber';
|
|
93
|
-
export {
|
|
97
|
+
export { MembershipTypeModel } from './membershipType';
|
|
94
98
|
export { NodeTypeRegistryModel } from './nodeTypeRegistry';
|
|
99
|
+
export { AppMembershipDefaultModel } from './appMembershipDefault';
|
|
95
100
|
export { CommitModel } from './commit';
|
|
96
101
|
export { OrgMembershipDefaultModel } from './orgMembershipDefault';
|
|
97
|
-
export { EmailModel } from './email';
|
|
98
102
|
export { AuditLogModel } from './auditLog';
|
|
99
103
|
export { AppLevelModel } from './appLevel';
|
|
104
|
+
export { EmailModel } from './email';
|
|
100
105
|
export { SqlMigrationModel } from './sqlMigration';
|
|
101
106
|
export { AstMigrationModel } from './astMigration';
|
|
102
|
-
export { AppMembershipModel } from './appMembership';
|
|
103
107
|
export { UserModel } from './user';
|
|
108
|
+
export { AppMembershipModel } from './appMembership';
|
|
104
109
|
export { HierarchyModuleModel } from './hierarchyModule';
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
|
+
export { OrgGetManagersRecordModel } from './orgGetManagersRecord';
|
|
7
|
+
export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord';
|
|
6
8
|
export { GetAllRecordModel } from './getAllRecord';
|
|
7
9
|
export { AppPermissionModel } from './appPermission';
|
|
8
10
|
export { OrgPermissionModel } from './orgPermission';
|
|
@@ -16,7 +18,6 @@ export { FieldModel } from './field';
|
|
|
16
18
|
export { ForeignKeyConstraintModel } from './foreignKeyConstraint';
|
|
17
19
|
export { FullTextSearchModel } from './fullTextSearch';
|
|
18
20
|
export { IndexModel } from './indexModel';
|
|
19
|
-
export { LimitFunctionModel } from './limitFunction';
|
|
20
21
|
export { PolicyModel } from './policy';
|
|
21
22
|
export { PrimaryKeyConstraintModel } from './primaryKeyConstraint';
|
|
22
23
|
export { TableGrantModel } from './tableGrant';
|
|
@@ -28,14 +29,16 @@ export { ViewGrantModel } from './viewGrant';
|
|
|
28
29
|
export { ViewRuleModel } from './viewRule';
|
|
29
30
|
export { TableModuleModel } from './tableModule';
|
|
30
31
|
export { TableTemplateModuleModel } from './tableTemplateModule';
|
|
32
|
+
export { SecureTableProvisionModel } from './secureTableProvision';
|
|
33
|
+
export { RelationProvisionModel } from './relationProvision';
|
|
31
34
|
export { SchemaGrantModel } from './schemaGrant';
|
|
35
|
+
export { DefaultPrivilegeModel } from './defaultPrivilege';
|
|
32
36
|
export { ApiSchemaModel } from './apiSchema';
|
|
33
37
|
export { ApiModuleModel } from './apiModule';
|
|
34
38
|
export { DomainModel } from './domain';
|
|
35
39
|
export { SiteMetadatumModel } from './siteMetadatum';
|
|
36
40
|
export { SiteModuleModel } from './siteModule';
|
|
37
41
|
export { SiteThemeModel } from './siteTheme';
|
|
38
|
-
export { ProcedureModel } from './procedure';
|
|
39
42
|
export { TriggerFunctionModel } from './triggerFunction';
|
|
40
43
|
export { ApiModel } from './api';
|
|
41
44
|
export { SiteModel } from './site';
|
|
@@ -71,6 +74,8 @@ export { OrgMemberModel } from './orgMember';
|
|
|
71
74
|
export { OrgAdminGrantModel } from './orgAdminGrant';
|
|
72
75
|
export { OrgOwnerGrantModel } from './orgOwnerGrant';
|
|
73
76
|
export { OrgGrantModel } from './orgGrant';
|
|
77
|
+
export { OrgChartEdgeModel } from './orgChartEdge';
|
|
78
|
+
export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant';
|
|
74
79
|
export { AppLimitModel } from './appLimit';
|
|
75
80
|
export { OrgLimitModel } from './orgLimit';
|
|
76
81
|
export { AppStepModel } from './appStep';
|
|
@@ -79,26 +84,26 @@ export { InviteModel } from './invite';
|
|
|
79
84
|
export { ClaimedInviteModel } from './claimedInvite';
|
|
80
85
|
export { OrgInviteModel } from './orgInvite';
|
|
81
86
|
export { OrgClaimedInviteModel } from './orgClaimedInvite';
|
|
82
|
-
export { AppPermissionDefaultModel } from './appPermissionDefault';
|
|
83
87
|
export { RefModel } from './ref';
|
|
84
88
|
export { StoreModel } from './store';
|
|
89
|
+
export { AppPermissionDefaultModel } from './appPermissionDefault';
|
|
85
90
|
export { RoleTypeModel } from './roleType';
|
|
86
91
|
export { OrgPermissionDefaultModel } from './orgPermissionDefault';
|
|
92
|
+
export { CryptoAddressModel } from './cryptoAddress';
|
|
87
93
|
export { AppLimitDefaultModel } from './appLimitDefault';
|
|
88
94
|
export { OrgLimitDefaultModel } from './orgLimitDefault';
|
|
89
|
-
export { CryptoAddressModel } from './cryptoAddress';
|
|
90
|
-
export { MembershipTypeModel } from './membershipType';
|
|
91
95
|
export { ConnectedAccountModel } from './connectedAccount';
|
|
92
96
|
export { PhoneNumberModel } from './phoneNumber';
|
|
93
|
-
export {
|
|
97
|
+
export { MembershipTypeModel } from './membershipType';
|
|
94
98
|
export { NodeTypeRegistryModel } from './nodeTypeRegistry';
|
|
99
|
+
export { AppMembershipDefaultModel } from './appMembershipDefault';
|
|
95
100
|
export { CommitModel } from './commit';
|
|
96
101
|
export { OrgMembershipDefaultModel } from './orgMembershipDefault';
|
|
97
|
-
export { EmailModel } from './email';
|
|
98
102
|
export { AuditLogModel } from './auditLog';
|
|
99
103
|
export { AppLevelModel } from './appLevel';
|
|
104
|
+
export { EmailModel } from './email';
|
|
100
105
|
export { SqlMigrationModel } from './sqlMigration';
|
|
101
106
|
export { AstMigrationModel } from './astMigration';
|
|
102
|
-
export { AppMembershipModel } from './appMembership';
|
|
103
107
|
export { UserModel } from './user';
|
|
108
|
+
export { AppMembershipModel } from './appMembership';
|
|
104
109
|
export { HierarchyModuleModel } from './hierarchyModule';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrgChartEdge 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, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { OrgChartEdgeWithRelations, OrgChartEdgeSelect, OrgChartEdgeFilter, OrgChartEdgeOrderBy, CreateOrgChartEdgeInput, OrgChartEdgePatch } from '../input-types';
|
|
10
|
+
export declare class OrgChartEdgeModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends OrgChartEdgeSelect>(args: FindManyArgs<S, OrgChartEdgeFilter, OrgChartEdgeOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
|
|
16
|
+
orgChartEdges: ConnectionResult<InferSelectResult<OrgChartEdgeWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends OrgChartEdgeSelect>(args: FindFirstArgs<S, OrgChartEdgeFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
|
|
21
|
+
orgChartEdges: {
|
|
22
|
+
nodes: InferSelectResult<OrgChartEdgeWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends OrgChartEdgeSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
|
|
29
|
+
orgChartEdge: InferSelectResult<OrgChartEdgeWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends OrgChartEdgeSelect>(args: CreateArgs<S, CreateOrgChartEdgeInput['orgChartEdge']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
|
|
34
|
+
createOrgChartEdge: {
|
|
35
|
+
orgChartEdge: InferSelectResult<OrgChartEdgeWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends OrgChartEdgeSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, OrgChartEdgePatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
|
|
43
|
+
updateOrgChartEdge: {
|
|
44
|
+
orgChartEdge: InferSelectResult<OrgChartEdgeWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends OrgChartEdgeSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
|
|
52
|
+
deleteOrgChartEdge: {
|
|
53
|
+
orgChartEdge: InferSelectResult<OrgChartEdgeWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
2
|
import { connectionFieldsMap } from '../input-types';
|
|
3
|
-
export class
|
|
3
|
+
export class OrgChartEdgeModel {
|
|
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('OrgChartEdge', 'orgChartEdges', args.select, {
|
|
10
10
|
where: args?.where,
|
|
11
11
|
orderBy: args?.orderBy,
|
|
12
12
|
first: args?.first,
|
|
@@ -14,79 +14,79 @@ export class LimitFunctionModel {
|
|
|
14
14
|
after: args?.after,
|
|
15
15
|
before: args?.before,
|
|
16
16
|
offset: args?.offset,
|
|
17
|
-
}, '
|
|
17
|
+
}, 'OrgChartEdgeFilter', 'OrgChartEdgeOrderBy', connectionFieldsMap);
|
|
18
18
|
return new QueryBuilder({
|
|
19
19
|
client: this.client,
|
|
20
20
|
operation: 'query',
|
|
21
|
-
operationName: '
|
|
22
|
-
fieldName: '
|
|
21
|
+
operationName: 'OrgChartEdge',
|
|
22
|
+
fieldName: 'orgChartEdges',
|
|
23
23
|
document,
|
|
24
24
|
variables,
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
findFirst(args) {
|
|
28
|
-
const { document, variables } = buildFindFirstDocument('
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('OrgChartEdge', 'orgChartEdges', args.select, {
|
|
29
29
|
where: args?.where,
|
|
30
|
-
}, '
|
|
30
|
+
}, 'OrgChartEdgeFilter', connectionFieldsMap);
|
|
31
31
|
return new QueryBuilder({
|
|
32
32
|
client: this.client,
|
|
33
33
|
operation: 'query',
|
|
34
|
-
operationName: '
|
|
35
|
-
fieldName: '
|
|
34
|
+
operationName: 'OrgChartEdge',
|
|
35
|
+
fieldName: 'orgChartEdges',
|
|
36
36
|
document,
|
|
37
37
|
variables,
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
findOne(args) {
|
|
41
|
-
const { document, variables } = buildFindManyDocument('
|
|
41
|
+
const { document, variables } = buildFindManyDocument('OrgChartEdge', 'orgChartEdges', args.select, {
|
|
42
42
|
where: {
|
|
43
43
|
id: {
|
|
44
44
|
equalTo: args.id,
|
|
45
45
|
},
|
|
46
46
|
},
|
|
47
47
|
first: 1,
|
|
48
|
-
}, '
|
|
48
|
+
}, 'OrgChartEdgeFilter', 'OrgChartEdgeOrderBy', connectionFieldsMap);
|
|
49
49
|
return new QueryBuilder({
|
|
50
50
|
client: this.client,
|
|
51
51
|
operation: 'query',
|
|
52
|
-
operationName: '
|
|
53
|
-
fieldName: '
|
|
52
|
+
operationName: 'OrgChartEdge',
|
|
53
|
+
fieldName: 'orgChartEdge',
|
|
54
54
|
document,
|
|
55
55
|
variables,
|
|
56
56
|
transform: (data) => ({
|
|
57
|
-
|
|
57
|
+
orgChartEdge: data.orgChartEdges?.nodes?.[0] ?? null,
|
|
58
58
|
}),
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
create(args) {
|
|
62
|
-
const { document, variables } = buildCreateDocument('
|
|
62
|
+
const { document, variables } = buildCreateDocument('OrgChartEdge', 'createOrgChartEdge', 'orgChartEdge', args.select, args.data, 'CreateOrgChartEdgeInput', connectionFieldsMap);
|
|
63
63
|
return new QueryBuilder({
|
|
64
64
|
client: this.client,
|
|
65
65
|
operation: 'mutation',
|
|
66
|
-
operationName: '
|
|
67
|
-
fieldName: '
|
|
66
|
+
operationName: 'OrgChartEdge',
|
|
67
|
+
fieldName: 'createOrgChartEdge',
|
|
68
68
|
document,
|
|
69
69
|
variables,
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
update(args) {
|
|
73
|
-
const { document, variables } = buildUpdateByPkDocument('
|
|
73
|
+
const { document, variables } = buildUpdateByPkDocument('OrgChartEdge', 'updateOrgChartEdge', 'orgChartEdge', args.select, args.where.id, args.data, 'UpdateOrgChartEdgeInput', 'id', 'orgChartEdgePatch', connectionFieldsMap);
|
|
74
74
|
return new QueryBuilder({
|
|
75
75
|
client: this.client,
|
|
76
76
|
operation: 'mutation',
|
|
77
|
-
operationName: '
|
|
78
|
-
fieldName: '
|
|
77
|
+
operationName: 'OrgChartEdge',
|
|
78
|
+
fieldName: 'updateOrgChartEdge',
|
|
79
79
|
document,
|
|
80
80
|
variables,
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
delete(args) {
|
|
84
|
-
const { document, variables } = buildDeleteByPkDocument('
|
|
84
|
+
const { document, variables } = buildDeleteByPkDocument('OrgChartEdge', 'deleteOrgChartEdge', 'orgChartEdge', args.where.id, 'DeleteOrgChartEdgeInput', 'id', args.select, connectionFieldsMap);
|
|
85
85
|
return new QueryBuilder({
|
|
86
86
|
client: this.client,
|
|
87
87
|
operation: 'mutation',
|
|
88
|
-
operationName: '
|
|
89
|
-
fieldName: '
|
|
88
|
+
operationName: 'OrgChartEdge',
|
|
89
|
+
fieldName: 'deleteOrgChartEdge',
|
|
90
90
|
document,
|
|
91
91
|
variables,
|
|
92
92
|
});
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrgChartEdgeGrant 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, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { OrgChartEdgeGrantWithRelations, OrgChartEdgeGrantSelect, OrgChartEdgeGrantFilter, OrgChartEdgeGrantOrderBy, CreateOrgChartEdgeGrantInput, OrgChartEdgeGrantPatch } from '../input-types';
|
|
10
|
+
export declare class OrgChartEdgeGrantModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends OrgChartEdgeGrantSelect>(args: FindManyArgs<S, OrgChartEdgeGrantFilter, OrgChartEdgeGrantOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
|
|
16
|
+
orgChartEdgeGrants: ConnectionResult<InferSelectResult<OrgChartEdgeGrantWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends OrgChartEdgeGrantSelect>(args: FindFirstArgs<S, OrgChartEdgeGrantFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
|
|
21
|
+
orgChartEdgeGrants: {
|
|
22
|
+
nodes: InferSelectResult<OrgChartEdgeGrantWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends OrgChartEdgeGrantSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
|
|
29
|
+
orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends OrgChartEdgeGrantSelect>(args: CreateArgs<S, CreateOrgChartEdgeGrantInput['orgChartEdgeGrant']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
|
|
34
|
+
createOrgChartEdgeGrant: {
|
|
35
|
+
orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends OrgChartEdgeGrantSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, OrgChartEdgeGrantPatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
|
|
43
|
+
updateOrgChartEdgeGrant: {
|
|
44
|
+
orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends OrgChartEdgeGrantSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
|
|
52
|
+
deleteOrgChartEdgeGrant: {
|
|
53
|
+
orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|