@n8n/api-types 0.25.0 → 0.27.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.
Files changed (38) hide show
  1. package/dist/build.tsbuildinfo +1 -1
  2. package/dist/dto/ai/ai-build-request.dto.d.ts +14 -0
  3. package/dist/dto/ai/ai-build-request.dto.js +13 -0
  4. package/dist/dto/ai/ai-build-request.dto.js.map +1 -0
  5. package/dist/dto/credentials/credentials-get-many-request.dto.d.ts +1 -0
  6. package/dist/dto/credentials/credentials-get-many-request.dto.js +1 -0
  7. package/dist/dto/credentials/credentials-get-many-request.dto.js.map +1 -1
  8. package/dist/dto/index.d.ts +3 -0
  9. package/dist/dto/index.js +8 -1
  10. package/dist/dto/index.js.map +1 -1
  11. package/dist/dto/insights/date-filter.dto.d.ts +8 -0
  12. package/dist/dto/insights/date-filter.dto.js +14 -0
  13. package/dist/dto/insights/date-filter.dto.js.map +1 -0
  14. package/dist/dto/insights/list-workflow-query.dto.d.ts +3 -2
  15. package/dist/dto/insights/list-workflow-query.dto.js +4 -16
  16. package/dist/dto/insights/list-workflow-query.dto.js.map +1 -1
  17. package/dist/dto/pagination/pagination.dto.d.ts +14 -0
  18. package/dist/dto/pagination/pagination.dto.js +35 -0
  19. package/dist/dto/pagination/pagination.dto.js.map +1 -0
  20. package/dist/dto/source-control/push-work-folder-request.dto.d.ts +2 -2
  21. package/dist/dto/workflows/transfer.dto.d.ts +1 -0
  22. package/dist/dto/workflows/transfer.dto.js +1 -0
  23. package/dist/dto/workflows/transfer.dto.js.map +1 -1
  24. package/dist/frontend-settings.d.ts +6 -0
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +3 -1
  27. package/dist/index.js.map +1 -1
  28. package/dist/push/collaboration.d.ts +1 -2
  29. package/dist/push/debug.d.ts +1 -2
  30. package/dist/push/execution.d.ts +6 -7
  31. package/dist/push/hot-reload.d.ts +4 -5
  32. package/dist/push/webhook.d.ts +2 -3
  33. package/dist/push/workflow.d.ts +3 -4
  34. package/dist/schemas/insights.schema.d.ts +23 -8
  35. package/dist/schemas/insights.schema.js +17 -1
  36. package/dist/schemas/insights.schema.js.map +1 -1
  37. package/dist/schemas/source-controlled-file.schema.d.ts +2 -2
  38. package/package.json +6 -6
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ import { Z } from 'zod-class';
3
+ declare const AiBuilderChatRequestDto_base: Z.Class<{
4
+ payload: z.ZodObject<{
5
+ question: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ question: string;
8
+ }, {
9
+ question: string;
10
+ }>;
11
+ }>;
12
+ export declare class AiBuilderChatRequestDto extends AiBuilderChatRequestDto_base {
13
+ }
14
+ export {};
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AiBuilderChatRequestDto = void 0;
4
+ const zod_1 = require("zod");
5
+ const zod_class_1 = require("zod-class");
6
+ class AiBuilderChatRequestDto extends zod_class_1.Z.class({
7
+ payload: zod_1.z.object({
8
+ question: zod_1.z.string(),
9
+ }),
10
+ }) {
11
+ }
12
+ exports.AiBuilderChatRequestDto = AiBuilderChatRequestDto;
13
+ //# sourceMappingURL=ai-build-request.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-build-request.dto.js","sourceRoot":"","sources":["../../../src/dto/ai/ai-build-request.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,uBAAwB,SAAQ,aAAC,CAAC,KAAK,CAAC;IACpD,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QACjB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;KACpB,CAAC;CACF,CAAC;CAAG;AAJL,0DAIK"}
@@ -2,6 +2,7 @@ import { Z } from 'zod-class';
2
2
  declare const CredentialsGetManyRequestQuery_base: Z.Class<{
3
3
  includeScopes: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
4
4
  includeData: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
5
+ onlySharedWithMe: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
5
6
  }>;
6
7
  export declare class CredentialsGetManyRequestQuery extends CredentialsGetManyRequestQuery_base {
7
8
  }
@@ -6,6 +6,7 @@ const booleanFromString_1 = require("../../schemas/booleanFromString");
6
6
  class CredentialsGetManyRequestQuery extends zod_class_1.Z.class({
7
7
  includeScopes: booleanFromString_1.booleanFromString.optional(),
8
8
  includeData: booleanFromString_1.booleanFromString.optional(),
9
+ onlySharedWithMe: booleanFromString_1.booleanFromString.optional(),
9
10
  }) {
10
11
  }
