@constructive-io/react 1.9.2 → 1.9.4
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,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Organizational chart edges defining parent-child reporting relationships between members within an entity
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
+
import type { ListSelectionConfig } from '../selection';
|
|
8
|
+
import type { OrgChartEdgeSelect, OrgChartEdgeWithRelations, OrgChartEdgeFilter, OrgChartEdgeOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { OrgChartEdgeSelect, OrgChartEdgeWithRelations, OrgChartEdgeFilter, OrgChartEdgeOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const orgChartEdgesQueryKey: (variables?: object) => readonly ["orgchartedge", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Organizational chart edges defining parent-child reporting relationships between members within an entity
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = useOrgChartEdgesQuery({
|
|
19
|
+
* selection: {
|
|
20
|
+
* fields: { id: true, name: true },
|
|
21
|
+
* where: { name: { equalTo: "example" } },
|
|
22
|
+
* orderBy: ['CREATED_AT_DESC'],
|
|
23
|
+
* first: 10,
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function useOrgChartEdgesQuery<S extends OrgChartEdgeSelect, TData = {
|
|
29
|
+
orgChartEdges: ConnectionResult<InferSelectResult<OrgChartEdgeWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, OrgChartEdgeFilter, OrgChartEdgeOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgChartEdgeSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
orgChartEdges: ConnectionResult<InferSelectResult<OrgChartEdgeWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Organizational chart edges defining parent-child reporting relationships between members within an entity
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchOrgChartEdgesQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchOrgChartEdgesQuery<S extends OrgChartEdgeSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, OrgChartEdgeFilter, OrgChartEdgeOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgChartEdgeSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
orgChartEdges: ConnectionResult<InferSelectResult<OrgChartEdgeWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Organizational chart edges defining parent-child reporting relationships between members within an entity
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchOrgChartEdgesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchOrgChartEdgesQuery<S extends OrgChartEdgeSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, OrgChartEdgeFilter, OrgChartEdgeOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgChartEdgeSelect>;
|
|
69
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Organizational chart edges defining parent-child reporting relationships between members within an entity
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useQuery } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildListSelectionArgs } from '../selection';
|
|
9
|
+
import { orgChartEdgeKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const orgChartEdgesQueryKey = orgChartEdgeKeys.list;
|
|
12
|
+
export function useOrgChartEdgesQuery(params) {
|
|
13
|
+
const args = buildListSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: orgChartEdgeKeys.list(args),
|
|
18
|
+
queryFn: () => getClient().orgChartEdge.findMany(args).unwrap(),
|
|
19
|
+
...queryOptions,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export async function fetchOrgChartEdgesQuery(params) {
|
|
23
|
+
const args = buildListSelectionArgs(params.selection);
|
|
24
|
+
return getClient().orgChartEdge.findMany(args).unwrap();
|
|
25
|
+
}
|
|
26
|
+
export async function prefetchOrgChartEdgesQuery(queryClient, params) {
|
|
27
|
+
const args = buildListSelectionArgs(params.selection);
|
|
28
|
+
await queryClient.prefetchQuery({
|
|
29
|
+
queryKey: orgChartEdgeKeys.list(args),
|
|
30
|
+
queryFn: () => getClient().orgChartEdge.findMany(args).unwrap(),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List query hook for OrgGetManagersRecord
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
+
import type { ListSelectionConfig } from '../selection';
|
|
8
|
+
import type { OrgGetManagersRecordSelect, OrgGetManagersRecordWithRelations, OrgGetManagersRecordFilter, OrgGetManagersRecordsOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { OrgGetManagersRecordSelect, OrgGetManagersRecordWithRelations, OrgGetManagersRecordFilter, OrgGetManagersRecordsOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const orgGetManagersQueryKey: (variables?: object) => readonly ["orggetmanagersrecord", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Query hook for fetching OrgGetManagersRecord list
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = useOrgGetManagersQuery({
|
|
19
|
+
* selection: {
|
|
20
|
+
* fields: { id: true, name: true },
|
|
21
|
+
* where: { name: { equalTo: "example" } },
|
|
22
|
+
* orderBy: ['CREATED_AT_DESC'],
|
|
23
|
+
* first: 10,
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function useOrgGetManagersQuery<S extends OrgGetManagersRecordSelect, TData = {
|
|
29
|
+
orgGetManagers: ConnectionResult<InferSelectResult<OrgGetManagersRecordWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, OrgGetManagersRecordFilter, OrgGetManagersRecordsOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgGetManagersRecordSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
orgGetManagers: ConnectionResult<InferSelectResult<OrgGetManagersRecordWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Fetch OrgGetManagersRecord list without React hooks
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchOrgGetManagersQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchOrgGetManagersQuery<S extends OrgGetManagersRecordSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, OrgGetManagersRecordFilter, OrgGetManagersRecordsOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgGetManagersRecordSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
orgGetManagers: ConnectionResult<InferSelectResult<OrgGetManagersRecordWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Prefetch OrgGetManagersRecord list for SSR or cache warming
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchOrgGetManagersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchOrgGetManagersQuery<S extends OrgGetManagersRecordSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, OrgGetManagersRecordFilter, OrgGetManagersRecordsOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgGetManagersRecordSelect>;
|
|
69
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List query hook for OrgGetManagersRecord
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useQuery } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildListSelectionArgs } from '../selection';
|
|
9
|
+
import { orgGetManagersRecordKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const orgGetManagersQueryKey = orgGetManagersRecordKeys.list;
|
|
12
|
+
export function useOrgGetManagersQuery(params) {
|
|
13
|
+
const args = buildListSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: orgGetManagersRecordKeys.list(args),
|
|
18
|
+
queryFn: () => getClient().orgGetManagersRecord.findMany(args).unwrap(),
|
|
19
|
+
...queryOptions,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export async function fetchOrgGetManagersQuery(params) {
|
|
23
|
+
const args = buildListSelectionArgs(params.selection);
|
|
24
|
+
return getClient().orgGetManagersRecord.findMany(args).unwrap();
|
|
25
|
+
}
|
|
26
|
+
export async function prefetchOrgGetManagersQuery(queryClient, params) {
|
|
27
|
+
const args = buildListSelectionArgs(params.selection);
|
|
28
|
+
await queryClient.prefetchQuery({
|
|
29
|
+
queryKey: orgGetManagersRecordKeys.list(args),
|
|
30
|
+
queryFn: () => getClient().orgGetManagersRecord.findMany(args).unwrap(),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List query hook for OrgGetSubordinatesRecord
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
+
import type { ListSelectionConfig } from '../selection';
|
|
8
|
+
import type { OrgGetSubordinatesRecordSelect, OrgGetSubordinatesRecordWithRelations, OrgGetSubordinatesRecordFilter, OrgGetSubordinatesRecordsOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { OrgGetSubordinatesRecordSelect, OrgGetSubordinatesRecordWithRelations, OrgGetSubordinatesRecordFilter, OrgGetSubordinatesRecordsOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const orgGetSubordinatesQueryKey: (variables?: object) => readonly ["orggetsubordinatesrecord", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Query hook for fetching OrgGetSubordinatesRecord list
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = useOrgGetSubordinatesQuery({
|
|
19
|
+
* selection: {
|
|
20
|
+
* fields: { id: true, name: true },
|
|
21
|
+
* where: { name: { equalTo: "example" } },
|
|
22
|
+
* orderBy: ['CREATED_AT_DESC'],
|
|
23
|
+
* first: 10,
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function useOrgGetSubordinatesQuery<S extends OrgGetSubordinatesRecordSelect, TData = {
|
|
29
|
+
orgGetSubordinates: ConnectionResult<InferSelectResult<OrgGetSubordinatesRecordWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, OrgGetSubordinatesRecordFilter, OrgGetSubordinatesRecordsOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgGetSubordinatesRecordSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
orgGetSubordinates: ConnectionResult<InferSelectResult<OrgGetSubordinatesRecordWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Fetch OrgGetSubordinatesRecord list without React hooks
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchOrgGetSubordinatesQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchOrgGetSubordinatesQuery<S extends OrgGetSubordinatesRecordSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, OrgGetSubordinatesRecordFilter, OrgGetSubordinatesRecordsOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgGetSubordinatesRecordSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
orgGetSubordinates: ConnectionResult<InferSelectResult<OrgGetSubordinatesRecordWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Prefetch OrgGetSubordinatesRecord list for SSR or cache warming
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchOrgGetSubordinatesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchOrgGetSubordinatesQuery<S extends OrgGetSubordinatesRecordSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, OrgGetSubordinatesRecordFilter, OrgGetSubordinatesRecordsOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgGetSubordinatesRecordSelect>;
|
|
69
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List query hook for OrgGetSubordinatesRecord
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useQuery } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildListSelectionArgs } from '../selection';
|
|
9
|
+
import { orgGetSubordinatesRecordKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const orgGetSubordinatesQueryKey = orgGetSubordinatesRecordKeys.list;
|
|
12
|
+
export function useOrgGetSubordinatesQuery(params) {
|
|
13
|
+
const args = buildListSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: orgGetSubordinatesRecordKeys.list(args),
|
|
18
|
+
queryFn: () => getClient().orgGetSubordinatesRecord.findMany(args).unwrap(),
|
|
19
|
+
...queryOptions,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export async function fetchOrgGetSubordinatesQuery(params) {
|
|
23
|
+
const args = buildListSelectionArgs(params.selection);
|
|
24
|
+
return getClient().orgGetSubordinatesRecord.findMany(args).unwrap();
|
|
25
|
+
}
|
|
26
|
+
export async function prefetchOrgGetSubordinatesQuery(queryClient, params) {
|
|
27
|
+
const args = buildListSelectionArgs(params.selection);
|
|
28
|
+
await queryClient.prefetchQuery({
|
|
29
|
+
queryKey: orgGetSubordinatesRecordKeys.list(args),
|
|
30
|
+
queryFn: () => getClient().orgGetSubordinatesRecord.findMany(args).unwrap(),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom query hook for orgIsManagerOf
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
+
import type { OrgIsManagerOfVariables } from '../../orm/query';
|
|
8
|
+
export type { OrgIsManagerOfVariables } from '../../orm/query';
|
|
9
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
10
|
+
export declare const orgIsManagerOfQueryKey: (variables?: object) => readonly ["orgIsManagerOf", object];
|
|
11
|
+
/**
|
|
12
|
+
* Query hook for orgIsManagerOf
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* const { data, isLoading } = useOrgIsManagerOfQuery({ variables: { managerId, maxDepth, targetEntityId, userId } });
|
|
17
|
+
*
|
|
18
|
+
* if (data?.orgIsManagerOf) {
|
|
19
|
+
* console.log(data.orgIsManagerOf);
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useOrgIsManagerOfQuery<TData = {
|
|
24
|
+
orgIsManagerOf: boolean | null;
|
|
25
|
+
}>(params?: {
|
|
26
|
+
variables?: OrgIsManagerOfVariables;
|
|
27
|
+
} & Omit<UseQueryOptions<{
|
|
28
|
+
orgIsManagerOf: boolean | null;
|
|
29
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
30
|
+
/**
|
|
31
|
+
* Fetch orgIsManagerOf without React hooks
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const data = await fetchOrgIsManagerOfQuery({ variables: { managerId, maxDepth, targetEntityId, userId } });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare function fetchOrgIsManagerOfQuery(params?: {
|
|
39
|
+
variables?: OrgIsManagerOfVariables;
|
|
40
|
+
}): Promise<{
|
|
41
|
+
orgIsManagerOf: boolean | null;
|
|
42
|
+
}>;
|
|
43
|
+
/**
|
|
44
|
+
* Prefetch orgIsManagerOf for SSR or cache warming
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* await prefetchOrgIsManagerOfQuery(queryClient, { variables: { managerId, maxDepth, targetEntityId, userId } });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare function prefetchOrgIsManagerOfQuery(queryClient: QueryClient, params?: {
|
|
52
|
+
variables?: OrgIsManagerOfVariables;
|
|
53
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom query hook for orgIsManagerOf
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useQuery } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { customQueryKeys } from '../query-keys';
|
|
9
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
10
|
+
export const orgIsManagerOfQueryKey = customQueryKeys.orgIsManagerOf;
|
|
11
|
+
export function useOrgIsManagerOfQuery(params) {
|
|
12
|
+
const variables = params?.variables ?? {};
|
|
13
|
+
const { variables: _variables, ...queryOptions } = params ?? {};
|
|
14
|
+
void _variables;
|
|
15
|
+
return useQuery({
|
|
16
|
+
queryKey: orgIsManagerOfQueryKey(variables),
|
|
17
|
+
queryFn: () => getClient().query.orgIsManagerOf(variables).unwrap(),
|
|
18
|
+
...queryOptions,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Fetch orgIsManagerOf without React hooks
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const data = await fetchOrgIsManagerOfQuery({ variables: { managerId, maxDepth, targetEntityId, userId } });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export async function fetchOrgIsManagerOfQuery(params) {
|
|
30
|
+
const variables = params?.variables ?? {};
|
|
31
|
+
return getClient().query.orgIsManagerOf(variables).unwrap();
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Prefetch orgIsManagerOf for SSR or cache warming
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* await prefetchOrgIsManagerOfQuery(queryClient, { variables: { managerId, maxDepth, targetEntityId, userId } });
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export async function prefetchOrgIsManagerOfQuery(queryClient, params) {
|
|
42
|
+
const variables = params?.variables ?? {};
|
|
43
|
+
await queryClient.prefetchQuery({
|
|
44
|
+
queryKey: orgIsManagerOfQueryKey(variables),
|
|
45
|
+
queryFn: () => getClient().query.orgIsManagerOf(variables).unwrap(),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
@@ -94,6 +94,20 @@ export declare const orgAdminGrantKeys: {
|
|
|
94
94
|
/** Detail query keys */ readonly details: () => readonly ["orgadmingrant", "detail"];
|
|
95
95
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["orgadmingrant", "detail", string | number];
|
|
96
96
|
};
|
|
97
|
+
export declare const orgChartEdgeKeys: {
|
|
98
|
+
/** All orgChartEdge queries */ readonly all: readonly ["orgchartedge"];
|
|
99
|
+
/** List query keys */ readonly lists: () => readonly ["orgchartedge", "list"];
|
|
100
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["orgchartedge", "list", object];
|
|
101
|
+
/** Detail query keys */ readonly details: () => readonly ["orgchartedge", "detail"];
|
|
102
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["orgchartedge", "detail", string | number];
|
|
103
|
+
};
|
|
104
|
+
export declare const orgChartEdgeGrantKeys: {
|
|
105
|
+
/** All orgChartEdgeGrant queries */ readonly all: readonly ["orgchartedgegrant"];
|
|
106
|
+
/** List query keys */ readonly lists: () => readonly ["orgchartedgegrant", "list"];
|
|
107
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["orgchartedgegrant", "list", object];
|
|
108
|
+
/** Detail query keys */ readonly details: () => readonly ["orgchartedgegrant", "detail"];
|
|
109
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["orgchartedgegrant", "detail", string | number];
|
|
110
|
+
};
|
|
97
111
|
export declare const orgClaimedInviteKeys: {
|
|
98
112
|
/** All orgClaimedInvite queries */ readonly all: readonly ["orgclaimedinvite"];
|
|
99
113
|
/** List query keys */ readonly lists: () => readonly ["orgclaimedinvite", "list"];
|
|
@@ -101,6 +115,20 @@ export declare const orgClaimedInviteKeys: {
|
|
|
101
115
|
/** Detail query keys */ readonly details: () => readonly ["orgclaimedinvite", "detail"];
|
|
102
116
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["orgclaimedinvite", "detail", string | number];
|
|
103
117
|
};
|
|
118
|
+
export declare const orgGetManagersRecordKeys: {
|
|
119
|
+
/** All orgGetManagersRecord queries */ readonly all: readonly ["orggetmanagersrecord"];
|
|
120
|
+
/** List query keys */ readonly lists: () => readonly ["orggetmanagersrecord", "list"];
|
|
121
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["orggetmanagersrecord", "list", object];
|
|
122
|
+
/** Detail query keys */ readonly details: () => readonly ["orggetmanagersrecord", "detail"];
|
|
123
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["orggetmanagersrecord", "detail", string | number];
|
|
124
|
+
};
|
|
125
|
+
export declare const orgGetSubordinatesRecordKeys: {
|
|
126
|
+
/** All orgGetSubordinatesRecord queries */ readonly all: readonly ["orggetsubordinatesrecord"];
|
|
127
|
+
/** List query keys */ readonly lists: () => readonly ["orggetsubordinatesrecord", "list"];
|
|
128
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["orggetsubordinatesrecord", "list", object];
|
|
129
|
+
/** Detail query keys */ readonly details: () => readonly ["orggetsubordinatesrecord", "detail"];
|
|
130
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["orggetsubordinatesrecord", "detail", string | number];
|
|
131
|
+
};
|
|
104
132
|
export declare const orgGrantKeys: {
|
|
105
133
|
/** All orgGrant queries */ readonly all: readonly ["orggrant"];
|
|
106
134
|
/** List query keys */ readonly lists: () => readonly ["orggrant", "list"];
|
|
@@ -190,6 +218,7 @@ export declare const customQueryKeys: {
|
|
|
190
218
|
/** Query key for appPermissionsGetMask */ readonly appPermissionsGetMask: (variables?: object) => readonly ["appPermissionsGetMask", object];
|
|
191
219
|
/** Query key for appPermissionsGetMaskByNames */ readonly appPermissionsGetMaskByNames: (variables?: object) => readonly ["appPermissionsGetMaskByNames", object];
|
|
192
220
|
/** Query key for appPermissionsGetPaddedMask */ readonly appPermissionsGetPaddedMask: (variables?: object) => readonly ["appPermissionsGetPaddedMask", object];
|
|
221
|
+
/** Query key for orgIsManagerOf */ readonly orgIsManagerOf: (variables?: object) => readonly ["orgIsManagerOf", object];
|
|
193
222
|
/** Query key for orgPermissionsGetByMask */ readonly orgPermissionsGetByMask: (variables?: object) => readonly ["orgPermissionsGetByMask", object];
|
|
194
223
|
/** Query key for orgPermissionsGetMask */ readonly orgPermissionsGetMask: (variables?: object) => readonly ["orgPermissionsGetMask", object];
|
|
195
224
|
/** Query key for orgPermissionsGetMaskByNames */ readonly orgPermissionsGetMaskByNames: (variables?: object) => readonly ["orgPermissionsGetMaskByNames", object];
|
|
@@ -309,6 +338,20 @@ export declare const queryKeys: {
|
|
|
309
338
|
/** Detail query keys */ readonly details: () => readonly ["orgadmingrant", "detail"];
|
|
310
339
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["orgadmingrant", "detail", string | number];
|
|
311
340
|
};
|
|
341
|
+
readonly orgChartEdge: {
|
|
342
|
+
/** All orgChartEdge queries */ readonly all: readonly ["orgchartedge"];
|
|
343
|
+
/** List query keys */ readonly lists: () => readonly ["orgchartedge", "list"];
|
|
344
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["orgchartedge", "list", object];
|
|
345
|
+
/** Detail query keys */ readonly details: () => readonly ["orgchartedge", "detail"];
|
|
346
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["orgchartedge", "detail", string | number];
|
|
347
|
+
};
|
|
348
|
+
readonly orgChartEdgeGrant: {
|
|
349
|
+
/** All orgChartEdgeGrant queries */ readonly all: readonly ["orgchartedgegrant"];
|
|
350
|
+
/** List query keys */ readonly lists: () => readonly ["orgchartedgegrant", "list"];
|
|
351
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["orgchartedgegrant", "list", object];
|
|
352
|
+
/** Detail query keys */ readonly details: () => readonly ["orgchartedgegrant", "detail"];
|
|
353
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["orgchartedgegrant", "detail", string | number];
|
|
354
|
+
};
|
|
312
355
|
readonly orgClaimedInvite: {
|
|
313
356
|
/** All orgClaimedInvite queries */ readonly all: readonly ["orgclaimedinvite"];
|
|
314
357
|
/** List query keys */ readonly lists: () => readonly ["orgclaimedinvite", "list"];
|
|
@@ -316,6 +359,20 @@ export declare const queryKeys: {
|
|
|
316
359
|
/** Detail query keys */ readonly details: () => readonly ["orgclaimedinvite", "detail"];
|
|
317
360
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["orgclaimedinvite", "detail", string | number];
|
|
318
361
|
};
|
|
362
|
+
readonly orgGetManagersRecord: {
|
|
363
|
+
/** All orgGetManagersRecord queries */ readonly all: readonly ["orggetmanagersrecord"];
|
|
364
|
+
/** List query keys */ readonly lists: () => readonly ["orggetmanagersrecord", "list"];
|
|
365
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["orggetmanagersrecord", "list", object];
|
|
366
|
+
/** Detail query keys */ readonly details: () => readonly ["orggetmanagersrecord", "detail"];
|
|
367
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["orggetmanagersrecord", "detail", string | number];
|
|
368
|
+
};
|
|
369
|
+
readonly orgGetSubordinatesRecord: {
|
|
370
|
+
/** All orgGetSubordinatesRecord queries */ readonly all: readonly ["orggetsubordinatesrecord"];
|
|
371
|
+
/** List query keys */ readonly lists: () => readonly ["orggetsubordinatesrecord", "list"];
|
|
372
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["orggetsubordinatesrecord", "list", object];
|
|
373
|
+
/** Detail query keys */ readonly details: () => readonly ["orggetsubordinatesrecord", "detail"];
|
|
374
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["orggetsubordinatesrecord", "detail", string | number];
|
|
375
|
+
};
|
|
319
376
|
readonly orgGrant: {
|
|
320
377
|
/** All orgGrant queries */ readonly all: readonly ["orggrant"];
|
|
321
378
|
/** List query keys */ readonly lists: () => readonly ["orggrant", "list"];
|
|
@@ -405,6 +462,7 @@ export declare const queryKeys: {
|
|
|
405
462
|
/** Query key for appPermissionsGetMask */ readonly appPermissionsGetMask: (variables?: object) => readonly ["appPermissionsGetMask", object];
|
|
406
463
|
/** Query key for appPermissionsGetMaskByNames */ readonly appPermissionsGetMaskByNames: (variables?: object) => readonly ["appPermissionsGetMaskByNames", object];
|
|
407
464
|
/** Query key for appPermissionsGetPaddedMask */ readonly appPermissionsGetPaddedMask: (variables?: object) => readonly ["appPermissionsGetPaddedMask", object];
|
|
465
|
+
/** Query key for orgIsManagerOf */ readonly orgIsManagerOf: (variables?: object) => readonly ["orgIsManagerOf", object];
|
|
408
466
|
/** Query key for orgPermissionsGetByMask */ readonly orgPermissionsGetByMask: (variables?: object) => readonly ["orgPermissionsGetByMask", object];
|
|
409
467
|
/** Query key for orgPermissionsGetMask */ readonly orgPermissionsGetMask: (variables?: object) => readonly ["orgPermissionsGetMask", object];
|
|
410
468
|
/** Query key for orgPermissionsGetMaskByNames */ readonly orgPermissionsGetMaskByNames: (variables?: object) => readonly ["orgPermissionsGetMaskByNames", object];
|
|
@@ -109,6 +109,20 @@ export const orgAdminGrantKeys = {
|
|
|
109
109
|
/** Detail query keys */ details: () => [...orgAdminGrantKeys.all, 'detail'],
|
|
110
110
|
/** Detail query key for specific item */ detail: (id) => [...orgAdminGrantKeys.details(), id],
|
|
111
111
|
};
|
|
112
|
+
export const orgChartEdgeKeys = {
|
|
113
|
+
/** All orgChartEdge queries */ all: ['orgchartedge'],
|
|
114
|
+
/** List query keys */ lists: () => [...orgChartEdgeKeys.all, 'list'],
|
|
115
|
+
/** List query key with variables */ list: (variables) => [...orgChartEdgeKeys.lists(), variables],
|
|
116
|
+
/** Detail query keys */ details: () => [...orgChartEdgeKeys.all, 'detail'],
|
|
117
|
+
/** Detail query key for specific item */ detail: (id) => [...orgChartEdgeKeys.details(), id],
|
|
118
|
+
};
|
|
119
|
+
export const orgChartEdgeGrantKeys = {
|
|
120
|
+
/** All orgChartEdgeGrant queries */ all: ['orgchartedgegrant'],
|
|
121
|
+
/** List query keys */ lists: () => [...orgChartEdgeGrantKeys.all, 'list'],
|
|
122
|
+
/** List query key with variables */ list: (variables) => [...orgChartEdgeGrantKeys.lists(), variables],
|
|
123
|
+
/** Detail query keys */ details: () => [...orgChartEdgeGrantKeys.all, 'detail'],
|
|
124
|
+
/** Detail query key for specific item */ detail: (id) => [...orgChartEdgeGrantKeys.details(), id],
|
|
125
|
+
};
|
|
112
126
|
export const orgClaimedInviteKeys = {
|
|
113
127
|
/** All orgClaimedInvite queries */ all: ['orgclaimedinvite'],
|
|
114
128
|
/** List query keys */ lists: () => [...orgClaimedInviteKeys.all, 'list'],
|
|
@@ -116,6 +130,20 @@ export const orgClaimedInviteKeys = {
|
|
|
116
130
|
/** Detail query keys */ details: () => [...orgClaimedInviteKeys.all, 'detail'],
|
|
117
131
|
/** Detail query key for specific item */ detail: (id) => [...orgClaimedInviteKeys.details(), id],
|
|
118
132
|
};
|
|
133
|
+
export const orgGetManagersRecordKeys = {
|
|
134
|
+
/** All orgGetManagersRecord queries */ all: ['orggetmanagersrecord'],
|
|
135
|
+
/** List query keys */ lists: () => [...orgGetManagersRecordKeys.all, 'list'],
|
|
136
|
+
/** List query key with variables */ list: (variables) => [...orgGetManagersRecordKeys.lists(), variables],
|
|
137
|
+
/** Detail query keys */ details: () => [...orgGetManagersRecordKeys.all, 'detail'],
|
|
138
|
+
/** Detail query key for specific item */ detail: (id) => [...orgGetManagersRecordKeys.details(), id],
|
|
139
|
+
};
|
|
140
|
+
export const orgGetSubordinatesRecordKeys = {
|
|
141
|
+
/** All orgGetSubordinatesRecord queries */ all: ['orggetsubordinatesrecord'],
|
|
142
|
+
/** List query keys */ lists: () => [...orgGetSubordinatesRecordKeys.all, 'list'],
|
|
143
|
+
/** List query key with variables */ list: (variables) => [...orgGetSubordinatesRecordKeys.lists(), variables],
|
|
144
|
+
/** Detail query keys */ details: () => [...orgGetSubordinatesRecordKeys.all, 'detail'],
|
|
145
|
+
/** Detail query key for specific item */ detail: (id) => [...orgGetSubordinatesRecordKeys.details(), id],
|
|
146
|
+
};
|
|
119
147
|
export const orgGrantKeys = {
|
|
120
148
|
/** All orgGrant queries */ all: ['orggrant'],
|
|
121
149
|
/** List query keys */ lists: () => [...orgGrantKeys.all, 'list'],
|
|
@@ -210,6 +238,7 @@ export const customQueryKeys = {
|
|
|
210
238
|
/** Query key for appPermissionsGetMask */ appPermissionsGetMask: (variables) => ['appPermissionsGetMask', variables],
|
|
211
239
|
/** Query key for appPermissionsGetMaskByNames */ appPermissionsGetMaskByNames: (variables) => ['appPermissionsGetMaskByNames', variables],
|
|
212
240
|
/** Query key for appPermissionsGetPaddedMask */ appPermissionsGetPaddedMask: (variables) => ['appPermissionsGetPaddedMask', variables],
|
|
241
|
+
/** Query key for orgIsManagerOf */ orgIsManagerOf: (variables) => ['orgIsManagerOf', variables],
|
|
213
242
|
/** Query key for orgPermissionsGetByMask */ orgPermissionsGetByMask: (variables) => ['orgPermissionsGetByMask', variables],
|
|
214
243
|
/** Query key for orgPermissionsGetMask */ orgPermissionsGetMask: (variables) => ['orgPermissionsGetMask', variables],
|
|
215
244
|
/** Query key for orgPermissionsGetMaskByNames */ orgPermissionsGetMaskByNames: (variables) => ['orgPermissionsGetMaskByNames', variables],
|
|
@@ -251,7 +280,11 @@ export const queryKeys = {
|
|
|
251
280
|
appPermissionDefaultPermission: appPermissionDefaultPermissionKeys,
|
|
252
281
|
membershipType: membershipTypeKeys,
|
|
253
282
|
orgAdminGrant: orgAdminGrantKeys,
|
|
283
|
+
orgChartEdge: orgChartEdgeKeys,
|
|
284
|
+
orgChartEdgeGrant: orgChartEdgeGrantKeys,
|
|
254
285
|
orgClaimedInvite: orgClaimedInviteKeys,
|
|
286
|
+
orgGetManagersRecord: orgGetManagersRecordKeys,
|
|
287
|
+
orgGetSubordinatesRecord: orgGetSubordinatesRecordKeys,
|
|
255
288
|
orgGrant: orgGrantKeys,
|
|
256
289
|
orgInvite: orgInviteKeys,
|
|
257
290
|
orgMember: orgMemberKeys,
|
package/esm/admin/orm/index.d.ts
CHANGED
|
@@ -12,7 +12,11 @@ import { AppPermissionDefaultGrantModel } from './models/appPermissionDefaultGra
|
|
|
12
12
|
import { AppPermissionDefaultPermissionModel } from './models/appPermissionDefaultPermission';
|
|
13
13
|
import { MembershipTypeModel } from './models/membershipType';
|
|
14
14
|
import { OrgAdminGrantModel } from './models/orgAdminGrant';
|
|
15
|
+
import { OrgChartEdgeModel } from './models/orgChartEdge';
|
|
16
|
+
import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant';
|
|
15
17
|
import { OrgClaimedInviteModel } from './models/orgClaimedInvite';
|
|
18
|
+
import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord';
|
|
19
|
+
import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord';
|
|
16
20
|
import { OrgGrantModel } from './models/orgGrant';
|
|
17
21
|
import { OrgInviteModel } from './models/orgInvite';
|
|
18
22
|
import { OrgMemberModel } from './models/orgMember';
|
|
@@ -69,7 +73,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
69
73
|
appPermissionDefaultPermission: AppPermissionDefaultPermissionModel;
|
|
70
74
|
membershipType: MembershipTypeModel;
|
|
71
75
|
orgAdminGrant: OrgAdminGrantModel;
|
|
76
|
+
orgChartEdge: OrgChartEdgeModel;
|
|
77
|
+
orgChartEdgeGrant: OrgChartEdgeGrantModel;
|
|
72
78
|
orgClaimedInvite: OrgClaimedInviteModel;
|
|
79
|
+
orgGetManagersRecord: OrgGetManagersRecordModel;
|
|
80
|
+
orgGetSubordinatesRecord: OrgGetSubordinatesRecordModel;
|
|
73
81
|
orgGrant: OrgGrantModel;
|
|
74
82
|
orgInvite: OrgInviteModel;
|
|
75
83
|
orgMember: OrgMemberModel;
|
|
@@ -103,6 +111,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
103
111
|
}) => import("./query-builder").QueryBuilder<{
|
|
104
112
|
appPermissionsGetPaddedMask: string | null;
|
|
105
113
|
}>;
|
|
114
|
+
orgIsManagerOf: (args: import("./query").OrgIsManagerOfVariables, options?: {
|
|
115
|
+
select?: Record<string, unknown>;
|
|
116
|
+
}) => import("./query-builder").QueryBuilder<{
|
|
117
|
+
orgIsManagerOf: boolean | null;
|
|
118
|
+
}>;
|
|
106
119
|
orgPermissionsGetByMask: (args: import("./query").OrgPermissionsGetByMaskVariables, options?: {
|
|
107
120
|
select?: Record<string, unknown>;
|
|
108
121
|
}) => import("./query-builder").QueryBuilder<{
|
package/esm/admin/orm/index.js
CHANGED
|
@@ -17,7 +17,11 @@ import { AppPermissionDefaultGrantModel } from './models/appPermissionDefaultGra
|
|
|
17
17
|
import { AppPermissionDefaultPermissionModel } from './models/appPermissionDefaultPermission';
|
|
18
18
|
import { MembershipTypeModel } from './models/membershipType';
|
|
19
19
|
import { OrgAdminGrantModel } from './models/orgAdminGrant';
|
|
20
|
+
import { OrgChartEdgeModel } from './models/orgChartEdge';
|
|
21
|
+
import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant';
|
|
20
22
|
import { OrgClaimedInviteModel } from './models/orgClaimedInvite';
|
|
23
|
+
import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord';
|
|
24
|
+
import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord';
|
|
21
25
|
import { OrgGrantModel } from './models/orgGrant';
|
|
22
26
|
import { OrgInviteModel } from './models/orgInvite';
|
|
23
27
|
import { OrgMemberModel } from './models/orgMember';
|
|
@@ -77,7 +81,11 @@ export function createClient(config) {
|
|
|
77
81
|
appPermissionDefaultPermission: new AppPermissionDefaultPermissionModel(client),
|
|
78
82
|
membershipType: new MembershipTypeModel(client),
|
|
79
83
|
orgAdminGrant: new OrgAdminGrantModel(client),
|
|
84
|
+
orgChartEdge: new OrgChartEdgeModel(client),
|
|
85
|
+
orgChartEdgeGrant: new OrgChartEdgeGrantModel(client),
|
|
80
86
|
orgClaimedInvite: new OrgClaimedInviteModel(client),
|
|
87
|
+
orgGetManagersRecord: new OrgGetManagersRecordModel(client),
|
|
88
|
+
orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client),
|
|
81
89
|
orgGrant: new OrgGrantModel(client),
|
|
82
90
|
orgInvite: new OrgInviteModel(client),
|
|
83
91
|
orgMember: new OrgMemberModel(client),
|