@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.
Files changed (181) hide show
  1. package/api/server/api-request-token.provider.d.ts +5 -3
  2. package/api/server/api-request-token.provider.js +12 -4
  3. package/api/server/gateway.d.ts +1 -9
  4. package/api/server/gateway.js +67 -36
  5. package/api/types.d.ts +5 -1
  6. package/application/application.d.ts +2 -0
  7. package/application/application.js +3 -1
  8. package/application/providers.d.ts +1 -1
  9. package/application/providers.js +1 -1
  10. package/audit/audit.model.d.ts +106 -6
  11. package/audit/audit.model.js +156 -13
  12. package/audit/auditor.d.ts +115 -30
  13. package/audit/auditor.js +160 -19
  14. package/audit/drizzle/0000_bored_stick.sql +26 -0
  15. package/audit/drizzle/meta/0000_snapshot.json +195 -0
  16. package/audit/drizzle/meta/_journal.json +13 -0
  17. package/audit/drizzle.config.d.ts +2 -0
  18. package/audit/drizzle.config.js +11 -0
  19. package/audit/index.d.ts +3 -1
  20. package/audit/index.js +3 -1
  21. package/audit/module.d.ts +22 -0
  22. package/audit/module.js +33 -0
  23. package/audit/schemas.d.ts +6 -0
  24. package/audit/schemas.js +8 -0
  25. package/audit/types.d.ts +2 -1
  26. package/audit/types.js +2 -1
  27. package/authentication/models/authentication-credentials.model.js +1 -2
  28. package/authentication/models/authentication-session.model.d.ts +2 -2
  29. package/authentication/models/authentication-session.model.js +3 -5
  30. package/authentication/models/index.d.ts +0 -1
  31. package/authentication/models/index.js +0 -1
  32. package/authentication/server/authentication-api-request-token.provider.d.ts +2 -2
  33. package/authentication/server/authentication-api-request-token.provider.js +8 -5
  34. package/authentication/server/authentication.api-controller.d.ts +8 -8
  35. package/authentication/server/authentication.api-controller.js +16 -16
  36. package/authentication/server/authentication.audit.d.ts +34 -0
  37. package/authentication/server/authentication.audit.js +1 -0
  38. package/authentication/server/authentication.service.d.ts +19 -10
  39. package/authentication/server/authentication.service.js +158 -43
  40. package/authentication/server/drizzle.config.js +1 -1
  41. package/authentication/server/index.d.ts +1 -0
  42. package/authentication/server/index.js +1 -0
  43. package/authentication/server/module.d.ts +1 -1
  44. package/authentication/{models → server}/schemas.d.ts +2 -3
  45. package/authentication/{models → server}/schemas.js +2 -3
  46. package/constants.d.ts +1 -0
  47. package/constants.js +1 -0
  48. package/document-management/api/document-management.api.d.ts +74 -74
  49. package/document-management/models/document-assignment-scope.model.d.ts +1 -2
  50. package/document-management/models/document-assignment-scope.model.js +4 -6
  51. package/document-management/models/document-assignment-task.model.d.ts +1 -2
  52. package/document-management/models/document-assignment-task.model.js +3 -5
  53. package/document-management/models/document-category.model.d.ts +1 -2
  54. package/document-management/models/document-category.model.js +3 -4
  55. package/document-management/models/document-collection-assignment.model.d.ts +1 -2
  56. package/document-management/models/document-collection-assignment.model.js +5 -7
  57. package/document-management/models/document-collection.model.d.ts +1 -2
  58. package/document-management/models/document-collection.model.js +3 -4
  59. package/document-management/models/document-management-table.d.ts +1 -1
  60. package/document-management/models/document-management-table.js +1 -1
  61. package/document-management/models/document-property-value.model.d.ts +1 -2
  62. package/document-management/models/document-property-value.model.js +5 -8
  63. package/document-management/models/document-property.model.d.ts +1 -2
  64. package/document-management/models/document-property.model.js +2 -3
  65. package/document-management/models/document-request-collection-assignment.model.d.ts +1 -2
  66. package/document-management/models/document-request-collection-assignment.model.js +4 -6
  67. package/document-management/models/document-request-template.d.ts +1 -2
  68. package/document-management/models/document-request-template.js +4 -6
  69. package/document-management/models/document-request.model.d.ts +1 -1
  70. package/document-management/models/document-request.model.js +4 -5
  71. package/document-management/models/document-requests-template.d.ts +1 -1
  72. package/document-management/models/document-requests-template.js +2 -3
  73. package/document-management/models/document-tag-assignment.model.d.ts +1 -2
  74. package/document-management/models/document-tag-assignment.model.js +4 -6
  75. package/document-management/models/document-tag.model.d.ts +1 -1
  76. package/document-management/models/document-tag.model.js +2 -3
  77. package/document-management/models/document-type-property.model.d.ts +1 -2
  78. package/document-management/models/document-type-property.model.js +4 -6
  79. package/document-management/models/document-type-validation.model.d.ts +1 -2
  80. package/document-management/models/document-type-validation.model.js +4 -6
  81. package/document-management/models/document-type.model.d.ts +1 -2
  82. package/document-management/models/document-type.model.js +3 -5
  83. package/document-management/models/document-validation-definition.model.d.ts +1 -2
  84. package/document-management/models/document-validation-definition.model.js +3 -4
  85. package/document-management/models/document-validation-execution-related-document.model.d.ts +1 -2
  86. package/document-management/models/document-validation-execution-related-document.model.js +4 -6
  87. package/document-management/models/document-validation-execution.model.d.ts +1 -2
  88. package/document-management/models/document-validation-execution.model.js +6 -8
  89. package/document-management/models/document-workflow.model.d.ts +1 -2
  90. package/document-management/models/document-workflow.model.js +5 -7
  91. package/document-management/models/document.model.d.ts +1 -2
  92. package/document-management/models/document.model.js +5 -7
  93. package/document-management/server/api/document-management.api.js +1 -1
  94. package/document-management/server/module.d.ts +1 -1
  95. package/document-management/server/module.js +1 -1
  96. package/document-management/server/schemas.d.ts +1 -1
  97. package/document-management/server/schemas.js +1 -1
  98. package/document-management/server/services/document-category-type.service.d.ts +2 -2
  99. package/document-management/server/services/document-category-type.service.js +1 -2
  100. package/document-management/server/services/document-collection.service.d.ts +1 -1
  101. package/document-management/server/services/document-collection.service.js +1 -2
  102. package/document-management/server/services/document-management.service.js +6 -6
  103. package/document-management/server/services/document-property.service.d.ts +1 -1
  104. package/document-management/server/services/document-property.service.js +1 -2
  105. package/document-management/server/services/document-validation.service.js +2 -2
  106. package/document-management/server/services/document-workflow.service.d.ts +2 -2
  107. package/document-management/server/services/document-workflow.service.js +1 -2
  108. package/document-management/server/services/document.service.d.ts +1 -1
  109. package/document-management/server/services/document.service.js +1 -2
  110. package/document-management/server/services/singleton.js +1 -1
  111. package/document-management/service-models/document.service-model.d.ts +62 -62
  112. package/document-management/service-models/document.service-model.js +1 -1
  113. package/document-management/service-models/enriched/enriched-document-management-data.view.js +1 -1
  114. package/document-management/service-models/enriched/enriched-document.view.d.ts +1 -1
  115. package/examples/api/authentication.js +2 -2
  116. package/examples/api/basic-overview.js +2 -2
  117. package/examples/api/custom-authentication.js +2 -2
  118. package/examples/api/streaming.js +2 -2
  119. package/examples/browser/basic.js +2 -2
  120. package/examples/document-management/main.js +2 -2
  121. package/examples/http/client.js +2 -2
  122. package/examples/mail/basic.js +2 -2
  123. package/examples/pdf/basic.js +2 -2
  124. package/examples/template/basic.js +2 -2
  125. package/http/server/http-server-request.d.ts +3 -3
  126. package/key-value-store/postgres/key-value-store.service.js +1 -2
  127. package/key-value-store/postgres/models/key-value.model.d.ts +1 -2
  128. package/key-value-store/postgres/models/key-value.model.js +2 -4
  129. package/key-value-store/postgres/models/schemas.d.ts +1 -1
  130. package/key-value-store/postgres/models/schemas.js +1 -1
  131. package/lock/postgres/lock.js +1 -1
  132. package/lock/postgres/models/lock.model.d.ts +1 -2
  133. package/lock/postgres/models/lock.model.js +3 -5
  134. package/lock/postgres/models/schemas.d.ts +1 -1
  135. package/lock/postgres/models/schemas.js +1 -1
  136. package/lock/postgres/provider.js +1 -2
  137. package/mail/models/mail-log.model.d.ts +1 -1
  138. package/mail/models/mail-log.model.js +4 -5
  139. package/mail/models/schemas.d.ts +1 -1
  140. package/mail/models/schemas.js +1 -1
  141. package/openid-connect/oidc-state.model.d.ts +1 -1
  142. package/openid-connect/oidc-state.model.js +2 -3
  143. package/openid-connect/oidc.service.js +1 -1
  144. package/orm/data-types/bytea.js +1 -1
  145. package/orm/data-types/numeric-date.js +1 -1
  146. package/orm/decorators.d.ts +65 -72
  147. package/orm/decorators.js +42 -40
  148. package/orm/entity.d.ts +7 -1
  149. package/orm/entity.js +25 -11
  150. package/orm/index.d.ts +2 -1
  151. package/orm/index.js +2 -1
  152. package/orm/schemas/json.d.ts +1 -1
  153. package/orm/schemas/json.js +1 -1
  154. package/orm/schemas/numeric-date.d.ts +1 -1
  155. package/orm/schemas/numeric-date.js +1 -1
  156. package/orm/schemas/timestamp.d.ts +1 -1
  157. package/orm/schemas/timestamp.js +1 -1
  158. package/orm/schemas/uuid.d.ts +2 -2
  159. package/orm/schemas/uuid.js +1 -1
  160. package/orm/server/drizzle/schema-converter.ts +408 -0
  161. package/orm/server/repository.d.ts +1 -1
  162. package/orm/server/repository.js +12 -9
  163. package/orm/sqls.d.ts +1 -1
  164. package/orm/sqls.js +1 -1
  165. package/orm/types.d.ts +2 -6
  166. package/orm/types.js +1 -4
  167. package/package.json +15 -24
  168. package/queue/postgres/job.model.d.ts +3 -3
  169. package/queue/postgres/job.model.js +5 -6
  170. package/queue/postgres/queue.js +2 -2
  171. package/queue/postgres/schemas.d.ts +1 -1
  172. package/queue/postgres/schemas.js +1 -1
  173. package/supports.d.ts +1 -0
  174. package/supports.js +2 -1
  175. package/types/types.d.ts +12 -1
  176. package/utils/object/object.d.ts +3 -1
  177. package/utils/object/object.js +7 -1
  178. package/orm/server/drizzle/index.js +0 -1
  179. package/orm/server/drizzle/schema-converter.d.ts +0 -15
  180. package/orm/server/drizzle/schema-converter.js +0 -300
  181. /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/decorators.js';
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
- Uuid(),
21
+ UuidProperty(),
24
22
  __metadata("design:type", String)
