@tstdl/base 0.93.1 → 0.93.3
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/api/server/api-request-token.provider.d.ts +5 -3
- package/api/server/api-request-token.provider.js +12 -4
- package/api/server/gateway.d.ts +1 -9
- package/api/server/gateway.js +67 -36
- package/api/types.d.ts +5 -1
- package/application/application.d.ts +2 -0
- package/application/application.js +3 -1
- package/application/providers.d.ts +1 -1
- package/application/providers.js +1 -1
- package/audit/audit.model.d.ts +106 -6
- package/audit/audit.model.js +156 -13
- package/audit/auditor.d.ts +115 -30
- package/audit/auditor.js +160 -19
- package/audit/drizzle/0000_bored_stick.sql +26 -0
- package/audit/drizzle/meta/0000_snapshot.json +195 -0
- package/audit/drizzle/meta/_journal.json +13 -0
- package/audit/drizzle.config.d.ts +2 -0
- package/audit/drizzle.config.js +11 -0
- package/audit/index.d.ts +3 -1
- package/audit/index.js +3 -1
- package/audit/module.d.ts +22 -0
- package/audit/module.js +33 -0
- package/audit/schemas.d.ts +6 -0
- package/audit/schemas.js +8 -0
- package/audit/types.d.ts +2 -1
- package/audit/types.js +2 -1
- package/authentication/models/authentication-credentials.model.js +1 -2
- package/authentication/models/authentication-session.model.d.ts +2 -2
- package/authentication/models/authentication-session.model.js +3 -5
- package/authentication/models/index.d.ts +0 -1
- package/authentication/models/index.js +0 -1
- package/authentication/server/authentication-api-request-token.provider.d.ts +2 -2
- package/authentication/server/authentication-api-request-token.provider.js +8 -5
- package/authentication/server/authentication.api-controller.d.ts +8 -8
- package/authentication/server/authentication.api-controller.js +16 -16
- package/authentication/server/authentication.audit.d.ts +34 -0
- package/authentication/server/authentication.audit.js +1 -0
- package/authentication/server/authentication.service.d.ts +19 -10
- package/authentication/server/authentication.service.js +158 -43
- package/authentication/server/drizzle.config.js +1 -1
- package/authentication/server/index.d.ts +1 -0
- package/authentication/server/index.js +1 -0
- package/authentication/server/module.d.ts +1 -1
- package/authentication/{models → server}/schemas.d.ts +2 -3
- package/authentication/{models → server}/schemas.js +2 -3
- package/constants.d.ts +1 -0
- package/constants.js +1 -0
- package/document-management/api/document-management.api.d.ts +74 -74
- package/document-management/models/document-assignment-scope.model.d.ts +1 -2
- package/document-management/models/document-assignment-scope.model.js +4 -6
- package/document-management/models/document-assignment-task.model.d.ts +1 -2
- package/document-management/models/document-assignment-task.model.js +3 -5
- package/document-management/models/document-category.model.d.ts +1 -2
- package/document-management/models/document-category.model.js +3 -4
- package/document-management/models/document-collection-assignment.model.d.ts +1 -2
- package/document-management/models/document-collection-assignment.model.js +5 -7
- package/document-management/models/document-collection.model.d.ts +1 -2
- package/document-management/models/document-collection.model.js +3 -4
- package/document-management/models/document-management-table.d.ts +1 -1
- package/document-management/models/document-management-table.js +1 -1
- package/document-management/models/document-property-value.model.d.ts +1 -2
- package/document-management/models/document-property-value.model.js +5 -8
- package/document-management/models/document-property.model.d.ts +1 -2
- package/document-management/models/document-property.model.js +2 -3
- package/document-management/models/document-request-collection-assignment.model.d.ts +1 -2
- package/document-management/models/document-request-collection-assignment.model.js +4 -6
- package/document-management/models/document-request-template.d.ts +1 -2
- package/document-management/models/document-request-template.js +4 -6
- package/document-management/models/document-request.model.d.ts +1 -1
- package/document-management/models/document-request.model.js +4 -5
- package/document-management/models/document-requests-template.d.ts +1 -1
- package/document-management/models/document-requests-template.js +2 -3
- package/document-management/models/document-tag-assignment.model.d.ts +1 -2
- package/document-management/models/document-tag-assignment.model.js +4 -6
- package/document-management/models/document-tag.model.d.ts +1 -1
- package/document-management/models/document-tag.model.js +2 -3
- package/document-management/models/document-type-property.model.d.ts +1 -2
- package/document-management/models/document-type-property.model.js +4 -6
- package/document-management/models/document-type-validation.model.d.ts +1 -2
- package/document-management/models/document-type-validation.model.js +4 -6
- package/document-management/models/document-type.model.d.ts +1 -2
- package/document-management/models/document-type.model.js +3 -5
- package/document-management/models/document-validation-definition.model.d.ts +1 -2
- package/document-management/models/document-validation-definition.model.js +3 -4
- package/document-management/models/document-validation-execution-related-document.model.d.ts +1 -2
- package/document-management/models/document-validation-execution-related-document.model.js +4 -6
- package/document-management/models/document-validation-execution.model.d.ts +1 -2
- package/document-management/models/document-validation-execution.model.js +6 -8
- package/document-management/models/document-workflow.model.d.ts +1 -2
- package/document-management/models/document-workflow.model.js +5 -7
- package/document-management/models/document.model.d.ts +1 -2
- package/document-management/models/document.model.js +5 -7
- package/document-management/server/api/document-management.api.js +1 -1
- package/document-management/server/module.d.ts +1 -1
- package/document-management/server/module.js +1 -1
- package/document-management/server/schemas.d.ts +1 -1
- package/document-management/server/schemas.js +1 -1
- package/document-management/server/services/document-category-type.service.d.ts +2 -2
- package/document-management/server/services/document-category-type.service.js +1 -2
- package/document-management/server/services/document-collection.service.d.ts +1 -1
- package/document-management/server/services/document-collection.service.js +1 -2
- package/document-management/server/services/document-management.service.js +6 -6
- package/document-management/server/services/document-property.service.d.ts +1 -1
- package/document-management/server/services/document-property.service.js +1 -2
- package/document-management/server/services/document-validation.service.js +2 -2
- package/document-management/server/services/document-workflow.service.d.ts +2 -2
- package/document-management/server/services/document-workflow.service.js +1 -2
- package/document-management/server/services/document.service.d.ts +1 -1
- package/document-management/server/services/document.service.js +1 -2
- package/document-management/server/services/singleton.js +1 -1
- package/document-management/service-models/document.service-model.d.ts +62 -62
- package/document-management/service-models/document.service-model.js +1 -1
- package/document-management/service-models/enriched/enriched-document-management-data.view.js +1 -1
- package/document-management/service-models/enriched/enriched-document.view.d.ts +1 -1
- package/examples/api/authentication.js +2 -2
- package/examples/api/basic-overview.js +2 -2
- package/examples/api/custom-authentication.js +2 -2
- package/examples/api/streaming.js +2 -2
- package/examples/browser/basic.js +2 -2
- package/examples/document-management/main.js +2 -2
- package/examples/http/client.js +2 -2
- package/examples/mail/basic.js +2 -2
- package/examples/pdf/basic.js +2 -2
- package/examples/template/basic.js +2 -2
- package/http/server/http-server-request.d.ts +3 -3
- package/key-value-store/postgres/key-value-store.service.js +1 -2
- package/key-value-store/postgres/models/key-value.model.d.ts +1 -2
- package/key-value-store/postgres/models/key-value.model.js +2 -4
- package/key-value-store/postgres/models/schemas.d.ts +1 -1
- package/key-value-store/postgres/models/schemas.js +1 -1
- package/lock/postgres/lock.js +1 -1
- package/lock/postgres/models/lock.model.d.ts +1 -2
- package/lock/postgres/models/lock.model.js +3 -5
- package/lock/postgres/models/schemas.d.ts +1 -1
- package/lock/postgres/models/schemas.js +1 -1
- package/lock/postgres/provider.js +1 -2
- package/mail/models/mail-log.model.d.ts +1 -1
- package/mail/models/mail-log.model.js +4 -5
- package/mail/models/schemas.d.ts +1 -1
- package/mail/models/schemas.js +1 -1
- package/openid-connect/oidc-state.model.d.ts +1 -1
- package/openid-connect/oidc-state.model.js +2 -3
- package/openid-connect/oidc.service.js +1 -1
- package/orm/data-types/bytea.js +1 -1
- package/orm/data-types/numeric-date.js +1 -1
- package/orm/decorators.d.ts +65 -72
- package/orm/decorators.js +42 -40
- package/orm/entity.d.ts +7 -1
- package/orm/entity.js +25 -11
- package/orm/index.d.ts +2 -1
- package/orm/index.js +2 -1
- package/orm/schemas/json.d.ts +1 -1
- package/orm/schemas/json.js +1 -1
- package/orm/schemas/numeric-date.d.ts +1 -1
- package/orm/schemas/numeric-date.js +1 -1
- package/orm/schemas/timestamp.d.ts +1 -1
- package/orm/schemas/timestamp.js +1 -1
- package/orm/schemas/uuid.d.ts +2 -2
- package/orm/schemas/uuid.js +1 -1
- package/orm/server/drizzle/schema-converter.ts +408 -0
- package/orm/server/repository.d.ts +1 -1
- package/orm/server/repository.js +12 -9
- package/orm/sqls.d.ts +1 -1
- package/orm/sqls.js +1 -1
- package/orm/types.d.ts +2 -6
- package/orm/types.js +1 -4
- package/package.json +15 -24
- package/queue/postgres/job.model.d.ts +3 -3
- package/queue/postgres/job.model.js +5 -6
- package/queue/postgres/queue.js +2 -2
- package/queue/postgres/schemas.d.ts +1 -1
- package/queue/postgres/schemas.js +1 -1
- package/supports.d.ts +1 -0
- package/supports.js +2 -1
- package/types/types.d.ts +12 -1
- package/utils/object/object.d.ts +3 -1
- package/utils/object/object.js +7 -1
- package/orm/server/drizzle/index.js +0 -1
- package/orm/server/drizzle/schema-converter.d.ts +0 -15
- package/orm/server/drizzle/schema-converter.js +0 -300
- /package/orm/server/drizzle/{index.d.ts → index.ts} +0 -0
|
@@ -7,9 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { ForeignKey, References } from '../../orm/
|
|
11
|
-
import { Entity } from '../../orm/entity.js';
|
|
12
|
-
import { Index, Timestamp, Unique, Uuid } from '../../orm/types.js';
|
|
10
|
+
import { Entity, ForeignKey, Index, References, TimestampProperty, Unique, UuidProperty } from '../../orm/index.js';
|
|
13
11
|
import { DocumentCollection } from './document-collection.model.js';
|
|
14
12
|
import { DocumentManagementTable } from './document-management-table.js';
|
|
15
13
|
import { Document } from './document.model.js';
|
|
@@ -20,22 +18,22 @@ let DocumentCollectionAssignment = class DocumentCollectionAssignment extends En
|
|
|
20
18
|
archiveTimestamp;
|
|
21
19
|
};
|
|
22
20
|
__decorate([
|
|
23
|
-
|
|
21
|
+
UuidProperty(),
|
|
24
22
|
__metadata("design:type", String)
|
|
25
23
|
], DocumentCollectionAssignment.prototype, "tenantId", void 0);
|
|
26
24
|
__decorate([
|
|
27
|
-
|
|
25
|
+
UuidProperty(),
|
|
28
26
|
References(() => DocumentCollection),
|
|
29
27
|
Index(),
|
|
30
28
|
__metadata("design:type", String)
|
|
31
29
|
], DocumentCollectionAssignment.prototype, "collectionId", void 0);
|
|
32
30
|
__decorate([
|
|
33
|
-
|
|
31
|
+
UuidProperty(),
|
|
34
32
|
References(() => Document),
|
|
35
33
|
__metadata("design:type", String)
|
|
36
34
|
], DocumentCollectionAssignment.prototype, "documentId", void 0);
|
|
37
35
|
__decorate([
|
|
38
|
-
|
|
36
|
+
TimestampProperty({ nullable: true }),
|
|
39
37
|
__metadata("design:type", Object)
|
|
40
38
|
], DocumentCollectionAssignment.prototype, "archiveTimestamp", void 0);
|
|
41
39
|
DocumentCollectionAssignment = __decorate([
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Entity } from '../../orm/
|
|
2
|
-
import { Uuid } from '../../orm/types.js';
|
|
1
|
+
import { Entity, type Uuid } from '../../orm/index.js';
|
|
3
2
|
export declare class DocumentCollection extends Entity {
|
|
4
3
|
static readonly entityName: 'DocumentCollection';
|
|
5
4
|
tenantId: Uuid;
|
|
@@ -7,19 +7,18 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { Entity } from '../../orm/
|
|
11
|
-
import { References, Unique, Uuid } from '../../orm/types.js';
|
|
10
|
+
import { Entity, References, Unique, UuidProperty } from '../../orm/index.js';
|
|
12
11
|
import { DocumentManagementTable } from './document-management-table.js';
|
|
13
12
|
let DocumentCollection = class DocumentCollection extends Entity {
|
|
14
13
|
tenantId;
|
|
15
14
|
parentId;
|
|
16
15
|
};
|
|
17
16
|
__decorate([
|
|
18
|
-
|
|
17
|
+
UuidProperty(),
|
|
19
18
|
__metadata("design:type", String)
|
|
20
19
|
], DocumentCollection.prototype, "tenantId", void 0);
|
|
21
20
|
__decorate([
|
|
22
|
-
|
|
21
|
+
UuidProperty({ nullable: true }),
|
|
23
22
|
References(() => DocumentCollection),
|
|
24
23
|
__metadata("design:type", Object)
|
|
25
24
|
], DocumentCollection.prototype, "parentId", void 0);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type TableOptions } from '../../orm/
|
|
1
|
+
import { type TableOptions } from '../../orm/index.js';
|
|
2
2
|
import type { TypedOmit } from '../../types/index.js';
|
|
3
3
|
export declare function DocumentManagementTable(options?: TypedOmit<TableOptions, 'schema'>): ClassDecorator;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Entity } from '../../orm/
|
|
2
|
-
import { NumericDate, Uuid } from '../../orm/types.js';
|
|
1
|
+
import { Entity, type NumericDate, type Uuid } from '../../orm/index.js';
|
|
3
2
|
export declare class DocumentPropertyValue extends Entity {
|
|
4
3
|
static readonly entityName: 'DocumentPropertyValue';
|
|
5
4
|
tenantId: Uuid;
|
|
@@ -8,10 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { eq, sql } from 'drizzle-orm';
|
|
11
|
-
import { ForeignKey, References } from '../../orm/
|
|
12
|
-
import { Entity } from '../../orm/entity.js';
|
|
13
|
-
import { numNonNulls } from '../../orm/sqls.js';
|
|
14
|
-
import { Check, NumericDate, Unique, Uuid } from '../../orm/types.js';
|
|
11
|
+
import { Check, Entity, ForeignKey, NumericDateProperty, numNonNulls, References, Unique, UuidProperty } from '../../orm/index.js';
|
|
15
12
|
import { BooleanProperty, Integer, NumberProperty, StringProperty } from '../../schema/index.js';
|
|
16
13
|
import { DocumentManagementTable } from './document-management-table.js';
|
|
17
14
|
import { DocumentProperty } from './document-property.model.js';
|
|
@@ -27,16 +24,16 @@ let DocumentPropertyValue = class DocumentPropertyValue extends Entity {
|
|
|
27
24
|
date;
|
|
28
25
|
};
|
|
29
26
|
__decorate([
|
|
30
|
-
|
|
27
|
+
UuidProperty(),
|
|
31
28
|
__metadata("design:type", String)
|
|
32
29
|
], DocumentPropertyValue.prototype, "tenantId", void 0);
|
|
33
30
|
__decorate([
|
|
34
|
-
|
|
31
|
+
UuidProperty(),
|
|
35
32
|
References(() => Document),
|
|
36
33
|
__metadata("design:type", String)
|
|
37
34
|
], DocumentPropertyValue.prototype, "documentId", void 0);
|
|
38
35
|
__decorate([
|
|
39
|
-
|
|
36
|
+
UuidProperty(),
|
|
40
37
|
References(() => DocumentProperty),
|
|
41
38
|
__metadata("design:type", String)
|
|
42
39
|
], DocumentPropertyValue.prototype, "propertyId", void 0);
|
|
@@ -57,7 +54,7 @@ __decorate([
|
|
|
57
54
|
__metadata("design:type", Object)
|
|
58
55
|
], DocumentPropertyValue.prototype, "boolean", void 0);
|
|
59
56
|
__decorate([
|
|
60
|
-
|
|
57
|
+
NumericDateProperty({ nullable: true }),
|
|
61
58
|
__metadata("design:type", Object)
|
|
62
59
|
], DocumentPropertyValue.prototype, "date", void 0);
|
|
63
60
|
DocumentPropertyValue = __decorate([
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type EnumType } from '../../enumeration/enumeration.js';
|
|
2
|
-
import { Entity } from '../../orm/
|
|
3
|
-
import { type Enum } from '../../orm/types.js';
|
|
2
|
+
import { Entity, type Enum } from '../../orm/index.js';
|
|
4
3
|
export declare const DocumentPropertyDataType: {
|
|
5
4
|
readonly Text: "text";
|
|
6
5
|
readonly Integer: "integer";
|
|
@@ -8,8 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { defineEnum } from '../../enumeration/enumeration.js';
|
|
11
|
-
import { Entity } from '../../orm/
|
|
12
|
-
import { Unique, Uuid } from '../../orm/types.js';
|
|
11
|
+
import { Entity, Unique, UuidProperty } from '../../orm/index.js';
|
|
13
12
|
import { Enumeration, StringProperty } from '../../schema/index.js';
|
|
14
13
|
import { DocumentManagementTable } from './document-management-table.js';
|
|
15
14
|
export const DocumentPropertyDataType = defineEnum('DocumentPropertyDataType', {
|
|
@@ -25,7 +24,7 @@ let DocumentProperty = class DocumentProperty extends Entity {
|
|
|
25
24
|
dataType;
|
|
26
25
|
};
|
|
27
26
|
__decorate([
|
|
28
|
-
|
|
27
|
+
UuidProperty({ nullable: true }),
|
|
29
28
|
__metadata("design:type", Object)
|
|
30
29
|
], DocumentProperty.prototype, "tenantId", void 0);
|
|
31
30
|
__decorate([
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Entity } from '../../orm/
|
|
2
|
-
import { Uuid } from '../../orm/types.js';
|
|
1
|
+
import { Entity, type Uuid } from '../../orm/index.js';
|
|
3
2
|
export declare class DocumentRequestCollectionAssignment extends Entity {
|
|
4
3
|
static readonly entityName: 'DocumentRequestCollectionAssignment';
|
|
5
4
|
tenantId: Uuid;
|
|
@@ -7,9 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { ForeignKey, References } from '../../orm/
|
|
11
|
-
import { Entity } from '../../orm/entity.js';
|
|
12
|
-
import { Index, Unique, Uuid } from '../../orm/types.js';
|
|
10
|
+
import { Entity, ForeignKey, Index, References, Unique, UuidProperty } from '../../orm/index.js';
|
|
13
11
|
import { DocumentCollection } from './document-collection.model.js';
|
|
14
12
|
import { DocumentManagementTable } from './document-management-table.js';
|
|
15
13
|
import { DocumentRequest } from './document-request.model.js';
|
|
@@ -19,16 +17,16 @@ let DocumentRequestCollectionAssignment = class DocumentRequestCollectionAssignm
|
|
|
19
17
|
collectionId;
|
|
20
18
|
};
|
|
21
19
|
__decorate([
|
|
22
|
-
|
|
20
|
+
UuidProperty(),
|
|
23
21
|
__metadata("design:type", String)
|
|
24
22
|
], DocumentRequestCollectionAssignment.prototype, "tenantId", void 0);
|
|
25
23
|
__decorate([
|
|
26
|
-
|
|
24
|
+
UuidProperty(),
|
|
27
25
|
References(() => DocumentRequest),
|
|
28
26
|
__metadata("design:type", String)
|
|
29
27
|
], DocumentRequestCollectionAssignment.prototype, "requestId", void 0);
|
|
30
28
|
__decorate([
|
|
31
|
-
|
|
29
|
+
UuidProperty(),
|
|
32
30
|
References(() => DocumentCollection),
|
|
33
31
|
Index(),
|
|
34
32
|
__metadata("design:type", String)
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Entity } from '../../orm/
|
|
2
|
-
import { Uuid } from '../../orm/types.js';
|
|
1
|
+
import { Entity, type Uuid } from '../../orm/index.js';
|
|
3
2
|
import type { DocumentRequest } from './document-request.model.js';
|
|
4
3
|
export declare class DocumentRequestTemplate extends Entity implements Pick<DocumentRequest, 'typeId' | 'comment'> {
|
|
5
4
|
tenantId: string | null;
|
|
@@ -7,9 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { References } from '../../orm/
|
|
11
|
-
import { Entity } from '../../orm/entity.js';
|
|
12
|
-
import { Uuid } from '../../orm/types.js';
|
|
10
|
+
import { Entity, References, UuidProperty } from '../../orm/index.js';
|
|
13
11
|
import { StringProperty } from '../../schema/index.js';
|
|
14
12
|
import { DocumentManagementTable } from './document-management-table.js';
|
|
15
13
|
import { DocumentRequestsTemplate } from './document-requests-template.js';
|
|
@@ -21,16 +19,16 @@ let DocumentRequestTemplate = class DocumentRequestTemplate extends Entity {
|
|
|
21
19
|
comment;
|
|
22
20
|
};
|
|
23
21
|
__decorate([
|
|
24
|
-
|
|
22
|
+
UuidProperty({ nullable: true }),
|
|
25
23
|
__metadata("design:type", Object)
|
|
26
24
|
], DocumentRequestTemplate.prototype, "tenantId", void 0);
|
|
27
25
|
__decorate([
|
|
28
|
-
|
|
26
|
+
UuidProperty(),
|
|
29
27
|
References(() => DocumentRequestsTemplate),
|
|
30
28
|
__metadata("design:type", String)
|
|
31
29
|
], DocumentRequestTemplate.prototype, "requestsTemplateId", void 0);
|
|
32
30
|
__decorate([
|
|
33
|
-
|
|
31
|
+
UuidProperty(),
|
|
34
32
|
References(() => DocumentType),
|
|
35
33
|
__metadata("design:type", String)
|
|
36
34
|
], DocumentRequestTemplate.prototype, "typeId", void 0);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type EnumType } from '../../enumeration/enumeration.js';
|
|
2
|
-
import { Entity, Uuid } from '../../orm/index.js';
|
|
2
|
+
import { Entity, type Uuid } from '../../orm/index.js';
|
|
3
3
|
export declare const DocumentRequestState: {
|
|
4
4
|
/** No document or pending document */
|
|
5
5
|
readonly Open: "open";
|
|
@@ -8,8 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { defineEnum } from '../../enumeration/enumeration.js';
|
|
11
|
-
import { ForeignKey } from '../../orm/
|
|
12
|
-
import { Entity, Index, References, Unique, Uuid } from '../../orm/index.js';
|
|
11
|
+
import { Entity, ForeignKey, Index, References, Unique, UuidProperty } from '../../orm/index.js';
|
|
13
12
|
import { Enumeration, StringProperty } from '../../schema/index.js';
|
|
14
13
|
import { DocumentManagementTable } from './document-management-table.js';
|
|
15
14
|
import { DocumentType } from './document-type.model.js';
|
|
@@ -30,17 +29,17 @@ let DocumentRequest = class DocumentRequest extends Entity {
|
|
|
30
29
|
state;
|
|
31
30
|
};
|
|
32
31
|
__decorate([
|
|
33
|
-
|
|
32
|
+
UuidProperty(),
|
|
34
33
|
__metadata("design:type", String)
|
|
35
34
|
], DocumentRequest.prototype, "tenantId", void 0);
|
|
36
35
|
__decorate([
|
|
37
|
-
|
|
36
|
+
UuidProperty({ nullable: true }),
|
|
38
37
|
References(() => DocumentType),
|
|
39
38
|
Index(),
|
|
40
39
|
__metadata("design:type", Object)
|
|
41
40
|
], DocumentRequest.prototype, "typeId", void 0);
|
|
42
41
|
__decorate([
|
|
43
|
-
|
|
42
|
+
UuidProperty({ nullable: true }),
|
|
44
43
|
References(() => Document),
|
|
45
44
|
Unique(),
|
|
46
45
|
__metadata("design:type", Object)
|
|
@@ -7,8 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { Entity } from '../../orm/
|
|
11
|
-
import { Uuid } from '../../orm/types.js';
|
|
10
|
+
import { Entity, UuidProperty } from '../../orm/index.js';
|
|
12
11
|
import { StringProperty } from '../../schema/index.js';
|
|
13
12
|
import { DocumentManagementTable } from './document-management-table.js';
|
|
14
13
|
let DocumentRequestsTemplate = class DocumentRequestsTemplate extends Entity {
|
|
@@ -17,7 +16,7 @@ let DocumentRequestsTemplate = class DocumentRequestsTemplate extends Entity {
|
|
|
17
16
|
description;
|
|
18
17
|
};
|
|
19
18
|
__decorate([
|
|
20
|
-
|
|
19
|
+
UuidProperty({ nullable: true }),
|
|
21
20
|
__metadata("design:type", Object)
|
|
22
21
|
], DocumentRequestsTemplate.prototype, "tenantId", void 0);
|
|
23
22
|
__decorate([
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Entity } from '../../orm/
|
|
2
|
-
import { Uuid } from '../../orm/types.js';
|
|
1
|
+
import { Entity, type Uuid } from '../../orm/index.js';
|
|
3
2
|
export declare class DocumentTagAssignment extends Entity {
|
|
4
3
|
static readonly entityName: 'DocumentTagAssignment';
|
|
5
4
|
tenantId: Uuid;
|
|
@@ -7,9 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { ForeignKey } from '../../orm/
|
|
11
|
-
import { Entity } from '../../orm/entity.js';
|
|
12
|
-
import { References, Unique, Uuid } from '../../orm/types.js';
|
|
10
|
+
import { Entity, ForeignKey, References, Unique, UuidProperty } from '../../orm/index.js';
|
|
13
11
|
import { DocumentManagementTable } from './document-management-table.js';
|
|
14
12
|
import { DocumentTag } from './document-tag.model.js';
|
|
15
13
|
import { Document } from './document.model.js';
|
|
@@ -19,16 +17,16 @@ let DocumentTagAssignment = class DocumentTagAssignment extends Entity {
|
|
|
19
17
|
tagId;
|
|
20
18
|
};
|
|
21
19
|
__decorate([
|
|
22
|
-
|
|
20
|
+
UuidProperty(),
|
|
23
21
|
__metadata("design:type", String)
|
|
24
22
|
], DocumentTagAssignment.prototype, "tenantId", void 0);
|
|
25
23
|
__decorate([
|
|
26
|
-
|
|
24
|
+
UuidProperty(),
|
|
27
25
|
References(() => Document),
|
|
28
26
|
__metadata("design:type", String)
|
|
29
27
|
], DocumentTagAssignment.prototype, "documentId", void 0);
|
|
30
28
|
__decorate([
|
|
31
|
-
|
|
29
|
+
UuidProperty(),
|
|
32
30
|
References(() => DocumentTag),
|
|
33
31
|
__metadata("design:type", String)
|
|
34
32
|
], DocumentTagAssignment.prototype, "tagId", void 0);
|
|
@@ -7,8 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { Entity } from '../../orm/
|
|
11
|
-
import { Unique, Uuid } from '../../orm/types.js';
|
|
10
|
+
import { Entity, Unique, UuidProperty } from '../../orm/index.js';
|
|
12
11
|
import { StringProperty } from '../../schema/index.js';
|
|
13
12
|
import { DocumentManagementTable } from './document-management-table.js';
|
|
14
13
|
let DocumentTag = class DocumentTag extends Entity {
|
|
@@ -16,7 +15,7 @@ let DocumentTag = class DocumentTag extends Entity {
|
|
|
16
15
|
label;
|
|
17
16
|
};
|
|
18
17
|
__decorate([
|
|
19
|
-
|
|
18
|
+
UuidProperty({ nullable: true }),
|
|
20
19
|
__metadata("design:type", Object)
|
|
21
20
|
], DocumentTag.prototype, "tenantId", void 0);
|
|
22
21
|
__decorate([
|
|
@@ -7,9 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { References } from '../../orm/
|
|
11
|
-
import { Entity } from '../../orm/entity.js';
|
|
12
|
-
import { Unique, Uuid } from '../../orm/types.js';
|
|
10
|
+
import { Entity, References, Unique, UuidProperty } from '../../orm/index.js';
|
|
13
11
|
import { DocumentManagementTable } from './document-management-table.js';
|
|
14
12
|
import { DocumentProperty } from './document-property.model.js';
|
|
15
13
|
import { DocumentType } from './document-type.model.js';
|
|
@@ -19,16 +17,16 @@ let DocumentTypeProperty = class DocumentTypeProperty extends Entity {
|
|
|
19
17
|
propertyId;
|
|
20
18
|
};
|
|
21
19
|
__decorate([
|
|
22
|
-
|
|
20
|
+
UuidProperty({ nullable: true }),
|
|
23
21
|
__metadata("design:type", Object)
|
|
24
22
|
], DocumentTypeProperty.prototype, "tenantId", void 0);
|
|
25
23
|
__decorate([
|
|
26
|
-
|
|
24
|
+
UuidProperty(),
|
|
27
25
|
References(() => DocumentType),
|
|
28
26
|
__metadata("design:type", String)
|
|
29
27
|
], DocumentTypeProperty.prototype, "typeId", void 0);
|
|
30
28
|
__decorate([
|
|
31
|
-
|
|
29
|
+
UuidProperty(),
|
|
32
30
|
References(() => DocumentProperty),
|
|
33
31
|
__metadata("design:type", String)
|
|
34
32
|
], DocumentTypeProperty.prototype, "propertyId", void 0);
|
|
@@ -7,9 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { References } from '../../orm/
|
|
11
|
-
import { Entity } from '../../orm/entity.js';
|
|
12
|
-
import { Index, Unique, Uuid } from '../../orm/types.js';
|
|
10
|
+
import { Entity, Index, References, Unique, UuidProperty } from '../../orm/index.js';
|
|
13
11
|
import { DocumentManagementTable } from './document-management-table.js';
|
|
14
12
|
import { DocumentType } from './document-type.model.js';
|
|
15
13
|
import { DocumentValidationDefinition } from './document-validation-definition.model.js';
|
|
@@ -19,17 +17,17 @@ let DocumentTypeValidation = class DocumentTypeValidation extends Entity {
|
|
|
19
17
|
validationId;
|
|
20
18
|
};
|
|
21
19
|
__decorate([
|
|
22
|
-
|
|
20
|
+
UuidProperty({ nullable: true }),
|
|
23
21
|
__metadata("design:type", Object)
|
|
24
22
|
], DocumentTypeValidation.prototype, "tenantId", void 0);
|
|
25
23
|
__decorate([
|
|
26
|
-
|
|
24
|
+
UuidProperty(),
|
|
27
25
|
References(() => DocumentType),
|
|
28
26
|
Index(),
|
|
29
27
|
__metadata("design:type", String)
|
|
30
28
|
], DocumentTypeValidation.prototype, "typeId", void 0);
|
|
31
29
|
__decorate([
|
|
32
|
-
|
|
30
|
+
UuidProperty(),
|
|
33
31
|
References(() => DocumentValidationDefinition),
|
|
34
32
|
__metadata("design:type", String)
|
|
35
33
|
], DocumentTypeValidation.prototype, "validationId", void 0);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Entity } from '../../orm/
|
|
2
|
-
import { Uuid } from '../../orm/types.js';
|
|
1
|
+
import { Entity, type Uuid } from '../../orm/index.js';
|
|
3
2
|
export declare class DocumentType extends Entity {
|
|
4
3
|
static readonly entityName: 'DocumentType';
|
|
5
4
|
tenantId: string | null;
|
|
@@ -7,9 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { References } from '../../orm/
|
|
11
|
-
import { Entity } from '../../orm/entity.js';
|
|
12
|
-
import { Unique, Uuid } from '../../orm/types.js';
|
|
10
|
+
import { Entity, References, Unique, UuidProperty } from '../../orm/index.js';
|
|
13
11
|
import { StringProperty } from '../../schema/index.js';
|
|
14
12
|
import { DocumentCategory } from './document-category.model.js';
|
|
15
13
|
import { DocumentManagementTable } from './document-management-table.js';
|
|
@@ -19,11 +17,11 @@ let DocumentType = class DocumentType extends Entity {
|
|
|
19
17
|
label;
|
|
20
18
|
};
|
|
21
19
|
__decorate([
|
|
22
|
-
|
|
20
|
+
UuidProperty({ nullable: true }),
|
|
23
21
|
__metadata("design:type", Object)
|
|
24
22
|
], DocumentType.prototype, "tenantId", void 0);
|
|
25
23
|
__decorate([
|
|
26
|
-
|
|
24
|
+
UuidProperty(),
|
|
27
25
|
References(() => DocumentCategory),
|
|
28
26
|
__metadata("design:type", String)
|
|
29
27
|
], DocumentType.prototype, "categoryId", void 0);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Entity } from '../../orm/
|
|
2
|
-
import { Json } from '../../orm/types.js';
|
|
1
|
+
import { Entity, type Json } from '../../orm/index.js';
|
|
3
2
|
import type { Record } from '../../types/index.js';
|
|
4
3
|
export declare class DocumentValidationDefinition extends Entity {
|
|
5
4
|
static readonly entityName: 'DocumentValidationDefinition';
|
|
@@ -7,8 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { Entity } from '../../orm/
|
|
11
|
-
import { Json, Uuid } from '../../orm/types.js';
|
|
10
|
+
import { Entity, JsonProperty, UuidProperty } from '../../orm/index.js';
|
|
12
11
|
import { StringProperty } from '../../schema/index.js';
|
|
13
12
|
import { DocumentManagementTable } from './document-management-table.js';
|
|
14
13
|
let DocumentValidationDefinition = class DocumentValidationDefinition extends Entity {
|
|
@@ -19,7 +18,7 @@ let DocumentValidationDefinition = class DocumentValidationDefinition extends En
|
|
|
19
18
|
configuration;
|
|
20
19
|
};
|
|
21
20
|
__decorate([
|
|
22
|
-
|
|
21
|
+
UuidProperty({ nullable: true }),
|
|
23
22
|
__metadata("design:type", Object)
|
|
24
23
|
], DocumentValidationDefinition.prototype, "tenantId", void 0);
|
|
25
24
|
__decorate([
|
|
@@ -35,7 +34,7 @@ __decorate([
|
|
|
35
34
|
__metadata("design:type", Object)
|
|
36
35
|
], DocumentValidationDefinition.prototype, "description", void 0);
|
|
37
36
|
__decorate([
|
|
38
|
-
|
|
37
|
+
JsonProperty(),
|
|
39
38
|
__metadata("design:type", Object)
|
|
40
39
|
], DocumentValidationDefinition.prototype, "configuration", void 0);
|
|
41
40
|
DocumentValidationDefinition = __decorate([
|
package/document-management/models/document-validation-execution-related-document.model.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Entity } from '../../orm/
|
|
2
|
-
import { Uuid } from '../../orm/types.js';
|
|
1
|
+
import { Entity, type Uuid } from '../../orm/index.js';
|
|
3
2
|
export declare class DocumentValidationExecutionRelatedDocument extends Entity {
|
|
4
3
|
static readonly entityName: 'DocumentValidationExecutionRelatedDocument';
|
|
5
4
|
tenantId: Uuid;
|
|
@@ -7,9 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { ForeignKey, References } from '../../orm/
|
|
11
|
-
import { Entity } from '../../orm/entity.js';
|
|
12
|
-
import { Unique, Uuid } from '../../orm/types.js';
|
|
10
|
+
import { Entity, ForeignKey, References, Unique, UuidProperty } from '../../orm/index.js';
|
|
13
11
|
import { DocumentManagementTable } from './document-management-table.js';
|
|
14
12
|
import { DocumentValidationExecution } from './document-validation-execution.model.js';
|
|
15
13
|
import { Document } from './document.model.js';
|
|
@@ -19,16 +17,16 @@ let DocumentValidationExecutionRelatedDocument = class DocumentValidationExecuti
|
|
|
19
17
|
documentId;
|
|
20
18
|
};
|
|
21
19
|
__decorate([
|
|
22
|
-
|
|
20
|
+
UuidProperty(),
|
|
23
21
|
__metadata("design:type", String)
|
|
24
22
|
], DocumentValidationExecutionRelatedDocument.prototype, "tenantId", void 0);
|
|
25
23
|
__decorate([
|
|
26
|
-
|
|
24
|
+
UuidProperty(),
|
|
27
25
|
References(() => DocumentValidationExecution),
|
|
28
26
|
__metadata("design:type", String)
|
|
29
27
|
], DocumentValidationExecutionRelatedDocument.prototype, "executionId", void 0);
|
|
30
28
|
__decorate([
|
|
31
|
-
|
|
29
|
+
UuidProperty(),
|
|
32
30
|
References(() => Document),
|
|
33
31
|
__metadata("design:type", String)
|
|
34
32
|
], DocumentValidationExecutionRelatedDocument.prototype, "documentId", void 0);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type EnumType } from '../../enumeration/enumeration.js';
|
|
2
|
-
import { Entity } from '../../orm/
|
|
3
|
-
import { Timestamp, Uuid } from '../../orm/types.js';
|
|
2
|
+
import { Entity, type Timestamp, type Uuid } from '../../orm/index.js';
|
|
4
3
|
export declare const DocumentValidationExecutionState: {
|
|
5
4
|
readonly Pending: "pending";
|
|
6
5
|
readonly Running: "running";
|
|
@@ -8,9 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { defineEnum } from '../../enumeration/enumeration.js';
|
|
11
|
-
import { ForeignKey, References } from '../../orm/
|
|
12
|
-
import { Entity } from '../../orm/entity.js';
|
|
13
|
-
import { Timestamp, Unique, Uuid } from '../../orm/types.js';
|
|
11
|
+
import { Entity, ForeignKey, References, TimestampProperty, Unique, UuidProperty } from '../../orm/index.js';
|
|
14
12
|
import { Enumeration, StringProperty } from '../../schema/index.js';
|
|
15
13
|
import { DocumentManagementTable } from './document-management-table.js';
|
|
16
14
|
import { DocumentValidationDefinition } from './document-validation-definition.model.js';
|
|
@@ -37,16 +35,16 @@ let DocumentValidationExecution = class DocumentValidationExecution extends Enti
|
|
|
37
35
|
completedAt;
|
|
38
36
|
};
|
|
39
37
|
__decorate([
|
|
40
|
-
|
|
38
|
+
UuidProperty(),
|
|
41
39
|
__metadata("design:type", String)
|
|
42
40
|
], DocumentValidationExecution.prototype, "tenantId", void 0);
|
|
43
41
|
__decorate([
|
|
44
|
-
|
|
42
|
+
UuidProperty(),
|
|
45
43
|
References(() => DocumentWorkflow),
|
|
46
44
|
__metadata("design:type", String)
|
|
47
45
|
], DocumentValidationExecution.prototype, "workflowId", void 0);
|
|
48
46
|
__decorate([
|
|
49
|
-
|
|
47
|
+
UuidProperty(),
|
|
50
48
|
References(() => DocumentValidationDefinition),
|
|
51
49
|
__metadata("design:type", String)
|
|
52
50
|
], DocumentValidationExecution.prototype, "definitionId", void 0);
|
|
@@ -63,11 +61,11 @@ __decorate([
|
|
|
63
61
|
__metadata("design:type", Object)
|
|
64
62
|
], DocumentValidationExecution.prototype, "resultMessage", void 0);
|
|
65
63
|
__decorate([
|
|
66
|
-
|
|
64
|
+
TimestampProperty({ nullable: true }),
|
|
67
65
|
__metadata("design:type", Object)
|
|
68
66
|
], DocumentValidationExecution.prototype, "startedAt", void 0);
|
|
69
67
|
__decorate([
|
|
70
|
-
|
|
68
|
+
TimestampProperty({ nullable: true }),
|
|
71
69
|
__metadata("design:type", Object)
|
|
72
70
|
], DocumentValidationExecution.prototype, "completedAt", void 0);
|
|
73
71
|
DocumentValidationExecution = __decorate([
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type EnumType } from '../../enumeration/enumeration.js';
|
|
2
|
-
import { Entity } from '../../orm/
|
|
3
|
-
import { Timestamp, Uuid } from '../../orm/types.js';
|
|
2
|
+
import { Entity, type Timestamp, type Uuid } from '../../orm/index.js';
|
|
4
3
|
export declare const DocumentWorkflowStep: {
|
|
5
4
|
readonly Classification: "classification";
|
|
6
5
|
readonly Extraction: "extraction";
|