@taylordb/shared 0.12.0 → 0.15.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.
|
@@ -24,7 +24,13 @@ export type CreateMutationMetaData = {
|
|
|
24
24
|
type: 'create';
|
|
25
25
|
createdRecords: any[];
|
|
26
26
|
};
|
|
27
|
-
export type
|
|
27
|
+
export type PluginActionMetaData = {
|
|
28
|
+
type: 'plugin-action';
|
|
29
|
+
plugin: string;
|
|
30
|
+
action: string;
|
|
31
|
+
input: Record<string, any>;
|
|
32
|
+
};
|
|
33
|
+
export type AvailableMetaData = UpdateMutationMetaData | DeleteMutationMetaData | CreateMutationMetaData | SelectQueryMetaData | PaginationQueryMetaData | AggregationQueryMetaData | PluginActionMetaData;
|
|
28
34
|
export type QueryMetadata = SelectQueryMetaData | PaginationQueryMetaData | AggregationQueryMetaData;
|
|
29
35
|
export type MutationMetaData = UpdateMutationMetaData | DeleteMutationMetaData | CreateMutationMetaData;
|
|
30
36
|
export type MetadataWithTableName<T extends AvailableMetaData> = T & {
|
|
@@ -87,6 +87,13 @@ type TextFilters = {
|
|
|
87
87
|
isEmpty: never;
|
|
88
88
|
isNotEmpty: never;
|
|
89
89
|
};
|
|
90
|
+
export type SearchTextFilters = {
|
|
91
|
+
search: string;
|
|
92
|
+
contains: string;
|
|
93
|
+
containsStrict: string;
|
|
94
|
+
isEmpty: never;
|
|
95
|
+
isNotEmpty: never;
|
|
96
|
+
};
|
|
90
97
|
type LinkFilters = {
|
|
91
98
|
hasAnyOf: number[];
|
|
92
99
|
hasAllOf: number[];
|
|
@@ -165,6 +172,7 @@ export type ColumnType<S, U, I, R extends boolean, F extends {
|
|
|
165
172
|
};
|
|
166
173
|
export type DateColumnType<R extends boolean> = ColumnType<string, string, string, R, DateFilters, DateAggregations>;
|
|
167
174
|
export type TextColumnType<R extends boolean> = ColumnType<string, string, string, R, TextFilters>;
|
|
175
|
+
export type SearchColumnType<R extends boolean> = ColumnType<string, string, string, R, SearchTextFilters>;
|
|
168
176
|
export type ALinkColumnType<T extends string, S, U, I, R extends boolean, F extends {
|
|
169
177
|
[key: string]: any;
|
|
170
178
|
} = LinkFilters, A extends LinkAggregations = LinkAggregations> = ColumnType<S, U, I, R, F, A> & {
|
|
@@ -24,7 +24,13 @@ export type CreateMutationMetaData = {
|
|
|
24
24
|
type: 'create';
|
|
25
25
|
createdRecords: any[];
|
|
26
26
|
};
|
|
27
|
-
export type
|
|
27
|
+
export type PluginActionMetaData = {
|
|
28
|
+
type: 'plugin-action';
|
|
29
|
+
plugin: string;
|
|
30
|
+
action: string;
|
|
31
|
+
input: Record<string, any>;
|
|
32
|
+
};
|
|
33
|
+
export type AvailableMetaData = UpdateMutationMetaData | DeleteMutationMetaData | CreateMutationMetaData | SelectQueryMetaData | PaginationQueryMetaData | AggregationQueryMetaData | PluginActionMetaData;
|
|
28
34
|
export type QueryMetadata = SelectQueryMetaData | PaginationQueryMetaData | AggregationQueryMetaData;
|
|
29
35
|
export type MutationMetaData = UpdateMutationMetaData | DeleteMutationMetaData | CreateMutationMetaData;
|
|
30
36
|
export type MetadataWithTableName<T extends AvailableMetaData> = T & {
|
|
@@ -87,6 +87,13 @@ type TextFilters = {
|
|
|
87
87
|
isEmpty: never;
|
|
88
88
|
isNotEmpty: never;
|
|
89
89
|
};
|
|
90
|
+
export type SearchTextFilters = {
|
|
91
|
+
search: string;
|
|
92
|
+
contains: string;
|
|
93
|
+
containsStrict: string;
|
|
94
|
+
isEmpty: never;
|
|
95
|
+
isNotEmpty: never;
|
|
96
|
+
};
|
|
90
97
|
type LinkFilters = {
|
|
91
98
|
hasAnyOf: number[];
|
|
92
99
|
hasAllOf: number[];
|
|
@@ -165,6 +172,7 @@ export type ColumnType<S, U, I, R extends boolean, F extends {
|
|
|
165
172
|
};
|
|
166
173
|
export type DateColumnType<R extends boolean> = ColumnType<string, string, string, R, DateFilters, DateAggregations>;
|
|
167
174
|
export type TextColumnType<R extends boolean> = ColumnType<string, string, string, R, TextFilters>;
|
|
175
|
+
export type SearchColumnType<R extends boolean> = ColumnType<string, string, string, R, SearchTextFilters>;
|
|
168
176
|
export type ALinkColumnType<T extends string, S, U, I, R extends boolean, F extends {
|
|
169
177
|
[key: string]: any;
|
|
170
178
|
} = LinkFilters, A extends LinkAggregations = LinkAggregations> = ColumnType<S, U, I, R, F, A> & {
|