@n8n/api-types 0.43.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/credentials/create-credential.dto.d.ts +1 -0
- package/dist/dto/credentials/create-credential.dto.js +1 -0
- package/dist/dto/credentials/create-credential.dto.js.map +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 +2 -35
- package/dist/dto/data-store/list-data-store-content-query.dto.js +2 -12
- 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 -3
- package/dist/dto/data-store/update-data-store-row.dto.js +10 -9
- 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/dynamic-node-parameters/action-result-request.dto.d.ts +4 -0
- package/dist/dto/dynamic-node-parameters/base-dynamic-parameters-request.dto.d.ts +1 -0
- package/dist/dto/dynamic-node-parameters/base-dynamic-parameters-request.dto.js +1 -0
- package/dist/dto/dynamic-node-parameters/base-dynamic-parameters-request.dto.js.map +1 -1
- package/dist/dto/dynamic-node-parameters/options-request.dto.d.ts +4 -0
- package/dist/dto/dynamic-node-parameters/resource-locator-request.dto.d.ts +4 -0
- package/dist/dto/dynamic-node-parameters/resource-mapper-fields-request.dto.d.ts +4 -0
- package/dist/dto/index.d.ts +4 -3
- package/dist/dto/index.js +8 -4
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/invitation/invite-users-request.dto.d.ts +5 -5
- package/dist/dto/invitation/invite-users-request.dto.js +2 -2
- package/dist/dto/invitation/invite-users-request.dto.js.map +1 -1
- package/dist/dto/project/add-users-to-project.dto.d.ts +3 -3
- package/dist/dto/project/change-user-role-in-project.dto.d.ts +1 -1
- package/dist/dto/project/change-user-role-in-project.dto.js +1 -1
- package/dist/dto/project/change-user-role-in-project.dto.js.map +1 -1
- package/dist/dto/project/create-project.dto.d.ts +7 -5
- package/dist/dto/project/create-project.dto.js +2 -0
- package/dist/dto/project/create-project.dto.js.map +1 -1
- package/dist/dto/project/update-project.dto.d.ts +3 -3
- package/dist/dto/roles/create-role.dto.d.ts +11 -0
- package/dist/dto/roles/create-role.dto.js +15 -0
- package/dist/dto/roles/create-role.dto.js.map +1 -0
- package/dist/dto/roles/update-role.dto.d.ts +10 -0
- package/dist/dto/roles/update-role.dto.js +14 -0
- package/dist/dto/roles/update-role.dto.js.map +1 -0
- package/dist/dto/user/role-change-request.dto.d.ts +1 -2
- package/dist/dto/user/role-change-request.dto.js +5 -3
- package/dist/dto/user/role-change-request.dto.js.map +1 -1
- package/dist/frontend-settings.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js.map +1 -1
- package/dist/schemas/data-store.schema.js +3 -3
- package/dist/schemas/data-store.schema.js.map +1 -1
- 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/dist/schemas/project.schema.d.ts +3 -3
- package/dist/schemas/project.schema.js +1 -1
- package/dist/schemas/project.schema.js.map +1 -1
- package/dist/schemas/user.schema.d.ts +15 -15
- package/package.json +4 -4
- package/dist/dto/data-store/upsert-data-store-rows.dto.d.ts +0 -9
- package/dist/dto/data-store/upsert-data-store-rows.dto.js +0 -14
- package/dist/dto/data-store/upsert-data-store-rows.dto.js.map +0 -1
|
@@ -5,6 +5,7 @@ declare const CreateCredentialDto_base: Z.Class<{
|
|
|
5
5
|
type: z.ZodString;
|
|
6
6
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7
7
|
projectId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
uiContext: z.ZodOptional<z.ZodString>;
|
|
8
9
|
}>;
|
|
9
10
|
export declare class CreateCredentialDto extends CreateCredentialDto_base {
|
|
10
11
|
}
|
|
@@ -8,6 +8,7 @@ class CreateCredentialDto extends zod_class_1.Z.class({
|
|
|
8
8
|
type: zod_1.z.string().min(1).max(128),
|
|
9
9
|
data: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
10
10
|
projectId: zod_1.z.string().optional(),
|
|
11
|
+
uiContext: zod_1.z.string().optional(),
|
|
11
12
|
}) {
|
|
12
13
|
}
|
|
13
14
|
exports.CreateCredentialDto = CreateCredentialDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-credential.dto.js","sourceRoot":"","sources":["../../../src/dto/credentials/create-credential.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,mBAAoB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAChD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAChC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAChC,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC;IACvC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC;CAAG;
|
|
1
|
+
{"version":3,"file":"create-credential.dto.js","sourceRoot":"","sources":["../../../src/dto/credentials/create-credential.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,mBAAoB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAChD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAChC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAChC,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC;IACvC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC;CAAG;AANL,kDAMK"}
|
|
@@ -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,47 +1,14 @@
|
|
|
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">]>;
|
|
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">]>>;
|
|
11
|
-
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodDate]>;
|
|
12
|
-
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
value: string | number | boolean | Date;
|
|
14
|
-
columnName: string;
|
|
15
|
-
condition: "eq" | "neq";
|
|
16
|
-
}, {
|
|
17
|
-
value: string | number | boolean | Date;
|
|
18
|
-
columnName: string;
|
|
19
|
-
condition?: "eq" | "neq" | undefined;
|
|
20
|
-
}>, "many">>;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
type: "or" | "and";
|
|
23
|
-
filters: {
|
|
24
|
-
value: string | number | boolean | Date;
|
|
25
|
-
columnName: string;
|
|
26
|
-
condition: "eq" | "neq";
|
|
27
|
-
}[];
|
|
28
|
-
}, {
|
|
29
|
-
type?: "or" | "and" | undefined;
|
|
30
|
-
filters?: {
|
|
31
|
-
value: string | number | boolean | Date;
|
|
32
|
-
columnName: string;
|
|
33
|
-
condition?: "eq" | "neq" | 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>>;
|
|
39
6
|
filter: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodString>, {
|
|
40
7
|
type: "or" | "and";
|
|
41
8
|
filters: {
|
|
42
|
-
value: string | number | boolean | Date;
|
|
9
|
+
value: string | number | boolean | Date | null;
|
|
43
10
|
columnName: string;
|
|
44
|
-
condition: "eq" | "neq";
|
|
11
|
+
condition: "eq" | "neq" | "like" | "ilike" | "gt" | "gte" | "lt" | "lte";
|
|
45
12
|
}[];
|
|
46
13
|
} | undefined, string | undefined>>;
|
|
47
14
|
sortBy: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodString>, readonly [string, "ASC" | "DESC"] | undefined, string | undefined>>;
|
|
@@ -5,18 +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([zod_1.z.literal('eq'), zod_1.z.literal('neq')]);
|
|
10
|
-
const filterRecord = zod_1.z.object({
|
|
11
|
-
columnName: data_store_schema_1.dataStoreColumnNameSchema,
|
|
12
|
-
condition: FilterConditionSchema.default('eq'),
|
|
13
|
-
value: zod_1.z.union([zod_1.z.string(), zod_1.z.number(), zod_1.z.boolean(), zod_1.z.date()]),
|
|
14
|
-
});
|
|
15
|
-
const chainedFilterSchema = zod_1.z.union([zod_1.z.literal('and'), zod_1.z.literal('or')]);
|
|
16
|
-
const filterSchema = zod_1.z.object({
|
|
17
|
-
type: chainedFilterSchema.default('and'),
|
|
18
|
-
filters: zod_1.z.array(filterRecord).default([]),
|
|
19
|
-
});
|
|
20
10
|
const filterValidator = zod_1.z
|
|
21
11
|
.string()
|
|
22
12
|
.optional()
|
|
@@ -26,7 +16,7 @@ const filterValidator = zod_1.z
|
|
|
26
16
|
try {
|
|
27
17
|
const parsed = (0, n8n_workflow_1.jsonParse)(val);
|
|
28
18
|
try {
|
|
29
|
-
return
|
|
19
|
+
return data_table_filter_schema_1.dataTableFilterSchema.parse(parsed);
|
|
30
20
|
}
|
|
31
21
|
catch (e) {
|
|
32
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,
|
|
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,qFAA+E;AAC/E,iEAAgE;AAEhE,MAAM,eAAe,GAAG,OAAC;KACvB,MAAM,EAAE;KACR,QAAQ,EAAE;KACV,SAAS,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;IACvB,IAAI,CAAC,GAAG;QAAE,OAAO,SAAS,CAAC;IAC3B,IAAI,CAAC;QACJ,MAAM,MAAM,GAAY,IAAA,wBAAS,EAAC,GAAG,CAAC,CAAC;QACvC,IAAI,CAAC;YACJ,OAAO,gDAAqB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC5C,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACZ,GAAG,CAAC,QAAQ,CAAC;gBACZ,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;gBAC3B,OAAO,EAAE,uBAAuB;gBAChC,IAAI,EAAE,CAAC,QAAQ,CAAC;aAChB,CAAC,CAAC;YACH,OAAO,OAAC,CAAC,KAAK,CAAC;QAChB,CAAC;IACF,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACZ,GAAG,CAAC,QAAQ,CAAC;YACZ,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;YAC3B,OAAO,EAAE,uBAAuB;YAChC,IAAI,EAAE,CAAC,QAAQ,CAAC;SAChB,CAAC,CAAC;QACH,OAAO,OAAC,CAAC,KAAK,CAAC;IAChB,CAAC;AACF,CAAC,CAAC,CAAC;AAEJ,MAAM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AC;AAEJ,MAAa,4BAA6B,SAAQ,aAAC,CAAC,KAAK,CAAC;IACzD,IAAI,EAAE,iCAAgB,CAAC,IAAI,CAAC,QAAQ,EAAE;IACtC,IAAI,EAAE,iCAAgB,CAAC,IAAI,CAAC,QAAQ,EAAE;IACtC,MAAM,EAAE,eAAe,CAAC,QAAQ,EAAE;IAClC,MAAM,EAAE,eAAe,CAAC,QAAQ,EAAE;CAClC,CAAC;CAAG;AALL,oEAKK"}
|
|
@@ -1,9 +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>>;
|
|
49
|
+
returnData: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
6
50
|
}>;
|
|
7
|
-
export declare class
|
|
51
|
+
export declare class UpdateDataTableRowDto extends UpdateDataTableRowDto_base {
|
|
8
52
|
}
|
|
9
53
|
export {};
|
|
@@ -1,22 +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().optional().default(false),
|
|
18
19
|
};
|
|
19
|
-
class
|
|
20
|
+
class UpdateDataTableRowDto extends zod_class_1.Z.class(updateDataTableRowShape) {
|
|
20
21
|
}
|
|
21
|
-
exports.
|
|
22
|
+
exports.UpdateDataTableRowDto = UpdateDataTableRowDto;
|
|
22
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"}
|
|
@@ -8,6 +8,7 @@ declare const ActionResultRequestDto_base: {
|
|
|
8
8
|
new (input: any): T;
|
|
9
9
|
[key: string]: any;
|
|
10
10
|
}) => z.ZodType<T>;
|
|
11
|
+
ProjectId: z.ZodOptional<z.ZodString>;
|
|
11
12
|
Path: z.ZodString;
|
|
12
13
|
NodeTypeAndVersion: z.ZodObject<{
|
|
13
14
|
name: z.ZodString;
|
|
@@ -38,6 +39,7 @@ declare const ActionResultRequestDto_base: {
|
|
|
38
39
|
CurrentNodeParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
39
40
|
MethodName: z.ZodOptional<z.ZodString>;
|
|
40
41
|
Credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
42
|
+
ProjectId: z.ZodOptional<z.ZodString>;
|
|
41
43
|
};
|
|
42
44
|
} & import("zod-class").ZodClass<{
|
|
43
45
|
handler: string;
|
|
@@ -53,6 +55,7 @@ declare const ActionResultRequestDto_base: {
|
|
|
53
55
|
[x: string]: any;
|
|
54
56
|
};
|
|
55
57
|
} & {
|
|
58
|
+
projectId?: string | undefined;
|
|
56
59
|
methodName?: string | undefined;
|
|
57
60
|
credentials?: {
|
|
58
61
|
[x: string]: any;
|
|
@@ -76,6 +79,7 @@ declare const ActionResultRequestDto_base: {
|
|
|
76
79
|
currentNodeParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
77
80
|
methodName: z.ZodOptional<z.ZodString>;
|
|
78
81
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
82
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
79
83
|
}, "payload" | "handler"> & {
|
|
80
84
|
handler: z.ZodString;
|
|
81
85
|
payload: z.ZodOptional<z.ZodUnion<[z.ZodObject<{}, "strip", z.ZodAny, z.objectOutputType<{}, z.ZodAny, "strip">, z.objectInputType<{}, z.ZodAny, "strip">>, z.ZodString]>>;
|
|
@@ -15,6 +15,7 @@ declare const BaseDynamicParametersRequestDto_base: Z.Class<{
|
|
|
15
15
|
currentNodeParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
16
16
|
methodName: z.ZodOptional<z.ZodString>;
|
|
17
17
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
18
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
18
19
|
}>;
|
|
19
20
|
export declare class BaseDynamicParametersRequestDto extends BaseDynamicParametersRequestDto_base {
|
|
20
21
|
}
|
|
@@ -13,6 +13,7 @@ class BaseDynamicParametersRequestDto extends zod_class_1.Z.class({
|
|
|
13
13
|
currentNodeParameters: zod_1.z.record(zod_1.z.string(), zod_1.z.any()),
|
|
14
14
|
methodName: zod_1.z.string().optional(),
|
|
15
15
|
credentials: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional(),
|
|
16
|
+
projectId: zod_1.z.string().optional(),
|
|
16
17
|
}) {
|
|
17
18
|
}
|
|
18
19
|
exports.BaseDynamicParametersRequestDto = BaseDynamicParametersRequestDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-dynamic-parameters-request.dto.js","sourceRoot":"","sources":["../../../src/dto/dynamic-node-parameters/base-dynamic-parameters-request.dto.ts"],"names":[],"mappings":";;;AACA,6BAAwB;AACxB,yCAA8B;AAE9B,2EAAsE;AAEtE,MAAa,+BAAgC,SAAQ,aAAC,CAAC,KAAK,CAAC;IAC5D,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,kBAAkB,EAAE,OAAC,CAAC,MAAM,CAAC;QAC5B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;QAChB,OAAO,EAAE,uCAAiB;KAC1B,CAA2C;IAC5C,qBAAqB,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAsC;IACzF,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAElD;
|
|
1
|
+
{"version":3,"file":"base-dynamic-parameters-request.dto.js","sourceRoot":"","sources":["../../../src/dto/dynamic-node-parameters/base-dynamic-parameters-request.dto.ts"],"names":[],"mappings":";;;AACA,6BAAwB;AACxB,yCAA8B;AAE9B,2EAAsE;AAEtE,MAAa,+BAAgC,SAAQ,aAAC,CAAC,KAAK,CAAC;IAC5D,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,kBAAkB,EAAE,OAAC,CAAC,MAAM,CAAC;QAC5B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;QAChB,OAAO,EAAE,uCAAiB;KAC1B,CAA2C;IAC5C,qBAAqB,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAsC;IACzF,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAElD;IACD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC;CAAG;AAZL,0EAYK"}
|
|
@@ -8,6 +8,7 @@ declare const OptionsRequestDto_base: {
|
|
|
8
8
|
new (input: any): T;
|
|
9
9
|
[key: string]: any;
|
|
10
10
|
}) => z.ZodType<T>;
|
|
11
|
+
ProjectId: z.ZodOptional<z.ZodString>;
|
|
11
12
|
Path: z.ZodString;
|
|
12
13
|
NodeTypeAndVersion: z.ZodObject<{
|
|
13
14
|
name: z.ZodString;
|
|
@@ -38,6 +39,7 @@ declare const OptionsRequestDto_base: {
|
|
|
38
39
|
CurrentNodeParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
39
40
|
MethodName: z.ZodOptional<z.ZodString>;
|
|
40
41
|
Credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
42
|
+
ProjectId: z.ZodOptional<z.ZodString>;
|
|
41
43
|
};
|
|
42
44
|
} & import("zod-class").ZodClass<{} & {
|
|
43
45
|
loadOptions?: ILoadOptions | undefined;
|
|
@@ -51,6 +53,7 @@ declare const OptionsRequestDto_base: {
|
|
|
51
53
|
[x: string]: any;
|
|
52
54
|
};
|
|
53
55
|
} & {
|
|
56
|
+
projectId?: string | undefined;
|
|
54
57
|
methodName?: string | undefined;
|
|
55
58
|
credentials?: {
|
|
56
59
|
[x: string]: any;
|
|
@@ -72,6 +75,7 @@ declare const OptionsRequestDto_base: {
|
|
|
72
75
|
currentNodeParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
73
76
|
methodName: z.ZodOptional<z.ZodString>;
|
|
74
77
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
78
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
75
79
|
}, "loadOptions"> & {
|
|
76
80
|
loadOptions: z.ZodType<ILoadOptions | undefined>;
|
|
77
81
|
}>;
|
|
@@ -9,6 +9,7 @@ declare const ResourceLocatorRequestDto_base: {
|
|
|
9
9
|
new (input: any): T;
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
}) => z.ZodType<T>;
|
|
12
|
+
ProjectId: z.ZodOptional<z.ZodString>;
|
|
12
13
|
Path: z.ZodString;
|
|
13
14
|
NodeTypeAndVersion: z.ZodObject<{
|
|
14
15
|
name: z.ZodString;
|
|
@@ -39,6 +40,7 @@ declare const ResourceLocatorRequestDto_base: {
|
|
|
39
40
|
CurrentNodeParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
40
41
|
MethodName: z.ZodOptional<z.ZodString>;
|
|
41
42
|
Credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
43
|
+
ProjectId: z.ZodOptional<z.ZodString>;
|
|
42
44
|
};
|
|
43
45
|
} & import("zod-class").ZodClass<{
|
|
44
46
|
methodName: string;
|
|
@@ -55,6 +57,7 @@ declare const ResourceLocatorRequestDto_base: {
|
|
|
55
57
|
[x: string]: any;
|
|
56
58
|
};
|
|
57
59
|
} & {
|
|
60
|
+
projectId?: string | undefined;
|
|
58
61
|
methodName?: string | undefined;
|
|
59
62
|
credentials?: {
|
|
60
63
|
[x: string]: any;
|
|
@@ -79,6 +82,7 @@ declare const ResourceLocatorRequestDto_base: {
|
|
|
79
82
|
currentNodeParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
80
83
|
methodName: z.ZodOptional<z.ZodString>;
|
|
81
84
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
85
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
82
86
|
}, "filter" | "methodName" | "paginationToken"> & {
|
|
83
87
|
methodName: z.ZodString;
|
|
84
88
|
filter: z.ZodOptional<z.ZodString>;
|
|
@@ -7,6 +7,7 @@ declare const ResourceMapperFieldsRequestDto_base: {
|
|
|
7
7
|
new (input: any): T;
|
|
8
8
|
[key: string]: any;
|
|
9
9
|
}) => z.ZodType<T>;
|
|
10
|
+
ProjectId: z.ZodOptional<z.ZodString>;
|
|
10
11
|
Path: z.ZodString;
|
|
11
12
|
NodeTypeAndVersion: z.ZodObject<{
|
|
12
13
|
name: z.ZodString;
|
|
@@ -37,6 +38,7 @@ declare const ResourceMapperFieldsRequestDto_base: {
|
|
|
37
38
|
CurrentNodeParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
38
39
|
MethodName: z.ZodOptional<z.ZodString>;
|
|
39
40
|
Credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
41
|
+
ProjectId: z.ZodOptional<z.ZodString>;
|
|
40
42
|
};
|
|
41
43
|
} & import("zod-class").ZodClass<{
|
|
42
44
|
methodName: string;
|
|
@@ -50,6 +52,7 @@ declare const ResourceMapperFieldsRequestDto_base: {
|
|
|
50
52
|
[x: string]: any;
|
|
51
53
|
};
|
|
52
54
|
} & {
|
|
55
|
+
projectId?: string | undefined;
|
|
53
56
|
methodName?: string | undefined;
|
|
54
57
|
credentials?: {
|
|
55
58
|
[x: string]: any;
|
|
@@ -71,6 +74,7 @@ declare const ResourceMapperFieldsRequestDto_base: {
|
|
|
71
74
|
currentNodeParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
72
75
|
methodName: z.ZodOptional<z.ZodString>;
|
|
73
76
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
77
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
74
78
|
}, "methodName"> & {
|
|
75
79
|
methodName: z.ZodString;
|
|
76
80
|
}>;
|
package/dist/dto/index.d.ts
CHANGED
|
@@ -55,14 +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 { UpdateRoleDto } from './roles/update-role.dto';
|
|
59
|
+
export { CreateRoleDto } from './roles/create-role.dto';
|
|
58
60
|
export { OidcConfigDto } from './oidc/config.dto';
|
|
59
61
|
export { CreateDataStoreDto } from './data-store/create-data-store.dto';
|
|
60
62
|
export { UpdateDataStoreDto } from './data-store/update-data-store.dto';
|
|
61
|
-
export {
|
|
62
|
-
export {
|
|
63
|
+
export { UpdateDataTableRowDto } from './data-store/update-data-store-row.dto';
|
|
64
|
+
export { UpsertDataStoreRowDto } from './data-store/upsert-data-store-row.dto';
|
|
63
65
|
export { ListDataStoreQueryDto } from './data-store/list-data-store-query.dto';
|
|
64
66
|
export { ListDataStoreContentQueryDto } from './data-store/list-data-store-content-query.dto';
|
|
65
|
-
export type { ListDataStoreContentFilter } from './data-store/list-data-store-content-query.dto';
|
|
66
67
|
export { CreateDataStoreColumnDto } from './data-store/create-data-store-column.dto';
|
|
67
68
|
export { AddDataStoreRowsDto } from './data-store/add-data-store-rows.dto';
|
|
68
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;AAAA,8DAA0D;AAAjD,qHAAA,eAAe,OAAA;AACxB,gEAA4D;AAAnD,uHAAA,gBAAgB,OAAA;AACzB,kEAAoE;AAA3D,+HAAA,uBAAuB,OAAA;AAChC,wFAAmF;AAA1E,8IAAA,2BAA2B,OAAA;AACpC,gFAA2E;AAAlE,sIAAA,uBAAuB,OAAA;AAChC,0FAAqF;AAA5E,gJAAA,4BAA4B,OAAA;AAErC,6EAAyE;AAAhE,2HAAA,kBAAkB,OAAA;AAC3B,2FAAsF;AAA7E,wIAAA,wBAAwB,OAAA;AAEjC,8DAA2D;AAAlD,oHAAA,eAAe,OAAA;AACxB,wFAAmF;AAA1E,4IAAA,0BAA0B,OAAA;AAEnC,qFAAkF;AAAzE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tB,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,21 +1,21 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
declare const invitedUserSchema: z.ZodObject<{
|
|
3
3
|
email: z.ZodString;
|
|
4
|
-
role: z.ZodDefault<z.ZodEnum<["global:
|
|
4
|
+
role: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["global:admin", "global:member"]>, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
6
|
email: string;
|
|
7
|
-
role:
|
|
7
|
+
role: string;
|
|
8
8
|
}, {
|
|
9
9
|
email: string;
|
|
10
|
-
role?:
|
|
10
|
+
role?: string | undefined;
|
|
11
11
|
}>;
|
|
12
12
|
export declare class InviteUsersRequestDto extends Array<z.infer<typeof invitedUserSchema>> {
|
|
13
13
|
static safeParse(data: unknown): z.SafeParseReturnType<{
|
|
14
14
|
email: string;
|
|
15
|
-
role?:
|
|
15
|
+
role?: string | undefined;
|
|
16
16
|
}[], {
|
|
17
17
|
email: string;
|
|
18
|
-
role:
|
|
18
|
+
role: string;
|
|
19
19
|
}[]>;
|
|
20
20
|
}
|
|
21
21
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InviteUsersRequestDto = void 0;
|
|
4
|
+
const permissions_1 = require("@n8n/permissions");
|
|
4
5
|
const zod_1 = require("zod");
|
|
5
|
-
const roleSchema = zod_1.z.enum(['global:member', 'global:admin']);
|
|
6
6
|
const invitedUserSchema = zod_1.z.object({
|
|
7
7
|
email: zod_1.z.string().email(),
|
|
8
|
-
role:
|
|
8
|
+
role: permissions_1.assignableGlobalRoleSchema.default('global:member'),
|
|
9
9
|
});
|
|
10
10
|
const invitationsSchema = zod_1.z.array(invitedUserSchema);
|
|
11
11
|
class InviteUsersRequestDto extends Array {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invite-users-request.dto.js","sourceRoot":"","sources":["../../../src/dto/invitation/invite-users-request.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,
|
|
1
|
+
{"version":3,"file":"invite-users-request.dto.js","sourceRoot":"","sources":["../../../src/dto/invitation/invite-users-request.dto.ts"],"names":[],"mappings":";;;AAAA,kDAA8D;AAC9D,6BAAwB;AAExB,MAAM,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACzB,IAAI,EAAE,wCAA0B,CAAC,OAAO,CAAC,eAAe,CAAC;CACzD,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,OAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;AAErD,MAAa,qBAAsB,SAAQ,KAAwC;IAClF,MAAM,CAAC,SAAS,CAAC,IAAa;QAC7B,OAAO,iBAAiB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;CACD;AAJD,sDAIC"}
|