@tstdl/base 0.91.50 → 0.91.52

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.
Files changed (164) hide show
  1. package/ai/data-extracting.d.ts +1 -0
  2. package/ai/data-extracting.js +62 -0
  3. package/authentication/server/authentication.api-controller.js +4 -4
  4. package/cancellation/token.d.ts +1 -2
  5. package/cancellation/token.js +1 -1
  6. package/core.d.ts +1 -1
  7. package/core.js +1 -1
  8. package/document-management/api/document-management.api.d.ts +753 -0
  9. package/document-management/api/document-management.api.js +222 -0
  10. package/document-management/api/index.d.ts +1 -0
  11. package/document-management/api/index.js +1 -0
  12. package/document-management/drizzle/0000_wakeful_firebrand.sql +228 -0
  13. package/document-management/drizzle/meta/0000_snapshot.json +1538 -0
  14. package/document-management/drizzle/meta/_journal.json +13 -0
  15. package/document-management/drizzle.config.d.ts +2 -0
  16. package/document-management/drizzle.config.js +11 -0
  17. package/document-management/index.d.ts +5 -0
  18. package/document-management/index.js +5 -0
  19. package/document-management/localizations/english.d.ts +2 -0
  20. package/document-management/localizations/english.js +9 -0
  21. package/document-management/localizations/german.d.ts +2 -0
  22. package/document-management/localizations/german.js +9 -0
  23. package/document-management/localizations/index.d.ts +5 -0
  24. package/document-management/localizations/index.js +9 -0
  25. package/document-management/localizations/localization.d.ts +9 -0
  26. package/document-management/localizations/localization.js +2 -0
  27. package/document-management/models/document-category.model.d.ts +4 -0
  28. package/document-management/models/document-category.model.js +18 -0
  29. package/document-management/models/document-collection-document.model.d.ts +7 -0
  30. package/document-management/models/document-collection-document.model.js +33 -0
  31. package/document-management/models/document-collection.model.d.ts +3 -0
  32. package/document-management/models/document-collection.model.js +14 -0
  33. package/document-management/models/document-file.model.d.ts +7 -0
  34. package/document-management/models/document-file.model.js +33 -0
  35. package/document-management/models/document-property-value.model.d.ts +21 -0
  36. package/document-management/models/document-property-value.model.js +58 -0
  37. package/document-management/models/document-property.model.d.ts +11 -0
  38. package/document-management/models/document-property.model.js +30 -0
  39. package/document-management/models/document-request-collection.model.d.ts +6 -0
  40. package/document-management/models/document-request-collection.model.js +28 -0
  41. package/document-management/models/document-request-file.model.d.ts +11 -0
  42. package/document-management/models/document-request-file.model.js +56 -0
  43. package/document-management/models/document-request-template.d.ts +10 -0
  44. package/document-management/models/document-request-template.js +39 -0
  45. package/document-management/models/document-request.model.d.ts +9 -0
  46. package/document-management/models/document-request.model.js +37 -0
  47. package/document-management/models/document-requests-template.d.ts +5 -0
  48. package/document-management/models/document-requests-template.js +23 -0
  49. package/document-management/models/document-type-property.model.d.ts +6 -0
  50. package/document-management/models/document-type-property.model.js +28 -0
  51. package/document-management/models/document-type.model.d.ts +7 -0
  52. package/document-management/models/document-type.model.js +32 -0
  53. package/document-management/models/document.model.d.ts +9 -0
  54. package/document-management/models/document.model.js +44 -0
  55. package/document-management/models/index.d.ts +15 -0
  56. package/document-management/models/index.js +15 -0
  57. package/document-management/models/schemas.d.ts +33 -0
  58. package/document-management/models/schemas.js +34 -0
  59. package/document-management/models/service-models/categories-and-types.view-model.d.ts +6 -0
  60. package/document-management/models/service-models/categories-and-types.view-model.js +24 -0
  61. package/document-management/models/service-models/document-folders.view-model.d.ts +22 -0
  62. package/document-management/models/service-models/document-folders.view-model.js +56 -0
  63. package/document-management/models/service-models/document-requests-template.view-model.d.ts +8 -0
  64. package/document-management/models/service-models/document-requests-template.view-model.js +26 -0
  65. package/document-management/models/service-models/document.service-model.d.ts +262 -0
  66. package/document-management/models/service-models/document.service-model.js +50 -0
  67. package/document-management/models/service-models/document.view-model.d.ts +33 -0
  68. package/document-management/models/service-models/document.view-model.js +99 -0
  69. package/document-management/models/service-models/index.d.ts +8 -0
  70. package/document-management/models/service-models/index.js +8 -0
  71. package/document-management/models/service-models/normalized-document-collection-view.model.d.ts +73 -0
  72. package/document-management/models/service-models/normalized-document-collection-view.model.js +110 -0
  73. package/document-management/models/service-models/normalized-requests-template-data.model.d.ts +16 -0
  74. package/document-management/models/service-models/normalized-requests-template-data.model.js +13 -0
  75. package/document-management/models/service-models/stats.view-model.d.ts +6 -0
  76. package/document-management/models/service-models/stats.view-model.js +32 -0
  77. package/document-management/module.d.ts +11 -0
  78. package/document-management/module.js +27 -0
  79. package/document-management/services/document-management.service.d.ts +65 -0
  80. package/document-management/services/document-management.service.js +376 -0
  81. package/document-management/services/index.d.ts +1 -0
  82. package/document-management/services/index.js +1 -0
  83. package/examples/document-management/main.d.ts +1 -0
  84. package/examples/document-management/main.js +30 -0
  85. package/examples/orm/drizzle.config.js +2 -1
  86. package/examples/orm/schemas.d.ts +1 -1
  87. package/examples/orm/user.model.d.ts +1 -2
  88. package/examples/orm/user.model.js +0 -1
  89. package/http/server/node/node-http-server.js +5 -5
  90. package/injector/injector.d.ts +4 -1
  91. package/injector/injector.js +4 -1
  92. package/injector/interfaces.d.ts +3 -3
  93. package/json-path/json-path.d.ts +2 -0
  94. package/json-path/json-path.js +7 -0
  95. package/message-bus/message-bus.d.ts +4 -6
  96. package/orm/database-schema.d.ts +3 -0
  97. package/orm/database-schema.js +6 -2
  98. package/orm/database.d.ts +6 -0
  99. package/orm/database.js +14 -0
  100. package/orm/decorators.d.ts +25 -2
  101. package/orm/decorators.js +15 -0
  102. package/orm/drizzle/index.d.ts +1 -0
  103. package/orm/drizzle/index.js +1 -0
  104. package/orm/drizzle/schema-converter.d.ts +37 -8
  105. package/orm/drizzle/schema-converter.js +121 -40
  106. package/orm/entity.d.ts +15 -12
  107. package/orm/entity.js +24 -11
  108. package/orm/index.d.ts +3 -2
  109. package/orm/index.js +3 -2
  110. package/orm/module.d.ts +6 -0
  111. package/orm/module.js +15 -0
  112. package/orm/query-converter.d.ts +5 -0
  113. package/orm/query-converter.js +114 -0
  114. package/orm/query.d.ts +15 -13
  115. package/orm/repository.d.ts +90 -31
  116. package/orm/repository.js +357 -55
  117. package/orm/schemas/index.d.ts +3 -0
  118. package/orm/schemas/index.js +3 -0
  119. package/orm/schemas/json.d.ts +9 -0
  120. package/orm/schemas/json.js +19 -0
  121. package/orm/schemas/numeric-date.d.ts +8 -0
  122. package/orm/schemas/numeric-date.js +13 -0
  123. package/orm/schemas/timestamp.d.ts +10 -0
  124. package/orm/schemas/timestamp.js +20 -0
  125. package/orm/transaction.d.ts +29 -0
  126. package/orm/transaction.js +73 -0
  127. package/orm/types.d.ts +15 -8
  128. package/orm/types.js +3 -2
  129. package/package.json +23 -12
  130. package/{rxjs → rxjs-utils}/reject-error.d.ts +1 -1
  131. package/{rxjs → rxjs-utils}/retry-backoff.d.ts +2 -2
  132. package/{rxjs → rxjs-utils}/slow-array.d.ts +7 -7
  133. package/{rxjs → rxjs-utils}/slow-array.js +2 -2
  134. package/{rxjs → rxjs-utils}/start-with-provider.d.ts +1 -1
  135. package/{rxjs → rxjs-utils}/teardown.d.ts +1 -1
  136. package/{rxjs → rxjs-utils}/untrack.d.ts +1 -1
  137. package/schema/decorators/types.d.ts +2 -2
  138. package/schema/schemas/number.d.ts +1 -1
  139. package/signals/pipe.d.ts +1 -1
  140. package/signals/pipe.js +1 -2
  141. package/sse/server-sent-events.d.ts +54 -0
  142. package/sse/server-sent-events.js +54 -0
  143. package/types.d.ts +5 -1
  144. package/utils/comparison.d.ts +2 -1
  145. package/utils/comparison.js +4 -3
  146. package/utils/compression.d.ts +4 -4
  147. package/utils/compression.js +35 -43
  148. package/utils/object/dereference.d.ts +6 -4
  149. package/utils/object/dereference.js +20 -8
  150. package/utils/object/object.d.ts +2 -0
  151. package/utils/object/object.js +20 -0
  152. /package/{rxjs → rxjs-utils}/cast.d.ts +0 -0
  153. /package/{rxjs → rxjs-utils}/cast.js +0 -0
  154. /package/{rxjs → rxjs-utils}/index.d.ts +0 -0
  155. /package/{rxjs → rxjs-utils}/index.js +0 -0
  156. /package/{rxjs → rxjs-utils}/noop.d.ts +0 -0
  157. /package/{rxjs → rxjs-utils}/noop.js +0 -0
  158. /package/{rxjs → rxjs-utils}/reject-error.js +0 -0
  159. /package/{rxjs → rxjs-utils}/retry-backoff.js +0 -0
  160. /package/{rxjs → rxjs-utils}/start-with-provider.js +0 -0
  161. /package/{rxjs → rxjs-utils}/teardown.js +0 -0
  162. /package/{rxjs → rxjs-utils}/timing.d.ts +0 -0
  163. /package/{rxjs → rxjs-utils}/timing.js +0 -0
  164. /package/{rxjs → rxjs-utils}/untrack.js +0 -0
