@n8n/api-types 0.31.0 → 0.32.1
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/insights/list-workflow-query.dto.d.ts +2 -1
- package/dist/dto/insights/list-workflow-query.dto.js +3 -1
- package/dist/dto/insights/list-workflow-query.dto.js.map +1 -1
- package/dist/dto/pagination/pagination.dto.d.ts +1 -0
- package/dist/dto/pagination/pagination.dto.js +5 -4
- package/dist/dto/pagination/pagination.dto.js.map +1 -1
- package/dist/frontend-settings.d.ts +0 -3
- package/package.json +4 -4
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Z } from 'zod-class';
|
|
3
|
+
export declare const MAX_ITEMS_PER_PAGE = 100;
|
|
3
4
|
declare const ListInsightsWorkflowQueryDto_base: Z.Class<{
|
|
5
|
+
take: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>, number, string | undefined>, number, string | undefined>;
|
|
4
6
|
dateRange: z.ZodOptional<z.ZodEnum<["day", "week", "2weeks", "month", "quarter", "6months", "year"]>>;
|
|
5
7
|
sortBy: z.ZodOptional<z.ZodEnum<["total:asc", "total:desc", "succeeded:asc", "succeeded:desc", "failed:asc", "failed:desc", "failureRate:asc", "failureRate:desc", "timeSaved:asc", "timeSaved:desc", "runTime:asc", "runTime:desc", "averageRunTime:asc", "averageRunTime:desc"]>>;
|
|
6
8
|
skip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>, number, string | undefined>;
|
|
7
|
-
take: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>, number, string | undefined>, number, string | undefined>;
|
|
8
9
|
}>;
|
|
9
10
|
export declare class ListInsightsWorkflowQueryDto extends ListInsightsWorkflowQueryDto_base {
|
|
10
11
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListInsightsWorkflowQueryDto = void 0;
|
|
3
|
+
exports.ListInsightsWorkflowQueryDto = exports.MAX_ITEMS_PER_PAGE = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_class_1 = require("zod-class");
|
|
6
6
|
const date_filter_dto_1 = require("./date-filter.dto");
|
|
7
7
|
const pagination_dto_1 = require("../pagination/pagination.dto");
|
|
8
|
+
exports.MAX_ITEMS_PER_PAGE = 100;
|
|
8
9
|
const VALID_SORT_OPTIONS = [
|
|
9
10
|
'total:asc',
|
|
10
11
|
'total:desc',
|
|
@@ -26,6 +27,7 @@ const sortByValidator = zod_1.z
|
|
|
26
27
|
.optional();
|
|
27
28
|
class ListInsightsWorkflowQueryDto extends zod_class_1.Z.class({
|
|
28
29
|
...pagination_dto_1.paginationSchema,
|
|
30
|
+
take: (0, pagination_dto_1.createTakeValidator)(exports.MAX_ITEMS_PER_PAGE),
|
|
29
31
|
dateRange: date_filter_dto_1.InsightsDateFilterDto.shape.dateRange,
|
|
30
32
|
sortBy: sortByValidator,
|
|
31
33
|
}) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-workflow-query.dto.js","sourceRoot":"","sources":["../../../src/dto/insights/list-workflow-query.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,uDAA0D;AAC1D,
|
|
1
|
+
{"version":3,"file":"list-workflow-query.dto.js","sourceRoot":"","sources":["../../../src/dto/insights/list-workflow-query.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,uDAA0D;AAC1D,iEAAqF;AAExE,QAAA,kBAAkB,GAAG,GAAG,CAAC;AAEtC,MAAM,kBAAkB,GAAG;IAC1B,WAAW;IACX,YAAY;IACZ,eAAe;IACf,gBAAgB;IAChB,YAAY;IACZ,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IAClB,eAAe;IACf,gBAAgB;IAChB,aAAa;IACb,cAAc;IACd,oBAAoB;IACpB,qBAAqB;CACZ,CAAC;AAMX,MAAM,eAAe,GAAG,OAAC;KACvB,IAAI,CAAC,kBAAkB,EAAE,EAAE,OAAO,EAAE,0BAA0B,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;KAChG,QAAQ,EAAE,CAAC;AAEb,MAAa,4BAA6B,SAAQ,aAAC,CAAC,KAAK,CAAC;IACzD,GAAG,iCAAgB;IACnB,IAAI,EAAE,IAAA,oCAAmB,EAAC,0BAAkB,CAAC;IAC7C,SAAS,EAAE,uCAAqB,CAAC,KAAK,CAAC,SAAS;IAChD,MAAM,EAAE,eAAe;CACvB,CAAC;CAAG;AALL,oEAKK"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Z } from 'zod-class';
|
|
3
3
|
export declare const MAX_ITEMS_PER_PAGE = 50;
|
|
4
|
+
export declare const createTakeValidator: (maxItems: number) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>, number, string | undefined>, number, string | undefined>;
|
|
4
5
|
export declare const paginationSchema: {
|
|
5
6
|
skip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>, number, string | undefined>;
|
|
6
7
|
take: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>, number, string | undefined>, number, string | undefined>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PaginationDto = exports.paginationSchema = exports.MAX_ITEMS_PER_PAGE = void 0;
|
|
3
|
+
exports.PaginationDto = exports.paginationSchema = exports.createTakeValidator = exports.MAX_ITEMS_PER_PAGE = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_class_1 = require("zod-class");
|
|
6
6
|
exports.MAX_ITEMS_PER_PAGE = 50;
|
|
@@ -14,7 +14,7 @@ const skipValidator = zod_1.z
|
|
|
14
14
|
.refine((val) => val >= 0, {
|
|
15
15
|
message: 'Param `skip` must be a non-negative integer',
|
|
16
16
|
});
|
|
17
|
-
const
|
|
17
|
+
const createTakeValidator = (maxItems) => zod_1.z
|
|
18
18
|
.string()
|
|
19
19
|
.optional()
|
|
20
20
|
.transform((val) => (val ? parseInt(val, 10) : 10))
|
|
@@ -24,10 +24,11 @@ const takeValidator = zod_1.z
|
|
|
24
24
|
.refine((val) => val >= 0, {
|
|
25
25
|
message: 'Param `take` must be a non-negative integer',
|
|
26
26
|
})
|
|
27
|
-
.transform((val) => Math.min(val,
|
|
27
|
+
.transform((val) => Math.min(val, maxItems));
|
|
28
|
+
exports.createTakeValidator = createTakeValidator;
|
|
28
29
|
exports.paginationSchema = {
|
|
29
30
|
skip: skipValidator,
|
|
30
|
-
take:
|
|
31
|
+
take: (0, exports.createTakeValidator)(exports.MAX_ITEMS_PER_PAGE),
|
|
31
32
|
};
|
|
32
33
|
class PaginationDto extends zod_class_1.Z.class(exports.paginationSchema) {
|
|
33
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.dto.js","sourceRoot":"","sources":["../../../src/dto/pagination/pagination.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAEjB,QAAA,kBAAkB,GAAG,EAAE,CAAC;AAErC,MAAM,aAAa,GAAG,OAAC;KACrB,MAAM,EAAE;KACR,QAAQ,EAAE;KACV,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,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AAC,CAAC,EAAE,CAAC,CAAC;KAClD,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;IACtD,OAAO,EAAE,sCAAsC;CAC/C,CAAC;KACD,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,EAAE;IAC1B,OAAO,EAAE,6CAA6C;CACtD,CAAC;KACD,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;AAXlC,QAAA,mBAAmB,uBAWe;AAElC,QAAA,gBAAgB,GAAG;IAC/B,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,IAAA,2BAAmB,EAAC,0BAAkB,CAAC;CAC7C,CAAC;AAEF,MAAa,aAAc,SAAQ,aAAC,CAAC,KAAK,CAAC,wBAAgB,CAAC;CAAG;AAA/D,sCAA+D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n8n/api-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "src/index.ts",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
],
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@n8n/typescript-config": "1.2.0",
|
|
14
|
-
"@n8n/config": "1.
|
|
14
|
+
"@n8n/config": "1.42.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"xss": "1.0.15",
|
|
18
18
|
"zod": "3.24.1",
|
|
19
19
|
"zod-class": "0.0.16",
|
|
20
|
-
"
|
|
21
|
-
"n8n
|
|
20
|
+
"n8n-workflow": "1.95.1",
|
|
21
|
+
"@n8n/permissions": "0.27.0"
|
|
22
22
|
},
|
|
23
23
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
24
24
|
"homepage": "https://n8n.io",
|