@tstdl/base 0.92.123 → 0.92.125
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/ai/ai-file.service.js +23 -18
- package/ai/ai.service.d.ts +4 -12
- package/ai/ai.service.js +79 -147
- package/ai/functions.d.ts +1 -1
- package/ai/types.d.ts +3 -1
- package/api/server/gateway.js +6 -6
- package/authentication/authentication.api.js +24 -24
- package/authentication/server/authentication.service.js +20 -20
- package/browser/page-controller.js +1 -1
- package/context/context.js +5 -5
- package/document-management/api/document-management.api.d.ts +60 -215
- package/document-management/api/document-management.api.js +32 -68
- package/document-management/models/document-assignment-scope.model.d.ts +11 -0
- package/document-management/models/{document-request-assignment-task-collection.model.js → document-assignment-scope.model.js} +14 -10
- package/document-management/models/document-assignment-task.model.d.ts +13 -0
- package/document-management/models/document-assignment-task.model.js +38 -0
- package/document-management/models/document-category.model.d.ts +2 -0
- package/document-management/models/document-category.model.js +7 -1
- package/document-management/models/{document-collection-document.model.d.ts → document-collection-assignment.model.d.ts} +1 -1
- package/document-management/models/{document-collection-document.model.js → document-collection-assignment.model.js} +7 -7
- package/document-management/models/document-collection.model.d.ts +2 -0
- package/document-management/models/document-collection.model.js +10 -0
- package/document-management/models/document-property-value.model.d.ts +3 -11
- package/document-management/models/document-property-value.model.js +15 -46
- package/document-management/models/document-property.model.d.ts +2 -1
- package/document-management/models/document-property.model.js +2 -2
- package/document-management/models/document-request-submission.model.d.ts +7 -0
- package/document-management/models/document-request-submission.model.js +34 -0
- package/document-management/models/document-request-template.d.ts +2 -4
- package/document-management/models/document-request-template.js +3 -8
- package/document-management/models/document-request.model.d.ts +14 -6
- package/document-management/models/document-request.model.js +22 -12
- package/document-management/models/document-type-validation.model.d.ts +6 -0
- package/document-management/models/document-type-validation.model.js +34 -0
- package/document-management/models/document-type.model.d.ts +0 -1
- package/document-management/models/document-type.model.js +0 -5
- package/document-management/models/document-validation-definition.model.d.ts +10 -0
- package/document-management/models/document-validation-definition.model.js +39 -0
- package/document-management/models/document-validation-execution-related-document.model.d.ts +7 -0
- package/document-management/models/document-validation-execution-related-document.model.js +34 -0
- package/document-management/models/document-validation-execution.model.d.ts +26 -0
- package/document-management/models/document-validation-execution.model.js +72 -0
- package/document-management/models/document-workflow.model.d.ts +35 -0
- package/document-management/models/document-workflow.model.js +70 -0
- package/document-management/models/document.model.d.ts +12 -1
- package/document-management/models/document.model.js +21 -5
- package/document-management/models/index.d.ts +10 -5
- package/document-management/models/index.js +10 -5
- package/document-management/models/service-models/categories-and-types.view-model.d.ts +3 -3
- package/document-management/models/service-models/categories-and-types.view-model.js +2 -21
- package/document-management/models/service-models/document-folders.view-model.d.ts +7 -14
- package/document-management/models/service-models/document-folders.view-model.js +20 -44
- package/document-management/models/service-models/document-management.view-model.d.ts +41 -0
- package/document-management/models/service-models/{document.view-model.js → document-management.view-model.js} +43 -26
- package/document-management/models/service-models/document.service-model.d.ts +51 -81
- package/document-management/models/service-models/document.service-model.js +30 -28
- package/document-management/models/service-models/enriched/enriched-document-assignment.view.d.ts +11 -0
- package/document-management/models/service-models/enriched/enriched-document-assignment.view.js +12 -0
- package/document-management/models/service-models/enriched/enriched-document-category.view.d.ts +13 -0
- package/document-management/models/service-models/enriched/enriched-document-category.view.js +47 -0
- package/document-management/models/service-models/enriched/enriched-document-collection.view.d.ts +22 -0
- package/document-management/models/service-models/enriched/enriched-document-collection.view.js +89 -0
- package/document-management/models/service-models/enriched/enriched-document-file.view.d.ts +12 -0
- package/document-management/models/service-models/enriched/enriched-document-file.view.js +16 -0
- package/document-management/models/service-models/enriched/enriched-document-management-data.view.d.ts +41 -0
- package/document-management/models/service-models/enriched/enriched-document-management-data.view.js +130 -0
- package/document-management/models/service-models/enriched/enriched-document-request.view.d.ts +17 -0
- package/document-management/models/service-models/enriched/enriched-document-request.view.js +52 -0
- package/document-management/models/service-models/enriched/enriched-document-type.view.d.ts +9 -0
- package/document-management/models/service-models/enriched/enriched-document-type.view.js +10 -0
- package/document-management/models/service-models/enriched/enriched-document.view.d.ts +28 -0
- package/document-management/models/service-models/enriched/enriched-document.view.js +77 -0
- package/document-management/models/service-models/enriched/enriched.d.ts +18 -0
- package/document-management/models/service-models/enriched/enriched.js +39 -0
- package/document-management/models/service-models/enriched/index.d.ts +9 -0
- package/document-management/models/service-models/enriched/index.js +9 -0
- package/document-management/models/service-models/index.d.ts +2 -2
- package/document-management/models/service-models/index.js +2 -2
- package/document-management/models/service-models/normalized-requests-template-data.model.d.ts +12 -10
- package/document-management/models/service-models/normalized-requests-template-data.model.js +5 -4
- package/document-management/models/service-models/stats.view-model.d.ts +7 -5
- package/document-management/models/service-models/stats.view-model.js +19 -9
- package/document-management/server/module.d.ts +2 -2
- package/document-management/server/module.js +3 -7
- package/document-management/server/schemas.d.ts +18 -23
- package/document-management/server/schemas.js +18 -23
- package/document-management/server/services/document-category-type.service.d.ts +25 -0
- package/document-management/server/services/document-category-type.service.js +66 -0
- package/document-management/server/services/document-collection.service.d.ts +13 -0
- package/document-management/server/services/document-collection.service.js +41 -0
- package/document-management/server/services/document-file.service.d.ts +17 -0
- package/document-management/server/services/document-file.service.js +204 -0
- package/document-management/server/services/document-management-ai.service.d.ts +22 -0
- package/document-management/server/services/document-management-ai.service.js +340 -0
- package/document-management/server/services/document-management-ancillary.service.d.ts +127 -3
- package/document-management/server/services/document-management-ancillary.service.js +24 -0
- package/document-management/server/services/document-management.service.d.ts +10 -122
- package/document-management/server/services/document-management.service.js +106 -888
- package/document-management/server/services/document-property.service.d.ts +84 -0
- package/document-management/server/services/document-property.service.js +87 -0
- package/document-management/server/services/document-request.service.d.ts +30 -0
- package/document-management/server/services/document-request.service.js +138 -0
- package/document-management/server/services/document-validation.service.d.ts +20 -0
- package/document-management/server/services/document-validation.service.js +145 -0
- package/document-management/server/services/document-workflow.service.d.ts +20 -0
- package/document-management/server/services/document-workflow.service.js +132 -0
- package/document-management/server/services/document.service.d.ts +16 -0
- package/document-management/server/services/document.service.js +81 -0
- package/document-management/server/services/index.d.ts +9 -0
- package/document-management/server/services/index.js +9 -0
- package/document-management/server/validators/ai-validation-executor.d.ts +19 -0
- package/document-management/server/validators/ai-validation-executor.js +51 -0
- package/document-management/server/validators/index.d.ts +2 -0
- package/document-management/server/validators/index.js +2 -0
- package/document-management/server/validators/single-document-validation-executor.d.ts +16 -0
- package/document-management/server/validators/single-document-validation-executor.js +20 -0
- package/document-management/server/validators/validator.d.ts +21 -0
- package/document-management/server/validators/validator.js +2 -0
- package/eslint.config.js +31 -17
- package/examples/document-management/main.d.ts +18 -3
- package/examples/document-management/main.js +28 -12
- package/file/mime-type.js +2 -9
- package/formats.d.ts +5 -2
- package/formats.js +32 -23
- package/http/client/http-client.js +1 -1
- package/injector/injector.js +2 -2
- package/object-storage/s3/s3.object-storage.js +1 -1
- package/orm/data-types/bytea.d.ts +8 -0
- package/orm/data-types/bytea.js +8 -0
- package/orm/data-types/index.d.ts +4 -0
- package/orm/data-types/index.js +4 -0
- package/orm/data-types/numeric-date.d.ts +9 -0
- package/orm/data-types/numeric-date.js +9 -0
- package/orm/data-types/timestamp.d.ts +9 -0
- package/orm/data-types/timestamp.js +9 -0
- package/orm/decorators.d.ts +139 -5
- package/orm/decorators.js +50 -0
- package/orm/entity.d.ts +19 -0
- package/orm/entity.js +19 -0
- package/orm/index.d.ts +5 -0
- package/orm/index.js +5 -0
- package/orm/query.d.ts +51 -0
- package/orm/query.js +6 -0
- package/orm/repository.types.d.ts +54 -2
- package/orm/server/database-schema.d.ts +34 -0
- package/orm/server/database-schema.js +29 -0
- package/orm/server/database.d.ts +19 -1
- package/orm/server/database.js +17 -3
- package/orm/server/drizzle/schema-converter.d.ts +2 -1
- package/orm/server/drizzle/schema-converter.js +12 -1
- package/orm/server/encryption.d.ts +16 -0
- package/orm/server/encryption.js +29 -4
- package/orm/server/index.d.ts +7 -0
- package/orm/server/index.js +7 -0
- package/orm/server/module.d.ts +20 -0
- package/orm/server/module.js +9 -0
- package/orm/server/query-converter.d.ts +17 -0
- package/orm/server/query-converter.js +66 -11
- package/orm/server/repository.d.ts +324 -18
- package/orm/server/repository.js +344 -73
- package/orm/server/transaction.d.ts +5 -5
- package/orm/server/transaction.js +5 -5
- package/orm/server/transactional.d.ts +75 -0
- package/orm/server/transactional.js +134 -0
- package/orm/server/types.d.ts +1 -0
- package/orm/sqls.d.ts +55 -0
- package/orm/sqls.js +60 -0
- package/orm/types.d.ts +67 -4
- package/orm/utils.d.ts +19 -3
- package/orm/utils.js +12 -0
- package/package.json +32 -31
- package/password/password-check-result.model.d.ts +9 -7
- package/password/password-check-result.model.js +8 -8
- package/password/password-check.js +5 -7
- package/password/password-check.localization.js +12 -12
- package/pdf/pdf.service.js +1 -1
- package/pdf/utils.d.ts +9 -0
- package/pdf/utils.js +19 -2
- package/process/spawn.d.ts +11 -4
- package/process/spawn.js +42 -5
- package/queue/postgres/queue.js +5 -5
- package/queue/queue.d.ts +6 -4
- package/queue/queue.js +6 -6
- package/schema/schemas/one-or-many.d.ts +2 -1
- package/schema/schemas/one-or-many.js +1 -1
- package/search-index/elastic/model/index-mapping.d.ts +1 -1
- package/search-index/elastic/model/index-mapping.js +0 -1
- package/search-index/elastic/search-index.d.ts +1 -2
- package/search-index/elastic/search-index.js +3 -3
- package/types.d.ts +1 -0
- package/utils/async-hook/async-hook.d.ts +9 -0
- package/utils/async-hook/async-hook.js +21 -0
- package/utils/async-hook/index.d.ts +1 -0
- package/utils/async-hook/index.js +1 -0
- package/utils/compression.js +1 -1
- package/utils/function/class.d.ts +6 -0
- package/utils/function/class.js +9 -0
- package/utils/function/index.d.ts +1 -0
- package/utils/function/index.js +1 -0
- package/utils/function/memoize.d.ts +18 -0
- package/utils/function/memoize.js +41 -2
- package/utils/jwt.d.ts +1 -1
- package/utils/jwt.js +5 -5
- package/utils/object/forward-ref.d.ts +3 -2
- package/utils/object/forward-ref.js +12 -12
- package/utils/object/lazy-property.js +2 -2
- package/utils/proxy.js +1 -1
- package/utils/stream/{readable-stream-from-promise.d.ts → from-promise.d.ts} +1 -0
- package/utils/stream/from-promise.js +27 -0
- package/utils/stream/index.d.ts +1 -1
- package/utils/stream/index.js +1 -1
- package/utils/stream/stream-reader.js +71 -31
- package/document-management/models/document-request-assignment-task-collection.model.d.ts +0 -7
- package/document-management/models/document-request-assignment-task.model.d.ts +0 -14
- package/document-management/models/document-request-assignment-task.model.js +0 -77
- package/document-management/models/document-request-file.model.d.ts +0 -16
- package/document-management/models/document-request-file.model.js +0 -86
- package/document-management/models/service-models/document.view-model.d.ts +0 -41
- package/document-management/models/service-models/normalized-document-collection-view.model.d.ts +0 -73
- package/document-management/models/service-models/normalized-document-collection-view.model.js +0 -110
- package/utils/stream/readable-stream-from-promise.js +0 -8
|
@@ -7,9 +7,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { compileClient } from '../../api/client/index.js';
|
|
8
8
|
import { defineApi } from '../../api/index.js';
|
|
9
9
|
import { ReplaceClass } from '../../injector/decorators.js';
|
|
10
|
-
import { boolean, literal, nullable, object, optional, string } from '../../schema/index.js';
|
|
10
|
+
import { array, boolean, literal, nullable, object, optional, string } from '../../schema/index.js';
|
|
11
11
|
import { megabyte } from '../../utils/units.js';
|
|
12
|
-
import {
|
|
12
|
+
import { Document, DocumentCategory, DocumentCollection, DocumentRequest, DocumentRequestsTemplate, DocumentRequestTemplate, DocumentType } from '../models/index.js';
|
|
13
|
+
import { addOrArchiveDocumentToOrFromCollectionParametersSchema, applyDocumentRequestsTemplateParametersSchema, createCollectionParametersSchema, createDocumentCategoryParametersSchema, createDocumentParametersSchema, createDocumentRequestParametersSchema, createDocumentRequestsTemplateParametersSchema, createDocumentRequestTemplateParametersSchema, createDocumentTypeParametersSchema, deleteDocumentRequestParametersSchema, deleteDocumentRequestsTemplateParametersSchema, deleteDocumentRequestTemplateParametersSchema, DocumentCategoryView, DocumentManagementData, DocumentRequestsTemplateData, loadDataParametersSchema, updateDocumentParametersSchema, updateDocumentRequestParametersSchema, updateDocumentRequestsTemplateParametersSchema, updateDocumentRequestTemplateParametersSchema } from '../models/service-models/index.js';
|
|
13
14
|
export const documentManagementApiDefinition = defineApi({
|
|
14
15
|
resource: 'document-management',
|
|
15
16
|
endpoints: {
|
|
@@ -18,19 +19,19 @@ export const documentManagementApiDefinition = defineApi({
|
|
|
18
19
|
method: 'GET',
|
|
19
20
|
parameters: loadDataParametersSchema,
|
|
20
21
|
result: DocumentManagementData,
|
|
21
|
-
credentials: true
|
|
22
|
+
credentials: true,
|
|
22
23
|
},
|
|
23
24
|
loadDocumentRequestsTemplateData: {
|
|
24
25
|
resource: 'views/document-requests-template-data',
|
|
25
26
|
method: 'GET',
|
|
26
27
|
result: DocumentRequestsTemplateData,
|
|
27
|
-
credentials: true
|
|
28
|
+
credentials: true,
|
|
28
29
|
},
|
|
29
|
-
|
|
30
|
-
resource: 'views/categories
|
|
30
|
+
loadAvailableCategories: {
|
|
31
|
+
resource: 'views/categories',
|
|
31
32
|
method: 'GET',
|
|
32
|
-
result:
|
|
33
|
-
credentials: true
|
|
33
|
+
result: array(DocumentCategoryView),
|
|
34
|
+
credentials: true,
|
|
34
35
|
},
|
|
35
36
|
loadFileContent: {
|
|
36
37
|
resource: 'files/:id/content',
|
|
@@ -38,10 +39,10 @@ export const documentManagementApiDefinition = defineApi({
|
|
|
38
39
|
parameters: object({
|
|
39
40
|
id: string(),
|
|
40
41
|
title: nullable(string()),
|
|
41
|
-
download: optional(boolean({ coerce: true }))
|
|
42
|
+
download: optional(boolean({ coerce: true })),
|
|
42
43
|
}),
|
|
43
44
|
result: Uint8Array,
|
|
44
|
-
credentials: true
|
|
45
|
+
credentials: true,
|
|
45
46
|
},
|
|
46
47
|
getFileContentUrl: {
|
|
47
48
|
resource: 'files/:id/content/url',
|
|
@@ -49,31 +50,31 @@ export const documentManagementApiDefinition = defineApi({
|
|
|
49
50
|
parameters: object({
|
|
50
51
|
id: string(),
|
|
51
52
|
title: nullable(string()),
|
|
52
|
-
download: optional(boolean({ coerce: true }))
|
|
53
|
+
download: optional(boolean({ coerce: true })),
|
|
53
54
|
}),
|
|
54
55
|
result: string(),
|
|
55
|
-
credentials: true
|
|
56
|
+
credentials: true,
|
|
56
57
|
},
|
|
57
58
|
createCategory: {
|
|
58
59
|
resource: 'categories',
|
|
59
60
|
method: 'POST',
|
|
60
61
|
parameters: createDocumentCategoryParametersSchema,
|
|
61
62
|
result: DocumentCategory,
|
|
62
|
-
credentials: true
|
|
63
|
+
credentials: true,
|
|
63
64
|
},
|
|
64
65
|
createType: {
|
|
65
66
|
resource: 'types',
|
|
66
67
|
method: 'POST',
|
|
67
68
|
parameters: createDocumentTypeParametersSchema,
|
|
68
69
|
result: DocumentType,
|
|
69
|
-
credentials: true
|
|
70
|
+
credentials: true,
|
|
70
71
|
},
|
|
71
72
|
createCollection: {
|
|
72
73
|
resource: 'collections',
|
|
73
74
|
method: 'POST',
|
|
74
75
|
parameters: createCollectionParametersSchema,
|
|
75
76
|
result: DocumentCollection,
|
|
76
|
-
credentials: true
|
|
77
|
+
credentials: true,
|
|
77
78
|
},
|
|
78
79
|
createDocument: {
|
|
79
80
|
resource: 'documents',
|
|
@@ -82,137 +83,100 @@ export const documentManagementApiDefinition = defineApi({
|
|
|
82
83
|
body: Uint8Array,
|
|
83
84
|
maxBytes: 50 * megabyte,
|
|
84
85
|
result: Document,
|
|
85
|
-
credentials: true
|
|
86
|
+
credentials: true,
|
|
86
87
|
},
|
|
87
88
|
createDocumentRequestsTemplate: {
|
|
88
89
|
resource: 'document-requests-template',
|
|
89
90
|
method: 'POST',
|
|
90
91
|
parameters: createDocumentRequestsTemplateParametersSchema,
|
|
91
92
|
result: DocumentRequestsTemplate,
|
|
92
|
-
credentials: true
|
|
93
|
+
credentials: true,
|
|
93
94
|
},
|
|
94
95
|
updateDocumentRequestsTemplate: {
|
|
95
96
|
resource: 'document-requests-template/:id',
|
|
96
97
|
method: 'PATCH',
|
|
97
98
|
parameters: updateDocumentRequestsTemplateParametersSchema,
|
|
98
99
|
result: DocumentRequestsTemplate,
|
|
99
|
-
credentials: true
|
|
100
|
+
credentials: true,
|
|
100
101
|
},
|
|
101
102
|
applyDocumentRequestsTemplate: {
|
|
102
103
|
resource: 'document-requests-template/:id',
|
|
103
104
|
method: 'POST',
|
|
104
105
|
parameters: applyDocumentRequestsTemplateParametersSchema,
|
|
105
106
|
result: literal('ok'),
|
|
106
|
-
credentials: true
|
|
107
|
+
credentials: true,
|
|
107
108
|
},
|
|
108
109
|
deleteDocumentRequestsTemplate: {
|
|
109
110
|
resource: 'document-requests-template/:id',
|
|
110
111
|
method: 'DELETE',
|
|
111
112
|
parameters: deleteDocumentRequestsTemplateParametersSchema,
|
|
112
113
|
result: literal('ok'),
|
|
113
|
-
credentials: true
|
|
114
|
+
credentials: true,
|
|
114
115
|
},
|
|
115
116
|
createDocumentRequestTemplate: {
|
|
116
117
|
resource: 'document-request-template',
|
|
117
118
|
method: 'POST',
|
|
118
119
|
parameters: createDocumentRequestTemplateParametersSchema,
|
|
119
120
|
result: DocumentRequestTemplate,
|
|
120
|
-
credentials: true
|
|
121
|
+
credentials: true,
|
|
121
122
|
},
|
|
122
123
|
updateDocumentRequestTemplate: {
|
|
123
124
|
resource: 'document-request-template/:id',
|
|
124
125
|
method: 'PATCH',
|
|
125
126
|
parameters: updateDocumentRequestTemplateParametersSchema,
|
|
126
127
|
result: DocumentRequestTemplate,
|
|
127
|
-
credentials: true
|
|
128
|
+
credentials: true,
|
|
128
129
|
},
|
|
129
130
|
deleteDocumentRequestTemplate: {
|
|
130
131
|
resource: 'document-request-template/:id',
|
|
131
132
|
method: 'DELETE',
|
|
132
133
|
parameters: deleteDocumentRequestTemplateParametersSchema,
|
|
133
134
|
result: literal('ok'),
|
|
134
|
-
credentials: true
|
|
135
|
-
},
|
|
136
|
-
createDocumentRequestFile: {
|
|
137
|
-
resource: 'requests/:requestId/files',
|
|
138
|
-
method: 'POST',
|
|
139
|
-
parameters: createDocumentRequestFileParametersSchema,
|
|
140
|
-
body: Uint8Array,
|
|
141
|
-
result: DocumentRequestFile,
|
|
142
|
-
maxBytes: 50 * megabyte,
|
|
143
|
-
credentials: true
|
|
144
|
-
},
|
|
145
|
-
approveDocumentRequestFile: {
|
|
146
|
-
resource: 'request-files/:id/create-document',
|
|
147
|
-
method: 'POST',
|
|
148
|
-
parameters: approveDocumentRequestFileParametersSchema,
|
|
149
|
-
result: Document,
|
|
150
|
-
credentials: true
|
|
151
|
-
},
|
|
152
|
-
rejectDocumentRequestFile: {
|
|
153
|
-
resource: 'request-files/:id/reject',
|
|
154
|
-
method: 'POST',
|
|
155
|
-
parameters: rejectDocumentRequestFileParametersSchema,
|
|
156
|
-
result: literal('ok'),
|
|
157
|
-
credentials: true
|
|
158
|
-
},
|
|
159
|
-
updateDocumentRequestFile: {
|
|
160
|
-
resource: 'request-files/:id',
|
|
161
|
-
method: 'PATCH',
|
|
162
|
-
parameters: updateDocumentRequestFileParametersSchema,
|
|
163
|
-
result: DocumentRequestFile,
|
|
164
|
-
credentials: true
|
|
165
|
-
},
|
|
166
|
-
deleteDocumentRequestFile: {
|
|
167
|
-
resource: 'request-files/:id',
|
|
168
|
-
method: 'DELETE',
|
|
169
|
-
parameters: deleteDocumentRequestFileParametersSchema,
|
|
170
|
-
result: literal('ok'),
|
|
171
|
-
credentials: true
|
|
135
|
+
credentials: true,
|
|
172
136
|
},
|
|
173
137
|
createDocumentRequest: {
|
|
174
138
|
resource: 'requests',
|
|
175
139
|
method: 'POST',
|
|
176
140
|
parameters: createDocumentRequestParametersSchema,
|
|
177
141
|
result: DocumentRequest,
|
|
178
|
-
credentials: true
|
|
142
|
+
credentials: true,
|
|
179
143
|
},
|
|
180
144
|
updateDocumentRequest: {
|
|
181
145
|
resource: 'requests/:id',
|
|
182
146
|
method: 'PATCH',
|
|
183
147
|
parameters: updateDocumentRequestParametersSchema,
|
|
184
148
|
result: literal('ok'),
|
|
185
|
-
credentials: true
|
|
149
|
+
credentials: true,
|
|
186
150
|
},
|
|
187
151
|
deleteDocumentRequest: {
|
|
188
152
|
resource: 'requests/:id',
|
|
189
153
|
method: 'DELETE',
|
|
190
154
|
parameters: deleteDocumentRequestParametersSchema,
|
|
191
155
|
result: literal('ok'),
|
|
192
|
-
credentials: true
|
|
156
|
+
credentials: true,
|
|
193
157
|
},
|
|
194
158
|
addDocumentToCollection: {
|
|
195
159
|
resource: 'collections/:collectionId/documents/:documentId',
|
|
196
160
|
method: 'PUT',
|
|
197
161
|
parameters: addOrArchiveDocumentToOrFromCollectionParametersSchema,
|
|
198
162
|
result: literal('ok'),
|
|
199
|
-
credentials: true
|
|
163
|
+
credentials: true,
|
|
200
164
|
},
|
|
201
165
|
archiveDocument: {
|
|
202
166
|
resource: 'collections/:collectionId/documents/:documentId',
|
|
203
167
|
method: 'DELETE',
|
|
204
168
|
parameters: addOrArchiveDocumentToOrFromCollectionParametersSchema,
|
|
205
169
|
result: literal('ok'),
|
|
206
|
-
credentials: true
|
|
170
|
+
credentials: true,
|
|
207
171
|
},
|
|
208
172
|
updateDocument: {
|
|
209
173
|
resource: 'documents/:id',
|
|
210
174
|
method: 'PATCH',
|
|
211
175
|
parameters: updateDocumentParametersSchema,
|
|
212
176
|
result: literal('ok'),
|
|
213
|
-
credentials: true
|
|
214
|
-
}
|
|
215
|
-
}
|
|
177
|
+
credentials: true,
|
|
178
|
+
},
|
|
179
|
+
},
|
|
216
180
|
});
|
|
217
181
|
const _DocumentManagementApi = compileClient(documentManagementApiDefinition);
|
|
218
182
|
let DocumentManagementApi = class DocumentManagementApi extends _DocumentManagementApi {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Entity } from '../../orm/entity.js';
|
|
2
|
+
import { Uuid } from '../../orm/types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Defines which collections or requests in these collections (depends on assignment task) are allowed to be assigned to a document in the assignment workflow.
|
|
5
|
+
* This is used to prevent documents from being assigned to collections/requests that are out of scope/context.
|
|
6
|
+
*/
|
|
7
|
+
export declare class DocumentAssignmentScope extends Entity {
|
|
8
|
+
static readonly entityName: 'DocumentAssignmentScope';
|
|
9
|
+
taskId: Uuid;
|
|
10
|
+
collectionId: Uuid;
|
|
11
|
+
}
|
|
@@ -10,25 +10,29 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
import { References } from '../../orm/decorators.js';
|
|
11
11
|
import { Entity } from '../../orm/entity.js';
|
|
12
12
|
import { Unique, Uuid } from '../../orm/types.js';
|
|
13
|
+
import { DocumentAssignmentTask } from './document-assignment-task.model.js';
|
|
13
14
|
import { DocumentCollection } from './document-collection.model.js';
|
|
14
15
|
import { DocumentManagementTable } from './document-management-table.js';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Defines which collections or requests in these collections (depends on assignment task) are allowed to be assigned to a document in the assignment workflow.
|
|
18
|
+
* This is used to prevent documents from being assigned to collections/requests that are out of scope/context.
|
|
19
|
+
*/
|
|
20
|
+
let DocumentAssignmentScope = class DocumentAssignmentScope extends Entity {
|
|
21
|
+
taskId;
|
|
18
22
|
collectionId;
|
|
19
23
|
};
|
|
20
24
|
__decorate([
|
|
21
25
|
Uuid(),
|
|
22
|
-
References(() =>
|
|
26
|
+
References(() => DocumentAssignmentTask),
|
|
23
27
|
__metadata("design:type", String)
|
|
24
|
-
],
|
|
28
|
+
], DocumentAssignmentScope.prototype, "taskId", void 0);
|
|
25
29
|
__decorate([
|
|
26
30
|
Uuid(),
|
|
27
31
|
References(() => DocumentCollection),
|
|
28
32
|
__metadata("design:type", String)
|
|
29
|
-
],
|
|
30
|
-
|
|
33
|
+
], DocumentAssignmentScope.prototype, "collectionId", void 0);
|
|
34
|
+
DocumentAssignmentScope = __decorate([
|
|
31
35
|
DocumentManagementTable(),
|
|
32
|
-
Unique(['
|
|
33
|
-
],
|
|
34
|
-
export {
|
|
36
|
+
Unique(['taskId', 'collectionId'], { naming: 'abbreviated-table' })
|
|
37
|
+
], DocumentAssignmentScope);
|
|
38
|
+
export { DocumentAssignmentScope };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type EnumType } from '../../enumeration/enumeration.js';
|
|
2
|
+
import { Entity } from '../../orm/entity.js';
|
|
3
|
+
import { Uuid } from '../../orm/types.js';
|
|
4
|
+
export declare const DocumentAssignmentTarget: {
|
|
5
|
+
readonly Collection: "collection";
|
|
6
|
+
readonly Request: "request";
|
|
7
|
+
};
|
|
8
|
+
export type DocumentAssignmentTarget = EnumType<typeof DocumentAssignmentTarget>;
|
|
9
|
+
export declare class DocumentAssignmentTask extends Entity {
|
|
10
|
+
static readonly entityName: 'DocumentAssignmentTask';
|
|
11
|
+
documentId: Uuid;
|
|
12
|
+
target: DocumentAssignmentTarget;
|
|
13
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { defineEnum } from '../../enumeration/enumeration.js';
|
|
11
|
+
import { References } from '../../orm/decorators.js';
|
|
12
|
+
import { Entity } from '../../orm/entity.js';
|
|
13
|
+
import { Unique, Uuid } from '../../orm/types.js';
|
|
14
|
+
import { Enumeration } from '../../schema/index.js';
|
|
15
|
+
import { DocumentManagementTable } from './document-management-table.js';
|
|
16
|
+
import { Document } from './document.model.js';
|
|
17
|
+
export const DocumentAssignmentTarget = defineEnum('DocumentAssignmentTarget', {
|
|
18
|
+
Collection: 'collection',
|
|
19
|
+
Request: 'request',
|
|
20
|
+
});
|
|
21
|
+
let DocumentAssignmentTask = class DocumentAssignmentTask extends Entity {
|
|
22
|
+
documentId;
|
|
23
|
+
target;
|
|
24
|
+
};
|
|
25
|
+
__decorate([
|
|
26
|
+
Uuid(),
|
|
27
|
+
References(() => Document),
|
|
28
|
+
Unique(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], DocumentAssignmentTask.prototype, "documentId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
Enumeration(DocumentAssignmentTarget),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], DocumentAssignmentTask.prototype, "target", void 0);
|
|
35
|
+
DocumentAssignmentTask = __decorate([
|
|
36
|
+
DocumentManagementTable()
|
|
37
|
+
], DocumentAssignmentTask);
|
|
38
|
+
export { DocumentAssignmentTask };
|
|
@@ -8,12 +8,18 @@ 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 { Entity } from '../../orm/entity.js';
|
|
11
|
-
import { Unique } from '../../orm/types.js';
|
|
11
|
+
import { References, Unique, Uuid } from '../../orm/types.js';
|
|
12
12
|
import { StringProperty } from '../../schema/index.js';
|
|
13
13
|
import { DocumentManagementTable } from './document-management-table.js';
|
|
14
14
|
let DocumentCategory = class DocumentCategory extends Entity {
|
|
15
|
+
parentId;
|
|
15
16
|
label;
|
|
16
17
|
};
|
|
18
|
+
__decorate([
|
|
19
|
+
Uuid({ nullable: true }),
|
|
20
|
+
References(() => DocumentCategory),
|
|
21
|
+
__metadata("design:type", Object)
|
|
22
|
+
], DocumentCategory.prototype, "parentId", void 0);
|
|
17
23
|
__decorate([
|
|
18
24
|
StringProperty(),
|
|
19
25
|
Unique(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Entity } from '../../orm/entity.js';
|
|
2
2
|
import { Timestamp, Uuid } from '../../orm/types.js';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class DocumentCollectionAssignment extends Entity {
|
|
4
4
|
collectionId: Uuid;
|
|
5
5
|
documentId: Uuid;
|
|
6
6
|
archiveTimestamp: Timestamp | null;
|
|
@@ -13,7 +13,7 @@ import { Timestamp, Unique, Uuid } from '../../orm/types.js';
|
|
|
13
13
|
import { DocumentCollection } from './document-collection.model.js';
|
|
14
14
|
import { DocumentManagementTable } from './document-management-table.js';
|
|
15
15
|
import { Document } from './document.model.js';
|
|
16
|
-
let
|
|
16
|
+
let DocumentCollectionAssignment = class DocumentCollectionAssignment extends Entity {
|
|
17
17
|
collectionId;
|
|
18
18
|
documentId;
|
|
19
19
|
archiveTimestamp;
|
|
@@ -22,18 +22,18 @@ __decorate([
|
|
|
22
22
|
Uuid(),
|
|
23
23
|
References(() => DocumentCollection),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
|
-
],
|
|
25
|
+
], DocumentCollectionAssignment.prototype, "collectionId", void 0);
|
|
26
26
|
__decorate([
|
|
27
27
|
Uuid(),
|
|
28
28
|
References(() => Document),
|
|
29
29
|
__metadata("design:type", String)
|
|
30
|
-
],
|
|
30
|
+
], DocumentCollectionAssignment.prototype, "documentId", void 0);
|
|
31
31
|
__decorate([
|
|
32
32
|
Timestamp({ nullable: true }),
|
|
33
33
|
__metadata("design:type", Object)
|
|
34
|
-
],
|
|
35
|
-
|
|
34
|
+
], DocumentCollectionAssignment.prototype, "archiveTimestamp", void 0);
|
|
35
|
+
DocumentCollectionAssignment = __decorate([
|
|
36
36
|
DocumentManagementTable(),
|
|
37
37
|
Unique(['collectionId', 'documentId'])
|
|
38
|
-
],
|
|
39
|
-
export {
|
|
38
|
+
], DocumentCollectionAssignment);
|
|
39
|
+
export { DocumentCollectionAssignment };
|
|
@@ -4,10 +4,20 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
7
10
|
import { Entity } from '../../orm/entity.js';
|
|
11
|
+
import { References, Uuid } from '../../orm/types.js';
|
|
8
12
|
import { DocumentManagementTable } from './document-management-table.js';
|
|
9
13
|
let DocumentCollection = class DocumentCollection extends Entity {
|
|
14
|
+
parentId;
|
|
10
15
|
};
|
|
16
|
+
__decorate([
|
|
17
|
+
Uuid({ nullable: true }),
|
|
18
|
+
References(() => DocumentCollection),
|
|
19
|
+
__metadata("design:type", Object)
|
|
20
|
+
], DocumentCollection.prototype, "parentId", void 0);
|
|
11
21
|
DocumentCollection = __decorate([
|
|
12
22
|
DocumentManagementTable()
|
|
13
23
|
], DocumentCollection);
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Entity } from '../../orm/entity.js';
|
|
2
2
|
import { NumericDate, Uuid } from '../../orm/types.js';
|
|
3
|
-
export declare
|
|
3
|
+
export declare class DocumentPropertyValue extends Entity {
|
|
4
|
+
static readonly entityName: 'DocumentPropertyValue';
|
|
5
|
+
documentId: Uuid;
|
|
4
6
|
propertyId: Uuid;
|
|
5
7
|
text: string | null;
|
|
6
8
|
integer: number | null;
|
|
@@ -8,13 +10,3 @@ export declare abstract class DocumentPropertyValueBase extends Entity {
|
|
|
8
10
|
boolean: boolean | null;
|
|
9
11
|
date: NumericDate | null;
|
|
10
12
|
}
|
|
11
|
-
export declare class DocumentPropertyValue extends DocumentPropertyValueBase {
|
|
12
|
-
documentId: Uuid;
|
|
13
|
-
}
|
|
14
|
-
export declare class DocumentRequestFilePropertyValue extends DocumentPropertyValueBase {
|
|
15
|
-
requestFileId: Uuid;
|
|
16
|
-
}
|
|
17
|
-
export declare class DocumentRequestAssignmentTaskPropertyValue extends DocumentPropertyValueBase {
|
|
18
|
-
static readonly entityName: 'DocumentRequestAssignmentTaskPropertyValue';
|
|
19
|
-
requestAssignmentTaskId: Uuid;
|
|
20
|
-
}
|
|
@@ -15,10 +15,9 @@ import { Check, NumericDate, Unique, Uuid } from '../../orm/types.js';
|
|
|
15
15
|
import { BooleanProperty, Integer, NumberProperty, StringProperty } from '../../schema/index.js';
|
|
16
16
|
import { DocumentManagementTable } from './document-management-table.js';
|
|
17
17
|
import { DocumentProperty } from './document-property.model.js';
|
|
18
|
-
import { DocumentRequestAssignmentTask } from './document-request-assignment-task.model.js';
|
|
19
|
-
import { DocumentRequestFile } from './document-request-file.model.js';
|
|
20
18
|
import { Document } from './document.model.js';
|
|
21
|
-
let
|
|
19
|
+
let DocumentPropertyValue = class DocumentPropertyValue extends Entity {
|
|
20
|
+
documentId;
|
|
22
21
|
propertyId;
|
|
23
22
|
text;
|
|
24
23
|
integer;
|
|
@@ -26,69 +25,39 @@ let DocumentPropertyValueBase = class DocumentPropertyValueBase extends Entity {
|
|
|
26
25
|
boolean;
|
|
27
26
|
date;
|
|
28
27
|
};
|
|
28
|
+
__decorate([
|
|
29
|
+
Uuid(),
|
|
30
|
+
References(() => Document),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], DocumentPropertyValue.prototype, "documentId", void 0);
|
|
29
33
|
__decorate([
|
|
30
34
|
Uuid(),
|
|
31
35
|
References(() => DocumentProperty),
|
|
32
36
|
__metadata("design:type", String)
|
|
33
|
-
],
|
|
37
|
+
], DocumentPropertyValue.prototype, "propertyId", void 0);
|
|
34
38
|
__decorate([
|
|
35
39
|
StringProperty({ nullable: true }),
|
|
36
40
|
__metadata("design:type", Object)
|
|
37
|
-
],
|
|
41
|
+
], DocumentPropertyValue.prototype, "text", void 0);
|
|
38
42
|
__decorate([
|
|
39
43
|
Integer({ nullable: true }),
|
|
40
44
|
__metadata("design:type", Object)
|
|
41
|
-
],
|
|
45
|
+
], DocumentPropertyValue.prototype, "integer", void 0);
|
|
42
46
|
__decorate([
|
|
43
47
|
NumberProperty({ nullable: true }),
|
|
44
48
|
__metadata("design:type", Object)
|
|
45
|
-
],
|
|
49
|
+
], DocumentPropertyValue.prototype, "decimal", void 0);
|
|
46
50
|
__decorate([
|
|
47
51
|
BooleanProperty({ nullable: true }),
|
|
48
52
|
__metadata("design:type", Object)
|
|
49
|
-
],
|
|
53
|
+
], DocumentPropertyValue.prototype, "boolean", void 0);
|
|
50
54
|
__decorate([
|
|
51
55
|
NumericDate({ nullable: true }),
|
|
52
56
|
__metadata("design:type", Object)
|
|
53
|
-
],
|
|
54
|
-
|
|
57
|
+
], DocumentPropertyValue.prototype, "date", void 0);
|
|
58
|
+
DocumentPropertyValue = __decorate([
|
|
55
59
|
DocumentManagementTable(),
|
|
60
|
+
Unique(['documentId', 'propertyId']),
|
|
56
61
|
Check('only_one_value', (table) => eq(numNonNulls(table.text, table.integer, table.decimal, table.boolean, table.date), sql.raw('1')))
|
|
57
|
-
], DocumentPropertyValueBase);
|
|
58
|
-
export { DocumentPropertyValueBase };
|
|
59
|
-
let DocumentPropertyValue = class DocumentPropertyValue extends DocumentPropertyValueBase {
|
|
60
|
-
documentId;
|
|
61
|
-
};
|
|
62
|
-
__decorate([
|
|
63
|
-
Uuid(),
|
|
64
|
-
References(() => Document),
|
|
65
|
-
__metadata("design:type", String)
|
|
66
|
-
], DocumentPropertyValue.prototype, "documentId", void 0);
|
|
67
|
-
DocumentPropertyValue = __decorate([
|
|
68
|
-
Unique(['documentId', 'propertyId'])
|
|
69
62
|
], DocumentPropertyValue);
|
|
70
63
|
export { DocumentPropertyValue };
|
|
71
|
-
let DocumentRequestFilePropertyValue = class DocumentRequestFilePropertyValue extends DocumentPropertyValueBase {
|
|
72
|
-
requestFileId;
|
|
73
|
-
};
|
|
74
|
-
__decorate([
|
|
75
|
-
Uuid(),
|
|
76
|
-
References(() => DocumentRequestFile),
|
|
77
|
-
__metadata("design:type", String)
|
|
78
|
-
], DocumentRequestFilePropertyValue.prototype, "requestFileId", void 0);
|
|
79
|
-
DocumentRequestFilePropertyValue = __decorate([
|
|
80
|
-
Unique(['requestFileId', 'propertyId'], { naming: 'abbreviated-table' })
|
|
81
|
-
], DocumentRequestFilePropertyValue);
|
|
82
|
-
export { DocumentRequestFilePropertyValue };
|
|
83
|
-
let DocumentRequestAssignmentTaskPropertyValue = class DocumentRequestAssignmentTaskPropertyValue extends DocumentPropertyValueBase {
|
|
84
|
-
requestAssignmentTaskId;
|
|
85
|
-
};
|
|
86
|
-
__decorate([
|
|
87
|
-
Uuid(),
|
|
88
|
-
References(() => DocumentRequestAssignmentTask),
|
|
89
|
-
__metadata("design:type", String)
|
|
90
|
-
], DocumentRequestAssignmentTaskPropertyValue.prototype, "requestAssignmentTaskId", void 0);
|
|
91
|
-
DocumentRequestAssignmentTaskPropertyValue = __decorate([
|
|
92
|
-
Unique(['requestAssignmentTaskId', 'propertyId'], { naming: 'abbreviated-table' })
|
|
93
|
-
], DocumentRequestAssignmentTaskPropertyValue);
|
|
94
|
-
export { DocumentRequestAssignmentTaskPropertyValue };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type EnumType } from '../../enumeration/enumeration.js';
|
|
2
2
|
import { Entity } from '../../orm/entity.js';
|
|
3
|
+
import { type Enum } from '../../orm/types.js';
|
|
3
4
|
export declare const DocumentPropertyDataType: {
|
|
4
5
|
readonly Text: "text";
|
|
5
6
|
readonly Integer: "integer";
|
|
@@ -11,5 +12,5 @@ export type DocumentPropertyDataType = EnumType<typeof DocumentPropertyDataType>
|
|
|
11
12
|
export declare class DocumentProperty extends Entity {
|
|
12
13
|
static readonly entityName: 'DocumentProperty';
|
|
13
14
|
label: string;
|
|
14
|
-
dataType: DocumentPropertyDataType
|
|
15
|
+
dataType: Enum<DocumentPropertyDataType>;
|
|
15
16
|
}
|
|
@@ -17,7 +17,7 @@ export const DocumentPropertyDataType = defineEnum('DocumentPropertyDataType', {
|
|
|
17
17
|
Integer: 'integer',
|
|
18
18
|
Decimal: 'decimal',
|
|
19
19
|
Boolean: 'boolean',
|
|
20
|
-
Date: 'date'
|
|
20
|
+
Date: 'date',
|
|
21
21
|
});
|
|
22
22
|
let DocumentProperty = class DocumentProperty extends Entity {
|
|
23
23
|
label;
|
|
@@ -30,7 +30,7 @@ __decorate([
|
|
|
30
30
|
], DocumentProperty.prototype, "label", void 0);
|
|
31
31
|
__decorate([
|
|
32
32
|
Enumeration(DocumentPropertyDataType),
|
|
33
|
-
__metadata("design:type",
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
34
|
], DocumentProperty.prototype, "dataType", void 0);
|
|
35
35
|
DocumentProperty = __decorate([
|
|
36
36
|
DocumentManagementTable()
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { References } from '../../orm/decorators.js';
|
|
11
|
+
import { Entity } from '../../orm/entity.js';
|
|
12
|
+
import { Unique, Uuid } from '../../orm/types.js';
|
|
13
|
+
import { DocumentManagementTable } from './document-management-table.js';
|
|
14
|
+
import { DocumentRequest } from './document-request.model.js';
|
|
15
|
+
import { Document } from './document.model.js';
|
|
16
|
+
let DocumentRequestSubmission = class DocumentRequestSubmission extends Entity {
|
|
17
|
+
requestId;
|
|
18
|
+
documentId;
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
Uuid(),
|
|
22
|
+
References(() => DocumentRequest),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], DocumentRequestSubmission.prototype, "requestId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
Uuid(),
|
|
27
|
+
References(() => Document),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], DocumentRequestSubmission.prototype, "documentId", void 0);
|
|
30
|
+
DocumentRequestSubmission = __decorate([
|
|
31
|
+
DocumentManagementTable(),
|
|
32
|
+
Unique(['requestId', 'documentId'])
|
|
33
|
+
], DocumentRequestSubmission);
|
|
34
|
+
export { DocumentRequestSubmission };
|