25
23
  ], DocumentCollectionAssignment.prototype, "tenantId", void 0);
26
24
  __decorate([
27
- Uuid(),
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
- Uuid(),
31
+ UuidProperty(),
34
32
  References(() => Document),
35
33
  __metadata("design:type", String)
36
34
  ], DocumentCollectionAssignment.prototype, "documentId", void 0);
37
35
  __decorate([
38
- Timestamp({ nullable: true }),
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/entity.js';
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/entity.js';
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
- Uuid(),
17
+ UuidProperty(),
19
18
  __metadata("design:type", String)
20
19
  ], DocumentCollection.prototype, "tenantId", void 0);
21
20
  __decorate([
22
- Uuid({ nullable: true }),
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/decorators.js';
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,4 +1,4 @@
1
- import { Table } from '../../orm/decorators.js';
1
+ import { Table } from '../../orm/index.js';
2
2
  export function DocumentManagementTable(options) {
3
3
  return Table({ ...options, schema: 'document_management' });
4
4
  }
@@ -1,5 +1,4 @@
1
- import { Entity } from '../../orm/entity.js';
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/decorators.js';
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
- Uuid(),
27
+ UuidProperty(),
31
28
  __metadata("design:type", String)
32
29
  ], DocumentPropertyValue.prototype, "tenantId", void 0);
