@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DocumentCategory } from '../document-category.model.js';
|
|
2
|
-
import { DocumentType } from '../document-type.model.js';
|
|
3
|
-
export declare class
|
|
4
|
-
|
|
2
|
+
import type { DocumentType } from '../document-type.model.js';
|
|
3
|
+
export declare class DocumentCategoryView extends DocumentCategory {
|
|
4
|
+
children: DocumentCategoryView[];
|
|
5
5
|
types: DocumentType[];
|
|
6
6
|
}
|
|
@@ -1,24 +1,5 @@
|
|
|
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 { Array } from '../../../schema/index.js';
|
|
11
1
|
import { DocumentCategory } from '../document-category.model.js';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
categories;
|
|
2
|
+
export class DocumentCategoryView extends DocumentCategory {
|
|
3
|
+
children;
|
|
15
4
|
types;
|
|
16
5
|
}
|
|
17
|
-
__decorate([
|
|
18
|
-
Array(DocumentCategory),
|
|
19
|
-
__metadata("design:type", Array)
|
|
20
|
-
], CategoryAndTypesView.prototype, "categories", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Array(DocumentType),
|
|
23
|
-
__metadata("design:type", Array)
|
|
24
|
-
], CategoryAndTypesView.prototype, "types", void 0);
|
|
@@ -1,22 +1,15 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { EnrichedDocumentManagementData } from './enriched/enriched-document-management-data.view.js';
|
|
2
|
+
import type { EnrichedDocument } from './enriched/enriched-document.view.js';
|
|
3
3
|
export type DocumentManagementFolder = {
|
|
4
4
|
id: string;
|
|
5
|
+
type: 'collection' | 'category' | 'virtual';
|
|
5
6
|
label: string;
|
|
6
7
|
subFolders: DocumentManagementFolder[];
|
|
7
|
-
documents:
|
|
8
|
-
};
|
|
9
|
-
export type NormalizedDocumentManagementFolder = {
|
|
10
|
-
id: string;
|
|
11
|
-
label: string;
|
|
12
|
-
subFolders: NormalizedDocumentManagementFolder[];
|
|
13
|
-
documents: NormalizedDocumentView[];
|
|
8
|
+
documents: EnrichedDocument[];
|
|
14
9
|
};
|
|
15
10
|
export type GetDocumentManagementFoldersOptions = {
|
|
16
|
-
|
|
11
|
+
includeChildCategoryDocuments?: boolean;
|
|
17
12
|
includeAllFolder?: boolean;
|
|
18
13
|
};
|
|
19
|
-
export declare function getDocumentManagementFolders(data:
|
|
20
|
-
export declare function
|
|
21
|
-
export declare function toNormalizedDocumentManagementFolder(folder: DocumentManagementFolder, normalizedData: NormalizedDocumentManagementData): NormalizedDocumentManagementFolder;
|
|
22
|
-
export declare function getFlatFolders(folders: NormalizedDocumentManagementFolder[]): NormalizedDocumentManagementFolder[];
|
|
14
|
+
export declare function getDocumentManagementFolders(data: EnrichedDocumentManagementData, options?: GetDocumentManagementFoldersOptions): DocumentManagementFolder[];
|
|
15
|
+
export declare function getFlatFolders(folders: DocumentManagementFolder[]): DocumentManagementFolder[];
|
|
@@ -1,55 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { groupToSingleMap } from '../../../utils/iterable-helpers/group-to-single-map.js';
|
|
3
|
-
import { assertDefinedPass } from '../../../utils/type-guards.js';
|
|
1
|
+
import { isNotNull } from '../../../utils/type-guards.js';
|
|
4
2
|
export function getDocumentManagementFolders(data, options = {}) {
|
|
5
|
-
const categories = [...data.categories, { id: null, label: 'Sonstiges' }];
|
|
6
|
-
const typeMap = groupToSingleMap(data.types, (t) => t.id);
|
|
7
|
-
function getType(document) {
|
|
8
|
-
return typeMap.get(document.typeId) ?? null;
|
|
9
|
-
}
|
|
10
3
|
const allFolder = (options.includeAllFolder == true)
|
|
11
4
|
? []
|
|
12
5
|
: [{
|
|
13
6
|
id: 'all',
|
|
7
|
+
type: 'virtual',
|
|
14
8
|
label: 'Alle',
|
|
15
9
|
documents: data.documents,
|
|
16
|
-
subFolders: []
|
|
10
|
+
subFolders: [],
|
|
17
11
|
}];
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
})).filter((folder) => folder.documents.length > 0),
|
|
36
|
-
documents: categoryCollectionDocuments
|
|
37
|
-
};
|
|
38
|
-
}).filter((folder) => (folder.documents.length > 0) || (folder.subFolders.length > 0)),
|
|
39
|
-
documents: data.documents.filter((document) => (getType(document)?.categoryId ?? null) == category.id)
|
|
40
|
-
})).filter((folder) => (folder.documents.length > 0) || (folder.subFolders.length > 0));
|
|
41
|
-
return [...allFolder, ...categoryFolders];
|
|
42
|
-
}
|
|
43
|
-
export function toNormalizedDocumentManagementFolders(folders, normalizedData) {
|
|
44
|
-
return folders.map((folder) => toNormalizedDocumentManagementFolder(folder, normalizedData));
|
|
45
|
-
}
|
|
46
|
-
export function toNormalizedDocumentManagementFolder(folder, normalizedData) {
|
|
47
|
-
return {
|
|
48
|
-
id: folder.id,
|
|
49
|
-
label: folder.label,
|
|
50
|
-
subFolders: folder.subFolders.map((subFolder) => toNormalizedDocumentManagementFolder(subFolder, normalizedData)),
|
|
51
|
-
documents: folder.documents.map((document) => assertDefinedPass(normalizedData.documents.find((normalizedDocument) => normalizedDocument.id == document.id)))
|
|
52
|
-
};
|
|
12
|
+
function getCategoryFolder(category) {
|
|
13
|
+
const subFolders = category.children.map(getCategoryFolder).filter(isNotNull);
|
|
14
|
+
const documents = data.documents.filter((document) => document.type?.category.id == category.id);
|
|
15
|
+
const categoryFolder = {
|
|
16
|
+
id: category.id,
|
|
17
|
+
type: 'category',
|
|
18
|
+
label: category.label,
|
|
19
|
+
subFolders,
|
|
20
|
+
documents: (options.includeChildCategoryDocuments == true) ? [...documents, ...subFolders.flatMap((folder) => folder.documents)] : documents,
|
|
21
|
+
};
|
|
22
|
+
if ((categoryFolder.documents.length + categoryFolder.subFolders.length) == 0) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return categoryFolder;
|
|
26
|
+
}
|
|
27
|
+
const rootCategoryFolders = data.rootCategories.map(getCategoryFolder).filter(isNotNull);
|
|
28
|
+
return [...allFolder, ...rootCategoryFolders];
|
|
53
29
|
}
|
|
54
30
|
export function getFlatFolders(folders) {
|
|
55
31
|
return [...folders, ...folders.flatMap((folder) => getFlatFolders(folder.subFolders))];
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { DocumentCategory } from '../document-category.model.js';
|
|
2
|
+
import { DocumentCollectionAssignment } from '../document-collection-assignment.model.js';
|
|
3
|
+
import { DocumentCollection } from '../document-collection.model.js';
|
|
4
|
+
import { DocumentFile } from '../document-file.model.js';
|
|
5
|
+
import { DocumentPropertyDataType } from '../document-property.model.js';
|
|
6
|
+
import { DocumentRequest } from '../document-request.model.js';
|
|
7
|
+
import { DocumentType } from '../document-type.model.js';
|
|
8
|
+
import { DocumentValidationExecution } from '../document-validation-execution.model.js';
|
|
9
|
+
import { DocumentWorkflow } from '../document-workflow.model.js';
|
|
10
|
+
import { Document } from '../document.model.js';
|
|
11
|
+
export declare class DocumentCollectionView extends DocumentCollection {
|
|
12
|
+
name: string;
|
|
13
|
+
group: string | null;
|
|
14
|
+
}
|
|
15
|
+
export declare class DocumentPropertyValueView {
|
|
16
|
+
documentId: string;
|
|
17
|
+
propertyId: string;
|
|
18
|
+
label: string;
|
|
19
|
+
dataType: DocumentPropertyDataType;
|
|
20
|
+
value: string | number | boolean | null;
|
|
21
|
+
}
|
|
22
|
+
export declare class DocumentView extends Document {
|
|
23
|
+
collectionAssignments: DocumentCollectionAssignment[];
|
|
24
|
+
properties: DocumentPropertyValueView[];
|
|
25
|
+
/** available as long as the document is neither approved nor rejected */
|
|
26
|
+
currentWorkflow: DocumentWorkflow | null;
|
|
27
|
+
validations: DocumentValidationExecution[] | null;
|
|
28
|
+
}
|
|
29
|
+
export declare class DocumentRequestView extends DocumentRequest {
|
|
30
|
+
collectionIds: string[];
|
|
31
|
+
/** current approval-pending or approved document */
|
|
32
|
+
document: Document | null;
|
|
33
|
+
}
|
|
34
|
+
export declare class DocumentManagementData {
|
|
35
|
+
collections: DocumentCollectionView[];
|
|
36
|
+
documents: DocumentView[];
|
|
37
|
+
requests: DocumentRequestView[];
|
|
38
|
+
files: DocumentFile[];
|
|
39
|
+
categories: DocumentCategory[];
|
|
40
|
+
types: DocumentType[];
|
|
41
|
+
}
|
|
@@ -7,75 +7,92 @@ 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 {
|
|
11
|
-
import { Timestamp } from '../../../orm/types.js';
|
|
12
|
-
import { Array, Enumeration, StringProperty } from '../../../schema/index.js';
|
|
10
|
+
import { Array, Enumeration, Property, StringProperty, Union } from '../../../schema/index.js';
|
|
13
11
|
import { DocumentCategory } from '../document-category.model.js';
|
|
12
|
+
import { DocumentCollectionAssignment } from '../document-collection-assignment.model.js';
|
|
14
13
|
import { DocumentCollection } from '../document-collection.model.js';
|
|
15
14
|
import { DocumentFile } from '../document-file.model.js';
|
|
16
|
-
import {
|
|
17
|
-
import { DocumentRequestFile } from '../document-request-file.model.js';
|
|
15
|
+
import { DocumentPropertyDataType } from '../document-property.model.js';
|
|
18
16
|
import { DocumentRequest } from '../document-request.model.js';
|
|
19
17
|
import { DocumentType } from '../document-type.model.js';
|
|
18
|
+
import { DocumentValidationExecution } from '../document-validation-execution.model.js';
|
|
19
|
+
import { DocumentWorkflow } from '../document-workflow.model.js';
|
|
20
20
|
import { Document } from '../document.model.js';
|
|
21
|
-
export const ExtractionStatus = defineEnum('ExtractionStatus', {
|
|
22
|
-
Pending: 'pending',
|
|
23
|
-
Extracting: 'extracting',
|
|
24
|
-
Error: 'error'
|
|
25
|
-
});
|
|
26
21
|
export class DocumentCollectionView extends DocumentCollection {
|
|
27
22
|
name;
|
|
28
23
|
group;
|
|
29
24
|
}
|
|
30
25
|
__decorate([
|
|
31
26
|
StringProperty({ nullable: true }),
|
|
32
|
-
__metadata("design:type",
|
|
27
|
+
__metadata("design:type", String)
|
|
33
28
|
], DocumentCollectionView.prototype, "name", void 0);
|
|
34
29
|
__decorate([
|
|
35
30
|
StringProperty({ nullable: true }),
|
|
36
31
|
__metadata("design:type", Object)
|
|
37
32
|
], DocumentCollectionView.prototype, "group", void 0);
|
|
38
|
-
export class
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
export class DocumentPropertyValueView {
|
|
34
|
+
documentId;
|
|
35
|
+
propertyId;
|
|
36
|
+
label;
|
|
37
|
+
dataType;
|
|
38
|
+
value;
|
|
41
39
|
}
|
|
42
40
|
__decorate([
|
|
43
41
|
StringProperty(),
|
|
44
42
|
__metadata("design:type", String)
|
|
45
|
-
],
|
|
43
|
+
], DocumentPropertyValueView.prototype, "documentId", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
StringProperty(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], DocumentPropertyValueView.prototype, "propertyId", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
StringProperty(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], DocumentPropertyValueView.prototype, "label", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
Enumeration(DocumentPropertyDataType),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], DocumentPropertyValueView.prototype, "dataType", void 0);
|
|
46
56
|
__decorate([
|
|
47
|
-
|
|
57
|
+
Union(String, Number, Boolean, { nullable: true }),
|
|
48
58
|
__metadata("design:type", Object)
|
|
49
|
-
],
|
|
59
|
+
], DocumentPropertyValueView.prototype, "value", void 0);
|
|
50
60
|
export class DocumentView extends Document {
|
|
51
61
|
collectionAssignments;
|
|
52
62
|
properties;
|
|
53
|
-
|
|
63
|
+
/** available as long as the document is neither approved nor rejected */
|
|
64
|
+
currentWorkflow;
|
|
65
|
+
validations;
|
|
54
66
|
}
|
|
55
67
|
__decorate([
|
|
56
|
-
Array(
|
|
68
|
+
Array(DocumentCollectionAssignment),
|
|
57
69
|
__metadata("design:type", Array)
|
|
58
70
|
], DocumentView.prototype, "collectionAssignments", void 0);
|
|
59
71
|
__decorate([
|
|
60
|
-
Array(
|
|
72
|
+
Array(DocumentPropertyValueView),
|
|
61
73
|
__metadata("design:type", Array)
|
|
62
74
|
], DocumentView.prototype, "properties", void 0);
|
|
63
75
|
__decorate([
|
|
64
|
-
|
|
76
|
+
Property(DocumentWorkflow, { nullable: true }),
|
|
65
77
|
__metadata("design:type", Object)
|
|
66
|
-
], DocumentView.prototype, "
|
|
78
|
+
], DocumentView.prototype, "currentWorkflow", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
Array(DocumentValidationExecution, { nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], DocumentView.prototype, "validations", void 0);
|
|
67
83
|
export class DocumentRequestView extends DocumentRequest {
|
|
68
84
|
collectionIds;
|
|
69
|
-
|
|
85
|
+
/** current approval-pending or approved document */
|
|
86
|
+
document;
|
|
70
87
|
}
|
|
71
88
|
__decorate([
|
|
72
89
|
Array(String),
|
|
73
90
|
__metadata("design:type", Array)
|
|
74
91
|
], DocumentRequestView.prototype, "collectionIds", void 0);
|
|
75
92
|
__decorate([
|
|
76
|
-
|
|
77
|
-
__metadata("design:type",
|
|
78
|
-
], DocumentRequestView.prototype, "
|
|
93
|
+
Property(Document, { nullable: true }),
|
|
94
|
+
__metadata("design:type", Object)
|
|
95
|
+
], DocumentRequestView.prototype, "document", void 0);
|
|
79
96
|
export class DocumentManagementData {
|
|
80
97
|
collections;
|
|
81
98
|
documents;
|
|
@@ -9,7 +9,7 @@ export declare const metadataParameterObjectSchema: import("../../../schema/inde
|
|
|
9
9
|
}>;
|
|
10
10
|
export declare const setDocumentPropertyParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
11
11
|
propertyId: import("../../../orm/schemas/uuid.js").Uuid;
|
|
12
|
-
value:
|
|
12
|
+
value: string | number | boolean | null;
|
|
13
13
|
metadata?: Partial<{
|
|
14
14
|
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
15
15
|
}> | undefined;
|
|
@@ -18,16 +18,26 @@ export declare const createDocumentParametersSchema: import("../../../schema/ind
|
|
|
18
18
|
date: import("../../../orm/schemas/numeric-date.js").NumericDate | null;
|
|
19
19
|
summary: string | null;
|
|
20
20
|
title: string | null;
|
|
21
|
-
tags: string[] | null;
|
|
22
21
|
typeId: import("../../../orm/schemas/uuid.js").Uuid | null;
|
|
23
22
|
subtitle: string | null;
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
tags: string[] | null;
|
|
24
|
+
comment: string | null;
|
|
25
|
+
approval: import("../document.model.js").DocumentApproval;
|
|
26
|
+
createUserId: import("../../../orm/schemas/uuid.js").Uuid | null;
|
|
26
27
|
originalFileName: string | null;
|
|
27
|
-
|
|
28
|
+
assignment: {
|
|
29
|
+
collections: string | string[];
|
|
30
|
+
} | {
|
|
31
|
+
request: string;
|
|
32
|
+
} | {
|
|
33
|
+
automatic: {
|
|
34
|
+
target: "request" | "collection";
|
|
35
|
+
scope: string | string[];
|
|
36
|
+
};
|
|
37
|
+
};
|
|
28
38
|
properties?: {
|
|
29
39
|
propertyId: import("../../../orm/schemas/uuid.js").Uuid;
|
|
30
|
-
value:
|
|
40
|
+
value: string | number | boolean | null;
|
|
31
41
|
metadata?: Partial<{
|
|
32
42
|
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
33
43
|
}> | undefined;
|
|
@@ -41,15 +51,17 @@ export declare const updateDocumentParametersSchema: import("../../../schema/ind
|
|
|
41
51
|
date?: import("../../../orm/types.js").NumericDate | null | undefined;
|
|
42
52
|
summary?: string | null | undefined;
|
|
43
53
|
title?: string | null | undefined;
|
|
44
|
-
tags?: string[] | null | undefined;
|
|
45
|
-
fileId?: import("../../../orm/types.js").Uuid | undefined;
|
|
46
54
|
typeId?: import("../../../orm/types.js").Uuid | null | undefined;
|
|
47
55
|
subtitle?: string | null | undefined;
|
|
56
|
+
tags?: string[] | null | undefined;
|
|
57
|
+
comment?: string | null | undefined;
|
|
58
|
+
fileId?: import("../../../orm/types.js").Uuid | undefined;
|
|
48
59
|
pages?: number | null | undefined;
|
|
49
|
-
|
|
60
|
+
approval?: import("../document.model.js").DocumentApproval | undefined;
|
|
61
|
+
createUserId?: import("../../../orm/types.js").Uuid | null | undefined;
|
|
50
62
|
properties?: {
|
|
51
63
|
propertyId: import("../../../orm/schemas/uuid.js").Uuid;
|
|
52
|
-
value:
|
|
64
|
+
value: string | number | boolean | null;
|
|
53
65
|
metadata?: Partial<{
|
|
54
66
|
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
55
67
|
}> | undefined;
|
|
@@ -58,6 +70,20 @@ export declare const updateDocumentParametersSchema: import("../../../schema/ind
|
|
|
58
70
|
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
59
71
|
}> | undefined;
|
|
60
72
|
}>;
|
|
73
|
+
export declare const approveDocumentParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
74
|
+
id: import("../../../orm/types.js").IsPrimaryKey<import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/uuid.js").Uuid>>;
|
|
75
|
+
comment: string | null;
|
|
76
|
+
metadata?: Partial<{
|
|
77
|
+
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
78
|
+
}> | undefined;
|
|
79
|
+
}>;
|
|
80
|
+
export declare const rejectDocumentParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
81
|
+
id: import("../../../orm/types.js").IsPrimaryKey<import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/uuid.js").Uuid>>;
|
|
82
|
+
comment: string | null;
|
|
83
|
+
metadata?: Partial<{
|
|
84
|
+
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
85
|
+
}> | undefined;
|
|
86
|
+
}>;
|
|
61
87
|
export declare const createDocumentRequestsTemplateParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
62
88
|
description: string | null;
|
|
63
89
|
label: string;
|
|
@@ -87,8 +113,7 @@ export declare const deleteDocumentRequestsTemplateParametersSchema: import("../
|
|
|
87
113
|
}> | undefined;
|
|
88
114
|
}>;
|
|
89
115
|
export declare const createDocumentRequestTemplateParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
90
|
-
typeId: import("../../../orm/schemas/uuid.js").Uuid
|
|
91
|
-
requiredFilesCount: number;
|
|
116
|
+
typeId: import("../../../orm/schemas/uuid.js").Uuid;
|
|
92
117
|
comment: string | null;
|
|
93
118
|
requestsTemplateId: import("../../../orm/schemas/uuid.js").Uuid;
|
|
94
119
|
metadata?: Partial<{
|
|
@@ -97,8 +122,7 @@ export declare const createDocumentRequestTemplateParametersSchema: import("../.
|
|
|
97
122
|
}>;
|
|
98
123
|
export declare const updateDocumentRequestTemplateParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
99
124
|
id: import("../../../orm/types.js").IsPrimaryKey<import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/uuid.js").Uuid>>;
|
|
100
|
-
typeId?: import("../../../orm/types.js").Uuid |
|
|
101
|
-
requiredFilesCount?: number | undefined;
|
|
125
|
+
typeId?: import("../../../orm/types.js").Uuid | undefined;
|
|
102
126
|
comment?: string | null | undefined;
|
|
103
127
|
metadata?: Partial<{
|
|
104
128
|
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
@@ -112,7 +136,6 @@ export declare const deleteDocumentRequestTemplateParametersSchema: import("../.
|
|
|
112
136
|
}>;
|
|
113
137
|
export declare const createDocumentRequestParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
114
138
|
typeId: import("../../../orm/schemas/uuid.js").Uuid | null;
|
|
115
|
-
requiredFilesCount: number;
|
|
116
139
|
comment: string | null;
|
|
117
140
|
collectionIds: string[];
|
|
118
141
|
metadata?: Partial<{
|
|
@@ -122,9 +145,7 @@ export declare const createDocumentRequestParametersSchema: import("../../../sch
|
|
|
122
145
|
export declare const updateDocumentRequestParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
123
146
|
id: import("../../../orm/types.js").IsPrimaryKey<import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/uuid.js").Uuid>>;
|
|
124
147
|
typeId?: import("../../../orm/types.js").Uuid | null | undefined;
|
|
125
|
-
requiredFilesCount?: number | undefined;
|
|
126
148
|
comment?: string | null | undefined;
|
|
127
|
-
completed?: boolean | undefined;
|
|
128
149
|
metadata?: Partial<{
|
|
129
150
|
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
130
151
|
}> | undefined;
|
|
@@ -135,42 +156,11 @@ export declare const deleteDocumentRequestParametersSchema: import("../../../sch
|
|
|
135
156
|
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
136
157
|
}> | undefined;
|
|
137
158
|
}>;
|
|
138
|
-
export declare const updateDocumentRequestFileParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
139
|
-
id: import("../../../orm/types.js").IsPrimaryKey<import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/uuid.js").Uuid>>;
|
|
140
|
-
date?: import("../../../orm/types.js").NumericDate | null | undefined;
|
|
141
|
-
summary?: string | null | undefined;
|
|
142
|
-
title?: string | null | undefined;
|
|
143
|
-
tags?: string[] | null | undefined;
|
|
144
|
-
subtitle?: string | null | undefined;
|
|
145
|
-
pages?: number | null | undefined;
|
|
146
|
-
approvalComment?: string | null | undefined;
|
|
147
|
-
approvalTimestamp?: import("../../../orm/types.js").Timestamp | null | undefined;
|
|
148
|
-
metadata?: Partial<{
|
|
149
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
150
|
-
}> | undefined;
|
|
151
|
-
}>;
|
|
152
|
-
export declare const deleteDocumentRequestFileParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
153
|
-
id: import("../../../orm/types.js").IsPrimaryKey<import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/uuid.js").Uuid>>;
|
|
154
|
-
metadata?: Partial<{
|
|
155
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
156
|
-
}> | undefined;
|
|
157
|
-
}>;
|
|
158
|
-
export declare const loadDataCollectionMetadataParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
159
|
-
name?: string | null | undefined;
|
|
160
|
-
group?: string | null | undefined;
|
|
161
|
-
}>;
|
|
162
|
-
export declare const loadDataCollectionsMetadataParametersSchema: import("../../../schema/index.js").ObjectSchema<Partial<import("../../../schema/index.js").Record<string, {
|
|
163
|
-
name?: string | null | undefined;
|
|
164
|
-
group?: string | null | undefined;
|
|
165
|
-
}>>>;
|
|
166
159
|
export declare const loadDataParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
167
160
|
collectionIds: string | string[];
|
|
168
|
-
collectionsMetadata: Partial<import("../../../schema/index.js").Record<string, {
|
|
169
|
-
name?: string | null | undefined;
|
|
170
|
-
group?: string | null | undefined;
|
|
171
|
-
}>>;
|
|
172
161
|
}>;
|
|
173
162
|
export declare const createCollectionParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
163
|
+
parentId: import("../../../orm/schemas/uuid.js").Uuid | null;
|
|
174
164
|
metadata?: Partial<{
|
|
175
165
|
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
176
166
|
}> | undefined;
|
|
@@ -178,62 +168,47 @@ export declare const createCollectionParametersSchema: import("../../../schema/i
|
|
|
178
168
|
export declare const setDocumentPropertiesParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
179
169
|
properties: {
|
|
180
170
|
propertyId: import("../../../orm/schemas/uuid.js").Uuid;
|
|
181
|
-
value:
|
|
171
|
+
value: string | number | boolean | null;
|
|
182
172
|
metadata?: Partial<{
|
|
183
173
|
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
184
174
|
}> | undefined;
|
|
185
175
|
}[];
|
|
186
|
-
documentId
|
|
187
|
-
requestFileId?: string | undefined;
|
|
188
|
-
requestAssignmentTaskId?: string | undefined;
|
|
176
|
+
documentId: string;
|
|
189
177
|
}>;
|
|
190
178
|
export declare const createDocumentCategoryParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
191
179
|
label: string;
|
|
180
|
+
parentId: import("../../../orm/schemas/uuid.js").Uuid | null;
|
|
192
181
|
metadata?: Partial<{
|
|
193
182
|
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
194
183
|
}> | undefined;
|
|
195
184
|
}>;
|
|
196
185
|
export declare const createDocumentTypeParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
197
|
-
group: string | null;
|
|
198
186
|
label: string;
|
|
199
187
|
categoryId: import("../../../orm/schemas/uuid.js").Uuid;
|
|
200
188
|
metadata?: Partial<{
|
|
201
189
|
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
202
190
|
}> | undefined;
|
|
203
191
|
}>;
|
|
204
|
-
export declare const
|
|
205
|
-
requestId: string;
|
|
206
|
-
date: import("../../../orm/schemas/numeric-date.js").NumericDate | null;
|
|
207
|
-
summary: string | null;
|
|
208
|
-
title: string | null;
|
|
209
|
-
tags: string[] | null;
|
|
210
|
-
subtitle: string | null;
|
|
211
|
-
pages: number | null;
|
|
212
|
-
originalFileName: string | null;
|
|
213
|
-
metadata?: Partial<{
|
|
214
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
215
|
-
}> | undefined;
|
|
216
|
-
}>;
|
|
217
|
-
export declare const approveDocumentRequestFileParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
192
|
+
export declare const approveDocumentRequestParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
218
193
|
id: import("../../../orm/types.js").IsPrimaryKey<import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/uuid.js").Uuid>>;
|
|
219
|
-
|
|
194
|
+
comment: string | null;
|
|
220
195
|
documentMetadata?: Partial<{
|
|
221
196
|
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
222
197
|
}> | undefined;
|
|
223
|
-
|
|
198
|
+
requestMetadata?: Partial<{
|
|
224
199
|
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
225
200
|
}> | undefined;
|
|
226
201
|
}>;
|
|
227
|
-
export declare const
|
|
202
|
+
export declare const rejectDocumentRequestParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
228
203
|
id: import("../../../orm/types.js").IsPrimaryKey<import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/uuid.js").Uuid>>;
|
|
229
|
-
|
|
204
|
+
comment: string | null;
|
|
230
205
|
metadata?: Partial<{
|
|
231
206
|
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
232
207
|
}> | undefined;
|
|
233
208
|
}>;
|
|
234
209
|
export declare const createDocumentPropertyParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
235
210
|
label: string;
|
|
236
|
-
dataType: import("../document-property.model.js").DocumentPropertyDataType
|
|
211
|
+
dataType: import("../../../orm/types.js").Enum<import("../document-property.model.js").DocumentPropertyDataType>;
|
|
237
212
|
metadata?: Partial<{
|
|
238
213
|
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
239
214
|
}> | undefined;
|
|
@@ -246,23 +221,20 @@ export declare const assignPropertyToTypeParametersSchema: import("../../../sche
|
|
|
246
221
|
}> | undefined;
|
|
247
222
|
}>;
|
|
248
223
|
export declare const addOrArchiveDocumentToOrFromCollectionParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
249
|
-
collectionId: import("../../../orm/schemas/uuid.js").Uuid;
|
|
250
224
|
documentId: import("../../../orm/schemas/uuid.js").Uuid;
|
|
225
|
+
collectionId: import("../../../orm/schemas/uuid.js").Uuid;
|
|
251
226
|
metadata?: Partial<{
|
|
252
227
|
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
253
228
|
}> | undefined;
|
|
254
229
|
}>;
|
|
255
230
|
export type MetadataParameter = SchemaOutput<typeof metadataParameterObjectSchema>;
|
|
256
|
-
export type LoadDataCollectionMetadataParameters = SchemaOutput<typeof loadDataCollectionMetadataParametersSchema>;
|
|
257
|
-
export type LoadDataCollectionsMetadataParameters = SchemaOutput<typeof loadDataCollectionsMetadataParametersSchema>;
|
|
258
231
|
export type LoadDataParameters = SchemaOutput<typeof loadDataParametersSchema>;
|
|
259
232
|
export type CreateCollectionParameters = SchemaOutput<typeof createCollectionParametersSchema>;
|
|
260
233
|
export type CreateDocumentParameters = SchemaOutput<typeof createDocumentParametersSchema>;
|
|
261
|
-
export type
|
|
262
|
-
export type
|
|
234
|
+
export type ApproveDocumentRequestParameters = SchemaOutput<typeof approveDocumentRequestParametersSchema>;
|
|
235
|
+
export type RejectDocumentRequestParameters = SchemaOutput<typeof rejectDocumentRequestParametersSchema>;
|
|
263
236
|
export type CreateDocumentCategoryParameters = SchemaOutput<typeof createDocumentCategoryParametersSchema>;
|
|
264
237
|
export type CreateDocumentTypeParameters = SchemaOutput<typeof createDocumentTypeParametersSchema>;
|
|
265
|
-
export type CreateDocumentRequestFileParameters = SchemaOutput<typeof createDocumentRequestFileParametersSchema>;
|
|
266
238
|
export type CreateDocumentRequestParameters = SchemaOutput<typeof createDocumentRequestParametersSchema>;
|
|
267
239
|
export type CreateDocumentRequestsTemplateParameters = SchemaOutput<typeof createDocumentRequestsTemplateParametersSchema>;
|
|
268
240
|
export type UpdateDocumentRequestsTemplateParameters = SchemaOutput<typeof updateDocumentRequestsTemplateParametersSchema>;
|
|
@@ -279,5 +251,3 @@ export type AddOrArchiveDocumentToOrFromCollectionParameters = SchemaOutput<type
|
|
|
279
251
|
export type UpdateDocumentParameters = SchemaOutput<typeof updateDocumentParametersSchema>;
|
|
280
252
|
export type UpdateDocumentRequestParameters = SchemaOutput<typeof updateDocumentRequestParametersSchema>;
|
|
281
253
|
export type DeleteDocumentRequestParameters = SchemaOutput<typeof deleteDocumentRequestParametersSchema>;
|
|
282
|
-
export type UpdateDocumentRequestFileParameters = SchemaOutput<typeof updateDocumentRequestFileParametersSchema>;
|
|
283
|
-
export type DeleteDocumentRequestFileParameters = SchemaOutput<typeof deleteDocumentRequestFileParametersSchema>;
|