@constructive-io/react 1.9.2 → 1.9.3
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/hooks/index.d.ts +1 -1
- package/admin/hooks/index.js +1 -1
- package/admin/hooks/invalidation.d.ts +24 -0
- package/admin/hooks/invalidation.js +64 -0
- package/admin/hooks/mutation-keys.d.ts +48 -0
- package/admin/hooks/mutation-keys.js +32 -1
- package/admin/hooks/mutations/index.d.ts +8 -0
- package/admin/hooks/mutations/index.js +8 -0
- package/admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.d.ts +34 -0
- package/{api/hooks/mutations/useCreatePlatformApiModuleMutation.js → admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.js} +6 -6
- package/admin/hooks/mutations/useCreateOrgChartEdgeMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateOrgChartEdgeMutation.js +34 -0
- package/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.js +34 -0
- package/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.js +34 -0
- package/admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.d.ts +38 -0
- package/{api/hooks/mutations/useDeletePlatformApiModuleMutation.js → admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.js} +7 -7
- package/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.d.ts +38 -0
- package/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.js +39 -0
- package/admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.d.ts +40 -0
- package/{api/hooks/mutations/useUpdatePlatformApiModuleMutation.js → admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.js} +9 -9
- package/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.d.ts +40 -0
- package/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.js +40 -0
- package/admin/hooks/queries/index.d.ts +7 -0
- package/admin/hooks/queries/index.js +7 -0
- package/admin/hooks/queries/useOrgChartEdgeGrantQuery.d.ts +65 -0
- package/{api/hooks/queries/usePlatformApiModuleQuery.js → admin/hooks/queries/useOrgChartEdgeGrantQuery.js} +14 -14
- package/admin/hooks/queries/useOrgChartEdgeGrantsQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgChartEdgeGrantsQuery.js +38 -0
- package/admin/hooks/queries/useOrgChartEdgeQuery.d.ts +65 -0
- package/admin/hooks/queries/useOrgChartEdgeQuery.js +53 -0
- package/admin/hooks/queries/useOrgChartEdgesQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgChartEdgesQuery.js +38 -0
- package/admin/hooks/queries/useOrgGetManagersQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgGetManagersQuery.js +38 -0
- package/admin/hooks/queries/useOrgGetSubordinatesQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgGetSubordinatesQuery.js +38 -0
- package/admin/hooks/queries/useOrgIsManagerOfQuery.d.ts +53 -0
- package/admin/hooks/queries/useOrgIsManagerOfQuery.js +53 -0
- package/admin/hooks/query-keys.d.ts +58 -0
- package/admin/hooks/query-keys.js +34 -1
- package/admin/orm/index.d.ts +13 -0
- package/admin/orm/index.js +8 -0
- package/admin/orm/input-types.d.ts +399 -0
- package/admin/orm/models/index.d.ts +4 -0
- package/admin/orm/models/index.js +9 -1
- package/admin/orm/models/orgChartEdge.d.ts +54 -0
- package/admin/orm/models/orgChartEdge.js +104 -0
- package/admin/orm/models/orgChartEdgeGrant.d.ts +54 -0
- package/{api/orm/models/platformApiModule.js → admin/orm/models/orgChartEdgeGrant.js} +27 -27
- package/admin/orm/models/orgGetManagersRecord.d.ts +30 -0
- package/admin/orm/models/orgGetManagersRecord.js +59 -0
- package/admin/orm/models/orgGetSubordinatesRecord.d.ts +30 -0
- package/admin/orm/models/orgGetSubordinatesRecord.js +59 -0
- package/admin/orm/query/index.d.ts +11 -0
- package/admin/orm/query/index.js +24 -0
- package/admin/schema-types.d.ts +247 -1
- package/admin/types.d.ts +29 -0
- package/api/hooks/index.d.ts +1 -1
- package/api/hooks/index.js +1 -1
- package/api/hooks/invalidation.d.ts +6 -12
- package/api/hooks/invalidation.js +16 -32
- package/api/hooks/mutation-keys.d.ts +12 -24
- package/api/hooks/mutation-keys.js +9 -16
- package/api/hooks/mutations/index.d.ts +3 -6
- package/api/hooks/mutations/index.js +3 -6
- package/api/hooks/mutations/useCreateDomainTypeMutation.d.ts +34 -0
- package/api/hooks/mutations/{useCreateApiModuleMutation.js → useCreateDomainTypeMutation.js} +6 -6
- package/api/hooks/mutations/useDeleteDomainTypeMutation.d.ts +38 -0
- package/api/hooks/mutations/{useDeleteApiModuleMutation.js → useDeleteDomainTypeMutation.js} +7 -7
- package/api/hooks/mutations/useUpdateDomainTypeMutation.d.ts +40 -0
- package/api/hooks/mutations/{useUpdateApiModuleMutation.js → useUpdateDomainTypeMutation.js} +9 -9
- package/api/hooks/queries/index.d.ts +2 -4
- package/api/hooks/queries/index.js +2 -4
- package/api/hooks/queries/useDomainTypeQuery.d.ts +65 -0
- package/api/hooks/queries/{useApiModuleQuery.js → useDomainTypeQuery.js} +14 -14
- package/api/hooks/queries/useDomainTypesQuery.d.ts +69 -0
- package/api/hooks/queries/{useApiModulesQuery.js → useDomainTypesQuery.js} +14 -14
- package/api/hooks/query-keys.d.ts +14 -28
- package/api/hooks/query-keys.js +10 -18
- package/api/orm/index.d.ts +2 -4
- package/api/orm/index.js +2 -4
- package/api/orm/input-types.d.ts +378 -468
- package/api/orm/input-types.js +2 -2
- package/api/orm/models/domainType.d.ts +54 -0
- package/api/orm/models/{apiModule.js → domainType.js} +27 -27
- package/api/orm/models/index.d.ts +1 -2
- package/api/orm/models/index.js +4 -6
- package/api/schema-types.d.ts +157 -226
- package/api/types.d.ts +16 -17
- package/compute/orm/input-types.d.ts +42 -3
- package/compute/schema-types.d.ts +25 -3
- package/compute/types.d.ts +5 -0
- package/esm/admin/hooks/index.d.ts +1 -1
- package/esm/admin/hooks/index.js +1 -1
- package/esm/admin/hooks/invalidation.d.ts +24 -0
- package/esm/admin/hooks/invalidation.js +65 -1
- package/esm/admin/hooks/mutation-keys.d.ts +48 -0
- package/esm/admin/hooks/mutation-keys.js +31 -0
- package/esm/admin/hooks/mutations/index.d.ts +8 -0
- package/esm/admin/hooks/mutations/index.js +8 -0
- package/esm/admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateOrgChartEdgeGrantMutation.js +31 -0
- package/esm/admin/hooks/mutations/useCreateOrgChartEdgeMutation.d.ts +34 -0
- package/esm/{api/hooks/mutations/useCreatePlatformApiModuleMutation.js → admin/hooks/mutations/useCreateOrgChartEdgeMutation.js} +7 -7
- package/esm/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.js +31 -0
- package/esm/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.js +31 -0
- package/esm/admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.d.ts +38 -0
- package/esm/{api/hooks/mutations/useDeletePlatformApiModuleMutation.js → admin/hooks/mutations/useDeleteOrgChartEdgeGrantMutation.js} +8 -8
- package/esm/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.d.ts +38 -0
- package/esm/admin/hooks/mutations/useDeleteOrgChartEdgeMutation.js +36 -0
- package/esm/admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.d.ts +40 -0
- package/esm/{api/hooks/mutations/useUpdatePlatformApiModuleMutation.js → admin/hooks/mutations/useUpdateOrgChartEdgeGrantMutation.js} +10 -10
- package/esm/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.d.ts +40 -0
- package/esm/admin/hooks/mutations/useUpdateOrgChartEdgeMutation.js +37 -0
- package/esm/admin/hooks/queries/index.d.ts +7 -0
- package/esm/admin/hooks/queries/index.js +7 -0
- package/esm/admin/hooks/queries/useOrgChartEdgeGrantQuery.d.ts +65 -0
- package/esm/{api/hooks/queries/usePlatformApiModuleQuery.js → admin/hooks/queries/useOrgChartEdgeGrantQuery.js} +11 -11
- package/esm/admin/hooks/queries/useOrgChartEdgeGrantsQuery.d.ts +69 -0
- package/esm/{api/hooks/queries/usePlatformApiModulesQuery.js → admin/hooks/queries/useOrgChartEdgeGrantsQuery.js} +11 -11
- package/esm/admin/hooks/queries/useOrgChartEdgeQuery.d.ts +65 -0
- package/esm/admin/hooks/queries/useOrgChartEdgeQuery.js +47 -0
- package/esm/admin/hooks/queries/useOrgChartEdgesQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useOrgChartEdgesQuery.js +32 -0
- package/esm/admin/hooks/queries/useOrgGetManagersQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useOrgGetManagersQuery.js +32 -0
- package/esm/admin/hooks/queries/useOrgGetSubordinatesQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useOrgGetSubordinatesQuery.js +32 -0
- package/esm/admin/hooks/queries/useOrgIsManagerOfQuery.d.ts +53 -0
- package/esm/admin/hooks/queries/useOrgIsManagerOfQuery.js +47 -0
- package/esm/admin/hooks/query-keys.d.ts +58 -0
- package/esm/admin/hooks/query-keys.js +33 -0
- package/esm/admin/orm/index.d.ts +13 -0
- package/esm/admin/orm/index.js +8 -0
- package/esm/admin/orm/input-types.d.ts +399 -0
- package/esm/admin/orm/models/index.d.ts +4 -0
- package/esm/admin/orm/models/index.js +4 -0
- package/esm/admin/orm/models/orgChartEdge.d.ts +54 -0
- package/esm/admin/orm/models/orgChartEdge.js +100 -0
- package/esm/admin/orm/models/orgChartEdgeGrant.d.ts +54 -0
- package/esm/{api/orm/models/platformApiModule.js → admin/orm/models/orgChartEdgeGrant.js} +25 -25
- package/esm/admin/orm/models/orgGetManagersRecord.d.ts +30 -0
- package/esm/admin/orm/models/orgGetManagersRecord.js +55 -0
- package/esm/admin/orm/models/orgGetSubordinatesRecord.d.ts +30 -0
- package/esm/admin/orm/models/orgGetSubordinatesRecord.js +55 -0
- package/esm/admin/orm/query/index.d.ts +11 -0
- package/esm/admin/orm/query/index.js +24 -0
- package/esm/admin/schema-types.d.ts +247 -1
- package/esm/admin/types.d.ts +29 -0
- package/esm/api/hooks/index.d.ts +1 -1
- package/esm/api/hooks/index.js +1 -1
- package/esm/api/hooks/invalidation.d.ts +6 -12
- package/esm/api/hooks/invalidation.js +17 -33
- package/esm/api/hooks/mutation-keys.d.ts +12 -24
- package/esm/api/hooks/mutation-keys.js +7 -14
- package/esm/api/hooks/mutations/index.d.ts +3 -6
- package/esm/api/hooks/mutations/index.js +3 -6
- package/esm/api/hooks/mutations/useCreateDomainTypeMutation.d.ts +34 -0
- package/esm/api/hooks/mutations/{useCreateApiModuleMutation.js → useCreateDomainTypeMutation.js} +7 -7
- package/esm/api/hooks/mutations/useDeleteDomainTypeMutation.d.ts +38 -0
- package/esm/api/hooks/mutations/{useDeleteApiModuleMutation.js → useDeleteDomainTypeMutation.js} +8 -8
- package/esm/api/hooks/mutations/useUpdateDomainTypeMutation.d.ts +40 -0
- package/esm/api/hooks/mutations/{useUpdateApiModuleMutation.js → useUpdateDomainTypeMutation.js} +10 -10
- package/esm/api/hooks/queries/index.d.ts +2 -4
- package/esm/api/hooks/queries/index.js +2 -4
- package/esm/api/hooks/queries/useDomainTypeQuery.d.ts +65 -0
- package/esm/api/hooks/queries/{useApiModuleQuery.js → useDomainTypeQuery.js} +11 -11
- package/esm/api/hooks/queries/useDomainTypesQuery.d.ts +69 -0
- package/esm/api/hooks/queries/{useApiModulesQuery.js → useDomainTypesQuery.js} +11 -11
- package/esm/api/hooks/query-keys.d.ts +14 -28
- package/esm/api/hooks/query-keys.js +8 -16
- package/esm/api/orm/index.d.ts +2 -4
- package/esm/api/orm/index.js +2 -4
- package/esm/api/orm/input-types.d.ts +378 -468
- package/esm/api/orm/input-types.js +2 -2
- package/esm/api/orm/models/domainType.d.ts +54 -0
- package/esm/api/orm/models/{apiModule.js → domainType.js} +25 -25
- package/esm/api/orm/models/index.d.ts +1 -2
- package/esm/api/orm/models/index.js +1 -2
- package/esm/api/schema-types.d.ts +157 -226
- package/esm/api/types.d.ts +16 -17
- package/esm/compute/orm/input-types.d.ts +42 -3
- package/esm/compute/schema-types.d.ts +25 -3
- package/esm/compute/types.d.ts +5 -0
- package/esm/modules/orm/input-types.d.ts +9 -16
- package/esm/modules/schema-types.d.ts +6 -10
- package/esm/modules/types.d.ts +1 -2
- package/modules/orm/input-types.d.ts +9 -16
- package/modules/schema-types.d.ts +6 -10
- package/modules/types.d.ts +1 -2
- package/package.json +5 -5
- package/api/hooks/mutations/useCreateApiModuleMutation.d.ts +0 -34
- package/api/hooks/mutations/useCreatePlatformApiModuleMutation.d.ts +0 -34
- package/api/hooks/mutations/useDeleteApiModuleMutation.d.ts +0 -38
- package/api/hooks/mutations/useDeletePlatformApiModuleMutation.d.ts +0 -38
- package/api/hooks/mutations/useUpdateApiModuleMutation.d.ts +0 -40
- package/api/hooks/mutations/useUpdatePlatformApiModuleMutation.d.ts +0 -40
- package/api/hooks/queries/useApiModuleQuery.d.ts +0 -65
- package/api/hooks/queries/useApiModulesQuery.d.ts +0 -69
- package/api/hooks/queries/usePlatformApiModuleQuery.d.ts +0 -65
- package/api/hooks/queries/usePlatformApiModulesQuery.d.ts +0 -69
- package/api/hooks/queries/usePlatformApiModulesQuery.js +0 -38
- package/api/orm/models/apiModule.d.ts +0 -54
- package/api/orm/models/platformApiModule.d.ts +0 -54
- package/esm/api/hooks/mutations/useCreateApiModuleMutation.d.ts +0 -34
- package/esm/api/hooks/mutations/useCreatePlatformApiModuleMutation.d.ts +0 -34
- package/esm/api/hooks/mutations/useDeleteApiModuleMutation.d.ts +0 -38
- package/esm/api/hooks/mutations/useDeletePlatformApiModuleMutation.d.ts +0 -38
- package/esm/api/hooks/mutations/useUpdateApiModuleMutation.d.ts +0 -40
- package/esm/api/hooks/mutations/useUpdatePlatformApiModuleMutation.d.ts +0 -40
- package/esm/api/hooks/queries/useApiModuleQuery.d.ts +0 -65
- package/esm/api/hooks/queries/useApiModulesQuery.d.ts +0 -69
- package/esm/api/hooks/queries/usePlatformApiModuleQuery.d.ts +0 -65
- package/esm/api/hooks/queries/usePlatformApiModulesQuery.d.ts +0 -69
- package/esm/api/orm/models/apiModule.d.ts +0 -54
- package/esm/api/orm/models/platformApiModule.d.ts +0 -54
|
@@ -0,0 +1,54 @@
|
|
|
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, OrgChartEdgeGrantOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
|
|
21
|
+
orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends OrgChartEdgeGrantSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
|
|
27
|
+
orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends OrgChartEdgeGrantSelect>(args: CreateArgs<S, CreateOrgChartEdgeGrantInput['orgChartEdgeGrant']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
|
|
32
|
+
createOrgChartEdgeGrant: {
|
|
33
|
+
orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends OrgChartEdgeGrantSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, OrgChartEdgeGrantPatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
|
|
41
|
+
updateOrgChartEdgeGrant: {
|
|
42
|
+
orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends OrgChartEdgeGrantSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
|
|
50
|
+
deleteOrgChartEdgeGrant: {
|
|
51
|
+
orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S>;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
@@ -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 OrgChartEdgeGrantModel {
|
|
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('OrgChartEdgeGrant', 'orgChartEdgeGrants', args.select, {
|
|
10
10
|
where: args?.where,
|
|
11
11
|
orderBy: args?.orderBy,
|
|
12
12
|
first: args?.first,
|
|
@@ -14,85 +14,85 @@ export class PlatformApiModuleModel {
|
|
|
14
14
|
after: args?.after,
|
|
15
15
|
before: args?.before,
|
|
16
16
|
offset: args?.offset,
|
|
17
|
-
}, '
|
|
17
|
+
}, 'OrgChartEdgeGrantFilter', 'OrgChartEdgeGrantOrderBy', connectionFieldsMap);
|
|
18
18
|
return new QueryBuilder({
|
|
19
19
|
client: this.client,
|
|
20
20
|
operation: 'query',
|
|
21
|
-
operationName: '
|
|
22
|
-
fieldName: '
|
|
21
|
+
operationName: 'OrgChartEdgeGrant',
|
|
22
|
+
fieldName: 'orgChartEdgeGrants',
|
|
23
23
|
document,
|
|
24
24
|
variables,
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
findFirst(args) {
|
|
28
|
-
const { document, variables } = buildFindFirstDocument('
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('OrgChartEdgeGrant', 'orgChartEdgeGrants', args.select, {
|
|
29
29
|
where: args?.where,
|
|
30
30
|
orderBy: args?.orderBy,
|
|
31
|
-
}, '
|
|
31
|
+
}, 'OrgChartEdgeGrantFilter', 'OrgChartEdgeGrantOrderBy', connectionFieldsMap);
|
|
32
32
|
return new QueryBuilder({
|
|
33
33
|
client: this.client,
|
|
34
34
|
operation: 'query',
|
|
35
|
-
operationName: '
|
|
36
|
-
fieldName: '
|
|
35
|
+
operationName: 'OrgChartEdgeGrant',
|
|
36
|
+
fieldName: 'orgChartEdgeGrant',
|
|
37
37
|
document,
|
|
38
38
|
variables,
|
|
39
39
|
transform: (data) => ({
|
|
40
|
-
|
|
40
|
+
orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null,
|
|
41
41
|
}),
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
findOne(args) {
|
|
45
|
-
const { document, variables } = buildFindManyDocument('
|
|
45
|
+
const { document, variables } = buildFindManyDocument('OrgChartEdgeGrant', 'orgChartEdgeGrants', args.select, {
|
|
46
46
|
where: {
|
|
47
47
|
id: {
|
|
48
48
|
equalTo: args.id,
|
|
49
49
|
},
|
|
50
50
|
},
|
|
51
51
|
first: 1,
|
|
52
|
-
}, '
|
|
52
|
+
}, 'OrgChartEdgeGrantFilter', 'OrgChartEdgeGrantOrderBy', connectionFieldsMap);
|
|
53
53
|
return new QueryBuilder({
|
|
54
54
|
client: this.client,
|
|
55
55
|
operation: 'query',
|
|
56
|
-
operationName: '
|
|
57
|
-
fieldName: '
|
|
56
|
+
operationName: 'OrgChartEdgeGrant',
|
|
57
|
+
fieldName: 'orgChartEdgeGrant',
|
|
58
58
|
document,
|
|
59
59
|
variables,
|
|
60
60
|
transform: (data) => ({
|
|
61
|
-
|
|
61
|
+
orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null,
|
|
62
62
|
}),
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
create(args) {
|
|
66
|
-
const { document, variables } = buildCreateDocument('
|
|
66
|
+
const { document, variables } = buildCreateDocument('OrgChartEdgeGrant', 'createOrgChartEdgeGrant', 'orgChartEdgeGrant', args.select, args.data, 'CreateOrgChartEdgeGrantInput', connectionFieldsMap);
|
|
67
67
|
return new QueryBuilder({
|
|
68
68
|
client: this.client,
|
|
69
69
|
operation: 'mutation',
|
|
70
|
-
operationName: '
|
|
71
|
-
fieldName: '
|
|
70
|
+
operationName: 'OrgChartEdgeGrant',
|
|
71
|
+
fieldName: 'createOrgChartEdgeGrant',
|
|
72
72
|
document,
|
|
73
73
|
variables,
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
update(args) {
|
|
77
|
-
const { document, variables } = buildUpdateByPkDocument('
|
|
77
|
+
const { document, variables } = buildUpdateByPkDocument('OrgChartEdgeGrant', 'updateOrgChartEdgeGrant', 'orgChartEdgeGrant', args.select, args.where.id, args.data, 'UpdateOrgChartEdgeGrantInput', 'id', 'orgChartEdgeGrantPatch', connectionFieldsMap, undefined);
|
|
78
78
|
return new QueryBuilder({
|
|
79
79
|
client: this.client,
|
|
80
80
|
operation: 'mutation',
|
|
81
|
-
operationName: '
|
|
82
|
-
fieldName: '
|
|
81
|
+
operationName: 'OrgChartEdgeGrant',
|
|
82
|
+
fieldName: 'updateOrgChartEdgeGrant',
|
|
83
83
|
document,
|
|
84
84
|
variables,
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
delete(args) {
|
|
88
|
-
const { document, variables } = buildDeleteByPkDocument('
|
|
88
|
+
const { document, variables } = buildDeleteByPkDocument('OrgChartEdgeGrant', 'deleteOrgChartEdgeGrant', 'orgChartEdgeGrant', {
|
|
89
89
|
id: args.where.id,
|
|
90
|
-
}, '
|
|
90
|
+
}, 'DeleteOrgChartEdgeGrantInput', args.select, connectionFieldsMap);
|
|
91
91
|
return new QueryBuilder({
|
|
92
92
|
client: this.client,
|
|
93
93
|
operation: 'mutation',
|
|
94
|
-
operationName: '
|
|
95
|
-
fieldName: '
|
|
94
|
+
operationName: 'OrgChartEdgeGrant',
|
|
95
|
+
fieldName: 'deleteOrgChartEdgeGrant',
|
|
96
96
|
document,
|
|
97
97
|
variables,
|
|
98
98
|
});
|
|
@@ -0,0 +1,30 @@
|
|
|
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, OrgGetManagersRecordsOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, OrgGetManagersRecordSelect>): QueryBuilder<{
|
|
21
|
+
orgGetManagersRecord: InferSelectResult<OrgGetManagersRecordWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
create<S extends OrgGetManagersRecordSelect>(args: CreateArgs<S, CreateOrgGetManagersRecordInput['orgGetManagersRecord']> & {
|
|
24
|
+
select: S;
|
|
25
|
+
} & StrictSelect<S, OrgGetManagersRecordSelect>): QueryBuilder<{
|
|
26
|
+
createOrgGetManagersRecord: {
|
|
27
|
+
orgGetManagersRecord: InferSelectResult<OrgGetManagersRecordWithRelations, S>;
|
|
28
|
+
};
|
|
29
|
+
}>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
orderBy: args?.orderBy,
|
|
31
|
+
}, 'OrgGetManagersRecordFilter', 'OrgGetManagersRecordsOrderBy', connectionFieldsMap);
|
|
32
|
+
return new QueryBuilder({
|
|
33
|
+
client: this.client,
|
|
34
|
+
operation: 'query',
|
|
35
|
+
operationName: 'OrgGetManagersRecord',
|
|
36
|
+
fieldName: 'orgGetManagersRecord',
|
|
37
|
+
document,
|
|
38
|
+
variables,
|
|
39
|
+
transform: (data) => ({
|
|
40
|
+
orgGetManagersRecord: data.orgGetManagers?.nodes?.[0] ?? null,
|
|
41
|
+
}),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
create(args) {
|
|
45
|
+
const { document, variables } = buildCreateDocument('OrgGetManagersRecord', 'createOrgGetManagersRecord', 'orgGetManagersRecord', args.select, args.data, 'CreateOrgGetManagersRecordInput', connectionFieldsMap);
|
|
46
|
+
return new QueryBuilder({
|
|
47
|
+
client: this.client,
|
|
48
|
+
operation: 'mutation',
|
|
49
|
+
operationName: 'OrgGetManagersRecord',
|
|
50
|
+
fieldName: 'createOrgGetManagersRecord',
|
|
51
|
+
document,
|
|
52
|
+
variables,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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, OrgGetSubordinatesRecordsOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, OrgGetSubordinatesRecordSelect>): QueryBuilder<{
|
|
21
|
+
orgGetSubordinatesRecord: InferSelectResult<OrgGetSubordinatesRecordWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
create<S extends OrgGetSubordinatesRecordSelect>(args: CreateArgs<S, CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord']> & {
|
|
24
|
+
select: S;
|
|
25
|
+
} & StrictSelect<S, OrgGetSubordinatesRecordSelect>): QueryBuilder<{
|
|
26
|
+
createOrgGetSubordinatesRecord: {
|
|
27
|
+
orgGetSubordinatesRecord: InferSelectResult<OrgGetSubordinatesRecordWithRelations, S>;
|
|
28
|
+
};
|
|
29
|
+
}>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
orderBy: args?.orderBy,
|
|
31
|
+
}, 'OrgGetSubordinatesRecordFilter', 'OrgGetSubordinatesRecordsOrderBy', connectionFieldsMap);
|
|
32
|
+
return new QueryBuilder({
|
|
33
|
+
client: this.client,
|
|
34
|
+
operation: 'query',
|
|
35
|
+
operationName: 'OrgGetSubordinatesRecord',
|
|
36
|
+
fieldName: 'orgGetSubordinatesRecord',
|
|
37
|
+
document,
|
|
38
|
+
variables,
|
|
39
|
+
transform: (data) => ({
|
|
40
|
+
orgGetSubordinatesRecord: data.orgGetSubordinates?.nodes?.[0] ?? null,
|
|
41
|
+
}),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
create(args) {
|
|
45
|
+
const { document, variables } = buildCreateDocument('OrgGetSubordinatesRecord', 'createOrgGetSubordinatesRecord', 'orgGetSubordinatesRecord', args.select, args.data, 'CreateOrgGetSubordinatesRecordInput', connectionFieldsMap);
|
|
46
|
+
return new QueryBuilder({
|
|
47
|
+
client: this.client,
|
|
48
|
+
operation: 'mutation',
|
|
49
|
+
operationName: 'OrgGetSubordinatesRecord',
|
|
50
|
+
fieldName: 'createOrgGetSubordinatesRecord',
|
|
51
|
+
document,
|
|
52
|
+
variables,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -27,6 +27,12 @@ export interface AppPermissionsGetMaskByNamesVariables {
|
|
|
27
27
|
export interface AppPermissionsGetPaddedMaskVariables {
|
|
28
28
|
mask?: string;
|
|
29
29
|
}
|
|
30
|
+
export interface OrgIsManagerOfVariables {
|
|
31
|
+
managerId?: string;
|
|
32
|
+
maxDepth?: number;
|
|
33
|
+
targetEntityId?: string;
|
|
34
|
+
userId?: string;
|
|
35
|
+
}
|
|
30
36
|
export interface OrgPermissionsGetByMaskVariables {
|
|
31
37
|
/** Read all values in the set after (below) this cursor. */
|
|
32
38
|
after?: string;
|
|
@@ -69,6 +75,11 @@ export declare function createQueryOperations(client: OrmClient): {
|
|
|
69
75
|
}) => QueryBuilder<{
|
|
70
76
|
appPermissionsGetPaddedMask: string | null;
|
|
71
77
|
}>;
|
|
78
|
+
orgIsManagerOf: (args: OrgIsManagerOfVariables, options?: {
|
|
79
|
+
select?: Record<string, unknown>;
|
|
80
|
+
}) => QueryBuilder<{
|
|
81
|
+
orgIsManagerOf: boolean | null;
|
|
82
|
+
}>;
|
|
72
83
|
orgPermissionsGetByMask: (args: OrgPermissionsGetByMaskVariables, options?: {
|
|
73
84
|
select?: Record<string, unknown>;
|
|
74
85
|
}) => QueryBuilder<{
|
|
@@ -62,6 +62,30 @@ export function createQueryOperations(client) {
|
|
|
62
62
|
},
|
|
63
63
|
], connectionFieldsMap, undefined),
|
|
64
64
|
}),
|
|
65
|
+
orgIsManagerOf: (args, options) => new QueryBuilder({
|
|
66
|
+
client,
|
|
67
|
+
operation: 'query',
|
|
68
|
+
operationName: 'OrgIsManagerOf',
|
|
69
|
+
fieldName: 'orgIsManagerOf',
|
|
70
|
+
...buildCustomDocument('query', 'OrgIsManagerOf', 'orgIsManagerOf', options?.select, args, [
|
|
71
|
+
{
|
|
72
|
+
name: 'managerId',
|
|
73
|
+
type: 'UUID',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'maxDepth',
|
|
77
|
+
type: 'Int',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'targetEntityId',
|
|
81
|
+
type: 'UUID',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'userId',
|
|
85
|
+
type: 'UUID',
|
|
86
|
+
},
|
|
87
|
+
], connectionFieldsMap, undefined),
|
|
88
|
+
}),
|
|
65
89
|
orgPermissionsGetByMask: (args, options) => new QueryBuilder({
|
|
66
90
|
client,
|
|
67
91
|
operation: 'query',
|