33
30
  __decorate([
34
- Uuid(),
31
+ UuidProperty(),
35
32
  References(() => Document),
36
33
  __metadata("design:type", String)
37
34
  ], DocumentPropertyValue.prototype, "documentId", void 0);
38
35
  __decorate([
39
- Uuid(),
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
- NumericDate({ nullable: true }),
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/entity.js';
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/entity.js';
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
- Uuid({ nullable: true }),
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/entity.js';
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/decorators.js';
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
- Uuid(),
20
+ UuidProperty(),
23
21
  __metadata("design:type", String)
24
22
  ], DocumentRequestCollectionAssignment.prototype, "tenantId", void 0);
25
23
  __decorate([
26
- Uuid(),
24
+ UuidProperty(),
27
25
  References(() => DocumentRequest),
28
26
  __metadata("design:type", String)
29
27
  ], DocumentRequestCollectionAssignment.prototype, "requestId", void 0);
30
28
  __decorate([
31
- Uuid(),
29
+ UuidProperty(),
32
30
  References(() => DocumentCollection),
33
31
  Index(),
34
32
  __metadata("design:type", String)
@@ -1,5 +1,4 @@
1
- import { Entity } from '../../orm/entity.js';
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/decorators.js';
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
- Uuid({ nullable: true }),
22
+ UuidProperty({ nullable: true }),
25
23
  __metadata("design:type", Object)
26
24
  ], DocumentRequestTemplate.prototype, "tenantId", void 0);
