@tstdl/base 0.92.84 → 0.92.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai/ai.service.d.ts +1 -1
- package/ai/ai.service.js +34 -16
- package/ai/types.d.ts +1 -1
- package/authentication/authentication.api.d.ts +9 -9
- package/authentication/models/schemas.d.ts +2 -2
- package/cancellation/token.d.ts +1 -1
- package/document-management/api/document-management.api.d.ts +94 -94
- package/document-management/models/document-category.model.d.ts +1 -0
- package/document-management/models/document-index.model.d.ts +7 -0
- package/document-management/models/document-index.model.js +32 -0
- package/document-management/models/document-request-file.model.d.ts +1 -1
- package/document-management/models/document-request-file.model.js +2 -2
- package/document-management/models/document-type.model.d.ts +1 -0
- package/document-management/models/document.model.d.ts +1 -1
- package/document-management/models/document.model.js +2 -2
- package/document-management/models/service-models/document.service-model.d.ts +51 -51
- package/document-management/models/service-models/document.service-model.js +2 -2
- package/document-management/server/drizzle/{0000_sloppy_fenris.sql → 0000_useful_overlord.sql} +2 -2
- package/document-management/server/drizzle/meta/0000_snapshot.json +5 -5
- package/document-management/server/drizzle/meta/_journal.json +2 -2
- package/document-management/server/drizzle.config.js +1 -1
- package/document-management/server/module.d.ts +1 -1
- package/document-management/server/module.js +1 -1
- package/document-management/server/schemas.d.ts +33 -0
- package/document-management/{models → server}/schemas.js +14 -14
- package/document-management/server/services/document-management.service.d.ts +17 -3
- package/document-management/server/services/document-management.service.js +65 -17
- package/examples/orm/schemas.d.ts +1 -1
- package/mail/drizzle.config.js +1 -1
- package/mail/models/schemas.d.ts +1 -1
- package/orm/decorators.d.ts +4 -4
- package/orm/entity.d.ts +5 -7
- package/orm/entity.js +9 -1
- package/orm/index.d.ts +1 -0
- package/orm/index.js +1 -0
- package/orm/query.d.ts +1 -3
- package/orm/query.js +0 -1
- package/orm/repository.types.d.ts +32 -0
- package/orm/repository.types.js +1 -0
- package/orm/server/database-schema.d.ts +4 -4
- package/orm/server/drizzle/schema-converter.d.ts +1 -1
- package/orm/server/index.d.ts +1 -0
- package/orm/server/index.js +1 -0
- package/orm/server/query-converter.d.ts +1 -2
- package/orm/server/query-converter.js +66 -61
- package/orm/server/repository.d.ts +78 -42
- package/orm/server/repository.js +202 -106
- package/orm/server/sqls.d.ts +7 -0
- package/orm/server/sqls.js +6 -0
- package/orm/server/types.d.ts +3 -3
- package/orm/types.d.ts +1 -1
- package/package.json +13 -11
- package/process-shutdown.js +0 -3
- package/queue/enqueue-batch.d.ts +1 -0
- package/queue/enqueue-batch.js +1 -1
- package/queue/mongo/queue.d.ts +9 -4
- package/queue/mongo/queue.js +5 -6
- package/queue/postgres/drizzle/0000_zippy_moondragon.sql +11 -0
- package/queue/postgres/drizzle/meta/0000_snapshot.json +90 -0
- package/queue/postgres/drizzle/meta/_journal.json +13 -0
- package/queue/postgres/drizzle.config.d.ts +2 -0
- package/queue/postgres/drizzle.config.js +11 -0
- package/queue/postgres/index.d.ts +4 -0
- package/queue/postgres/index.js +4 -0
- package/queue/postgres/job.model.d.ts +13 -0
- package/queue/postgres/job.model.js +55 -0
- package/queue/postgres/module.d.ts +9 -0
- package/queue/postgres/module.js +29 -0
- package/queue/postgres/queue.d.ts +28 -0
- package/queue/postgres/queue.js +149 -0
- package/queue/postgres/queue.provider.d.ts +7 -0
- package/queue/postgres/queue.provider.js +21 -0
- package/queue/postgres/schemas.d.ts +3 -0
- package/queue/postgres/schemas.js +4 -0
- package/queue/provider.d.ts +2 -1
- package/queue/queue.d.ts +18 -6
- package/schema/schemas/object.d.ts +1 -1
- package/utils/timing.d.ts +4 -3
- package/utils/timing.js +3 -1
- package/document-management/models/schemas.d.ts +0 -33
|
@@ -7,10 +7,10 @@ export declare const documentManagementApiDefinition: {
|
|
|
7
7
|
resource: string;
|
|
8
8
|
method: "GET";
|
|
9
9
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
collectionIds: string | string[];
|
|
11
|
+
collectionsMetadata: Partial<import("../../schema/index.js").Record<string, {
|
|
12
|
+
name?: string | null | undefined;
|
|
13
|
+
group?: string | null | undefined;
|
|
14
14
|
}>>;
|
|
15
15
|
}>;
|
|
16
16
|
result: typeof DocumentManagementData;
|
|
@@ -32,9 +32,9 @@ export declare const documentManagementApiDefinition: {
|
|
|
32
32
|
resource: string;
|
|
33
33
|
method: "GET";
|
|
34
34
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
title: string | null;
|
|
36
|
+
id: string;
|
|
37
|
+
download?: boolean | undefined;
|
|
38
38
|
}>;
|
|
39
39
|
result: Uint8ArrayConstructor;
|
|
40
40
|
credentials: true;
|
|
@@ -43,9 +43,9 @@ export declare const documentManagementApiDefinition: {
|
|
|
43
43
|
resource: string;
|
|
44
44
|
method: "GET";
|
|
45
45
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
title: string | null;
|
|
47
|
+
id: string;
|
|
48
|
+
download?: boolean | undefined;
|
|
49
49
|
}>;
|
|
50
50
|
result: import("../../schema/index.js").StringSchema;
|
|
51
51
|
credentials: true;
|
|
@@ -55,7 +55,7 @@ export declare const documentManagementApiDefinition: {
|
|
|
55
55
|
method: "POST";
|
|
56
56
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
57
57
|
label: string;
|
|
58
|
-
|
|
58
|
+
metadata?: Partial<{
|
|
59
59
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
60
60
|
}> | undefined;
|
|
61
61
|
}>;
|
|
@@ -69,7 +69,7 @@ export declare const documentManagementApiDefinition: {
|
|
|
69
69
|
group: string | null;
|
|
70
70
|
label: string;
|
|
71
71
|
categoryId: import("../../orm/schemas/uuid.js").Uuid;
|
|
72
|
-
|
|
72
|
+
metadata?: Partial<{
|
|
73
73
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
74
74
|
}> | undefined;
|
|
75
75
|
}>;
|
|
@@ -80,7 +80,7 @@ export declare const documentManagementApiDefinition: {
|
|
|
80
80
|
resource: string;
|
|
81
81
|
method: "POST";
|
|
82
82
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
83
|
-
|
|
83
|
+
metadata?: Partial<{
|
|
84
84
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
85
85
|
}> | undefined;
|
|
86
86
|
}>;
|
|
@@ -92,19 +92,19 @@ export declare const documentManagementApiDefinition: {
|
|
|
92
92
|
method: "POST";
|
|
93
93
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
94
94
|
date: import("../../orm/schemas/numeric-date.js").NumericDate | null;
|
|
95
|
+
title: string | null;
|
|
95
96
|
expiration: import("../../orm/schemas/numeric-date.js").NumericDate | null;
|
|
96
97
|
typeId: import("../../orm/schemas/uuid.js").Uuid | null;
|
|
97
|
-
addition: string | null;
|
|
98
98
|
originalFileName: string | null;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
collectionIds: string | string[];
|
|
100
|
+
properties?: {
|
|
101
|
+
value: unknown;
|
|
102
|
+
metadata?: Partial<{
|
|
103
103
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
104
104
|
}> | undefined;
|
|
105
105
|
propertyId: import("../../orm/schemas/uuid.js").Uuid;
|
|
106
106
|
}[] | undefined;
|
|
107
|
-
|
|
107
|
+
metadata?: Partial<{
|
|
108
108
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
109
109
|
}> | undefined;
|
|
110
110
|
}>;
|
|
@@ -119,7 +119,7 @@ export declare const documentManagementApiDefinition: {
|
|
|
119
119
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
120
120
|
description: string | null;
|
|
121
121
|
label: string;
|
|
122
|
-
|
|
122
|
+
metadata?: Partial<{
|
|
123
123
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
124
124
|
}> | undefined;
|
|
125
125
|
}>;
|
|
@@ -133,7 +133,7 @@ export declare const documentManagementApiDefinition: {
|
|
|
133
133
|
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
134
134
|
description?: string | null | undefined;
|
|
135
135
|
label?: string | undefined;
|
|
136
|
-
|
|
136
|
+
metadata?: Partial<{
|
|
137
137
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
138
138
|
}> | undefined;
|
|
139
139
|
}>;
|
|
@@ -145,8 +145,8 @@ export declare const documentManagementApiDefinition: {
|
|
|
145
145
|
method: "POST";
|
|
146
146
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
147
147
|
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
collectionIds: string[];
|
|
149
|
+
metadata?: Partial<{
|
|
150
150
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
151
151
|
}> | undefined;
|
|
152
152
|
}>;
|
|
@@ -158,7 +158,7 @@ export declare const documentManagementApiDefinition: {
|
|
|
158
158
|
method: "DELETE";
|
|
159
159
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
160
160
|
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
161
|
-
|
|
161
|
+
metadata?: Partial<{
|
|
162
162
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
163
163
|
}> | undefined;
|
|
164
164
|
}>;
|
|
@@ -173,7 +173,7 @@ export declare const documentManagementApiDefinition: {
|
|
|
173
173
|
typeId: import("../../orm/schemas/uuid.js").Uuid | null;
|
|
174
174
|
requiredFilesCount: number;
|
|
175
175
|
requestsTemplateId: import("../../orm/schemas/uuid.js").Uuid;
|
|
176
|
-
|
|
176
|
+
metadata?: Partial<{
|
|
177
177
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
178
178
|
}> | undefined;
|
|
179
179
|
}>;
|
|
@@ -188,7 +188,7 @@ export declare const documentManagementApiDefinition: {
|
|
|
188
188
|
comment?: string | null | undefined;
|
|
189
189
|
typeId?: import("../../orm/types.js").Uuid | null | undefined;
|
|
190
190
|
requiredFilesCount?: number | undefined;
|
|
191
|
-
|
|
191
|
+
metadata?: Partial<{
|
|
192
192
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
193
193
|
}> | undefined;
|
|
194
194
|
}>;
|
|
@@ -200,7 +200,7 @@ export declare const documentManagementApiDefinition: {
|
|
|
200
200
|
method: "DELETE";
|
|
201
201
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
202
202
|
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
203
|
-
|
|
203
|
+
metadata?: Partial<{
|
|
204
204
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
205
205
|
}> | undefined;
|
|
206
206
|
}>;
|
|
@@ -211,10 +211,10 @@ export declare const documentManagementApiDefinition: {
|
|
|
211
211
|
resource: string;
|
|
212
212
|
method: "POST";
|
|
213
213
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
requestId: string;
|
|
215
|
+
title: string | null;
|
|
216
216
|
originalFileName: string | null;
|
|
217
|
-
|
|
217
|
+
metadata?: Partial<{
|
|
218
218
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
219
219
|
}> | undefined;
|
|
220
220
|
}>;
|
|
@@ -229,10 +229,10 @@ export declare const documentManagementApiDefinition: {
|
|
|
229
229
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
230
230
|
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
231
231
|
approvalComment: string | null;
|
|
232
|
-
|
|
232
|
+
documentMetadata?: Partial<{
|
|
233
233
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
234
234
|
}> | undefined;
|
|
235
|
-
|
|
235
|
+
requestFileMetadata?: Partial<{
|
|
236
236
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
237
237
|
}> | undefined;
|
|
238
238
|
}>;
|
|
@@ -245,7 +245,7 @@ export declare const documentManagementApiDefinition: {
|
|
|
245
245
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
246
246
|
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
247
247
|
approvalComment: string | null;
|
|
248
|
-
|
|
248
|
+
metadata?: Partial<{
|
|
249
249
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
250
250
|
}> | undefined;
|
|
251
251
|
}>;
|
|
@@ -257,10 +257,10 @@ export declare const documentManagementApiDefinition: {
|
|
|
257
257
|
method: "PATCH";
|
|
258
258
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
259
259
|
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
260
|
-
|
|
260
|
+
title?: string | null | undefined;
|
|
261
261
|
approvalComment?: string | null | undefined;
|
|
262
262
|
approvalTimestamp?: import("../../orm/types.js").Timestamp | null | undefined;
|
|
263
|
-
|
|
263
|
+
metadata?: Partial<{
|
|
264
264
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
265
265
|
}> | undefined;
|
|
266
266
|
}>;
|
|
@@ -272,7 +272,7 @@ export declare const documentManagementApiDefinition: {
|
|
|
272
272
|
method: "DELETE";
|
|
273
273
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
274
274
|
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
275
|
-
|
|
275
|
+
metadata?: Partial<{
|
|
276
276
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
277
277
|
}> | undefined;
|
|
278
278
|
}>;
|
|
@@ -286,8 +286,8 @@ export declare const documentManagementApiDefinition: {
|
|
|
286
286
|
comment: string | null;
|
|
287
287
|
typeId: import("../../orm/schemas/uuid.js").Uuid | null;
|
|
288
288
|
requiredFilesCount: number;
|
|
289
|
-
|
|
290
|
-
|
|
289
|
+
collectionIds: string[];
|
|
290
|
+
metadata?: Partial<{
|
|
291
291
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
292
292
|
}> | undefined;
|
|
293
293
|
}>;
|
|
@@ -303,7 +303,7 @@ export declare const documentManagementApiDefinition: {
|
|
|
303
303
|
typeId?: import("../../orm/types.js").Uuid | null | undefined;
|
|
304
304
|
requiredFilesCount?: number | undefined;
|
|
305
305
|
completed?: boolean | undefined;
|
|
306
|
-
|
|
306
|
+
metadata?: Partial<{
|
|
307
307
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
308
308
|
}> | undefined;
|
|
309
309
|
}>;
|
|
@@ -315,7 +315,7 @@ export declare const documentManagementApiDefinition: {
|
|
|
315
315
|
method: "DELETE";
|
|
316
316
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
317
317
|
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
318
|
-
|
|
318
|
+
metadata?: Partial<{
|
|
319
319
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
320
320
|
}> | undefined;
|
|
321
321
|
}>;
|
|
@@ -328,7 +328,7 @@ export declare const documentManagementApiDefinition: {
|
|
|
328
328
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
329
329
|
collectionId: import("../../orm/schemas/uuid.js").Uuid;
|
|
330
330
|
documentId: import("../../orm/schemas/uuid.js").Uuid;
|
|
331
|
-
|
|
331
|
+
metadata?: Partial<{
|
|
332
332
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
333
333
|
}> | undefined;
|
|
334
334
|
}>;
|
|
@@ -341,7 +341,7 @@ export declare const documentManagementApiDefinition: {
|
|
|
341
341
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
342
342
|
collectionId: import("../../orm/schemas/uuid.js").Uuid;
|
|
343
343
|
documentId: import("../../orm/schemas/uuid.js").Uuid;
|
|
344
|
-
|
|
344
|
+
metadata?: Partial<{
|
|
345
345
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
346
346
|
}> | undefined;
|
|
347
347
|
}>;
|
|
@@ -354,18 +354,18 @@ export declare const documentManagementApiDefinition: {
|
|
|
354
354
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
355
355
|
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
356
356
|
date?: import("../../orm/types.js").NumericDate | null | undefined;
|
|
357
|
+
title?: string | null | undefined;
|
|
357
358
|
expiration?: import("../../orm/types.js").NumericDate | null | undefined;
|
|
358
359
|
fileId?: import("../../orm/types.js").Uuid | undefined;
|
|
359
360
|
typeId?: import("../../orm/types.js").Uuid | null | undefined;
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
readonly metadata?: Partial<{
|
|
361
|
+
properties?: {
|
|
362
|
+
value: unknown;
|
|
363
|
+
metadata?: Partial<{
|
|
364
364
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
365
365
|
}> | undefined;
|
|
366
366
|
propertyId: import("../../orm/schemas/uuid.js").Uuid;
|
|
367
367
|
}[] | undefined;
|
|
368
|
-
|
|
368
|
+
metadata?: Partial<{
|
|
369
369
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
370
370
|
}> | undefined;
|
|
371
371
|
}>;
|
|
@@ -381,10 +381,10 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
381
381
|
resource: string;
|
|
382
382
|
method: "GET";
|
|
383
383
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
384
|
+
collectionIds: string | string[];
|
|
385
|
+
collectionsMetadata: Partial<import("../../schema/index.js").Record<string, {
|
|
386
|
+
name?: string | null | undefined;
|
|
387
|
+
group?: string | null | undefined;
|
|
388
388
|
}>>;
|
|
389
389
|
}>;
|
|
390
390
|
result: typeof DocumentManagementData;
|
|
@@ -406,9 +406,9 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
406
406
|
resource: string;
|
|
407
407
|
method: "GET";
|
|
408
408
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
409
|
+
title: string | null;
|
|
410
|
+
id: string;
|
|
411
|
+
download?: boolean | undefined;
|
|
412
412
|
}>;
|
|
413
413
|
result: Uint8ArrayConstructor;
|
|
414
414
|
credentials: true;
|
|
@@ -417,9 +417,9 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
417
417
|
resource: string;
|
|
418
418
|
method: "GET";
|
|
419
419
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
420
|
+
title: string | null;
|
|
421
|
+
id: string;
|
|
422
|
+
download?: boolean | undefined;
|
|
423
423
|
}>;
|
|
424
424
|
result: import("../../schema/index.js").StringSchema;
|
|
425
425
|
credentials: true;
|
|
@@ -429,7 +429,7 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
429
429
|
method: "POST";
|
|
430
430
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
431
431
|
label: string;
|
|
432
|
-
|
|
432
|
+
metadata?: Partial<{
|
|
433
433
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
434
434
|
}> | undefined;
|
|
435
435
|
}>;
|
|
@@ -443,7 +443,7 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
443
443
|
group: string | null;
|
|
444
444
|
label: string;
|
|
445
445
|
categoryId: import("../../orm/schemas/uuid.js").Uuid;
|
|
446
|
-
|
|
446
|
+
metadata?: Partial<{
|
|
447
447
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
448
448
|
}> | undefined;
|
|
449
449
|
}>;
|
|
@@ -454,7 +454,7 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
454
454
|
resource: string;
|
|
455
455
|
method: "POST";
|
|
456
456
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
457
|
-
|
|
457
|
+
metadata?: Partial<{
|
|
458
458
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
459
459
|
}> | undefined;
|
|
460
460
|
}>;
|
|
@@ -466,19 +466,19 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
466
466
|
method: "POST";
|
|
467
467
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
468
468
|
date: import("../../orm/schemas/numeric-date.js").NumericDate | null;
|
|
469
|
+
title: string | null;
|
|
469
470
|
expiration: import("../../orm/schemas/numeric-date.js").NumericDate | null;
|
|
470
471
|
typeId: import("../../orm/schemas/uuid.js").Uuid | null;
|
|
471
|
-
addition: string | null;
|
|
472
472
|
originalFileName: string | null;
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
473
|
+
collectionIds: string | string[];
|
|
474
|
+
properties?: {
|
|
475
|
+
value: unknown;
|
|
476
|
+
metadata?: Partial<{
|
|
477
477
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
478
478
|
}> | undefined;
|
|
479
479
|
propertyId: import("../../orm/schemas/uuid.js").Uuid;
|
|
480
480
|
}[] | undefined;
|
|
481
|
-
|
|
481
|
+
metadata?: Partial<{
|
|
482
482
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
483
483
|
}> | undefined;
|
|
484
484
|
}>;
|
|
@@ -493,7 +493,7 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
493
493
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
494
494
|
description: string | null;
|
|
495
495
|
label: string;
|
|
496
|
-
|
|
496
|
+
metadata?: Partial<{
|
|
497
497
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
498
498
|
}> | undefined;
|
|
499
499
|
}>;
|
|
@@ -507,7 +507,7 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
507
507
|
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
508
508
|
description?: string | null | undefined;
|
|
509
509
|
label?: string | undefined;
|
|
510
|
-
|
|
510
|
+
metadata?: Partial<{
|
|
511
511
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
512
512
|
}> | undefined;
|
|
513
513
|
}>;
|
|
@@ -519,8 +519,8 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
519
519
|
method: "POST";
|
|
520
520
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
521
521
|
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
522
|
-
|
|
523
|
-
|
|
522
|
+
collectionIds: string[];
|
|
523
|
+
metadata?: Partial<{
|
|
524
524
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
525
525
|
}> | undefined;
|
|
526
526
|
}>;
|
|
@@ -532,7 +532,7 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
532
532
|
method: "DELETE";
|
|
533
533
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
534
534
|
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
535
|
-
|
|
535
|
+
metadata?: Partial<{
|
|
536
536
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
537
537
|
}> | undefined;
|
|
538
538
|
}>;
|
|
@@ -547,7 +547,7 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
547
547
|
typeId: import("../../orm/schemas/uuid.js").Uuid | null;
|
|
548
548
|
requiredFilesCount: number;
|
|
549
549
|
requestsTemplateId: import("../../orm/schemas/uuid.js").Uuid;
|
|
550
|
-
|
|
550
|
+
metadata?: Partial<{
|
|
551
551
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
552
552
|
}> | undefined;
|
|
553
553
|
}>;
|
|
@@ -562,7 +562,7 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
562
562
|
comment?: string | null | undefined;
|
|
563
563
|
typeId?: import("../../orm/types.js").Uuid | null | undefined;
|
|
564
564
|
requiredFilesCount?: number | undefined;
|
|
565
|
-
|
|
565
|
+
metadata?: Partial<{
|
|
566
566
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
567
567
|
}> | undefined;
|
|
568
568
|
}>;
|
|
@@ -574,7 +574,7 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
574
574
|
method: "DELETE";
|
|
575
575
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
576
576
|
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
577
|
-
|
|
577
|
+
metadata?: Partial<{
|
|
578
578
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
579
579
|
}> | undefined;
|
|
580
580
|
}>;
|
|
@@ -585,10 +585,10 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
585
585
|
resource: string;
|
|
586
586
|
method: "POST";
|
|
587
587
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
588
|
-
|
|
589
|
-
|
|
588
|
+
requestId: string;
|
|
589
|
+
title: string | null;
|
|
590
590
|
originalFileName: string | null;
|
|
591
|
-
|
|
591
|
+
metadata?: Partial<{
|
|
592
592
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
593
593
|
}> | undefined;
|
|
594
594
|
}>;
|
|
@@ -603,10 +603,10 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
603
603
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
604
604
|
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
605
605
|
approvalComment: string | null;
|
|
606
|
-
|
|
606
|
+
documentMetadata?: Partial<{
|
|
607
607
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
608
608
|
}> | undefined;
|
|
609
|
-
|
|
609
|
+
requestFileMetadata?: Partial<{
|
|
610
610
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
611
611
|
}> | undefined;
|
|
612
612
|
}>;
|
|
@@ -619,7 +619,7 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
619
619
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
620
620
|
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
621
621
|
approvalComment: string | null;
|
|
622
|
-
|
|
622
|
+
metadata?: Partial<{
|
|
623
623
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
624
624
|
}> | undefined;
|
|
625
625
|
}>;
|
|
@@ -631,10 +631,10 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
631
631
|
method: "PATCH";
|
|
632
632
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
633
633
|
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
634
|
-
|
|
634
|
+
title?: string | null | undefined;
|
|
635
635
|
approvalComment?: string | null | undefined;
|
|
636
636
|
approvalTimestamp?: import("../../orm/types.js").Timestamp | null | undefined;
|
|
637
|
-
|
|
637
|
+
metadata?: Partial<{
|
|
638
638
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
639
639
|
}> | undefined;
|
|
640
640
|
}>;
|
|
@@ -646,7 +646,7 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
646
646
|
method: "DELETE";
|
|
647
647
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
648
648
|
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
649
|
-
|
|
649
|
+
metadata?: Partial<{
|
|
650
650
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
651
651
|
}> | undefined;
|
|
652
652
|
}>;
|
|
@@ -660,8 +660,8 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
660
660
|
comment: string | null;
|
|
661
661
|
typeId: import("../../orm/schemas/uuid.js").Uuid | null;
|
|
662
662
|
requiredFilesCount: number;
|
|
663
|
-
|
|
664
|
-
|
|
663
|
+
collectionIds: string[];
|
|
664
|
+
metadata?: Partial<{
|
|
665
665
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
666
666
|
}> | undefined;
|
|
667
667
|
}>;
|
|
@@ -677,7 +677,7 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
677
677
|
typeId?: import("../../orm/types.js").Uuid | null | undefined;
|
|
678
678
|
requiredFilesCount?: number | undefined;
|
|
679
679
|
completed?: boolean | undefined;
|
|
680
|
-
|
|
680
|
+
metadata?: Partial<{
|
|
681
681
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
682
682
|
}> | undefined;
|
|
683
683
|
}>;
|
|
@@ -689,7 +689,7 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
689
689
|
method: "DELETE";
|
|
690
690
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
691
691
|
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
692
|
-
|
|
692
|
+
metadata?: Partial<{
|
|
693
693
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
694
694
|
}> | undefined;
|
|
695
695
|
}>;
|
|
@@ -702,7 +702,7 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
702
702
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
703
703
|
collectionId: import("../../orm/schemas/uuid.js").Uuid;
|
|
704
704
|
documentId: import("../../orm/schemas/uuid.js").Uuid;
|
|
705
|
-
|
|
705
|
+
metadata?: Partial<{
|
|
706
706
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
707
707
|
}> | undefined;
|
|
708
708
|
}>;
|
|
@@ -715,7 +715,7 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
715
715
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
716
716
|
collectionId: import("../../orm/schemas/uuid.js").Uuid;
|
|
717
717
|
documentId: import("../../orm/schemas/uuid.js").Uuid;
|
|
718
|
-
|
|
718
|
+
metadata?: Partial<{
|
|
719
719
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
720
720
|
}> | undefined;
|
|
721
721
|
}>;
|
|
@@ -728,18 +728,18 @@ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
|
|
|
728
728
|
parameters: import("../../schema/index.js").ObjectSchema<{
|
|
729
729
|
id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
|
|
730
730
|
date?: import("../../orm/types.js").NumericDate | null | undefined;
|
|
731
|
+
title?: string | null | undefined;
|
|
731
732
|
expiration?: import("../../orm/types.js").NumericDate | null | undefined;
|
|
732
733
|
fileId?: import("../../orm/types.js").Uuid | undefined;
|
|
733
734
|
typeId?: import("../../orm/types.js").Uuid | null | undefined;
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
readonly metadata?: Partial<{
|
|
735
|
+
properties?: {
|
|
736
|
+
value: unknown;
|
|
737
|
+
metadata?: Partial<{
|
|
738
738
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
739
739
|
}> | undefined;
|
|
740
740
|
propertyId: import("../../orm/schemas/uuid.js").Uuid;
|
|
741
741
|
}[] | undefined;
|
|
742
|
-
|
|
742
|
+
metadata?: Partial<{
|
|
743
743
|
attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
|
|
744
744
|
}> | undefined;
|
|
745
745
|
}>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { References } from '../../orm/decorators.js';
|
|
11
|
+
import { Entity } from '../../orm/entity.js';
|
|
12
|
+
import { Array, Uuid } from '../../orm/types.js';
|
|
13
|
+
import { string, StringProperty } from '../../schema/index.js';
|
|
14
|
+
import { Document } from './document.model.js';
|
|
15
|
+
export class DocumentIndex extends Entity {
|
|
16
|
+
documentId;
|
|
17
|
+
summary;
|
|
18
|
+
tags;
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
Uuid(),
|
|
22
|
+
References(() => Document),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], DocumentIndex.prototype, "documentId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
StringProperty(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], DocumentIndex.prototype, "summary", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
Array(string()),
|
|
31
|
+
__metadata("design:type", Array)
|
|
32
|
+
], DocumentIndex.prototype, "tags", void 0);
|
|
@@ -3,7 +3,7 @@ import { Timestamp, Uuid } from '../../orm/types.js';
|
|
|
3
3
|
export declare class DocumentRequestFile extends Entity {
|
|
4
4
|
requestId: Uuid;
|
|
5
5
|
fileId: Uuid;
|
|
6
|
-
|
|
6
|
+
title: string | null;
|
|
7
7
|
createdDocumentId: Uuid | null;
|
|
8
8
|
approval: boolean | null;
|
|
9
9
|
approvalComment: string | null;
|