@@ -0,0 +1,753 @@
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
+ };
377
+ declare const _DocumentManagementApi: import("../../api/index.js").ApiClient<{
378
+ resource: string;
379
+ endpoints: {
380
+ loadData: {
381
+ resource: string;
382
+ method: "GET";
383
+ parameters: import("../../schema/index.js").ObjectSchema<{
384
+ readonly collectionIds: string | string[];
385
+ readonly collectionsMetadata: Partial<import("../../schema/index.js").Record<string, {
386
+ readonly name?: string | null | undefined;
387
+ readonly group?: string | null | undefined;
388
+ }>>;
389
+ }>;
390
+ result: typeof DocumentManagementData;
391
+ credentials: true;
392
+ };
393
+ loadDocumentRequestsTemplateData: {
394
+ resource: string;
395
+ method: "GET";
396
+ result: typeof DocumentRequestsTemplateData;
397
+ credentials: true;
398
+ };
399
+ loadAvailableCategoriesAndTypes: {
400
+ resource: string;
401
+ method: "GET";
402
+ result: typeof CategoryAndTypesView;
403
+ credentials: true;
404
+ };
405
+ loadFileContent: {
406
+ resource: string;
407
+ method: "GET";
408
+ parameters: import("../../schema/index.js").ObjectSchema<{
409
+ readonly title: string | null;
410
+ readonly id: string;
411
+ readonly download?: boolean | undefined;
412
+ }>;
413
+ result: Uint8ArrayConstructor;
414
+ credentials: true;
415
+ };
416
+ getFileContentUrl: {
417
+ resource: string;
418
+ method: "GET";
419
+ parameters: import("../../schema/index.js").ObjectSchema<{
420
+ readonly title: string | null;
421
+ readonly id: string;
422
+ readonly download?: boolean | undefined;
423
+ }>;
424
+ result: import("../../schema/index.js").StringSchema;
425
+ credentials: true;
426
+ };
427
+ createCategory: {
428
+ resource: string;
429
+ method: "POST";
430
+ parameters: import("../../schema/index.js").ObjectSchema<{
431
+ label: string;
432
+ readonly metadata?: Partial<{
433
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
434
+ }> | undefined;
435
+ }>;
436
+ result: typeof DocumentCategory;
437
+ credentials: true;
438
+ };
439
+ createType: {
440
+ resource: string;
441
+ method: "POST";
442
+ parameters: import("../../schema/index.js").ObjectSchema<{
443
+ group: string | null;
444
+ label: string;
445
+ categoryId: import("../../orm/schemas/uuid.js").Uuid;
446
+ readonly metadata?: Partial<{
447
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
448
+ }> | undefined;
449
+ }>;
450
+ result: typeof DocumentType;
451
+ credentials: true;
452
+ };
453
+ createCollection: {
454
+ resource: string;
455
+ method: "POST";
456
+ parameters: import("../../schema/index.js").ObjectSchema<{
457
+ readonly metadata?: Partial<{
458
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
459
+ }> | undefined;
460
+ }>;
461
+ result: typeof DocumentCollection;
462
+ credentials: true;
463
+ };
464
+ createDocument: {
465
+ resource: string;
466
+ method: "POST";
467
+ parameters: import("../../schema/index.js").ObjectSchema<{
468
+ date: import("../../orm/schemas/numeric-date.js").NumericDate | null;
469
+ expiration: import("../../orm/schemas/numeric-date.js").NumericDate | null;
470
+ typeId: import("../../orm/schemas/uuid.js").Uuid | null;
471
+ addition: string | null;
472
+ originalFileName: string | null;
473
+ readonly collectionIds: string | string[];
474
+ readonly properties?: {
475
+ readonly value: unknown;
476
+ readonly metadata?: Partial<{
477
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
478
+ }> | undefined;
479
+ propertyId: import("../../orm/schemas/uuid.js").Uuid;
480
+ }[] | undefined;
481
+ readonly metadata?: Partial<{
482
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
483
+ }> | undefined;
484
+ }>;
485
+ body: Uint8ArrayConstructor;
486
+ maxBytes: number;
487
+ result: typeof Document;
488
+ credentials: true;
489
+ };
490
+ createDocumentRequestsTemplate: {
491
+ resource: string;
492
+ method: "POST";
493
+ parameters: import("../../schema/index.js").ObjectSchema<{
494
+ description: string | null;
495
+ label: string;
496
+ readonly metadata?: Partial<{
497
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
498
+ }> | undefined;
499
+ }>;
500
+ result: typeof DocumentRequestsTemplate;
501
+ credentials: true;
502
+ };
503
+ updateDocumentRequestsTemplate: {
504
+ resource: string;
505
+ method: "PATCH";
506
+ parameters: import("../../schema/index.js").ObjectSchema<{
507
+ id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
508
+ description?: string | null | undefined;
509
+ label?: string | undefined;
510
+ readonly metadata?: Partial<{
511
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
512
+ }> | undefined;
513
+ }>;
514
+ result: typeof DocumentRequestsTemplate;
515
+ credentials: true;
516
+ };
517
+ applyDocumentRequestsTemplate: {
518
+ resource: string;
519
+ method: "POST";
520
+ parameters: import("../../schema/index.js").ObjectSchema<{
521
+ id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
522
+ readonly collectionIds: string[];
523
+ readonly metadata?: Partial<{
524
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
525
+ }> | undefined;
526
+ }>;
527
+ result: import("../../schema/index.js").LiteralSchema<"ok">;
528
+ credentials: true;
529
+ };
530
+ deleteDocumentRequestsTemplate: {
531
+ resource: string;
532
+ method: "DELETE";
533
+ parameters: import("../../schema/index.js").ObjectSchema<{
534
+ id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
535
+ readonly metadata?: Partial<{
536
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
537
+ }> | undefined;
538
+ }>;
539
+ result: import("../../schema/index.js").LiteralSchema<"ok">;
540
+ credentials: true;
541
+ };
542
+ createDocumentRequestTemplate: {
543
+ resource: string;
544
+ method: "POST";
545
+ parameters: import("../../schema/index.js").ObjectSchema<{
546
+ comment: string | null;
547
+ typeId: import("../../orm/schemas/uuid.js").Uuid | null;
548
+ requiredFilesCount: number;
549
+ requestsTemplateId: import("../../orm/schemas/uuid.js").Uuid;
550
+ readonly metadata?: Partial<{
551
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
552
+ }> | undefined;
553
+ }>;
554
+ result: typeof DocumentRequestTemplate;
555
+ credentials: true;
556
+ };
557
+ updateDocumentRequestTemplate: {
558
+ resource: string;
559
+ method: "PATCH";
560
+ parameters: import("../../schema/index.js").ObjectSchema<{
561
+ id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
562
+ comment?: string | null | undefined;
563
+ typeId?: import("../../orm/types.js").Uuid | null | undefined;
564
+ requiredFilesCount?: number | undefined;
565
+ readonly metadata?: Partial<{
566
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
567
+ }> | undefined;
568
+ }>;
569
+ result: typeof DocumentRequestTemplate;
570
+ credentials: true;
571
+ };
572
+ deleteDocumentRequestTemplate: {
573
+ resource: string;
574
+ method: "DELETE";
575
+ parameters: import("../../schema/index.js").ObjectSchema<{
576
+ id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
577
+ readonly metadata?: Partial<{
578
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
579
+ }> | undefined;
580
+ }>;
581
+ result: import("../../schema/index.js").LiteralSchema<"ok">;
582
+ credentials: true;
583
+ };
584
+ createDocumentRequestFile: {
585
+ resource: string;
586
+ method: "POST";
587
+ parameters: import("../../schema/index.js").ObjectSchema<{
588
+ readonly requestId: string;
589
+ addition: string | null;
590
+ originalFileName: string | null;
591
+ readonly metadata?: Partial<{
592
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
593
+ }> | undefined;
594
+ }>;
595
+ body: Uint8ArrayConstructor;
596
+ result: typeof DocumentRequestFile;
597
+ maxBytes: number;
598
+ credentials: true;
599
+ };
600
+ approveDocumentRequestFile: {
601
+ resource: string;
602
+ method: "POST";
603
+ parameters: import("../../schema/index.js").ObjectSchema<{
604
+ id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
605
+ approvalComment: string | null;
606
+ readonly documentMetadata?: Partial<{
607
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
608
+ }> | undefined;
609
+ readonly requestFileMetadata?: Partial<{
610
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
611
+ }> | undefined;
612
+ }>;
613
+ result: typeof Document;
614
+ credentials: true;
615
+ };
616
+ rejectDocumentRequestFile: {
617
+ resource: string;
618
+ method: "POST";
619
+ parameters: import("../../schema/index.js").ObjectSchema<{
620
+ id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
621
+ approvalComment: string | null;
622
+ readonly metadata?: Partial<{
623
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
624
+ }> | undefined;
625
+ }>;
626
+ result: import("../../schema/index.js").LiteralSchema<"ok">;
627
+ credentials: true;
628
+ };
629
+ updateDocumentRequestFile: {
630
+ resource: string;
631
+ method: "PATCH";
632
+ parameters: import("../../schema/index.js").ObjectSchema<{
633
+ id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
634
+ addition?: string | null | undefined;
635
+ approvalComment?: string | null | undefined;
636
+ approvalTimestamp?: import("../../orm/types.js").Timestamp | null | undefined;
637
+ readonly metadata?: Partial<{
638
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
639
+ }> | undefined;
640
+ }>;
641
+ result: typeof DocumentRequestFile;
642
+ credentials: true;
643
+ };
644
+ deleteDocumentRequestFile: {
645
+ resource: string;
646
+ method: "DELETE";
647
+ parameters: import("../../schema/index.js").ObjectSchema<{
648
+ id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
649
+ readonly metadata?: Partial<{
650
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
651
+ }> | undefined;
652
+ }>;
653
+ result: import("../../schema/index.js").LiteralSchema<"ok">;
654
+ credentials: true;
655
+ };
656
+ createDocumentRequest: {
657
+ resource: string;
658
+ method: "POST";
659
+ parameters: import("../../schema/index.js").ObjectSchema<{
660
+ comment: string | null;
661
+ typeId: import("../../orm/schemas/uuid.js").Uuid | null;
662
+ requiredFilesCount: number;
663
+ readonly collectionIds: string[];
664
+ readonly metadata?: Partial<{
665
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
666
+ }> | undefined;
667
+ }>;
668
+ result: typeof DocumentRequest;
669
+ credentials: true;
670
+ };
671
+ updateDocumentRequest: {
672
+ resource: string;
673
+ method: "PATCH";
674
+ parameters: import("../../schema/index.js").ObjectSchema<{
675
+ id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
676
+ comment?: string | null | undefined;
677
+ typeId?: import("../../orm/types.js").Uuid | null | undefined;
678
+ requiredFilesCount?: number | undefined;
679
+ completed?: boolean | undefined;
680
+ readonly metadata?: Partial<{
681
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
682
+ }> | undefined;
683
+ }>;
684
+ result: import("../../schema/index.js").LiteralSchema<"ok">;
685
+ credentials: true;
686
+ };
687
+ deleteDocumentRequest: {
688
+ resource: string;
689
+ method: "DELETE";
690
+ parameters: import("../../schema/index.js").ObjectSchema<{
691
+ id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
692
+ readonly metadata?: Partial<{
693
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
694
+ }> | undefined;
695
+ }>;
696
+ result: import("../../schema/index.js").LiteralSchema<"ok">;
697
+ credentials: true;
698
+ };
699
+ addDocumentToCollection: {
700
+ resource: string;
701
+ method: "PUT";
702
+ parameters: import("../../schema/index.js").ObjectSchema<{
703
+ collectionId: import("../../orm/schemas/uuid.js").Uuid;
704
+ documentId: import("../../orm/schemas/uuid.js").Uuid;
705
+ readonly metadata?: Partial<{
706
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
707
+ }> | undefined;
708
+ }>;
709
+ result: import("../../schema/index.js").LiteralSchema<"ok">;
710
+ credentials: true;
711
+ };
712
+ archiveDocument: {
713
+ resource: string;
714
+ method: "DELETE";
715
+ parameters: import("../../schema/index.js").ObjectSchema<{
716
+ collectionId: import("../../orm/schemas/uuid.js").Uuid;
717
+ documentId: import("../../orm/schemas/uuid.js").Uuid;
718
+ readonly metadata?: Partial<{
719
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
720
+ }> | undefined;
721
+ }>;
722
+ result: import("../../schema/index.js").LiteralSchema<"ok">;
723
+ credentials: true;
724
+ };
725
+ updateDocument: {
726
+ resource: string;
727
+ method: "PATCH";
728
+ parameters: import("../../schema/index.js").ObjectSchema<{
729
+ id: import("../../orm/types.js").IsPrimaryKey<import("../../orm/types.js").HasDefault<import("../../orm/schemas/uuid.js").Uuid>>;
730
+ date?: import("../../orm/types.js").NumericDate | null | undefined;
731
+ expiration?: import("../../orm/types.js").NumericDate | null | undefined;
732
+ fileId?: import("../../orm/types.js").Uuid | undefined;
733
+ typeId?: import("../../orm/types.js").Uuid | null | undefined;
734
+ addition?: string | null | undefined;
735
+ readonly properties?: {
736
+ readonly value: unknown;
737
+ readonly metadata?: Partial<{
738
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
739
+ }> | undefined;
740
+ propertyId: import("../../orm/schemas/uuid.js").Uuid;
741
+ }[] | undefined;
742
+ readonly metadata?: Partial<{
743
+ attributes: import("../../orm/types.js").HasDefault<import("../../orm/schemas/json.js").Json<import("../../orm/entity.js").EntityMetadataAttributes>>;
744
+ }> | undefined;
745
+ }>;
746
+ result: import("../../schema/index.js").LiteralSchema<"ok">;
747
+ credentials: true;
748
+ };
749
+ };
750
+ }>;
751
+ export declare class DocumentManagementApi extends _DocumentManagementApi {
752
+ }
753
+ export {};