27
25
  __decorate([
28
- Uuid(),
26
+ UuidProperty(),
29
27
  References(() => DocumentRequestsTemplate),
30
28
  __metadata("design:type", String)
31
29
  ], DocumentRequestTemplate.prototype, "requestsTemplateId", void 0);
32
30
  __decorate([
33
- Uuid(),
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/decorators.js';
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
- Uuid(),
32
+ UuidProperty(),
34
33
  __metadata("design:type", String)
35
34
  ], DocumentRequest.prototype, "tenantId", void 0);
36
35
  __decorate([
37
- Uuid({ nullable: true }),
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
- Uuid({ nullable: true }),
42
+ UuidProperty({ nullable: true }),
44
43
  References(() => Document),
45
44
  Unique(),
46
45
  __metadata("design:type", Object)
@@ -1,4 +1,4 @@
1
- import { Entity } from '../../orm/entity.js';
1
+ import { Entity } from '../../orm/index.js';
2
2
  export declare class DocumentRequestsTemplate extends Entity {
3
3
  tenantId: string | null;
4
4
  label: string;
@@ -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/entity.js';
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
- Uuid({ nullable: true }),
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/entity.js';
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/decorators.js';
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
- Uuid(),
20
+ UuidProperty(),
23
21
  __metadata("design:type", String)
24
22
  ], DocumentTagAssignment.prototype, "tenantId", void 0);
25
23
  __decorate([
26
- Uuid(),
24
+ UuidProperty(),
27
25
  References(() => Document),
28
26
  __metadata("design:type", String)
29
27
  ], DocumentTagAssignment.prototype, "documentId", void 0);
30
28
  __decorate([
31
- Uuid(),
29
+ UuidProperty(),
32
30
  References(() => DocumentTag),
33
31
  __metadata("design:type", String)
34
32
  ], DocumentTagAssignment.prototype, "tagId", void 0);
@@ -1,4 +1,4 @@
1
- import { Entity } from '../../orm/entity.js';
1
+ import { Entity } from '../../orm/index.js';
2
2
  export declare class DocumentTag extends Entity {
3
3
  static readonly entityName: 'DocumentTag';
4
4
  tenantId: string | null;
@@ -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/entity.js';
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
- Uuid({ nullable: true }),
18
+ UuidProperty({ nullable: true }),
20
19
  __metadata("design:type", Object)
21
20
  ], DocumentTag.prototype, "tenantId", void 0);
