@constructive-io/sdk 0.2.3 → 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
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class OrgChartEdgeGrantModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('OrgChartEdgeGrant', 'orgChartEdgeGrants', 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
|
+
}, 'OrgChartEdgeGrantFilter', 'OrgChartEdgeGrantOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'OrgChartEdgeGrant',
|
|
22
|
+
fieldName: 'orgChartEdgeGrants',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('OrgChartEdgeGrant', 'orgChartEdgeGrants', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
}, 'OrgChartEdgeGrantFilter', connectionFieldsMap);
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'OrgChartEdgeGrant',
|
|
35
|
+
fieldName: 'orgChartEdgeGrants',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
findOne(args) {
|
|
41
|
+
const { document, variables } = buildFindManyDocument('OrgChartEdgeGrant', 'orgChartEdgeGrants', args.select, {
|
|
42
|
+
where: {
|
|
43
|
+
id: {
|
|
44
|
+
equalTo: args.id,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
first: 1,
|
|
48
|
+
}, 'OrgChartEdgeGrantFilter', 'OrgChartEdgeGrantOrderBy', connectionFieldsMap);
|
|
49
|
+
return new QueryBuilder({
|
|
50
|
+
client: this.client,
|
|
51
|
+
operation: 'query',
|
|
52
|
+
operationName: 'OrgChartEdgeGrant',
|
|
53
|
+
fieldName: 'orgChartEdgeGrant',
|
|
54
|
+
document,
|
|
55
|
+
variables,
|
|
56
|
+
transform: (data) => ({
|
|
57
|
+
orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null,
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
create(args) {
|
|
62
|
+
const { document, variables } = buildCreateDocument('OrgChartEdgeGrant', 'createOrgChartEdgeGrant', 'orgChartEdgeGrant', args.select, args.data, 'CreateOrgChartEdgeGrantInput', connectionFieldsMap);
|
|
63
|
+
return new QueryBuilder({
|
|
64
|
+
client: this.client,
|
|
65
|
+
operation: 'mutation',
|
|
66
|
+
operationName: 'OrgChartEdgeGrant',
|
|
67
|
+
fieldName: 'createOrgChartEdgeGrant',
|
|
68
|
+
document,
|
|
69
|
+
variables,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
update(args) {
|
|
73
|
+
const { document, variables } = buildUpdateByPkDocument('OrgChartEdgeGrant', 'updateOrgChartEdgeGrant', 'orgChartEdgeGrant', args.select, args.where.id, args.data, 'UpdateOrgChartEdgeGrantInput', 'id', 'orgChartEdgeGrantPatch', connectionFieldsMap);
|
|
74
|
+
return new QueryBuilder({
|
|
75
|
+
client: this.client,
|
|
76
|
+
operation: 'mutation',
|
|
77
|
+
operationName: 'OrgChartEdgeGrant',
|
|
78
|
+
fieldName: 'updateOrgChartEdgeGrant',
|
|
79
|
+
document,
|
|
80
|
+
variables,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
delete(args) {
|
|
84
|
+
const { document, variables } = buildDeleteByPkDocument('OrgChartEdgeGrant', 'deleteOrgChartEdgeGrant', 'orgChartEdgeGrant', args.where.id, 'DeleteOrgChartEdgeGrantInput', 'id', args.select, connectionFieldsMap);
|
|
85
|
+
return new QueryBuilder({
|
|
86
|
+
client: this.client,
|
|
87
|
+
operation: 'mutation',
|
|
88
|
+
operationName: 'OrgChartEdgeGrant',
|
|
89
|
+
fieldName: 'deleteOrgChartEdgeGrant',
|
|
90
|
+
document,
|
|
91
|
+
variables,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrgGetManagersRecord 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 { OrgGetManagersRecordWithRelations, OrgGetManagersRecordSelect, OrgGetManagersRecordFilter, OrgGetManagersRecordsOrderBy, CreateOrgGetManagersRecordInput } from '../input-types';
|
|
10
|
+
export declare class OrgGetManagersRecordModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends OrgGetManagersRecordSelect>(args: FindManyArgs<S, OrgGetManagersRecordFilter, OrgGetManagersRecordsOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, OrgGetManagersRecordSelect>): QueryBuilder<{
|
|
16
|
+
orgGetManagers: ConnectionResult<InferSelectResult<OrgGetManagersRecordWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends OrgGetManagersRecordSelect>(args: FindFirstArgs<S, OrgGetManagersRecordFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, OrgGetManagersRecordSelect>): QueryBuilder<{
|
|
21
|
+
orgGetManagers: {
|
|
22
|
+
nodes: InferSelectResult<OrgGetManagersRecordWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
create<S extends OrgGetManagersRecordSelect>(args: CreateArgs<S, CreateOrgGetManagersRecordInput['orgGetManagersRecord']> & {
|
|
26
|
+
select: S;
|
|
27
|
+
} & StrictSelect<S, OrgGetManagersRecordSelect>): QueryBuilder<{
|
|
28
|
+
createOrgGetManagersRecord: {
|
|
29
|
+
orgGetManagersRecord: InferSelectResult<OrgGetManagersRecordWithRelations, S>;
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class OrgGetManagersRecordModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('OrgGetManagersRecord', 'orgGetManagers', 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
|
+
}, 'OrgGetManagersRecordFilter', 'OrgGetManagersRecordsOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'OrgGetManagersRecord',
|
|
22
|
+
fieldName: 'orgGetManagers',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('OrgGetManagersRecord', 'orgGetManagers', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
}, 'OrgGetManagersRecordFilter', connectionFieldsMap);
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'OrgGetManagersRecord',
|
|
35
|
+
fieldName: 'orgGetManagers',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
create(args) {
|
|
41
|
+
const { document, variables } = buildCreateDocument('OrgGetManagersRecord', 'createOrgGetManagersRecord', 'orgGetManagersRecord', args.select, args.data, 'CreateOrgGetManagersRecordInput', connectionFieldsMap);
|
|
42
|
+
return new QueryBuilder({
|
|
43
|
+
client: this.client,
|
|
44
|
+
operation: 'mutation',
|
|
45
|
+
operationName: 'OrgGetManagersRecord',
|
|
46
|
+
fieldName: 'createOrgGetManagersRecord',
|
|
47
|
+
document,
|
|
48
|
+
variables,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrgGetSubordinatesRecord 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 { OrgGetSubordinatesRecordWithRelations, OrgGetSubordinatesRecordSelect, OrgGetSubordinatesRecordFilter, OrgGetSubordinatesRecordsOrderBy, CreateOrgGetSubordinatesRecordInput } from '../input-types';
|
|
10
|
+
export declare class OrgGetSubordinatesRecordModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends OrgGetSubordinatesRecordSelect>(args: FindManyArgs<S, OrgGetSubordinatesRecordFilter, OrgGetSubordinatesRecordsOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, OrgGetSubordinatesRecordSelect>): QueryBuilder<{
|
|
16
|
+
orgGetSubordinates: ConnectionResult<InferSelectResult<OrgGetSubordinatesRecordWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends OrgGetSubordinatesRecordSelect>(args: FindFirstArgs<S, OrgGetSubordinatesRecordFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, OrgGetSubordinatesRecordSelect>): QueryBuilder<{
|
|
21
|
+
orgGetSubordinates: {
|
|
22
|
+
nodes: InferSelectResult<OrgGetSubordinatesRecordWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
create<S extends OrgGetSubordinatesRecordSelect>(args: CreateArgs<S, CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord']> & {
|
|
26
|
+
select: S;
|
|
27
|
+
} & StrictSelect<S, OrgGetSubordinatesRecordSelect>): QueryBuilder<{
|
|
28
|
+
createOrgGetSubordinatesRecord: {
|
|
29
|
+
orgGetSubordinatesRecord: InferSelectResult<OrgGetSubordinatesRecordWithRelations, S>;
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class OrgGetSubordinatesRecordModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('OrgGetSubordinatesRecord', 'orgGetSubordinates', 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
|
+
}, 'OrgGetSubordinatesRecordFilter', 'OrgGetSubordinatesRecordsOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'OrgGetSubordinatesRecord',
|
|
22
|
+
fieldName: 'orgGetSubordinates',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('OrgGetSubordinatesRecord', 'orgGetSubordinates', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
}, 'OrgGetSubordinatesRecordFilter', connectionFieldsMap);
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'OrgGetSubordinatesRecord',
|
|
35
|
+
fieldName: 'orgGetSubordinates',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
create(args) {
|
|
41
|
+
const { document, variables } = buildCreateDocument('OrgGetSubordinatesRecord', 'createOrgGetSubordinatesRecord', 'orgGetSubordinatesRecord', args.select, args.data, 'CreateOrgGetSubordinatesRecordInput', connectionFieldsMap);
|
|
42
|
+
return new QueryBuilder({
|
|
43
|
+
client: this.client,
|
|
44
|
+
operation: 'mutation',
|
|
45
|
+
operationName: 'OrgGetSubordinatesRecord',
|
|
46
|
+
fieldName: 'createOrgGetSubordinatesRecord',
|
|
47
|
+
document,
|
|
48
|
+
variables,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RelationProvision 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 { RelationProvisionWithRelations, RelationProvisionSelect, RelationProvisionFilter, RelationProvisionOrderBy, CreateRelationProvisionInput, RelationProvisionPatch } from '../input-types';
|
|
10
|
+
export declare class RelationProvisionModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends RelationProvisionSelect>(args: FindManyArgs<S, RelationProvisionFilter, RelationProvisionOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, RelationProvisionSelect>): QueryBuilder<{
|
|
16
|
+
relationProvisions: ConnectionResult<InferSelectResult<RelationProvisionWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends RelationProvisionSelect>(args: FindFirstArgs<S, RelationProvisionFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, RelationProvisionSelect>): QueryBuilder<{
|
|
21
|
+
relationProvisions: {
|
|
22
|
+
nodes: InferSelectResult<RelationProvisionWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends RelationProvisionSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, RelationProvisionSelect>): QueryBuilder<{
|
|
29
|
+
relationProvision: InferSelectResult<RelationProvisionWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends RelationProvisionSelect>(args: CreateArgs<S, CreateRelationProvisionInput['relationProvision']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, RelationProvisionSelect>): QueryBuilder<{
|
|
34
|
+
createRelationProvision: {
|
|
35
|
+
relationProvision: InferSelectResult<RelationProvisionWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends RelationProvisionSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, RelationProvisionPatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, RelationProvisionSelect>): QueryBuilder<{
|
|
43
|
+
updateRelationProvision: {
|
|
44
|
+
relationProvision: InferSelectResult<RelationProvisionWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends RelationProvisionSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, RelationProvisionSelect>): QueryBuilder<{
|
|
52
|
+
deleteRelationProvision: {
|
|
53
|
+
relationProvision: InferSelectResult<RelationProvisionWithRelations, 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 RelationProvisionModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('RelationProvision', 'relationProvisions', 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
|
+
}, 'RelationProvisionFilter', 'RelationProvisionOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'RelationProvision',
|
|
22
|
+
fieldName: 'relationProvisions',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('RelationProvision', 'relationProvisions', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
}, 'RelationProvisionFilter', connectionFieldsMap);
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'RelationProvision',
|
|
35
|
+
fieldName: 'relationProvisions',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
findOne(args) {
|
|
41
|
+
const { document, variables } = buildFindManyDocument('RelationProvision', 'relationProvisions', args.select, {
|
|
42
|
+
where: {
|
|
43
|
+
id: {
|
|
44
|
+
equalTo: args.id,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
first: 1,
|
|
48
|
+
}, 'RelationProvisionFilter', 'RelationProvisionOrderBy', connectionFieldsMap);
|
|
49
|
+
return new QueryBuilder({
|
|
50
|
+
client: this.client,
|
|
51
|
+
operation: 'query',
|
|
52
|
+
operationName: 'RelationProvision',
|
|
53
|
+
fieldName: 'relationProvision',
|
|
54
|
+
document,
|
|
55
|
+
variables,
|
|
56
|
+
transform: (data) => ({
|
|
57
|
+
relationProvision: data.relationProvisions?.nodes?.[0] ?? null,
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
create(args) {
|
|
62
|
+
const { document, variables } = buildCreateDocument('RelationProvision', 'createRelationProvision', 'relationProvision', args.select, args.data, 'CreateRelationProvisionInput', connectionFieldsMap);
|
|
63
|
+
return new QueryBuilder({
|
|
64
|
+
client: this.client,
|
|
65
|
+
operation: 'mutation',
|
|
66
|
+
operationName: 'RelationProvision',
|
|
67
|
+
fieldName: 'createRelationProvision',
|
|
68
|
+
document,
|
|
69
|
+
variables,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
update(args) {
|
|
73
|
+
const { document, variables } = buildUpdateByPkDocument('RelationProvision', 'updateRelationProvision', 'relationProvision', args.select, args.where.id, args.data, 'UpdateRelationProvisionInput', 'id', 'relationProvisionPatch', connectionFieldsMap);
|
|
74
|
+
return new QueryBuilder({
|
|
75
|
+
client: this.client,
|
|
76
|
+
operation: 'mutation',
|
|
77
|
+
operationName: 'RelationProvision',
|
|
78
|
+
fieldName: 'updateRelationProvision',
|
|
79
|
+
document,
|
|
80
|
+
variables,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
delete(args) {
|
|
84
|
+
const { document, variables } = buildDeleteByPkDocument('RelationProvision', 'deleteRelationProvision', 'relationProvision', args.where.id, 'DeleteRelationProvisionInput', 'id', args.select, connectionFieldsMap);
|
|
85
|
+
return new QueryBuilder({
|
|
86
|
+
client: this.client,
|
|
87
|
+
operation: 'mutation',
|
|
88
|
+
operationName: 'RelationProvision',
|
|
89
|
+
fieldName: 'deleteRelationProvision',
|
|
90
|
+
document,
|
|
91
|
+
variables,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SecureTableProvision 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 { SecureTableProvisionWithRelations, SecureTableProvisionSelect, SecureTableProvisionFilter, SecureTableProvisionOrderBy, CreateSecureTableProvisionInput, SecureTableProvisionPatch } from '../input-types';
|
|
10
|
+
export declare class SecureTableProvisionModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends SecureTableProvisionSelect>(args: FindManyArgs<S, SecureTableProvisionFilter, SecureTableProvisionOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, SecureTableProvisionSelect>): QueryBuilder<{
|
|
16
|
+
secureTableProvisions: ConnectionResult<InferSelectResult<SecureTableProvisionWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends SecureTableProvisionSelect>(args: FindFirstArgs<S, SecureTableProvisionFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, SecureTableProvisionSelect>): QueryBuilder<{
|
|
21
|
+
secureTableProvisions: {
|
|
22
|
+
nodes: InferSelectResult<SecureTableProvisionWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends SecureTableProvisionSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, SecureTableProvisionSelect>): QueryBuilder<{
|
|
29
|
+
secureTableProvision: InferSelectResult<SecureTableProvisionWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends SecureTableProvisionSelect>(args: CreateArgs<S, CreateSecureTableProvisionInput['secureTableProvision']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, SecureTableProvisionSelect>): QueryBuilder<{
|
|
34
|
+
createSecureTableProvision: {
|
|
35
|
+
secureTableProvision: InferSelectResult<SecureTableProvisionWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends SecureTableProvisionSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, SecureTableProvisionPatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, SecureTableProvisionSelect>): QueryBuilder<{
|
|
43
|
+
updateSecureTableProvision: {
|
|
44
|
+
secureTableProvision: InferSelectResult<SecureTableProvisionWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends SecureTableProvisionSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, SecureTableProvisionSelect>): QueryBuilder<{
|
|
52
|
+
deleteSecureTableProvision: {
|
|
53
|
+
secureTableProvision: InferSelectResult<SecureTableProvisionWithRelations, 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 SecureTableProvisionModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('SecureTableProvision', 'secureTableProvisions', 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
|
+
}, 'SecureTableProvisionFilter', 'SecureTableProvisionOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'SecureTableProvision',
|
|
22
|
+
fieldName: 'secureTableProvisions',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('SecureTableProvision', 'secureTableProvisions', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
}, 'SecureTableProvisionFilter', connectionFieldsMap);
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'SecureTableProvision',
|
|
35
|
+
fieldName: 'secureTableProvisions',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
findOne(args) {
|
|
41
|
+
const { document, variables } = buildFindManyDocument('SecureTableProvision', 'secureTableProvisions', args.select, {
|
|
42
|
+
where: {
|
|
43
|
+
id: {
|
|
44
|
+
equalTo: args.id,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
first: 1,
|
|
48
|
+
}, 'SecureTableProvisionFilter', 'SecureTableProvisionOrderBy', connectionFieldsMap);
|
|
49
|
+
return new QueryBuilder({
|
|
50
|
+
client: this.client,
|
|
51
|
+
operation: 'query',
|
|
52
|
+
operationName: 'SecureTableProvision',
|
|
53
|
+
fieldName: 'secureTableProvision',
|
|
54
|
+
document,
|
|
55
|
+
variables,
|
|
56
|
+
transform: (data) => ({
|
|
57
|
+
secureTableProvision: data.secureTableProvisions?.nodes?.[0] ?? null,
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
create(args) {
|
|
62
|
+
const { document, variables } = buildCreateDocument('SecureTableProvision', 'createSecureTableProvision', 'secureTableProvision', args.select, args.data, 'CreateSecureTableProvisionInput', connectionFieldsMap);
|
|
63
|
+
return new QueryBuilder({
|
|
64
|
+
client: this.client,
|
|
65
|
+
operation: 'mutation',
|
|
66
|
+
operationName: 'SecureTableProvision',
|
|
67
|
+
fieldName: 'createSecureTableProvision',
|
|
68
|
+
document,
|
|
69
|
+
variables,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
update(args) {
|
|
73
|
+
const { document, variables } = buildUpdateByPkDocument('SecureTableProvision', 'updateSecureTableProvision', 'secureTableProvision', args.select, args.where.id, args.data, 'UpdateSecureTableProvisionInput', 'id', 'secureTableProvisionPatch', connectionFieldsMap);
|
|
74
|
+
return new QueryBuilder({
|
|
75
|
+
client: this.client,
|
|
76
|
+
operation: 'mutation',
|
|
77
|
+
operationName: 'SecureTableProvision',
|
|
78
|
+
fieldName: 'updateSecureTableProvision',
|
|
79
|
+
document,
|
|
80
|
+
variables,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
delete(args) {
|
|
84
|
+
const { document, variables } = buildDeleteByPkDocument('SecureTableProvision', 'deleteSecureTableProvision', 'secureTableProvision', args.where.id, 'DeleteSecureTableProvisionInput', 'id', args.select, connectionFieldsMap);
|
|
85
|
+
return new QueryBuilder({
|
|
86
|
+
client: this.client,
|
|
87
|
+
operation: 'mutation',
|
|
88
|
+
operationName: 'SecureTableProvision',
|
|
89
|
+
fieldName: 'deleteSecureTableProvision',
|
|
90
|
+
document,
|
|
91
|
+
variables,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -22,6 +22,12 @@ export interface RevParseVariables {
|
|
|
22
22
|
storeId?: string;
|
|
23
23
|
refname?: string;
|
|
24
24
|
}
|
|
25
|
+
export interface OrgIsManagerOfVariables {
|
|
26
|
+
pEntityId?: string;
|
|
27
|
+
pManagerId?: string;
|
|
28
|
+
pUserId?: string;
|
|
29
|
+
pMaxDepth?: number;
|
|
30
|
+
}
|
|
25
31
|
export interface AppPermissionsGetMaskVariables {
|
|
26
32
|
ids?: string[];
|
|
27
33
|
}
|
|
@@ -140,6 +146,11 @@ export declare function createQueryOperations(client: OrmClient): {
|
|
|
140
146
|
}) => QueryBuilder<{
|
|
141
147
|
revParse: string | null;
|
|
142
148
|
}>;
|
|
149
|
+
orgIsManagerOf: (args: OrgIsManagerOfVariables, options?: {
|
|
150
|
+
select?: Record<string, unknown>;
|
|
151
|
+
}) => QueryBuilder<{
|
|
152
|
+
orgIsManagerOf: boolean | null;
|
|
153
|
+
}>;
|
|
143
154
|
appPermissionsGetMask: (args: AppPermissionsGetMaskVariables, options?: {
|
|
144
155
|
select?: Record<string, unknown>;
|
|
145
156
|
}) => QueryBuilder<{
|
|
@@ -83,6 +83,30 @@ export function createQueryOperations(client) {
|
|
|
83
83
|
},
|
|
84
84
|
], connectionFieldsMap, undefined),
|
|
85
85
|
}),
|
|
86
|
+
orgIsManagerOf: (args, options) => new QueryBuilder({
|
|
87
|
+
client,
|
|
88
|
+
operation: 'query',
|
|
89
|
+
operationName: 'OrgIsManagerOf',
|
|
90
|
+
fieldName: 'orgIsManagerOf',
|
|
91
|
+
...buildCustomDocument('query', 'OrgIsManagerOf', 'orgIsManagerOf', options?.select, args, [
|
|
92
|
+
{
|
|
93
|
+
name: 'pEntityId',
|
|
94
|
+
type: 'UUID',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
name: 'pManagerId',
|
|
98
|
+
type: 'UUID',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'pUserId',
|
|
102
|
+
type: 'UUID',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: 'pMaxDepth',
|
|
106
|
+
type: 'Int',
|
|
107
|
+
},
|
|
108
|
+
], connectionFieldsMap, undefined),
|
|
109
|
+
}),
|
|
86
110
|
appPermissionsGetMask: (args, options) => new QueryBuilder({
|
|
87
111
|
client,
|
|
88
112
|
operation: 'query',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Constructive SDK - Auto-generated GraphQL types and ORM client",
|
|
6
6
|
"main": "index.js",
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@0no-co/graphql.web": "^1.1.2",
|
|
42
42
|
"@constructive-io/graphql-types": "^3.1.2",
|
|
43
|
-
"gql-ast": "^3.1.
|
|
44
|
-
"graphql": "^16.
|
|
43
|
+
"gql-ast": "^3.1.1",
|
|
44
|
+
"graphql": "^16.13.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@constructive-io/graphql-codegen": "^4.
|
|
48
|
-
"@types/node": "^
|
|
47
|
+
"@constructive-io/graphql-codegen": "^4.8.0",
|
|
48
|
+
"@types/node": "^22.19.11",
|
|
49
49
|
"makage": "^0.1.12",
|
|
50
50
|
"tsx": "^4.19.0",
|
|
51
51
|
"typescript": "^5.9.3"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "d0d7d3916b70c8d960bc13e40ac85d73ea869224"
|
|
54
54
|
}
|