@loopstack/common 0.29.0 → 0.30.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/base/base-tool.d.ts +2 -2
- package/dist/base/base-tool.d.ts.map +1 -1
- package/dist/base/base-tool.js +10 -13
- package/dist/base/base-tool.js.map +1 -1
- package/dist/base/base-workflow.d.ts +2 -2
- package/dist/base/base-workflow.d.ts.map +1 -1
- package/dist/base/base-workflow.js +16 -19
- package/dist/base/base-workflow.js.map +1 -1
- package/dist/base/index.d.ts +4 -4
- package/dist/base/index.d.ts.map +1 -1
- package/dist/base/index.js +4 -20
- package/dist/base/index.js.map +1 -1
- package/dist/base/server-tool.js +4 -7
- package/dist/base/server-tool.js.map +1 -1
- package/dist/base/workflow-templates.js +1 -2
- package/dist/constants/auth.constants.js +2 -5
- package/dist/constants/auth.constants.js.map +1 -1
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +1 -17
- package/dist/constants/index.js.map +1 -1
- package/dist/decorators/ai-provider.decorator.js +5 -9
- package/dist/decorators/ai-provider.decorator.js.map +1 -1
- package/dist/decorators/block.decorator.d.ts.map +1 -1
- package/dist/decorators/block.decorator.js +48 -68
- package/dist/decorators/block.decorator.js.map +1 -1
- package/dist/decorators/capability-decorator.js +5 -9
- package/dist/decorators/capability-decorator.js.map +1 -1
- package/dist/decorators/current-user.decorator.js +2 -5
- package/dist/decorators/current-user.decorator.js.map +1 -1
- package/dist/decorators/index.d.ts +6 -6
- package/dist/decorators/index.d.ts.map +1 -1
- package/dist/decorators/index.js +6 -22
- package/dist/decorators/index.js.map +1 -1
- package/dist/decorators/public.decorator.js +3 -7
- package/dist/decorators/public.decorator.js.map +1 -1
- package/dist/decorators/roles.decorator.d.ts +1 -1
- package/dist/decorators/roles.decorator.d.ts.map +1 -1
- package/dist/decorators/roles.decorator.js +3 -7
- package/dist/decorators/roles.decorator.js.map +1 -1
- package/dist/documents/error-document.js +9 -12
- package/dist/documents/error-document.js.map +1 -1
- package/dist/documents/index.d.ts +5 -5
- package/dist/documents/index.d.ts.map +1 -1
- package/dist/documents/index.js +5 -21
- package/dist/documents/index.js.map +1 -1
- package/dist/documents/link-document.js +13 -16
- package/dist/documents/link-document.js.map +1 -1
- package/dist/documents/markdown-document.js +9 -12
- package/dist/documents/markdown-document.js.map +1 -1
- package/dist/documents/message-document.js +10 -13
- package/dist/documents/message-document.js.map +1 -1
- package/dist/documents/plain-document.js +9 -12
- package/dist/documents/plain-document.js.map +1 -1
- package/dist/dtos/execution-context.d.ts +1 -1
- package/dist/dtos/execution-context.d.ts.map +1 -1
- package/dist/dtos/execution-context.js +1 -5
- package/dist/dtos/execution-context.js.map +1 -1
- package/dist/dtos/index.d.ts +5 -5
- package/dist/dtos/index.d.ts.map +1 -1
- package/dist/dtos/index.js +5 -21
- package/dist/dtos/index.js.map +1 -1
- package/dist/dtos/run-context.d.ts +3 -3
- package/dist/dtos/run-context.d.ts.map +1 -1
- package/dist/dtos/run-context.js +1 -5
- package/dist/dtos/run-context.js.map +1 -1
- package/dist/dtos/workflow-state.dto.d.ts +3 -3
- package/dist/dtos/workflow-state.dto.d.ts.map +1 -1
- package/dist/dtos/workflow-state.dto.js +1 -5
- package/dist/dtos/workflow-state.dto.js.map +1 -1
- package/dist/dtos/workflow-transition.dto.js +1 -5
- package/dist/dtos/workflow-transition.dto.js.map +1 -1
- package/dist/dtos/workspace-environment-context.dto.d.ts +1 -1
- package/dist/dtos/workspace-environment-context.dto.d.ts.map +1 -1
- package/dist/dtos/workspace-environment-context.dto.js +10 -14
- package/dist/dtos/workspace-environment-context.dto.js.map +1 -1
- package/dist/entities/document.entity.d.ts +6 -5
- package/dist/entities/document.entity.d.ts.map +1 -1
- package/dist/entities/document.entity.js +43 -46
- package/dist/entities/document.entity.js.map +1 -1
- package/dist/entities/index.js +7 -23
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/role.entity.d.ts +4 -3
- package/dist/entities/role.entity.d.ts.map +1 -1
- package/dist/entities/role.entity.js +10 -13
- package/dist/entities/role.entity.js.map +1 -1
- package/dist/entities/user.entity.d.ts +4 -3
- package/dist/entities/user.entity.d.ts.map +1 -1
- package/dist/entities/user.entity.js +15 -18
- package/dist/entities/user.entity.js.map +1 -1
- package/dist/entities/workflow-checkpoint.entity.d.ts +1 -1
- package/dist/entities/workflow-checkpoint.entity.d.ts.map +1 -1
- package/dist/entities/workflow-checkpoint.entity.js +20 -23
- package/dist/entities/workflow-checkpoint.entity.js.map +1 -1
- package/dist/entities/workflow.entity.d.ts +11 -10
- package/dist/entities/workflow.entity.d.ts.map +1 -1
- package/dist/entities/workflow.entity.js +51 -54
- package/dist/entities/workflow.entity.js.map +1 -1
- package/dist/entities/workspace-environment.entity.d.ts +3 -2
- package/dist/entities/workspace-environment.entity.d.ts.map +1 -1
- package/dist/entities/workspace-environment.entity.js +22 -25
- package/dist/entities/workspace-environment.entity.js.map +1 -1
- package/dist/entities/workspace.entity.d.ts +7 -6
- package/dist/entities/workspace.entity.d.ts.map +1 -1
- package/dist/entities/workspace.entity.js +23 -26
- package/dist/entities/workspace.entity.js.map +1 -1
- package/dist/enums/index.js +3 -19
- package/dist/enums/index.js.map +1 -1
- package/dist/enums/role-name.enum.js +2 -5
- package/dist/enums/role-name.enum.js.map +1 -1
- package/dist/enums/user-type.enum.js +2 -5
- package/dist/enums/user-type.enum.js.map +1 -1
- package/dist/enums/workflow-state.enum.js +2 -5
- package/dist/enums/workflow-state.enum.js.map +1 -1
- package/dist/index.js +12 -28
- package/dist/index.js.map +1 -1
- package/dist/interfaces/ai-provider.interface.js +1 -2
- package/dist/interfaces/block.interface.d.ts +2 -2
- package/dist/interfaces/block.interface.d.ts.map +1 -1
- package/dist/interfaces/block.interface.js +1 -2
- package/dist/interfaces/current-user.interface.d.ts +1 -1
- package/dist/interfaces/current-user.interface.d.ts.map +1 -1
- package/dist/interfaces/current-user.interface.js +1 -2
- package/dist/interfaces/document-repository.interface.d.ts +1 -1
- package/dist/interfaces/document-repository.interface.d.ts.map +1 -1
- package/dist/interfaces/document-repository.interface.js +1 -2
- package/dist/interfaces/execution-context.interface.d.ts +3 -3
- package/dist/interfaces/execution-context.interface.d.ts.map +1 -1
- package/dist/interfaces/execution-context.interface.js +1 -2
- package/dist/interfaces/handler.interface.js +1 -2
- package/dist/interfaces/index.js +18 -34
- package/dist/interfaces/index.js.map +1 -1
- package/dist/interfaces/jwt-payload.interface.d.ts +1 -1
- package/dist/interfaces/jwt-payload.interface.d.ts.map +1 -1
- package/dist/interfaces/jwt-payload.interface.js +1 -2
- package/dist/interfaces/persistence-state.interface.js +1 -2
- package/dist/interfaces/role.interface.js +1 -2
- package/dist/interfaces/sso-response.interface.js +1 -2
- package/dist/interfaces/tool-execution-interceptor.interface.d.ts +2 -2
- package/dist/interfaces/tool-execution-interceptor.interface.d.ts.map +1 -1
- package/dist/interfaces/tool-execution-interceptor.interface.js +7 -11
- package/dist/interfaces/tool-execution-interceptor.interface.js.map +1 -1
- package/dist/interfaces/transition-results.types.d.ts +1 -1
- package/dist/interfaces/transition-results.types.d.ts.map +1 -1
- package/dist/interfaces/transition-results.types.js +1 -2
- package/dist/interfaces/user.interface.d.ts +1 -1
- package/dist/interfaces/user.interface.d.ts.map +1 -1
- package/dist/interfaces/user.interface.js +1 -2
- package/dist/interfaces/workflow-execution.interface.d.ts +2 -2
- package/dist/interfaces/workflow-execution.interface.d.ts.map +1 -1
- package/dist/interfaces/workflow-execution.interface.js +1 -2
- package/dist/interfaces/workflow-memento-data.interfate.js +1 -2
- package/dist/interfaces/workflow-metadata.interface.d.ts +1 -1
- package/dist/interfaces/workflow-metadata.interface.d.ts.map +1 -1
- package/dist/interfaces/workflow-metadata.interface.js +1 -2
- package/dist/interfaces/workflow-orchestrator.interface.d.ts +2 -2
- package/dist/interfaces/workflow-orchestrator.interface.d.ts.map +1 -1
- package/dist/interfaces/workflow-orchestrator.interface.js +1 -2
- package/dist/interfaces/workflow-state.interface.js +1 -2
- package/dist/schema/index.js +1 -17
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/runtime-metadata.schema.js +3 -6
- package/dist/schema/runtime-metadata.schema.js.map +1 -1
- package/dist/tokens.js +4 -7
- package/dist/tokens.js.map +1 -1
- package/dist/utils/block-config.builder.d.ts +1 -1
- package/dist/utils/block-config.builder.d.ts.map +1 -1
- package/dist/utils/block-config.builder.js +7 -13
- package/dist/utils/block-config.builder.js.map +1 -1
- package/dist/utils/block-metadata.utils.d.ts +2 -2
- package/dist/utils/block-metadata.utils.d.ts.map +1 -1
- package/dist/utils/block-metadata.utils.js +37 -60
- package/dist/utils/block-metadata.utils.js.map +1 -1
- package/dist/utils/deep-merge.js +1 -4
- package/dist/utils/deep-merge.js.map +1 -1
- package/dist/utils/index.js +5 -21
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/normalize-object.js +1 -4
- package/dist/utils/normalize-object.js.map +1 -1
- package/dist/utils/stable-json-transformer.js +3 -10
- package/dist/utils/stable-json-transformer.js.map +1 -1
- package/dist/utils/workflow-transitions.builder.js +4 -7
- package/dist/utils/workflow-transitions.builder.js.map +1 -1
- package/package.json +3 -2
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkflowTransitionDto = void 0;
|
|
4
|
-
class WorkflowTransitionDto {
|
|
1
|
+
export class WorkflowTransitionDto {
|
|
5
2
|
id;
|
|
6
3
|
from;
|
|
7
4
|
to;
|
|
@@ -11,5 +8,4 @@ class WorkflowTransitionDto {
|
|
|
11
8
|
Object.assign(this, data);
|
|
12
9
|
}
|
|
13
10
|
}
|
|
14
|
-
exports.WorkflowTransitionDto = WorkflowTransitionDto;
|
|
15
11
|
//# sourceMappingURL=workflow-transition.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-transition.dto.js","sourceRoot":"","sources":["../../src/dtos/workflow-transition.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workflow-transition.dto.js","sourceRoot":"","sources":["../../src/dtos/workflow-transition.dto.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,qBAAqB;IAChC,EAAE,CAAU;IACZ,IAAI,CAAU;IACd,EAAE,CAAU;IACZ,OAAO,CAAU;IACjB,OAAO,CAAW;IAElB,YAAY,IAAoC;QAC9C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC5B,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-environment-context.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/workspace-environment-context.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"workspace-environment-context.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/workspace-environment-context.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAElE,qBAAa,8BAA8B;IAEzC,MAAM,EAAE,MAAM,CAAC;IAGf,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,aAAa,CAAC,EAAE,MAAM,CAAC;IAGvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,0BAA0B,EAAE,GAAG,8BAA8B,EAAE;CAO9F"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,10 +7,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
class WorkspaceEnvironmentContextDto {
|
|
10
|
+
import { Expose, plainToInstance } from 'class-transformer';
|
|
11
|
+
export class WorkspaceEnvironmentContextDto {
|
|
15
12
|
slotId;
|
|
16
13
|
type;
|
|
17
14
|
envName;
|
|
@@ -20,38 +17,37 @@ class WorkspaceEnvironmentContextDto {
|
|
|
20
17
|
workerId;
|
|
21
18
|
workerUrl;
|
|
22
19
|
static fromEntities(entities) {
|
|
23
|
-
return entities.map((entity) =>
|
|
20
|
+
return entities.map((entity) => plainToInstance(WorkspaceEnvironmentContextDto, entity, {
|
|
24
21
|
excludeExtraneousValues: true,
|
|
25
22
|
}));
|
|
26
23
|
}
|
|
27
24
|
}
|
|
28
|
-
exports.WorkspaceEnvironmentContextDto = WorkspaceEnvironmentContextDto;
|
|
29
25
|
__decorate([
|
|
30
|
-
|
|
26
|
+
Expose(),
|
|
31
27
|
__metadata("design:type", String)
|
|
32
28
|
], WorkspaceEnvironmentContextDto.prototype, "slotId", void 0);
|
|
33
29
|
__decorate([
|
|
34
|
-
|
|
30
|
+
Expose(),
|
|
35
31
|
__metadata("design:type", String)
|
|
36
32
|
], WorkspaceEnvironmentContextDto.prototype, "type", void 0);
|
|
37
33
|
__decorate([
|
|
38
|
-
|
|
34
|
+
Expose(),
|
|
39
35
|
__metadata("design:type", String)
|
|
40
36
|
], WorkspaceEnvironmentContextDto.prototype, "envName", void 0);
|
|
41
37
|
__decorate([
|
|
42
|
-
|
|
38
|
+
Expose(),
|
|
43
39
|
__metadata("design:type", String)
|
|
44
40
|
], WorkspaceEnvironmentContextDto.prototype, "connectionUrl", void 0);
|
|
45
41
|
__decorate([
|
|
46
|
-
|
|
42
|
+
Expose(),
|
|
47
43
|
__metadata("design:type", String)
|
|
48
44
|
], WorkspaceEnvironmentContextDto.prototype, "agentUrl", void 0);
|
|
49
45
|
__decorate([
|
|
50
|
-
|
|
46
|
+
Expose(),
|
|
51
47
|
__metadata("design:type", String)
|
|
52
48
|
], WorkspaceEnvironmentContextDto.prototype, "workerId", void 0);
|
|
53
49
|
__decorate([
|
|
54
|
-
|
|
50
|
+
Expose(),
|
|
55
51
|
__metadata("design:type", String)
|
|
56
52
|
], WorkspaceEnvironmentContextDto.prototype, "workerUrl", void 0);
|
|
57
53
|
//# sourceMappingURL=workspace-environment-context.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-environment-context.dto.js","sourceRoot":"","sources":["../../src/dtos/workspace-environment-context.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workspace-environment-context.dto.js","sourceRoot":"","sources":["../../src/dtos/workspace-environment-context.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAG5D,MAAM,OAAO,8BAA8B;IAEzC,MAAM,CAAS;IAGf,IAAI,CAAS;IAGb,OAAO,CAAU;IAGjB,aAAa,CAAU;IAGvB,QAAQ,CAAU;IAGlB,QAAQ,CAAU;IAGlB,SAAS,CAAU;IAEnB,MAAM,CAAC,YAAY,CAAC,QAAsC;QACxD,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAC7B,eAAe,CAAC,8BAA8B,EAAE,MAAM,EAAE;YACtD,uBAAuB,EAAE,IAAI;SAC9B,CAAC,CACH,CAAC;IACJ,CAAC;CACF;AA3BC;IADC,MAAM,EAAE;;8DACM;AAGf;IADC,MAAM,EAAE;;4DACI;AAGb;IADC,MAAM,EAAE;;+DACQ;AAGjB;IADC,MAAM,EAAE;;qEACc;AAGvB;IADC,MAAM,EAAE;;gEACS;AAGlB;IADC,MAAM,EAAE;;gEACS;AAGlB;IADC,MAAM,EAAE;;iEACU"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { Relation } from 'typeorm';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
import type { JSONSchemaConfigType } from '@loopstack/contracts/types';
|
|
3
|
-
import { User } from './user.entity';
|
|
4
|
-
import { WorkflowEntity } from './workflow.entity';
|
|
4
|
+
import { User } from './user.entity.js';
|
|
5
|
+
import { WorkflowEntity } from './workflow.entity.js';
|
|
5
6
|
export declare class DocumentEntity<T = any> {
|
|
6
7
|
id: string;
|
|
7
8
|
messageId: string;
|
|
@@ -22,11 +23,11 @@ export declare class DocumentEntity<T = any> {
|
|
|
22
23
|
place: string | null;
|
|
23
24
|
createdAt: Date;
|
|
24
25
|
updatedAt: Date;
|
|
25
|
-
workflow: WorkflowEntity
|
|
26
|
+
workflow: Relation<WorkflowEntity>;
|
|
26
27
|
labels: string[];
|
|
27
28
|
workflowId: string;
|
|
28
|
-
dependentStates: WorkflowEntity[]
|
|
29
|
-
creator: User
|
|
29
|
+
dependentStates: Relation<WorkflowEntity[]>;
|
|
30
|
+
creator: Relation<User>;
|
|
30
31
|
createdBy: string;
|
|
31
32
|
}
|
|
32
33
|
//# sourceMappingURL=document.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.entity.d.ts","sourceRoot":"","sources":["../../src/entities/document.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"document.entity.d.ts","sourceRoot":"","sources":["../../src/entities/document.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,QAAQ,EAET,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,OAAO,EAAE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var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,12 +7,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const user_entity_1 = require("./user.entity");
|
|
16
|
-
const workflow_entity_1 = require("./workflow.entity");
|
|
10
|
+
import { Column, CreateDateColumn, Entity, Index, JoinColumn, ManyToMany, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn, } from 'typeorm';
|
|
11
|
+
import { StableJsonTransformer } from '../utils/index.js';
|
|
12
|
+
import { User } from './user.entity.js';
|
|
13
|
+
import { WorkflowEntity } from './workflow.entity.js';
|
|
17
14
|
let DocumentEntity = class DocumentEntity {
|
|
18
15
|
id;
|
|
19
16
|
messageId;
|
|
@@ -41,128 +38,128 @@ let DocumentEntity = class DocumentEntity {
|
|
|
41
38
|
creator;
|
|
42
39
|
createdBy;
|
|
43
40
|
};
|
|
44
|
-
exports.DocumentEntity = DocumentEntity;
|
|
45
41
|
__decorate([
|
|
46
|
-
|
|
42
|
+
PrimaryGeneratedColumn('uuid'),
|
|
47
43
|
__metadata("design:type", String)
|
|
48
44
|
], DocumentEntity.prototype, "id", void 0);
|
|
49
45
|
__decorate([
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
Column({ type: 'varchar', name: 'message_id' }),
|
|
47
|
+
Index(),
|
|
52
48
|
__metadata("design:type", String)
|
|
53
49
|
], DocumentEntity.prototype, "messageId", void 0);
|
|
54
50
|
__decorate([
|
|
55
|
-
|
|
56
|
-
|
|
51
|
+
Column({ type: 'varchar', name: 'alias' }),
|
|
52
|
+
Index(),
|
|
57
53
|
__metadata("design:type", String)
|
|
58
54
|
], DocumentEntity.prototype, "alias", void 0);
|
|
59
55
|
__decorate([
|
|
60
|
-
|
|
56
|
+
Column({ type: 'varchar', name: 'class_name', nullable: true }),
|
|
61
57
|
__metadata("design:type", Object)
|
|
62
58
|
], DocumentEntity.prototype, "className", void 0);
|
|
63
59
|
__decorate([
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
Column({ name: 'workspace_id' }),
|
|
61
|
+
Index(),
|
|
66
62
|
__metadata("design:type", String)
|
|
67
63
|
], DocumentEntity.prototype, "workspaceId", void 0);
|
|
68
64
|
__decorate([
|
|
69
|
-
|
|
65
|
+
Column('jsonb', { nullable: true }),
|
|
70
66
|
__metadata("design:type", Object)
|
|
71
67
|
], DocumentEntity.prototype, "content", void 0);
|
|
72
68
|
__decorate([
|
|
73
|
-
|
|
69
|
+
Column({
|
|
74
70
|
type: 'jsonb',
|
|
75
|
-
transformer: new
|
|
71
|
+
transformer: new StableJsonTransformer(),
|
|
76
72
|
name: 'schema',
|
|
77
73
|
nullable: true,
|
|
78
74
|
}),
|
|
79
75
|
__metadata("design:type", Object)
|
|
80
76
|
], DocumentEntity.prototype, "schema", void 0);
|
|
81
77
|
__decorate([
|
|
82
|
-
|
|
78
|
+
Column('jsonb', { nullable: true, name: 'validation_error' }),
|
|
83
79
|
__metadata("design:type", Object)
|
|
84
80
|
], DocumentEntity.prototype, "error", void 0);
|
|
85
81
|
__decorate([
|
|
86
|
-
|
|
82
|
+
Column({
|
|
87
83
|
type: 'jsonb',
|
|
88
|
-
transformer: new
|
|
84
|
+
transformer: new StableJsonTransformer(),
|
|
89
85
|
name: 'ui',
|
|
90
86
|
nullable: true,
|
|
91
87
|
}),
|
|
92
88
|
__metadata("design:type", Object)
|
|
93
89
|
], DocumentEntity.prototype, "ui", void 0);
|
|
94
90
|
__decorate([
|
|
95
|
-
|
|
91
|
+
Column('varchar', { name: 'tags', array: true, nullable: true }),
|
|
96
92
|
__metadata("design:type", Array)
|
|
97
93
|
], DocumentEntity.prototype, "tags", void 0);
|
|
98
94
|
__decorate([
|
|
99
|
-
|
|
95
|
+
Column('jsonb', { nullable: true }),
|
|
100
96
|
__metadata("design:type", Object)
|
|
101
97
|
], DocumentEntity.prototype, "meta", void 0);
|
|
102
98
|
__decorate([
|
|
103
|
-
|
|
99
|
+
Column({ name: 'is_invalidated', default: false }),
|
|
104
100
|
__metadata("design:type", Boolean)
|
|
105
101
|
], DocumentEntity.prototype, "isInvalidated", void 0);
|
|
106
102
|
__decorate([
|
|
107
|
-
|
|
103
|
+
Column({ name: 'is_pending_removal', default: false }),
|
|
108
104
|
__metadata("design:type", Boolean)
|
|
109
105
|
], DocumentEntity.prototype, "isPendingRemoval", void 0);
|
|
110
106
|
__decorate([
|
|
111
|
-
|
|
107
|
+
Column({ default: 1 }),
|
|
112
108
|
__metadata("design:type", Number)
|
|
113
109
|
], DocumentEntity.prototype, "version", void 0);
|
|
114
110
|
__decorate([
|
|
115
|
-
|
|
111
|
+
Column({ default: 0 }),
|
|
116
112
|
__metadata("design:type", Number)
|
|
117
113
|
], DocumentEntity.prototype, "index", void 0);
|
|
118
114
|
__decorate([
|
|
119
|
-
|
|
115
|
+
Column({ type: 'varchar', nullable: true }),
|
|
120
116
|
__metadata("design:type", Object)
|
|
121
117
|
], DocumentEntity.prototype, "transition", void 0);
|
|
122
118
|
__decorate([
|
|
123
|
-
|
|
119
|
+
Column({ type: 'varchar', nullable: true }),
|
|
124
120
|
__metadata("design:type", Object)
|
|
125
121
|
], DocumentEntity.prototype, "place", void 0);
|
|
126
122
|
__decorate([
|
|
127
|
-
|
|
123
|
+
CreateDateColumn({ name: 'created_at' }),
|
|
128
124
|
__metadata("design:type", Date)
|
|
129
125
|
], DocumentEntity.prototype, "createdAt", void 0);
|
|
130
126
|
__decorate([
|
|
131
|
-
|
|
127
|
+
UpdateDateColumn({ name: 'updated_at' }),
|
|
132
128
|
__metadata("design:type", Date)
|
|
133
129
|
], DocumentEntity.prototype, "updatedAt", void 0);
|
|
134
130
|
__decorate([
|
|
135
|
-
|
|
131
|
+
ManyToOne(() => WorkflowEntity, (state) => state.documents, {
|
|
136
132
|
onDelete: 'CASCADE',
|
|
137
133
|
}),
|
|
138
|
-
|
|
139
|
-
__metadata("design:type",
|
|
134
|
+
JoinColumn({ name: 'workflow_id' }),
|
|
135
|
+
__metadata("design:type", Object)
|
|
140
136
|
], DocumentEntity.prototype, "workflow", void 0);
|
|
141
137
|
__decorate([
|
|
142
|
-
|
|
138
|
+
Column('varchar', { name: 'labels', array: true, nullable: false }),
|
|
143
139
|
__metadata("design:type", Array)
|
|
144
140
|
], DocumentEntity.prototype, "labels", void 0);
|
|
145
141
|
__decorate([
|
|
146
|
-
|
|
142
|
+
Column({ name: 'workflow_id', nullable: true }),
|
|
147
143
|
__metadata("design:type", String)
|
|
148
144
|
], DocumentEntity.prototype, "workflowId", void 0);
|
|
149
145
|
__decorate([
|
|
150
|
-
|
|
146
|
+
ManyToMany(() => WorkflowEntity, (state) => state.dependencies, {
|
|
151
147
|
onDelete: 'CASCADE',
|
|
152
148
|
}),
|
|
153
|
-
__metadata("design:type",
|
|
149
|
+
__metadata("design:type", Object)
|
|
154
150
|
], DocumentEntity.prototype, "dependentStates", void 0);
|
|
155
151
|
__decorate([
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
__metadata("design:type",
|
|
152
|
+
ManyToOne(() => User, { onDelete: 'RESTRICT' }),
|
|
153
|
+
JoinColumn({ name: 'created_by' }),
|
|
154
|
+
__metadata("design:type", Object)
|
|
159
155
|
], DocumentEntity.prototype, "creator", void 0);
|
|
160
156
|
__decorate([
|
|
161
|
-
|
|
162
|
-
|
|
157
|
+
Column({ name: 'created_by', type: 'uuid' }),
|
|
158
|
+
Index(),
|
|
163
159
|
__metadata("design:type", String)
|
|
164
160
|
], DocumentEntity.prototype, "createdBy", void 0);
|
|
165
|
-
|
|
166
|
-
|
|
161
|
+
DocumentEntity = __decorate([
|
|
162
|
+
Entity({ name: 'core_document' })
|
|
167
163
|
], DocumentEntity);
|
|
164
|
+
export { DocumentEntity };
|
|
168
165
|
//# sourceMappingURL=document.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.entity.js","sourceRoot":"","sources":["../../src/entities/document.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"document.entity.js","sourceRoot":"","sources":["../../src/entities/document.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,gBAAgB,EAChB,MAAM,EACN,KAAK,EACL,UAAU,EACV,UAAU,EACV,SAAS,EACT,sBAAsB,EAEtB,gBAAgB,GACjB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAG/C,IAAM,cAAc,GAApB,MAAM,cAAc;IAEzB,EAAE,CAAU;IAIZ,SAAS,CAAU;IAInB,KAAK,CAAU;IAGf,SAAS,CAAiB;IAI1B,WAAW,CAAU;IAGrB,OAAO,CAAY;IAQnB,MAAM,CAA+B;IAGrC,KAAK,CAAqB;IAQ1B,EAAE,CAAO;IAGT,IAAI,CAAY;IAGhB,IAAI,CAA8B;IAGlC,aAAa,CAAW;IAGxB,gBAAgB,CAAW;IAG3B,OAAO,CAAU;IAGjB,KAAK,CAAU;IAGf,UAAU,CAAiB;IAG3B,KAAK,CAAiB;IAGtB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;IAMjB,QAAQ,CAA4B;IAGpC,MAAM,CAAY;IAGlB,UAAU,CAAU;IAKpB,eAAe,CAA8B;IAI7C,OAAO,CAAkB;IAIzB,SAAS,CAAU;CACpB,CAAA;AA7FC;IADC,sBAAsB,CAAC,MAAM,CAAC;;0CACnB;AAIZ;IAFC,MAAM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U,EAAE,CAAC;IAC/C,UAAU,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;;+CACV;AAIzB;IAFC,MAAM,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC5C,KAAK,EAAE;;iDACW;AA9FR,cAAc;IAD1B,MAAM,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;GACrB,cAAc,CA+F1B"}
|
package/dist/entities/index.js
CHANGED
|
@@ -1,24 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./document.entity.js"), exports);
|
|
18
|
-
__exportStar(require("./workflow.entity.js"), exports);
|
|
19
|
-
__exportStar(require("./workflow-checkpoint.entity.js"), exports);
|
|
20
|
-
__exportStar(require("./workspace.entity.js"), exports);
|
|
21
|
-
__exportStar(require("./workspace-environment.entity.js"), exports);
|
|
22
|
-
__exportStar(require("./role.entity.js"), exports);
|
|
23
|
-
__exportStar(require("./user.entity.js"), exports);
|
|
1
|
+
export * from './document.entity.js';
|
|
2
|
+
export * from './workflow.entity.js';
|
|
3
|
+
export * from './workflow-checkpoint.entity.js';
|
|
4
|
+
export * from './workspace.entity.js';
|
|
5
|
+
export * from './workspace-environment.entity.js';
|
|
6
|
+
export * from './role.entity.js';
|
|
7
|
+
export * from './user.entity.js';
|
|
24
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC;AAClD,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Relation } from 'typeorm';
|
|
2
|
+
import { RoleInterface } from '../interfaces/index.js';
|
|
3
|
+
import { User } from './user.entity.js';
|
|
3
4
|
export declare class Role implements RoleInterface {
|
|
4
5
|
id: string;
|
|
5
6
|
name: string;
|
|
6
7
|
description: string;
|
|
7
|
-
users: User[]
|
|
8
|
+
users: Relation<User[]>;
|
|
8
9
|
}
|
|
9
10
|
//# sourceMappingURL=role.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.entity.d.ts","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"role.entity.d.ts","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsD,QAAQ,EAAE,MAAM,SAAS,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,qBACa,IAAK,YAAW,aAAa;IAExC,EAAE,EAAG,MAAM,CAAC;IAGZ,IAAI,EAAG,MAAM,CAAC;IAGd,WAAW,EAAG,MAAM,CAAC;IAGrB,KAAK,EAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;CAC1B"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,34 +7,32 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const user_entity_1 = require("./user.entity");
|
|
10
|
+
import { Column, Entity, ManyToMany, PrimaryGeneratedColumn } from 'typeorm';
|
|
11
|
+
import { User } from './user.entity.js';
|
|
15
12
|
let Role = class Role {
|
|
16
13
|
id;
|
|
17
14
|
name;
|
|
18
15
|
description;
|
|
19
16
|
users;
|
|
20
17
|
};
|
|
21
|
-
exports.Role = Role;
|
|
22
18
|
__decorate([
|
|
23
|
-
|
|
19
|
+
PrimaryGeneratedColumn('uuid'),
|
|
24
20
|
__metadata("design:type", String)
|
|
25
21
|
], Role.prototype, "id", void 0);
|
|
26
22
|
__decorate([
|
|
27
|
-
|
|
23
|
+
Column({ unique: true }),
|
|
28
24
|
__metadata("design:type", String)
|
|
29
25
|
], Role.prototype, "name", void 0);
|
|
30
26
|
__decorate([
|
|
31
|
-
|
|
27
|
+
Column({ nullable: true }),
|
|
32
28
|
__metadata("design:type", String)
|
|
33
29
|
], Role.prototype, "description", void 0);
|
|
34
30
|
__decorate([
|
|
35
|
-
|
|
36
|
-
__metadata("design:type",
|
|
31
|
+
ManyToMany(() => User, (user) => user.roles),
|
|
32
|
+
__metadata("design:type", Object)
|
|
37
33
|
], Role.prototype, "users", void 0);
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
Role = __decorate([
|
|
35
|
+
Entity('auth_roles')
|
|
40
36
|
], Role);
|
|
37
|
+
export { Role };
|
|
41
38
|
//# sourceMappingURL=role.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,sBAAsB,EAAY,MAAM,SAAS,CAAC;AAEvF,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAGjC,IAAM,IAAI,GAAV,MAAM,IAAI;IAEf,EAAE,CAAU;IAGZ,IAAI,CAAU;IAGd,WAAW,CAAU;IAGrB,KAAK,CAAoB;CAC1B,CAAA;AAVC;IADC,sBAAsB,CAAC,MAAM,CAAC;;gCACnB;AAGZ;IADC,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;kCACX;AAGd;IADC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACN;AAGrB;IADC,UAAU,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC;;mCACpB;AAXd,IAAI;IADhB,MAAM,CAAC,YAAY,CAAC;GACR,IAAI,CAYhB"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Relation } from 'typeorm';
|
|
2
|
+
import { UserTypeEnum } from '../enums/user-type.enum.js';
|
|
3
|
+
import { Role } from './role.entity.js';
|
|
3
4
|
export declare class User {
|
|
4
5
|
id: string;
|
|
5
6
|
type: UserTypeEnum;
|
|
6
7
|
isActive: boolean;
|
|
7
|
-
roles: Role[]
|
|
8
|
+
roles: Relation<Role[]>;
|
|
8
9
|
createdAt: Date;
|
|
9
10
|
updatedAt: Date;
|
|
10
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,QAAQ,EAET,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,qBACa,IAAI;IAEf,EAAE,EAAG,MAAM,CAAC;IAMZ,IAAI,EAAG,YAAY,CAAC;IAGpB,QAAQ,EAAG,OAAO,CAAC;IAQnB,KAAK,EAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;IAGzB,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAClB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,11 +7,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const user_type_enum_1 = require("../enums/user-type.enum");
|
|
15
|
-
const role_entity_1 = require("./role.entity");
|
|
10
|
+
import { Column, CreateDateColumn, Entity, JoinTable, ManyToMany, PrimaryColumn, UpdateDateColumn, } from 'typeorm';
|
|
11
|
+
import { UserTypeEnum } from '../enums/user-type.enum.js';
|
|
12
|
+
import { Role } from './role.entity.js';
|
|
16
13
|
let User = class User {
|
|
17
14
|
id;
|
|
18
15
|
type;
|
|
@@ -21,40 +18,40 @@ let User = class User {
|
|
|
21
18
|
createdAt;
|
|
22
19
|
updatedAt;
|
|
23
20
|
};
|
|
24
|
-
exports.User = User;
|
|
25
21
|
__decorate([
|
|
26
|
-
|
|
22
|
+
PrimaryColumn({ type: 'uuid' }),
|
|
27
23
|
__metadata("design:type", String)
|
|
28
24
|
], User.prototype, "id", void 0);
|
|
29
25
|
__decorate([
|
|
30
|
-
|
|
26
|
+
Column({
|
|
31
27
|
type: 'enum',
|
|
32
|
-
enum:
|
|
28
|
+
enum: UserTypeEnum,
|
|
33
29
|
}),
|
|
34
30
|
__metadata("design:type", String)
|
|
35
31
|
], User.prototype, "type", void 0);
|
|
36
32
|
__decorate([
|
|
37
|
-
|
|
33
|
+
Column({ default: true }),
|
|
38
34
|
__metadata("design:type", Boolean)
|
|
39
35
|
], User.prototype, "isActive", void 0);
|
|
40
36
|
__decorate([
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
ManyToMany(() => Role, (role) => role.users),
|
|
38
|
+
JoinTable({
|
|
43
39
|
name: 'auth_user_roles',
|
|
44
40
|
joinColumn: { name: 'user_id', referencedColumnName: 'id' },
|
|
45
41
|
inverseJoinColumn: { name: 'role_id', referencedColumnName: 'id' },
|
|
46
42
|
}),
|
|
47
|
-
__metadata("design:type",
|
|
43
|
+
__metadata("design:type", Object)
|
|
48
44
|
], User.prototype, "roles", void 0);
|
|
49
45
|
__decorate([
|
|
50
|
-
|
|
46
|
+
CreateDateColumn(),
|
|
51
47
|
__metadata("design:type", Date)
|
|
52
48
|
], User.prototype, "createdAt", void 0);
|
|
53
49
|
__decorate([
|
|
54
|
-
|
|
50
|
+
UpdateDateColumn(),
|
|
55
51
|
__metadata("design:type", Date)
|
|
56
52
|
], User.prototype, "updatedAt", void 0);
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
User = __decorate([
|
|
54
|
+
Entity('auth_users')
|
|
59
55
|
], User);
|
|
56
|
+
export { User };
|
|
60
57
|
//# sourceMappingURL=user.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,UAAU,EACV,aAAa,EAEb,gBAAgB,GACjB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAGjC,IAAM,IAAI,GAAV,MAAM,IAAI;IAEf,EAAE,CAAU;IAMZ,IAAI,CAAgB;IAGpB,QAAQ,CAAW;IAQnB,KAAK,CAAoB;IAGzB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;CAClB,CAAA;AAxBC;IADC,aAAa,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gCACpB;AAMZ;IAJC,MAAM,CAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,YAAY;KACnB,CAAC;;kCACkB;AAGpB;IADC,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;sCACP;AAQnB;IANC,UAAU,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC;IAC5C,SAAS,CAAC;QACT,IAAI,EAAE,iBAAiB;QACvB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,oBAAoB,EAAE,IAAI,EAAE;QAC3D,iBAAiB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,oBAAoB,EAAE,IAAI,EAAE;KACnE,CAAC;;mCACuB;AAGzB;IADC,gBAAgB,EAAE;8BACP,IAAI;uCAAC;AAGjB;IADC,gBAAgB,EAAE;8BACP,IAAI;uCAAC;AAzBN,IAAI;IADhB,MAAM,CAAC,YAAY,CAAC;GACR,IAAI,CA0BhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-checkpoint.entity.d.ts","sourceRoot":"","sources":["../../src/entities/workflow-checkpoint.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"workflow-checkpoint.entity.d.ts","sourceRoot":"","sources":["../../src/entities/workflow-checkpoint.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,qBACa,wBAAwB;IAEnC,EAAE,EAAG,MAAM,CAAC;IAIZ,QAAQ,EAAG,cAAc,CAAC;IAI1B,UAAU,EAAG,MAAM,CAAC;IAGpB,KAAK,EAAG,MAAM,CAAC;IAGf,YAAY,EAAG,MAAM,GAAG,IAAI,CAAC;IAG7B,cAAc,EAAG,MAAM,GAAG,IAAI,CAAC;IAG/B,KAAK,EAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAGhC,KAAK,EAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAGhC,WAAW,EAAG,MAAM,EAAE,CAAC;IAGvB,sBAAsB,EAAG,MAAM,EAAE,CAAC;IAGlC,OAAO,EAAG,MAAM,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAClB"}
|