22
21
  __decorate([
@@ -1,5 +1,4 @@
1
- import { Entity } from '../../orm/entity.js';
2
- import { Uuid } from '../../orm/types.js';
1
+ import { Entity, type Uuid } from '../../orm/index.js';
3
2
  export declare class DocumentTypeProperty extends Entity {
4
3
  tenantId: string | null;
5
4
  typeId: 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 { References } from '../../orm/decorators.js';
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
- Uuid({ nullable: true }),
20
+ UuidProperty({ nullable: true }),
23
21
  __metadata("design:type", Object)
24
22
  ], DocumentTypeProperty.prototype, "tenantId", void 0);
25
23
  __decorate([
26
- Uuid(),
24
+ UuidProperty(),
27
25
  References(() => DocumentType),
28
26
  __metadata("design:type", String)
29
27
  ], DocumentTypeProperty.prototype, "typeId", void 0);
30
28
  __decorate([
31
- Uuid(),
29
+ UuidProperty(),
32
30
  References(() => DocumentProperty),
33
31
  __metadata("design:type", String)
34
32
  ], DocumentTypeProperty.prototype, "propertyId", void 0);
@@ -1,5 +1,4 @@
1
- import { Entity } from '../../orm/entity.js';
2
- import { Uuid } from '../../orm/types.js';
1
+ import { Entity, type Uuid } from '../../orm/index.js';
3
2
  export declare class DocumentTypeValidation extends Entity {
4
3
  tenantId: string | null;
5
4
  typeId: 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 { References } from '../../orm/decorators.js';
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
- Uuid({ nullable: true }),
20
+ UuidProperty({ nullable: true }),
23
21
  __metadata("design:type", Object)
24
22
  ], DocumentTypeValidation.prototype, "tenantId", void 0);
25
23
  __decorate([
26
- Uuid(),
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
- Uuid(),
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/entity.js';
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/decorators.js';
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
- Uuid({ nullable: true }),
20
+ UuidProperty({ nullable: true }),
23
21
  __metadata("design:type", Object)
24
22
  ], DocumentType.prototype, "tenantId", void 0);
25
23
  __decorate([
26
- Uuid(),
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/entity.js';
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/entity.js';
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
- Uuid({ nullable: true }),
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
- Json(),
37
+ JsonProperty(),
39
38
  __metadata("design:type", Object)
40
39
  ], DocumentValidationDefinition.prototype, "configuration", void 0);
41
40
  DocumentValidationDefinition = __decorate([
@@ -1,5 +1,4 @@
1
- import { Entity } from '../../orm/entity.js';
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/decorators.js';
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
- Uuid(),
20
+ UuidProperty(),
23
21
  __metadata("design:type", String)
24
22
  ], DocumentValidationExecutionRelatedDocument.prototype, "tenantId", void 0);
25
23
  __decorate([
26
- Uuid(),
24
+ UuidProperty(),
27
25
  References(() => DocumentValidationExecution),
28
26
  __metadata("design:type", String)
29
27
  ], DocumentValidationExecutionRelatedDocument.prototype, "executionId", void 0);
30
28
  __decorate([
31
- Uuid(),
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/entity.js';
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/decorators.js';
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
- Uuid(),
38
+ UuidProperty(),
41
39
  __metadata("design:type", String)
42
40
  ], DocumentValidationExecution.prototype, "tenantId", void 0);
43
41
  __decorate([
44
- Uuid(),
42
+ UuidProperty(),
45
43
  References(() => DocumentWorkflow),
46
44
  __metadata("design:type", String)
47
45
  ], DocumentValidationExecution.prototype, "workflowId", void 0);
48
46
  __decorate([
49
- Uuid(),
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
- Timestamp({ nullable: true }),
64
+ TimestampProperty({ nullable: true }),
67
65
  __metadata("design:type", Object)
68
66
  ], DocumentValidationExecution.prototype, "startedAt", void 0);
69
67
  __decorate([
70
- Timestamp({ nullable: true }),
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/entity.js';
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";