11
12
  exports.CredentialsGetManyRequestQuery = CredentialsGetManyRequestQuery;
@@ -1 +1 @@
1
- {"version":3,"file":"credentials-get-many-request.dto.js","sourceRoot":"","sources":["../../../src/dto/credentials/credentials-get-many-request.dto.ts"],"names":[],"mappings":";;;AAAA,yCAA8B;AAE9B,uEAAoE;AAEpE,MAAa,8BAA+B,SAAQ,aAAC,CAAC,KAAK,CAAC;IAM3D,aAAa,EAAE,qCAAiB,CAAC,QAAQ,EAAE;IAU3C,WAAW,EAAE,qCAAiB,CAAC,QAAQ,EAAE;CACzC,CAAC;CAAG;AAjBL,wEAiBK"}
1
+ {"version":3,"file":"credentials-get-many-request.dto.js","sourceRoot":"","sources":["../../../src/dto/credentials/credentials-get-many-request.dto.ts"],"names":[],"mappings":";;;AAAA,yCAA8B;AAE9B,uEAAoE;AAEpE,MAAa,8BAA+B,SAAQ,aAAC,CAAC,KAAK,CAAC;IAM3D,aAAa,EAAE,qCAAiB,CAAC,QAAQ,EAAE;IAU3C,WAAW,EAAE,qCAAiB,CAAC,QAAQ,EAAE;IAEzC,gBAAgB,EAAE,qCAAiB,CAAC,QAAQ,EAAE;CAC9C,CAAC;CAAG;AAnBL,wEAmBK"}
@@ -1,5 +1,6 @@
1
1
  export { AiAskRequestDto } from './ai/ai-ask-request.dto';
2
2
  export { AiChatRequestDto } from './ai/ai-chat-request.dto';
3
+ export { AiBuilderChatRequestDto } from './ai/ai-build-request.dto';
3
4
  export { AiApplySuggestionRequestDto } from './ai/ai-apply-suggestion-request.dto';
4
5
  export { AiFreeCreditsRequestDto } from './ai/ai-free-credits-request.dto';
5
6
  export { BinaryDataQueryDto } from './binary-data/binary-data-query.dto';
@@ -47,3 +48,5 @@ export { UpdateFolderDto } from './folders/update-folder.dto';
47
48
  export { DeleteFolderDto } from './folders/delete-folder.dto';
48
49
  export { ListFolderQueryDto } from './folders/list-folder-query.dto';
49
50
  export { ListInsightsWorkflowQueryDto } from './insights/list-workflow-query.dto';
51
+ export { InsightsDateFilterDto } from './insights/date-filter.dto';
52
+ export { PaginationDto } from './pagination/pagination.dto';
package/dist/dto/index.js CHANGED
@@ -1,10 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListInsightsWorkflowQueryDto = exports.ListFolderQueryDto = exports.DeleteFolderDto = 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.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.AiFreeCreditsRequestDto = exports.AiApplySuggestionRequestDto = exports.AiChatRequestDto = exports.AiAskRequestDto = void 0;
3
+ exports.ListInsightsWorkflowQueryDto = exports.ListFolderQueryDto = exports.DeleteFolderDto = 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.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.AiFreeCreditsRequestDto = exports.AiApplySuggestionRequestDto = exports.AiBuilderChatRequestDto = exports.AiChatRequestDto = exports.AiAskRequestDto = void 0;
4
+ exports.PaginationDto = exports.InsightsDateFilterDto = void 0;
4
5
  var ai_ask_request_dto_1 = require("./ai/ai-ask-request.dto");
5
6
  Object.defineProperty(exports, "AiAskRequestDto", { enumerable: true, get: function () { return ai_ask_request_dto_1.AiAskRequestDto; } });
6
7
  var ai_chat_request_dto_1 = require("./ai/ai-chat-request.dto");
7
8
  Object.defineProperty(exports, "AiChatRequestDto", { enumerable: true, get: function () { return ai_chat_request_dto_1.AiChatRequestDto; } });
9
+ var ai_build_request_dto_1 = require("./ai/ai-build-request.dto");
10
+ Object.defineProperty(exports, "AiBuilderChatRequestDto", { enumerable: true, get: function () { return ai_build_request_dto_1.AiBuilderChatRequestDto; } });
8
11
  var ai_apply_suggestion_request_dto_1 = require("./ai/ai-apply-suggestion-request.dto");
9
12
  Object.defineProperty(exports, "AiApplySuggestionRequestDto", { enumerable: true, get: function () { return ai_apply_suggestion_request_dto_1.AiApplySuggestionRequestDto; } });
10
13
  var ai_free_credits_request_dto_1 = require("./ai/ai-free-credits-request.dto");
