@constructive-io/sdk 0.2.4 → 0.3.1
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
|
@@ -86,6 +86,30 @@ function createQueryOperations(client) {
|
|
|
86
86
|
},
|
|
87
87
|
], input_types_1.connectionFieldsMap, undefined),
|
|
88
88
|
}),
|
|
89
|
+
orgIsManagerOf: (args, options) => new query_builder_1.QueryBuilder({
|
|
90
|
+
client,
|
|
91
|
+
operation: 'query',
|
|
92
|
+
operationName: 'OrgIsManagerOf',
|
|
93
|
+
fieldName: 'orgIsManagerOf',
|
|
94
|
+
...(0, query_builder_1.buildCustomDocument)('query', 'OrgIsManagerOf', 'orgIsManagerOf', options?.select, args, [
|
|
95
|
+
{
|
|
96
|
+
name: 'pEntityId',
|
|
97
|
+
type: 'UUID',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: 'pManagerId',
|
|
101
|
+
type: 'UUID',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: 'pUserId',
|
|
105
|
+
type: 'UUID',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: 'pMaxDepth',
|
|
109
|
+
type: 'Int',
|
|
110
|
+
},
|
|
111
|
+
], input_types_1.connectionFieldsMap, undefined),
|
|
112
|
+
}),
|
|
89
113
|
appPermissionsGetMask: (args, options) => new query_builder_1.QueryBuilder({
|
|
90
114
|
client,
|
|
91
115
|
operation: 'query',
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LimitFunction 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 { LimitFunctionWithRelations, LimitFunctionSelect, LimitFunctionFilter, LimitFunctionOrderBy, CreateLimitFunctionInput, LimitFunctionPatch } from '../input-types';
|
|
10
|
-
export declare class LimitFunctionModel {
|
|
11
|
-
private client;
|
|
12
|
-
constructor(client: OrmClient);
|
|
13
|
-
findMany<S extends LimitFunctionSelect>(args: FindManyArgs<S, LimitFunctionFilter, LimitFunctionOrderBy> & {
|
|
14
|
-
select: S;
|
|
15
|
-
} & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
|
|
16
|
-
limitFunctions: ConnectionResult<InferSelectResult<LimitFunctionWithRelations, S>>;
|
|
17
|
-
}>;
|
|
18
|
-
findFirst<S extends LimitFunctionSelect>(args: FindFirstArgs<S, LimitFunctionFilter> & {
|
|
19
|
-
select: S;
|
|
20
|
-
} & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
|
|
21
|
-
limitFunctions: {
|
|
22
|
-
nodes: InferSelectResult<LimitFunctionWithRelations, S>[];
|
|
23
|
-
};
|
|
24
|
-
}>;
|
|
25
|
-
findOne<S extends LimitFunctionSelect>(args: {
|
|
26
|
-
id: string;
|
|
27
|
-
select: S;
|
|
28
|
-
} & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
|
|
29
|
-
limitFunction: InferSelectResult<LimitFunctionWithRelations, S> | null;
|
|
30
|
-
}>;
|
|
31
|
-
create<S extends LimitFunctionSelect>(args: CreateArgs<S, CreateLimitFunctionInput['limitFunction']> & {
|
|
32
|
-
select: S;
|
|
33
|
-
} & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
|
|
34
|
-
createLimitFunction: {
|
|
35
|
-
limitFunction: InferSelectResult<LimitFunctionWithRelations, S>;
|
|
36
|
-
};
|
|
37
|
-
}>;
|
|
38
|
-
update<S extends LimitFunctionSelect>(args: UpdateArgs<S, {
|
|
39
|
-
id: string;
|
|
40
|
-
}, LimitFunctionPatch> & {
|
|
41
|
-
select: S;
|
|
42
|
-
} & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
|
|
43
|
-
updateLimitFunction: {
|
|
44
|
-
limitFunction: InferSelectResult<LimitFunctionWithRelations, S>;
|
|
45
|
-
};
|
|
46
|
-
}>;
|
|
47
|
-
delete<S extends LimitFunctionSelect>(args: DeleteArgs<{
|
|
48
|
-
id: string;
|
|
49
|
-
}, S> & {
|
|
50
|
-
select: S;
|
|
51
|
-
} & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
|
|
52
|
-
deleteLimitFunction: {
|
|
53
|
-
limitFunction: InferSelectResult<LimitFunctionWithRelations, S>;
|
|
54
|
-
};
|
|
55
|
-
}>;
|
|
56
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Procedure 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 { ProcedureWithRelations, ProcedureSelect, ProcedureFilter, ProcedureOrderBy, CreateProcedureInput, ProcedurePatch } from '../input-types';
|
|
10
|
-
export declare class ProcedureModel {
|
|
11
|
-
private client;
|
|
12
|
-
constructor(client: OrmClient);
|
|
13
|
-
findMany<S extends ProcedureSelect>(args: FindManyArgs<S, ProcedureFilter, ProcedureOrderBy> & {
|
|
14
|
-
select: S;
|
|
15
|
-
} & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
|
|
16
|
-
procedures: ConnectionResult<InferSelectResult<ProcedureWithRelations, S>>;
|
|
17
|
-
}>;
|
|
18
|
-
findFirst<S extends ProcedureSelect>(args: FindFirstArgs<S, ProcedureFilter> & {
|
|
19
|
-
select: S;
|
|
20
|
-
} & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
|
|
21
|
-
procedures: {
|
|
22
|
-
nodes: InferSelectResult<ProcedureWithRelations, S>[];
|
|
23
|
-
};
|
|
24
|
-
}>;
|
|
25
|
-
findOne<S extends ProcedureSelect>(args: {
|
|
26
|
-
id: string;
|
|
27
|
-
select: S;
|
|
28
|
-
} & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
|
|
29
|
-
procedure: InferSelectResult<ProcedureWithRelations, S> | null;
|
|
30
|
-
}>;
|
|
31
|
-
create<S extends ProcedureSelect>(args: CreateArgs<S, CreateProcedureInput['procedure']> & {
|
|
32
|
-
select: S;
|
|
33
|
-
} & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
|
|
34
|
-
createProcedure: {
|
|
35
|
-
procedure: InferSelectResult<ProcedureWithRelations, S>;
|
|
36
|
-
};
|
|
37
|
-
}>;
|
|
38
|
-
update<S extends ProcedureSelect>(args: UpdateArgs<S, {
|
|
39
|
-
id: string;
|
|
40
|
-
}, ProcedurePatch> & {
|
|
41
|
-
select: S;
|
|
42
|
-
} & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
|
|
43
|
-
updateProcedure: {
|
|
44
|
-
procedure: InferSelectResult<ProcedureWithRelations, S>;
|
|
45
|
-
};
|
|
46
|
-
}>;
|
|
47
|
-
delete<S extends ProcedureSelect>(args: DeleteArgs<{
|
|
48
|
-
id: string;
|
|
49
|
-
}, S> & {
|
|
50
|
-
select: S;
|
|
51
|
-
} & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
|
|
52
|
-
deleteProcedure: {
|
|
53
|
-
procedure: InferSelectResult<ProcedureWithRelations, S>;
|
|
54
|
-
};
|
|
55
|
-
}>;
|
|
56
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LimitFunction 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 { LimitFunctionWithRelations, LimitFunctionSelect, LimitFunctionFilter, LimitFunctionOrderBy, CreateLimitFunctionInput, LimitFunctionPatch } from '../input-types';
|
|
10
|
-
export declare class LimitFunctionModel {
|
|
11
|
-
private client;
|
|
12
|
-
constructor(client: OrmClient);
|
|
13
|
-
findMany<S extends LimitFunctionSelect>(args: FindManyArgs<S, LimitFunctionFilter, LimitFunctionOrderBy> & {
|
|
14
|
-
select: S;
|
|
15
|
-
} & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
|
|
16
|
-
limitFunctions: ConnectionResult<InferSelectResult<LimitFunctionWithRelations, S>>;
|
|
17
|
-
}>;
|
|
18
|
-
findFirst<S extends LimitFunctionSelect>(args: FindFirstArgs<S, LimitFunctionFilter> & {
|
|
19
|
-
select: S;
|
|
20
|
-
} & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
|
|
21
|
-
limitFunctions: {
|
|
22
|
-
nodes: InferSelectResult<LimitFunctionWithRelations, S>[];
|
|
23
|
-
};
|
|
24
|
-
}>;
|
|
25
|
-
findOne<S extends LimitFunctionSelect>(args: {
|
|
26
|
-
id: string;
|
|
27
|
-
select: S;
|
|
28
|
-
} & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
|
|
29
|
-
limitFunction: InferSelectResult<LimitFunctionWithRelations, S> | null;
|
|
30
|
-
}>;
|
|
31
|
-
create<S extends LimitFunctionSelect>(args: CreateArgs<S, CreateLimitFunctionInput['limitFunction']> & {
|
|
32
|
-
select: S;
|
|
33
|
-
} & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
|
|
34
|
-
createLimitFunction: {
|
|
35
|
-
limitFunction: InferSelectResult<LimitFunctionWithRelations, S>;
|
|
36
|
-
};
|
|
37
|
-
}>;
|
|
38
|
-
update<S extends LimitFunctionSelect>(args: UpdateArgs<S, {
|
|
39
|
-
id: string;
|
|
40
|
-
}, LimitFunctionPatch> & {
|
|
41
|
-
select: S;
|
|
42
|
-
} & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
|
|
43
|
-
updateLimitFunction: {
|
|
44
|
-
limitFunction: InferSelectResult<LimitFunctionWithRelations, S>;
|
|
45
|
-
};
|
|
46
|
-
}>;
|
|
47
|
-
delete<S extends LimitFunctionSelect>(args: DeleteArgs<{
|
|
48
|
-
id: string;
|
|
49
|
-
}, S> & {
|
|
50
|
-
select: S;
|
|
51
|
-
} & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
|
|
52
|
-
deleteLimitFunction: {
|
|
53
|
-
limitFunction: InferSelectResult<LimitFunctionWithRelations, S>;
|
|
54
|
-
};
|
|
55
|
-
}>;
|
|
56
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Procedure 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 { ProcedureWithRelations, ProcedureSelect, ProcedureFilter, ProcedureOrderBy, CreateProcedureInput, ProcedurePatch } from '../input-types';
|
|
10
|
-
export declare class ProcedureModel {
|
|
11
|
-
private client;
|
|
12
|
-
constructor(client: OrmClient);
|
|
13
|
-
findMany<S extends ProcedureSelect>(args: FindManyArgs<S, ProcedureFilter, ProcedureOrderBy> & {
|
|
14
|
-
select: S;
|
|
15
|
-
} & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
|
|
16
|
-
procedures: ConnectionResult<InferSelectResult<ProcedureWithRelations, S>>;
|
|
17
|
-
}>;
|
|
18
|
-
findFirst<S extends ProcedureSelect>(args: FindFirstArgs<S, ProcedureFilter> & {
|
|
19
|
-
select: S;
|
|
20
|
-
} & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
|
|
21
|
-
procedures: {
|
|
22
|
-
nodes: InferSelectResult<ProcedureWithRelations, S>[];
|
|
23
|
-
};
|
|
24
|
-
}>;
|
|
25
|
-
findOne<S extends ProcedureSelect>(args: {
|
|
26
|
-
id: string;
|
|
27
|
-
select: S;
|
|
28
|
-
} & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
|
|
29
|
-
procedure: InferSelectResult<ProcedureWithRelations, S> | null;
|
|
30
|
-
}>;
|
|
31
|
-
create<S extends ProcedureSelect>(args: CreateArgs<S, CreateProcedureInput['procedure']> & {
|
|
32
|
-
select: S;
|
|
33
|
-
} & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
|
|
34
|
-
createProcedure: {
|
|
35
|
-
procedure: InferSelectResult<ProcedureWithRelations, S>;
|
|
36
|
-
};
|
|
37
|
-
}>;
|
|
38
|
-
update<S extends ProcedureSelect>(args: UpdateArgs<S, {
|
|
39
|
-
id: string;
|
|
40
|
-
}, ProcedurePatch> & {
|
|
41
|
-
select: S;
|
|
42
|
-
} & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
|
|
43
|
-
updateProcedure: {
|
|
44
|
-
procedure: InferSelectResult<ProcedureWithRelations, S>;
|
|
45
|
-
};
|
|
46
|
-
}>;
|
|
47
|
-
delete<S extends ProcedureSelect>(args: DeleteArgs<{
|
|
48
|
-
id: string;
|
|
49
|
-
}, S> & {
|
|
50
|
-
select: S;
|
|
51
|
-
} & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
|
|
52
|
-
deleteProcedure: {
|
|
53
|
-
procedure: InferSelectResult<ProcedureWithRelations, S>;
|
|
54
|
-
};
|
|
55
|
-
}>;
|
|
56
|
-
}
|