@tstdl/base 0.92.125 → 0.92.126
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/document-management/api/document-management.api.d.ts +1 -1
- package/document-management/api/document-management.api.js +1 -1
- package/document-management/index.d.ts +1 -0
- package/document-management/index.js +1 -0
- package/document-management/server/services/document-category-type.service.d.ts +2 -2
- package/document-management/server/services/document-category-type.service.js +1 -1
- package/document-management/server/services/document-management-ai.service.d.ts +1 -1
- package/document-management/server/services/document-management.service.d.ts +1 -1
- package/document-management/server/services/document-property.service.d.ts +2 -3
- package/document-management/server/services/document-property.service.js +1 -2
- package/document-management/server/services/document-request.service.d.ts +1 -1
- package/document-management/server/services/document.service.d.ts +1 -1
- package/document-management/{models/service-models → service-models}/categories-and-types.view-model.d.ts +1 -2
- package/document-management/{models/service-models → service-models}/categories-and-types.view-model.js +1 -1
- package/document-management/{models/service-models → service-models}/document-folders.view-model.js +1 -1
- package/document-management/{models/service-models → service-models}/document-management.view-model.d.ts +1 -10
- package/document-management/{models/service-models → service-models}/document-management.view-model.js +2 -11
- package/document-management/{models/service-models → service-models}/document-requests-template.view-model.d.ts +1 -2
- package/document-management/{models/service-models → service-models}/document-requests-template.view-model.js +2 -3
- package/document-management/service-models/document.service-model.d.ts +253 -0
- package/document-management/{models/service-models → service-models}/document.service-model.js +3 -15
- package/document-management/{models/service-models → service-models}/enriched/enriched-document-assignment.view.d.ts +2 -2
- package/document-management/{models/service-models → service-models}/enriched/enriched-document-category.view.d.ts +2 -2
- package/document-management/{models/service-models → service-models}/enriched/enriched-document-category.view.js +1 -1
- package/document-management/{models/service-models → service-models}/enriched/enriched-document-collection.view.d.ts +1 -1
- package/document-management/{models/service-models → service-models}/enriched/enriched-document-collection.view.js +1 -1
- package/document-management/{models/service-models → service-models}/enriched/enriched-document-file.view.d.ts +2 -2
- package/document-management/{models/service-models → service-models}/enriched/enriched-document-management-data.view.d.ts +3 -3
- package/document-management/{models/service-models → service-models}/enriched/enriched-document-management-data.view.js +5 -5
- package/document-management/{models/service-models → service-models}/enriched/enriched-document-request.view.d.ts +2 -2
- package/document-management/{models/service-models → service-models}/enriched/enriched-document-request.view.js +2 -2
- package/document-management/{models/service-models → service-models}/enriched/enriched-document-type.view.d.ts +2 -2
- package/document-management/{models/service-models → service-models}/enriched/enriched-document.view.d.ts +2 -4
- package/document-management/{models/service-models → service-models}/enriched/enriched-document.view.js +2 -2
- package/document-management/{models/service-models → service-models}/enriched/enriched.js +2 -2
- package/document-management/{models/service-models → service-models}/normalized-requests-template-data.model.d.ts +2 -2
- package/document-management/{models/service-models → service-models}/normalized-requests-template-data.model.js +1 -1
- package/document-management/{models/service-models → service-models}/stats.view-model.js +1 -1
- package/package.json +1 -1
- package/document-management/models/service-models/document.service-model.d.ts +0 -253
- /package/document-management/{models/service-models → service-models}/document-folders.view-model.d.ts +0 -0
- /package/document-management/{models/service-models → service-models}/enriched/enriched-document-assignment.view.js +0 -0
- /package/document-management/{models/service-models → service-models}/enriched/enriched-document-file.view.js +0 -0
- /package/document-management/{models/service-models → service-models}/enriched/enriched-document-type.view.js +0 -0
- /package/document-management/{models/service-models → service-models}/enriched/enriched.d.ts +0 -0
- /package/document-management/{models/service-models → service-models}/enriched/index.d.ts +0 -0
- /package/document-management/{models/service-models → service-models}/enriched/index.js +0 -0
- /package/document-management/{models/service-models → service-models}/index.d.ts +0 -0
- /package/document-management/{models/service-models → service-models}/index.js +0 -0
- /package/document-management/{models/service-models → service-models}/stats.view-model.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Document, DocumentCategory, DocumentCollection, DocumentRequest, DocumentRequestsTemplate, DocumentRequestTemplate, DocumentType } from '../models/index.js';
|
|
2
|
-
import { DocumentCategoryView, DocumentManagementData, DocumentRequestsTemplateData } from '../
|
|
2
|
+
import { DocumentCategoryView, DocumentManagementData, DocumentRequestsTemplateData } from '../service-models/index.js';
|
|
3
3
|
export type DocumentManagementApiDefinition = typeof documentManagementApiDefinition;
|
|
4
4
|
export declare const documentManagementApiDefinition: {
|
|
5
5
|
resource: string;
|
|
@@ -10,7 +10,7 @@ import { ReplaceClass } from '../../injector/decorators.js';
|
|
|
10
10
|
import { array, boolean, literal, nullable, object, optional, string } from '../../schema/index.js';
|
|
11
11
|
import { megabyte } from '../../utils/units.js';
|
|
12
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 '../
|
|
13
|
+
import { addOrArchiveDocumentToOrFromCollectionParametersSchema, applyDocumentRequestsTemplateParametersSchema, createCollectionParametersSchema, createDocumentCategoryParametersSchema, createDocumentParametersSchema, createDocumentRequestParametersSchema, createDocumentRequestsTemplateParametersSchema, createDocumentRequestTemplateParametersSchema, createDocumentTypeParametersSchema, deleteDocumentRequestParametersSchema, deleteDocumentRequestsTemplateParametersSchema, deleteDocumentRequestTemplateParametersSchema, DocumentCategoryView, DocumentManagementData, DocumentRequestsTemplateData, loadDataParametersSchema, updateDocumentParametersSchema, updateDocumentRequestParametersSchema, updateDocumentRequestsTemplateParametersSchema, updateDocumentRequestTemplateParametersSchema } from '../service-models/index.js';
|
|
14
14
|
export const documentManagementApiDefinition = defineApi({
|
|
15
15
|
resource: 'document-management',
|
|
16
16
|
endpoints: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DocumentCategory, DocumentType } from '../../../document-management/models/index.js';
|
|
2
|
-
import type { DocumentCategoryView } from '../../../document-management/models/service-models/index.js';
|
|
3
1
|
import { Transactional } from '../../../orm/server/index.js';
|
|
2
|
+
import { DocumentCategory, DocumentType } from '../../models/index.js';
|
|
3
|
+
import type { DocumentCategoryView } from '../../service-models/index.js';
|
|
4
4
|
export declare const enumTypeKey = "enum-type";
|
|
5
5
|
export declare class DocumentCategoryTypeService extends Transactional {
|
|
6
6
|
#private;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var _a;
|
|
2
|
-
import { DocumentCategory, DocumentType } from '../../../document-management/models/index.js';
|
|
3
2
|
import { inject } from '../../../injector/inject.js';
|
|
4
3
|
import { Logger } from '../../../logger/logger.js';
|
|
5
4
|
import { Transactional } from '../../../orm/server/index.js';
|
|
6
5
|
import { injectRepository } from '../../../orm/server/repository.js';
|
|
7
6
|
import { groupToMap } from '../../../utils/iterable-helpers/group-to-map.js';
|
|
8
7
|
import { isUndefined } from '../../../utils/type-guards.js';
|
|
8
|
+
import { DocumentCategory, DocumentType } from '../../models/index.js';
|
|
9
9
|
export const enumTypeKey = 'enum-type';
|
|
10
10
|
export class DocumentCategoryTypeService extends Transactional {
|
|
11
11
|
#documentCategoryRepository = injectRepository(DocumentCategory);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DocumentPropertyDataType } from '
|
|
1
|
+
import type { DocumentPropertyDataType } from '../../models/index.js';
|
|
2
2
|
type DocumentInformationExtractionPropertyResult = {
|
|
3
3
|
propertyId: string;
|
|
4
4
|
dataType: DocumentPropertyDataType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { DocumentManagementData, DocumentRequestsTemplateData } from '../../../document-management/models/service-models/index.js';
|
|
2
1
|
import { Transactional } from '../../../orm/server/index.js';
|
|
3
2
|
import type { Record } from '../../../types.js';
|
|
4
3
|
import { DocumentCategory, DocumentType } from '../../models/index.js';
|
|
4
|
+
import type { DocumentManagementData, DocumentRequestsTemplateData } from '../../service-models/index.js';
|
|
5
5
|
export declare class DocumentManagementService extends Transactional {
|
|
6
6
|
#private;
|
|
7
7
|
loadData(collectionIds: string[]): Promise<DocumentManagementData>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { DocumentPropertyDataType } from '../../../document-management/models/index.js';
|
|
2
|
-
import type { DocumentPropertyValueView, SetDocumentPropertyParameters } from '../../../document-management/models/service-models/index.js';
|
|
3
1
|
import { Transactional } from '../../../orm/server/index.js';
|
|
4
2
|
import type { OneOrMany } from '../../../types.js';
|
|
5
|
-
import { Document, DocumentProperty } from '../../models/index.js';
|
|
3
|
+
import { Document, DocumentProperty, DocumentPropertyDataType } from '../../models/index.js';
|
|
4
|
+
import type { DocumentPropertyValueView, SetDocumentPropertyParameters } from '../../service-models/index.js';
|
|
6
5
|
export declare class DocumentPropertyService extends Transactional {
|
|
7
6
|
#private;
|
|
8
7
|
readonly repository: import("../../../orm/server/repository.js").EntityRepository<Document>;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { and, isNotNull as drizzleIsNotNull, eq, inArray } from 'drizzle-orm';
|
|
2
|
-
import { DocumentPropertyDataType, DocumentPropertyValue, DocumentTypeProperty } from '../../../document-management/models/index.js';
|
|
3
2
|
import { BadRequestError } from '../../../errors/bad-request.error.js';
|
|
4
3
|
import { coalesce, getEntityMap, toJsonb } from '../../../orm/index.js';
|
|
5
4
|
import { Transactional } from '../../../orm/server/index.js';
|
|
6
5
|
import { injectRepository } from '../../../orm/server/repository.js';
|
|
7
6
|
import { toArray } from '../../../utils/array/index.js';
|
|
8
7
|
import { assertBooleanPass, assertDefinedPass, assertNumberPass, assertStringPass, isBoolean, isNotNull, isNull, isNumber, isString } from '../../../utils/type-guards.js';
|
|
9
|
-
import { Document, DocumentProperty } from '../../models/index.js';
|
|
8
|
+
import { Document, DocumentProperty, DocumentPropertyDataType, DocumentPropertyValue, DocumentTypeProperty } from '../../models/index.js';
|
|
10
9
|
import { document, documentProperty, documentPropertyValue, documentType, documentTypeProperty } from '../schemas.js';
|
|
11
10
|
const documentPropertyValueValidators = {
|
|
12
11
|
[DocumentPropertyDataType.Text]: (value) => isString(value) || isNull(value),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RequestStats } from '../../../document-management/
|
|
1
|
+
import type { RequestStats } from '../../../document-management/service-models/index.js';
|
|
2
2
|
import { Transactional } from '../../../orm/server/index.js';
|
|
3
3
|
import type { OneOrMany } from '../../../types.js';
|
|
4
4
|
import { DocumentRequest, DocumentRequestTemplate, DocumentRequestsTemplate } from '../../models/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type UpdatableDocumentProperties } from '../../../document-management/models/index.js';
|
|
2
|
-
import type { CreateDocumentParameters, SetDocumentPropertyParameters } from '../../../document-management/
|
|
2
|
+
import type { CreateDocumentParameters, SetDocumentPropertyParameters } from '../../../document-management/service-models/index.js';
|
|
3
3
|
import { Transactional } from '../../../orm/server/index.js';
|
|
4
4
|
import { Document } from '../../models/index.js';
|
|
5
5
|
export declare class DocumentService extends Transactional {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DocumentCategory } from '../
|
|
2
|
-
import type { DocumentType } from '../document-type.model.js';
|
|
1
|
+
import { DocumentCategory, type DocumentType } from '../models/index.js';
|
|
3
2
|
export declare class DocumentCategoryView extends DocumentCategory {
|
|
4
3
|
children: DocumentCategoryView[];
|
|
5
4
|
types: DocumentType[];
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import { DocumentCategory } from '../
|
|
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';
|
|
1
|
+
import { Document, DocumentCategory, DocumentCollection, DocumentCollectionAssignment, DocumentFile, DocumentPropertyDataType, DocumentRequest, DocumentType, DocumentValidationExecution, DocumentWorkflow } from '../models/index.js';
|
|
11
2
|
export declare class DocumentCollectionView extends DocumentCollection {
|
|
12
3
|
name: string;
|
|
13
4
|
group: string | null;
|
|
@@ -7,17 +7,8 @@ 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 { Array, Enumeration, Property, StringProperty, Union } from '
|
|
11
|
-
import { DocumentCategory } from '../
|
|
12
|
-
import { DocumentCollectionAssignment } from '../document-collection-assignment.model.js';
|
|
13
|
-
import { DocumentCollection } from '../document-collection.model.js';
|
|
14
|
-
import { DocumentFile } from '../document-file.model.js';
|
|
15
|
-
import { DocumentPropertyDataType } from '../document-property.model.js';
|
|
16
|
-
import { DocumentRequest } from '../document-request.model.js';
|
|
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
|
-
import { Document } from '../document.model.js';
|
|
10
|
+
import { Array, Enumeration, Property, StringProperty, Union } from '../../schema/index.js';
|
|
11
|
+
import { Document, DocumentCategory, DocumentCollection, DocumentCollectionAssignment, DocumentFile, DocumentPropertyDataType, DocumentRequest, DocumentType, DocumentValidationExecution, DocumentWorkflow } from '../models/index.js';
|
|
21
12
|
export class DocumentCollectionView extends DocumentCollection {
|
|
22
13
|
name;
|
|
23
14
|
group;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DocumentRequestTemplate } from '../
|
|
2
|
-
import { DocumentRequestsTemplate } from '../document-requests-template.js';
|
|
1
|
+
import { DocumentRequestsTemplate, DocumentRequestTemplate } from '../models/index.js';
|
|
3
2
|
export declare class DocumentRequestsTemplateView extends DocumentRequestsTemplate {
|
|
4
3
|
requestTemplates: DocumentRequestTemplate[];
|
|
5
4
|
}
|
|
@@ -7,9 +7,8 @@ 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 { Array } from '
|
|
11
|
-
import { DocumentRequestTemplate } from '../
|
|
12
|
-
import { DocumentRequestsTemplate } from '../document-requests-template.js';
|
|
10
|
+
import { Array } from '../../schema/index.js';
|
|
11
|
+
import { DocumentRequestsTemplate, DocumentRequestTemplate } from '../models/index.js';
|
|
13
12
|
export class DocumentRequestsTemplateView extends DocumentRequestsTemplate {
|
|
14
13
|
requestTemplates;
|
|
15
14
|
}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { type SchemaOutput } from '../../schema/index.js';
|
|
2
|
+
export declare const metadataParameterSchema: import("../../schema/index.js").OptionalSchema<Partial<{
|
|
3
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
4
|
+
}>>;
|
|
5
|
+
export declare const metadataParameterObjectSchema: import("../../schema/index.js").ObjectSchema<{
|
|
6
|
+
metadata?: Partial<{
|
|
7
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
8
|
+
}> | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const setDocumentPropertyParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
11
|
+
propertyId: import("../../orm/schemas/uuid.js").Uuid;
|
|
12
|
+
value: string | number | boolean | null;
|
|
13
|
+
metadata?: Partial<{
|
|
14
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
15
|
+
}> | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const createDocumentParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
18
|
+
date: import("../../orm/schemas/numeric-date.js").NumericDate | null;
|
|
19
|
+
summary: string | null;
|
|
20
|
+
title: string | null;
|
|
21
|
+
typeId: import("../../orm/schemas/uuid.js").Uuid | null;
|
|
22
|
+
subtitle: string | null;
|
|
23
|
+
tags: string[] | null;
|
|
24
|
+
comment: string | null;
|
|
25
|
+
approval: import("../models/document.model.js").DocumentApproval;
|
|
26
|
+
createUserId: import("../../orm/schemas/uuid.js").Uuid | null;
|
|
27
|
+
originalFileName: string | null;
|
|
28
|
+
assignment: {
|
|
29
|
+
collections: string | string[];
|
|
30
|
+
} | {
|
|
31
|
+
request: string;
|
|
32
|
+
} | {
|
|
33
|
+
automatic: {
|
|
34
|
+
target: "request" | "collection";
|
|
35
|
+
scope: string | string[];
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
properties?: {
|
|
39
|
+
propertyId: import("../../orm/schemas/uuid.js").Uuid;
|
|
40
|
+
value: string | number | boolean | null;
|
|
41
|
+
metadata?: Partial<{
|
|
42
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
43
|
+
}> | undefined;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
metadata?: Partial<{
|
|
46
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
47
|
+
}> | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
export declare const updateDocumentParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
50
|
+
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
51
|
+
date?: import("../../orm/types.js").NumericDate | null | undefined;
|
|
52
|
+
summary?: string | null | undefined;
|
|
53
|
+
title?: string | null | undefined;
|
|
54
|
+
typeId?: import("../../orm/types.js").Uuid | null | undefined;
|
|
55
|
+
subtitle?: string | null | undefined;
|
|
56
|
+
tags?: string[] | null | undefined;
|
|
57
|
+
comment?: string | null | undefined;
|
|
58
|
+
fileId?: import("../../orm/types.js").Uuid | undefined;
|
|
59
|
+
pages?: number | null | undefined;
|
|
60
|
+
approval?: import("../models/document.model.js").DocumentApproval | undefined;
|
|
61
|
+
createUserId?: import("../../orm/types.js").Uuid | null | undefined;
|
|
62
|
+
properties?: {
|
|
63
|
+
propertyId: import("../../orm/schemas/uuid.js").Uuid;
|
|
64
|
+
value: string | number | boolean | null;
|
|
65
|
+
metadata?: Partial<{
|
|
66
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
67
|
+
}> | undefined;
|
|
68
|
+
}[] | undefined;
|
|
69
|
+
metadata?: Partial<{
|
|
70
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
71
|
+
}> | undefined;
|
|
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
|
+
}>;
|
|
87
|
+
export declare const createDocumentRequestsTemplateParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
88
|
+
description: string | null;
|
|
89
|
+
label: string;
|
|
90
|
+
metadata?: Partial<{
|
|
91
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
92
|
+
}> | undefined;
|
|
93
|
+
}>;
|
|
94
|
+
export declare const updateDocumentRequestsTemplateParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
95
|
+
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
96
|
+
description?: string | null | undefined;
|
|
97
|
+
label?: string | undefined;
|
|
98
|
+
metadata?: Partial<{
|
|
99
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
100
|
+
}> | undefined;
|
|
101
|
+
}>;
|
|
102
|
+
export declare const applyDocumentRequestsTemplateParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
103
|
+
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
104
|
+
collectionIds: string[];
|
|
105
|
+
metadata?: Partial<{
|
|
106
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
107
|
+
}> | undefined;
|
|
108
|
+
}>;
|
|
109
|
+
export declare const deleteDocumentRequestsTemplateParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
110
|
+
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
111
|
+
metadata?: Partial<{
|
|
112
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
113
|
+
}> | undefined;
|
|
114
|
+
}>;
|
|
115
|
+
export declare const createDocumentRequestTemplateParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
116
|
+
typeId: import("../../orm/schemas/uuid.js").Uuid;
|
|
117
|
+
comment: string | null;
|
|
118
|
+
requestsTemplateId: import("../../orm/schemas/uuid.js").Uuid;
|
|
119
|
+
metadata?: Partial<{
|
|
120
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
121
|
+
}> | undefined;
|
|
122
|
+
}>;
|
|
123
|
+
export declare const updateDocumentRequestTemplateParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
124
|
+
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
125
|
+
typeId?: import("../../orm/types.js").Uuid | undefined;
|
|
126
|
+
comment?: string | null | undefined;
|
|
127
|
+
metadata?: Partial<{
|
|
128
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
129
|
+
}> | undefined;
|
|
130
|
+
}>;
|
|
131
|
+
export declare const deleteDocumentRequestTemplateParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
132
|
+
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
133
|
+
metadata?: Partial<{
|
|
134
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
135
|
+
}> | undefined;
|
|
136
|
+
}>;
|
|
137
|
+
export declare const createDocumentRequestParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
138
|
+
typeId: import("../../orm/schemas/uuid.js").Uuid | null;
|
|
139
|
+
comment: string | null;
|
|
140
|
+
collectionIds: string[];
|
|
141
|
+
metadata?: Partial<{
|
|
142
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
143
|
+
}> | undefined;
|
|
144
|
+
}>;
|
|
145
|
+
export declare const updateDocumentRequestParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
146
|
+
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
147
|
+
typeId?: import("../../orm/types.js").Uuid | null | undefined;
|
|
148
|
+
comment?: string | null | undefined;
|
|
149
|
+
metadata?: Partial<{
|
|
150
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
151
|
+
}> | undefined;
|
|
152
|
+
}>;
|
|
153
|
+
export declare const deleteDocumentRequestParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
154
|
+
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
155
|
+
metadata?: Partial<{
|
|
156
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
157
|
+
}> | undefined;
|
|
158
|
+
}>;
|
|
159
|
+
export declare const loadDataParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
160
|
+
collectionIds: string | string[];
|
|
161
|
+
}>;
|
|
162
|
+
export declare const createCollectionParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
163
|
+
parentId: import("../../orm/schemas/uuid.js").Uuid | null;
|
|
164
|
+
metadata?: Partial<{
|
|
165
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
166
|
+
}> | undefined;
|
|
167
|
+
}>;
|
|
168
|
+
export declare const setDocumentPropertiesParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
169
|
+
properties: {
|
|
170
|
+
propertyId: import("../../orm/schemas/uuid.js").Uuid;
|
|
171
|
+
value: string | number | boolean | null;
|
|
172
|
+
metadata?: Partial<{
|
|
173
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
174
|
+
}> | undefined;
|
|
175
|
+
}[];
|
|
176
|
+
documentId: string;
|
|
177
|
+
}>;
|
|
178
|
+
export declare const createDocumentCategoryParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
179
|
+
label: string;
|
|
180
|
+
parentId: import("../../orm/schemas/uuid.js").Uuid | null;
|
|
181
|
+
metadata?: Partial<{
|
|
182
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
183
|
+
}> | undefined;
|
|
184
|
+
}>;
|
|
185
|
+
export declare const createDocumentTypeParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
186
|
+
label: string;
|
|
187
|
+
categoryId: import("../../orm/schemas/uuid.js").Uuid;
|
|
188
|
+
metadata?: Partial<{
|
|
189
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
190
|
+
}> | undefined;
|
|
191
|
+
}>;
|
|
192
|
+
export declare const approveDocumentRequestParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
193
|
+
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
194
|
+
comment: string | null;
|
|
195
|
+
documentMetadata?: Partial<{
|
|
196
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
197
|
+
}> | undefined;
|
|
198
|
+
requestMetadata?: Partial<{
|
|
199
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
200
|
+
}> | undefined;
|
|
201
|
+
}>;
|
|
202
|
+
export declare const rejectDocumentRequestParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
203
|
+
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
204
|
+
comment: string | null;
|
|
205
|
+
metadata?: Partial<{
|
|
206
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
207
|
+
}> | undefined;
|
|
208
|
+
}>;
|
|
209
|
+
export declare const createDocumentPropertyParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
210
|
+
label: string;
|
|
211
|
+
dataType: import("../../orm/types.js").Enum<import("../models/document-property.model.js").DocumentPropertyDataType>;
|
|
212
|
+
metadata?: Partial<{
|
|
213
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
214
|
+
}> | undefined;
|
|
215
|
+
}>;
|
|
216
|
+
export declare const assignPropertyToTypeParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
217
|
+
typeId: import("../../orm/schemas/uuid.js").Uuid;
|
|
218
|
+
propertyId: import("../../orm/schemas/uuid.js").Uuid;
|
|
219
|
+
metadata?: Partial<{
|
|
220
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
221
|
+
}> | undefined;
|
|
222
|
+
}>;
|
|
223
|
+
export declare const addOrArchiveDocumentToOrFromCollectionParametersSchema: import("../../schema/index.js").ObjectSchema<{
|
|
224
|
+
documentId: import("../../orm/schemas/uuid.js").Uuid;
|
|
225
|
+
collectionId: import("../../orm/schemas/uuid.js").Uuid;
|
|
226
|
+
metadata?: Partial<{
|
|
227
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
228
|
+
}> | undefined;
|
|
229
|
+
}>;
|
|
230
|
+
export type MetadataParameter = SchemaOutput<typeof metadataParameterObjectSchema>;
|
|
231
|
+
export type LoadDataParameters = SchemaOutput<typeof loadDataParametersSchema>;
|
|
232
|
+
export type CreateCollectionParameters = SchemaOutput<typeof createCollectionParametersSchema>;
|
|
233
|
+
export type CreateDocumentParameters = SchemaOutput<typeof createDocumentParametersSchema>;
|
|
234
|
+
export type ApproveDocumentRequestParameters = SchemaOutput<typeof approveDocumentRequestParametersSchema>;
|
|
235
|
+
export type RejectDocumentRequestParameters = SchemaOutput<typeof rejectDocumentRequestParametersSchema>;
|
|
236
|
+
export type CreateDocumentCategoryParameters = SchemaOutput<typeof createDocumentCategoryParametersSchema>;
|
|
237
|
+
export type CreateDocumentTypeParameters = SchemaOutput<typeof createDocumentTypeParametersSchema>;
|
|
238
|
+
export type CreateDocumentRequestParameters = SchemaOutput<typeof createDocumentRequestParametersSchema>;
|
|
239
|
+
export type CreateDocumentRequestsTemplateParameters = SchemaOutput<typeof createDocumentRequestsTemplateParametersSchema>;
|
|
240
|
+
export type UpdateDocumentRequestsTemplateParameters = SchemaOutput<typeof updateDocumentRequestsTemplateParametersSchema>;
|
|
241
|
+
export type ApplyDocumentRequestsTemplateParameters = SchemaOutput<typeof applyDocumentRequestsTemplateParametersSchema>;
|
|
242
|
+
export type DeleteDocumentRequestsTemplateParameters = SchemaOutput<typeof deleteDocumentRequestsTemplateParametersSchema>;
|
|
243
|
+
export type CreateDocumentRequestTemplateParameters = SchemaOutput<typeof createDocumentRequestTemplateParametersSchema>;
|
|
244
|
+
export type UpdateDocumentRequestTemplateParameters = SchemaOutput<typeof updateDocumentRequestTemplateParametersSchema>;
|
|
245
|
+
export type DeleteDocumentRequestTemplateParameters = SchemaOutput<typeof deleteDocumentRequestTemplateParametersSchema>;
|
|
246
|
+
export type CreateDocumentPropertyParameters = SchemaOutput<typeof createDocumentPropertyParametersSchema>;
|
|
247
|
+
export type AssignPropertyToTypeParameters = SchemaOutput<typeof assignPropertyToTypeParametersSchema>;
|
|
248
|
+
export type SetDocumentPropertyParameters = SchemaOutput<typeof setDocumentPropertyParametersSchema>;
|
|
249
|
+
export type SetDocumentPropertiesParameters = SchemaOutput<typeof setDocumentPropertiesParametersSchema>;
|
|
250
|
+
export type AddOrArchiveDocumentToOrFromCollectionParameters = SchemaOutput<typeof addOrArchiveDocumentToOrFromCollectionParametersSchema>;
|
|
251
|
+
export type UpdateDocumentParameters = SchemaOutput<typeof updateDocumentParametersSchema>;
|
|
252
|
+
export type UpdateDocumentRequestParameters = SchemaOutput<typeof updateDocumentRequestParametersSchema>;
|
|
253
|
+
export type DeleteDocumentRequestParameters = SchemaOutput<typeof deleteDocumentRequestParametersSchema>;
|
package/document-management/{models/service-models → service-models}/document.service-model.js
RENAMED
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
import { EntityMetadata } from '
|
|
2
|
-
import { array, assign, boolean, enumeration, never, nullable, number, object, omit, oneOrMany, optional, partial, pick, string, union } from '
|
|
3
|
-
import { DocumentAssignmentTarget } from '../
|
|
4
|
-
import { DocumentCategory } from '../document-category.model.js';
|
|
5
|
-
import { DocumentCollectionAssignment } from '../document-collection-assignment.model.js';
|
|
6
|
-
import { DocumentCollection } from '../document-collection.model.js';
|
|
7
|
-
import { DocumentFile } from '../document-file.model.js';
|
|
8
|
-
import { DocumentPropertyValue } from '../document-property-value.model.js';
|
|
9
|
-
import { DocumentProperty } from '../document-property.model.js';
|
|
10
|
-
import { DocumentRequestTemplate } from '../document-request-template.js';
|
|
11
|
-
import { DocumentRequest } from '../document-request.model.js';
|
|
12
|
-
import { DocumentRequestsTemplate } from '../document-requests-template.js';
|
|
13
|
-
import { DocumentTypeProperty } from '../document-type-property.model.js';
|
|
14
|
-
import { DocumentType } from '../document-type.model.js';
|
|
15
|
-
import { Document } from '../document.model.js';
|
|
1
|
+
import { EntityMetadata } from '../../orm/entity.js';
|
|
2
|
+
import { array, assign, boolean, enumeration, never, nullable, number, object, omit, oneOrMany, optional, partial, pick, string, union } from '../../schema/index.js';
|
|
3
|
+
import { Document, DocumentAssignmentTarget, DocumentCategory, DocumentCollection, DocumentCollectionAssignment, DocumentFile, DocumentProperty, DocumentPropertyValue, DocumentRequest, DocumentRequestsTemplate, DocumentRequestTemplate, DocumentType, DocumentTypeProperty } from '../models/index.js';
|
|
16
4
|
export const metadataParameterSchema = optional(partial(pick(EntityMetadata, 'attributes')));
|
|
17
5
|
export const metadataParameterObjectSchema = object({ metadata: metadataParameterSchema });
|
|
18
6
|
export const setDocumentPropertyParametersSchema = assign(pick(DocumentPropertyValue, ['propertyId']), object({ value: union(string(), number(), boolean(), nullable(never())) }), metadataParameterObjectSchema);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TypedOmit } from '
|
|
2
|
-
import type { DocumentCollectionAssignment } from '../../
|
|
1
|
+
import type { TypedOmit } from '../../../types.js';
|
|
2
|
+
import type { DocumentCollectionAssignment } from '../../models/index.js';
|
|
3
3
|
import type { EnrichedDocumentCollection } from './enriched-document-collection.view.js';
|
|
4
4
|
import type { EnrichedDocument } from './enriched-document.view.js';
|
|
5
5
|
export declare class EnrichedDocumentAssignment implements TypedOmit<DocumentCollectionAssignment, 'collectionId' | 'documentId' | 'metadata'> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { DocumentCategory } from '../../
|
|
2
|
-
import { EnrichedDocumentType } from './enriched-document-type.view.js';
|
|
1
|
+
import type { DocumentCategory } from '../../models/index.js';
|
|
3
2
|
import type { EnrichedDocumentManagementData } from './enriched-document-management-data.view.js';
|
|
3
|
+
import { EnrichedDocumentType } from './enriched-document-type.view.js';
|
|
4
4
|
export declare class EnrichedDocumentCategory implements Pick<DocumentCategory, 'id' | 'label'> {
|
|
5
5
|
#private;
|
|
6
6
|
readonly id: string;
|
|
@@ -7,7 +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 { Memoize } from '
|
|
10
|
+
import { Memoize } from '../../../utils/function/memoize.js';
|
|
11
11
|
import { EnrichedDocumentType } from './enriched-document-type.view.js';
|
|
12
12
|
export class EnrichedDocumentCategory {
|
|
13
13
|
#data;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TypedOmit } from '
|
|
1
|
+
import type { TypedOmit } from '../../../types.js';
|
|
2
2
|
import type { DocumentCollectionView } from '../document-management.view-model.js';
|
|
3
3
|
import type { EnrichedDocumentManagementData } from './enriched-document-management-data.view.js';
|
|
4
4
|
import type { EnrichedDocumentRequest } from './enriched-document-request.view.js';
|
|
@@ -7,7 +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 { Memoize } from '
|
|
10
|
+
import { Memoize } from '../../../utils/function/memoize.js';
|
|
11
11
|
import { calculateRequestsStats, mergeRequestsStats } from './enriched.js';
|
|
12
12
|
export class EnrichedDocumentCollection {
|
|
13
13
|
#data;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TypedOmit } from '
|
|
2
|
-
import type { DocumentFile } from '../../
|
|
1
|
+
import type { TypedOmit } from '../../../types.js';
|
|
2
|
+
import type { DocumentFile } from '../../models/index.js';
|
|
3
3
|
import type { EnrichedDocument } from './enriched-document.view.js';
|
|
4
4
|
export declare class EnrichedDocumentFile implements TypedOmit<DocumentFile, 'metadata'> {
|
|
5
5
|
readonly id: string;
|
|
@@ -17,9 +17,9 @@ export declare class EnrichedDocumentManagementData {
|
|
|
17
17
|
collections: Map<string, import("../document-management.view-model.js").DocumentCollectionView>;
|
|
18
18
|
documents: Map<string, import("../document-management.view-model.js").DocumentView>;
|
|
19
19
|
requests: Map<string, import("../document-management.view-model.js").DocumentRequestView>;
|
|
20
|
-
files: Map<string, import("../../
|
|
21
|
-
categories: Map<string, import("../../
|
|
22
|
-
types: Map<string, import("../../
|
|
20
|
+
files: Map<string, import("../../index.js").DocumentFile>;
|
|
21
|
+
categories: Map<string, import("../../index.js").DocumentCategory>;
|
|
22
|
+
types: Map<string, import("../../index.js").DocumentType>;
|
|
23
23
|
};
|
|
24
24
|
readonly maps: {
|
|
25
25
|
collections: Map<string, EnrichedDocumentCollection>;
|
|
@@ -7,11 +7,11 @@ 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 { getEntityMap } from '
|
|
11
|
-
import { Memoize } from '
|
|
12
|
-
import { group } from '
|
|
13
|
-
import { lazyObject } from '
|
|
14
|
-
import { isNull } from '
|
|
10
|
+
import { getEntityMap } from '../../../orm/utils.js';
|
|
11
|
+
import { Memoize } from '../../../utils/function/memoize.js';
|
|
12
|
+
import { group } from '../../../utils/iterable-helpers/group.js';
|
|
13
|
+
import { lazyObject } from '../../../utils/object/lazy-property.js';
|
|
14
|
+
import { isNull } from '../../../utils/type-guards.js';
|
|
15
15
|
import { EnrichedDocumentCategory } from './enriched-document-category.view.js';
|
|
16
16
|
import { EnrichedDocumentCollection } from './enriched-document-collection.view.js';
|
|
17
17
|
import { EnrichedDocumentRequest } from './enriched-document-request.view.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TypedOmit } from '
|
|
2
|
-
import type { DocumentRequestState } from '../../
|
|
1
|
+
import type { TypedOmit } from '../../../types.js';
|
|
2
|
+
import type { DocumentRequestState } from '../../models/index.js';
|
|
3
3
|
import type { DocumentRequestView } from '../document-management.view-model.js';
|
|
4
4
|
import type { EnrichedDocumentCollection } from './enriched-document-collection.view.js';
|
|
5
5
|
import type { EnrichedDocumentManagementData } from './enriched-document-management-data.view.js';
|
|
@@ -7,8 +7,8 @@ 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 { Memoize } from '
|
|
11
|
-
import { assertDefinedPass } from '
|
|
10
|
+
import { Memoize } from '../../../utils/function/memoize.js';
|
|
11
|
+
import { assertDefinedPass } from '../../../utils/type-guards.js';
|
|
12
12
|
export class EnrichedDocumentRequest {
|
|
13
13
|
#data;
|
|
14
14
|
#documentRequestView;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TypedOmit } from '
|
|
2
|
-
import type { DocumentType } from '../../
|
|
1
|
+
import type { TypedOmit } from '../../../types.js';
|
|
2
|
+
import type { DocumentType } from '../../models/index.js';
|
|
3
3
|
import type { EnrichedDocumentCategory } from './enriched-document-category.view.js';
|
|
4
4
|
export declare class EnrichedDocumentType implements TypedOmit<DocumentType, 'categoryId' | 'metadata'> {
|
|
5
5
|
readonly id: string;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type { TypedOmit } from '
|
|
2
|
-
import type { DocumentValidationExecution } from '../../
|
|
3
|
-
import type { DocumentWorkflow } from '../../document-workflow.model.js';
|
|
4
|
-
import type { DocumentApproval } from '../../document.model.js';
|
|
1
|
+
import type { TypedOmit } from '../../../types.js';
|
|
2
|
+
import type { DocumentApproval, DocumentValidationExecution, DocumentWorkflow } from '../../models/index.js';
|
|
5
3
|
import type { DocumentPropertyValueView, DocumentView } from '../document-management.view-model.js';
|
|
6
4
|
import { EnrichedDocumentAssignment } from './enriched-document-assignment.view.js';
|
|
7
5
|
import { EnrichedDocumentFile } from './enriched-document-file.view.js';
|
|
@@ -7,8 +7,8 @@ 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 { Memoize } from '
|
|
11
|
-
import { assertDefinedPass, isNull } from '
|
|
10
|
+
import { Memoize } from '../../../utils/function/memoize.js';
|
|
11
|
+
import { assertDefinedPass, isNull } from '../../../utils/type-guards.js';
|
|
12
12
|
import { EnrichedDocumentAssignment } from './enriched-document-assignment.view.js';
|
|
13
13
|
import { EnrichedDocumentFile } from './enriched-document-file.view.js';
|
|
14
14
|
export class EnrichedDocument {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { match, P } from 'ts-pattern';
|
|
2
|
-
import { reduce } from '
|
|
3
|
-
import { _throw } from '
|
|
2
|
+
import { reduce } from '../../../utils/iterable-helpers/index.js';
|
|
3
|
+
import { _throw } from '../../../utils/throw.js';
|
|
4
4
|
import { EnrichedDocumentManagementData } from './enriched-document-management-data.view.js';
|
|
5
5
|
export function toEnrichedDocumentManagementData(data) {
|
|
6
6
|
return new EnrichedDocumentManagementData(data);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TypedOmit } from '
|
|
2
|
-
import type { DocumentRequestTemplate } from '../
|
|
1
|
+
import type { TypedOmit } from '../../types.js';
|
|
2
|
+
import type { DocumentRequestTemplate } from '../models/index.js';
|
|
3
3
|
import type { DocumentRequestsTemplateData, DocumentRequestsTemplateView } from './document-requests-template.view-model.js';
|
|
4
4
|
import type { EnrichedDocumentCategory } from './enriched/enriched-document-category.view.js';
|
|
5
5
|
import type { EnrichedDocumentManagementData } from './enriched/enriched-document-management-data.view.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { assertDefinedPass } from '
|
|
1
|
+
import { assertDefinedPass } from '../../utils/type-guards.js';
|
|
2
2
|
export function toEnrichedDocumentRequestsTemplateData(templateData, documentManagementData) {
|
|
3
3
|
return {
|
|
4
4
|
templates: templateData.templates.map((template) => ({
|
|
@@ -7,7 +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 { NumberProperty } from '
|
|
10
|
+
import { NumberProperty } from '../../schema/index.js';
|
|
11
11
|
export class RequestStats {
|
|
12
12
|
total;
|
|
13
13
|
documentPending;
|
package/package.json
CHANGED
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
import { type SchemaOutput } from '../../../schema/index.js';
|
|
2
|
-
export declare const metadataParameterSchema: import("../../../schema/index.js").OptionalSchema<Partial<{
|
|
3
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
4
|
-
}>>;
|
|
5
|
-
export declare const metadataParameterObjectSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
6
|
-
metadata?: Partial<{
|
|
7
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
8
|
-
}> | undefined;
|
|
9
|
-
}>;
|
|
10
|
-
export declare const setDocumentPropertyParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
11
|
-
propertyId: import("../../../orm/schemas/uuid.js").Uuid;
|
|
12
|
-
value: string | number | boolean | null;
|
|
13
|
-
metadata?: Partial<{
|
|
14
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
15
|
-
}> | undefined;
|
|
16
|
-
}>;
|
|
17
|
-
export declare const createDocumentParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
18
|
-
date: import("../../../orm/schemas/numeric-date.js").NumericDate | null;
|
|
19
|
-
summary: string | null;
|
|
20
|
-
title: string | null;
|
|
21
|
-
typeId: import("../../../orm/schemas/uuid.js").Uuid | null;
|
|
22
|
-
subtitle: string | null;
|
|
23
|
-
tags: string[] | null;
|
|
24
|
-
comment: string | null;
|
|
25
|
-
approval: import("../document.model.js").DocumentApproval;
|
|
26
|
-
createUserId: import("../../../orm/schemas/uuid.js").Uuid | null;
|
|
27
|
-
originalFileName: string | null;
|
|
28
|
-
assignment: {
|
|
29
|
-
collections: string | string[];
|
|
30
|
-
} | {
|
|
31
|
-
request: string;
|
|
32
|
-
} | {
|
|
33
|
-
automatic: {
|
|
34
|
-
target: "request" | "collection";
|
|
35
|
-
scope: string | string[];
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
properties?: {
|
|
39
|
-
propertyId: import("../../../orm/schemas/uuid.js").Uuid;
|
|
40
|
-
value: string | number | boolean | null;
|
|
41
|
-
metadata?: Partial<{
|
|
42
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
43
|
-
}> | undefined;
|
|
44
|
-
}[] | undefined;
|
|
45
|
-
metadata?: Partial<{
|
|
46
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
47
|
-
}> | undefined;
|
|
48
|
-
}>;
|
|
49
|
-
export declare const updateDocumentParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
50
|
-
id: import("../../../orm/types.js").IsPrimaryKey<import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/uuid.js").Uuid>>;
|
|
51
|
-
date?: import("../../../orm/types.js").NumericDate | null | undefined;
|
|
52
|
-
summary?: string | null | undefined;
|
|
53
|
-
title?: string | null | undefined;
|
|
54
|
-
typeId?: import("../../../orm/types.js").Uuid | null | undefined;
|
|
55
|
-
subtitle?: string | null | undefined;
|
|
56
|
-
tags?: string[] | null | undefined;
|
|
57
|
-
comment?: string | null | undefined;
|
|
58
|
-
fileId?: import("../../../orm/types.js").Uuid | undefined;
|
|
59
|
-
pages?: number | null | undefined;
|
|
60
|
-
approval?: import("../document.model.js").DocumentApproval | undefined;
|
|
61
|
-
createUserId?: import("../../../orm/types.js").Uuid | null | undefined;
|
|
62
|
-
properties?: {
|
|
63
|
-
propertyId: import("../../../orm/schemas/uuid.js").Uuid;
|
|
64
|
-
value: string | number | boolean | null;
|
|
65
|
-
metadata?: Partial<{
|
|
66
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
67
|
-
}> | undefined;
|
|
68
|
-
}[] | undefined;
|
|
69
|
-
metadata?: Partial<{
|
|
70
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
71
|
-
}> | undefined;
|
|
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
|
-
}>;
|
|
87
|
-
export declare const createDocumentRequestsTemplateParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
88
|
-
description: string | null;
|
|
89
|
-
label: string;
|
|
90
|
-
metadata?: Partial<{
|
|
91
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
92
|
-
}> | undefined;
|
|
93
|
-
}>;
|
|
94
|
-
export declare const updateDocumentRequestsTemplateParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
95
|
-
id: import("../../../orm/types.js").IsPrimaryKey<import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/uuid.js").Uuid>>;
|
|
96
|
-
description?: string | null | undefined;
|
|
97
|
-
label?: string | undefined;
|
|
98
|
-
metadata?: Partial<{
|
|
99
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
100
|
-
}> | undefined;
|
|
101
|
-
}>;
|
|
102
|
-
export declare const applyDocumentRequestsTemplateParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
103
|
-
id: import("../../../orm/types.js").IsPrimaryKey<import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/uuid.js").Uuid>>;
|
|
104
|
-
collectionIds: string[];
|
|
105
|
-
metadata?: Partial<{
|
|
106
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
107
|
-
}> | undefined;
|
|
108
|
-
}>;
|
|
109
|
-
export declare const deleteDocumentRequestsTemplateParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
110
|
-
id: import("../../../orm/types.js").IsPrimaryKey<import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/uuid.js").Uuid>>;
|
|
111
|
-
metadata?: Partial<{
|
|
112
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
113
|
-
}> | undefined;
|
|
114
|
-
}>;
|
|
115
|
-
export declare const createDocumentRequestTemplateParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
116
|
-
typeId: import("../../../orm/schemas/uuid.js").Uuid;
|
|
117
|
-
comment: string | null;
|
|
118
|
-
requestsTemplateId: import("../../../orm/schemas/uuid.js").Uuid;
|
|
119
|
-
metadata?: Partial<{
|
|
120
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
121
|
-
}> | undefined;
|
|
122
|
-
}>;
|
|
123
|
-
export declare const updateDocumentRequestTemplateParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
124
|
-
id: import("../../../orm/types.js").IsPrimaryKey<import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/uuid.js").Uuid>>;
|
|
125
|
-
typeId?: import("../../../orm/types.js").Uuid | undefined;
|
|
126
|
-
comment?: string | null | undefined;
|
|
127
|
-
metadata?: Partial<{
|
|
128
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
129
|
-
}> | undefined;
|
|
130
|
-
}>;
|
|
131
|
-
export declare const deleteDocumentRequestTemplateParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
132
|
-
id: import("../../../orm/types.js").IsPrimaryKey<import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/uuid.js").Uuid>>;
|
|
133
|
-
metadata?: Partial<{
|
|
134
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
135
|
-
}> | undefined;
|
|
136
|
-
}>;
|
|
137
|
-
export declare const createDocumentRequestParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
138
|
-
typeId: import("../../../orm/schemas/uuid.js").Uuid | null;
|
|
139
|
-
comment: string | null;
|
|
140
|
-
collectionIds: string[];
|
|
141
|
-
metadata?: Partial<{
|
|
142
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
143
|
-
}> | undefined;
|
|
144
|
-
}>;
|
|
145
|
-
export declare const updateDocumentRequestParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
146
|
-
id: import("../../../orm/types.js").IsPrimaryKey<import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/uuid.js").Uuid>>;
|
|
147
|
-
typeId?: import("../../../orm/types.js").Uuid | null | undefined;
|
|
148
|
-
comment?: string | null | undefined;
|
|
149
|
-
metadata?: Partial<{
|
|
150
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
151
|
-
}> | undefined;
|
|
152
|
-
}>;
|
|
153
|
-
export declare const deleteDocumentRequestParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
154
|
-
id: import("../../../orm/types.js").IsPrimaryKey<import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/uuid.js").Uuid>>;
|
|
155
|
-
metadata?: Partial<{
|
|
156
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
157
|
-
}> | undefined;
|
|
158
|
-
}>;
|
|
159
|
-
export declare const loadDataParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
160
|
-
collectionIds: string | string[];
|
|
161
|
-
}>;
|
|
162
|
-
export declare const createCollectionParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
163
|
-
parentId: import("../../../orm/schemas/uuid.js").Uuid | null;
|
|
164
|
-
metadata?: Partial<{
|
|
165
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
166
|
-
}> | undefined;
|
|
167
|
-
}>;
|
|
168
|
-
export declare const setDocumentPropertiesParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
169
|
-
properties: {
|
|
170
|
-
propertyId: import("../../../orm/schemas/uuid.js").Uuid;
|
|
171
|
-
value: string | number | boolean | null;
|
|
172
|
-
metadata?: Partial<{
|
|
173
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
174
|
-
}> | undefined;
|
|
175
|
-
}[];
|
|
176
|
-
documentId: string;
|
|
177
|
-
}>;
|
|
178
|
-
export declare const createDocumentCategoryParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
179
|
-
label: string;
|
|
180
|
-
parentId: import("../../../orm/schemas/uuid.js").Uuid | null;
|
|
181
|
-
metadata?: Partial<{
|
|
182
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
183
|
-
}> | undefined;
|
|
184
|
-
}>;
|
|
185
|
-
export declare const createDocumentTypeParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
186
|
-
label: string;
|
|
187
|
-
categoryId: import("../../../orm/schemas/uuid.js").Uuid;
|
|
188
|
-
metadata?: Partial<{
|
|
189
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
190
|
-
}> | undefined;
|
|
191
|
-
}>;
|
|
192
|
-
export declare const approveDocumentRequestParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
193
|
-
id: import("../../../orm/types.js").IsPrimaryKey<import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/uuid.js").Uuid>>;
|
|
194
|
-
comment: string | null;
|
|
195
|
-
documentMetadata?: Partial<{
|
|
196
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
197
|
-
}> | undefined;
|
|
198
|
-
requestMetadata?: Partial<{
|
|
199
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
200
|
-
}> | undefined;
|
|
201
|
-
}>;
|
|
202
|
-
export declare const rejectDocumentRequestParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
203
|
-
id: import("../../../orm/types.js").IsPrimaryKey<import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/uuid.js").Uuid>>;
|
|
204
|
-
comment: string | null;
|
|
205
|
-
metadata?: Partial<{
|
|
206
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
207
|
-
}> | undefined;
|
|
208
|
-
}>;
|
|
209
|
-
export declare const createDocumentPropertyParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
210
|
-
label: string;
|
|
211
|
-
dataType: import("../../../orm/types.js").Enum<import("../document-property.model.js").DocumentPropertyDataType>;
|
|
212
|
-
metadata?: Partial<{
|
|
213
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
214
|
-
}> | undefined;
|
|
215
|
-
}>;
|
|
216
|
-
export declare const assignPropertyToTypeParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
217
|
-
typeId: import("../../../orm/schemas/uuid.js").Uuid;
|
|
218
|
-
propertyId: import("../../../orm/schemas/uuid.js").Uuid;
|
|
219
|
-
metadata?: Partial<{
|
|
220
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
221
|
-
}> | undefined;
|
|
222
|
-
}>;
|
|
223
|
-
export declare const addOrArchiveDocumentToOrFromCollectionParametersSchema: import("../../../schema/index.js").ObjectSchema<{
|
|
224
|
-
documentId: import("../../../orm/schemas/uuid.js").Uuid;
|
|
225
|
-
collectionId: import("../../../orm/schemas/uuid.js").Uuid;
|
|
226
|
-
metadata?: Partial<{
|
|
227
|
-
attributes: import("../../../orm/types.js").HasDefault<import("../../../orm/schemas/json.js").Json<import("../../../orm/entity.js").EntityMetadataAttributes>>;
|
|
228
|
-
}> | undefined;
|
|
229
|
-
}>;
|
|
230
|
-
export type MetadataParameter = SchemaOutput<typeof metadataParameterObjectSchema>;
|
|
231
|
-
export type LoadDataParameters = SchemaOutput<typeof loadDataParametersSchema>;
|
|
232
|
-
export type CreateCollectionParameters = SchemaOutput<typeof createCollectionParametersSchema>;
|
|
233
|
-
export type CreateDocumentParameters = SchemaOutput<typeof createDocumentParametersSchema>;
|
|
234
|
-
export type ApproveDocumentRequestParameters = SchemaOutput<typeof approveDocumentRequestParametersSchema>;
|
|
235
|
-
export type RejectDocumentRequestParameters = SchemaOutput<typeof rejectDocumentRequestParametersSchema>;
|
|
236
|
-
export type CreateDocumentCategoryParameters = SchemaOutput<typeof createDocumentCategoryParametersSchema>;
|
|
237
|
-
export type CreateDocumentTypeParameters = SchemaOutput<typeof createDocumentTypeParametersSchema>;
|
|
238
|
-
export type CreateDocumentRequestParameters = SchemaOutput<typeof createDocumentRequestParametersSchema>;
|
|
239
|
-
export type CreateDocumentRequestsTemplateParameters = SchemaOutput<typeof createDocumentRequestsTemplateParametersSchema>;
|
|
240
|
-
export type UpdateDocumentRequestsTemplateParameters = SchemaOutput<typeof updateDocumentRequestsTemplateParametersSchema>;
|
|
241
|
-
export type ApplyDocumentRequestsTemplateParameters = SchemaOutput<typeof applyDocumentRequestsTemplateParametersSchema>;
|
|
242
|
-
export type DeleteDocumentRequestsTemplateParameters = SchemaOutput<typeof deleteDocumentRequestsTemplateParametersSchema>;
|
|
243
|
-
export type CreateDocumentRequestTemplateParameters = SchemaOutput<typeof createDocumentRequestTemplateParametersSchema>;
|
|
244
|
-
export type UpdateDocumentRequestTemplateParameters = SchemaOutput<typeof updateDocumentRequestTemplateParametersSchema>;
|
|
245
|
-
export type DeleteDocumentRequestTemplateParameters = SchemaOutput<typeof deleteDocumentRequestTemplateParametersSchema>;
|
|
246
|
-
export type CreateDocumentPropertyParameters = SchemaOutput<typeof createDocumentPropertyParametersSchema>;
|
|
247
|
-
export type AssignPropertyToTypeParameters = SchemaOutput<typeof assignPropertyToTypeParametersSchema>;
|
|
248
|
-
export type SetDocumentPropertyParameters = SchemaOutput<typeof setDocumentPropertyParametersSchema>;
|
|
249
|
-
export type SetDocumentPropertiesParameters = SchemaOutput<typeof setDocumentPropertiesParametersSchema>;
|
|
250
|
-
export type AddOrArchiveDocumentToOrFromCollectionParameters = SchemaOutput<typeof addOrArchiveDocumentToOrFromCollectionParametersSchema>;
|
|
251
|
-
export type UpdateDocumentParameters = SchemaOutput<typeof updateDocumentParametersSchema>;
|
|
252
|
-
export type UpdateDocumentRequestParameters = SchemaOutput<typeof updateDocumentRequestParametersSchema>;
|
|
253
|
-
export type DeleteDocumentRequestParameters = SchemaOutput<typeof deleteDocumentRequestParametersSchema>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/document-management/{models/service-models → service-models}/enriched/enriched.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|