@tstdl/base 0.91.50 → 0.91.51
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/data-extracting.d.ts +1 -0
- package/ai/data-extracting.js +62 -0
- package/authentication/server/authentication.api-controller.js +4 -4
- package/cancellation/token.d.ts +1 -2
- package/cancellation/token.js +1 -1
- package/core.d.ts +1 -1
- package/core.js +1 -1
- package/document-management/api/document-management.api.d.ts +376 -0
- package/document-management/api/document-management.api.js +208 -0
- package/document-management/api/index.d.ts +1 -0
- package/document-management/api/index.js +1 -0
- package/document-management/drizzle/0000_wakeful_firebrand.sql +228 -0
- package/document-management/drizzle/meta/0000_snapshot.json +1538 -0
- package/document-management/drizzle/meta/_journal.json +13 -0
- package/document-management/drizzle.config.d.ts +2 -0
- package/document-management/drizzle.config.js +11 -0
- package/document-management/index.d.ts +2 -0
- package/document-management/index.js +2 -0
- package/document-management/localizations/english.d.ts +2 -0
- package/document-management/localizations/english.js +9 -0
- package/document-management/localizations/german.d.ts +2 -0
- package/document-management/localizations/german.js +9 -0
- package/document-management/localizations/index.d.ts +5 -0
- package/document-management/localizations/index.js +9 -0
- package/document-management/localizations/localization.d.ts +9 -0
- package/document-management/localizations/localization.js +2 -0
- package/document-management/models/document-category.model.d.ts +4 -0
- package/document-management/models/document-category.model.js +18 -0
- package/document-management/models/document-collection-document.model.d.ts +7 -0
- package/document-management/models/document-collection-document.model.js +33 -0
- package/document-management/models/document-collection.model.d.ts +3 -0
- package/document-management/models/document-collection.model.js +14 -0
- package/document-management/models/document-file.model.d.ts +7 -0
- package/document-management/models/document-file.model.js +33 -0
- package/document-management/models/document-property-value.model.d.ts +21 -0
- package/document-management/models/document-property-value.model.js +58 -0
- package/document-management/models/document-property.model.d.ts +11 -0
- package/document-management/models/document-property.model.js +30 -0
- package/document-management/models/document-request-collection.model.d.ts +6 -0
- package/document-management/models/document-request-collection.model.js +28 -0
- package/document-management/models/document-request-file.model.d.ts +11 -0
- package/document-management/models/document-request-file.model.js +56 -0
- package/document-management/models/document-request-template.d.ts +10 -0
- package/document-management/models/document-request-template.js +39 -0
- package/document-management/models/document-request.model.d.ts +9 -0
- package/document-management/models/document-request.model.js +37 -0
- package/document-management/models/document-requests-template.d.ts +5 -0
- package/document-management/models/document-requests-template.js +23 -0
- package/document-management/models/document-type-property.model.d.ts +6 -0
- package/document-management/models/document-type-property.model.js +28 -0
- package/document-management/models/document-type.model.d.ts +7 -0
- package/document-management/models/document-type.model.js +32 -0
- package/document-management/models/document.model.d.ts +9 -0
- package/document-management/models/document.model.js +44 -0
- package/document-management/models/index.d.ts +15 -0
- package/document-management/models/index.js +15 -0
- package/document-management/models/schemas.d.ts +33 -0
- package/document-management/models/schemas.js +34 -0
- package/document-management/models/service-models/categories-and-types.view-model.d.ts +6 -0
- package/document-management/models/service-models/categories-and-types.view-model.js +24 -0
- package/document-management/models/service-models/document-folders.view-model.d.ts +22 -0
- package/document-management/models/service-models/document-folders.view-model.js +56 -0
- package/document-management/models/service-models/document-requests-template.view-model.d.ts +8 -0
- package/document-management/models/service-models/document-requests-template.view-model.js +26 -0
- package/document-management/models/service-models/document.service-model.d.ts +262 -0
- package/document-management/models/service-models/document.service-model.js +50 -0
- package/document-management/models/service-models/document.view-model.d.ts +33 -0
- package/document-management/models/service-models/document.view-model.js +99 -0
- package/document-management/models/service-models/index.d.ts +8 -0
- package/document-management/models/service-models/index.js +8 -0
- package/document-management/models/service-models/normalized-document-collection-view.model.d.ts +73 -0
- package/document-management/models/service-models/normalized-document-collection-view.model.js +110 -0
- package/document-management/models/service-models/normalized-requests-template-data.model.d.ts +16 -0
- package/document-management/models/service-models/normalized-requests-template-data.model.js +13 -0
- package/document-management/models/service-models/stats.view-model.d.ts +6 -0
- package/document-management/models/service-models/stats.view-model.js +32 -0
- package/document-management/module.d.ts +11 -0
- package/document-management/module.js +27 -0
- package/document-management/services/document-management.service.d.ts +65 -0
- package/document-management/services/document-management.service.js +376 -0
- package/document-management/services/index.d.ts +1 -0
- package/document-management/services/index.js +1 -0
- package/examples/document-management/main.d.ts +1 -0
- package/examples/document-management/main.js +30 -0
- package/examples/orm/drizzle.config.js +2 -1
- package/examples/orm/schemas.d.ts +1 -1
- package/examples/orm/user.model.d.ts +1 -2
- package/examples/orm/user.model.js +0 -1
- package/http/server/node/node-http-server.js +5 -5
- package/injector/injector.d.ts +4 -1
- package/injector/injector.js +4 -1
- package/injector/interfaces.d.ts +3 -3
- package/json-path/json-path.d.ts +2 -0
- package/json-path/json-path.js +7 -0
- package/message-bus/message-bus.d.ts +4 -6
- package/orm/database-schema.d.ts +3 -0
- package/orm/database-schema.js +6 -2
- package/orm/database.d.ts +6 -0
- package/orm/database.js +14 -0
- package/orm/decorators.d.ts +25 -2
- package/orm/decorators.js +15 -0
- package/orm/drizzle/index.d.ts +1 -0
- package/orm/drizzle/index.js +1 -0
- package/orm/drizzle/schema-converter.d.ts +37 -8
- package/orm/drizzle/schema-converter.js +121 -40
- package/orm/entity.d.ts +15 -12
- package/orm/entity.js +24 -11
- package/orm/index.d.ts +3 -2
- package/orm/index.js +3 -2
- package/orm/module.d.ts +6 -0
- package/orm/module.js +15 -0
- package/orm/query-converter.d.ts +5 -0
- package/orm/query-converter.js +114 -0
- package/orm/query.d.ts +15 -13
- package/orm/repository.d.ts +90 -31
- package/orm/repository.js +357 -55
- package/orm/schemas/index.d.ts +3 -0
- package/orm/schemas/index.js +3 -0
- package/orm/schemas/json.d.ts +9 -0
- package/orm/schemas/json.js +19 -0
- package/orm/schemas/numeric-date.d.ts +8 -0
- package/orm/schemas/numeric-date.js +13 -0
- package/orm/schemas/timestamp.d.ts +10 -0
- package/orm/schemas/timestamp.js +20 -0
- package/orm/transaction.d.ts +29 -0
- package/orm/transaction.js +73 -0
- package/orm/types.d.ts +15 -8
- package/orm/types.js +3 -2
- package/package.json +22 -12
- package/{rxjs → rxjs-utils}/reject-error.d.ts +1 -1
- package/{rxjs → rxjs-utils}/retry-backoff.d.ts +2 -2
- package/{rxjs → rxjs-utils}/slow-array.d.ts +7 -7
- package/{rxjs → rxjs-utils}/slow-array.js +2 -2
- package/{rxjs → rxjs-utils}/start-with-provider.d.ts +1 -1
- package/{rxjs → rxjs-utils}/teardown.d.ts +1 -1
- package/{rxjs → rxjs-utils}/untrack.d.ts +1 -1
- package/schema/decorators/types.d.ts +2 -2
- package/schema/schemas/number.d.ts +1 -1
- package/signals/pipe.d.ts +1 -1
- package/signals/pipe.js +1 -2
- package/sse/server-sent-events.d.ts +54 -0
- package/sse/server-sent-events.js +54 -0
- package/types.d.ts +5 -1
- package/utils/comparison.d.ts +2 -1
- package/utils/comparison.js +4 -3
- package/utils/compression.d.ts +4 -4
- package/utils/compression.js +35 -43
- package/utils/object/dereference.d.ts +6 -4
- package/utils/object/dereference.js +20 -8
- package/utils/object/object.d.ts +2 -0
- package/utils/object/object.js +20 -0
- /package/{rxjs → rxjs-utils}/cast.d.ts +0 -0
- /package/{rxjs → rxjs-utils}/cast.js +0 -0
- /package/{rxjs → rxjs-utils}/index.d.ts +0 -0
- /package/{rxjs → rxjs-utils}/index.js +0 -0
- /package/{rxjs → rxjs-utils}/noop.d.ts +0 -0
- /package/{rxjs → rxjs-utils}/noop.js +0 -0
- /package/{rxjs → rxjs-utils}/reject-error.js +0 -0
- /package/{rxjs → rxjs-utils}/retry-backoff.js +0 -0
- /package/{rxjs → rxjs-utils}/start-with-provider.js +0 -0
- /package/{rxjs → rxjs-utils}/teardown.js +0 -0
- /package/{rxjs → rxjs-utils}/timing.d.ts +0 -0
- /package/{rxjs → rxjs-utils}/timing.js +0 -0
- /package/{rxjs → rxjs-utils}/untrack.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../polyfills.js';
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
import '../polyfills.js';
|
|
8
|
+
import { GoogleGenerativeAI } from '@google/generative-ai';
|
|
9
|
+
import { FileState, GoogleAIFileManager } from '@google/generative-ai/server';
|
|
10
|
+
import { Application } from '../application/application.js';
|
|
11
|
+
import { DetailsError } from '../errors/details.error.js';
|
|
12
|
+
import { Singleton } from '../injector/decorators.js';
|
|
13
|
+
import { inject } from '../injector/inject.js';
|
|
14
|
+
import { timeout } from '../utils/timing.js';
|
|
15
|
+
const generationConfig = {
|
|
16
|
+
temperature: 1,
|
|
17
|
+
topP: 0.95,
|
|
18
|
+
topK: 40,
|
|
19
|
+
maxOutputTokens: 8192,
|
|
20
|
+
responseMimeType: 'text/plain',
|
|
21
|
+
};
|
|
22
|
+
let AiService = class AiService {
|
|
23
|
+
apiKey = 'AIzaSyDAFOSnn3it7EUIWNTp86kPb1os8P3nyu0';
|
|
24
|
+
genAI = new GoogleGenerativeAI(this.apiKey);
|
|
25
|
+
fileManager = new GoogleAIFileManager(this.apiKey);
|
|
26
|
+
model = this.genAI.getGenerativeModel({ model: 'gemini-2.0-flash-thinking-exp-1219' });
|
|
27
|
+
async classify(_path) {
|
|
28
|
+
}
|
|
29
|
+
async extractData(path) {
|
|
30
|
+
const { file } = await this.fileManager.uploadFile(path, { mimeType: 'application/pdf' });
|
|
31
|
+
await this.waitForFilesActive(file);
|
|
32
|
+
const chatSession = this.model.startChat({ generationConfig });
|
|
33
|
+
const result = await chatSession.sendMessageStream([
|
|
34
|
+
{ fileData: { mimeType: file.mimeType, fileUri: file.uri } },
|
|
35
|
+
{ text: 'extract data as json' }
|
|
36
|
+
]);
|
|
37
|
+
for await (const part of result.stream) {
|
|
38
|
+
process.stdout.write(part.text());
|
|
39
|
+
}
|
|
40
|
+
console.log((await result.response).usageMetadata);
|
|
41
|
+
}
|
|
42
|
+
async waitForFilesActive(...files) {
|
|
43
|
+
for (const name of files.map((file) => file.name)) {
|
|
44
|
+
let file = await this.fileManager.getFile(name);
|
|
45
|
+
while (file.state == FileState.PROCESSING) {
|
|
46
|
+
await timeout(2500);
|
|
47
|
+
file = await this.fileManager.getFile(name);
|
|
48
|
+
}
|
|
49
|
+
if (file.state == FileState.FAILED) {
|
|
50
|
+
throw new DetailsError(file.error?.message ?? `Failed to process file ${file.name}`, file.error?.details);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
AiService = __decorate([
|
|
56
|
+
Singleton()
|
|
57
|
+
], AiService);
|
|
58
|
+
async function main() {
|
|
59
|
+
const aiService = inject(AiService);
|
|
60
|
+
await aiService.extractData('/home/patrick/Downloads/358 417/orig/358 417.pdf');
|
|
61
|
+
}
|
|
62
|
+
Application.run(main);
|
|
@@ -118,10 +118,10 @@ export { AuthenticationApiController };
|
|
|
118
118
|
export function getAuthenticationApiController(// eslint-disable-line @typescript-eslint/explicit-function-return-type
|
|
119
119
|
additionalTokenPayloadSchema, authenticationDataSchema, additionalInitSecretResetData) {
|
|
120
120
|
const apiDefinition = getAuthenticationApiDefinition(additionalTokenPayloadSchema, authenticationDataSchema, additionalInitSecretResetData);
|
|
121
|
-
let
|
|
121
|
+
let AuthenticationApi = class AuthenticationApi extends AuthenticationApiController {
|
|
122
122
|
};
|
|
123
|
-
|
|
123
|
+
AuthenticationApi = __decorate([
|
|
124
124
|
apiController(apiDefinition)
|
|
125
|
-
],
|
|
126
|
-
return
|
|
125
|
+
], AuthenticationApi);
|
|
126
|
+
return AuthenticationApi;
|
|
127
127
|
}
|
package/cancellation/token.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
1
|
+
import { BehaviorSubject, type Observable, type Observer, type Subscribable, type Unsubscribable } from 'rxjs';
|
|
3
2
|
export type ConnectConfig = {
|
|
4
3
|
/**
|
|
5
4
|
* Propagate parent set to child.
|
package/cancellation/token.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BehaviorSubject, defer, filter, first, firstValueFrom, from, fromEvent, isObservable, map, skip, take } from 'rxjs';
|
|
2
|
-
import { noopOperator } from '../rxjs/noop.js';
|
|
2
|
+
import { noopOperator } from '../rxjs-utils/noop.js';
|
|
3
3
|
import { noop } from '../utils/noop.js';
|
|
4
4
|
import { isBoolean } from '../utils/type-guards.js';
|
|
5
5
|
export class CancellationSignal {
|
package/core.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ declare global {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const CORE_LOGGER: InjectionToken<Logger, never>;
|
|
9
9
|
/**
|
|
10
|
-
* @deprecated
|
|
10
|
+
* @deprecated Usage of `getGlobalInjector` should be avoided. Use `Application` scoped injector instead.
|
|
11
11
|
*/
|
|
12
12
|
export declare function getGlobalInjector(): Injector;
|
|
13
13
|
export declare function isDevMode(): boolean;
|
package/core.js
CHANGED
|
@@ -14,7 +14,7 @@ export const CORE_LOGGER = injectionToken('core logger');
|
|
|
14
14
|
let globalInjector;
|
|
15
15
|
let _isDevMode = true;
|
|
16
16
|
/**
|
|
17
|
-
* @deprecated
|
|
17
|
+
* @deprecated Usage of `getGlobalInjector` should be avoided. Use `Application` scoped injector instead.
|
|
18
18
|
*/
|
|
19
19
|
export function getGlobalInjector() {
|
|
20
20
|
if (isUndefined(globalInjector)) {
|
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
import { CategoryAndTypesView, Document, DocumentCategory, DocumentCollection, DocumentManagementData, DocumentRequest, DocumentRequestFile, DocumentRequestTemplate, DocumentRequestsTemplate, DocumentRequestsTemplateData, DocumentType } from '../models/index.js';
|
|
2
|
+
export type DocumentManagementApiDefinition = typeof documentManagementApiDefinition;
|
|
3
|
+
export declare const documentManagementApiDefinition: {
|
|
4
|
+
resource: string;
|
|
5
|
+
endpoints: {
|
|
6
|
+
loadData: {
|
|
7
|
+
resource: string;
|
|
8
|
+
method: "GET";
|
|
9
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
10
|
+
readonly collectionIds: string | string[];
|
|
11
|
+
readonly collectionsMetadata: Partial<import("../../schema/index.js").Record<string, {
|
|
12
|
+
readonly name?: string | null | undefined;
|
|
13
|
+
readonly group?: string | null | undefined;
|
|
14
|
+
}>>;
|
|
15
|
+
}>;
|
|
16
|
+
result: typeof DocumentManagementData;
|
|
17
|
+
credentials: true;
|
|
18
|
+
};
|
|
19
|
+
loadDocumentRequestsTemplateData: {
|
|
20
|
+
resource: string;
|
|
21
|
+
method: "GET";
|
|
22
|
+
result: typeof DocumentRequestsTemplateData;
|
|
23
|
+
credentials: true;
|
|
24
|
+
};
|
|
25
|
+
loadAvailableCategoriesAndTypes: {
|
|
26
|
+
resource: string;
|
|
27
|
+
method: "GET";
|
|
28
|
+
result: typeof CategoryAndTypesView;
|
|
29
|
+
credentials: true;
|
|
30
|
+
};
|
|
31
|
+
loadFileContent: {
|
|
32
|
+
resource: string;
|
|
33
|
+
method: "GET";
|
|
34
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
35
|
+
readonly title: string | null;
|
|
36
|
+
readonly id: string;
|
|
37
|
+
readonly download?: boolean | undefined;
|
|
38
|
+
}>;
|
|
39
|
+
result: Uint8ArrayConstructor;
|
|
40
|
+
credentials: true;
|
|
41
|
+
};
|
|
42
|
+
getFileContentUrl: {
|
|
43
|
+
resource: string;
|
|
44
|
+
method: "GET";
|
|
45
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
46
|
+
readonly title: string | null;
|
|
47
|
+
readonly id: string;
|
|
48
|
+
readonly download?: boolean | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
result: import("../../schema/index.js").StringSchema;
|
|
51
|
+
credentials: true;
|
|
52
|
+
};
|
|
53
|
+
createCategory: {
|
|
54
|
+
resource: string;
|
|
55
|
+
method: "POST";
|
|
56
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
57
|
+
label: string;
|
|
58
|
+
readonly metadata?: Partial<{
|
|
59
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
60
|
+
}> | undefined;
|
|
61
|
+
}>;
|
|
62
|
+
result: typeof DocumentCategory;
|
|
63
|
+
credentials: true;
|
|
64
|
+
};
|
|
65
|
+
createType: {
|
|
66
|
+
resource: string;
|
|
67
|
+
method: "POST";
|
|
68
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
69
|
+
group: string | null;
|
|
70
|
+
label: string;
|
|
71
|
+
categoryId: import("../../orm/schemas/uuid.js").Uuid;
|
|
72
|
+
readonly metadata?: Partial<{
|
|
73
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
74
|
+
}> | undefined;
|
|
75
|
+
}>;
|
|
76
|
+
result: typeof DocumentType;
|
|
77
|
+
credentials: true;
|
|
78
|
+
};
|
|
79
|
+
createCollection: {
|
|
80
|
+
resource: string;
|
|
81
|
+
method: "POST";
|
|
82
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
83
|
+
readonly metadata?: Partial<{
|
|
84
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
85
|
+
}> | undefined;
|
|
86
|
+
}>;
|
|
87
|
+
result: typeof DocumentCollection;
|
|
88
|
+
credentials: true;
|
|
89
|
+
};
|
|
90
|
+
createDocument: {
|
|
91
|
+
resource: string;
|
|
92
|
+
method: "POST";
|
|
93
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
94
|
+
date: import("../../orm/schemas/numeric-date.js").NumericDate | null;
|
|
95
|
+
expiration: import("../../orm/schemas/numeric-date.js").NumericDate | null;
|
|
96
|
+
typeId: import("../../orm/schemas/uuid.js").Uuid | null;
|
|
97
|
+
addition: string | null;
|
|
98
|
+
originalFileName: string | null;
|
|
99
|
+
readonly collectionIds: string | string[];
|
|
100
|
+
readonly properties?: {
|
|
101
|
+
readonly value: unknown;
|
|
102
|
+
readonly metadata?: Partial<{
|
|
103
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
104
|
+
}> | undefined;
|
|
105
|
+
propertyId: import("../../orm/schemas/uuid.js").Uuid;
|
|
106
|
+
}[] | undefined;
|
|
107
|
+
readonly metadata?: Partial<{
|
|
108
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
109
|
+
}> | undefined;
|
|
110
|
+
}>;
|
|
111
|
+
body: Uint8ArrayConstructor;
|
|
112
|
+
maxBytes: number;
|
|
113
|
+
result: typeof Document;
|
|
114
|
+
credentials: true;
|
|
115
|
+
};
|
|
116
|
+
createDocumentRequestsTemplate: {
|
|
117
|
+
resource: string;
|
|
118
|
+
method: "POST";
|
|
119
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
120
|
+
description: string | null;
|
|
121
|
+
label: string;
|
|
122
|
+
readonly metadata?: Partial<{
|
|
123
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
124
|
+
}> | undefined;
|
|
125
|
+
}>;
|
|
126
|
+
result: typeof DocumentRequestsTemplate;
|
|
127
|
+
credentials: true;
|
|
128
|
+
};
|
|
129
|
+
updateDocumentRequestsTemplate: {
|
|
130
|
+
resource: string;
|
|
131
|
+
method: "PATCH";
|
|
132
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
133
|
+
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
134
|
+
description?: string | null | undefined;
|
|
135
|
+
label?: string | undefined;
|
|
136
|
+
readonly metadata?: Partial<{
|
|
137
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
138
|
+
}> | undefined;
|
|
139
|
+
}>;
|
|
140
|
+
result: typeof DocumentRequestsTemplate;
|
|
141
|
+
credentials: true;
|
|
142
|
+
};
|
|
143
|
+
applyDocumentRequestsTemplate: {
|
|
144
|
+
resource: string;
|
|
145
|
+
method: "POST";
|
|
146
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
147
|
+
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
148
|
+
readonly collectionIds: string[];
|
|
149
|
+
readonly metadata?: Partial<{
|
|
150
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
151
|
+
}> | undefined;
|
|
152
|
+
}>;
|
|
153
|
+
result: import("../../schema/index.js").LiteralSchema<"ok">;
|
|
154
|
+
credentials: true;
|
|
155
|
+
};
|
|
156
|
+
deleteDocumentRequestsTemplate: {
|
|
157
|
+
resource: string;
|
|
158
|
+
method: "DELETE";
|
|
159
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
160
|
+
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
161
|
+
readonly metadata?: Partial<{
|
|
162
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
163
|
+
}> | undefined;
|
|
164
|
+
}>;
|
|
165
|
+
result: import("../../schema/index.js").LiteralSchema<"ok">;
|
|
166
|
+
credentials: true;
|
|
167
|
+
};
|
|
168
|
+
createDocumentRequestTemplate: {
|
|
169
|
+
resource: string;
|
|
170
|
+
method: "POST";
|
|
171
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
172
|
+
comment: string | null;
|
|
173
|
+
typeId: import("../../orm/schemas/uuid.js").Uuid | null;
|
|
174
|
+
requiredFilesCount: number;
|
|
175
|
+
requestsTemplateId: import("../../orm/schemas/uuid.js").Uuid;
|
|
176
|
+
readonly metadata?: Partial<{
|
|
177
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
178
|
+
}> | undefined;
|
|
179
|
+
}>;
|
|
180
|
+
result: typeof DocumentRequestTemplate;
|
|
181
|
+
credentials: true;
|
|
182
|
+
};
|
|
183
|
+
updateDocumentRequestTemplate: {
|
|
184
|
+
resource: string;
|
|
185
|
+
method: "PATCH";
|
|
186
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
187
|
+
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
188
|
+
comment?: string | null | undefined;
|
|
189
|
+
typeId?: import("../../orm/types.js").Uuid | null | undefined;
|
|
190
|
+
requiredFilesCount?: number | undefined;
|
|
191
|
+
readonly metadata?: Partial<{
|
|
192
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
193
|
+
}> | undefined;
|
|
194
|
+
}>;
|
|
195
|
+
result: typeof DocumentRequestTemplate;
|
|
196
|
+
credentials: true;
|
|
197
|
+
};
|
|
198
|
+
deleteDocumentRequestTemplate: {
|
|
199
|
+
resource: string;
|
|
200
|
+
method: "DELETE";
|
|
201
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
202
|
+
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
203
|
+
readonly metadata?: Partial<{
|
|
204
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
205
|
+
}> | undefined;
|
|
206
|
+
}>;
|
|
207
|
+
result: import("../../schema/index.js").LiteralSchema<"ok">;
|
|
208
|
+
credentials: true;
|
|
209
|
+
};
|
|
210
|
+
createDocumentRequestFile: {
|
|
211
|
+
resource: string;
|
|
212
|
+
method: "POST";
|
|
213
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
214
|
+
readonly requestId: string;
|
|
215
|
+
addition: string | null;
|
|
216
|
+
originalFileName: string | null;
|
|
217
|
+
readonly metadata?: Partial<{
|
|
218
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
219
|
+
}> | undefined;
|
|
220
|
+
}>;
|
|
221
|
+
body: Uint8ArrayConstructor;
|
|
222
|
+
result: typeof DocumentRequestFile;
|
|
223
|
+
maxBytes: number;
|
|
224
|
+
credentials: true;
|
|
225
|
+
};
|
|
226
|
+
approveDocumentRequestFile: {
|
|
227
|
+
resource: string;
|
|
228
|
+
method: "POST";
|
|
229
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
230
|
+
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
231
|
+
approvalComment: string | null;
|
|
232
|
+
readonly documentMetadata?: Partial<{
|
|
233
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
234
|
+
}> | undefined;
|
|
235
|
+
readonly requestFileMetadata?: Partial<{
|
|
236
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
237
|
+
}> | undefined;
|
|
238
|
+
}>;
|
|
239
|
+
result: typeof Document;
|
|
240
|
+
credentials: true;
|
|
241
|
+
};
|
|
242
|
+
rejectDocumentRequestFile: {
|
|
243
|
+
resource: string;
|
|
244
|
+
method: "POST";
|
|
245
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
246
|
+
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
247
|
+
approvalComment: string | null;
|
|
248
|
+
readonly metadata?: Partial<{
|
|
249
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
250
|
+
}> | undefined;
|
|
251
|
+
}>;
|
|
252
|
+
result: import("../../schema/index.js").LiteralSchema<"ok">;
|
|
253
|
+
credentials: true;
|
|
254
|
+
};
|
|
255
|
+
updateDocumentRequestFile: {
|
|
256
|
+
resource: string;
|
|
257
|
+
method: "PATCH";
|
|
258
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
259
|
+
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
260
|
+
addition?: string | null | undefined;
|
|
261
|
+
approvalComment?: string | null | undefined;
|
|
262
|
+
approvalTimestamp?: import("../../orm/types.js").Timestamp | null | undefined;
|
|
263
|
+
readonly metadata?: Partial<{
|
|
264
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
265
|
+
}> | undefined;
|
|
266
|
+
}>;
|
|
267
|
+
result: typeof DocumentRequestFile;
|
|
268
|
+
credentials: true;
|
|
269
|
+
};
|
|
270
|
+
deleteDocumentRequestFile: {
|
|
271
|
+
resource: string;
|
|
272
|
+
method: "DELETE";
|
|
273
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
274
|
+
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
275
|
+
readonly metadata?: Partial<{
|
|
276
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
277
|
+
}> | undefined;
|
|
278
|
+
}>;
|
|
279
|
+
result: import("../../schema/index.js").LiteralSchema<"ok">;
|
|
280
|
+
credentials: true;
|
|
281
|
+
};
|
|
282
|
+
createDocumentRequest: {
|
|
283
|
+
resource: string;
|
|
284
|
+
method: "POST";
|
|
285
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
286
|
+
comment: string | null;
|
|
287
|
+
typeId: import("../../orm/schemas/uuid.js").Uuid | null;
|
|
288
|
+
requiredFilesCount: number;
|
|
289
|
+
readonly collectionIds: string[];
|
|
290
|
+
readonly metadata?: Partial<{
|
|
291
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
292
|
+
}> | undefined;
|
|
293
|
+
}>;
|
|
294
|
+
result: typeof DocumentRequest;
|
|
295
|
+
credentials: true;
|
|
296
|
+
};
|
|
297
|
+
updateDocumentRequest: {
|
|
298
|
+
resource: string;
|
|
299
|
+
method: "PATCH";
|
|
300
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
301
|
+
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
302
|
+
comment?: string | null | undefined;
|
|
303
|
+
typeId?: import("../../orm/types.js").Uuid | null | undefined;
|
|
304
|
+
requiredFilesCount?: number | undefined;
|
|
305
|
+
completed?: boolean | undefined;
|
|
306
|
+
readonly metadata?: Partial<{
|
|
307
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
308
|
+
}> | undefined;
|
|
309
|
+
}>;
|
|
310
|
+
result: import("../../schema/index.js").LiteralSchema<"ok">;
|
|
311
|
+
credentials: true;
|
|
312
|
+
};
|
|
313
|
+
deleteDocumentRequest: {
|
|
314
|
+
resource: string;
|
|
315
|
+
method: "DELETE";
|
|
316
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
317
|
+
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
318
|
+
readonly metadata?: Partial<{
|
|
319
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
320
|
+
}> | undefined;
|
|
321
|
+
}>;
|
|
322
|
+
result: import("../../schema/index.js").LiteralSchema<"ok">;
|
|
323
|
+
credentials: true;
|
|
324
|
+
};
|
|
325
|
+
addDocumentToCollection: {
|
|
326
|
+
resource: string;
|
|
327
|
+
method: "PUT";
|
|
328
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
329
|
+
collectionId: import("../../orm/schemas/uuid.js").Uuid;
|
|
330
|
+
documentId: import("../../orm/schemas/uuid.js").Uuid;
|
|
331
|
+
readonly metadata?: Partial<{
|
|
332
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
333
|
+
}> | undefined;
|
|
334
|
+
}>;
|
|
335
|
+
result: import("../../schema/index.js").LiteralSchema<"ok">;
|
|
336
|
+
credentials: true;
|
|
337
|
+
};
|
|
338
|
+
archiveDocument: {
|
|
339
|
+
resource: string;
|
|
340
|
+
method: "DELETE";
|
|
341
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
342
|
+
collectionId: import("../../orm/schemas/uuid.js").Uuid;
|
|
343
|
+
documentId: import("../../orm/schemas/uuid.js").Uuid;
|
|
344
|
+
readonly metadata?: Partial<{
|
|
345
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
346
|
+
}> | undefined;
|
|
347
|
+
}>;
|
|
348
|
+
result: import("../../schema/index.js").LiteralSchema<"ok">;
|
|
349
|
+
credentials: true;
|
|
350
|
+
};
|
|
351
|
+
updateDocument: {
|
|
352
|
+
resource: string;
|
|
353
|
+
method: "PATCH";
|
|
354
|
+
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
355
|
+
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
356
|
+
date?: import("../../orm/types.js").NumericDate | null | undefined;
|
|
357
|
+
expiration?: import("../../orm/types.js").NumericDate | null | undefined;
|
|
358
|
+
fileId?: import("../../orm/types.js").Uuid | undefined;
|
|
359
|
+
typeId?: import("../../orm/types.js").Uuid | null | undefined;
|
|
360
|
+
addition?: string | null | undefined;
|
|
361
|
+
readonly properties?: {
|
|
362
|
+
readonly value: unknown;
|
|
363
|
+
readonly metadata?: Partial<{
|
|
364
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
365
|
+
}> | undefined;
|
|
366
|
+
propertyId: import("../../orm/schemas/uuid.js").Uuid;
|
|
367
|
+
}[] | undefined;
|
|
368
|
+
readonly metadata?: Partial<{
|
|
369
|
+
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
370
|
+
}> | undefined;
|
|
371
|
+
}>;
|
|
372
|
+
result: import("../../schema/index.js").LiteralSchema<"ok">;
|
|
373
|
+
credentials: true;
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
};
|