@constructive-io/react 0.10.3 → 0.10.5
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/esm/public/hooks/index.d.ts +1 -1
- package/esm/public/hooks/index.js +1 -1
- package/esm/public/hooks/invalidation.d.ts +11 -11
- package/esm/public/hooks/invalidation.js +26 -26
- package/esm/public/hooks/mutation-keys.d.ts +22 -22
- package/esm/public/hooks/mutation-keys.js +13 -13
- package/esm/public/hooks/mutations/index.d.ts +2 -4
- package/esm/public/hooks/mutations/index.js +2 -4
- package/esm/public/hooks/mutations/useCreateMigrateFileMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/{useCreateFieldModuleMutation.js → useCreateMigrateFileMutation.js} +7 -7
- package/esm/public/hooks/mutations/useCreateSqlActionMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/{useCreateSqlMigrationMutation.js → useCreateSqlActionMutation.js} +7 -7
- package/esm/public/hooks/queries/index.d.ts +4 -4
- package/esm/public/hooks/queries/index.js +4 -4
- package/esm/public/hooks/queries/useMigrateFileQuery.d.ts +65 -0
- package/esm/public/hooks/queries/{useFieldModuleQuery.js → useMigrateFileQuery.js} +11 -11
- package/esm/public/hooks/queries/useMigrateFilesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/{useFieldModulesQuery.js → useMigrateFilesQuery.js} +11 -11
- package/esm/public/hooks/queries/useSqlActionQuery.d.ts +65 -0
- package/esm/public/hooks/queries/{useSqlMigrationQuery.js → useSqlActionQuery.js} +11 -11
- package/esm/public/hooks/queries/useSqlActionsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/{useSqlMigrationsQuery.js → useSqlActionsQuery.js} +11 -11
- package/esm/public/hooks/query-keys.d.ts +26 -26
- package/esm/public/hooks/query-keys.js +15 -15
- package/esm/public/orm/index.d.ts +4 -4
- package/esm/public/orm/index.js +4 -4
- package/esm/public/orm/input-types.d.ts +118 -247
- package/esm/public/orm/input-types.js +0 -1
- package/esm/public/orm/models/index.d.ts +2 -2
- package/esm/public/orm/models/index.js +2 -2
- package/esm/public/orm/models/migrateFile.d.ts +38 -0
- package/esm/public/orm/models/migrateFile.js +72 -0
- package/esm/public/orm/models/sqlAction.d.ts +38 -0
- package/esm/public/orm/models/{sqlMigration.js → sqlAction.js} +17 -17
- package/esm/public/schema-types.d.ts +112 -150
- package/esm/public/types.d.ts +7 -12
- package/package.json +3 -3
- package/public/hooks/index.d.ts +1 -1
- package/public/hooks/index.js +1 -1
- package/public/hooks/invalidation.d.ts +11 -11
- package/public/hooks/invalidation.js +25 -25
- package/public/hooks/mutation-keys.d.ts +22 -22
- package/public/hooks/mutation-keys.js +16 -16
- package/public/hooks/mutations/index.d.ts +2 -4
- package/public/hooks/mutations/index.js +2 -4
- package/public/hooks/mutations/useCreateMigrateFileMutation.d.ts +34 -0
- package/public/hooks/mutations/{useCreateFieldModuleMutation.js → useCreateMigrateFileMutation.js} +6 -6
- package/public/hooks/mutations/useCreateSqlActionMutation.d.ts +34 -0
- package/public/hooks/mutations/{useCreateSqlMigrationMutation.js → useCreateSqlActionMutation.js} +6 -6
- package/public/hooks/queries/index.d.ts +4 -4
- package/public/hooks/queries/index.js +4 -4
- package/public/hooks/queries/useMigrateFileQuery.d.ts +65 -0
- package/public/hooks/queries/{useFieldModuleQuery.js → useMigrateFileQuery.js} +14 -14
- package/public/hooks/queries/useMigrateFilesQuery.d.ts +69 -0
- package/public/hooks/queries/{useFieldModulesQuery.js → useMigrateFilesQuery.js} +14 -14
- package/public/hooks/queries/useSqlActionQuery.d.ts +65 -0
- package/public/hooks/queries/{useSqlMigrationQuery.js → useSqlActionQuery.js} +14 -14
- package/public/hooks/queries/useSqlActionsQuery.d.ts +69 -0
- package/public/hooks/queries/{useSqlMigrationsQuery.js → useSqlActionsQuery.js} +14 -14
- package/public/hooks/query-keys.d.ts +26 -26
- package/public/hooks/query-keys.js +18 -18
- package/public/orm/index.d.ts +4 -4
- package/public/orm/index.js +4 -4
- package/public/orm/input-types.d.ts +118 -247
- package/public/orm/input-types.js +0 -1
- package/public/orm/models/index.d.ts +2 -2
- package/public/orm/models/index.js +7 -7
- package/public/orm/models/migrateFile.d.ts +38 -0
- package/public/orm/models/{sqlMigration.js → migrateFile.js} +19 -19
- package/public/orm/models/sqlAction.d.ts +38 -0
- package/public/orm/models/sqlAction.js +76 -0
- package/public/schema-types.d.ts +112 -150
- package/public/types.d.ts +7 -12
- package/esm/public/hooks/mutations/useCreateFieldModuleMutation.d.ts +0 -34
- package/esm/public/hooks/mutations/useCreateSqlMigrationMutation.d.ts +0 -34
- package/esm/public/hooks/mutations/useDeleteFieldModuleMutation.d.ts +0 -38
- package/esm/public/hooks/mutations/useDeleteFieldModuleMutation.js +0 -36
- package/esm/public/hooks/mutations/useUpdateFieldModuleMutation.d.ts +0 -40
- package/esm/public/hooks/mutations/useUpdateFieldModuleMutation.js +0 -37
- package/esm/public/hooks/queries/useFieldModuleQuery.d.ts +0 -65
- package/esm/public/hooks/queries/useFieldModulesQuery.d.ts +0 -69
- package/esm/public/hooks/queries/useSqlMigrationQuery.d.ts +0 -65
- package/esm/public/hooks/queries/useSqlMigrationsQuery.d.ts +0 -69
- package/esm/public/orm/models/fieldModule.d.ts +0 -56
- package/esm/public/orm/models/fieldModule.js +0 -96
- package/esm/public/orm/models/sqlMigration.d.ts +0 -38
- package/public/hooks/mutations/useCreateFieldModuleMutation.d.ts +0 -34
- package/public/hooks/mutations/useCreateSqlMigrationMutation.d.ts +0 -34
- package/public/hooks/mutations/useDeleteFieldModuleMutation.d.ts +0 -38
- package/public/hooks/mutations/useDeleteFieldModuleMutation.js +0 -39
- package/public/hooks/mutations/useUpdateFieldModuleMutation.d.ts +0 -40
- package/public/hooks/mutations/useUpdateFieldModuleMutation.js +0 -40
- package/public/hooks/queries/useFieldModuleQuery.d.ts +0 -65
- package/public/hooks/queries/useFieldModulesQuery.d.ts +0 -69
- package/public/hooks/queries/useSqlMigrationQuery.d.ts +0 -65
- package/public/hooks/queries/useSqlMigrationsQuery.d.ts +0 -69
- package/public/orm/models/fieldModule.d.ts +0 -56
- package/public/orm/models/fieldModule.js +0 -100
- package/public/orm/models/sqlMigration.d.ts +0 -38
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Single item query hook for
|
|
3
|
+
* Single item query hook for MigrateFile
|
|
4
4
|
* @generated by @constructive-io/graphql-codegen
|
|
5
5
|
* DO NOT EDIT - changes will be overwritten
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
8
|
+
exports.migrateFileQueryKey = void 0;
|
|
9
|
+
exports.useMigrateFileQuery = useMigrateFileQuery;
|
|
10
|
+
exports.fetchMigrateFileQuery = fetchMigrateFileQuery;
|
|
11
|
+
exports.prefetchMigrateFileQuery = prefetchMigrateFileQuery;
|
|
12
12
|
const react_query_1 = require("@tanstack/react-query");
|
|
13
13
|
const client_1 = require("../client");
|
|
14
14
|
const selection_1 = require("../selection");
|
|
15
15
|
const query_keys_1 = require("../query-keys");
|
|
16
16
|
/** Query key factory - re-exported from query-keys.ts */
|
|
17
|
-
exports.
|
|
18
|
-
function
|
|
17
|
+
exports.migrateFileQueryKey = query_keys_1.migrateFileKeys.detail;
|
|
18
|
+
function useMigrateFileQuery(params) {
|
|
19
19
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
20
20
|
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
21
21
|
void _selection;
|
|
22
22
|
return (0, react_query_1.useQuery)({
|
|
23
|
-
queryKey: query_keys_1.
|
|
23
|
+
queryKey: query_keys_1.migrateFileKeys.detail(params.id),
|
|
24
24
|
queryFn: () => (0, client_1.getClient)()
|
|
25
|
-
.
|
|
25
|
+
.migrateFile.findOne({
|
|
26
26
|
id: params.id,
|
|
27
27
|
select: args.select,
|
|
28
28
|
})
|
|
@@ -30,21 +30,21 @@ function useFieldModuleQuery(params) {
|
|
|
30
30
|
...queryOptions,
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
async function
|
|
33
|
+
async function fetchMigrateFileQuery(params) {
|
|
34
34
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
35
35
|
return (0, client_1.getClient)()
|
|
36
|
-
.
|
|
36
|
+
.migrateFile.findOne({
|
|
37
37
|
id: params.id,
|
|
38
38
|
select: args.select,
|
|
39
39
|
})
|
|
40
40
|
.unwrap();
|
|
41
41
|
}
|
|
42
|
-
async function
|
|
42
|
+
async function prefetchMigrateFileQuery(queryClient, params) {
|
|
43
43
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
44
44
|
await queryClient.prefetchQuery({
|
|
45
|
-
queryKey: query_keys_1.
|
|
45
|
+
queryKey: query_keys_1.migrateFileKeys.detail(params.id),
|
|
46
46
|
queryFn: () => (0, client_1.getClient)()
|
|
47
|
-
.
|
|
47
|
+
.migrateFile.findOne({
|
|
48
48
|
id: params.id,
|
|
49
49
|
select: args.select,
|
|
50
50
|
})
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List query hook for MigrateFile
|
|
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 { MigrateFileSelect, MigrateFileWithRelations, MigrateFileFilter, MigrateFileOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { MigrateFileSelect, MigrateFileWithRelations, MigrateFileFilter, MigrateFileOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const migrateFilesQueryKey: (variables?: object) => readonly ["migratefile", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Query hook for fetching MigrateFile list
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = useMigrateFilesQuery({
|
|
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 useMigrateFilesQuery<S extends MigrateFileSelect, TData = {
|
|
29
|
+
migrateFiles: ConnectionResult<InferSelectResult<MigrateFileWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, MigrateFileFilter, MigrateFileOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, MigrateFileSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
migrateFiles: ConnectionResult<InferSelectResult<MigrateFileWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Fetch MigrateFile list without React hooks
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchMigrateFilesQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchMigrateFilesQuery<S extends MigrateFileSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, MigrateFileFilter, MigrateFileOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, MigrateFileSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
migrateFiles: ConnectionResult<InferSelectResult<MigrateFileWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Prefetch MigrateFile list for SSR or cache warming
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchMigrateFilesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchMigrateFilesQuery<S extends MigrateFileSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, MigrateFileFilter, MigrateFileOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, MigrateFileSelect>;
|
|
69
|
+
}): Promise<void>;
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* List query hook for
|
|
3
|
+
* List query hook for MigrateFile
|
|
4
4
|
* @generated by @constructive-io/graphql-codegen
|
|
5
5
|
* DO NOT EDIT - changes will be overwritten
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
8
|
+
exports.migrateFilesQueryKey = void 0;
|
|
9
|
+
exports.useMigrateFilesQuery = useMigrateFilesQuery;
|
|
10
|
+
exports.fetchMigrateFilesQuery = fetchMigrateFilesQuery;
|
|
11
|
+
exports.prefetchMigrateFilesQuery = prefetchMigrateFilesQuery;
|
|
12
12
|
const react_query_1 = require("@tanstack/react-query");
|
|
13
13
|
const client_1 = require("../client");
|
|
14
14
|
const selection_1 = require("../selection");
|
|
15
15
|
const query_keys_1 = require("../query-keys");
|
|
16
16
|
/** Query key factory - re-exported from query-keys.ts */
|
|
17
|
-
exports.
|
|
18
|
-
function
|
|
17
|
+
exports.migrateFilesQueryKey = query_keys_1.migrateFileKeys.list;
|
|
18
|
+
function useMigrateFilesQuery(params) {
|
|
19
19
|
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
20
20
|
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
21
21
|
void _selection;
|
|
22
22
|
return (0, react_query_1.useQuery)({
|
|
23
|
-
queryKey: query_keys_1.
|
|
24
|
-
queryFn: () => (0, client_1.getClient)().
|
|
23
|
+
queryKey: query_keys_1.migrateFileKeys.list(args),
|
|
24
|
+
queryFn: () => (0, client_1.getClient)().migrateFile.findMany(args).unwrap(),
|
|
25
25
|
...queryOptions,
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
async function
|
|
28
|
+
async function fetchMigrateFilesQuery(params) {
|
|
29
29
|
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
30
|
-
return (0, client_1.getClient)().
|
|
30
|
+
return (0, client_1.getClient)().migrateFile.findMany(args).unwrap();
|
|
31
31
|
}
|
|
32
|
-
async function
|
|
32
|
+
async function prefetchMigrateFilesQuery(queryClient, params) {
|
|
33
33
|
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
34
34
|
await queryClient.prefetchQuery({
|
|
35
|
-
queryKey: query_keys_1.
|
|
36
|
-
queryFn: () => (0, client_1.getClient)().
|
|
35
|
+
queryKey: query_keys_1.migrateFileKeys.list(args),
|
|
36
|
+
queryFn: () => (0, client_1.getClient)().migrateFile.findMany(args).unwrap(),
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single item query hook for SqlAction
|
|
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 { SqlActionSelect, SqlActionWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { SqlActionSelect, SqlActionWithRelations } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const sqlActionQueryKey: (id: string | number) => readonly ["sqlaction", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* Query hook for fetching a single SqlAction
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useSqlActionQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useSqlActionQuery<S extends SqlActionSelect, TData = {
|
|
24
|
+
sqlAction: InferSelectResult<SqlActionWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: number;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, SqlActionSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
sqlAction: InferSelectResult<SqlActionWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* Fetch a single SqlAction without React hooks
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchSqlActionQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchSqlActionQuery<S extends SqlActionSelect>(params: {
|
|
45
|
+
id: number;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, SqlActionSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
sqlAction: InferSelectResult<SqlActionWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Prefetch a single SqlAction for SSR or cache warming
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchSqlActionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchSqlActionQuery<S extends SqlActionSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: number;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, SqlActionSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Single item query hook for
|
|
3
|
+
* Single item query hook for SqlAction
|
|
4
4
|
* @generated by @constructive-io/graphql-codegen
|
|
5
5
|
* DO NOT EDIT - changes will be overwritten
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
8
|
+
exports.sqlActionQueryKey = void 0;
|
|
9
|
+
exports.useSqlActionQuery = useSqlActionQuery;
|
|
10
|
+
exports.fetchSqlActionQuery = fetchSqlActionQuery;
|
|
11
|
+
exports.prefetchSqlActionQuery = prefetchSqlActionQuery;
|
|
12
12
|
const react_query_1 = require("@tanstack/react-query");
|
|
13
13
|
const client_1 = require("../client");
|
|
14
14
|
const selection_1 = require("../selection");
|
|
15
15
|
const query_keys_1 = require("../query-keys");
|
|
16
16
|
/** Query key factory - re-exported from query-keys.ts */
|
|
17
|
-
exports.
|
|
18
|
-
function
|
|
17
|
+
exports.sqlActionQueryKey = query_keys_1.sqlActionKeys.detail;
|
|
18
|
+
function useSqlActionQuery(params) {
|
|
19
19
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
20
20
|
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
21
21
|
void _selection;
|
|
22
22
|
return (0, react_query_1.useQuery)({
|
|
23
|
-
queryKey: query_keys_1.
|
|
23
|
+
queryKey: query_keys_1.sqlActionKeys.detail(params.id),
|
|
24
24
|
queryFn: () => (0, client_1.getClient)()
|
|
25
|
-
.
|
|
25
|
+
.sqlAction.findOne({
|
|
26
26
|
id: params.id,
|
|
27
27
|
select: args.select,
|
|
28
28
|
})
|
|
@@ -30,21 +30,21 @@ function useSqlMigrationQuery(params) {
|
|
|
30
30
|
...queryOptions,
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
async function
|
|
33
|
+
async function fetchSqlActionQuery(params) {
|
|
34
34
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
35
35
|
return (0, client_1.getClient)()
|
|
36
|
-
.
|
|
36
|
+
.sqlAction.findOne({
|
|
37
37
|
id: params.id,
|
|
38
38
|
select: args.select,
|
|
39
39
|
})
|
|
40
40
|
.unwrap();
|
|
41
41
|
}
|
|
42
|
-
async function
|
|
42
|
+
async function prefetchSqlActionQuery(queryClient, params) {
|
|
43
43
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
44
44
|
await queryClient.prefetchQuery({
|
|
45
|
-
queryKey: query_keys_1.
|
|
45
|
+
queryKey: query_keys_1.sqlActionKeys.detail(params.id),
|
|
46
46
|
queryFn: () => (0, client_1.getClient)()
|
|
47
|
-
.
|
|
47
|
+
.sqlAction.findOne({
|
|
48
48
|
id: params.id,
|
|
49
49
|
select: args.select,
|
|
50
50
|
})
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List query hook for SqlAction
|
|
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 { SqlActionSelect, SqlActionWithRelations, SqlActionFilter, SqlActionOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { SqlActionSelect, SqlActionWithRelations, SqlActionFilter, SqlActionOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const sqlActionsQueryKey: (variables?: object) => readonly ["sqlaction", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Query hook for fetching SqlAction list
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = useSqlActionsQuery({
|
|
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 useSqlActionsQuery<S extends SqlActionSelect, TData = {
|
|
29
|
+
sqlActions: ConnectionResult<InferSelectResult<SqlActionWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, SqlActionFilter, SqlActionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, SqlActionSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
sqlActions: ConnectionResult<InferSelectResult<SqlActionWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Fetch SqlAction list without React hooks
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchSqlActionsQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchSqlActionsQuery<S extends SqlActionSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, SqlActionFilter, SqlActionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, SqlActionSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
sqlActions: ConnectionResult<InferSelectResult<SqlActionWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Prefetch SqlAction list for SSR or cache warming
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchSqlActionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchSqlActionsQuery<S extends SqlActionSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, SqlActionFilter, SqlActionOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, SqlActionSelect>;
|
|
69
|
+
}): Promise<void>;
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* List query hook for
|
|
3
|
+
* List query hook for SqlAction
|
|
4
4
|
* @generated by @constructive-io/graphql-codegen
|
|
5
5
|
* DO NOT EDIT - changes will be overwritten
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
8
|
+
exports.sqlActionsQueryKey = void 0;
|
|
9
|
+
exports.useSqlActionsQuery = useSqlActionsQuery;
|
|
10
|
+
exports.fetchSqlActionsQuery = fetchSqlActionsQuery;
|
|
11
|
+
exports.prefetchSqlActionsQuery = prefetchSqlActionsQuery;
|
|
12
12
|
const react_query_1 = require("@tanstack/react-query");
|
|
13
13
|
const client_1 = require("../client");
|
|
14
14
|
const selection_1 = require("../selection");
|
|
15
15
|
const query_keys_1 = require("../query-keys");
|
|
16
16
|
/** Query key factory - re-exported from query-keys.ts */
|
|
17
|
-
exports.
|
|
18
|
-
function
|
|
17
|
+
exports.sqlActionsQueryKey = query_keys_1.sqlActionKeys.list;
|
|
18
|
+
function useSqlActionsQuery(params) {
|
|
19
19
|
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
20
20
|
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
21
21
|
void _selection;
|
|
22
22
|
return (0, react_query_1.useQuery)({
|
|
23
|
-
queryKey: query_keys_1.
|
|
24
|
-
queryFn: () => (0, client_1.getClient)().
|
|
23
|
+
queryKey: query_keys_1.sqlActionKeys.list(args),
|
|
24
|
+
queryFn: () => (0, client_1.getClient)().sqlAction.findMany(args).unwrap(),
|
|
25
25
|
...queryOptions,
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
async function
|
|
28
|
+
async function fetchSqlActionsQuery(params) {
|
|
29
29
|
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
30
|
-
return (0, client_1.getClient)().
|
|
30
|
+
return (0, client_1.getClient)().sqlAction.findMany(args).unwrap();
|
|
31
31
|
}
|
|
32
|
-
async function
|
|
32
|
+
async function prefetchSqlActionsQuery(queryClient, params) {
|
|
33
33
|
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
34
34
|
await queryClient.prefetchQuery({
|
|
35
|
-
queryKey: query_keys_1.
|
|
36
|
-
queryFn: () => (0, client_1.getClient)().
|
|
35
|
+
queryKey: query_keys_1.sqlActionKeys.list(args),
|
|
36
|
+
queryFn: () => (0, client_1.getClient)().sqlAction.findMany(args).unwrap(),
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -346,13 +346,6 @@ export declare const encryptedSecretsModuleKeys: {
|
|
|
346
346
|
/** Detail query keys */ readonly details: () => readonly ["encryptedsecretsmodule", "detail"];
|
|
347
347
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["encryptedsecretsmodule", "detail", string | number];
|
|
348
348
|
};
|
|
349
|
-
export declare const fieldModuleKeys: {
|
|
350
|
-
/** All fieldModule queries */ readonly all: readonly ["fieldmodule"];
|
|
351
|
-
/** List query keys */ readonly lists: () => readonly ["fieldmodule", "list"];
|
|
352
|
-
/** List query key with variables */ readonly list: (variables?: object) => readonly ["fieldmodule", "list", object];
|
|
353
|
-
/** Detail query keys */ readonly details: () => readonly ["fieldmodule", "detail"];
|
|
354
|
-
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["fieldmodule", "detail", string | number];
|
|
355
|
-
};
|
|
356
349
|
export declare const invitesModuleKeys: {
|
|
357
350
|
/** All invitesModule queries */ readonly all: readonly ["invitesmodule"];
|
|
358
351
|
/** List query keys */ readonly lists: () => readonly ["invitesmodule", "list"];
|
|
@@ -661,6 +654,13 @@ export declare const roleTypeKeys: {
|
|
|
661
654
|
/** Detail query keys */ readonly details: () => readonly ["roletype", "detail"];
|
|
662
655
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["roletype", "detail", string | number];
|
|
663
656
|
};
|
|
657
|
+
export declare const migrateFileKeys: {
|
|
658
|
+
/** All migrateFile queries */ readonly all: readonly ["migratefile"];
|
|
659
|
+
/** List query keys */ readonly lists: () => readonly ["migratefile", "list"];
|
|
660
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["migratefile", "list", object];
|
|
661
|
+
/** Detail query keys */ readonly details: () => readonly ["migratefile", "detail"];
|
|
662
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["migratefile", "detail", string | number];
|
|
663
|
+
};
|
|
664
664
|
export declare const appLimitDefaultKeys: {
|
|
665
665
|
/** All appLimitDefault queries */ readonly all: readonly ["applimitdefault"];
|
|
666
666
|
/** List query keys */ readonly lists: () => readonly ["applimitdefault", "list"];
|
|
@@ -717,12 +717,12 @@ export declare const orgMembershipDefaultKeys: {
|
|
|
717
717
|
/** Detail query keys */ readonly details: () => readonly ["orgmembershipdefault", "detail"];
|
|
718
718
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["orgmembershipdefault", "detail", string | number];
|
|
719
719
|
};
|
|
720
|
-
export declare const
|
|
721
|
-
/** All
|
|
722
|
-
/** List query keys */ readonly lists: () => readonly ["
|
|
723
|
-
/** List query key with variables */ readonly list: (variables?: object) => readonly ["
|
|
724
|
-
/** Detail query keys */ readonly details: () => readonly ["
|
|
725
|
-
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["
|
|
720
|
+
export declare const sqlActionKeys: {
|
|
721
|
+
/** All sqlAction queries */ readonly all: readonly ["sqlaction"];
|
|
722
|
+
/** List query keys */ readonly lists: () => readonly ["sqlaction", "list"];
|
|
723
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["sqlaction", "list", object];
|
|
724
|
+
/** Detail query keys */ readonly details: () => readonly ["sqlaction", "detail"];
|
|
725
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["sqlaction", "detail", string | number];
|
|
726
726
|
};
|
|
727
727
|
export declare const userKeys: {
|
|
728
728
|
/** All user queries */ readonly all: readonly ["user"];
|
|
@@ -1139,13 +1139,6 @@ export declare const queryKeys: {
|
|
|
1139
1139
|
/** Detail query keys */ readonly details: () => readonly ["encryptedsecretsmodule", "detail"];
|
|
1140
1140
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["encryptedsecretsmodule", "detail", string | number];
|
|
1141
1141
|
};
|
|
1142
|
-
readonly fieldModule: {
|
|
1143
|
-
/** All fieldModule queries */ readonly all: readonly ["fieldmodule"];
|
|
1144
|
-
/** List query keys */ readonly lists: () => readonly ["fieldmodule", "list"];
|
|
1145
|
-
/** List query key with variables */ readonly list: (variables?: object) => readonly ["fieldmodule", "list", object];
|
|
1146
|
-
/** Detail query keys */ readonly details: () => readonly ["fieldmodule", "detail"];
|
|
1147
|
-
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["fieldmodule", "detail", string | number];
|
|
1148
|
-
};
|
|
1149
1142
|
readonly invitesModule: {
|
|
1150
1143
|
/** All invitesModule queries */ readonly all: readonly ["invitesmodule"];
|
|
1151
1144
|
/** List query keys */ readonly lists: () => readonly ["invitesmodule", "list"];
|
|
@@ -1454,6 +1447,13 @@ export declare const queryKeys: {
|
|
|
1454
1447
|
/** Detail query keys */ readonly details: () => readonly ["roletype", "detail"];
|
|
1455
1448
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["roletype", "detail", string | number];
|
|
1456
1449
|
};
|
|
1450
|
+
readonly migrateFile: {
|
|
1451
|
+
/** All migrateFile queries */ readonly all: readonly ["migratefile"];
|
|
1452
|
+
/** List query keys */ readonly lists: () => readonly ["migratefile", "list"];
|
|
1453
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["migratefile", "list", object];
|
|
1454
|
+
/** Detail query keys */ readonly details: () => readonly ["migratefile", "detail"];
|
|
1455
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["migratefile", "detail", string | number];
|
|
1456
|
+
};
|
|
1457
1457
|
readonly appLimitDefault: {
|
|
1458
1458
|
/** All appLimitDefault queries */ readonly all: readonly ["applimitdefault"];
|
|
1459
1459
|
/** List query keys */ readonly lists: () => readonly ["applimitdefault", "list"];
|
|
@@ -1510,12 +1510,12 @@ export declare const queryKeys: {
|
|
|
1510
1510
|
/** Detail query keys */ readonly details: () => readonly ["orgmembershipdefault", "detail"];
|
|
1511
1511
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["orgmembershipdefault", "detail", string | number];
|
|
1512
1512
|
};
|
|
1513
|
-
readonly
|
|
1514
|
-
/** All
|
|
1515
|
-
/** List query keys */ readonly lists: () => readonly ["
|
|
1516
|
-
/** List query key with variables */ readonly list: (variables?: object) => readonly ["
|
|
1517
|
-
/** Detail query keys */ readonly details: () => readonly ["
|
|
1518
|
-
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["
|
|
1513
|
+
readonly sqlAction: {
|
|
1514
|
+
/** All sqlAction queries */ readonly all: readonly ["sqlaction"];
|
|
1515
|
+
/** List query keys */ readonly lists: () => readonly ["sqlaction", "list"];
|
|
1516
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["sqlaction", "list", object];
|
|
1517
|
+
/** Detail query keys */ readonly details: () => readonly ["sqlaction", "detail"];
|
|
1518
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["sqlaction", "detail", string | number];
|
|
1519
1519
|
};
|
|
1520
1520
|
readonly user: {
|
|
1521
1521
|
/** All user queries */ readonly all: readonly ["user"];
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* DO NOT EDIT - changes will be overwritten
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.appMembershipDefaultKeys = exports.commitKeys = exports.membershipTypeKeys = exports.nodeTypeRegistryKeys = exports.orgLimitDefaultKeys = exports.appLimitDefaultKeys = exports.roleTypeKeys = exports.appPermissionDefaultKeys = exports.storeKeys = exports.refKeys = exports.auditLogKeys = exports.orgClaimedInviteKeys = exports.orgInviteKeys = exports.claimedInviteKeys = exports.inviteKeys = exports.connectedAccountKeys = exports.cryptoAddressKeys = exports.phoneNumberKeys = exports.emailKeys = exports.appLevelKeys = exports.appAchievementKeys = exports.appStepKeys = exports.orgLimitKeys = exports.appLimitKeys = exports.orgPermissionDefaultKeys = exports.orgChartEdgeGrantKeys = exports.orgChartEdgeKeys = exports.orgGrantKeys = exports.orgOwnerGrantKeys = exports.orgAdminGrantKeys = exports.orgMemberKeys = exports.orgMembershipKeys = exports.appGrantKeys = exports.appOwnerGrantKeys = exports.appAdminGrantKeys = exports.databaseProvisionModuleKeys = exports.blueprintTemplateKeys = exports.blueprintKeys = exports.usersModuleKeys = exports.userAuthModuleKeys = exports.sessionsModuleKeys = exports.secretsModuleKeys = exports.profilesModuleKeys = exports.phoneNumbersModuleKeys = exports.permissionsModuleKeys = exports.membershipsModuleKeys = exports.membershipTypesModuleKeys = exports.limitsModuleKeys = exports.levelsModuleKeys =
|
|
10
|
-
exports.queryKeys = exports.customQueryKeys = exports.hierarchyModuleKeys = exports.appMembershipKeys = exports.astMigrationKeys = exports.userKeys = exports.
|
|
8
|
+
exports.invitesModuleKeys = exports.encryptedSecretsModuleKeys = exports.emailsModuleKeys = exports.denormalizedTableFieldKeys = exports.defaultIdsModuleKeys = exports.cryptoAuthModuleKeys = exports.cryptoAddressesModuleKeys = exports.connectedAccountsModuleKeys = exports.appKeys = exports.siteKeys = exports.apiKeys = exports.databaseTransferKeys = exports.triggerFunctionKeys = exports.siteThemeKeys = exports.siteModuleKeys = exports.siteMetadatumKeys = exports.domainKeys = exports.apiModuleKeys = exports.apiSchemaKeys = exports.enumKeys = exports.defaultPrivilegeKeys = exports.schemaGrantKeys = exports.relationProvisionKeys = exports.secureTableProvisionKeys = exports.tableTemplateModuleKeys = exports.embeddingChunkKeys = exports.viewRuleKeys = exports.viewGrantKeys = exports.viewTableKeys = exports.viewKeys = exports.uniqueConstraintKeys = exports.triggerKeys = exports.tableGrantKeys = exports.primaryKeyConstraintKeys = exports.policyKeys = exports.indexKeys = exports.fullTextSearchKeys = exports.foreignKeyConstraintKeys = exports.fieldKeys = exports.checkConstraintKeys = exports.tableKeys = exports.schemaKeys = exports.databaseKeys = exports.appLevelRequirementKeys = exports.orgPermissionKeys = exports.appPermissionKeys = exports.objectKeys = exports.orgGetSubordinatesRecordKeys = exports.orgGetManagersRecordKeys = exports.getAllRecordKeys = void 0;
|
|
9
|
+
exports.appMembershipDefaultKeys = exports.commitKeys = exports.membershipTypeKeys = exports.nodeTypeRegistryKeys = exports.orgLimitDefaultKeys = exports.appLimitDefaultKeys = exports.migrateFileKeys = exports.roleTypeKeys = exports.appPermissionDefaultKeys = exports.storeKeys = exports.refKeys = exports.auditLogKeys = exports.orgClaimedInviteKeys = exports.orgInviteKeys = exports.claimedInviteKeys = exports.inviteKeys = exports.connectedAccountKeys = exports.cryptoAddressKeys = exports.phoneNumberKeys = exports.emailKeys = exports.appLevelKeys = exports.appAchievementKeys = exports.appStepKeys = exports.orgLimitKeys = exports.appLimitKeys = exports.orgPermissionDefaultKeys = exports.orgChartEdgeGrantKeys = exports.orgChartEdgeKeys = exports.orgGrantKeys = exports.orgOwnerGrantKeys = exports.orgAdminGrantKeys = exports.orgMemberKeys = exports.orgMembershipKeys = exports.appGrantKeys = exports.appOwnerGrantKeys = exports.appAdminGrantKeys = exports.databaseProvisionModuleKeys = exports.blueprintTemplateKeys = exports.blueprintKeys = exports.usersModuleKeys = exports.userAuthModuleKeys = exports.sessionsModuleKeys = exports.secretsModuleKeys = exports.profilesModuleKeys = exports.phoneNumbersModuleKeys = exports.permissionsModuleKeys = exports.membershipsModuleKeys = exports.membershipTypesModuleKeys = exports.limitsModuleKeys = exports.levelsModuleKeys = void 0;
|
|
10
|
+
exports.queryKeys = exports.customQueryKeys = exports.hierarchyModuleKeys = exports.appMembershipKeys = exports.astMigrationKeys = exports.userKeys = exports.sqlActionKeys = exports.orgMembershipDefaultKeys = exports.rlsModuleKeys = void 0;
|
|
11
11
|
// ============================================================================
|
|
12
12
|
// This file provides a centralized, type-safe query key factory following
|
|
13
13
|
// the lukemorales query-key-factory pattern for React Query.
|
|
@@ -364,13 +364,6 @@ exports.encryptedSecretsModuleKeys = {
|
|
|
364
364
|
/** Detail query keys */ details: () => [...exports.encryptedSecretsModuleKeys.all, 'detail'],
|
|
365
365
|
/** Detail query key for specific item */ detail: (id) => [...exports.encryptedSecretsModuleKeys.details(), id],
|
|
366
366
|
};
|
|
367
|
-
exports.fieldModuleKeys = {
|
|
368
|
-
/** All fieldModule queries */ all: ['fieldmodule'],
|
|
369
|
-
/** List query keys */ lists: () => [...exports.fieldModuleKeys.all, 'list'],
|
|
370
|
-
/** List query key with variables */ list: (variables) => [...exports.fieldModuleKeys.lists(), variables],
|
|
371
|
-
/** Detail query keys */ details: () => [...exports.fieldModuleKeys.all, 'detail'],
|
|
372
|
-
/** Detail query key for specific item */ detail: (id) => [...exports.fieldModuleKeys.details(), id],
|
|
373
|
-
};
|
|
374
367
|
exports.invitesModuleKeys = {
|
|
375
368
|
/** All invitesModule queries */ all: ['invitesmodule'],
|
|
376
369
|
/** List query keys */ lists: () => [...exports.invitesModuleKeys.all, 'list'],
|
|
@@ -679,6 +672,13 @@ exports.roleTypeKeys = {
|
|
|
679
672
|
/** Detail query keys */ details: () => [...exports.roleTypeKeys.all, 'detail'],
|
|
680
673
|
/** Detail query key for specific item */ detail: (id) => [...exports.roleTypeKeys.details(), id],
|
|
681
674
|
};
|
|
675
|
+
exports.migrateFileKeys = {
|
|
676
|
+
/** All migrateFile queries */ all: ['migratefile'],
|
|
677
|
+
/** List query keys */ lists: () => [...exports.migrateFileKeys.all, 'list'],
|
|
678
|
+
/** List query key with variables */ list: (variables) => [...exports.migrateFileKeys.lists(), variables],
|
|
679
|
+
/** Detail query keys */ details: () => [...exports.migrateFileKeys.all, 'detail'],
|
|
680
|
+
/** Detail query key for specific item */ detail: (id) => [...exports.migrateFileKeys.details(), id],
|
|
681
|
+
};
|
|
682
682
|
exports.appLimitDefaultKeys = {
|
|
683
683
|
/** All appLimitDefault queries */ all: ['applimitdefault'],
|
|
684
684
|
/** List query keys */ lists: () => [...exports.appLimitDefaultKeys.all, 'list'],
|
|
@@ -735,12 +735,12 @@ exports.orgMembershipDefaultKeys = {
|
|
|
735
735
|
/** Detail query keys */ details: () => [...exports.orgMembershipDefaultKeys.all, 'detail'],
|
|
736
736
|
/** Detail query key for specific item */ detail: (id) => [...exports.orgMembershipDefaultKeys.details(), id],
|
|
737
737
|
};
|
|
738
|
-
exports.
|
|
739
|
-
/** All
|
|
740
|
-
/** List query keys */ lists: () => [...exports.
|
|
741
|
-
/** List query key with variables */ list: (variables) => [...exports.
|
|
742
|
-
/** Detail query keys */ details: () => [...exports.
|
|
743
|
-
/** Detail query key for specific item */ detail: (id) => [...exports.
|
|
738
|
+
exports.sqlActionKeys = {
|
|
739
|
+
/** All sqlAction queries */ all: ['sqlaction'],
|
|
740
|
+
/** List query keys */ lists: () => [...exports.sqlActionKeys.all, 'list'],
|
|
741
|
+
/** List query key with variables */ list: (variables) => [...exports.sqlActionKeys.lists(), variables],
|
|
742
|
+
/** Detail query keys */ details: () => [...exports.sqlActionKeys.all, 'detail'],
|
|
743
|
+
/** Detail query key for specific item */ detail: (id) => [...exports.sqlActionKeys.details(), id],
|
|
744
744
|
};
|
|
745
745
|
exports.userKeys = {
|
|
746
746
|
/** All user queries */ all: ['user'],
|
|
@@ -866,7 +866,6 @@ exports.queryKeys = {
|
|
|
866
866
|
denormalizedTableField: exports.denormalizedTableFieldKeys,
|
|
867
867
|
emailsModule: exports.emailsModuleKeys,
|
|
868
868
|
encryptedSecretsModule: exports.encryptedSecretsModuleKeys,
|
|
869
|
-
fieldModule: exports.fieldModuleKeys,
|
|
870
869
|
invitesModule: exports.invitesModuleKeys,
|
|
871
870
|
levelsModule: exports.levelsModuleKeys,
|
|
872
871
|
limitsModule: exports.limitsModuleKeys,
|
|
@@ -911,6 +910,7 @@ exports.queryKeys = {
|
|
|
911
910
|
store: exports.storeKeys,
|
|
912
911
|
appPermissionDefault: exports.appPermissionDefaultKeys,
|
|
913
912
|
roleType: exports.roleTypeKeys,
|
|
913
|
+
migrateFile: exports.migrateFileKeys,
|
|
914
914
|
appLimitDefault: exports.appLimitDefaultKeys,
|
|
915
915
|
orgLimitDefault: exports.orgLimitDefaultKeys,
|
|
916
916
|
nodeTypeRegistry: exports.nodeTypeRegistryKeys,
|
|
@@ -919,7 +919,7 @@ exports.queryKeys = {
|
|
|
919
919
|
appMembershipDefault: exports.appMembershipDefaultKeys,
|
|
920
920
|
rlsModule: exports.rlsModuleKeys,
|
|
921
921
|
orgMembershipDefault: exports.orgMembershipDefaultKeys,
|
|
922
|
-
|
|
922
|
+
sqlAction: exports.sqlActionKeys,
|
|
923
923
|
user: exports.userKeys,
|
|
924
924
|
astMigration: exports.astMigrationKeys,
|
|
925
925
|
appMembership: exports.appMembershipKeys,
|