@n8n/db 1.38.1 → 1.39.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/entities/activity-event.d.ts +18 -0
- package/dist/entities/activity-event.js +65 -0
- package/dist/entities/activity-event.js.map +1 -0
- package/dist/entities/execution-entity.d.ts +2 -2
- package/dist/entities/execution-entity.js +2 -2
- package/dist/entities/execution-entity.js.map +1 -1
- package/dist/entities/index.d.ts +6 -2
- package/dist/entities/index.js +11 -2
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/project-pool-settings.ee.d.ts +7 -0
- package/dist/entities/project-pool-settings.ee.js +35 -0
- package/dist/entities/project-pool-settings.ee.js.map +1 -0
- package/dist/entities/scheduled-job.d.ts +11 -3
- package/dist/entities/scheduled-job.js +15 -6
- package/dist/entities/scheduled-job.js.map +1 -1
- package/dist/entities/types-db.d.ts +3 -1
- package/dist/entities/types-db.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/migrations/common/1788336311704-DropInstanceAiRunSnapshotsTable.d.ts +5 -0
- package/dist/migrations/common/1788336311704-DropInstanceAiRunSnapshotsTable.js +22 -0
- package/dist/migrations/common/1788336311704-DropInstanceAiRunSnapshotsTable.js.map +1 -0
- package/dist/migrations/common/1788359043381-GeneralizeScheduledJobOwner.d.ts +12 -0
- package/dist/migrations/common/1788359043381-GeneralizeScheduledJobOwner.js +107 -0
- package/dist/migrations/common/1788359043381-GeneralizeScheduledJobOwner.js.map +1 -0
- package/dist/migrations/common/1788425788714-CreateActivityEventTable.d.ts +5 -0
- package/dist/migrations/common/1788425788714-CreateActivityEventTable.js +49 -0
- package/dist/migrations/common/1788425788714-CreateActivityEventTable.js.map +1 -0
- package/dist/migrations/common/1788445119183-CreateProjectPoolSettings.d.ts +5 -0
- package/dist/migrations/common/1788445119183-CreateProjectPoolSettings.js +20 -0
- package/dist/migrations/common/1788445119183-CreateProjectPoolSettings.js.map +1 -0
- package/dist/migrations/common/1788445119184-CreateInstanceMonitoringReportTable.d.ts +5 -0
- package/dist/migrations/common/1788445119184-CreateInstanceMonitoringReportTable.js +24 -0
- package/dist/migrations/common/1788445119184-CreateInstanceMonitoringReportTable.js.map +1 -0
- package/dist/migrations/common/1788522448804-CreateAgentWorkflowDependencyTable.d.ts +5 -0
- package/dist/migrations/common/1788522448804-CreateAgentWorkflowDependencyTable.js +25 -0
- package/dist/migrations/common/1788522448804-CreateAgentWorkflowDependencyTable.js.map +1 -0
- package/dist/migrations/postgresdb/index.js +13 -1
- package/dist/migrations/postgresdb/index.js.map +1 -1
- package/dist/migrations/sqlite/1788359043381-GeneralizeScheduledJobOwner.d.ts +4 -0
- package/dist/migrations/sqlite/1788359043381-GeneralizeScheduledJobOwner.js +12 -0
- package/dist/migrations/sqlite/1788359043381-GeneralizeScheduledJobOwner.js.map +1 -0
- package/dist/migrations/sqlite/index.js +13 -1
- package/dist/migrations/sqlite/index.js.map +1 -1
- package/dist/repositories/activity-event.repository.d.ts +26 -0
- package/dist/repositories/activity-event.repository.js +119 -0
- package/dist/repositories/activity-event.repository.js.map +1 -0
- package/dist/repositories/base-repository.d.ts +1 -1
- package/dist/repositories/base-repository.js +1 -1
- package/dist/repositories/base-repository.js.map +1 -1
- package/dist/repositories/deployment-key.repository.d.ts +15 -1
- package/dist/repositories/deployment-key.repository.js +70 -2
- package/dist/repositories/deployment-key.repository.js.map +1 -1
- package/dist/repositories/execution.repository.d.ts +2 -0
- package/dist/repositories/execution.repository.js +11 -0
- package/dist/repositories/execution.repository.js.map +1 -1
- package/dist/repositories/folder.repository.d.ts +1 -0
- package/dist/repositories/folder.repository.js +9 -0
- package/dist/repositories/folder.repository.js.map +1 -1
- package/dist/repositories/index.d.ts +4 -2
- package/dist/repositories/index.js +9 -2
- package/dist/repositories/index.js.map +1 -1
- package/dist/repositories/project-pool-settings.repository.ee.d.ts +7 -0
- package/dist/repositories/project-pool-settings.repository.ee.js +33 -0
- package/dist/repositories/project-pool-settings.repository.ee.js.map +1 -0
- package/dist/repositories/project-relation.repository.d.ts +1 -0
- package/dist/repositories/project-relation.repository.js +16 -0
- package/dist/repositories/project-relation.repository.js.map +1 -1
- package/dist/repositories/scheduled-job.repository.d.ts +16 -6
- package/dist/repositories/scheduled-job.repository.js +128 -15
- package/dist/repositories/scheduled-job.repository.js.map +1 -1
- package/dist/repositories/shared-credentials.repository.d.ts +1 -0
- package/dist/repositories/shared-credentials.repository.js +14 -1
- package/dist/repositories/shared-credentials.repository.js.map +1 -1
- package/dist/repositories/shared-workflow.repository.d.ts +0 -1
- package/dist/repositories/shared-workflow.repository.js +0 -15
- package/dist/repositories/shared-workflow.repository.js.map +1 -1
- package/dist/repositories/workflow-dependency.repository.d.ts +24 -1
- package/dist/repositories/workflow-dependency.repository.js +60 -2
- package/dist/repositories/workflow-dependency.repository.js.map +1 -1
- package/dist/repositories/workflow-publication-trigger-status.repository.d.ts +4 -0
- package/dist/repositories/workflow-publication-trigger-status.repository.js +19 -0
- package/dist/repositories/workflow-publication-trigger-status.repository.js.map +1 -1
- package/dist/repositories/workflow-published-version.repository.d.ts +1 -0
- package/dist/repositories/workflow-published-version.repository.js +10 -0
- package/dist/repositories/workflow-published-version.repository.js.map +1 -1
- package/dist/repositories/workflow.repository.d.ts +6 -1
- package/dist/repositories/workflow.repository.js +29 -13
- package/dist/repositories/workflow.repository.js.map +1 -1
- package/dist/services/db-lock.service.d.ts +1 -0
- package/dist/services/db-lock.service.js +1 -0
- package/dist/services/db-lock.service.js.map +1 -1
- package/dist/utils/escape-like.d.ts +2 -0
- package/dist/utils/escape-like.js +9 -0
- package/dist/utils/escape-like.js.map +1 -0
- package/package.json +20 -19
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IDataObject } from 'n8n-workflow';
|
|
2
|
+
import { WithCreatedAt } from './abstract-entity';
|
|
3
|
+
export declare const activityEventCategories: readonly ['workflow', 'credential'];
|
|
4
|
+
export type ActivityEventCategory = (typeof activityEventCategories)[number];
|
|
5
|
+
export declare const activityResourceTypes: readonly ['workflow', 'credential'];
|
|
6
|
+
export type ActivityResourceType = (typeof activityResourceTypes)[number];
|
|
7
|
+
export declare class ActivityEvent extends WithCreatedAt {
|
|
8
|
+
id: number;
|
|
9
|
+
category: ActivityEventCategory;
|
|
10
|
+
action: string;
|
|
11
|
+
typeVersion: number;
|
|
12
|
+
userId: string | null;
|
|
13
|
+
projectId: string;
|
|
14
|
+
resourceType: ActivityResourceType | null;
|
|
15
|
+
resourceId: string | null;
|
|
16
|
+
resourceName: string | null;
|
|
17
|
+
data: IDataObject | null;
|
|
18
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ActivityEvent = exports.activityResourceTypes = exports.activityEventCategories = void 0;
|
|
13
|
+
const typeorm_1 = require("@n8n/typeorm");
|
|
14
|
+
const abstract_entity_1 = require("./abstract-entity");
|
|
15
|
+
exports.activityEventCategories = ['workflow', 'credential'];
|
|
16
|
+
exports.activityResourceTypes = ['workflow', 'credential'];
|
|
17
|
+
let ActivityEvent = class ActivityEvent extends abstract_entity_1.WithCreatedAt {
|
|
18
|
+
};
|
|
19
|
+
exports.ActivityEvent = ActivityEvent;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], ActivityEvent.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 32 }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], ActivityEvent.prototype, "category", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64 }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], ActivityEvent.prototype, "action", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'int', default: 1 }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], ActivityEvent.prototype, "typeVersion", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
38
|
+
__metadata("design:type", Object)
|
|
39
|
+
], ActivityEvent.prototype, "userId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 36 }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], ActivityEvent.prototype, "projectId", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 32, nullable: true }),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], ActivityEvent.prototype, "resourceType", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 36, nullable: true }),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], ActivityEvent.prototype, "resourceId", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], ActivityEvent.prototype, "resourceName", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, abstract_entity_1.JsonColumn)({ nullable: true }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], ActivityEvent.prototype, "data", void 0);
|
|
60
|
+
exports.ActivityEvent = ActivityEvent = __decorate([
|
|
61
|
+
(0, typeorm_1.Entity)({ name: 'activity_event' }),
|
|
62
|
+
(0, typeorm_1.Index)('IDX_activity_event_project', ['projectId', 'id']),
|
|
63
|
+
(0, typeorm_1.Index)('IDX_activity_event_user', ['userId', 'id'])
|
|
64
|
+
], ActivityEvent);
|
|
65
|
+
//# sourceMappingURL=activity-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-event.js","sourceRoot":"","sources":["../../src/entities/activity-event.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA6E;AAG7E,uDAA8D;AAcjD,QAAA,uBAAuB,GAAG,CAAC,UAAU,EAAE,YAAY,CAAU,CAAC;AAY9D,QAAA,qBAAqB,GAAG,CAAC,UAAU,EAAE,YAAY,CAAU,CAAC;AAalE,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,+BAAa;CAgF/C,CAAA;;AAlEA;IADC,IAAA,gCAAsB,GAAE;;yCACd;AASX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;+CACR;AAIhC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;6CACzB;AAIf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;kDAChB;AAQpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACnB;AAYtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;gDACtB;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACd;AAU1C;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDAC9B;AAO1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACb;AAQ5B;IADC,IAAA,4BAAU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACN;wBA/Eb,aAAa;IAJzB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;IAElC,IAAA,eAAK,EAAC,4BAA4B,EAAE,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;IACxD,IAAA,eAAK,EAAC,yBAAyB,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;GACtC,aAAa,CAgFzB"}
|
|
@@ -14,8 +14,8 @@ export declare class ExecutionEntity {
|
|
|
14
14
|
status: ExecutionStatus;
|
|
15
15
|
createdAt: Date;
|
|
16
16
|
startedAt: Date | null;
|
|
17
|
-
stoppedAt: Date;
|
|
18
|
-
deletedAt: Date;
|
|
17
|
+
stoppedAt: Date | null;
|
|
18
|
+
deletedAt: Date | null;
|
|
19
19
|
workflowId: string;
|
|
20
20
|
waitTill: Date | null;
|
|
21
21
|
storedAt: ExecutionDataStorageLocation;
|
|
@@ -56,11 +56,11 @@ __decorate([
|
|
|
56
56
|
__decorate([
|
|
57
57
|
(0, typeorm_1.Index)(),
|
|
58
58
|
(0, abstract_entity_1.DateTimeColumn)({ nullable: true }),
|
|
59
|
-
__metadata("design:type",
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
60
|
], ExecutionEntity.prototype, "stoppedAt", void 0);
|
|
61
61
|
__decorate([
|
|
62
62
|
(0, typeorm_1.DeleteDateColumn)({ type: abstract_entity_1.datetimeColumnType, nullable: true }),
|
|
63
|
-
__metadata("design:type",
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
64
|
], ExecutionEntity.prototype, "deletedAt", void 0);
|
|
65
65
|
__decorate([
|
|
66
66
|
(0, typeorm_1.Column)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-entity.js","sourceRoot":"","sources":["../../src/entities/execution-entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAWsB;AAItB,uDAAuF;AAIvF,uDAAmD;AACnD,wDAA4E;AAkBrE,IAAM,eAAe,GAArB,MAAM,eAAe;CA8G3B,CAAA;;AA3GA;IAFC,IAAA,mBAAS,GAAE;IACX,IAAA,uBAAa,EAAC,EAAE,WAAW,EAAE,4BAAa,EAAE,CAAC;;2CACnC;AAQX;IADC,IAAA,gBAAM,GAAE;;iDACS;AAGlB;IADC,IAAA,gBAAM,EAAC,SAAS,CAAC;;6CACQ;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACX;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACJ;AAGvB;IADC,IAAA,gBAAM,EAAC,SAAS,CAAC;;+CACM;AAGxB;IADC,IAAA,gBAAM,EAAC,oCAAkB,CAAC;8BAChB,IAAI;kDAAC;AAUhB;IAJC,IAAA,gBAAM,EAAC;QACP,IAAI,EAAE,oCAAsC;QAC5C,QAAQ,EAAE,IAAI;KACd,CAAC;;kDACqB;AAIvB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gCAAc,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,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AU,EAAE,IAAI,CAAC,CAAC;IACvC,IAAA,eAAK,EAAC,CAAC,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;IAGvC,IAAA,eAAK,EAAC,CAAC,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,qBAAqB,EAAE,CAAC;IAKvE,IAAA,eAAK,EAAC,CAAC,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,gCAAgC,EAAE,CAAC;GAC1E,eAAe,CA8G3B"}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ActivityEvent, activityEventCategories, activityResourceTypes, type ActivityEventCategory, type ActivityResourceType } from './activity-event';
|
|
1
2
|
import { AgentEvalDataset, type AgentEvalColumnMapping } from './agent-eval-dataset.ee';
|
|
2
3
|
import { AgentEvalRating, type AgentEvalVote } from './agent-eval-rating.ee';
|
|
3
4
|
import { AgentEvalResult, type AgentEvalResultStatus } from './agent-eval-result.ee';
|
|
@@ -26,12 +27,13 @@ import { InvalidAuthToken } from './invalid-auth-token';
|
|
|
26
27
|
import { PollerState } from './poller-state';
|
|
27
28
|
import { ProcessedData } from './processed-data';
|
|
28
29
|
import { Project } from './project';
|
|
30
|
+
import { ProjectPoolSettings } from './project-pool-settings.ee';
|
|
29
31
|
import { ProjectRelation } from './project-relation';
|
|
30
32
|
import { ProjectSecretsProviderAccess } from './project-secrets-provider-access';
|
|
31
33
|
import type { SecretsProviderAccessRole } from './project-secrets-provider-access';
|
|
32
34
|
import { Role } from './role';
|
|
33
35
|
import { RoleMappingRule } from './role-mapping-rule';
|
|
34
|
-
import { ScheduledJob, ScheduledJobKind, ScheduledJobKindList, ScheduledJobMisfirePolicy } from './scheduled-job';
|
|
36
|
+
import { ScheduledJob, ScheduledJobKind, ScheduledJobKindList, ScheduledJobMisfirePolicy, type ScheduledJobOwner, type ScheduledJobOwnerRef, ScheduledJobOwnerType } from './scheduled-job';
|
|
35
37
|
import { ScheduledTask, ScheduledTaskStatus, ScheduledTaskStatusList, type TerminalTaskStatus, TerminalTaskStatusList } from './scheduled-task';
|
|
36
38
|
import { Scope } from './scope';
|
|
37
39
|
import { SecretsProviderConnection } from './secrets-provider-connection';
|
|
@@ -59,8 +61,9 @@ import { WorkflowReviewRequestWorkflow } from './workflow-review-request-workflo
|
|
|
59
61
|
import { WorkflowReviewRequest, WorkflowReviewRequestDecision, WorkflowReviewRequestDecisionList, WorkflowReviewRequestState, WorkflowReviewRequestStateList } from './workflow-review-request.ee';
|
|
60
62
|
import { WorkflowStatistics } from './workflow-statistics';
|
|
61
63
|
import { WorkflowTagMapping } from './workflow-tag-mapping';
|
|
62
|
-
export { AgentEvalDataset, type AgentEvalColumnMapping, AgentEvalRun, type AgentEvalRunStatus, AgentEvalResult, type AgentEvalResultStatus, AgentEvalRating, type AgentEvalVote, InvalidAuthToken, InstanceCredentialAssignment, AiBuilderTemporaryWorkflow, PollerState, ProcessedData, Settings, Variables, ApiKey, BinaryDataFile, SourceTypeSchema, type SourceType, type ExecutionDataStorageLocation, WebhookEntity, AuthIdentity, CredentialsEntity, type CredentialUsageScope, CredentialDependency, type CredentialDependencyType, DeploymentKey, EvaluationCollection, EvaluationConfig, Folder, Project, ProjectRelation, RoleMappingRule, Role, ScheduledJob, ScheduledJobKind, ScheduledJobKindList, ScheduledJobMisfirePolicy, ScheduledTask, ScheduledTaskStatus, ScheduledTaskStatusList, type TerminalTaskStatus, TerminalTaskStatusList, Scope, SharedCredentials, SharedWorkflow, TagEntity, User, WorkflowDependency, WorkflowEntity, WorkflowStatistics, WorkflowTagMapping, FolderTagMapping, AuthProviderSyncHistory, WorkflowHistory, WorkflowPublicationOutbox, WorkflowPublicationOutboxStatus, WorkflowPublicationReason, UNPUBLISH_VERSION_SENTINEL, WorkflowPublicationTriggerStatus, type WorkflowPublicationTriggerStatusType, type WorkflowPublicationTriggerKind, WorkflowPublishedVersion, WorkflowPublishHistory, WorkflowReviewRequest, WorkflowReviewRequestState, WorkflowReviewRequestStateList, WorkflowReviewRequestDecision, WorkflowReviewRequestDecisionList, WorkflowReviewRequestWorkflow, WorkflowReviewRequestReviewer, WorkflowReviewRequestAuthor, WorkflowReviewActivity, WorkflowReviewActivityComment, ExecutionData, ExecutionMetadata, AnnotationTagEntity, ExecutionAnnotation, AnnotationTagMapping, TestRun, TestCaseExecution, ExecutionEntity, ProjectSecretsProviderAccess, type SecretsProviderAccessRole, SecretsProviderConnection, };
|
|
64
|
+
export { ActivityEvent, activityEventCategories, activityResourceTypes, type ActivityEventCategory, type ActivityResourceType, AgentEvalDataset, type AgentEvalColumnMapping, AgentEvalRun, type AgentEvalRunStatus, AgentEvalResult, type AgentEvalResultStatus, AgentEvalRating, type AgentEvalVote, InvalidAuthToken, InstanceCredentialAssignment, AiBuilderTemporaryWorkflow, PollerState, ProcessedData, Settings, Variables, ApiKey, BinaryDataFile, SourceTypeSchema, type SourceType, type ExecutionDataStorageLocation, WebhookEntity, AuthIdentity, CredentialsEntity, type CredentialUsageScope, CredentialDependency, type CredentialDependencyType, DeploymentKey, EvaluationCollection, EvaluationConfig, Folder, Project, ProjectRelation, RoleMappingRule, Role, ScheduledJob, ScheduledJobKind, ScheduledJobKindList, ScheduledJobMisfirePolicy, type ScheduledJobOwner, type ScheduledJobOwnerRef, ScheduledJobOwnerType, ScheduledTask, ScheduledTaskStatus, ScheduledTaskStatusList, type TerminalTaskStatus, TerminalTaskStatusList, Scope, SharedCredentials, SharedWorkflow, TagEntity, User, WorkflowDependency, WorkflowEntity, WorkflowStatistics, WorkflowTagMapping, FolderTagMapping, AuthProviderSyncHistory, WorkflowHistory, WorkflowPublicationOutbox, WorkflowPublicationOutboxStatus, WorkflowPublicationReason, UNPUBLISH_VERSION_SENTINEL, WorkflowPublicationTriggerStatus, type WorkflowPublicationTriggerStatusType, type WorkflowPublicationTriggerKind, WorkflowPublishedVersion, WorkflowPublishHistory, WorkflowReviewRequest, WorkflowReviewRequestState, WorkflowReviewRequestStateList, WorkflowReviewRequestDecision, WorkflowReviewRequestDecisionList, WorkflowReviewRequestWorkflow, WorkflowReviewRequestReviewer, WorkflowReviewRequestAuthor, WorkflowReviewActivity, WorkflowReviewActivityComment, ExecutionData, ExecutionMetadata, AnnotationTagEntity, ExecutionAnnotation, AnnotationTagMapping, TestRun, TestCaseExecution, ExecutionEntity, ProjectPoolSettings, ProjectSecretsProviderAccess, type SecretsProviderAccessRole, SecretsProviderConnection, };
|
|
63
65
|
export declare const entities: {
|
|
66
|
+
ActivityEvent: typeof ActivityEvent;
|
|
64
67
|
AgentEvalDataset: typeof AgentEvalDataset;
|
|
65
68
|
AgentEvalRun: typeof AgentEvalRun;
|
|
66
69
|
AgentEvalResult: typeof AgentEvalResult;
|
|
@@ -118,6 +121,7 @@ export declare const entities: {
|
|
|
118
121
|
Role: typeof Role;
|
|
119
122
|
ScheduledJob: typeof ScheduledJob;
|
|
120
123
|
ScheduledTask: typeof ScheduledTask;
|
|
124
|
+
ProjectPoolSettings: typeof ProjectPoolSettings;
|
|
121
125
|
ProjectSecretsProviderAccess: typeof ProjectSecretsProviderAccess;
|
|
122
126
|
SecretsProviderConnection: typeof SecretsProviderConnection;
|
|
123
127
|
};
|
package/dist/entities/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.entities = exports.SecretsProviderConnection = exports.ProjectSecretsProviderAccess = exports.ExecutionEntity = exports.TestCaseExecution = exports.TestRun = exports.AnnotationTagMapping = exports.ExecutionAnnotation = exports.AnnotationTagEntity = exports.ExecutionMetadata = exports.ExecutionData = exports.WorkflowReviewActivityComment = exports.WorkflowReviewActivity = exports.WorkflowReviewRequestAuthor = exports.WorkflowReviewRequestReviewer = exports.WorkflowReviewRequestWorkflow = exports.WorkflowReviewRequestDecisionList = exports.WorkflowReviewRequestDecision = exports.WorkflowReviewRequestStateList = exports.WorkflowReviewRequestState = exports.WorkflowReviewRequest = exports.WorkflowPublishHistory = exports.WorkflowPublishedVersion = exports.WorkflowPublicationTriggerStatus = void 0;
|
|
3
|
+
exports.WorkflowHistory = exports.AuthProviderSyncHistory = exports.FolderTagMapping = exports.WorkflowTagMapping = exports.WorkflowStatistics = exports.WorkflowEntity = exports.WorkflowDependency = exports.User = exports.TagEntity = exports.SharedWorkflow = exports.SharedCredentials = exports.Scope = exports.TerminalTaskStatusList = exports.ScheduledTaskStatusList = exports.ScheduledTaskStatus = exports.ScheduledTask = exports.ScheduledJobOwnerType = exports.ScheduledJobMisfirePolicy = exports.ScheduledJobKindList = exports.ScheduledJobKind = exports.ScheduledJob = exports.Role = exports.RoleMappingRule = exports.ProjectRelation = exports.Project = exports.Folder = exports.EvaluationConfig = exports.EvaluationCollection = exports.DeploymentKey = exports.CredentialDependency = exports.CredentialsEntity = exports.AuthIdentity = exports.WebhookEntity = exports.SourceTypeSchema = exports.BinaryDataFile = exports.ApiKey = exports.Variables = exports.Settings = exports.ProcessedData = exports.PollerState = exports.AiBuilderTemporaryWorkflow = exports.InstanceCredentialAssignment = exports.InvalidAuthToken = exports.AgentEvalRating = exports.AgentEvalResult = exports.AgentEvalRun = exports.AgentEvalDataset = exports.activityResourceTypes = exports.activityEventCategories = exports.ActivityEvent = void 0;
|
|
4
|
+
exports.entities = exports.SecretsProviderConnection = exports.ProjectSecretsProviderAccess = exports.ProjectPoolSettings = exports.ExecutionEntity = exports.TestCaseExecution = exports.TestRun = exports.AnnotationTagMapping = exports.ExecutionAnnotation = exports.AnnotationTagEntity = exports.ExecutionMetadata = exports.ExecutionData = exports.WorkflowReviewActivityComment = exports.WorkflowReviewActivity = exports.WorkflowReviewRequestAuthor = exports.WorkflowReviewRequestReviewer = exports.WorkflowReviewRequestWorkflow = exports.WorkflowReviewRequestDecisionList = exports.WorkflowReviewRequestDecision = exports.WorkflowReviewRequestStateList = exports.WorkflowReviewRequestState = exports.WorkflowReviewRequest = exports.WorkflowPublishHistory = exports.WorkflowPublishedVersion = exports.WorkflowPublicationTriggerStatus = exports.UNPUBLISH_VERSION_SENTINEL = exports.WorkflowPublicationReason = exports.WorkflowPublicationOutboxStatus = exports.WorkflowPublicationOutbox = void 0;
|
|
5
|
+
const activity_event_1 = require("./activity-event");
|
|
6
|
+
Object.defineProperty(exports, "ActivityEvent", { enumerable: true, get: function () { return activity_event_1.ActivityEvent; } });
|
|
7
|
+
Object.defineProperty(exports, "activityEventCategories", { enumerable: true, get: function () { return activity_event_1.activityEventCategories; } });
|
|
8
|
+
Object.defineProperty(exports, "activityResourceTypes", { enumerable: true, get: function () { return activity_event_1.activityResourceTypes; } });
|
|
5
9
|
const agent_eval_dataset_ee_1 = require("./agent-eval-dataset.ee");
|
|
6
10
|
Object.defineProperty(exports, "AgentEvalDataset", { enumerable: true, get: function () { return agent_eval_dataset_ee_1.AgentEvalDataset; } });
|
|
7
11
|
const agent_eval_rating_ee_1 = require("./agent-eval-rating.ee");
|
|
@@ -57,6 +61,8 @@ const processed_data_1 = require("./processed-data");
|
|
|
57
61
|
Object.defineProperty(exports, "ProcessedData", { enumerable: true, get: function () { return processed_data_1.ProcessedData; } });
|
|
58
62
|
const project_1 = require("./project");
|
|
59
63
|
Object.defineProperty(exports, "Project", { enumerable: true, get: function () { return project_1.Project; } });
|
|
64
|
+
const project_pool_settings_ee_1 = require("./project-pool-settings.ee");
|
|
65
|
+
Object.defineProperty(exports, "ProjectPoolSettings", { enumerable: true, get: function () { return project_pool_settings_ee_1.ProjectPoolSettings; } });
|
|
60
66
|
const project_relation_1 = require("./project-relation");
|
|
61
67
|
Object.defineProperty(exports, "ProjectRelation", { enumerable: true, get: function () { return project_relation_1.ProjectRelation; } });
|
|
62
68
|
const project_secrets_provider_access_1 = require("./project-secrets-provider-access");
|
|
@@ -70,6 +76,7 @@ Object.defineProperty(exports, "ScheduledJob", { enumerable: true, get: function
|
|
|
70
76
|
Object.defineProperty(exports, "ScheduledJobKind", { enumerable: true, get: function () { return scheduled_job_1.ScheduledJobKind; } });
|
|
71
77
|
Object.defineProperty(exports, "ScheduledJobKindList", { enumerable: true, get: function () { return scheduled_job_1.ScheduledJobKindList; } });
|
|
72
78
|
Object.defineProperty(exports, "ScheduledJobMisfirePolicy", { enumerable: true, get: function () { return scheduled_job_1.ScheduledJobMisfirePolicy; } });
|
|
79
|
+
Object.defineProperty(exports, "ScheduledJobOwnerType", { enumerable: true, get: function () { return scheduled_job_1.ScheduledJobOwnerType; } });
|
|
73
80
|
const scheduled_task_1 = require("./scheduled-task");
|
|
74
81
|
Object.defineProperty(exports, "ScheduledTask", { enumerable: true, get: function () { return scheduled_task_1.ScheduledTask; } });
|
|
75
82
|
Object.defineProperty(exports, "ScheduledTaskStatus", { enumerable: true, get: function () { return scheduled_task_1.ScheduledTaskStatus; } });
|
|
@@ -135,6 +142,7 @@ Object.defineProperty(exports, "WorkflowStatistics", { enumerable: true, get: fu
|
|
|
135
142
|
const workflow_tag_mapping_1 = require("./workflow-tag-mapping");
|
|
136
143
|
Object.defineProperty(exports, "WorkflowTagMapping", { enumerable: true, get: function () { return workflow_tag_mapping_1.WorkflowTagMapping; } });
|
|
137
144
|
exports.entities = {
|
|
145
|
+
ActivityEvent: activity_event_1.ActivityEvent,
|
|
138
146
|
AgentEvalDataset: agent_eval_dataset_ee_1.AgentEvalDataset,
|
|
139
147
|
AgentEvalRun: agent_eval_run_ee_1.AgentEvalRun,
|
|
140
148
|
AgentEvalResult: agent_eval_result_ee_1.AgentEvalResult,
|
|
@@ -192,6 +200,7 @@ exports.entities = {
|
|
|
192
200
|
Role: role_1.Role,
|
|
193
201
|
ScheduledJob: scheduled_job_1.ScheduledJob,
|
|
194
202
|
ScheduledTask: scheduled_task_1.ScheduledTask,
|
|
203
|
+
ProjectPoolSettings: project_pool_settings_ee_1.ProjectPoolSettings,
|
|
195
204
|
ProjectSecretsProviderAccess: project_secrets_provider_access_1.ProjectSecretsProviderAccess,
|
|
196
205
|
SecretsProviderConnection: secrets_provider_connection_1.SecretsProviderConnection,
|
|
197
206
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;AAAA,mEAAwF;iGAA/E,wCAAgB;AACzB,iEAA6E;gGAApE,sCAAe;AACxB,iEAAqF;gGAA5E,sCAAe;AACxB,2DAA4E;6FAAnE,gCAAY;AACrB,mFAA6E;2GAApE,0DAA0B;AACnC,yEAAiE;oGAAxD,8CAAmB;AAC5B,2EAAmE;qGAA1D,gDAAoB;AAC7B,uCAAmC;uFAA1B,gBAAM;AACf,mDAA+C;6FAAtC,4BAAY;AACrB,6EAAuE;wGAA9D,oDAAuB;AAChC,yDAAuF;+FAA9E,iCAAc;iGAAE,mCAAgB;AACzC,iFAGwC;qGAFvC,mDAAoB;AAGrB,6DAAoF;kGAA3E,sCAAiB;AAC1B,qDAAiD;8FAAxC,8BAAa;AACtB,yEAAkE;qGAAzD,+CAAoB;AAC7B,iEAA0D;iGAAjD,uCAAgB;AACzB,uEAAgE;oGAAvD,6CAAmB;AAC5B,qDAAiD;8FAAxC,8BAAa;AACtB,yDAAqD;gGAA5C,kCAAe;AAExB,6DAAyD;kGAAhD,sCAAiB;AAC1B,qCAAkC;uFAAzB,eAAM;AACf,6DAAwD;iGAA/C,qCAAgB;AACzB,qFAAgF;6GAAvE,6DAA4B;AACrC,6DAAwD;iGAA/C,qCAAgB;AACzB,iDAA6C;4FAApC,0BAAW;AACpB,qDAAiD;8FAAxC,8BAAa;AACtB,uCAAoC;wFAA3B,iBAAO;AAChB,yDAAqD;gGAA5C,kCAAe;AACxB,uFAAiF;6GAAxE,8DAA4B;AAErC,iCAA8B;qFAArB,WAAI;AACb,2DAAsD;gGAA7C,mCAAe;AACxB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;AAAA,qDAM0B;8FALzB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EAAZ,4BAAY;IACZ,aAAa,EAAb,8BAAa;IACb,mBAAmB,EAAnB,8CAAmB;IACnB,4BAA4B,EAA5B,8DAA4B;IAC5B,yBAAyB,EAAzB,uDAAyB;CACzB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ProjectPoolSettings = void 0;
|
|
13
|
+
const typeorm_1 = require("@n8n/typeorm");
|
|
14
|
+
const abstract_entity_1 = require("./abstract-entity");
|
|
15
|
+
const project_1 = require("./project");
|
|
16
|
+
let ProjectPoolSettings = class ProjectPoolSettings extends abstract_entity_1.WithTimestamps {
|
|
17
|
+
};
|
|
18
|
+
exports.ProjectPoolSettings = ProjectPoolSettings;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: 36 }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], ProjectPoolSettings.prototype, "projectId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.OneToOne)('Project', { onDelete: 'CASCADE' }),
|
|
25
|
+
(0, typeorm_1.JoinColumn)({ name: 'projectId' }),
|
|
26
|
+
__metadata("design:type", project_1.Project)
|
|
27
|
+
], ProjectPoolSettings.prototype, "project", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 63, nullable: true }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], ProjectPoolSettings.prototype, "defaultPool", void 0);
|
|
32
|
+
exports.ProjectPoolSettings = ProjectPoolSettings = __decorate([
|
|
33
|
+
(0, typeorm_1.Entity)()
|
|
34
|
+
], ProjectPoolSettings);
|
|
35
|
+
//# sourceMappingURL=project-pool-settings.ee.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-pool-settings.ee.js","sourceRoot":"","sources":["../../src/entities/project-pool-settings.ee.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAmF;AAEnF,uDAAmD;AACnD,uCAAoC;AAG7B,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,gCAAc;CAWtD,CAAA;;AATA;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;sDAC7B;AAIlB;IAFC,IAAA,kBAAQ,EAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC5C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACzB,iBAAO;oDAAC;AAIjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDAC7B;8BAVf,mBAAmB;IAD/B,IAAA,gBAAM,GAAE;GACI,mBAAmB,CAW/B"}
|
|
@@ -2,12 +2,13 @@ import { ScheduledJobMisfirePolicy } from '@n8n/constants';
|
|
|
2
2
|
import type { ScheduledJobKind, RecurringCronUnit } from '@n8n/constants';
|
|
3
3
|
import { WithTimestamps } from './abstract-entity';
|
|
4
4
|
export { ScheduledJobKind, ScheduledJobKindList } from '@n8n/constants';
|
|
5
|
-
export { ScheduledJobMisfirePolicy } from '@n8n/constants';
|
|
5
|
+
export { ScheduledJobMisfirePolicy, ScheduledJobOwnerType } from '@n8n/constants';
|
|
6
6
|
export declare class ScheduledJob extends WithTimestamps {
|
|
7
7
|
id: number;
|
|
8
8
|
name: string;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
ownerType: string;
|
|
10
|
+
ownerId: string;
|
|
11
|
+
ownerMemberId: string | null;
|
|
11
12
|
taskType: string;
|
|
12
13
|
payload: Record<string, unknown>;
|
|
13
14
|
kind: ScheduledJobKind;
|
|
@@ -23,4 +24,11 @@ export declare class ScheduledJob extends WithTimestamps {
|
|
|
23
24
|
maxAttempts: number;
|
|
24
25
|
misfirePolicy: ScheduledJobMisfirePolicy;
|
|
25
26
|
misfireGraceSeconds: number;
|
|
27
|
+
orphanedAt: Date | null;
|
|
26
28
|
}
|
|
29
|
+
export interface ScheduledJobOwner {
|
|
30
|
+
ownerType: string;
|
|
31
|
+
ownerId: string;
|
|
32
|
+
ownerMemberId: string | null;
|
|
33
|
+
}
|
|
34
|
+
export type ScheduledJobOwnerRef = Pick<ScheduledJobOwner, 'ownerType' | 'ownerId'>;
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ScheduledJob = exports.ScheduledJobMisfirePolicy = exports.ScheduledJobKindList = exports.ScheduledJobKind = void 0;
|
|
12
|
+
exports.ScheduledJob = exports.ScheduledJobOwnerType = exports.ScheduledJobMisfirePolicy = exports.ScheduledJobKindList = exports.ScheduledJobKind = void 0;
|
|
13
13
|
const constants_1 = require("@n8n/constants");
|
|
14
14
|
const typeorm_1 = require("@n8n/typeorm");
|
|
15
15
|
const abstract_entity_1 = require("./abstract-entity");
|
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "ScheduledJobKind", { enumerable: true, get: func
|
|
|
18
18
|
Object.defineProperty(exports, "ScheduledJobKindList", { enumerable: true, get: function () { return constants_2.ScheduledJobKindList; } });
|
|
19
19
|
var constants_3 = require("@n8n/constants");
|
|
20
20
|
Object.defineProperty(exports, "ScheduledJobMisfirePolicy", { enumerable: true, get: function () { return constants_3.ScheduledJobMisfirePolicy; } });
|
|
21
|
+
Object.defineProperty(exports, "ScheduledJobOwnerType", { enumerable: true, get: function () { return constants_3.ScheduledJobOwnerType; } });
|
|
21
22
|
let ScheduledJob = class ScheduledJob extends abstract_entity_1.WithTimestamps {
|
|
22
23
|
};
|
|
23
24
|
exports.ScheduledJob = ScheduledJob;
|
|
@@ -30,13 +31,17 @@ __decorate([
|
|
|
30
31
|
__metadata("design:type", String)
|
|
31
32
|
], ScheduledJob.prototype, "name", void 0);
|
|
32
33
|
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({ type: 'varchar', length:
|
|
34
|
-
__metadata("design:type",
|
|
35
|
-
], ScheduledJob.prototype, "
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 32 }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], ScheduledJob.prototype, "ownerType", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], ScheduledJob.prototype, "ownerId", void 0);
|
|
36
41
|
__decorate([
|
|
37
42
|
(0, typeorm_1.Column)({ type: 'varchar', length: 36, nullable: true }),
|
|
38
43
|
__metadata("design:type", Object)
|
|
39
|
-
], ScheduledJob.prototype, "
|
|
44
|
+
], ScheduledJob.prototype, "ownerMemberId", void 0);
|
|
40
45
|
__decorate([
|
|
41
46
|
(0, typeorm_1.Column)({ type: 'varchar', length: 128 }),
|
|
42
47
|
__metadata("design:type", String)
|
|
@@ -97,12 +102,16 @@ __decorate([
|
|
|
97
102
|
(0, typeorm_1.Column)({ type: 'int', default: 60 }),
|
|
98
103
|
__metadata("design:type", Number)
|
|
99
104
|
], ScheduledJob.prototype, "misfireGraceSeconds", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, abstract_entity_1.DateTimeColumn)({ nullable: true }),
|
|
107
|
+
__metadata("design:type", Object)
|
|
108
|
+
], ScheduledJob.prototype, "orphanedAt", void 0);
|
|
100
109
|
exports.ScheduledJob = ScheduledJob = __decorate([
|
|
101
110
|
(0, typeorm_1.Entity)({ name: 'scheduled_job' }),
|
|
102
111
|
(0, typeorm_1.Index)(['nextRunAt'], {
|
|
103
112
|
where: '"enabled" = true AND "nextRunAt" IS NOT NULL',
|
|
104
113
|
}),
|
|
105
|
-
(0, typeorm_1.Index)(['
|
|
114
|
+
(0, typeorm_1.Index)(['ownerType', 'ownerId', 'ownerMemberId']),
|
|
106
115
|
(0, typeorm_1.Index)(['name'], { unique: true })
|
|
107
116
|
], ScheduledJob);
|
|
108
117
|
//# sourceMappingURL=scheduled-job.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduled-job.js","sourceRoot":"","sources":["../../src/entities/scheduled-job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA2D;AAE3D,0CAA6E;AAE7E,uDAA+E;AAE/E,4CAAwE;AAA/D,6GAAA,gBAAgB,OAAA;AAAE,iHAAA,oBAAoB,OAAA;AAC/C,
|
|
1
|
+
{"version":3,"file":"scheduled-job.js","sourceRoot":"","sources":["../../src/entities/scheduled-job.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA2D;AAE3D,0CAA6E;AAE7E,uDAA+E;AAE/E,4CAAwE;AAA/D,6GAAA,gBAAgB,OAAA;AAAE,iHAAA,oBAAoB,OAAA;AAC/C,4CAAkF;AAAzE,sHAAA,yBAAyB,OAAA;AAAE,kHAA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@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Scope } from '@n8n/permissions';
|
|
2
2
|
import type { FindOperator } from '@n8n/typeorm';
|
|
3
3
|
import type express from 'express';
|
|
4
|
-
import type { ICredentialsEncrypted, IRunExecutionData, IWorkflowBase, WorkflowExecuteMode, ExecutionStatus, FeatureFlags, IUserSettings, AnnotationVote, ExecutionSummary, IUser, IDataObject, IBinaryKeyData, IPairedItemData } from 'n8n-workflow';
|
|
4
|
+
import type { ICredentialsEncrypted, IRunExecutionData, IWorkflowBase, WorkflowExecuteMode, ExecutionStatus, FeatureFlagPayloads, FeatureFlags, IUserSettings, AnnotationVote, ExecutionSummary, IUser, IDataObject, IBinaryKeyData, IPairedItemData } from 'n8n-workflow';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import type { CredentialUsageScope, CredentialsEntity } from './credentials-entity';
|
|
7
7
|
import type { ExecutionDataStorageLocation } from './execution-entity';
|
|
@@ -41,6 +41,7 @@ export interface IExecutionBase {
|
|
|
41
41
|
traceparent: string;
|
|
42
42
|
tracestate?: string;
|
|
43
43
|
} | null;
|
|
44
|
+
deletedAt?: Date | null;
|
|
44
45
|
deduplicationKey?: string | null;
|
|
45
46
|
jsonSizeBytes?: number;
|
|
46
47
|
binaryDataSizeBytes?: number;
|
|
@@ -104,6 +105,7 @@ export interface PublicUser {
|
|
|
104
105
|
inviteAcceptUrl?: string;
|
|
105
106
|
isOwner?: boolean;
|
|
106
107
|
featureFlags?: FeatureFlags;
|
|
108
|
+
featureFlagPayloads?: FeatureFlagPayloads;
|
|
107
109
|
lastActiveAt?: Date | null;
|
|
108
110
|
mfaAuthenticated?: boolean;
|
|
109
111
|
isManagedByEnv?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-db.js","sourceRoot":"","sources":["../../src/entities/types-db.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"types-db.js","sourceRoot":"","sources":["../../src/entities/types-db.ts"],"names":[],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@ export { WithStringId, WithCreatedAt, WithTimestamps, WithTimestampsAndStringId,
|
|
|
2
2
|
export { generateNanoId } from '@n8n/utils/generate-nano-id';
|
|
3
3
|
export { chunkIds } from './utils/chunk-ids';
|
|
4
4
|
export { dbNowLiteral, dbNowPlusMsLiteral, parseDbTime } from './utils/dialect-time';
|
|
5
|
+
export { escapeLike, LIKE_ESCAPE_CLAUSE } from './utils/escape-like';
|
|
5
6
|
export { generateHostInstanceId } from './utils/generators';
|
|
6
7
|
export { isStringArray } from './utils/is-string-array';
|
|
7
8
|
export { isUniqueConstraintError } from './utils/is-unique-constraint-error';
|
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.DataSource = exports.Not = exports.MoreThanOrEqual = exports.Like = exports.In = exports.TransactionRunner = exports.DbLockService = exports.DbLock = exports.AuthRolesService = exports.DbConnectionOptions = exports.DbConnectionMetrics = exports.DbConnection = exports.wrapMigration = exports.postgresMigrations = exports.sqliteMigrations = exports.CreateTable = exports.DslColumn = exports.NoUrl = exports.NoXss = exports.withTransaction = exports.sqlite = exports.objectRetriever = exports.lowerCaser = exports.idStringifier = exports.sql = exports.separate = exports.parseListQuerySortBy = exports.isValidEmail = exports.isUniqueConstraintError = exports.isStringArray = exports.generateHostInstanceId = exports.parseDbTime = exports.dbNowPlusMsLiteral = exports.dbNowLiteral = exports.chunkIds = exports.generateNanoId = exports.DateTimeColumn = exports.JsonColumn = exports.dbType = exports.datetimeColumnType = exports.jsonColumnType = exports.WithTimestampsAndStringId = exports.WithTimestamps = exports.WithCreatedAt = exports.WithStringId = void 0;
|
|
17
|
+
exports.DataSource = exports.Not = exports.MoreThanOrEqual = exports.Like = exports.In = exports.TransactionRunner = exports.DbLockService = exports.DbLock = exports.AuthRolesService = exports.DbConnectionOptions = exports.DbConnectionMetrics = exports.DbConnection = exports.wrapMigration = exports.postgresMigrations = exports.sqliteMigrations = exports.CreateTable = exports.DslColumn = exports.NoUrl = exports.NoXss = exports.withTransaction = exports.sqlite = exports.objectRetriever = exports.lowerCaser = exports.idStringifier = exports.sql = exports.separate = exports.parseListQuerySortBy = exports.isValidEmail = exports.isUniqueConstraintError = exports.isStringArray = exports.generateHostInstanceId = exports.LIKE_ESCAPE_CLAUSE = exports.escapeLike = exports.parseDbTime = exports.dbNowPlusMsLiteral = exports.dbNowLiteral = exports.chunkIds = exports.generateNanoId = exports.DateTimeColumn = exports.JsonColumn = exports.dbType = exports.datetimeColumnType = exports.jsonColumnType = exports.WithTimestampsAndStringId = exports.WithTimestamps = exports.WithCreatedAt = exports.WithStringId = void 0;
|
|
18
18
|
var abstract_entity_1 = require("./entities/abstract-entity");
|
|
19
19
|
Object.defineProperty(exports, "WithStringId", { enumerable: true, get: function () { return abstract_entity_1.WithStringId; } });
|
|
20
20
|
Object.defineProperty(exports, "WithCreatedAt", { enumerable: true, get: function () { return abstract_entity_1.WithCreatedAt; } });
|
|
@@ -33,6 +33,9 @@ var dialect_time_1 = require("./utils/dialect-time");
|
|
|
33
33
|
Object.defineProperty(exports, "dbNowLiteral", { enumerable: true, get: function () { return dialect_time_1.dbNowLiteral; } });
|
|
34
34
|
Object.defineProperty(exports, "dbNowPlusMsLiteral", { enumerable: true, get: function () { return dialect_time_1.dbNowPlusMsLiteral; } });
|
|
35
35
|
Object.defineProperty(exports, "parseDbTime", { enumerable: true, get: function () { return dialect_time_1.parseDbTime; } });
|
|
36
|
+
var escape_like_1 = require("./utils/escape-like");
|
|
37
|
+
Object.defineProperty(exports, "escapeLike", { enumerable: true, get: function () { return escape_like_1.escapeLike; } });
|
|
38
|
+
Object.defineProperty(exports, "LIKE_ESCAPE_CLAUSE", { enumerable: true, get: function () { return escape_like_1.LIKE_ESCAPE_CLAUSE; } });
|
|
36
39
|
var generators_1 = require("./utils/generators");
|
|
37
40
|
Object.defineProperty(exports, "generateHostInstanceId", { enumerable: true, get: function () { return generators_1.generateHostInstanceId; } });
|
|
38
41
|
var is_string_array_1 = require("./utils/is-string-array");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,8DAUoC;AATnC,+GAAA,YAAY,OAAA;AACZ,gHAAA,aAAa,OAAA;AACb,iHAAA,cAAc,OAAA;AACd,4HAAA,yBAAyB,OAAA;AACzB,iHAAA,cAAc,OAAA;AACd,qHAAA,kBAAkB,OAAA;AAClB,yGAAA,MAAM,OAAA;AACN,6GAAA,UAAU,OAAA;AACV,iHAAA,cAAc,OAAA;AAGf,gEAA6D;AAApD,kHAAA,cAAc,OAAA;AACvB,+CAA6C;AAApC,qGAAA,QAAQ,OAAA;AACjB,qDAAqF;AAA5E,4GAAA,YAAY,OAAA;AAAE,kHAAA,kBAAkB,OAAA;AAAE,2GAAA,WAAW,OAAA;AACtD,iDAA4D;AAAnD,oHAAA,sBAAsB,OAAA;AAC/B,2DAAwD;AAA/C,gHAAA,aAAa,OAAA;AACtB,iFAA6E;AAApE,qIAAA,uBAAuB,OAAA;AAChC,yDAAsD;AAA7C,8GAAA,YAAY,OAAA;AACrB,2DAA+D;AAAtD,uHAAA,oBAAoB,OAAA;AAE7B,6CAA4C;AAAnC,oGAAA,QAAQ,OAAA;AACjB,mCAAkC;AAAzB,0FAAA,GAAG,OAAA;AACZ,qDAA0F;AAAjF,6GAAA,aAAa,OAAA;AAAE,0GAAA,UAAU,OAAA;AAAE,+GAAA,eAAe,OAAA;AAAE,sGAAA,MAAM,OAAA;AAC3D,mDAAsD;AAA7C,8GAAA,eAAe,OAAA;AAExB,8CAA4B;AAC5B,6CAA2B;AAC3B,sDAAoC;AACpC,wEAA4D;AAAnD,yGAAA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EAAE,OAAA;AAAE,+FAAA,IAAI,OAAA;AAAE,0GAAA,eAAe,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,qGAAA,UAAU,OAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { MigrationContext, ReversibleMigration } from '../migration-types';
|
|
2
|
+
export declare class DropInstanceAiRunSnapshotsTable1788336311704 implements ReversibleMigration {
|
|
3
|
+
up({ schemaBuilder }: MigrationContext): Promise<void>;
|
|
4
|
+
down({ schemaBuilder: { createTable, column } }: MigrationContext): Promise<void>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DropInstanceAiRunSnapshotsTable1788336311704 = void 0;
|
|
4
|
+
const table = 'instance_ai_run_snapshots';
|
|
5
|
+
class DropInstanceAiRunSnapshotsTable1788336311704 {
|
|
6
|
+
async up({ schemaBuilder }) {
|
|
7
|
+
await schemaBuilder.dropTable(table);
|
|
8
|
+
}
|
|
9
|
+
async down({ schemaBuilder: { createTable, column } }) {
|
|
10
|
+
await createTable(table)
|
|
11
|
+
.withColumns(column('threadId').uuid.primary.notNull, column('runId').varchar(36).primary.notNull, column('messageGroupId').varchar(36), column('runIds').json, column('tree').text.notNull, column('traceId').varchar(64), column('spanId').varchar(64), column('langsmithRunId').varchar(36), column('langsmithTraceId').varchar(36))
|
|
12
|
+
.withIndexOn(['threadId', 'messageGroupId'])
|
|
13
|
+
.withIndexOn(['threadId', 'createdAt'])
|
|
14
|
+
.withForeignKey('threadId', {
|
|
15
|
+
tableName: 'instance_ai_threads',
|
|
16
|
+
columnName: 'id',
|
|
17
|
+
onDelete: 'CASCADE',
|
|
18
|
+
}).withTimestamps;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.DropInstanceAiRunSnapshotsTable1788336311704 = DropInstanceAiRunSnapshotsTable1788336311704;
|
|
22
|
+
//# sourceMappingURL=1788336311704-DropInstanceAiRunSnapshotsTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1788336311704-DropInstanceAiRunSnapshotsTable.js","sourceRoot":"","sources":["../../../src/migrations/common/1788336311704-DropInstanceAiRunSnapshotsTable.ts"],"names":[],"mappings":";;;AAEA,MAAM,KAAK,GAAG,2BAA2B,CAAC;AAe1C;IACC,KAAK,CAAC,EAAE,CAAC,EAAE,aAAa,EAAoB;QAC3C,MAAM,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,EAAE,aAAa,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,EAAoB;QACtE,MAAM,WAAW,CAAC,KAAK,CAAC;aACtB,WAAW,CACX,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EACvC,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,EAC3C,MAAM,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,EACpC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,EACrB,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,OAAO,EAC3B,MAAM,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,EAC7B,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,EAC5B,MAAM,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,EACpC,MAAM,CAAC,kBAAkB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CACtC;aACA,WAAW,CAAC,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC;aAC3C,WAAW,CAAC,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;aACtC,cAAc,CAAC,UAAU,EAAE;YAC3B,SAAS,EAAE,qBAAqB;YAChC,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE,SAAS;SACnB,CAAC,CAAC,cAAc,CAAC;IACpB,CAAC;CACD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { MigrationContext, ReversibleMigration } from '../migration-types';
|
|
2
|
+
export declare class GeneralizeScheduledJobOwner1788359043381 implements ReversibleMigration {
|
|
3
|
+
up(context: MigrationContext): Promise<void>;
|
|
4
|
+
down(context: MigrationContext): Promise<void>;
|
|
5
|
+
private refreshTableMetadata;
|
|
6
|
+
private addOwnerColumns;
|
|
7
|
+
private backfillOwners;
|
|
8
|
+
private requireOwner;
|
|
9
|
+
private addWorkflowColumns;
|
|
10
|
+
private backfillWorkflowColumns;
|
|
11
|
+
private deleteJobsTheForeignKeyWouldReject;
|
|
12
|
+
}
|