@@ -99,4 +102,8 @@ var list_folder_query_dto_1 = require("./folders/list-folder-query.dto");
99
102
  Object.defineProperty(exports, "ListFolderQueryDto", { enumerable: true, get: function () { return list_folder_query_dto_1.ListFolderQueryDto; } });
100
103
  var list_workflow_query_dto_1 = require("./insights/list-workflow-query.dto");
101
104
  Object.defineProperty(exports, "ListInsightsWorkflowQueryDto", { enumerable: true, get: function () { return list_workflow_query_dto_1.ListInsightsWorkflowQueryDto; } });
105
+ var date_filter_dto_1 = require("./insights/date-filter.dto");
106
+ Object.defineProperty(exports, "InsightsDateFilterDto", { enumerable: true, get: function () { return date_filter_dto_1.InsightsDateFilterDto; } });
107
+ var pagination_dto_1 = require("./pagination/pagination.dto");
108
+ Object.defineProperty(exports, "PaginationDto", { enumerable: true, get: function () { return pagination_dto_1.PaginationDto; } });
102
109
  //# sourceMappingUR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A,wBAAwB,OAAA;AAEjC,6EAA0E;AAAjE,4HAAA,mBAAmB,OAAA;AAC5B,qFAAgF;AAAvE,oIAAA,sBAAsB,OAAA;AAC/B,iGAA8F;AAArF,gJAAA,6BAA6B,OAAA;AACtC,mGAAgG;AAAvF,kJAAA,8BAA8B,OAAA;AACvC,2FAAgG;AAAvF,kJAAA,kCAAkC,OAAA;AAE3C,yFAAoF;AAA3E,wIAAA,wBAAwB,OAAA;AACjC,yEAAqE;AAA5D,yHAAA,iBAAiB,OAAA;AAC1B,yDAAmE;AAA1D,uHAAA,uBAAuB,OAAA;AAEhC,2FAAqF;AAA5E,+IAAA,2BAA2B,OAAA;AACpC,uEAAmE;AAA1D,6HAAA,mBAAmB,OAAA;AAE5B,oFAA+E;AAAtE,oIAAA,sBAAsB,OAAA;AAC/B,oFAA+E;AAAtE,oIAAA,sBAAsB,OAAA;AAE/B,iEAA8D;AAArD,oHAAA,eAAe,OAAA;AACxB,iEAA8D;AAArD,oHAAA,eAAe,OAAA;AACxB,iEAA8D;AAArD,oHAAA,eAAe,OAAA;AACxB,yEAAqE;AAA5D,2HAAA,kBAAkB,OAAA;AAE3B,8EAAkF;AAAzE,uIAAA,4BAA4B,OAAA;AACrC,8DAAmE;AAA1D,wHAAA,qBAAqB,OAAA;AAE9B,8DAA4D;AAAnD,+GAAA,aAAa,OAAA"}
@@ -0,0 +1,8 @@
1
+ import { z } from 'zod';
2
+ import { Z } from 'zod-class';
3
+ declare const InsightsDateFilterDto_base: Z.Class<{
4
+ dateRange: z.ZodOptional<z.ZodEnum<["day", "week", "2weeks", "month", "quarter", "6months", "year"]>>;
5
+ }>;
6
+ export declare class InsightsDateFilterDto extends InsightsDateFilterDto_base {
7
+ }
8
+ export {};
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InsightsDateFilterDto = void 0;
4
+ const zod_1 = require("zod");
5
+ const zod_class_1 = require("zod-class");
6
+ const insights_schema_1 = require("../../schemas/insights.schema");
7
+ const VALID_DATE_RANGE_OPTIONS = insights_schema_1.insightsDateRangeSchema.shape.key.options;
8
+ const dateRange = zod_1.z.enum(VALID_DATE_RANGE_OPTIONS).optional();
9
+ class InsightsDateFilterDto extends zod_class_1.Z.class({
10
+ dateRange,
11
+ }) {
12
+ }
13
+ exports.InsightsDateFilterDto = InsightsDateFilterDto;
14
+ //# sourceMappingURL=date-filter.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-filter.dto.js","sourceRoot":"","sources":["../../../src/dto/insights/date-filter.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,mEAAwE;AAExE,MAAM,wBAAwB,GAAG,yCAAuB,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;AAG3E,MAAM,SAAS,GAAG,OAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,QAAQ,EAAE,CAAC;AAE9D,MAAa,qBAAsB,SAAQ,aAAC,CAAC,KAAK,CAAC;IAClD,SAAS;CACT,CAAC;CAAG;AAFL,sDAEK"}
@@ -1,9 +1,10 @@
1
1
  import { z } from 'zod';
2
2
  import { Z } from 'zod-class';
