@n8n/api-types 0.44.0 → 0.45.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/dist/build.tsbuildinfo +1 -1
- package/dist/dto/data-store/add-data-store-rows.dto.d.ts +1 -1
- package/dist/dto/data-store/add-data-store-rows.dto.js +1 -1
- package/dist/dto/data-store/add-data-store-rows.dto.js.map +1 -1
- package/dist/dto/data-store/list-data-store-content-query.dto.d.ts +0 -33
- package/dist/dto/data-store/list-data-store-content-query.dto.js +2 -21
- package/dist/dto/data-store/list-data-store-content-query.dto.js.map +1 -1
- package/dist/dto/data-store/update-data-store-row.dto.d.ts +47 -4
- package/dist/dto/data-store/update-data-store-row.dto.js +10 -10
- package/dist/dto/data-store/update-data-store-row.dto.js.map +1 -1
- package/dist/dto/data-store/upsert-data-store-row.dto.d.ts +53 -0
- package/dist/dto/data-store/upsert-data-store-row.dto.js +23 -0
- package/dist/dto/data-store/upsert-data-store-row.dto.js.map +1 -0
- package/dist/dto/index.d.ts +4 -5
- package/dist/dto/index.js +8 -4
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/roles/create-role.dto.d.ts +5 -12
- package/dist/dto/roles/create-role.dto.js +6 -3
- package/dist/dto/roles/create-role.dto.js.map +1 -1
- package/dist/dto/roles/update-role.dto.d.ts +5 -10
- package/dist/dto/roles/update-role.dto.js +6 -3
- package/dist/dto/roles/update-role.dto.js.map +1 -1
- package/dist/frontend-settings.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/schemas/data-table-filter.schema.d.ts +48 -0
- package/dist/schemas/data-table-filter.schema.js +26 -0
- package/dist/schemas/data-table-filter.schema.js.map +1 -0
- package/package.json +4 -4
- package/dist/dto/data-store/upsert-data-store-rows.dto.d.ts +0 -10
- package/dist/dto/data-store/upsert-data-store-rows.dto.js +0 -15
- package/dist/dto/data-store/upsert-data-store-rows.dto.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Z } from 'zod-class';
|
|
3
3
|
declare const AddDataStoreRowsDto_base: Z.Class<{
|
|
4
|
-
returnData: z.ZodDefault<z.ZodBoolean
|
|
4
|
+
returnData: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
5
5
|
data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodDate]>>, "many">;
|
|
6
6
|
}>;
|
|
7
7
|
export declare class AddDataStoreRowsDto extends AddDataStoreRowsDto_base {
|
|
@@ -5,7 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const zod_class_1 = require("zod-class");
|
|
6
6
|
const data_store_schema_1 = require("../../schemas/data-store.schema");
|
|
7
7
|
class AddDataStoreRowsDto extends zod_class_1.Z.class({
|
|
8
|
-
returnData: zod_1.z.boolean().default(false),
|
|
8
|
+
returnData: zod_1.z.boolean().optional().default(false),
|
|
9
9
|
data: zod_1.z.array(zod_1.z.record(data_store_schema_1.dataStoreColumnNameSchema, data_store_schema_1.dataStoreColumnValueSchema)),
|
|
10
10
|
}) {
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-data-store-rows.dto.js","sourceRoot":"","sources":["../../../src/dto/data-store/add-data-store-rows.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,uEAGyC;AAEzC,MAAa,mBAAoB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAChD,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"add-data-store-rows.dto.js","sourceRoot":"","sources":["../../../src/dto/data-store/add-data-store-rows.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,uEAGyC;AAEzC,MAAa,mBAAoB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAChD,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACjD,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,6CAAyB,EAAE,8CAA0B,CAAC,CAAC;CAC9E,CAAC;CAAG;AAHL,kDAGK"}
|
|
@@ -1,38 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Z } from 'zod-class';
|
|
3
|
-
declare const FilterConditionSchema: z.ZodUnion<[z.ZodLiteral<"eq">, z.ZodLiteral<"neq">, z.ZodLiteral<"like">, z.ZodLiteral<"ilike">, z.ZodLiteral<"gt">, z.ZodLiteral<"gte">, z.ZodLiteral<"lt">, z.ZodLiteral<"lte">]>;
|
|
4
|
-
export type ListDataStoreContentFilterConditionType = z.infer<typeof FilterConditionSchema>;
|
|
5
|
-
export type ListDataStoreContentFilter = z.infer<typeof filterSchema>;
|
|
6
|
-
declare const filterSchema: z.ZodObject<{
|
|
7
|
-
type: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>>;
|
|
8
|
-
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
9
|
-
columnName: z.ZodString;
|
|
10
|
-
condition: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"eq">, z.ZodLiteral<"neq">, z.ZodLiteral<"like">, z.ZodLiteral<"ilike">, z.ZodLiteral<"gt">, z.ZodLiteral<"gte">, z.ZodLiteral<"lt">, z.ZodLiteral<"lte">]>>;
|
|
11
|
-
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull]>;
|
|
12
|
-
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
value: string | number | boolean | Date | null;
|
|
14
|
-
columnName: string;
|
|
15
|
-
condition: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte";
|
|
16
|
-
}, {
|
|
17
|
-
value: string | number | boolean | Date | null;
|
|
18
|
-
columnName: string;
|
|
19
|
-
condition?: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte" | undefined;
|
|
20
|
-
}>, "many">>;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
type: "or" | "and";
|
|
23
|
-
filters: {
|
|
24
|
-
value: string | number | boolean | Date | null;
|
|
25
|
-
columnName: string;
|
|
26
|
-
condition: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte";
|
|
27
|
-
}[];
|
|
28
|
-
}, {
|
|
29
|
-
type?: "or" | "and" | undefined;
|
|
30
|
-
filters?: {
|
|
31
|
-
value: string | number | boolean | Date | null;
|
|
32
|
-
columnName: string;
|
|
33
|
-
condition?: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte" | undefined;
|
|
34
|
-
}[] | undefined;
|
|
35
|
-
}>;
|
|
36
3
|
declare const ListDataStoreContentQueryDto_base: Z.Class<{
|
|
37
4
|
take: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>, number, string | undefined>, number, string | undefined>>;
|
|
38
5
|
skip: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>, number, string | undefined>>;
|
|
@@ -5,27 +5,8 @@ const n8n_workflow_1 = require("n8n-workflow");
|
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const zod_class_1 = require("zod-class");
|
|
7
7
|
const data_store_schema_1 = require("../../schemas/data-store.schema");
|
|
8
|
+
const data_table_filter_schema_1 = require("../../schemas/data-table-filter.schema");
|
|
8
9
|
const pagination_dto_1 = require("../pagination/pagination.dto");
|
|
9
|
-
const FilterConditionSchema = zod_1.z.union([
|
|
10
|
-
zod_1.z.literal('eq'),
|
|
11
|
-
zod_1.z.literal('neq'),
|
|
12
|
-
zod_1.z.literal('like'),
|
|
13
|
-
zod_1.z.literal('ilike'),
|
|
14
|
-
zod_1.z.literal('gt'),
|
|
15
|
-
zod_1.z.literal('gte'),
|
|
16
|
-
zod_1.z.literal('lt'),
|
|
17
|
-
zod_1.z.literal('lte'),
|
|
18
|
-
]);
|
|
19
|
-
const filterRecord = zod_1.z.object({
|
|
20
|
-
columnName: data_store_schema_1.dataStoreColumnNameSchema,
|
|
21
|
-
condition: FilterConditionSchema.default('eq'),
|
|
22
|
-
value: zod_1.z.union([zod_1.z.string(), zod_1.z.number(), zod_1.z.boolean(), zod_1.z.date(), zod_1.z.null()]),
|
|
23
|
-
});
|
|
24
|
-
const chainedFilterSchema = zod_1.z.union([zod_1.z.literal('and'), zod_1.z.literal('or')]);
|
|
25
|
-
const filterSchema = zod_1.z.object({
|
|
26
|
-
type: chainedFilterSchema.default('and'),
|
|
27
|
-
filters: zod_1.z.array(filterRecord).default([]),
|
|
28
|
-
});
|
|
29
10
|
const filterValidator = zod_1.z
|
|
30
11
|
.string()
|
|
31
12
|
.optional()
|
|
@@ -35,7 +16,7 @@ const filterValidator = zod_1.z
|
|
|
35
16
|
try {
|
|
36
17
|
const parsed = (0, n8n_workflow_1.jsonParse)(val);
|
|
37
18
|
try {
|
|
38
|
-
return
|
|
19
|
+
return data_table_filter_schema_1.dataTableFilterSchema.parse(parsed);
|
|
39
20
|
}
|
|
40
21
|
catch (e) {
|
|
41
22
|
ctx.addIssue({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-data-store-content-query.dto.js","sourceRoot":"","sources":["../../../src/dto/data-store/list-data-store-content-query.dto.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,6BAAwB;AACxB,yCAA8B;AAE9B,uEAA4E;AAC5E,iEAAgE;AAEhE,MAAM,
|
|
1
|
+
{"version":3,"file":"list-data-store-content-query.dto.js","sourceRoot":"","sources":["../../../src/dto/data-store/list-data-store-content-query.dto.ts"],"names":[],"mappings":";;;AA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L,oEAKK"}
|
|
@@ -1,10 +1,53 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Z } from 'zod-class';
|
|
3
|
-
declare const
|
|
4
|
-
filter: z.ZodEffects<z.
|
|
3
|
+
declare const UpdateDataTableRowDto_base: Z.Class<{
|
|
4
|
+
filter: z.ZodEffects<z.ZodObject<{
|
|
5
|
+
type: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>>;
|
|
6
|
+
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
7
|
+
columnName: z.ZodString;
|
|
8
|
+
condition: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"eq">, z.ZodLiteral<"neq">, z.ZodLiteral<"like">, z.ZodLiteral<"ilike">, z.ZodLiteral<"gt">, z.ZodLiteral<"gte">, z.ZodLiteral<"lt">, z.ZodLiteral<"lte">]>>;
|
|
9
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull]>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
value: string | number | boolean | Date | null;
|
|
12
|
+
columnName: string;
|
|
13
|
+
condition: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte";
|
|
14
|
+
}, {
|
|
15
|
+
value: string | number | boolean | Date | null;
|
|
16
|
+
columnName: string;
|
|
17
|
+
condition?: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte" | undefined;
|
|
18
|
+
}>, "many">>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
type: "or" | "and";
|
|
21
|
+
filters: {
|
|
22
|
+
value: string | number | boolean | Date | null;
|
|
23
|
+
columnName: string;
|
|
24
|
+
condition: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte";
|
|
25
|
+
}[];
|
|
26
|
+
}, {
|
|
27
|
+
type?: "or" | "and" | undefined;
|
|
28
|
+
filters?: {
|
|
29
|
+
value: string | number | boolean | Date | null;
|
|
30
|
+
columnName: string;
|
|
31
|
+
condition?: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte" | undefined;
|
|
32
|
+
}[] | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
type: "or" | "and";
|
|
35
|
+
filters: {
|
|
36
|
+
value: string | number | boolean | Date | null;
|
|
37
|
+
columnName: string;
|
|
38
|
+
condition: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte";
|
|
39
|
+
}[];
|
|
40
|
+
}, {
|
|
41
|
+
type?: "or" | "and" | undefined;
|
|
42
|
+
filters?: {
|
|
43
|
+
value: string | number | boolean | Date | null;
|
|
44
|
+
columnName: string;
|
|
45
|
+
condition?: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte" | undefined;
|
|
46
|
+
}[] | undefined;
|
|
47
|
+
}>;
|
|
5
48
|
data: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodDate]>>, Record<string, string | number | boolean | Date | null>, Record<string, string | number | boolean | Date | null>>;
|
|
6
|
-
returnData: z.ZodDefault<z.ZodBoolean
|
|
49
|
+
returnData: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7
50
|
}>;
|
|
8
|
-
export declare class
|
|
51
|
+
export declare class UpdateDataTableRowDto extends UpdateDataTableRowDto_base {
|
|
9
52
|
}
|
|
10
53
|
export {};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.UpdateDataTableRowDto = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_class_1 = require("zod-class");
|
|
6
6
|
const data_store_schema_1 = require("../../schemas/data-store.schema");
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
const data_table_filter_schema_1 = require("../../schemas/data-table-filter.schema");
|
|
8
|
+
const updateFilterSchema = data_table_filter_schema_1.dataTableFilterSchema.refine((filter) => filter.filters.length > 0, {
|
|
9
|
+
message: 'filter must not be empty',
|
|
10
|
+
});
|
|
11
|
+
const updateDataTableRowShape = {
|
|
12
|
+
filter: updateFilterSchema,
|
|
13
13
|
data: zod_1.z
|
|
14
14
|
.record(data_store_schema_1.dataStoreColumnNameSchema, data_store_schema_1.dataStoreColumnValueSchema)
|
|
15
15
|
.refine((obj) => Object.keys(obj).length > 0, {
|
|
16
16
|
message: 'data must not be empty',
|
|
17
17
|
}),
|
|
18
|
-
returnData: zod_1.z.boolean().default(false),
|
|
18
|
+
returnData: zod_1.z.boolean().optional().default(false),
|
|
19
19
|
};
|
|
20
|
-
class
|
|
20
|
+
class UpdateDataTableRowDto extends zod_class_1.Z.class(updateDataTableRowShape) {
|
|
21
21
|
}
|
|
22
|
-
exports.
|
|
22
|
+
exports.UpdateDataTableRowDto = UpdateDataTableRowDto;
|
|
23
23
|
//# sourceMappingURL=update-data-store-row.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-data-store-row.dto.js","sourceRoot":"","sources":["../../../src/dto/data-store/update-data-store-row.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,uEAGyC;
|
|
1
|
+
{"version":3,"file":"update-data-store-row.dto.js","sourceRoot":"","sources":["../../../src/dto/data-store/update-data-store-row.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,uEAGyC;AACzC,qFAA+E;AAE/E,MAAM,kBAAkB,GAAG,gDAAqB,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;IAC9F,OAAO,EAAE,0BAA0B;CACnC,CAAC,CAAC;AAEH,MAAM,uBAAuB,GAAG;IAC/B,MAAM,EAAE,kBAAkB;IAC1B,IAAI,EAAE,OAAC;SACL,MAAM,CAAC,6CAAyB,EAAE,8CAA0B,CAAC;SAC7D,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;QAC7C,OAAO,EAAE,wBAAwB;KACjC,CAAC;IACH,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CACjD,CAAC;AAEF,MAAa,qBAAsB,SAAQ,aAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC;CAAG;AAA9E,sDAA8E"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Z } from 'zod-class';
|
|
3
|
+
declare const UpsertDataStoreRowDto_base: Z.Class<{
|
|
4
|
+
filter: z.ZodEffects<z.ZodObject<{
|
|
5
|
+
type: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>>;
|
|
6
|
+
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
7
|
+
columnName: z.ZodString;
|
|
8
|
+
condition: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"eq">, z.ZodLiteral<"neq">, z.ZodLiteral<"like">, z.ZodLiteral<"ilike">, z.ZodLiteral<"gt">, z.ZodLiteral<"gte">, z.ZodLiteral<"lt">, z.ZodLiteral<"lte">]>>;
|
|
9
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull]>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
value: string | number | boolean | Date | null;
|
|
12
|
+
columnName: string;
|
|
13
|
+
condition: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte";
|
|
14
|
+
}, {
|
|
15
|
+
value: string | number | boolean | Date | null;
|
|
16
|
+
columnName: string;
|
|
17
|
+
condition?: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte" | undefined;
|
|
18
|
+
}>, "many">>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
type: "or" | "and";
|
|
21
|
+
filters: {
|
|
22
|
+
value: string | number | boolean | Date | null;
|
|
23
|
+
columnName: string;
|
|
24
|
+
condition: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte";
|
|
25
|
+
}[];
|
|
26
|
+
}, {
|
|
27
|
+
type?: "or" | "and" | undefined;
|
|
28
|
+
filters?: {
|
|
29
|
+
value: string | number | boolean | Date | null;
|
|
30
|
+
columnName: string;
|
|
31
|
+
condition?: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte" | undefined;
|
|
32
|
+
}[] | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
type: "or" | "and";
|
|
35
|
+
filters: {
|
|
36
|
+
value: string | number | boolean | Date | null;
|
|
37
|
+
columnName: string;
|
|
38
|
+
condition: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte";
|
|
39
|
+
}[];
|
|
40
|
+
}, {
|
|
41
|
+
type?: "or" | "and" | undefined;
|
|
42
|
+
filters?: {
|
|
43
|
+
value: string | number | boolean | Date | null;
|
|
44
|
+
columnName: string;
|
|
45
|
+
condition?: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte" | undefined;
|
|
46
|
+
}[] | undefined;
|
|
47
|
+
}>;
|
|
48
|
+
data: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodDate]>>, Record<string, string | number | boolean | Date | null>, Record<string, string | number | boolean | Date | null>>;
|
|
49
|
+
returnData: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
50
|
+
}>;
|
|
51
|
+
export declare class UpsertDataStoreRowDto extends UpsertDataStoreRowDto_base {
|
|
52
|
+
}
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpsertDataStoreRowDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zod_class_1 = require("zod-class");
|
|
6
|
+
const data_store_schema_1 = require("../../schemas/data-store.schema");
|
|
7
|
+
const data_table_filter_schema_1 = require("../../schemas/data-table-filter.schema");
|
|
8
|
+
const upsertFilterSchema = data_table_filter_schema_1.dataTableFilterSchema.refine((filter) => filter.filters.length > 0, {
|
|
9
|
+
message: 'filter must not be empty',
|
|
10
|
+
});
|
|
11
|
+
const upsertDataStoreRowShape = {
|
|
12
|
+
filter: upsertFilterSchema,
|
|
13
|
+
data: zod_1.z
|
|
14
|
+
.record(data_store_schema_1.dataStoreColumnNameSchema, data_store_schema_1.dataStoreColumnValueSchema)
|
|
15
|
+
.refine((obj) => Object.keys(obj).length > 0, {
|
|
16
|
+
message: 'data must not be empty',
|
|
17
|
+
}),
|
|
18
|
+
returnData: zod_1.z.boolean().optional().default(false),
|
|
19
|
+
};
|
|
20
|
+
class UpsertDataStoreRowDto extends zod_class_1.Z.class(upsertDataStoreRowShape) {
|
|
21
|
+
}
|
|
22
|
+
exports.UpsertDataStoreRowDto = UpsertDataStoreRowDto;
|
|
23
|
+
//# sourceMappingURL=upsert-data-store-row.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upsert-data-store-row.dto.js","sourceRoot":"","sources":["../../../src/dto/data-store/upsert-data-store-row.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,uEAGyC;AACzC,qFAA+E;AAE/E,MAAM,kBAAkB,GAAG,gDAAqB,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;IAC9F,OAAO,EAAE,0BAA0B;CACnC,CAAC,CAAC;AAEH,MAAM,uBAAuB,GAAG;IAC/B,MAAM,EAAE,kBAAkB;IAC1B,IAAI,EAAE,OAAC;SACL,MAAM,CAAC,6CAAyB,EAAE,8CAA0B,CAAC;SAC7D,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;QAC7C,OAAO,EAAE,wBAAwB;KACjC,CAAC;IACH,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CACjD,CAAC;AAEF,MAAa,qBAAsB,SAAQ,aAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC;CAAG;AAA9E,sDAA8E"}
|
package/dist/dto/index.d.ts
CHANGED
|
@@ -55,16 +55,15 @@ export { ListInsightsWorkflowQueryDto } from './insights/list-workflow-query.dto
|
|
|
55
55
|
export { InsightsDateFilterDto } from './insights/date-filter.dto';
|
|
56
56
|
export { PaginationDto } from './pagination/pagination.dto';
|
|
57
57
|
export { UsersListFilterDto, type UsersListSortOptions, USERS_LIST_SORT_OPTIONS, } from './user/users-list-filter.dto';
|
|
58
|
-
export
|
|
59
|
-
export
|
|
58
|
+
export { UpdateRoleDto } from './roles/update-role.dto';
|
|
59
|
+
export { CreateRoleDto } from './roles/create-role.dto';
|
|
60
60
|
export { OidcConfigDto } from './oidc/config.dto';
|
|
61
61
|
export { CreateDataStoreDto } from './data-store/create-data-store.dto';
|
|
62
62
|
export { UpdateDataStoreDto } from './data-store/update-data-store.dto';
|
|
63
|
-
export {
|
|
64
|
-
export {
|
|
63
|
+
export { UpdateDataTableRowDto } from './data-store/update-data-store-row.dto';
|
|
64
|
+
export { UpsertDataStoreRowDto } from './data-store/upsert-data-store-row.dto';
|
|
65
65
|
export { ListDataStoreQueryDto } from './data-store/list-data-store-query.dto';
|
|
66
66
|
export { ListDataStoreContentQueryDto } from './data-store/list-data-store-content-query.dto';
|
|
67
|
-
export type { ListDataStoreContentFilter, ListDataStoreContentFilterConditionType, } from './data-store/list-data-store-content-query.dto';
|
|
68
67
|
export { CreateDataStoreColumnDto } from './data-store/create-data-store-column.dto';
|
|
69
68
|
export { AddDataStoreRowsDto } from './data-store/add-data-store-rows.dto';
|
|
70
69
|
export { AddDataStoreColumnDto } from './data-store/add-data-store-column.dto';
|
package/dist/dto/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdateFolderDto = exports.CreateFolderDto = exports.CreateApiKeyRequestDto = exports.UpdateApiKeyRequestDto = exports.RetrieveTagQueryDto = exports.CreateOrUpdateTagRequestDto = exports.TransferWorkflowBodyDto = exports.ManualRunQueryDto = exports.ImportWorkflowFromUrlDto = exports.GenerateCredentialNameRequestQuery = exports.CredentialsGetManyRequestQuery = exports.CredentialsGetOneRequestQuery = exports.VariableListRequestDto = exports.CreateCredentialDto = exports.PushWorkFolderRequestDto = exports.PullWorkFolderRequestDto = exports.CommunityRegisteredRequestDto = exports.UserUpdateRequestDto = exports.SettingsUpdateRequestDto = exports.RoleChangeRequestDto = exports.PasswordUpdateRequestDto = exports.SamlToggleDto = exports.SamlPreferences = exports.SamlAcsDto = exports.ChangeUserRoleInProject = exports.AddUsersToProjectDto = exports.DeleteProjectDto = exports.UpdateProjectDto = exports.CreateProjectDto = exports.ChangePasswordRequestDto = exports.ResolvePasswordTokenQueryDto = exports.ForgotPasswordRequestDto = exports.DismissBannerRequestDto = exports.OwnerSetupRequestDto = exports.AcceptInvitationRequestDto = exports.InviteUsersRequestDto = exports.ActionResultRequestDto = exports.ResourceMapperFieldsRequestDto = exports.ResourceLocatorRequestDto = exports.OptionsRequestDto = exports.ResolveSignupTokenQueryDto = exports.LoginRequestDto = exports.BinaryDataSignedQueryDto = exports.BinaryDataQueryDto = exports.AiSessionRetrievalRequestDto = exports.AiFreeCreditsRequestDto = exports.AiApplySuggestionRequestDto = exports.AiBuilderChatRequestDto = exports.AiChatRequestDto = exports.AiAskRequestDto = void 0;
|
|
4
|
-
exports.DeleteDataStoreRowsQueryDto = exports.MoveDataStoreColumnDto = exports.AddDataStoreColumnDto = exports.AddDataStoreRowsDto = exports.CreateDataStoreColumnDto = exports.ListDataStoreContentQueryDto = exports.ListDataStoreQueryDto = exports.
|
|
4
|
+
exports.DeleteDataStoreRowsQueryDto = exports.MoveDataStoreColumnDto = exports.AddDataStoreColumnDto = exports.AddDataStoreRowsDto = exports.CreateDataStoreColumnDto = exports.ListDataStoreContentQueryDto = exports.ListDataStoreQueryDto = exports.UpsertDataStoreRowDto = exports.UpdateDataTableRowDto = exports.UpdateDataStoreDto = exports.CreateDataStoreDto = exports.OidcConfigDto = exports.CreateRoleDto = exports.UpdateRoleDto = exports.USERS_LIST_SORT_OPTIONS = exports.UsersListFilterDto = exports.PaginationDto = exports.InsightsDateFilterDto = exports.ListInsightsWorkflowQueryDto = exports.TransferFolderBodyDto = exports.ListFolderQueryDto = exports.DeleteFolderDto = void 0;
|
|
5
5
|
var ai_ask_request_dto_1 = require("./ai/ai-ask-request.dto");
|
|
6
6
|
Object.defineProperty(exports, "AiAskRequestDto", { enumerable: true, get: function () { return ai_ask_request_dto_1.AiAskRequestDto; } });
|
|
7
7
|
var ai_chat_request_dto_1 = require("./ai/ai-chat-request.dto");
|
|
@@ -117,6 +117,10 @@ Object.defineProperty(exports, "PaginationDto", { enumerable: true, get: functio
|
|
|
117
117
|
var users_list_filter_dto_1 = require("./user/users-list-filter.dto");
|
|
118
118
|
Object.defineProperty(exports, "UsersListFilterDto", { enumerable: true, get: function () { return users_list_filter_dto_1.UsersListFilterDto; } });
|
|
119
119
|
Object.defineProperty(exports, "USERS_LIST_SORT_OPTIONS", { enumerable: true, get: function () { return users_list_filter_dto_1.USERS_LIST_SORT_OPTIONS; } });
|
|
120
|
+
var update_role_dto_1 = require("./roles/update-role.dto");
|
|
121
|
+
Object.defineProperty(exports, "UpdateRoleDto", { enumerable: true, get: function () { return update_role_dto_1.UpdateRoleDto; } });
|
|
122
|
+
var create_role_dto_1 = require("./roles/create-role.dto");
|
|
123
|
+
Object.defineProperty(exports, "CreateRoleDto", { enumerable: true, get: function () { return create_role_dto_1.CreateRoleDto; } });
|
|
120
124
|
var config_dto_1 = require("./oidc/config.dto");
|
|
121
125
|
Object.defineProperty(exports, "OidcConfigDto", { enumerable: true, get: function () { return config_dto_1.OidcConfigDto; } });
|
|
122
126
|
var create_data_store_dto_1 = require("./data-store/create-data-store.dto");
|
|
@@ -124,9 +128,9 @@ Object.defineProperty(exports, "CreateDataStoreDto", { enumerable: true, get: fu
|
|
|
124
128
|
var update_data_store_dto_1 = require("./data-store/update-data-store.dto");
|
|
125
129
|
Object.defineProperty(exports, "UpdateDataStoreDto", { enumerable: true, get: function () { return update_data_store_dto_1.UpdateDataStoreDto; } });
|
|
126
130
|
var update_data_store_row_dto_1 = require("./data-store/update-data-store-row.dto");
|
|
127
|
-
Object.defineProperty(exports, "
|
|
128
|
-
var
|
|
129
|
-
Object.defineProperty(exports, "
|
|
131
|
+
Object.defineProperty(exports, "UpdateDataTableRowDto", { enumerable: true, get: function () { return update_data_store_row_dto_1.UpdateDataTableRowDto; } });
|
|
132
|
+
var upsert_data_store_row_dto_1 = require("./data-store/upsert-data-store-row.dto");
|
|
133
|
+
Object.defineProperty(exports, "UpsertDataStoreRowDto", { enumerable: true, get: function () { return upsert_data_store_row_dto_1.UpsertDataStoreRowDto; } });
|
|
130
134
|
var list_data_store_query_dto_1 = require("./data-store/list-data-store-query.dto");
|
|
131
135
|
Object.defineProperty(exports, "ListDataStoreQueryDto", { enumerable: true, get: function () { return list_data_store_query_dto_1.ListDataStoreQueryDto; } });
|
|
132
136
|
var list_data_store_content_query_dto_1 = require("./data-store/list-data-store-content-query.dto");
|
package/dist/dto/index.js.map
CHAN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B,qEAAsE;AAA7D,4HAAA,qBAAqB,OAAA;AAE9B,8EAAkF;AAAzE,uIAAA,4BAA4B,OAAA;AACrC,8DAAmE;AAA1D,wHAAA,qBAAqB,OAAA;AAE9B,8DAA4D;AAAnD,+GAAA,aAAa,OAAA;AACtB,sEAIsC;AAHrC,2HAAA,kBAAkB,OAAA;AAElB,gIAAA,uBAAuB,OAAA;AAGxB,2DAAwD;AAA/C,gHAAA,aAAa,OAAA;AACtB,2DAAwD;AAA/C,gHAAA,aAAa,OAAA;AAEtB,gDAAkD;AAAzC,2GAAA,aAAa,OAAA;AAEtB,4EAAwE;AAA/D,2HAAA,kBAAkB,OAAA;AAC3B,4EAAwE;AAA/D,2HAAA,kBAAkB,OAAA;AAC3B,oFAA+E;AAAtE,kIAAA,qBAAqB,OAAA;AAC9B,oFAA+E;AAAtE,kIAAA,qBAAqB,OAAA;AAC9B,oFAA+E;AAAtE,kIAAA,qBAAqB,OAAA;AAC9B,oGAA8F;AAArF,iJAAA,4BAA4B,OAAA;AACrC,0FAAqF;AAA5E,wIAAA,wBAAwB,OAAA;AACjC,gFAA2E;AAAlE,8HAAA,mBAAmB,OAAA;AAC5B,oFAA+E;AAAtE,kIAAA,qBAAqB,OAAA;AAC9B,sFAAiF;AAAxE,oIAAA,sBAAsB,OAAA;AAC/B,kGAA4F;AAAnF,+IAAA,2BAA2B,OAAA"}
|
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
2
|
+
import { Z } from 'zod-class';
|
|
3
|
+
declare const CreateRoleDto_base: Z.Class<{
|
|
3
4
|
displayName: z.ZodString;
|
|
4
5
|
description: z.ZodOptional<z.ZodString>;
|
|
5
6
|
roleType: z.ZodEnum<["project"]>;
|
|
6
7
|
scopes: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
scopes: string[];
|
|
9
|
-
displayName: string;
|
|
10
|
-
roleType: "project";
|
|
11
|
-
description?: string | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
scopes: string[];
|
|
14
|
-
displayName: string;
|
|
15
|
-
roleType: "project";
|
|
16
|
-
description?: string | undefined;
|
|
17
8
|
}>;
|
|
18
|
-
export
|
|
9
|
+
export declare class CreateRoleDto extends CreateRoleDto_base {
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CreateRoleDto = void 0;
|
|
4
4
|
const permissions_1 = require("@n8n/permissions");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
|
-
|
|
6
|
+
const zod_class_1 = require("zod-class");
|
|
7
|
+
class CreateRoleDto extends zod_class_1.Z.class({
|
|
7
8
|
displayName: zod_1.z.string().min(2).max(100),
|
|
8
9
|
description: zod_1.z.string().max(500).optional(),
|
|
9
10
|
roleType: zod_1.z.enum(['project']),
|
|
10
11
|
scopes: zod_1.z.array(permissions_1.scopeSchema),
|
|
11
|
-
})
|
|
12
|
+
}) {
|
|
13
|
+
}
|
|
14
|
+
exports.CreateRoleDto = CreateRoleDto;
|
|
12
15
|
//# sourceMappingURL=create-role.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-role.dto.js","sourceRoot":"","sources":["../../../src/dto/roles/create-role.dto.ts"],"names":[],"mappings":";;;AAAA,kDAA+C;AAC/C,6BAAwB;
|
|
1
|
+
{"version":3,"file":"create-role.dto.js","sourceRoot":"","sources":["../../../src/dto/roles/create-role.dto.ts"],"names":[],"mappings":";;;AAAA,kDAA+C;AAC/C,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,aAAc,SAAQ,aAAC,CAAC,KAAK,CAAC;IAC1C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACvC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAC3C,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,yBAAW,CAAC;CAC5B,CAAC;CAAG;AALL,sCAKK"}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
2
|
+
import { Z } from 'zod-class';
|
|
3
|
+
declare const UpdateRoleDto_base: Z.Class<{
|
|
3
4
|
displayName: z.ZodOptional<z.ZodString>;
|
|
4
5
|
description: z.ZodOptional<z.ZodString>;
|
|
5
6
|
scopes: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
description?: string | undefined;
|
|
8
|
-
scopes?: string[] | undefined;
|
|
9
|
-
displayName?: string | undefined;
|
|
10
|
-
}, {
|
|
11
|
-
description?: string | undefined;
|
|
12
|
-
scopes?: string[] | undefined;
|
|
13
|
-
displayName?: string | undefined;
|
|
14
7
|
}>;
|
|
15
|
-
export
|
|
8
|
+
export declare class UpdateRoleDto extends UpdateRoleDto_base {
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.UpdateRoleDto = void 0;
|
|
4
4
|
const permissions_1 = require("@n8n/permissions");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
|
-
|
|
6
|
+
const zod_class_1 = require("zod-class");
|
|
7
|
+
class UpdateRoleDto extends zod_class_1.Z.class({
|
|
7
8
|
displayName: zod_1.z.string().min(2).max(100).optional(),
|
|
8
9
|
description: zod_1.z.string().max(500).optional(),
|
|
9
10
|
scopes: zod_1.z.array(permissions_1.scopeSchema).optional(),
|
|
10
|
-
})
|
|
11
|
+
}) {
|
|
12
|
+
}
|
|
13
|
+
exports.UpdateRoleDto = UpdateRoleDto;
|
|
11
14
|
//# sourceMappingURL=update-role.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-role.dto.js","sourceRoot":"","sources":["../../../src/dto/roles/update-role.dto.ts"],"names":[],"mappings":";;;AAAA,kDAA+C;AAC/C,6BAAwB;
|
|
1
|
+
{"version":3,"file":"update-role.dto.js","sourceRoot":"","sources":["../../../src/dto/roles/update-role.dto.ts"],"names":[],"mappings":";;;AAAA,kDAA+C;AAC/C,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,aAAc,SAAQ,aAAC,CAAC,KAAK,CAAC;IAC1C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAClD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAC3C,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,yBAAW,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC;CAAG;AAJL,sCAIK"}
|
package/dist/index.d.ts
CHANGED
|
@@ -18,3 +18,4 @@ export { type SourceControlledFile, SOURCE_CONTROL_FILE_LOCATION, SOURCE_CONTROL
|
|
|
18
18
|
export { type InsightsSummaryType, type InsightsSummaryUnit, type InsightsSummary, type InsightsByWorkflow, type InsightsByTime, type InsightsDateRange, type RestrictedInsightsByTime, } from './schemas/insights.schema';
|
|
19
19
|
export { ROLE, type Role, type User, type UsersList, usersListSchema, } from './schemas/user.schema';
|
|
20
20
|
export { DATA_STORE_COLUMN_REGEX, type DataStore, type DataStoreColumn, type DataStoreCreateColumnSchema, type DataStoreListFilter, type DataStoreListOptions, dateTimeSchema, } from './schemas/data-store.schema';
|
|
21
|
+
export type { DataTableFilter, DataTableFilterConditionType, } from './schemas/data-table-filter.schema';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const FilterConditionSchema: z.ZodUnion<[z.ZodLiteral<"eq">, z.ZodLiteral<"neq">, z.ZodLiteral<"like">, z.ZodLiteral<"ilike">, z.ZodLiteral<"gt">, z.ZodLiteral<"gte">, z.ZodLiteral<"lt">, z.ZodLiteral<"lte">]>;
|
|
3
|
+
export type DataTableFilterConditionType = z.infer<typeof FilterConditionSchema>;
|
|
4
|
+
export declare const dataTableFilterRecordSchema: z.ZodObject<{
|
|
5
|
+
columnName: z.ZodString;
|
|
6
|
+
condition: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"eq">, z.ZodLiteral<"neq">, z.ZodLiteral<"like">, z.ZodLiteral<"ilike">, z.ZodLiteral<"gt">, z.ZodLiteral<"gte">, z.ZodLiteral<"lt">, z.ZodLiteral<"lte">]>>;
|
|
7
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull]>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
value: string | number | boolean | Date | null;
|
|
10
|
+
columnName: string;
|
|
11
|
+
condition: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte";
|
|
12
|
+
}, {
|
|
13
|
+
value: string | number | boolean | Date | null;
|
|
14
|
+
columnName: string;
|
|
15
|
+
condition?: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte" | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const dataTableFilterTypeSchema: z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>;
|
|
18
|
+
export declare const dataTableFilterSchema: z.ZodObject<{
|
|
19
|
+
type: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"and">, z.ZodLiteral<"or">]>>;
|
|
20
|
+
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
21
|
+
columnName: z.ZodString;
|
|
22
|
+
condition: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"eq">, z.ZodLiteral<"neq">, z.ZodLiteral<"like">, z.ZodLiteral<"ilike">, z.ZodLiteral<"gt">, z.ZodLiteral<"gte">, z.ZodLiteral<"lt">, z.ZodLiteral<"lte">]>>;
|
|
23
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate, z.ZodNull]>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
value: string | number | boolean | Date | null;
|
|
26
|
+
columnName: string;
|
|
27
|
+
condition: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte";
|
|
28
|
+
}, {
|
|
29
|
+
value: string | number | boolean | Date | null;
|
|
30
|
+
columnName: string;
|
|
31
|
+
condition?: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte" | undefined;
|
|
32
|
+
}>, "many">>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
type: "or" | "and";
|
|
35
|
+
filters: {
|
|
36
|
+
value: string | number | boolean | Date | null;
|
|
37
|
+
columnName: string;
|
|
38
|
+
condition: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte";
|
|
39
|
+
}[];
|
|
40
|
+
}, {
|
|
41
|
+
type?: "or" | "and" | undefined;
|
|
42
|
+
filters?: {
|
|
43
|
+
value: string | number | boolean | Date | null;
|
|
44
|
+
columnName: string;
|
|
45
|
+
condition?: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte" | undefined;
|
|
46
|
+
}[] | undefined;
|
|
47
|
+
}>;
|
|
48
|
+
export type DataTableFilter = z.infer<typeof dataTableFilterSchema>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dataTableFilterSchema = exports.dataTableFilterTypeSchema = exports.dataTableFilterRecordSchema = exports.FilterConditionSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const data_store_schema_1 = require("./data-store.schema");
|
|
6
|
+
exports.FilterConditionSchema = zod_1.z.union([
|
|
7
|
+
zod_1.z.literal('eq'),
|
|
8
|
+
zod_1.z.literal('neq'),
|
|
9
|
+
zod_1.z.literal('like'),
|
|
10
|
+
zod_1.z.literal('ilike'),
|
|
11
|
+
zod_1.z.literal('gt'),
|
|
12
|
+
zod_1.z.literal('gte'),
|
|
13
|
+
zod_1.z.literal('lt'),
|
|
14
|
+
zod_1.z.literal('lte'),
|
|
15
|
+
]);
|
|
16
|
+
exports.dataTableFilterRecordSchema = zod_1.z.object({
|
|
17
|
+
columnName: data_store_schema_1.dataStoreColumnNameSchema,
|
|
18
|
+
condition: exports.FilterConditionSchema.default('eq'),
|
|
19
|
+
value: zod_1.z.union([zod_1.z.string(), zod_1.z.number(), zod_1.z.boolean(), zod_1.z.date(), zod_1.z.null()]),
|
|
20
|
+
});
|
|
21
|
+
exports.dataTableFilterTypeSchema = zod_1.z.union([zod_1.z.literal('and'), zod_1.z.literal('or')]);
|
|
22
|
+
exports.dataTableFilterSchema = zod_1.z.object({
|
|
23
|
+
type: exports.dataTableFilterTypeSchema.default('and'),
|
|
24
|
+
filters: zod_1.z.array(exports.dataTableFilterRecordSchema).default([]),
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=data-table-filter.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-table-filter.schema.js","sourceRoot":"","sources":["../../src/schemas/data-table-filter.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,2DAAgE;AAEnD,QAAA,qBAAqB,GAAG,OAAC,CAAC,KAAK,CAAC;IAC5C,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACf,OAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAChB,OAA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
11
|
],
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@n8n/typescript-config": "1.3.0",
|
|
14
|
-
"@n8n/config": "1.
|
|
14
|
+
"@n8n/config": "1.54.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"xss": "1.0.15",
|
|
18
18
|
"zod": "3.25.67",
|
|
19
19
|
"zod-class": "0.0.16",
|
|
20
|
-
"n8n
|
|
21
|
-
"
|
|
20
|
+
"@n8n/permissions": "0.34.0",
|
|
21
|
+
"n8n-workflow": "1.108.0"
|
|
22
22
|
},
|
|
23
23
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
24
24
|
"homepage": "https://n8n.io",
|