@constructive-io/react 0.18.8 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/hooks/index.d.ts +1 -1
- package/admin/hooks/index.js +1 -1
- package/admin/hooks/invalidation.d.ts +6 -0
- package/admin/hooks/invalidation.js +16 -0
- package/admin/hooks/mutation-keys.d.ts +12 -0
- package/admin/hooks/mutation-keys.js +8 -1
- package/admin/hooks/mutations/index.d.ts +3 -0
- package/admin/hooks/mutations/index.js +3 -0
- package/admin/hooks/mutations/useCreateUsageSnapshotMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateUsageSnapshotMutation.js +34 -0
- package/admin/hooks/mutations/useDeleteUsageSnapshotMutation.d.ts +38 -0
- package/admin/hooks/mutations/useDeleteUsageSnapshotMutation.js +39 -0
- package/admin/hooks/mutations/useUpdateUsageSnapshotMutation.d.ts +40 -0
- package/admin/hooks/mutations/useUpdateUsageSnapshotMutation.js +40 -0
- package/admin/hooks/queries/index.d.ts +2 -0
- package/admin/hooks/queries/index.js +2 -0
- package/admin/hooks/queries/useUsageSnapshotQuery.d.ts +65 -0
- package/admin/hooks/queries/useUsageSnapshotQuery.js +53 -0
- package/admin/hooks/queries/useUsageSnapshotsQuery.d.ts +69 -0
- package/admin/hooks/queries/useUsageSnapshotsQuery.js +38 -0
- package/admin/hooks/query-keys.d.ts +14 -0
- package/admin/hooks/query-keys.js +9 -1
- package/admin/orm/index.d.ts +2 -0
- package/admin/orm/index.js +2 -0
- package/admin/orm/input-types.d.ts +129 -0
- package/admin/orm/models/index.d.ts +1 -0
- package/admin/orm/models/index.js +3 -1
- package/admin/orm/models/usageSnapshot.d.ts +56 -0
- package/admin/orm/models/usageSnapshot.js +100 -0
- package/admin/schema-types.d.ts +98 -1
- package/admin/types.d.ts +8 -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 +6 -0
- package/esm/admin/hooks/invalidation.js +17 -1
- package/esm/admin/hooks/mutation-keys.d.ts +12 -0
- package/esm/admin/hooks/mutation-keys.js +7 -0
- package/esm/admin/hooks/mutations/index.d.ts +3 -0
- package/esm/admin/hooks/mutations/index.js +3 -0
- package/esm/admin/hooks/mutations/useCreateUsageSnapshotMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateUsageSnapshotMutation.js +31 -0
- package/esm/admin/hooks/mutations/useDeleteUsageSnapshotMutation.d.ts +38 -0
- package/esm/admin/hooks/mutations/useDeleteUsageSnapshotMutation.js +36 -0
- package/esm/admin/hooks/mutations/useUpdateUsageSnapshotMutation.d.ts +40 -0
- package/esm/admin/hooks/mutations/useUpdateUsageSnapshotMutation.js +37 -0
- package/esm/admin/hooks/queries/index.d.ts +2 -0
- package/esm/admin/hooks/queries/index.js +2 -0
- package/esm/admin/hooks/queries/useUsageSnapshotQuery.d.ts +65 -0
- package/esm/admin/hooks/queries/useUsageSnapshotQuery.js +47 -0
- package/esm/admin/hooks/queries/useUsageSnapshotsQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useUsageSnapshotsQuery.js +32 -0
- package/esm/admin/hooks/query-keys.d.ts +14 -0
- package/esm/admin/hooks/query-keys.js +8 -0
- package/esm/admin/orm/index.d.ts +2 -0
- package/esm/admin/orm/index.js +2 -0
- package/esm/admin/orm/input-types.d.ts +129 -0
- package/esm/admin/orm/models/index.d.ts +1 -0
- package/esm/admin/orm/models/index.js +1 -0
- package/esm/admin/orm/models/usageSnapshot.d.ts +56 -0
- package/esm/admin/orm/models/usageSnapshot.js +96 -0
- package/esm/admin/schema-types.d.ts +98 -1
- package/esm/admin/types.d.ts +8 -0
- package/esm/public/hooks/index.d.ts +1 -1
- package/esm/public/hooks/index.js +1 -1
- package/esm/public/hooks/invalidation.d.ts +6 -0
- package/esm/public/hooks/invalidation.js +17 -1
- package/esm/public/hooks/mutation-keys.d.ts +12 -4
- package/esm/public/hooks/mutation-keys.js +7 -6
- package/esm/public/hooks/mutations/index.d.ts +3 -2
- package/esm/public/hooks/mutations/index.js +3 -2
- package/esm/public/hooks/mutations/useCreateUsageSnapshotMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateUsageSnapshotMutation.js +31 -0
- package/esm/public/hooks/mutations/useDeleteUsageSnapshotMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteUsageSnapshotMutation.js +36 -0
- package/esm/public/hooks/mutations/useUpdateUsageSnapshotMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateUsageSnapshotMutation.js +37 -0
- package/esm/public/hooks/queries/index.d.ts +2 -0
- package/esm/public/hooks/queries/index.js +2 -0
- package/esm/public/hooks/queries/useUsageSnapshotQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useUsageSnapshotQuery.js +47 -0
- package/esm/public/hooks/queries/useUsageSnapshotsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useUsageSnapshotsQuery.js +32 -0
- package/esm/public/hooks/query-keys.d.ts +14 -0
- package/esm/public/hooks/query-keys.js +8 -0
- package/esm/public/orm/index.d.ts +2 -10
- package/esm/public/orm/index.js +2 -0
- package/esm/public/orm/input-types.d.ts +129 -22
- package/esm/public/orm/models/index.d.ts +1 -0
- package/esm/public/orm/models/index.js +1 -0
- package/esm/public/orm/models/usageSnapshot.d.ts +56 -0
- package/esm/public/orm/models/usageSnapshot.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +1 -17
- package/esm/public/orm/mutation/index.js +0 -24
- package/esm/public/schema-types.d.ts +367 -286
- package/esm/public/types.d.ts +8 -0
- package/package.json +6 -6
- package/public/hooks/index.d.ts +1 -1
- package/public/hooks/index.js +1 -1
- package/public/hooks/invalidation.d.ts +6 -0
- package/public/hooks/invalidation.js +16 -0
- package/public/hooks/mutation-keys.d.ts +12 -4
- package/public/hooks/mutation-keys.js +9 -7
- package/public/hooks/mutations/index.d.ts +3 -2
- package/public/hooks/mutations/index.js +3 -2
- package/public/hooks/mutations/useCreateUsageSnapshotMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateUsageSnapshotMutation.js +34 -0
- package/public/hooks/mutations/useDeleteUsageSnapshotMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteUsageSnapshotMutation.js +39 -0
- package/public/hooks/mutations/useUpdateUsageSnapshotMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateUsageSnapshotMutation.js +40 -0
- package/public/hooks/queries/index.d.ts +2 -0
- package/public/hooks/queries/index.js +2 -0
- package/public/hooks/queries/useUsageSnapshotQuery.d.ts +65 -0
- package/public/hooks/queries/useUsageSnapshotQuery.js +53 -0
- package/public/hooks/queries/useUsageSnapshotsQuery.d.ts +69 -0
- package/public/hooks/queries/useUsageSnapshotsQuery.js +38 -0
- package/public/hooks/query-keys.d.ts +14 -0
- package/public/hooks/query-keys.js +10 -1
- package/public/orm/index.d.ts +2 -10
- package/public/orm/index.js +2 -0
- package/public/orm/input-types.d.ts +129 -22
- package/public/orm/models/index.d.ts +1 -0
- package/public/orm/models/index.js +3 -1
- package/public/orm/models/usageSnapshot.d.ts +56 -0
- package/public/orm/models/usageSnapshot.js +100 -0
- package/public/orm/mutation/index.d.ts +1 -17
- package/public/orm/mutation/index.js +0 -24
- package/public/schema-types.d.ts +367 -286
- package/public/types.d.ts +8 -0
- package/esm/public/hooks/mutations/useAppendFieldSmartTagsMutation.d.ts +0 -20
- package/esm/public/hooks/mutations/useAppendFieldSmartTagsMutation.js +0 -23
- package/esm/public/hooks/mutations/useAppendTableSmartTagsMutation.d.ts +0 -20
- package/esm/public/hooks/mutations/useAppendTableSmartTagsMutation.js +0 -23
- package/public/hooks/mutations/useAppendFieldSmartTagsMutation.d.ts +0 -20
- package/public/hooks/mutations/useAppendFieldSmartTagsMutation.js +0 -26
- package/public/hooks/mutations/useAppendTableSmartTagsMutation.d.ts +0 -20
- package/public/hooks/mutations/useAppendTableSmartTagsMutation.js +0 -26
package/public/types.d.ts
CHANGED
|
@@ -1551,6 +1551,14 @@ export interface RateLimitsModule {
|
|
|
1551
1551
|
ipRateLimitsTable: string | null;
|
|
1552
1552
|
rateLimitsTable: string | null;
|
|
1553
1553
|
}
|
|
1554
|
+
export interface UsageSnapshot {
|
|
1555
|
+
databaseId: string | null;
|
|
1556
|
+
metricName: string | null;
|
|
1557
|
+
metricValue: string | null;
|
|
1558
|
+
dimensions: unknown | null;
|
|
1559
|
+
capturedAt: string | null;
|
|
1560
|
+
id: string | null;
|
|
1561
|
+
}
|
|
1554
1562
|
export interface AppMembershipDefault {
|
|
1555
1563
|
id: string | null;
|
|
1556
1564
|
createdAt: string | null;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Custom mutation hook for appendFieldSmartTags
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
-
import type { AppendFieldSmartTagsVariables } from '../../orm/mutation';
|
|
8
|
-
import type { AppendFieldSmartTagsPayloadSelect, AppendFieldSmartTagsPayload } from '../../orm/input-types';
|
|
9
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
-
export type { AppendFieldSmartTagsVariables } from '../../orm/mutation';
|
|
11
|
-
export type { AppendFieldSmartTagsPayloadSelect } from '../../orm/input-types';
|
|
12
|
-
export declare function useAppendFieldSmartTagsMutation<S extends AppendFieldSmartTagsPayloadSelect>(params: {
|
|
13
|
-
selection: {
|
|
14
|
-
fields: S & AppendFieldSmartTagsPayloadSelect;
|
|
15
|
-
} & HookStrictSelect<NoInfer<S>, AppendFieldSmartTagsPayloadSelect>;
|
|
16
|
-
} & Omit<UseMutationOptions<{
|
|
17
|
-
appendFieldSmartTags: InferSelectResult<AppendFieldSmartTagsPayload, S> | null;
|
|
18
|
-
}, Error, AppendFieldSmartTagsVariables>, 'mutationFn'>): UseMutationResult<{
|
|
19
|
-
appendFieldSmartTags: InferSelectResult<AppendFieldSmartTagsPayload, S> | null;
|
|
20
|
-
}, Error, AppendFieldSmartTagsVariables>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Custom mutation hook for appendFieldSmartTags
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import { useMutation } from '@tanstack/react-query';
|
|
7
|
-
import { getClient } from '../client';
|
|
8
|
-
import { buildSelectionArgs } from '../selection';
|
|
9
|
-
import { customMutationKeys } from '../mutation-keys';
|
|
10
|
-
export function useAppendFieldSmartTagsMutation(params) {
|
|
11
|
-
const args = buildSelectionArgs(params.selection);
|
|
12
|
-
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
13
|
-
void _selection;
|
|
14
|
-
return useMutation({
|
|
15
|
-
mutationKey: customMutationKeys.appendFieldSmartTags(),
|
|
16
|
-
mutationFn: (variables) => getClient()
|
|
17
|
-
.mutation.appendFieldSmartTags(variables, {
|
|
18
|
-
select: args.select,
|
|
19
|
-
})
|
|
20
|
-
.unwrap(),
|
|
21
|
-
...mutationOptions,
|
|
22
|
-
});
|
|
23
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Custom mutation hook for appendTableSmartTags
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
-
import type { AppendTableSmartTagsVariables } from '../../orm/mutation';
|
|
8
|
-
import type { AppendTableSmartTagsPayloadSelect, AppendTableSmartTagsPayload } from '../../orm/input-types';
|
|
9
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
-
export type { AppendTableSmartTagsVariables } from '../../orm/mutation';
|
|
11
|
-
export type { AppendTableSmartTagsPayloadSelect } from '../../orm/input-types';
|
|
12
|
-
export declare function useAppendTableSmartTagsMutation<S extends AppendTableSmartTagsPayloadSelect>(params: {
|
|
13
|
-
selection: {
|
|
14
|
-
fields: S & AppendTableSmartTagsPayloadSelect;
|
|
15
|
-
} & HookStrictSelect<NoInfer<S>, AppendTableSmartTagsPayloadSelect>;
|
|
16
|
-
} & Omit<UseMutationOptions<{
|
|
17
|
-
appendTableSmartTags: InferSelectResult<AppendTableSmartTagsPayload, S> | null;
|
|
18
|
-
}, Error, AppendTableSmartTagsVariables>, 'mutationFn'>): UseMutationResult<{
|
|
19
|
-
appendTableSmartTags: InferSelectResult<AppendTableSmartTagsPayload, S> | null;
|
|
20
|
-
}, Error, AppendTableSmartTagsVariables>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Custom mutation hook for appendTableSmartTags
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import { useMutation } from '@tanstack/react-query';
|
|
7
|
-
import { getClient } from '../client';
|
|
8
|
-
import { buildSelectionArgs } from '../selection';
|
|
9
|
-
import { customMutationKeys } from '../mutation-keys';
|
|
10
|
-
export function useAppendTableSmartTagsMutation(params) {
|
|
11
|
-
const args = buildSelectionArgs(params.selection);
|
|
12
|
-
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
13
|
-
void _selection;
|
|
14
|
-
return useMutation({
|
|
15
|
-
mutationKey: customMutationKeys.appendTableSmartTags(),
|
|
16
|
-
mutationFn: (variables) => getClient()
|
|
17
|
-
.mutation.appendTableSmartTags(variables, {
|
|
18
|
-
select: args.select,
|
|
19
|
-
})
|
|
20
|
-
.unwrap(),
|
|
21
|
-
...mutationOptions,
|
|
22
|
-
});
|
|
23
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Custom mutation hook for appendFieldSmartTags
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
-
import type { AppendFieldSmartTagsVariables } from '../../orm/mutation';
|
|
8
|
-
import type { AppendFieldSmartTagsPayloadSelect, AppendFieldSmartTagsPayload } from '../../orm/input-types';
|
|
9
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
-
export type { AppendFieldSmartTagsVariables } from '../../orm/mutation';
|
|
11
|
-
export type { AppendFieldSmartTagsPayloadSelect } from '../../orm/input-types';
|
|
12
|
-
export declare function useAppendFieldSmartTagsMutation<S extends AppendFieldSmartTagsPayloadSelect>(params: {
|
|
13
|
-
selection: {
|
|
14
|
-
fields: S & AppendFieldSmartTagsPayloadSelect;
|
|
15
|
-
} & HookStrictSelect<NoInfer<S>, AppendFieldSmartTagsPayloadSelect>;
|
|
16
|
-
} & Omit<UseMutationOptions<{
|
|
17
|
-
appendFieldSmartTags: InferSelectResult<AppendFieldSmartTagsPayload, S> | null;
|
|
18
|
-
}, Error, AppendFieldSmartTagsVariables>, 'mutationFn'>): UseMutationResult<{
|
|
19
|
-
appendFieldSmartTags: InferSelectResult<AppendFieldSmartTagsPayload, S> | null;
|
|
20
|
-
}, Error, AppendFieldSmartTagsVariables>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Custom mutation hook for appendFieldSmartTags
|
|
4
|
-
* @generated by @constructive-io/graphql-codegen
|
|
5
|
-
* DO NOT EDIT - changes will be overwritten
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.useAppendFieldSmartTagsMutation = useAppendFieldSmartTagsMutation;
|
|
9
|
-
const react_query_1 = require("@tanstack/react-query");
|
|
10
|
-
const client_1 = require("../client");
|
|
11
|
-
const selection_1 = require("../selection");
|
|
12
|
-
const mutation_keys_1 = require("../mutation-keys");
|
|
13
|
-
function useAppendFieldSmartTagsMutation(params) {
|
|
14
|
-
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
15
|
-
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
16
|
-
void _selection;
|
|
17
|
-
return (0, react_query_1.useMutation)({
|
|
18
|
-
mutationKey: mutation_keys_1.customMutationKeys.appendFieldSmartTags(),
|
|
19
|
-
mutationFn: (variables) => (0, client_1.getClient)()
|
|
20
|
-
.mutation.appendFieldSmartTags(variables, {
|
|
21
|
-
select: args.select,
|
|
22
|
-
})
|
|
23
|
-
.unwrap(),
|
|
24
|
-
...mutationOptions,
|
|
25
|
-
});
|
|
26
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Custom mutation hook for appendTableSmartTags
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
-
import type { AppendTableSmartTagsVariables } from '../../orm/mutation';
|
|
8
|
-
import type { AppendTableSmartTagsPayloadSelect, AppendTableSmartTagsPayload } from '../../orm/input-types';
|
|
9
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
-
export type { AppendTableSmartTagsVariables } from '../../orm/mutation';
|
|
11
|
-
export type { AppendTableSmartTagsPayloadSelect } from '../../orm/input-types';
|
|
12
|
-
export declare function useAppendTableSmartTagsMutation<S extends AppendTableSmartTagsPayloadSelect>(params: {
|
|
13
|
-
selection: {
|
|
14
|
-
fields: S & AppendTableSmartTagsPayloadSelect;
|
|
15
|
-
} & HookStrictSelect<NoInfer<S>, AppendTableSmartTagsPayloadSelect>;
|
|
16
|
-
} & Omit<UseMutationOptions<{
|
|
17
|
-
appendTableSmartTags: InferSelectResult<AppendTableSmartTagsPayload, S> | null;
|
|
18
|
-
}, Error, AppendTableSmartTagsVariables>, 'mutationFn'>): UseMutationResult<{
|
|
19
|
-
appendTableSmartTags: InferSelectResult<AppendTableSmartTagsPayload, S> | null;
|
|
20
|
-
}, Error, AppendTableSmartTagsVariables>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Custom mutation hook for appendTableSmartTags
|
|
4
|
-
* @generated by @constructive-io/graphql-codegen
|
|
5
|
-
* DO NOT EDIT - changes will be overwritten
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.useAppendTableSmartTagsMutation = useAppendTableSmartTagsMutation;
|
|
9
|
-
const react_query_1 = require("@tanstack/react-query");
|
|
10
|
-
const client_1 = require("../client");
|
|
11
|
-
const selection_1 = require("../selection");
|
|
12
|
-
const mutation_keys_1 = require("../mutation-keys");
|
|
13
|
-
function useAppendTableSmartTagsMutation(params) {
|
|
14
|
-
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
15
|
-
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
16
|
-
void _selection;
|
|
17
|
-
return (0, react_query_1.useMutation)({
|
|
18
|
-
mutationKey: mutation_keys_1.customMutationKeys.appendTableSmartTags(),
|
|
19
|
-
mutationFn: (variables) => (0, client_1.getClient)()
|
|
20
|
-
.mutation.appendTableSmartTags(variables, {
|
|
21
|
-
select: args.select,
|
|
22
|
-
})
|
|
23
|
-
.unwrap(),
|
|
24
|
-
...mutationOptions,
|
|
25
|
-
});
|
|
26
|
-
}
|