3
3
  declare const ListInsightsWorkflowQueryDto_base: Z.Class<{
4
- skip: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>;
5
- take: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>;
4
+ dateRange: z.ZodOptional<z.ZodEnum<["day", "week", "2weeks", "month", "quarter", "6months", "year"]>>;
6
5
  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
+ 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>;
7
8
  }>;
8
9
  export declare class ListInsightsWorkflowQueryDto extends ListInsightsWorkflowQueryDto_base {
9
10
  }
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ListInsightsWorkflowQueryDto = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const zod_class_1 = require("zod-class");
6
+ const date_filter_dto_1 = require("./date-filter.dto");
7
+ const pagination_dto_1 = require("../pagination/pagination.dto");
6
8
  const VALID_SORT_OPTIONS = [
7
9
  'total:asc',
8
10
  'total:desc',
@@ -19,26 +21,12 @@ const VALID_SORT_OPTIONS = [
19
21
  'averageRunTime:asc',
20
22
  'averageRunTime:desc',
21
23
  ];
22
- const skipValidator = zod_1.z
23
- .string()
24
- .optional()
25
- .transform((val) => (val ? parseInt(val, 10) : 0))
26
- .refine((val) => !isNaN(val), {
27
- message: 'Skip must be a valid number',
28
- });
29
- const takeValidator = zod_1.z
30
- .string()
31
- .optional()
32
- .transform((val) => (val ? parseInt(val, 10) : 10))
33
- .refine((val) => !isNaN(val), {
34
- message: 'Take must be a valid number',
35
- });
36
24
  const sortByValidator = zod_1.z
37
25
  .enum(VALID_SORT_OPTIONS, { message: `sortBy must be one of: ${VALID_SORT_OPTIONS.join(', ')}` })
38
26
  .optional();
39
27
  class ListInsightsWorkflowQueryDto extends zod_class_1.Z.class({
40
- skip: skipValidator,
41
- take: takeValidator,
28
+ ...pagination_dto_1.paginationSchema,
29
+ dateRange: date_filter_dto_1.InsightsDateFilterDto.shape.dateRange,
42
30
  sortBy: sortByValidator,
43
31
  }) {
44
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"list-workflow-query.dto.js","sourceRoot":"","sources":["../../../src/dto/insights/list-workflow-query.dto.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ACnB,MAAM,EAAE,eAAe;CACvB,CAAC;CAAG;AAJL,oEAIK"}
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,iEAAgE;AAEhE,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,SAAS,EAAE,uCAAqB,CAAC,KAAK,CAAC,SAAS;IAChD,MAAM,EAAE,eAAe;CACvB,CAAC;CAAG;AAJL,oEAIK"}
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ import { Z } from 'zod-class';
3
+ export declare const MAX_ITEMS_PER_PAGE = 50;
4
+ export declare const paginationSchema: {
5
+ skip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>, number, string | undefined>;
6
+ 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>;
7
+ };
8
+ declare const PaginationDto_base: Z.Class<{
9
+ skip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, number, string | undefined>, number, string | undefined>;
10
+ 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>;
11
+ }>;
12
+ export declare class PaginationDto extends PaginationDto_base {
13
+ }
14
+ export {};
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaginationDto = exports.paginationSchema = exports.MAX_ITEMS_PER_PAGE = void 0;
4
+ const zod_1 = require("zod");
5
+ const zod_class_1 = require("zod-class");
6
+ exports.MAX_ITEMS_PER_PAGE = 50;
7
+ const skipValidator = zod_1.z
8
+ .string()
9
+ .optional()
10
+ .transform((val) => (val ? parseInt(val, 10) : 0))
11
+ .refine((val) => !isNaN(val) && Number.isInteger(val), {
12
+ message: 'Param `skip` must be a valid integer',
13
+ })
14
+ .refine((val) => val >= 0, {
15
+ message: 'Param `skip` must be a non-negative integer',
16
+ });
17
+ const takeValidator = zod_1.z
18
+ .string()
19
+ .optional()
20
+ .transform((val) => (val ? parseInt(val, 10) : 10))
21
+ .refine((val) => !isNaN(val) && Number.isInteger(val), {
22
+ message: 'Param `take` must be a valid integer',
23
+ })
24
+ .refine((val) => val >= 0, {
25
+ message: 'Param `take` must be a non-negative integer',
26
+ })
27
+ .transform((val) => Math.min(val, exports.MAX_ITEMS_PER_PAGE));
28
+ exports.paginationSchema = {
29
+ skip: skipValidator,
30
+ take: takeValidator,
31
+ };
32
+ class PaginationDto extends zod_class_1.Z.class(exports.paginationSchema) {
33
+ }
34
+ exports.PaginationDto = PaginationDto;
35
+ //# sourceMappingURL=pagination.dto.js.map
@@ -0,0 +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,MA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CAA+D"}
@@ -14,8 +14,8 @@ declare const PushWorkFolderRequestDto_base: Z.Class<{
14
14
  updatedAt: z.ZodString;
15
15
  pushed: z.ZodOptional<z.ZodBoolean>;
16
16
  }, "strip", z.ZodTypeAny, {
17
- status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
18
17
  type: "workflow" | "credential" | "file" | "tags" | "variables" | "folders";
18
+ status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
19
19
  id: string;
20
20
  file: string;
21
21
  name: string;
@@ -24,8 +24,8 @@ declare const PushWorkFolderRequestDto_base: Z.Class<{
24
24
  updatedAt: string;
25
25
  pushed?: boolean | undefined;
26
26
  }, {
27
- status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
28
27
  type: "workflow" | "credential" | "file" | "tags" | "variables" | "folders";
28
+ status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged";
29
29
  id: string;
30
30
  file: string;
31
31
  name: string;
@@ -3,6 +3,7 @@ import { Z } from 'zod-class';
3
3
  declare const TransferWorkflowBodyDto_base: Z.Class<{
4
4
  destinationProjectId: z.ZodString;
5
5
  shareCredentials: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6
+ destinationParentFolderId: z.ZodOptional<z.ZodString>;
6
7
  }>;
7
8
  export declare class TransferWorkflowBodyDto extends TransferWorkflowBodyDto_base {
8
9
  }
@@ -6,6 +6,7 @@ const zod_class_1 = require("zod-class");
6
6
  class TransferWorkflowBodyDto extends zod_class_1.Z.class({
7
7
  destinationProjectId: zod_1.z.string(),
8
8
  shareCredentials: zod_1.z.array(zod_1.z.string()).optional(),
9
+ destinationParentFolderId: zod_1.z.string().optional(),
9
10
  }) {
10
11
  }
11
12
  exports.TransferWorkflowBodyDto = TransferWorkflowBodyDto;
@@ -1 +1 @@
1
- {"version":3,"file":"transfer.dto.js","sourceRoot":"","sources":["../../../src/dto/workflows/transfer.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,uBAAwB,SAAQ,aAAC,CAAC,KAAK,CAAC;IACpD,oBAAoB,EAAE,OAAC,CAAC,MAAM,EAAE;IAChC,gBAAgB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAChD,CAAC;CAAG;AAHL,0DAGK"}
1
+ {"version":3,"file":"transfer.dto.js","sourceRoot":"","sources":["../../../src/dto/workflows/transfer.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yCAA8B;AAE9B,MAAa,uBAAwB,SAAQ,aAAC,CAAC,KAAK,CAAC;IACpD,oBAAoB,EAAE,OAAC,CAAC,MAAM,EAAE;IAChC,gBAAgB,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,yBAAyB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChD,CAAC;CAAG;AAJL,0DAIK"}
@@ -1,4 +1,5 @@
1
1
  import type { ExpressionEvaluatorType, LogLevel, WorkflowSettings } from 'n8n-workflow';
2
+ import { type InsightsDateRange } from './schemas/insights.schema';
2
3
  export interface IVersionNotificationSettings {
3
4
  enabled: boolean;
4
5
  endpoint: string;
@@ -99,6 +100,7 @@ export interface FrontendSettings {
99
100
  };
100
101
  missingPackages?: boolean;
101
102
  executionMode: 'regular' | 'queue';
103
+ isMultiMain: boolean;
102
104
  pushBackend: 'sse' | 'websocket';
103
105
  communityNodesEnabled: boolean;
104
106
  aiAssistant: {
@@ -155,6 +157,9 @@ export interface FrontendSettings {
155
157
  folders: {
156
158
  enabled: boolean;
157
159
  };
160
+ logsView: {
161
+ enabled: boolean;
162
+ };
158
163
  banners: {
159
164
  dismissed: string[];
160
165
  };
@@ -182,5 +187,6 @@ export interface FrontendSettings {
182
187
  enabled: boolean;
183
188
  summary: boolean;
184
189
  dashboard: boolean;
190
+ dateRanges: InsightsDateRange[];
185
191
  };
186
192
  }
package/dist/index.d.ts CHANGED
@@ -14,4 +14,4 @@ export { ViewableMimeTypes } from './schemas/binaryData.schema';
14
14
  export { passwordSchema } from './schemas/password.schema';
15
15
  export type { ProjectType, ProjectIcon, ProjectRole, ProjectRelation, } from './schemas/project.schema';
16
16
  export { type SourceControlledFile, SOURCE_CONTROL_FILE_LOCATION, SOURCE_CONTROL_FILE_STATUS, SOURCE_CONTROL_FILE_TYPE, } from './schemas/source-controlled-file.schema';
17
- export type { InsightsSummaryType, InsightsSummaryUnit, InsightsSummary, InsightsByWorkflow, InsightsByTime, } from './schemas/insights.schema';
17
+ export { type InsightsSummaryType, type InsightsSummaryUnit, type InsightsSummary, type InsightsByWorkflow, type InsightsByTime, type InsightsDateRange, INSIGHTS_DATE_RANGE_KEYS, } from './schemas/insights.schema';
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.SOURCE_CONTROL_FILE_TYPE = exports.SOURCE_CONTROL_FILE_STATUS = exports.SOURCE_CONTROL_FILE_LOCATION = exports.passwordSchema = exports.ViewableMimeTypes = exports.heartbeatMessageSchema = exports.createHeartbeatMessage = void 0;
17
+ exports.INSIGHTS_DATE_RANGE_KEYS = exports.SOURCE_CONTROL_FILE_TYPE = exports.SOURCE_CONTROL_FILE_STATUS = exports.SOURCE_CONTROL_FILE_LOCATION = exports.passwordSchema = exports.ViewableMimeTypes = exports.heartbeatMessageSchema = exports.createHeartbeatMessage = void 0;
18
18
  __exportStar(require("./dto"), exports);
19
19
  var heartbeat_1 = require("./push/heartbeat");
20
20
  Object.defineProperty(exports, "createHeartbeatMessage", { enumerable: true, get: function () { return heartbeat_1.createHeartbeatMessage; } });
@@ -27,4 +27,6 @@ var source_controlled_file_schema_1 = require("./schemas/source-controlled-file.
27
27
  Object.defineProperty(exports, "SOURCE_CONTROL_FILE_LOCATION", { enumerable: true, get: function () { return source_controlled_file_schema_1.SOURCE_CONTROL_FILE_LOCATION; } });
28
28
  Object.defineProperty(exports, "SOURCE_CONTROL_FILE_STATUS", { enumerable: true, get: function () { return source_controlled_file_schema_1.SOURCE_CONTROL_FILE_STATUS; } });
29
29
  Object.defineProperty(exports, "SOURCE_CONTROL_FILE_TYPE", { enumerable: true, get: function () { return source_controlled_file_schema_1.SOURCE_CONTROL_FILE_TYPE; } });
30
+ var insights_schema_1 = require("./schemas/insights.schema");
31
+ Object.defineProperty(exports, "INSIGHTS_DATE_RANGE_KEYS", { enumerable: true, get: function () { return insights_schema_1.INSIGHTS_DATE_RANGE_KEYS; } });
30
32
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,wCAAsB;AAStB,8CAAkF;AAAzE,mHAAA,sBAAsB,OAAA;AAAE,mHAAA,sBAAsB,OAAA;AAIvD,iEAAgE;AAAvD,sHAAA,iBAAiB,OAAA;AAC1B,6DAA2D;AAAlD,iHAAA,cAAc,OAAA;AASvB,yFAKiD;AAHhD,6IAAA,4BAA4B,OAAA;AAC5B,2IAAA,0BAA0B,OAAA;AAC1B,yIAAA,wBAAwB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,wCAAsB;AAStB,8CAAkF;AAAzE,mHAAA,sBAAsB,OAAA;AAAE,mHAAA,sBAAsB,OAAA;AAIvD,iEAAgE;AAAvD,sHAAA,iBAAiB,OAAA;AAC1B,6DAA2D;AAAlD,iHAAA,cAAc,OAAA;AASvB,yFAKiD;AAHhD,6IAAA,4BAA4B,OAAA;AAC5B,2IAAA,0BAA0B,OAAA;AAC1B,yIAAA,wBAAwB,OAAA;AAGzB,6DAQmC;AADlC,2HAAA,wBAAwB,OAAA"}
@@ -4,7 +4,7 @@ export type Collaborator = {
4
4
  user: MinimalUser;
5
5
  lastSeen: Iso8601DateTimeString;
6
6
  };
7
- type CollaboratorsChanged = {
7
+ export type CollaboratorsChanged = {
8
8
  type: 'collaboratorsChanged';
9
9
  data: {
10
10
  workflowId: string;
@@ -12,4 +12,3 @@ type CollaboratorsChanged = {
12
12
  };
13
13
  };
14
14
  export type CollaborationPushMessage = CollaboratorsChanged;
15
- export {};
@@ -1,4 +1,4 @@
1
- type SendConsoleMessage = {
1
+ export type SendConsoleMessage = {
2
2
  type: 'sendConsoleMessage';
3
3
  data: {
4
4
  source: string;
@@ -6,4 +6,3 @@ type SendConsoleMessage = {
6
6
  };
7
7
  };
8
8
  export type DebugPushMessage = SendConsoleMessage;
9
- export {};
@@ -1,5 +1,5 @@
1
1
  import type { ExecutionStatus, ITaskData, ITaskStartedData, WorkflowExecuteMode } from 'n8n-workflow';
2
- type ExecutionStarted = {
2
+ export type ExecutionStarted = {
3
3
  type: 'executionStarted';
4
4
  data: {
5
5
  executionId: string;
@@ -11,13 +11,13 @@ type ExecutionStarted = {
11
11
  flattedRunData: string;
12
12
  };
13
13
  };
14
- type ExecutionWaiting = {
14
+ export type ExecutionWaiting = {
15
15
  type: 'executionWaiting';
16
16
  data: {
17
17
  executionId: string;
18
18
  };
19
19
  };
20
- type ExecutionFinished = {
20
+ export type ExecutionFinished = {
21
21
  type: 'executionFinished';
22
22
  data: {
23
23
  executionId: string;
@@ -26,13 +26,13 @@ type ExecutionFinished = {
26
26
  rawData?: string;
27
27
  };
28
28
  };
29
- type ExecutionRecovered = {
29
+ export type ExecutionRecovered = {
30
30
  type: 'executionRecovered';
31
31
  data: {
32
32
  executionId: string;
33
33
  };
34
34
  };
35
- type NodeExecuteBefore = {
35
+ export type NodeExecuteBefore = {
36
36
  type: 'nodeExecuteBefore';
37
37
  data: {
38
38
  executionId: string;
@@ -40,7 +40,7 @@ type NodeExecuteBefore = {
40
40
  data: ITaskStartedData;
41
41
  };
42
42
  };
43
- type NodeExecuteAfter = {
43
+ export type NodeExecuteAfter = {
44
44
  type: 'nodeExecuteAfter';
45
45
  data: {
46
46
  executionId: string;
@@ -50,4 +50,3 @@ type NodeExecuteAfter = {
50
50
  };
51
51
  };
52
52
  export type ExecutionPushMessage = ExecutionStarted | ExecutionWaiting | ExecutionFinished | ExecutionRecovered | NodeExecuteBefore | NodeExecuteAfter;
53
- export {};
@@ -1,18 +1,17 @@
1
- type NodeTypeData = {
1
+ export type NodeTypeData = {
2
2
  name: string;
3
3
  version: number;
4
4
  };
5
- type ReloadNodeType = {
5
+ export type ReloadNodeType = {
6
6
  type: 'reloadNodeType';
7
7
  data: NodeTypeData;
8
8
  };
9
- type RemoveNodeType = {
9
+ export type RemoveNodeType = {
10
10
  type: 'removeNodeType';
11
11
  data: NodeTypeData;
12
12
  };
13
- type NodeDescriptionUpdated = {
13
+ export type NodeDescriptionUpdated = {
14
14
  type: 'nodeDescriptionUpdated';
15
15
  data: {};
16
16
  };
17
17
  export type HotReloadPushMessage = ReloadNodeType | RemoveNodeType | NodeDescriptionUpdated;
18
- export {};
@@ -1,11 +1,11 @@
1
- type TestWebhookDeleted = {
1
+ export type TestWebhookDeleted = {
2
2
  type: 'testWebhookDeleted';
3
3
  data: {
4
4
  executionId?: string;
5
5
  workflowId: string;
6
6
  };
7
7
  };
8
- type TestWebhookReceived = {
8
+ export type TestWebhookReceived = {
9
9
  type: 'testWebhookReceived';
10
10
  data: {
11
11
  executionId: string;
@@ -13,4 +13,3 @@ type TestWebhookReceived = {
13
13
  };
14
14
  };
15
15
  export type WebhookPushMessage = TestWebhookDeleted | TestWebhookReceived;
16
- export {};
@@ -1,21 +1,20 @@
1
- type WorkflowActivated = {
1
+ export type WorkflowActivated = {
2
2
  type: 'workflowActivated';
3
3
  data: {
4
4
  workflowId: string;
5
5
  };
6
6
  };
7
- type WorkflowFailedToActivate = {
7
+ export type WorkflowFailedToActivate = {
8
8
  type: 'workflowFailedToActivate';
9
9
  data: {
10
10
  workflowId: string;
11
11
  errorMessage: string;
12
12
  };
13
13
  };
14
- type WorkflowDeactivated = {
14
+ export type WorkflowDeactivated = {
15
15
  type: 'workflowDeactivated';
16
16
  data: {
17
17
  workflowId: string;
18
18
  };
19
19
  };
20
20
  export type WorkflowPushMessage = WorkflowActivated | WorkflowFailedToActivate | WorkflowDeactivated;
21
- export {};
@@ -205,7 +205,6 @@ export declare const insightsByWorkflowDataSchemas: {
205
205
  averageRunTime: z.ZodNumber;
206
206
  timeSaved: z.ZodNumber;
207
207
  }, "strict", z.ZodTypeAny, {
208
- projectId: string;
209
208
  total: number;
210
209
  failed: number;
211
210
  failureRate: number;
@@ -213,11 +212,11 @@ export declare const insightsByWorkflowDataSchemas: {
213
212
  averageRunTime: number;
214
213
  workflowId: string;
215
214
  workflowName: string;
215
+ projectId: string;
216
216
  projectName: string;
217
217
  succeeded: number;
218
218
  runTime: number;
219
219
  }, {
220
- projectId: string;
221
220
  total: number;
222
221
  failed: number;
223
222
  failureRate: number;
@@ -225,6 +224,7 @@ export declare const insightsByWorkflowDataSchemas: {
225
224
  averageRunTime: number;
226
225
  workflowId: string;
227
226
  workflowName: string;
227
+ projectId: string;
228
228
  projectName: string;
229
229
  succeeded: number;
230
230
  runTime: number;
@@ -245,7 +245,6 @@ export declare const insightsByWorkflowSchema: z.ZodObject<{
245
245
  averageRunTime: z.ZodNumber;
246
246
  timeSaved: z.ZodNumber;
247
247
  }, "strict", z.ZodTypeAny, {
248
- projectId: string;
249
248
  total: number;
250
249
  failed: number;
251
250
  failureRate: number;
@@ -253,11 +252,11 @@ export declare const insightsByWorkflowSchema: z.ZodObject<{
253
252
  averageRunTime: number;
254
253
  workflowId: string;
255
254
  workflowName: string;
255
+ projectId: string;
256
256
  projectName: string;
257
257
  succeeded: number;
258
258
  runTime: number;
259
259
  }, {
260
- projectId: string;
261
260
  total: number;
262
261
  failed: number;
263
262
  failureRate: number;
@@ -265,13 +264,14 @@ export declare const insightsByWorkflowSchema: z.ZodObject<{
265
264
  averageRunTime: number;
266
265
  workflowId: string;
267
266
  workflowName: string;
267
+ projectId: string;
268
268
  projectName: string;
269
269
  succeeded: number;
270
270
  runTime: number;
271
271
  }>, "many">;
272
272
  }, "strict", z.ZodTypeAny, {
273
+ count: number;
273
274
  data: {
274
- projectId: string;
275
275
  total: number;
276
276
  failed: number;
277
277
  failureRate: number;
@@ -279,14 +279,14 @@ export declare const insightsByWorkflowSchema: z.ZodObject<{
279
279
  averageRunTime: number;
280
280
  workflowId: string;
281
281
  workflowName: string;
282
+ projectId: string;
282
283
  projectName: string;
283
284
  succeeded: number;
284
285
  runTime: number;
285
286
  }[];
286
- count: number;
287
287
  }, {
288
+ count: number;
288
289
  data: {
289
- projectId: string;
290
290
  total: number;
291
291
  failed: number;
292
292
  failureRate: number;
@@ -294,11 +294,11 @@ export declare const insightsByWorkflowSchema: z.ZodObject<{
294
294
  averageRunTime: number;
295
295
  workflowId: string;
296
296
  workflowName: string;
297
+ projectId: string;
297
298
  projectName: string;
298
299
  succeeded: number;
299
300
  runTime: number;
300
301
  }[];
301
- count: number;
302
302
  }>;
303
303
  export type InsightsByWorkflow = z.infer<typeof insightsByWorkflowSchema>;
304
304
  export declare const insightsByTimeDataSchemas: {
@@ -372,3 +372,18 @@ export declare const insightsByTimeSchema: z.ZodObject<{
372
372
  date: string;
373
373
  }>;
374
374
  export type InsightsByTime = z.infer<typeof insightsByTimeSchema>;
375
+ export declare const INSIGHTS_DATE_RANGE_KEYS: readonly ["day", "week", "2weeks", "month", "quarter", "6months", "year"];
376
+ export declare const insightsDateRangeSchema: z.ZodObject<{
377
+ key: z.ZodEnum<["day", "week", "2weeks", "month", "quarter", "6months", "year"]>;
378
+ licensed: z.ZodBoolean;
379
+ granularity: z.ZodEnum<["hour", "day", "week"]>;
380
+ }, "strict", z.ZodTypeAny, {
381
+ key: "day" | "week" | "2weeks" | "month" | "quarter" | "6months" | "year";
382
+ licensed: boolean;
383
+ granularity: "day" | "week" | "hour";
384
+ }, {
385
+ key: "day" | "week" | "2weeks" | "month" | "quarter" | "6months" | "year";
386
+ licensed: boolean;
387
+ granularity: "day" | "week" | "hour";
388
+ }>;
389
+ export type InsightsDateRange = z.infer<typeof insightsDateRangeSchema>;