@n8n/db 1.40.4 → 1.41.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/ai-preference.d.ts +2 -0
- package/dist/entities/ai-preference.js +4 -0
- package/dist/entities/ai-preference.js.map +1 -1
- package/dist/entities/credential-dependency-entity.d.ts +2 -1
- package/dist/entities/credential-dependency-entity.js +2 -1
- package/dist/entities/credential-dependency-entity.js.map +1 -1
- package/dist/entities/credentials-entity.d.ts +1 -0
- package/dist/entities/credentials-entity.js +10 -0
- package/dist/entities/credentials-entity.js.map +1 -1
- package/dist/entities/index.d.ts +3 -3
- package/dist/entities/index.js +4 -2
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/types-db.d.ts +3 -8
- package/dist/entities/types-db.js.map +1 -1
- package/dist/entities/workflow-dependency-entity.d.ts +1 -0
- package/dist/entities/workflow-dependency-entity.js +2 -1
- package/dist/entities/workflow-dependency-entity.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/migrations/common/1789137988234-AddKindCreatedAtIndexToTypeAvailabilityPolicy.d.ts +5 -0
- package/dist/migrations/common/1789137988234-AddKindCreatedAtIndexToTypeAvailabilityPolicy.js +15 -0
- package/dist/migrations/common/1789137988234-AddKindCreatedAtIndexToTypeAvailabilityPolicy.js.map +1 -0
- package/dist/migrations/common/1789479099132-AddSourceToAiPreference.d.ts +6 -0
- package/dist/migrations/common/1789479099132-AddSourceToAiPreference.js +39 -0
- package/dist/migrations/common/1789479099132-AddSourceToAiPreference.js.map +1 -0
- package/dist/migrations/common/1789558029357-AddDescriptionToCredentials.d.ts +5 -0
- package/dist/migrations/common/1789558029357-AddDescriptionToCredentials.js +21 -0
- package/dist/migrations/common/1789558029357-AddDescriptionToCredentials.js.map +1 -0
- package/dist/migrations/common/1789717191125-AddThreadIdToAgentCheckpoints.d.ts +7 -0
- package/dist/migrations/common/1789717191125-AddThreadIdToAgentCheckpoints.js +62 -0
- package/dist/migrations/common/1789717191125-AddThreadIdToAgentCheckpoints.js.map +1 -0
- package/dist/migrations/common/1789995003141-AddExecutionScopesToCustomRoles.d.ts +6 -0
- package/dist/migrations/common/1789995003141-AddExecutionScopesToCustomRoles.js +61 -0
- package/dist/migrations/common/1789995003141-AddExecutionScopesToCustomRoles.js.map +1 -0
- package/dist/migrations/postgresdb/index.js +11 -1
- package/dist/migrations/postgresdb/index.js.map +1 -1
- package/dist/migrations/sqlite/index.js +11 -1
- package/dist/migrations/sqlite/index.js.map +1 -1
- package/dist/repositories/activity-event.repository.d.ts +7 -4
- package/dist/repositories/activity-event.repository.js +22 -8
- package/dist/repositories/activity-event.repository.js.map +1 -1
- package/dist/repositories/ai-preference.repository.d.ts +2 -0
- package/dist/repositories/ai-preference.repository.js +13 -0
- package/dist/repositories/ai-preference.repository.js.map +1 -1
- package/dist/repositories/credentials.repository.d.ts +14 -2
- package/dist/repositories/credentials.repository.js +81 -3
- package/dist/repositories/credentials.repository.js.map +1 -1
- package/dist/repositories/execution-list.repository.d.ts +16 -0
- package/dist/repositories/execution-list.repository.js +69 -0
- package/dist/repositories/execution-list.repository.js.map +1 -0
- package/dist/repositories/execution.repository.d.ts +4 -1
- package/dist/repositories/execution.repository.js +31 -20
- package/dist/repositories/execution.repository.js.map +1 -1
- package/dist/repositories/index.d.ts +4 -3
- package/dist/repositories/index.js +5 -2
- package/dist/repositories/index.js.map +1 -1
- package/dist/repositories/project.repository.d.ts +1 -0
- package/dist/repositories/project.repository.js +8 -0
- package/dist/repositories/project.repository.js.map +1 -1
- package/dist/repositories/scheduled-job.repository.d.ts +7 -2
- package/dist/repositories/scheduled-job.repository.js +35 -1
- package/dist/repositories/scheduled-job.repository.js.map +1 -1
- package/dist/repositories/variables.repository.d.ts +5 -0
- package/dist/repositories/variables.repository.js +23 -0
- package/dist/repositories/variables.repository.js.map +1 -1
- package/dist/repositories/workflow-dependency.repository.js +12 -5
- package/dist/repositories/workflow-dependency.repository.js.map +1 -1
- package/dist/repositories/workflow-history.repository.d.ts +5 -0
- package/dist/repositories/workflow-history.repository.js +7 -0
- package/dist/repositories/workflow-history.repository.js.map +1 -1
- package/dist/repositories/workflow.repository.d.ts +6 -1
- package/dist/repositories/workflow.repository.js +47 -8
- package/dist/repositories/workflow.repository.js.map +1 -1
- package/dist/services/auth.roles.service.d.ts +4 -1
- package/dist/services/auth.roles.service.js +13 -2
- package/dist/services/auth.roles.service.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/is-entity-not-found-error.d.ts +1 -0
- package/dist/utils/is-entity-not-found-error.js +8 -0
- package/dist/utils/is-entity-not-found-error.js.map +1 -0
- package/dist/utils/is-foreign-key-constraint-error.d.ts +1 -0
- package/dist/utils/is-foreign-key-constraint-error.js +12 -0
- package/dist/utils/is-foreign-key-constraint-error.js.map +1 -0
- package/dist/utils/is-query-failed-error-of-kind.d.ts +5 -0
- package/dist/utils/is-query-failed-error-of-kind.js +18 -0
- package/dist/utils/is-query-failed-error-of-kind.js.map +1 -0
- package/dist/utils/is-unique-constraint-error.js +6 -14
- package/dist/utils/is-unique-constraint-error.js.map +1 -1
- package/package.json +10 -10
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AiPreferenceSource } from '@n8n/api-types';
|
|
1
2
|
import { Relation } from '@n8n/typeorm';
|
|
2
3
|
import { WithTimestamps } from './abstract-entity';
|
|
3
4
|
import type { Project } from './project';
|
|
@@ -5,6 +6,7 @@ import type { User } from './user';
|
|
|
5
6
|
export declare class AiPreference extends WithTimestamps {
|
|
6
7
|
id: string;
|
|
7
8
|
content: string;
|
|
9
|
+
source: AiPreferenceSource;
|
|
8
10
|
userId: string | null;
|
|
9
11
|
user: Relation<User> | null;
|
|
10
12
|
projectId: string | null;
|
|
@@ -23,6 +23,10 @@ __decorate([
|
|
|
23
23
|
(0, typeorm_1.Column)({ type: 'text' }),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
25
|
], AiPreference.prototype, "content", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 16 }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], AiPreference.prototype, "source", void 0);
|
|
26
30
|
__decorate([
|
|
27
31
|
(0, typeorm_1.Index)(),
|
|
28
32
|
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-preference.js","sourceRoot":"","sources":["../../src/entities/ai-preference.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ai-preference.js","sourceRoot":"","sources":["../../src/entities/ai-preference.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,0CAQsB;AAEtB,uDAAmD;AAS5C,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,gCAAc;CAiC/C,CAAA;;AA/BA;IADC,IAAA,uBAAa,EAAC,MAAM,CAAC;;wCACX;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CACT;AAIhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;4CACb;AAI3B;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACnB;AAItB;IAFC,IAAA,mBAAS,EAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC1C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;0CACH;AAI5B;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAC/B;AAIzB;IAFC,IAAA,mBAAS,EAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC7C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;;6CACA;AAGlC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACd;AAI3B;IAFC,IAAA,mBAAS,EAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;IAC3C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;+CACH;uBAhCrB,YAAY;IADxB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;GACrB,YAAY,CAiCxB"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Relation } from '@n8n/typeorm';
|
|
2
2
|
import { WithCreatedAt } from './abstract-entity';
|
|
3
3
|
import type { CredentialsEntity } from './credentials-entity';
|
|
4
|
-
export
|
|
4
|
+
export declare const EXTERNAL_SECRET_PROVIDER_DEPENDENCY_TYPE: 'externalSecretProvider';
|
|
5
|
+
export type CredentialDependencyType = typeof EXTERNAL_SECRET_PROVIDER_DEPENDENCY_TYPE;
|
|
5
6
|
export declare class CredentialDependency extends WithCreatedAt {
|
|
6
7
|
id: number;
|
|
7
8
|
credentialId: string;
|
|
@@ -9,9 +9,10 @@ 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.CredentialDependency = void 0;
|
|
12
|
+
exports.CredentialDependency = exports.EXTERNAL_SECRET_PROVIDER_DEPENDENCY_TYPE = void 0;
|
|
13
13
|
const typeorm_1 = require("@n8n/typeorm");
|
|
14
14
|
const abstract_entity_1 = require("./abstract-entity");
|
|
15
|
+
exports.EXTERNAL_SECRET_PROVIDER_DEPENDENCY_TYPE = 'externalSecretProvider';
|
|
15
16
|
let CredentialDependency = class CredentialDependency extends abstract_entity_1.WithCreatedAt {
|
|
16
17
|
};
|
|
17
18
|
exports.CredentialDependency = CredentialDependency;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-dependency-entity.js","sourceRoot":"","sources":["../../src/entities/credential-dependency-entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CASsB;AAEtB,uDAAkD;
|
|
1
|
+
{"version":3,"file":"credential-dependency-entity.js","sourceRoot":"","sources":["../../src/entities/credential-dependency-entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CASsB;AAEtB,uDAAkD;AAGrC,QAAA,wCAAwC,GAAG,wBAAiC,CAAC;AAOnF,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,+BAAa;CAiBtD,CAAA;;AAfA;IADC,IAAA,gCAAsB,GAAE;;gDACd;AAIX;IAFC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;IACtB,IAAA,eAAK,GAAE;;0DACa;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;4DACkB;AAGzC;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;0DACH;AAIrB;IAFC,IAAA,mBAAS,EAAC,mBAAmB,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACvD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;;wDACG;+BAhB5B,oBAAoB;IAHhC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC;IACzC,IAAA,eAAK,EAAC,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC;IACzC,IAAA,gBAAM,EAAC,CAAC,cAAc,EAAE,gBAAgB,EAAE,cAAc,CAAC,CAAC;GAC9C,oBAAoB,CAiBhC"}
|
|
@@ -4,6 +4,7 @@ import type { ICredentialsDb } from './types-db';
|
|
|
4
4
|
export type CredentialUsageScope = 'project' | 'instance';
|
|
5
5
|
export declare class CredentialsEntity extends WithTimestampsAndStringId implements ICredentialsDb {
|
|
6
6
|
name: string;
|
|
7
|
+
description: string | null;
|
|
7
8
|
data: string;
|
|
8
9
|
type: string;
|
|
9
10
|
shared: SharedCredentials[];
|
|
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CredentialsEntity = void 0;
|
|
13
|
+
const api_types_1 = require("@n8n/api-types");
|
|
13
14
|
const typeorm_1 = require("@n8n/typeorm");
|
|
14
15
|
const class_validator_1 = require("class-validator");
|
|
15
16
|
const abstract_entity_1 = require("./abstract-entity");
|
|
@@ -28,6 +29,15 @@ __decorate([
|
|
|
28
29
|
}),
|
|
29
30
|
__metadata("design:type", String)
|
|
30
31
|
], CredentialsEntity.prototype, "name", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, class_validator_1.IsString)({ message: 'Credential `description` must be of type string.' }),
|
|
36
|
+
(0, class_validator_1.MaxLength)(api_types_1.CREDENTIAL_DESCRIPTION_MAX_LENGTH, {
|
|
37
|
+
message: 'Credential description must be at most $constraint1 characters long.',
|
|
38
|
+
}),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], CredentialsEntity.prototype, "description", void 0);
|
|
31
41
|
__decorate([
|
|
32
42
|
(0, typeorm_1.Column)('text'),
|
|
33
43
|
(0, class_validator_1.IsObject)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials-entity.js","sourceRoot":"","sources":["../../src/entities/credentials-entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAgE;AAChE,
|
|
1
|
+
{"version":3,"file":"credentials-entity.js","sourceRoot":"","sources":["../../src/entities/credentials-entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAmE;AACnE,0CAAgE;AAChE,qDAAoF;AAEpF,uDAA8D;AAOvD,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,2CAAyB;IAmE/D,MAAM;QACL,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;QACjC,OAAO,IAAI,CAAC;IACb,CAAC;CACD,CAAA;;AAjEA;IALC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;IACvB,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,2CAA2C,EAAE,CAAC;IAClE,IAAA,wBAAM,EAAC,CAAC,EAAE,GAAG,EAAE;QACf,OAAO,EAAE,uEAAuE;KAChF,CAAC;;+CACW;AASb;IANC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACxC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,kDAAkD,EAAE,CAAC;IACzE,IAAA,2BAAS,EAAC,6CAAiC,EAAE;QAC7C,OAAO,EAAE,sEAAsE;KAC/E,CAAC;;sDACyB;AAI3B;IAFC,IAAA,gBAAM,EAAC,MAAM,CAAC;IACd,IAAA,0BAAQ,GAAE;;+CACE;AAOb;IALC,IAAA,eAAK,GAAE;IACP,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,2CAA2C,EAAE,CAAC;IAClE,IAAA,gBAAM,EAAC;QACP,MAAM,EAAE,GAAG;KACX,CAAC;;+CACW;AAGb;IADC,IAAA,mBAAS,EAAC,mBAAmB,EAAE,aAAa,CAAC;;iDAClB;AAQ5B;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;oDACR;AAMnB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;mDACT;AAMlB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;uDACL;AAOtB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;kEACM;AAMjC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAClB;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;;qDAC3B;4BAjErB,iBAAiB;IAD7B,IAAA,gBAAM,GAAE;GACI,iBAAiB,CAuE7B"}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { ApiKey } from './api-key';
|
|
|
11
11
|
import { AuthIdentity } from './auth-identity';
|
|
12
12
|
import { AuthProviderSyncHistory } from './auth-provider-sync-history';
|
|
13
13
|
import { BinaryDataFile, SourceTypeSchema, type SourceType } from './binary-data-file';
|
|
14
|
-
import { CredentialDependency, type CredentialDependencyType } from './credential-dependency-entity';
|
|
14
|
+
import { CredentialDependency, EXTERNAL_SECRET_PROVIDER_DEPENDENCY_TYPE, type CredentialDependencyType } from './credential-dependency-entity';
|
|
15
15
|
import { CredentialsEntity, type CredentialUsageScope } from './credentials-entity';
|
|
16
16
|
import { DeploymentKey } from './deployment-key';
|
|
17
17
|
import { EvaluationCollection } from './evaluation-collection.ee';
|
|
@@ -47,7 +47,7 @@ import { TestRun } from './test-run.ee';
|
|
|
47
47
|
import { User } from './user';
|
|
48
48
|
import { Variables } from './variables';
|
|
49
49
|
import { WebhookEntity } from './webhook-entity';
|
|
50
|
-
import { WorkflowDependency } from './workflow-dependency-entity';
|
|
50
|
+
import { WorkflowDependency, WORKFLOW_DEPENDENCY_INDEX_VERSION } from './workflow-dependency-entity';
|
|
51
51
|
import { WorkflowEntity } from './workflow-entity';
|
|
52
52
|
import { WorkflowHistory } from './workflow-history';
|
|
53
53
|
import { UNPUBLISH_VERSION_SENTINEL, WorkflowPublicationOutbox, WorkflowPublicationOutboxStatus, WorkflowPublicationReason } from './workflow-publication-outbox';
|
|
@@ -62,7 +62,7 @@ import { WorkflowReviewRequestWorkflow } from './workflow-review-request-workflo
|
|
|
62
62
|
import { WorkflowReviewRequest, WorkflowReviewRequestDecision, WorkflowReviewRequestDecisionList, WorkflowReviewRequestState, WorkflowReviewRequestStateList } from './workflow-review-request.ee';
|
|
63
63
|
import { WorkflowStatistics } from './workflow-statistics';
|
|
64
64
|
import { WorkflowTagMapping } from './workflow-tag-mapping';
|
|
65
|
-
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, AiPreference, 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, };
|
|
65
|
+
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, AiPreference, Variables, ApiKey, BinaryDataFile, SourceTypeSchema, type SourceType, type ExecutionDataStorageLocation, WebhookEntity, AuthIdentity, CredentialsEntity, type CredentialUsageScope, CredentialDependency, EXTERNAL_SECRET_PROVIDER_DEPENDENCY_TYPE, 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, WORKFLOW_DEPENDENCY_INDEX_VERSION, 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, };
|
|
66
66
|
export declare const entities: {
|
|
67
67
|
ActivityEvent: typeof ActivityEvent;
|
|
68
68
|
AgentEvalDataset: typeof AgentEvalDataset;
|
package/dist/entities/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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 = exports.WorkflowHistory = void 0;
|
|
3
|
+
exports.WorkflowTagMapping = exports.WorkflowStatistics = exports.WorkflowEntity = exports.WORKFLOW_DEPENDENCY_INDEX_VERSION = 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.EXTERNAL_SECRET_PROVIDER_DEPENDENCY_TYPE = exports.CredentialDependency = exports.CredentialsEntity = exports.AuthIdentity = exports.WebhookEntity = exports.SourceTypeSchema = exports.BinaryDataFile = exports.ApiKey = exports.Variables = exports.AiPreference = 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 = exports.WorkflowHistory = exports.AuthProviderSyncHistory = exports.FolderTagMapping = void 0;
|
|
5
5
|
const activity_event_1 = require("./activity-event");
|
|
6
6
|
Object.defineProperty(exports, "ActivityEvent", { enumerable: true, get: function () { return activity_event_1.ActivityEvent; } });
|
|
7
7
|
Object.defineProperty(exports, "activityEventCategories", { enumerable: true, get: function () { return activity_event_1.activityEventCategories; } });
|
|
@@ -33,6 +33,7 @@ Object.defineProperty(exports, "BinaryDataFile", { enumerable: true, get: functi
|
|
|
33
33
|
Object.defineProperty(exports, "SourceTypeSchema", { enumerable: true, get: function () { return binary_data_file_1.SourceTypeSchema; } });
|
|
34
34
|
const credential_dependency_entity_1 = require("./credential-dependency-entity");
|
|
35
35
|
Object.defineProperty(exports, "CredentialDependency", { enumerable: true, get: function () { return credential_dependency_entity_1.CredentialDependency; } });
|
|
36
|
+
Object.defineProperty(exports, "EXTERNAL_SECRET_PROVIDER_DEPENDENCY_TYPE", { enumerable: true, get: function () { return credential_dependency_entity_1.EXTERNAL_SECRET_PROVIDER_DEPENDENCY_TYPE; } });
|
|
36
37
|
const credentials_entity_1 = require("./credentials-entity");
|
|
37
38
|
Object.defineProperty(exports, "CredentialsEntity", { enumerable: true, get: function () { return credentials_entity_1.CredentialsEntity; } });
|
|
38
39
|
const deployment_key_1 = require("./deployment-key");
|
|
@@ -108,6 +109,7 @@ const webhook_entity_1 = require("./webhook-entity");
|
|
|
108
109
|
Object.defineProperty(exports, "WebhookEntity", { enumerable: true, get: function () { return webhook_entity_1.WebhookEntity; } });
|
|
109
110
|
const workflow_dependency_entity_1 = require("./workflow-dependency-entity");
|
|
110
111
|
Object.defineProperty(exports, "WorkflowDependency", { enumerable: true, get: function () { return workflow_dependency_entity_1.WorkflowDependency; } });
|
|
112
|
+
Object.defineProperty(exports, "WORKFLOW_DEPENDENCY_INDEX_VERSION", { enumerable: true, get: function () { return workflow_dependency_entity_1.WORKFLOW_DEPENDENCY_INDEX_VERSION; } });
|
|
111
113
|
const workflow_entity_1 = require("./workflow-entity");
|
|
112
114
|
Object.defineProperty(exports, "WorkflowEntity", { enumerable: true, get: function () { return workflow_entity_1.WorkflowEntity; } });
|
|
113
115
|
const workflow_history_1 = require("./workflow-history");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;AAAA,qDAM0B;8FALzB,8BAAa;wGACb,wCAAuB;sGACvB,sCAAqB;AAItB,mEAAwF;iGAA/E,wCAAgB;AACzB,iEAA6E;gGAApE,sCAAe;AACxB,iEAAqF;gGAA5E,sCAAe;AACxB,2DAA4E;6FAAnE,gCAAY;AACrB,mFAA6E;2GAApE,0DAA0B;AACnC,mDAA+C;6FAAtC,4BAAY;AACrB,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,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;AAAA,qDAM0B;8FALzB,8BAAa;wGACb,wCAAuB;sGACvB,sCAAqB;AAItB,mEAAwF;iGAA/E,wCAAgB;AACzB,iEAA6E;gGAApE,sCAAe;AACxB,iEAAqF;gGAA5E,sCAAe;AACxB,2DAA4E;6FAAnE,g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B;IACnB,4BAA4B,EAA5B,8DAA4B;IAC5B,yBAAyB,EAAzB,uDAAyB;CACzB,CAAC"}
|
|
@@ -68,6 +68,7 @@ export interface IWorkflowDb extends IWorkflowBase {
|
|
|
68
68
|
export interface ICredentialsDb extends ICredentialsBase, ICredentialsEncrypted {
|
|
69
69
|
id: string;
|
|
70
70
|
name: string;
|
|
71
|
+
description?: string | null;
|
|
71
72
|
shared?: SharedCredentials[];
|
|
72
73
|
isGlobal?: boolean;
|
|
73
74
|
isResolvable?: boolean;
|
|
@@ -151,14 +152,9 @@ export declare namespace ExecutionSummaries {
|
|
|
151
152
|
kind: 'count';
|
|
152
153
|
} & FilterFields & AccessFields;
|
|
153
154
|
export type FilterFields = Partial<{
|
|
154
|
-
id: string;
|
|
155
|
-
finished: boolean;
|
|
156
155
|
mode: WorkflowExecuteMode;
|
|
157
|
-
retryOf: string;
|
|
158
|
-
retrySuccessId: string;
|
|
159
156
|
status: ExecutionStatus[];
|
|
160
157
|
workflowId: string;
|
|
161
|
-
waitTill: boolean;
|
|
162
158
|
metadata: Array<{
|
|
163
159
|
key: string;
|
|
164
160
|
value: string;
|
|
@@ -190,8 +186,7 @@ export declare namespace ExecutionSummaries {
|
|
|
190
186
|
type RangeFields = {
|
|
191
187
|
range: {
|
|
192
188
|
limit: number;
|
|
193
|
-
|
|
194
|
-
lastId?: string;
|
|
189
|
+
beforeId?: string;
|
|
195
190
|
};
|
|
196
191
|
};
|
|
197
192
|
type OrderFields = {
|
|
@@ -256,7 +251,7 @@ declare const ALL_AUTH_PROVIDERS: z.ZodEnum<["ldap", "email", "saml", "oidc", "t
|
|
|
256
251
|
export type AuthProviderType = z.infer<typeof ALL_AUTH_PROVIDERS>;
|
|
257
252
|
export declare function isAuthProviderType(value: string): value is AuthProviderType;
|
|
258
253
|
export type FolderWithWorkflowAndSubFolderCount = Folder & {
|
|
259
|
-
workflowCount?:
|
|
254
|
+
workflowCount?: number;
|
|
260
255
|
subFolderCount?: number;
|
|
261
256
|
};
|
|
262
257
|
export type FolderWithWorkflowAndSubFolderCountAndPath = FolderWithWorkflowAndSubFolderCount & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-db.js","sourceRoot":"","sources":["../../src/entities/types-db.ts"],"names":[],"mappings":";;;;;AAmBA,6BAAwB;
|
|
1
|
+
{"version":3,"file":"types-db.js","sourceRoot":"","sources":["../../src/entities/types-db.ts"],"names":[],"mappings":";;;;;AAmBA,6BAAwB;AAkTxB,IAAkB,eAMjB;AAND,WAAkB,eAAe;IAChC,2DAAwC,CAAA;IACxC,uDAAoC,CAAA;IACpC,mDAAgC,CAAA;IAChC,+CAA4B,CAAA;IAC5B,6CAA0B,CAAA;AAC3B,CAAC,EANiB,eAAe,aAAf,eAAe,GAAf,eAAe,QAMhC;AAED,MAAM,kBAAkB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC;AAIvF,4BAAmC,KAAa;IAC/C,OAAO,kBAAkB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACpD,CAAC;AAaY,QAAA,gBAAgB,GAAG;IAC/B,oBAAoB,EAAE,sBAAsB;IAC5C,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,eAAe;IAC9B,4BAA4B,EAAE,8BAA8B;IAC5D,iCAAiC,EAAE,mCAAmC;IACtE,2BAA2B,EAAE,6BAA6B;IAC1D,2BAA2B,EAAE,6BAA6B;IAC1D,kBAAkB,EAAE,oBAAoB;IACxC,+BAA+B,EAAE,iCAAiC;IAClE,0BAA0B,EAAE,4BAA4B;IACxD,+BAA+B,EAAE,iCAAiC;IAClE,qBAAqB,EAAE,uBAAuB;CACrC,CAAC;AAIE,QAAA,0BAA0B,GAAG;IACzC,oBAAoB,EAAE,sBAAsB;IAC5C,qBAAqB,EAAE,uBAAuB;IAC9C,0BAA0B,EAAE,4BAA4B;IACxD,eAAe,EAAE,iBAAiB;IAClC,aAAa,EAAE,eAAe;CACrB,CAAC;AAoGX,gCAAuC,GAAoB;IAC1D,OAAO,MAAM,IAAI,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,GAAG,CAAC,IAAI,KAAK,IAAI,CAAC;AACzE,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Relation } from '@n8n/typeorm';
|
|
2
2
|
import { WithCreatedAt } from './abstract-entity';
|
|
3
3
|
import type { WorkflowEntity } from './workflow-entity';
|
|
4
|
+
export declare const WORKFLOW_DEPENDENCY_INDEX_VERSION = 2;
|
|
4
5
|
export type DependencyType = 'credentialId' | 'dataTableId' | 'errorWorkflow' | 'nodeType' | 'webhookPath' | 'workflowCall' | 'workflowIndexed';
|
|
5
6
|
export declare class WorkflowDependency extends WithCreatedAt {
|
|
6
7
|
id: number;
|
|
@@ -9,9 +9,10 @@ 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.WorkflowDependency = void 0;
|
|
12
|
+
exports.WorkflowDependency = exports.WORKFLOW_DEPENDENCY_INDEX_VERSION = void 0;
|
|
13
13
|
const typeorm_1 = require("@n8n/typeorm");
|
|
14
14
|
const abstract_entity_1 = require("./abstract-entity");
|
|
15
|
+
exports.WORKFLOW_DEPENDENCY_INDEX_VERSION = 2;
|
|
15
16
|
let WorkflowDependency = class WorkflowDependency extends abstract_entity_1.WithCreatedAt {
|
|
16
17
|
};
|
|
17
18
|
exports.WorkflowDependency = WorkflowDependency;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-dependency-entity.js","sourceRoot":"","sources":["../../src/entities/workflow-dependency-entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0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,EAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;GAC3B,kBAAkB,CA6D9B"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export { chunkIds } from './utils/chunk-ids';
|
|
|
4
4
|
export { dbNowLiteral, dbNowPlusMsLiteral, parseDbTime } from './utils/dialect-time';
|
|
5
5
|
export { escapeLike, LIKE_ESCAPE_CLAUSE } from './utils/escape-like';
|
|
6
6
|
export { generateHostInstanceId } from './utils/generators';
|
|
7
|
+
export { isEntityNotFoundError } from './utils/is-entity-not-found-error';
|
|
8
|
+
export { isForeignKeyConstraintError } from './utils/is-foreign-key-constraint-error';
|
|
7
9
|
export { isStringArray } from './utils/is-string-array';
|
|
8
10
|
export { isUniqueConstraintError } from './utils/is-unique-constraint-error';
|
|
9
11
|
export { isValidEmail } from './utils/is-valid-email';
|
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.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;
|
|
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.isForeignKeyConstraintError = exports.isEntityNotFoundError = 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; } });
|
|
@@ -38,6 +38,10 @@ Object.defineProperty(exports, "escapeLike", { enumerable: true, get: function (
|
|
|
38
38
|
Object.defineProperty(exports, "LIKE_ESCAPE_CLAUSE", { enumerable: true, get: function () { return escape_like_1.LIKE_ESCAPE_CLAUSE; } });
|
|
39
39
|
var generators_1 = require("./utils/generators");
|
|
40
40
|
Object.defineProperty(exports, "generateHostInstanceId", { enumerable: true, get: function () { return generators_1.generateHostInstanceId; } });
|
|
41
|
+
var is_entity_not_found_error_1 = require("./utils/is-entity-not-found-error");
|
|
42
|
+
Object.defineProperty(exports, "isEntityNotFoundError", { enumerable: true, get: function () { return is_entity_not_found_error_1.isEntityNotFoundError; } });
|
|
43
|
+
var is_foreign_key_constraint_error_1 = require("./utils/is-foreign-key-constraint-error");
|
|
44
|
+
Object.defineProperty(exports, "isForeignKeyConstraintError", { enumerable: true, get: function () { return is_foreign_key_constraint_error_1.isForeignKeyConstraintError; } });
|
|
41
45
|
var is_string_array_1 = require("./utils/is-string-array");
|
|
42
46
|
Object.defineProperty(exports, "isStringArray", { enumerable: true, get: function () { return is_string_array_1.isStringArray; } });
|
|
43
47
|
var is_unique_constraint_error_1 = require("./utils/is-unique-constraint-error");
|
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,mDAAqE;AAA5D,yGAAA,UAAU,OAAA;AAAE,iHAAA,kBAAkB,OAAA;AACvC,iDAA4D;AAAnD,oHAAA,sBAAsB,OAAA;AAC/B,2DAAwD;AAA/C,gHAAA,aAAa,OAAA;AACtB,iFAA6E;AAApE,qIAAA,uBAAuB,OAAA;AAChC,yDAAsD;AAA7C,8GAA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AA;AACpB,8CAAuD;AAA9C,0GAAA,gBAAgB,OAAA;AACzB,sDAA6D;AAApD,gHAAA,kBAAkB,OAAA;AAE3B,oEAA+D;AAAtD,kHAAA,aAAa,OAAA;AACtB,+DAA6C;AAC7C,4DAA0D;AAAjD,6GAAA,YAAY,OAAA;AACrB,4EAAyE;AAAhE,4HAAA,mBAAmB,OAAA;AAC5B,4EAAyE;AAAhE,4HAAA,mBAAmB,OAAA;AAG5B,oEAAiE;AAAxD,sHAAA,gBAAgB,OAAA;AACzB,8DAAmE;AAA1D,yGAAA,MAAM,OAAA;AAAE,gHAAA,aAAa,OAAA;AAE9B,sDAA2D;AAAlD,gHAAA,iBAAiB,OAAA;AAQ1B,wCAA0E;AAAjE,6FAAA,EAAE,OAAA;AAAE,+FAAA,IAAI,OAAA;AAAE,0GAAA,eAAe,OAAA;AAAE,8FAAA,GAAG,OAAA;AAAE,qGAAA,UAAU,OAAA"}
|
package/dist/migrations/common/1789137988234-AddKindCreatedAtIndexToTypeAvailabilityPolicy.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { MigrationContext, ReversibleMigration } from '../migration-types';
|
|
2
|
+
export declare class AddKindCreatedAtIndexToTypeAvailabilityPolicy1789137988234 implements ReversibleMigration {
|
|
3
|
+
up(context: MigrationContext): Promise<void>;
|
|
4
|
+
down(context: MigrationContext): Promise<void>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddKindCreatedAtIndexToTypeAvailabilityPolicy1789137988234 = void 0;
|
|
4
|
+
const tableName = 'type_availability_policy';
|
|
5
|
+
const columns = ['kind', 'createdAt', 'id'];
|
|
6
|
+
class AddKindCreatedAtIndexToTypeAvailabilityPolicy1789137988234 {
|
|
7
|
+
async up(context) {
|
|
8
|
+
await context.schemaBuilder.createIndex(tableName, columns);
|
|
9
|
+
}
|
|
10
|
+
async down(context) {
|
|
11
|
+
await context.schemaBuilder.dropIndex(tableName, columns, { skipIfMissing: true });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.AddKindCreatedAtIndexToTypeAvailabilityPolicy1789137988234 = AddKindCreatedAtIndexToTypeAvailabilityPolicy1789137988234;
|
|
15
|
+
//# sourceMappingURL=1789137988234-AddKindCreatedAtIndexToTypeAvailabilityPolicy.js.map
|
package/dist/migrations/common/1789137988234-AddKindCreatedAtIndexToTypeAvailabilityPolicy.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1789137988234-AddKindCreatedAtIndexToTypeAvailabilityPolicy.js","sourceRoot":"","sources":["../../../src/migrations/common/1789137988234-AddKindCreatedAtIndexToTypeAvailabilityPolicy.ts"],"names":[],"mappings":";;;AAEA,MAAM,SAAS,GAAG,0BAA0B,CAAC;AAC7C,MAAM,OAAO,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;AAM5C;IAGC,KAAK,CAAC,EAAE,CAAC,OAAyB;QACjC,MAAM,OAAO,CAAC,aAAa,CAAC,WAAW,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,OAAyB;QACnC,MAAM,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;IACpF,CAAC;CACD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { MigrationContext, ReversibleMigration } from '../migration-types';
|
|
2
|
+
export declare class AddSourceToAiPreference1789479099132 implements ReversibleMigration {
|
|
3
|
+
up(context: MigrationContext): Promise<void>;
|
|
4
|
+
down({ schemaBuilder }: MigrationContext): Promise<void>;
|
|
5
|
+
private backfillExistingRows;
|
|
6
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddSourceToAiPreference1789479099132 = void 0;
|
|
4
|
+
const AI_PREFERENCE_TABLE = 'ai_preference';
|
|
5
|
+
const SOURCE_COLUMN = 'source';
|
|
6
|
+
const SOURCE_VALUES = ['ui', 'aia', 'mcp'];
|
|
7
|
+
class AddSourceToAiPreference1789479099132 {
|
|
8
|
+
async up(context) {
|
|
9
|
+
const { schemaBuilder } = context;
|
|
10
|
+
await schemaBuilder.addColumns(AI_PREFERENCE_TABLE, [
|
|
11
|
+
schemaBuilder
|
|
12
|
+
.column(SOURCE_COLUMN)
|
|
13
|
+
.varchar(16)
|
|
14
|
+
.comment('Surface that wrote the row: ui (settings), aia (assistant), mcp (client)'),
|
|
15
|
+
], { recreatesOnSqlite: true });
|
|
16
|
+
await this.backfillExistingRows(context);
|
|
17
|
+
await schemaBuilder.addNotNull(AI_PREFERENCE_TABLE, SOURCE_COLUMN, {
|
|
18
|
+
recreatesOnSqlite: true,
|
|
19
|
+
});
|
|
20
|
+
await schemaBuilder.addEnumCheck(AI_PREFERENCE_TABLE, SOURCE_COLUMN, SOURCE_VALUES, {
|
|
21
|
+
recreatesOnSqlite: true,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
async down({ schemaBuilder }) {
|
|
25
|
+
await schemaBuilder.dropEnumCheck(AI_PREFERENCE_TABLE, SOURCE_COLUMN, {
|
|
26
|
+
recreatesOnSqlite: true,
|
|
27
|
+
});
|
|
28
|
+
await schemaBuilder.dropColumns(AI_PREFERENCE_TABLE, [SOURCE_COLUMN], {
|
|
29
|
+
recreatesOnSqlite: true,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
async backfillExistingRows({ escape, runQuery }) {
|
|
33
|
+
const table = escape.tableName(AI_PREFERENCE_TABLE);
|
|
34
|
+
const source = escape.columnName(SOURCE_COLUMN);
|
|
35
|
+
await runQuery(`UPDATE ${table} SET ${source} = 'ui' WHERE ${source} IS NULL`);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.AddSourceToAiPreference1789479099132 = AddSourceToAiPreference1789479099132;
|
|
39
|
+
//# sourceMappingURL=1789479099132-AddSourceToAiPreference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1789479099132-AddSourceToAiPreference.js","sourceRoot":"","sources":["../../../src/migrations/common/1789479099132-AddSourceToAiPreference.ts"],"names":[],"mappings":";;;AAEA,MAAM,mBAAmB,GAAG,eAAe,CAAC;AAC5C,MAAM,aAAa,GAAG,QAAQ,CAAC;AAC/B,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAa3C;IACC,KAAK,CAAC,EAAE,CAAC,OAAyB;QACjC,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;QAElC,MAAM,aAAa,CAAC,UAAU,CAC7B,mBAAmB,EACnB;YACC,aAAa;iBACX,MAAM,CAAC,aAAa,CAAC;iBACrB,OAAO,CAAC,EAAE,CAAC;iBACX,OAAO,CAAC,0EAA0E,CAAC;SACrF,EACD,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAC3B,CAAC;QAEF,MAAM,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;QAEzC,MAAM,aAAa,CAAC,UAAU,CAAC,mBAAmB,EAAE,aAAa,EAAE;YAClE,iBAAiB,EAAE,IAAI;SACvB,CAAC,CAAC;QAEH,MAAM,aAAa,CAAC,YAAY,CAAC,mBAAmB,EAAE,aAAa,EAAE,aAAa,EAAE;YACnF,iBAAiB,EAAE,IAAI;SACvB,CAAC,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,EAAE,aAAa,EAAoB;QAC7C,MAAM,aAAa,CAAC,aAAa,CAAC,mBAAmB,EAAE,aAAa,EAAE;YACrE,iBAAiB,EAAE,IAAI;SACvB,CAAC,CAAC;QAEH,MAAM,aAAa,CAAC,WAAW,CAAC,mBAAmB,EAAE,CAAC,aAAa,CAAC,EAAE;YACrE,iBAAiB,EAAE,IAAI;SACvB,CAAC,CAAC;IACJ,CAAC;IAGO,KAAK,CAAC,oBAAoB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAoB;QACxE,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;QACpD,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;QAEhD,MAAM,QAAQ,CAAC,UAAU,KAAK,QAAQ,MAAM,iBAAiB,MAAM,UAAU,CAAC,CAAC;IAChF,CAAC;CACD"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { MigrationContext, ReversibleMigration } from '../migration-types';
|
|
2
|
+
export declare class AddDescriptionToCredentials1789558029357 implements ReversibleMigration {
|
|
3
|
+
up({ escape, runQuery, isPostgres }: MigrationContext): Promise<void>;
|
|
4
|
+
down({ escape, runQuery }: MigrationContext): Promise<void>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddDescriptionToCredentials1789558029357 = void 0;
|
|
4
|
+
const COLUMN_COMMENT = 'User-supplied note on what the credential is for and where it belongs. Set and read through the credentials API';
|
|
5
|
+
class AddDescriptionToCredentials1789558029357 {
|
|
6
|
+
async up({ escape, runQuery, isPostgres }) {
|
|
7
|
+
const tableName = escape.tableName('credentials_entity');
|
|
8
|
+
const columnName = escape.columnName('description');
|
|
9
|
+
await runQuery(`ALTER TABLE ${tableName} ADD COLUMN ${columnName} TEXT`);
|
|
10
|
+
if (isPostgres) {
|
|
11
|
+
await runQuery(`COMMENT ON COLUMN ${tableName}.${columnName} IS '${COLUMN_COMMENT}'`);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
async down({ escape, runQuery }) {
|
|
15
|
+
const tableName = escape.tableName('credentials_entity');
|
|
16
|
+
const columnName = escape.columnName('description');
|
|
17
|
+
await runQuery(`ALTER TABLE ${tableName} DROP COLUMN ${columnName}`);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.AddDescriptionToCredentials1789558029357 = AddDescriptionToCredentials1789558029357;
|
|
21
|
+
//# sourceMappingURL=1789558029357-AddDescriptionToCredentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1789558029357-AddDescriptionToCredentials.js","sourceRoot":"","sources":["../../../src/migrations/common/1789558029357-AddDescriptionToCredentials.ts"],"names":[],"mappings":";;;AAEA,MAAM,cAAc,GACnB,iHAAiH,CAAC;AAEnH;IAGC,KAAK,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAoB;QAC1D,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;QACzD,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;QAEpD,MAAM,QAAQ,CAAC,eAAe,SAAS,eAAe,UAAU,OAAO,CAAC,CAAC;QAEzE,IAAI,UAAU,EAAE,CAAC;YAChB,MAAM,QAAQ,CAAC,qBAAqB,SAAS,IAAI,UAAU,QAAQ,cAAc,GAAG,CAAC,CAAC;QACvF,CAAC;IACF,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAoB;QAChD,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;QACzD,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;QAEpD,MAAM,QAAQ,CAAC,eAAe,SAAS,gBAAgB,UAAU,EAAE,CAAC,CAAC;IACtE,CAAC;CACD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MigrationContext, ReversibleMigration } from '../migration-types';
|
|
2
|
+
export declare class AddThreadIdToAgentCheckpoints1789717191125 implements ReversibleMigration {
|
|
3
|
+
up(context: MigrationContext): Promise<void>;
|
|
4
|
+
down({ schemaBuilder: { dropIndex, dropColumns }, tablePrefix }: MigrationContext): Promise<void>;
|
|
5
|
+
private backfillThreadIds;
|
|
6
|
+
private backfillCheckpoint;
|
|
7
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddThreadIdToAgentCheckpoints1789717191125 = void 0;
|
|
4
|
+
const indexColumns = ['agentId', 'threadId', 'expired', 'updatedAt'];
|
|
5
|
+
const indexName = 'agent_checkpoints_thread';
|
|
6
|
+
class AddThreadIdToAgentCheckpoints1789717191125 {
|
|
7
|
+
async up(context) {
|
|
8
|
+
const { addColumns, column, createIndex } = context.schemaBuilder;
|
|
9
|
+
if (context.isSqlite) {
|
|
10
|
+
await context.runQuery(`ALTER TABLE ${context.escape.tableName('agent_checkpoints')} ADD COLUMN ${context.escape.columnName('threadId')} TEXT`);
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
await addColumns('agent_checkpoints', [
|
|
14
|
+
column('threadId').text.comment('SDK thread key from checkpoint state. Execution history is optional.'),
|
|
15
|
+
], { recreatesOnSqlite: true });
|
|
16
|
+
}
|
|
17
|
+
await this.backfillThreadIds(context);
|
|
18
|
+
await createIndex('agent_checkpoints', indexColumns, false, `IDX_${context.tablePrefix}${indexName}`);
|
|
19
|
+
}
|
|
20
|
+
async down({ schemaBuilder: { dropIndex, dropColumns }, tablePrefix }) {
|
|
21
|
+
await dropIndex('agent_checkpoints', indexColumns, {
|
|
22
|
+
customIndexName: `IDX_${tablePrefix}${indexName}`,
|
|
23
|
+
});
|
|
24
|
+
await dropColumns('agent_checkpoints', ['threadId'], { recreatesOnSqlite: true });
|
|
25
|
+
}
|
|
26
|
+
async backfillThreadIds(context) {
|
|
27
|
+
const { escape, runInBatches, logger, migrationName } = context;
|
|
28
|
+
const table = escape.tableName('agent_checkpoints');
|
|
29
|
+
const runIdColumn = escape.columnName('runId');
|
|
30
|
+
const stateColumn = escape.columnName('state');
|
|
31
|
+
let updated = 0;
|
|
32
|
+
let skipped = 0;
|
|
33
|
+
await runInBatches(`SELECT ${runIdColumn}, ${stateColumn} FROM ${table} WHERE ${stateColumn} IS NOT NULL ORDER BY ${runIdColumn}`, async (rows) => {
|
|
34
|
+
for (const row of rows) {
|
|
35
|
+
if (await this.backfillCheckpoint(row, context)) {
|
|
36
|
+
updated++;
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
skipped++;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
logger.info(`[${migrationName}] Backfilled ${updated} checkpoint thread IDs; skipped ${skipped} checkpoints.`);
|
|
44
|
+
}
|
|
45
|
+
async backfillCheckpoint(row, { escape, runQuery, parseJson, logger, migrationName }) {
|
|
46
|
+
let state;
|
|
47
|
+
try {
|
|
48
|
+
state = parseJson(row.state);
|
|
49
|
+
}
|
|
50
|
+
catch (error) {
|
|
51
|
+
logger.warn(`[${migrationName}] Skipped malformed checkpoint ${row.runId}: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
const threadId = state?.persistence?.threadId;
|
|
55
|
+
if (typeof threadId !== 'string')
|
|
56
|
+
return false;
|
|
57
|
+
await runQuery(`UPDATE ${escape.tableName('agent_checkpoints')} SET ${escape.columnName('threadId')} = :threadId WHERE ${escape.columnName('runId')} = :runId`, { threadId, runId: row.runId });
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.AddThreadIdToAgentCheckpoints1789717191125 = AddThreadIdToAgentCheckpoints1789717191125;
|
|
62
|
+
//# sourceMappingURL=1789717191125-AddThreadIdToAgentCheckpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1789717191125-AddThreadIdToAgentCheckpoints.js","sourceRoot":"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Y,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,EAAE,CAC3H,CAAC;YACF,OAAO,KAAK,CAAC;QACd,CAAC;QACD,MAAM,QAAQ,GAAG,KAAK,EAAE,WAAW,EAAE,QAAQ,CAAC;QAC9C,IAAI,OAAO,QAAQ,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAC;QAC/C,MAAM,QAAQ,CACb,UAAU,MAAM,CAAC,SAAS,CAAC,mBAAmB,CAAC,QAAQ,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,sBAAsB,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,EAC/I,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,CAC9B,CAAC;QACF,OAAO,IAAI,CAAC;IACb,CAAC;CACD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IrreversibleMigration, MigrationContext } from '../migration-types';
|
|
2
|
+
export declare class AddExecutionScopesToCustomRoles1789995003141 implements IrreversibleMigration {
|
|
3
|
+
up(ctx: MigrationContext): Promise<void>;
|
|
4
|
+
private ensureScopes;
|
|
5
|
+
private grantToCustomProjectRoles;
|
|
6
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddExecutionScopesToCustomRoles1789995003141 = void 0;
|
|
4
|
+
const executionScopes = [
|
|
5
|
+
{
|
|
6
|
+
slug: 'execution:read',
|
|
7
|
+
displayName: 'View Execution',
|
|
8
|
+
description: 'Allows viewing executions of workflows the role can view.',
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
slug: 'execution:list',
|
|
12
|
+
displayName: 'List Executions',
|
|
13
|
+
description: 'Allows listing executions of workflows the role can view.',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
slug: 'execution:delete',
|
|
17
|
+
displayName: 'Delete Execution',
|
|
18
|
+
description: 'Allows deleting executions of workflows in the project.',
|
|
19
|
+
},
|
|
20
|
+
];
|
|
21
|
+
class AddExecutionScopesToCustomRoles1789995003141 {
|
|
22
|
+
async up(ctx) {
|
|
23
|
+
await this.ensureScopes(ctx);
|
|
24
|
+
await this.grantToCustomProjectRoles(ctx, ['workflow:read'], ['execution:read', 'execution:list']);
|
|
25
|
+
await this.grantToCustomProjectRoles(ctx, ['workflow:execute', 'workflow:delete'], ['execution:delete']);
|
|
26
|
+
}
|
|
27
|
+
async ensureScopes({ escape, runQuery }) {
|
|
28
|
+
const scopeTable = escape.tableName('scope');
|
|
29
|
+
const slug = escape.columnName('slug');
|
|
30
|
+
const displayName = escape.columnName('displayName');
|
|
31
|
+
const description = escape.columnName('description');
|
|
32
|
+
for (const scope of executionScopes) {
|
|
33
|
+
await runQuery(`INSERT INTO ${scopeTable} (${slug}, ${displayName}, ${description})
|
|
34
|
+
VALUES (:slug, :displayName, :description)
|
|
35
|
+
ON CONFLICT (${slug}) DO NOTHING`, scope);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
async grantToCustomProjectRoles({ escape, runQuery }, holding, granted) {
|
|
39
|
+
const roleTable = escape.tableName('role');
|
|
40
|
+
const roleScopeTable = escape.tableName('role_scope');
|
|
41
|
+
const roleSlug = escape.columnName('slug');
|
|
42
|
+
const roleType = escape.columnName('roleType');
|
|
43
|
+
const systemRole = escape.columnName('systemRole');
|
|
44
|
+
const mappedRoleSlug = escape.columnName('roleSlug');
|
|
45
|
+
const mappedScopeSlug = escape.columnName('scopeSlug');
|
|
46
|
+
const holdingList = holding.map((scope) => `'${scope}'`).join(', ');
|
|
47
|
+
for (const scope of granted) {
|
|
48
|
+
await runQuery(`INSERT INTO ${roleScopeTable} (${mappedRoleSlug}, ${mappedScopeSlug})
|
|
49
|
+
SELECT DISTINCT role.${roleSlug}, '${scope}'
|
|
50
|
+
FROM ${roleTable} role
|
|
51
|
+
INNER JOIN ${roleScopeTable} role_scope
|
|
52
|
+
ON role.${roleSlug} = role_scope.${mappedRoleSlug}
|
|
53
|
+
WHERE role.${roleType} = 'project'
|
|
54
|
+
AND role.${systemRole} = :isSystemRole
|
|
55
|
+
AND role_scope.${mappedScopeSlug} IN (${holdingList})
|
|
56
|
+
ON CONFLICT (${mappedRoleSlug}, ${mappedScopeSlug}) DO NOTHING`, { isSystemRole: false });
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.AddExecutionScopesToCustomRoles1789995003141 = AddExecutionScopesToCustomRoles1789995003141;
|
|
61
|
+
//# sourceMappingURL=1789995003141-AddExecutionScopesToCustomRoles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1789995003141-AddExecutionScopesToCustomRoles.js","sourceRoot":"","sources":["../../../src/migrations/common/1789995003141-AddExecutionScopesToCustomRoles.ts"],"names":[],"mappings":";;;AAEA,MAAM,eAAe,GAAG;IACvB;QACC,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,gBAAgB;QAC7B,WAAW,EAAE,2DAA2D;KACxE;IACD;QACC,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,iBAAiB;QAC9B,WAAW,EAAE,2DAA2D;KACxE;IACD;QACC,IAAI,EAAE,kBAAkB;QACxB,WAAW,EAAE,kBAAkB;QAC/B,WAAW,EAAE,yDAAyD;KACtE;CACD,CAAC;AA0BF;IACC,KAAK,CAAC,EAAE,CAAC,GAAqB;QAC7B,MAAM,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;QAC7B,MAAM,IAAI,CAAC,yBAAyB,CACnC,GAAG,EACH,CAAC,eAAe,CAAC,EACjB,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CACpC,CAAC;QACF,MAAM,IAAI,CAAC,yBAAyB,CACnC,GAAG,EACH,CAAC,kBAAkB,EAAE,iBAAiB,CAAC,EACvC,CAAC,kBAAkB,CAAC,CACpB,CAAC;IACH,CAAC;IAEO,KA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