iom-sdk 0.1.2
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/README.md +31 -0
- package/dist/client.d.ts +96 -0
- package/dist/core/http-client.d.ts +32 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/logger.d.ts +17 -0
- package/dist/facade/address-facade.d.ts +62 -0
- package/dist/facade/aggregate-facade.d.ts +59 -0
- package/dist/facade/common-facade.d.ts +33 -0
- package/dist/facade/file-facade.d.ts +84 -0
- package/dist/facade/index.d.ts +6 -0
- package/dist/facade/object-facade.d.ts +19 -0
- package/dist/facade/property-facade.d.ts +39 -0
- package/dist/facade/property-value-facade.d.ts +37 -0
- package/dist/index.d.ts +2064 -0
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/services/address-service.d.ts +87 -0
- package/dist/services/aggregate-service.d.ts +69 -0
- package/dist/services/common-service.d.ts +33 -0
- package/dist/services/file-service.d.ts +84 -0
- package/dist/services/index.d.ts +9 -0
- package/dist/services/object-service.d.ts +50 -0
- package/dist/services/property-service.d.ts +68 -0
- package/dist/services/property-value-service.d.ts +50 -0
- package/dist/services/statement-service.d.ts +175 -0
- package/dist/services/uuid-service.d.ts +97 -0
- package/dist/types/index.d.ts +457 -0
- package/dist/validation/index.d.ts +3 -0
- package/dist/validation/query-params.d.ts +32 -0
- package/dist/validation/schemas.d.ts +1177 -0
- package/dist/validation/validate.d.ts +36 -0
- package/package.json +82 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2064 @@
|
|
|
1
|
+
import * as axios from 'axios';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
type UUID$1 = string;
|
|
5
|
+
declare enum Predicate$1 {
|
|
6
|
+
IS_PARENT_OF = "IS_PARENT_OF",
|
|
7
|
+
IS_CHILD_OF = "IS_CHILD_OF",
|
|
8
|
+
IS_INPUT_OF = "IS_INPUT_OF",
|
|
9
|
+
IS_OUTPUT_OF = "IS_OUTPUT_OF",
|
|
10
|
+
IS_SOURCE_TEMPLATE_OF = "IS_SOURCE_TEMPLATE_OF",
|
|
11
|
+
IS_TEMPLATE_INSTANCE_OF = "IS_TEMPLATE_INSTANCE_OF",
|
|
12
|
+
IS_PROPERTY_OF = "IS_PROPERTY_OF",
|
|
13
|
+
HAS_PROPERTY = "HAS_PROPERTY",
|
|
14
|
+
IS_VALUE_OF = "IS_VALUE_OF",
|
|
15
|
+
HAS_VALUE = "HAS_VALUE",
|
|
16
|
+
IS_FILE_OF = "IS_FILE_OF",
|
|
17
|
+
HAS_FILE = "HAS_FILE",
|
|
18
|
+
HAS_ADDRESS = "HAS_ADDRESS",
|
|
19
|
+
IS_ADDRESS_OF = "IS_ADDRESS_OF"
|
|
20
|
+
}
|
|
21
|
+
interface QueryParams$1 {
|
|
22
|
+
uuid?: UUID$1;
|
|
23
|
+
softDeleted?: boolean;
|
|
24
|
+
}
|
|
25
|
+
interface UUStatementFindDTO$1 {
|
|
26
|
+
subject?: UUID$1;
|
|
27
|
+
predicate?: Predicate$1;
|
|
28
|
+
object?: UUID$1;
|
|
29
|
+
softDeleted?: boolean;
|
|
30
|
+
}
|
|
31
|
+
interface StatementQueryParams$1 extends UUStatementFindDTO$1 {
|
|
32
|
+
}
|
|
33
|
+
interface UUStatementsPropertyValue$1 {
|
|
34
|
+
value?: string;
|
|
35
|
+
}
|
|
36
|
+
interface UUStatementsProperty$1 {
|
|
37
|
+
key?: string;
|
|
38
|
+
values?: UUStatementsPropertyValue$1[];
|
|
39
|
+
}
|
|
40
|
+
interface UUStatementDTO$1 {
|
|
41
|
+
subject: UUID$1;
|
|
42
|
+
predicate: Predicate$1;
|
|
43
|
+
object: UUID$1;
|
|
44
|
+
properties?: UUStatementsProperty$1[];
|
|
45
|
+
}
|
|
46
|
+
interface UUPropertyDTO$1 {
|
|
47
|
+
uuid: UUID$1;
|
|
48
|
+
key: string;
|
|
49
|
+
version?: string;
|
|
50
|
+
label?: string;
|
|
51
|
+
description?: string;
|
|
52
|
+
type?: string;
|
|
53
|
+
inputType?: string;
|
|
54
|
+
formula?: string;
|
|
55
|
+
inputOrderPosition?: number;
|
|
56
|
+
processingOrderPosition?: number;
|
|
57
|
+
viewOrderPosition?: number;
|
|
58
|
+
}
|
|
59
|
+
interface UUPropertyValueDTO$1 {
|
|
60
|
+
uuid: UUID$1;
|
|
61
|
+
value?: string;
|
|
62
|
+
valueTypeCast?: string;
|
|
63
|
+
sourceType?: string;
|
|
64
|
+
}
|
|
65
|
+
interface UUObjectDTO$1 {
|
|
66
|
+
uuid: UUID$1;
|
|
67
|
+
version?: string;
|
|
68
|
+
name?: string;
|
|
69
|
+
abbreviation?: string;
|
|
70
|
+
description?: string;
|
|
71
|
+
isTemplate?: boolean;
|
|
72
|
+
}
|
|
73
|
+
interface UUFileDTO$1 {
|
|
74
|
+
uuid: UUID$1;
|
|
75
|
+
fileName?: string;
|
|
76
|
+
fileReference?: string;
|
|
77
|
+
label?: string;
|
|
78
|
+
contentType?: string;
|
|
79
|
+
size?: number;
|
|
80
|
+
}
|
|
81
|
+
interface UUAddressDTO$1 {
|
|
82
|
+
uuid: UUID$1;
|
|
83
|
+
fullAddress?: string;
|
|
84
|
+
street?: string;
|
|
85
|
+
houseNumber?: string;
|
|
86
|
+
city?: string;
|
|
87
|
+
postalCode?: string;
|
|
88
|
+
country?: string;
|
|
89
|
+
state?: string;
|
|
90
|
+
district?: string;
|
|
91
|
+
}
|
|
92
|
+
interface ClientConfig$1 {
|
|
93
|
+
baseUrl: string;
|
|
94
|
+
uuidServiceBaseUrl?: string;
|
|
95
|
+
certificate?: {
|
|
96
|
+
cert: string;
|
|
97
|
+
key: string;
|
|
98
|
+
};
|
|
99
|
+
timeout?: number;
|
|
100
|
+
headers?: Record<string, string>;
|
|
101
|
+
debug?: {
|
|
102
|
+
enabled: boolean;
|
|
103
|
+
logLevel?: 'error' | 'info';
|
|
104
|
+
logToConsole?: boolean;
|
|
105
|
+
logCallback?: (message: string, data?: any) => void;
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
interface UUObjectWithProperties {
|
|
109
|
+
object: UUObjectDTO$1;
|
|
110
|
+
properties: Array<{
|
|
111
|
+
property: UUPropertyDTO$1;
|
|
112
|
+
value?: UUPropertyValueDTO$1;
|
|
113
|
+
}>;
|
|
114
|
+
children?: UUObjectDTO$1[];
|
|
115
|
+
files?: UUFileDTO$1[];
|
|
116
|
+
}
|
|
117
|
+
interface ComplexObjectCreationInput$1 {
|
|
118
|
+
object: Omit<UUObjectDTO$1, 'uuid'>;
|
|
119
|
+
parents?: UUID$1[];
|
|
120
|
+
files?: Array<{
|
|
121
|
+
file: Omit<UUFileDTO$1, 'uuid'>;
|
|
122
|
+
}>;
|
|
123
|
+
properties?: Array<{
|
|
124
|
+
property: Omit<UUPropertyDTO$1, 'uuid'> & {
|
|
125
|
+
key: string;
|
|
126
|
+
};
|
|
127
|
+
values?: Array<{
|
|
128
|
+
value: Omit<UUPropertyValueDTO$1, 'uuid'>;
|
|
129
|
+
files?: Array<{
|
|
130
|
+
file: Omit<UUFileDTO$1, 'uuid'>;
|
|
131
|
+
}>;
|
|
132
|
+
}>;
|
|
133
|
+
files?: Array<{
|
|
134
|
+
file: Omit<UUFileDTO$1, 'uuid'>;
|
|
135
|
+
}>;
|
|
136
|
+
}>;
|
|
137
|
+
address?: Omit<UUAddressDTO$1, 'uuid'>;
|
|
138
|
+
}
|
|
139
|
+
interface ComplexObjectOutput$1 {
|
|
140
|
+
object: UUObjectDTO$1;
|
|
141
|
+
properties: Array<{
|
|
142
|
+
property: UUPropertyDTO$1;
|
|
143
|
+
values: Array<{
|
|
144
|
+
value: UUPropertyValueDTO$1;
|
|
145
|
+
files: UUFileDTO$1[];
|
|
146
|
+
}>;
|
|
147
|
+
files: UUFileDTO$1[];
|
|
148
|
+
}>;
|
|
149
|
+
files: UUFileDTO$1[];
|
|
150
|
+
address?: UUAddressDTO$1;
|
|
151
|
+
parents?: UUObjectDTO$1[];
|
|
152
|
+
}
|
|
153
|
+
interface ApiResponse$1<T> {
|
|
154
|
+
data: T;
|
|
155
|
+
status: number;
|
|
156
|
+
statusText: string;
|
|
157
|
+
headers?: Record<string, string>;
|
|
158
|
+
}
|
|
159
|
+
interface ApiError {
|
|
160
|
+
status: number;
|
|
161
|
+
statusText: string;
|
|
162
|
+
message: string;
|
|
163
|
+
details?: any;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Auth response from mTLS authentication endpoint
|
|
167
|
+
* Based on actual API response structure with certificate information
|
|
168
|
+
*/
|
|
169
|
+
interface AuthResponse$1 {
|
|
170
|
+
userUUID: string;
|
|
171
|
+
credentials: string;
|
|
172
|
+
createdAt: string;
|
|
173
|
+
certificateInfo: {
|
|
174
|
+
certificateSha256: string;
|
|
175
|
+
subjectFields: {
|
|
176
|
+
CN: string;
|
|
177
|
+
[key: string]: string;
|
|
178
|
+
};
|
|
179
|
+
issuerFields: {
|
|
180
|
+
CN: string;
|
|
181
|
+
[key: string]: string;
|
|
182
|
+
};
|
|
183
|
+
serialNumber: string;
|
|
184
|
+
validFrom: string;
|
|
185
|
+
validTo: string;
|
|
186
|
+
subjectAlternativeNames: string[];
|
|
187
|
+
};
|
|
188
|
+
enabled: boolean;
|
|
189
|
+
accountNonExpired: boolean;
|
|
190
|
+
credentialsNonExpired: boolean;
|
|
191
|
+
accountNonLocked: boolean;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Aggregate search parameters for the /api/Aggregate/search endpoint
|
|
195
|
+
* Updated to support the new POST method with searchBy functionality
|
|
196
|
+
*/
|
|
197
|
+
interface AggregateFindDTO$1 {
|
|
198
|
+
page?: number;
|
|
199
|
+
size?: number;
|
|
200
|
+
hasChildrenFull?: boolean;
|
|
201
|
+
hasHistory?: boolean;
|
|
202
|
+
hasParentUUIDFilter?: boolean;
|
|
203
|
+
parentUUID?: string;
|
|
204
|
+
searchTerm?: string;
|
|
205
|
+
searchBy?: Record<string, any>;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Aggregate file entity with metadata
|
|
209
|
+
*/
|
|
210
|
+
interface AggregateFile {
|
|
211
|
+
createdAt?: string;
|
|
212
|
+
createdBy?: AuditUser$1;
|
|
213
|
+
lastUpdatedAt?: string;
|
|
214
|
+
lastUpdatedBy?: AuditUser$1;
|
|
215
|
+
softDeletedAt?: string;
|
|
216
|
+
softDeleteBy?: AuditUser$1;
|
|
217
|
+
softDeleted?: boolean;
|
|
218
|
+
uuid?: string;
|
|
219
|
+
fileName?: string;
|
|
220
|
+
fileReference?: string;
|
|
221
|
+
label?: string;
|
|
222
|
+
contentType?: string;
|
|
223
|
+
size?: number;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Aggregate property entity with optional values
|
|
227
|
+
*/
|
|
228
|
+
interface AggregateProperty {
|
|
229
|
+
createdAt?: string;
|
|
230
|
+
createdBy?: AuditUser$1;
|
|
231
|
+
lastUpdatedAt?: string;
|
|
232
|
+
lastUpdatedBy?: AuditUser$1;
|
|
233
|
+
softDeletedAt?: string;
|
|
234
|
+
softDeleteBy?: AuditUser$1;
|
|
235
|
+
softDeleted?: boolean;
|
|
236
|
+
uuid?: string;
|
|
237
|
+
key?: string;
|
|
238
|
+
version?: string;
|
|
239
|
+
label?: string;
|
|
240
|
+
description?: string;
|
|
241
|
+
type?: string;
|
|
242
|
+
inputType?: string;
|
|
243
|
+
formula?: string;
|
|
244
|
+
inputOrderPosition?: number;
|
|
245
|
+
processingOrderPosition?: number;
|
|
246
|
+
viewOrderPosition?: number;
|
|
247
|
+
values?: AggregateUUPropertyValue$1[];
|
|
248
|
+
files?: AggregateUUFile$1[];
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Aggregate address entity with metadata
|
|
252
|
+
*/
|
|
253
|
+
interface AggregateUUAddress$1 {
|
|
254
|
+
createdAt: string;
|
|
255
|
+
createdBy: string;
|
|
256
|
+
lastUpdatedAt: string;
|
|
257
|
+
lastUpdatedBy: string;
|
|
258
|
+
softDeletedAt?: string;
|
|
259
|
+
softDeleteBy?: string;
|
|
260
|
+
softDeleted: boolean;
|
|
261
|
+
uuid: string;
|
|
262
|
+
fullAddress?: string;
|
|
263
|
+
street?: string;
|
|
264
|
+
houseNumber?: string;
|
|
265
|
+
city?: string;
|
|
266
|
+
postalCode?: string;
|
|
267
|
+
country?: string;
|
|
268
|
+
state?: string;
|
|
269
|
+
district?: string;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Rich aggregate entity with all relationships and metadata
|
|
273
|
+
*/
|
|
274
|
+
interface AggregateEntity$1 {
|
|
275
|
+
createdAt?: string;
|
|
276
|
+
createdBy?: AuditUser$1;
|
|
277
|
+
lastUpdatedAt?: string;
|
|
278
|
+
lastUpdatedBy?: AuditUser$1;
|
|
279
|
+
softDeletedAt?: string;
|
|
280
|
+
softDeleteBy?: AuditUser$1;
|
|
281
|
+
softDeleted?: boolean;
|
|
282
|
+
uuid?: string;
|
|
283
|
+
name?: string;
|
|
284
|
+
abbreviation?: string;
|
|
285
|
+
version?: string;
|
|
286
|
+
description?: string;
|
|
287
|
+
isTemplate?: boolean;
|
|
288
|
+
address?: AggregateUUAddress$1;
|
|
289
|
+
parents?: string[];
|
|
290
|
+
children?: string[];
|
|
291
|
+
inputs?: string[];
|
|
292
|
+
outputs?: string[];
|
|
293
|
+
sourceTemplates?: string[];
|
|
294
|
+
templateInstances?: string[];
|
|
295
|
+
files?: AggregateUUFile$1[];
|
|
296
|
+
properties?: AggregateUUProperty$1[];
|
|
297
|
+
history?: AggregateUUObject$1[];
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Paginated response for aggregate entities
|
|
301
|
+
*/
|
|
302
|
+
interface PageAggregateEntity$1 {
|
|
303
|
+
totalPages: number;
|
|
304
|
+
totalElements: number;
|
|
305
|
+
size: number;
|
|
306
|
+
content: AggregateEntity$1[];
|
|
307
|
+
number: number;
|
|
308
|
+
numberOfElements: number;
|
|
309
|
+
first: boolean;
|
|
310
|
+
last: boolean;
|
|
311
|
+
empty: boolean;
|
|
312
|
+
pageable: {
|
|
313
|
+
paged: boolean;
|
|
314
|
+
pageNumber: number;
|
|
315
|
+
pageSize: number;
|
|
316
|
+
offset: number;
|
|
317
|
+
sort: {
|
|
318
|
+
sorted: boolean;
|
|
319
|
+
empty: boolean;
|
|
320
|
+
unsorted: boolean;
|
|
321
|
+
};
|
|
322
|
+
unpaged: boolean;
|
|
323
|
+
};
|
|
324
|
+
sort: {
|
|
325
|
+
sorted: boolean;
|
|
326
|
+
empty: boolean;
|
|
327
|
+
unsorted: boolean;
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
interface AggregateCreateDTO$1 {
|
|
331
|
+
aggregateEntityList: AggregateEntityCreateDTO$1[];
|
|
332
|
+
user: UserDetailsCustom$1;
|
|
333
|
+
}
|
|
334
|
+
interface AggregateEntityCreateDTO$1 {
|
|
335
|
+
name?: string;
|
|
336
|
+
abbreviation?: string;
|
|
337
|
+
version?: string;
|
|
338
|
+
description?: string;
|
|
339
|
+
isTemplate?: boolean;
|
|
340
|
+
parents?: UUID$1[];
|
|
341
|
+
address?: AggregateUUAddressCreateDTO$1;
|
|
342
|
+
files?: AggregateUUFileCreateDTO$1[];
|
|
343
|
+
properties?: AggregateUUPropertyCreateDTO$1[];
|
|
344
|
+
}
|
|
345
|
+
interface AggregateUUAddressCreateDTO$1 {
|
|
346
|
+
fullAddress?: string;
|
|
347
|
+
street?: string;
|
|
348
|
+
houseNumber?: string;
|
|
349
|
+
city?: string;
|
|
350
|
+
postalCode?: string;
|
|
351
|
+
country?: string;
|
|
352
|
+
state?: string;
|
|
353
|
+
district?: string;
|
|
354
|
+
}
|
|
355
|
+
interface AggregateUUFileCreateDTO$1 {
|
|
356
|
+
fileName?: string;
|
|
357
|
+
fileReference?: string;
|
|
358
|
+
label?: string;
|
|
359
|
+
contentType?: string;
|
|
360
|
+
size?: number;
|
|
361
|
+
}
|
|
362
|
+
interface AggregateUUPropertyCreateDTO$1 {
|
|
363
|
+
key?: string;
|
|
364
|
+
version?: string;
|
|
365
|
+
label?: string;
|
|
366
|
+
description?: string;
|
|
367
|
+
type?: string;
|
|
368
|
+
inputType?: string;
|
|
369
|
+
formula?: string;
|
|
370
|
+
inputOrderPosition?: number;
|
|
371
|
+
processingOrderPosition?: number;
|
|
372
|
+
viewOrderPosition?: number;
|
|
373
|
+
values?: AggregateUUPropertyValueCreateDTO$1[];
|
|
374
|
+
files?: AggregateUUFileCreateDTO$1[];
|
|
375
|
+
}
|
|
376
|
+
interface AggregateUUPropertyValueCreateDTO$1 {
|
|
377
|
+
value?: string;
|
|
378
|
+
valueTypeCast?: string;
|
|
379
|
+
sourceType?: string;
|
|
380
|
+
files?: AggregateUUFileCreateDTO$1[];
|
|
381
|
+
}
|
|
382
|
+
interface UserDetailsCustom$1 {
|
|
383
|
+
userUUID?: string;
|
|
384
|
+
credentials?: any;
|
|
385
|
+
createdAt?: string;
|
|
386
|
+
enabled?: boolean;
|
|
387
|
+
accountNonExpired?: boolean;
|
|
388
|
+
credentialsNonExpired?: boolean;
|
|
389
|
+
accountNonLocked?: boolean;
|
|
390
|
+
}
|
|
391
|
+
interface AuditUser$1 {
|
|
392
|
+
userUUID?: string;
|
|
393
|
+
credentials?: string;
|
|
394
|
+
}
|
|
395
|
+
interface AggregateUUFile$1 {
|
|
396
|
+
createdAt?: string;
|
|
397
|
+
createdBy?: AuditUser$1;
|
|
398
|
+
lastUpdatedAt?: string;
|
|
399
|
+
lastUpdatedBy?: AuditUser$1;
|
|
400
|
+
softDeletedAt?: string;
|
|
401
|
+
softDeleteBy?: AuditUser$1;
|
|
402
|
+
softDeleted?: boolean;
|
|
403
|
+
uuid?: string;
|
|
404
|
+
fileName?: string;
|
|
405
|
+
fileReference?: string;
|
|
406
|
+
label?: string;
|
|
407
|
+
contentType?: string;
|
|
408
|
+
size?: number;
|
|
409
|
+
}
|
|
410
|
+
interface AggregateUUProperty$1 {
|
|
411
|
+
createdAt?: string;
|
|
412
|
+
createdBy?: AuditUser$1;
|
|
413
|
+
lastUpdatedAt?: string;
|
|
414
|
+
lastUpdatedBy?: AuditUser$1;
|
|
415
|
+
softDeletedAt?: string;
|
|
416
|
+
softDeleteBy?: AuditUser$1;
|
|
417
|
+
softDeleted?: boolean;
|
|
418
|
+
uuid?: string;
|
|
419
|
+
key?: string;
|
|
420
|
+
version?: string;
|
|
421
|
+
label?: string;
|
|
422
|
+
description?: string;
|
|
423
|
+
type?: string;
|
|
424
|
+
inputType?: string;
|
|
425
|
+
formula?: string;
|
|
426
|
+
inputOrderPosition?: number;
|
|
427
|
+
processingOrderPosition?: number;
|
|
428
|
+
viewOrderPosition?: number;
|
|
429
|
+
values?: AggregateUUPropertyValue$1[];
|
|
430
|
+
files?: AggregateUUFile$1[];
|
|
431
|
+
}
|
|
432
|
+
interface AggregateUUPropertyValue$1 {
|
|
433
|
+
createdAt?: string;
|
|
434
|
+
createdBy?: AuditUser$1;
|
|
435
|
+
lastUpdatedAt?: string;
|
|
436
|
+
lastUpdatedBy?: AuditUser$1;
|
|
437
|
+
softDeletedAt?: string;
|
|
438
|
+
softDeleteBy?: AuditUser$1;
|
|
439
|
+
softDeleted?: boolean;
|
|
440
|
+
uuid?: string;
|
|
441
|
+
value?: string;
|
|
442
|
+
valueTypeCast?: string;
|
|
443
|
+
sourceType?: string;
|
|
444
|
+
files?: AggregateUUFile$1[];
|
|
445
|
+
}
|
|
446
|
+
interface AggregateUUObject$1 {
|
|
447
|
+
createdAt?: string;
|
|
448
|
+
createdBy?: AuditUser$1;
|
|
449
|
+
lastUpdatedAt?: string;
|
|
450
|
+
lastUpdatedBy?: AuditUser$1;
|
|
451
|
+
softDeletedAt?: string;
|
|
452
|
+
softDeleteBy?: AuditUser$1;
|
|
453
|
+
softDeleted?: boolean;
|
|
454
|
+
uuid?: string;
|
|
455
|
+
name?: string;
|
|
456
|
+
abbreviation?: string;
|
|
457
|
+
version?: string;
|
|
458
|
+
description?: string;
|
|
459
|
+
isTemplate?: boolean;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
// Common UUID pattern used throughout the API
|
|
463
|
+
type UUID = string;
|
|
464
|
+
|
|
465
|
+
// Predicate types for statements
|
|
466
|
+
declare enum Predicate {
|
|
467
|
+
IS_PARENT_OF = 'IS_PARENT_OF',
|
|
468
|
+
IS_CHILD_OF = 'IS_CHILD_OF',
|
|
469
|
+
IS_INPUT_OF = 'IS_INPUT_OF',
|
|
470
|
+
IS_OUTPUT_OF = 'IS_OUTPUT_OF',
|
|
471
|
+
IS_SOURCE_TEMPLATE_OF = 'IS_SOURCE_TEMPLATE_OF',
|
|
472
|
+
IS_TEMPLATE_INSTANCE_OF = 'IS_TEMPLATE_INSTANCE_OF',
|
|
473
|
+
IS_PROPERTY_OF = 'IS_PROPERTY_OF',
|
|
474
|
+
HAS_PROPERTY = 'HAS_PROPERTY',
|
|
475
|
+
IS_VALUE_OF = 'IS_VALUE_OF',
|
|
476
|
+
HAS_VALUE = 'HAS_VALUE',
|
|
477
|
+
IS_FILE_OF = 'IS_FILE_OF',
|
|
478
|
+
HAS_FILE = 'HAS_FILE',
|
|
479
|
+
HAS_ADDRESS = 'HAS_ADDRESS',
|
|
480
|
+
IS_ADDRESS_OF = 'IS_ADDRESS_OF'
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
// Common query parameters
|
|
484
|
+
interface QueryParams {
|
|
485
|
+
uuid?: UUID;
|
|
486
|
+
softDeleted?: boolean;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
// UUStatementFindDTO (from Swagger)
|
|
490
|
+
interface UUStatementFindDTO {
|
|
491
|
+
subject?: UUID;
|
|
492
|
+
predicate?: Predicate;
|
|
493
|
+
object?: UUID;
|
|
494
|
+
softDeleted?: boolean;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
// Statement query parameters (based on UUStatementFindDTO from Swagger)
|
|
498
|
+
interface StatementQueryParams extends UUStatementFindDTO {}
|
|
499
|
+
|
|
500
|
+
// UUStatementsPropertyValue Data Transfer Object
|
|
501
|
+
interface UUStatementsPropertyValue {
|
|
502
|
+
value?: string;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
// UUStatementsProperty Data Transfer Object
|
|
506
|
+
interface UUStatementsProperty {
|
|
507
|
+
key?: string;
|
|
508
|
+
values?: UUStatementsPropertyValue[];
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
// UUStatement Data Transfer Object
|
|
512
|
+
interface UUStatementDTO {
|
|
513
|
+
subject: UUID;
|
|
514
|
+
predicate: Predicate;
|
|
515
|
+
object: UUID;
|
|
516
|
+
properties?: UUStatementsProperty[];
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
// UUProperty Data Transfer Object
|
|
520
|
+
interface UUPropertyDTO {
|
|
521
|
+
uuid: UUID;
|
|
522
|
+
key: string;
|
|
523
|
+
version?: string;
|
|
524
|
+
label?: string;
|
|
525
|
+
description?: string;
|
|
526
|
+
type?: string;
|
|
527
|
+
inputType?: string;
|
|
528
|
+
formula?: string;
|
|
529
|
+
inputOrderPosition?: number;
|
|
530
|
+
processingOrderPosition?: number;
|
|
531
|
+
viewOrderPosition?: number;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
// UUPropertyValue Data Transfer Object
|
|
535
|
+
interface UUPropertyValueDTO {
|
|
536
|
+
uuid: UUID;
|
|
537
|
+
value?: string;
|
|
538
|
+
valueTypeCast?: string;
|
|
539
|
+
sourceType?: string;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
// UUObject Data Transfer Object
|
|
543
|
+
interface UUObjectDTO {
|
|
544
|
+
uuid: UUID;
|
|
545
|
+
version?: string;
|
|
546
|
+
name?: string;
|
|
547
|
+
abbreviation?: string;
|
|
548
|
+
description?: string;
|
|
549
|
+
isTemplate?: boolean;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
// UUFile Data Transfer Object
|
|
553
|
+
interface UUFileDTO {
|
|
554
|
+
uuid: UUID;
|
|
555
|
+
fileName?: string;
|
|
556
|
+
fileReference?: string;
|
|
557
|
+
label?: string;
|
|
558
|
+
contentType?: string;
|
|
559
|
+
size?: number;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
// UUAddress Data Transfer Object
|
|
563
|
+
interface UUAddressDTO {
|
|
564
|
+
uuid: UUID;
|
|
565
|
+
fullAddress?: string;
|
|
566
|
+
street?: string;
|
|
567
|
+
houseNumber?: string;
|
|
568
|
+
city?: string;
|
|
569
|
+
postalCode?: string;
|
|
570
|
+
country?: string;
|
|
571
|
+
state?: string;
|
|
572
|
+
district?: string;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
// Configure options for the client
|
|
576
|
+
interface ClientConfig {
|
|
577
|
+
baseUrl: string;
|
|
578
|
+
uuidServiceBaseUrl?: string; // Optional separate base URL for UUID service
|
|
579
|
+
certificate?: {
|
|
580
|
+
cert: string;
|
|
581
|
+
key: string;
|
|
582
|
+
};
|
|
583
|
+
timeout?: number;
|
|
584
|
+
headers?: Record<string, string>;
|
|
585
|
+
debug?: {
|
|
586
|
+
enabled: boolean;
|
|
587
|
+
logLevel?: 'error' | 'info';
|
|
588
|
+
logToConsole?: boolean;
|
|
589
|
+
logCallback?: (message: string, data?: any) => void;
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
// Complex object creation input
|
|
594
|
+
interface ComplexObjectCreationInput {
|
|
595
|
+
// Object details (UUID will be generated)
|
|
596
|
+
object: Omit<UUObjectDTO, 'uuid'>;
|
|
597
|
+
|
|
598
|
+
// Optional parent UUIDs to establish parent-child relationships
|
|
599
|
+
parents?: UUID[];
|
|
600
|
+
|
|
601
|
+
// Files to attach directly to the object
|
|
602
|
+
files?: Array<{
|
|
603
|
+
file: Omit<UUFileDTO, 'uuid'>;
|
|
604
|
+
}>;
|
|
605
|
+
|
|
606
|
+
// Properties with values and files
|
|
607
|
+
properties?: Array<{
|
|
608
|
+
// Property details (UUID will be generated)
|
|
609
|
+
property: Omit<UUPropertyDTO, 'uuid'> & { key: string };
|
|
610
|
+
|
|
611
|
+
// Multiple values for this property
|
|
612
|
+
values?: Array<{
|
|
613
|
+
// Value details (UUID will be generated)
|
|
614
|
+
value: Omit<UUPropertyValueDTO, 'uuid'>;
|
|
615
|
+
|
|
616
|
+
// Files attached to this specific value
|
|
617
|
+
files?: Array<{
|
|
618
|
+
file: Omit<UUFileDTO, 'uuid'>;
|
|
619
|
+
}>;
|
|
620
|
+
}>;
|
|
621
|
+
|
|
622
|
+
// Files attached to the property itself
|
|
623
|
+
files?: Array<{
|
|
624
|
+
file: Omit<UUFileDTO, 'uuid'>;
|
|
625
|
+
}>;
|
|
626
|
+
}>;
|
|
627
|
+
|
|
628
|
+
// Optional address to attach to the object
|
|
629
|
+
address?: Omit<UUAddressDTO, 'uuid'>;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
// Complex object output
|
|
633
|
+
interface ComplexObjectOutput {
|
|
634
|
+
// The created object
|
|
635
|
+
object: UUObjectDTO;
|
|
636
|
+
|
|
637
|
+
// All created properties with their values and files
|
|
638
|
+
properties: Array<{
|
|
639
|
+
property: UUPropertyDTO;
|
|
640
|
+
values: Array<{
|
|
641
|
+
value: UUPropertyValueDTO;
|
|
642
|
+
files: UUFileDTO[];
|
|
643
|
+
}>;
|
|
644
|
+
files: UUFileDTO[];
|
|
645
|
+
}>;
|
|
646
|
+
|
|
647
|
+
// Files attached directly to the object
|
|
648
|
+
files: UUFileDTO[];
|
|
649
|
+
|
|
650
|
+
// Address attached to the object if provided
|
|
651
|
+
address?: UUAddressDTO;
|
|
652
|
+
|
|
653
|
+
// Parent objects if parents were provided
|
|
654
|
+
parents?: UUObjectDTO[];
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
// API Response types
|
|
658
|
+
interface ApiResponse<T> {
|
|
659
|
+
data: T;
|
|
660
|
+
status: number;
|
|
661
|
+
statusText: string;
|
|
662
|
+
headers?: Record<string, string>;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* Auth response from mTLS authentication endpoint
|
|
667
|
+
* Based on actual API response structure with certificate information
|
|
668
|
+
*/
|
|
669
|
+
interface AuthResponse {
|
|
670
|
+
userUUID: string;
|
|
671
|
+
credentials: string;
|
|
672
|
+
createdAt: string;
|
|
673
|
+
certificateInfo: {
|
|
674
|
+
certificateSha256: string;
|
|
675
|
+
subjectFields: {
|
|
676
|
+
CN: string;
|
|
677
|
+
[key: string]: string;
|
|
678
|
+
};
|
|
679
|
+
issuerFields: {
|
|
680
|
+
CN: string;
|
|
681
|
+
[key: string]: string;
|
|
682
|
+
};
|
|
683
|
+
serialNumber: string;
|
|
684
|
+
validFrom: string;
|
|
685
|
+
validTo: string;
|
|
686
|
+
subjectAlternativeNames: string[];
|
|
687
|
+
};
|
|
688
|
+
enabled: boolean;
|
|
689
|
+
accountNonExpired: boolean;
|
|
690
|
+
credentialsNonExpired: boolean;
|
|
691
|
+
accountNonLocked: boolean;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
// ============================================================================
|
|
695
|
+
// AGGREGATE API TYPES (from Swagger documentation)
|
|
696
|
+
// ============================================================================
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* Aggregate search parameters for the /api/Aggregate/search endpoint
|
|
700
|
+
* Updated to support the new POST method with searchBy functionality
|
|
701
|
+
*/
|
|
702
|
+
interface AggregateFindDTO {
|
|
703
|
+
page?: number;
|
|
704
|
+
size?: number;
|
|
705
|
+
hasChildrenFull?: boolean;
|
|
706
|
+
hasHistory?: boolean;
|
|
707
|
+
hasParentUUIDFilter?: boolean;
|
|
708
|
+
parentUUID?: string;
|
|
709
|
+
searchTerm?: string;
|
|
710
|
+
searchBy?: Record<string, any>;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* Aggregate address entity with metadata
|
|
715
|
+
*/
|
|
716
|
+
interface AggregateUUAddress {
|
|
717
|
+
createdAt: string;
|
|
718
|
+
createdBy: string;
|
|
719
|
+
lastUpdatedAt: string;
|
|
720
|
+
lastUpdatedBy: string;
|
|
721
|
+
softDeletedAt?: string;
|
|
722
|
+
softDeleteBy?: string;
|
|
723
|
+
softDeleted: boolean;
|
|
724
|
+
uuid: string;
|
|
725
|
+
fullAddress?: string;
|
|
726
|
+
street?: string;
|
|
727
|
+
houseNumber?: string;
|
|
728
|
+
city?: string;
|
|
729
|
+
postalCode?: string;
|
|
730
|
+
country?: string;
|
|
731
|
+
state?: string;
|
|
732
|
+
district?: string;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* Rich aggregate entity with all relationships and metadata
|
|
737
|
+
*/
|
|
738
|
+
interface AggregateEntity {
|
|
739
|
+
createdAt?: string;
|
|
740
|
+
createdBy?: AuditUser;
|
|
741
|
+
lastUpdatedAt?: string;
|
|
742
|
+
lastUpdatedBy?: AuditUser;
|
|
743
|
+
softDeletedAt?: string;
|
|
744
|
+
softDeleteBy?: AuditUser;
|
|
745
|
+
softDeleted?: boolean;
|
|
746
|
+
uuid?: string;
|
|
747
|
+
name?: string;
|
|
748
|
+
abbreviation?: string;
|
|
749
|
+
version?: string;
|
|
750
|
+
description?: string;
|
|
751
|
+
isTemplate?: boolean;
|
|
752
|
+
address?: AggregateUUAddress;
|
|
753
|
+
parents?: string[];
|
|
754
|
+
children?: string[];
|
|
755
|
+
inputs?: string[];
|
|
756
|
+
outputs?: string[];
|
|
757
|
+
sourceTemplates?: string[];
|
|
758
|
+
templateInstances?: string[];
|
|
759
|
+
files?: AggregateUUFile[];
|
|
760
|
+
properties?: AggregateUUProperty[];
|
|
761
|
+
history?: AggregateUUObject[];
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* Paginated response for aggregate entities
|
|
766
|
+
*/
|
|
767
|
+
interface PageAggregateEntity {
|
|
768
|
+
totalPages: number;
|
|
769
|
+
totalElements: number;
|
|
770
|
+
size: number;
|
|
771
|
+
content: AggregateEntity[];
|
|
772
|
+
number: number;
|
|
773
|
+
numberOfElements: number;
|
|
774
|
+
first: boolean;
|
|
775
|
+
last: boolean;
|
|
776
|
+
empty: boolean;
|
|
777
|
+
pageable: {
|
|
778
|
+
paged: boolean;
|
|
779
|
+
pageNumber: number;
|
|
780
|
+
pageSize: number;
|
|
781
|
+
offset: number;
|
|
782
|
+
sort: {
|
|
783
|
+
sorted: boolean;
|
|
784
|
+
empty: boolean;
|
|
785
|
+
unsorted: boolean;
|
|
786
|
+
};
|
|
787
|
+
unpaged: boolean;
|
|
788
|
+
};
|
|
789
|
+
sort: {
|
|
790
|
+
sorted: boolean;
|
|
791
|
+
empty: boolean;
|
|
792
|
+
unsorted: boolean;
|
|
793
|
+
};
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
// New types for aggregate creation based on swagger.json
|
|
797
|
+
interface AggregateCreateDTO {
|
|
798
|
+
aggregateEntityList: AggregateEntityCreateDTO[];
|
|
799
|
+
user: UserDetailsCustom;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
interface AggregateEntityCreateDTO {
|
|
803
|
+
name?: string;
|
|
804
|
+
abbreviation?: string;
|
|
805
|
+
version?: string;
|
|
806
|
+
description?: string;
|
|
807
|
+
isTemplate?: boolean;
|
|
808
|
+
// Parent UUIDs to establish parent-child relationships
|
|
809
|
+
parents?: UUID[];
|
|
810
|
+
address?: AggregateUUAddressCreateDTO;
|
|
811
|
+
files?: AggregateUUFileCreateDTO[];
|
|
812
|
+
properties?: AggregateUUPropertyCreateDTO[];
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
interface AggregateUUAddressCreateDTO {
|
|
816
|
+
fullAddress?: string;
|
|
817
|
+
street?: string;
|
|
818
|
+
houseNumber?: string;
|
|
819
|
+
city?: string;
|
|
820
|
+
postalCode?: string;
|
|
821
|
+
country?: string;
|
|
822
|
+
state?: string;
|
|
823
|
+
district?: string;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
interface AggregateUUFileCreateDTO {
|
|
827
|
+
fileName?: string;
|
|
828
|
+
fileReference?: string;
|
|
829
|
+
label?: string;
|
|
830
|
+
contentType?: string;
|
|
831
|
+
size?: number;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
interface AggregateUUPropertyCreateDTO {
|
|
835
|
+
key?: string;
|
|
836
|
+
version?: string;
|
|
837
|
+
label?: string;
|
|
838
|
+
description?: string;
|
|
839
|
+
type?: string;
|
|
840
|
+
inputType?: string;
|
|
841
|
+
formula?: string;
|
|
842
|
+
inputOrderPosition?: number;
|
|
843
|
+
processingOrderPosition?: number;
|
|
844
|
+
viewOrderPosition?: number;
|
|
845
|
+
values?: AggregateUUPropertyValueCreateDTO[];
|
|
846
|
+
files?: AggregateUUFileCreateDTO[];
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
interface AggregateUUPropertyValueCreateDTO {
|
|
850
|
+
value?: string;
|
|
851
|
+
valueTypeCast?: string;
|
|
852
|
+
sourceType?: string;
|
|
853
|
+
files?: AggregateUUFileCreateDTO[];
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
interface UserDetailsCustom {
|
|
857
|
+
userUUID?: string;
|
|
858
|
+
credentials?: any;
|
|
859
|
+
createdAt?: string;
|
|
860
|
+
enabled?: boolean;
|
|
861
|
+
accountNonExpired?: boolean;
|
|
862
|
+
credentialsNonExpired?: boolean;
|
|
863
|
+
accountNonLocked?: boolean;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
interface AuditUser {
|
|
867
|
+
userUUID?: string;
|
|
868
|
+
credentials?: string;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
// Additional aggregate types matching swagger
|
|
872
|
+
interface AggregateUUFile {
|
|
873
|
+
createdAt?: string;
|
|
874
|
+
createdBy?: AuditUser;
|
|
875
|
+
lastUpdatedAt?: string;
|
|
876
|
+
lastUpdatedBy?: AuditUser;
|
|
877
|
+
softDeletedAt?: string;
|
|
878
|
+
softDeleteBy?: AuditUser;
|
|
879
|
+
softDeleted?: boolean;
|
|
880
|
+
uuid?: string;
|
|
881
|
+
fileName?: string;
|
|
882
|
+
fileReference?: string;
|
|
883
|
+
label?: string;
|
|
884
|
+
contentType?: string;
|
|
885
|
+
size?: number;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
interface AggregateUUProperty {
|
|
889
|
+
createdAt?: string;
|
|
890
|
+
createdBy?: AuditUser;
|
|
891
|
+
lastUpdatedAt?: string;
|
|
892
|
+
lastUpdatedBy?: AuditUser;
|
|
893
|
+
softDeletedAt?: string;
|
|
894
|
+
softDeleteBy?: AuditUser;
|
|
895
|
+
softDeleted?: boolean;
|
|
896
|
+
uuid?: string;
|
|
897
|
+
key?: string;
|
|
898
|
+
version?: string;
|
|
899
|
+
label?: string;
|
|
900
|
+
description?: string;
|
|
901
|
+
type?: string;
|
|
902
|
+
inputType?: string;
|
|
903
|
+
formula?: string;
|
|
904
|
+
inputOrderPosition?: number;
|
|
905
|
+
processingOrderPosition?: number;
|
|
906
|
+
viewOrderPosition?: number;
|
|
907
|
+
values?: AggregateUUPropertyValue[];
|
|
908
|
+
files?: AggregateUUFile[];
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
interface AggregateUUPropertyValue {
|
|
912
|
+
createdAt?: string;
|
|
913
|
+
createdBy?: AuditUser;
|
|
914
|
+
lastUpdatedAt?: string;
|
|
915
|
+
lastUpdatedBy?: AuditUser;
|
|
916
|
+
softDeletedAt?: string;
|
|
917
|
+
softDeleteBy?: AuditUser;
|
|
918
|
+
softDeleted?: boolean;
|
|
919
|
+
uuid?: string;
|
|
920
|
+
value?: string;
|
|
921
|
+
valueTypeCast?: string;
|
|
922
|
+
sourceType?: string;
|
|
923
|
+
files?: AggregateUUFile[];
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
interface AggregateUUObject {
|
|
927
|
+
createdAt?: string;
|
|
928
|
+
createdBy?: AuditUser;
|
|
929
|
+
lastUpdatedAt?: string;
|
|
930
|
+
lastUpdatedBy?: AuditUser;
|
|
931
|
+
softDeletedAt?: string;
|
|
932
|
+
softDeleteBy?: AuditUser;
|
|
933
|
+
softDeleted?: boolean;
|
|
934
|
+
uuid?: string;
|
|
935
|
+
name?: string;
|
|
936
|
+
abbreviation?: string;
|
|
937
|
+
version?: string;
|
|
938
|
+
description?: string;
|
|
939
|
+
isTemplate?: boolean;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* Set the global default HTTP client
|
|
944
|
+
*
|
|
945
|
+
* @param config - The client configuration
|
|
946
|
+
*/
|
|
947
|
+
declare const setHttpClient: (config: ClientConfig) => void;
|
|
948
|
+
|
|
949
|
+
/**
|
|
950
|
+
* Configure the logger with the provided debug options
|
|
951
|
+
*/
|
|
952
|
+
declare const configureLogger: (config?: ClientConfig["debug"]) => void;
|
|
953
|
+
|
|
954
|
+
/**
|
|
955
|
+
* Initialize the client with the given configuration
|
|
956
|
+
*
|
|
957
|
+
* @param config - Client configuration including baseUrl and optional certificate
|
|
958
|
+
*/
|
|
959
|
+
declare const initializeClient: (config: ClientConfig$1) => void;
|
|
960
|
+
declare const createClient: (config: ClientConfig$1) => {
|
|
961
|
+
debug: {
|
|
962
|
+
/**
|
|
963
|
+
* Enable or disable debug mode at runtime
|
|
964
|
+
*/
|
|
965
|
+
configure: (options: ClientConfig$1["debug"]) => void;
|
|
966
|
+
};
|
|
967
|
+
auth: {
|
|
968
|
+
requestBaseAuth: () => Promise<ApiResponse$1<AuthResponse$1 | null>>;
|
|
969
|
+
requestUuidAuth: () => Promise<ApiResponse$1<AuthResponse$1 | null>>;
|
|
970
|
+
};
|
|
971
|
+
aggregate: {
|
|
972
|
+
findByUUID: (uuid: UUID$1) => Promise<ApiResponse$1<AggregateEntity$1[] | null>>;
|
|
973
|
+
getAggregateEntities: (params?: AggregateFindDTO$1) => Promise<ApiResponse$1<PageAggregateEntity$1>>;
|
|
974
|
+
createAggregateObject: (data: AggregateCreateDTO$1) => Promise<ApiResponse$1<any>>;
|
|
975
|
+
importAggregateObjects: (data: AggregateCreateDTO$1) => Promise<ApiResponse$1<any>>;
|
|
976
|
+
};
|
|
977
|
+
objects: {
|
|
978
|
+
create: (object: UUObjectDTO$1) => Promise<ApiResponse$1<UUObjectDTO$1>>;
|
|
979
|
+
createFullObject: (objectData: ComplexObjectCreationInput$1) => Promise<ApiResponse$1<ComplexObjectOutput$1 | null>>;
|
|
980
|
+
getObjects: (params?: QueryParams$1) => Promise<ApiResponse$1<UUObjectDTO$1[]>>;
|
|
981
|
+
delete: (uuid: UUID$1) => Promise<ApiResponse$1<any>>;
|
|
982
|
+
};
|
|
983
|
+
properties: {
|
|
984
|
+
addToObject: (objectUuid: UUID$1, property: Partial<UUPropertyDTO$1> & {
|
|
985
|
+
key: string;
|
|
986
|
+
}) => Promise<ApiResponse$1<UUPropertyDTO$1>>;
|
|
987
|
+
create: (property: UUPropertyDTO$1) => Promise<ApiResponse$1<UUPropertyDTO$1>>;
|
|
988
|
+
getProperties: (params?: QueryParams$1) => Promise<ApiResponse$1<UUPropertyDTO$1[]>>;
|
|
989
|
+
getPropertyByKey: (key: string, params?: QueryParams$1) => Promise<ApiResponse$1<UUPropertyDTO$1 | null>>;
|
|
990
|
+
delete: (uuid: UUID$1) => Promise<ApiResponse$1<any>>;
|
|
991
|
+
};
|
|
992
|
+
values: {
|
|
993
|
+
setForProperty: (propertyUuid: UUID$1, value: Partial<UUPropertyValueDTO$1>) => Promise<ApiResponse$1<UUPropertyValueDTO$1>>;
|
|
994
|
+
create: (value: UUPropertyValueDTO$1) => Promise<ApiResponse$1<UUPropertyValueDTO$1>>;
|
|
995
|
+
getPropertyValues: (params?: QueryParams$1) => Promise<ApiResponse$1<UUPropertyValueDTO$1[]>>;
|
|
996
|
+
delete: (uuid: UUID$1) => Promise<ApiResponse$1<any>>;
|
|
997
|
+
};
|
|
998
|
+
files: {
|
|
999
|
+
create: (file: UUFileDTO$1) => Promise<ApiResponse$1<UUFileDTO$1>>;
|
|
1000
|
+
getFiles: (params?: QueryParams$1) => Promise<ApiResponse$1<UUFileDTO$1[]>>;
|
|
1001
|
+
delete: (uuid: UUID$1) => Promise<ApiResponse$1<any>>;
|
|
1002
|
+
uploadByReference: (input: {
|
|
1003
|
+
fileReference: string;
|
|
1004
|
+
uuidToAttach: UUID$1;
|
|
1005
|
+
label?: string;
|
|
1006
|
+
}) => Promise<ApiResponse$1<UUFileDTO$1 | null>>;
|
|
1007
|
+
uploadDirect: (input: {
|
|
1008
|
+
file: File | Blob | ArrayBuffer | FormData;
|
|
1009
|
+
uuidToAttach: UUID$1;
|
|
1010
|
+
}) => Promise<ApiResponse$1<UUFileDTO$1 | null>>;
|
|
1011
|
+
uploadFormData: (input: {
|
|
1012
|
+
formData: FormData;
|
|
1013
|
+
uuidFile: UUID$1;
|
|
1014
|
+
uuidToAttach: UUID$1;
|
|
1015
|
+
}) => Promise<ApiResponse$1<any>>;
|
|
1016
|
+
download: (uuid: UUID$1) => Promise<ApiResponse$1<ArrayBuffer>>;
|
|
1017
|
+
};
|
|
1018
|
+
statements: {
|
|
1019
|
+
getStatements: (params?: StatementQueryParams$1) => Promise<ApiResponse$1<UUStatementDTO$1[]>>;
|
|
1020
|
+
create: (statement: UUStatementDTO$1) => Promise<ApiResponse$1<UUStatementDTO$1>>;
|
|
1021
|
+
delete: (statement: UUStatementDTO$1) => Promise<ApiResponse$1<any>>;
|
|
1022
|
+
};
|
|
1023
|
+
uuid: {
|
|
1024
|
+
create: () => Promise<ApiResponse$1<{
|
|
1025
|
+
uuid: UUID$1;
|
|
1026
|
+
}>>;
|
|
1027
|
+
getOwned: () => Promise<ApiResponse$1<any>>;
|
|
1028
|
+
getRecord: (uuid: UUID$1) => Promise<ApiResponse$1<any>>;
|
|
1029
|
+
updateRecordMeta: (params: {
|
|
1030
|
+
uuid?: UUID$1;
|
|
1031
|
+
nodeType: string;
|
|
1032
|
+
}) => Promise<ApiResponse$1<any>>;
|
|
1033
|
+
authorize: (params: {
|
|
1034
|
+
userUUID: UUID$1;
|
|
1035
|
+
resourceId: UUID$1;
|
|
1036
|
+
}) => Promise<ApiResponse$1<any>>;
|
|
1037
|
+
};
|
|
1038
|
+
addresses: {
|
|
1039
|
+
create: (address: Omit<UUAddressDTO$1, "uuid">) => Promise<ApiResponse$1<UUAddressDTO$1>>;
|
|
1040
|
+
update: (address: UUAddressDTO$1) => Promise<ApiResponse$1<UUAddressDTO$1>>;
|
|
1041
|
+
get: (params?: QueryParams$1) => Promise<ApiResponse$1<UUAddressDTO$1[]>>;
|
|
1042
|
+
delete: (uuid: UUID$1) => Promise<ApiResponse$1<any>>;
|
|
1043
|
+
createForObject: (objectUuid: UUID$1, address: Omit<UUAddressDTO$1, "uuid">) => Promise<ApiResponse$1<{
|
|
1044
|
+
address: UUAddressDTO$1;
|
|
1045
|
+
statement: any;
|
|
1046
|
+
}>>;
|
|
1047
|
+
};
|
|
1048
|
+
};
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* Get objects with optional filtering
|
|
1052
|
+
* This unified function handles all object retrieval scenarios
|
|
1053
|
+
*
|
|
1054
|
+
* @param client - HTTP client instance
|
|
1055
|
+
* @param params - Query parameters for filtering (uuid, softDeleted)
|
|
1056
|
+
* @returns List of objects matching the criteria, or single object if uuid is provided
|
|
1057
|
+
*/
|
|
1058
|
+
declare const getObjects: (client?: {
|
|
1059
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1060
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1061
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1062
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1063
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1064
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1065
|
+
config: ClientConfig;
|
|
1066
|
+
}) => (params?: QueryParams) => Promise<ApiResponse<UUObjectDTO[]>>;
|
|
1067
|
+
/**
|
|
1068
|
+
* Create or update an object
|
|
1069
|
+
*
|
|
1070
|
+
* @param client - HTTP client instance
|
|
1071
|
+
* @param object - The object to create or update
|
|
1072
|
+
* @returns The created or updated object
|
|
1073
|
+
*/
|
|
1074
|
+
declare const createOrUpdateObject: (client?: {
|
|
1075
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1076
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1077
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1078
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1079
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1080
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1081
|
+
config: ClientConfig;
|
|
1082
|
+
}) => (object: UUObjectDTO) => Promise<ApiResponse<UUObjectDTO>>;
|
|
1083
|
+
/**
|
|
1084
|
+
* Soft delete an object
|
|
1085
|
+
*
|
|
1086
|
+
* @param client - HTTP client instance
|
|
1087
|
+
* @param uuid - The UUID of the object to delete
|
|
1088
|
+
* @returns The API response
|
|
1089
|
+
*/
|
|
1090
|
+
declare const softDeleteObject: (client?: {
|
|
1091
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1092
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1093
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1094
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1095
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1096
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1097
|
+
config: ClientConfig;
|
|
1098
|
+
}) => (uuid: UUID) => Promise<ApiResponse<any>>;
|
|
1099
|
+
|
|
1100
|
+
/**
|
|
1101
|
+
* Get statements with optional filtering
|
|
1102
|
+
* This unified function handles all statement retrieval scenarios
|
|
1103
|
+
*
|
|
1104
|
+
* @param client - HTTP client instance
|
|
1105
|
+
* @param params - Statement query parameters (subject, predicate, object, softDeleted)
|
|
1106
|
+
* @returns List of statements matching the criteria
|
|
1107
|
+
*/
|
|
1108
|
+
declare const getStatements: (client?: {
|
|
1109
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1110
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1111
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1112
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1113
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1114
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1115
|
+
config: ClientConfig;
|
|
1116
|
+
}) => (params?: StatementQueryParams) => Promise<ApiResponse<UUStatementDTO[]>>;
|
|
1117
|
+
/**
|
|
1118
|
+
* Create or find statements
|
|
1119
|
+
*
|
|
1120
|
+
* @param client - HTTP client instance
|
|
1121
|
+
* @param statements - Statements to create or find
|
|
1122
|
+
* @returns Created or found statements
|
|
1123
|
+
*/
|
|
1124
|
+
declare const createOrFindStatements: (client?: {
|
|
1125
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1126
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1127
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1128
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1129
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1130
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1131
|
+
config: ClientConfig;
|
|
1132
|
+
}) => (statements: UUStatementDTO[]) => Promise<ApiResponse<UUStatementDTO[]>>;
|
|
1133
|
+
/**
|
|
1134
|
+
* Create a single statement (convenience method)
|
|
1135
|
+
*
|
|
1136
|
+
* @param client - HTTP client instance
|
|
1137
|
+
* @param statement - Statement to create
|
|
1138
|
+
* @returns Created statement
|
|
1139
|
+
*/
|
|
1140
|
+
declare const createStatement: (client?: {
|
|
1141
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1142
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1143
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1144
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1145
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1146
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1147
|
+
config: ClientConfig;
|
|
1148
|
+
}) => (statement: UUStatementDTO) => Promise<ApiResponse<UUStatementDTO>>;
|
|
1149
|
+
/**
|
|
1150
|
+
* Get statements by UUID and predicate
|
|
1151
|
+
* This is now a convenience wrapper around getAllStatements
|
|
1152
|
+
*
|
|
1153
|
+
* @param client - HTTP client instance
|
|
1154
|
+
* @param uuid - The UUID to find statements for (subject)
|
|
1155
|
+
* @param predicate - The predicate to filter by
|
|
1156
|
+
* @param params - Query parameters
|
|
1157
|
+
* @returns Statements matching the criteria
|
|
1158
|
+
*/
|
|
1159
|
+
declare const getStatementsByUuidAndPredicate: (client?: {
|
|
1160
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1161
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1162
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1163
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1164
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1165
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1166
|
+
config: ClientConfig;
|
|
1167
|
+
}) => (uuid: UUID, predicate: Predicate, params?: QueryParams) => Promise<ApiResponse<UUStatementDTO[]>>;
|
|
1168
|
+
/**
|
|
1169
|
+
* Soft delete a statement
|
|
1170
|
+
* This performs a logical delete using the DELETE HTTP method
|
|
1171
|
+
*
|
|
1172
|
+
* @param client - HTTP client instance
|
|
1173
|
+
* @param statement - Statement to soft delete
|
|
1174
|
+
* @returns The API response
|
|
1175
|
+
*/
|
|
1176
|
+
declare const softDeleteStatement: (client?: {
|
|
1177
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1178
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1179
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1180
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1181
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1182
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1183
|
+
config: ClientConfig;
|
|
1184
|
+
}) => (statement: UUStatementDTO | {
|
|
1185
|
+
subject: UUID;
|
|
1186
|
+
predicate: Predicate;
|
|
1187
|
+
object: UUID;
|
|
1188
|
+
}) => Promise<ApiResponse<any>>;
|
|
1189
|
+
/**
|
|
1190
|
+
* Find all children of a given UUID
|
|
1191
|
+
*
|
|
1192
|
+
* @param client - HTTP client instance
|
|
1193
|
+
* @param parentUuid - The parent UUID
|
|
1194
|
+
* @param params - Query parameters
|
|
1195
|
+
* @returns Statements with parent-child relationship
|
|
1196
|
+
*/
|
|
1197
|
+
declare const findChildren: (client?: {
|
|
1198
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1199
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1200
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1201
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1202
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1203
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1204
|
+
config: ClientConfig;
|
|
1205
|
+
}) => (parentUuid: UUID, params?: QueryParams) => Promise<ApiResponse<UUStatementDTO[]>>;
|
|
1206
|
+
/**
|
|
1207
|
+
* Find all parents of a given UUID
|
|
1208
|
+
*
|
|
1209
|
+
* @param client - HTTP client instance
|
|
1210
|
+
* @param childUuid - The child UUID
|
|
1211
|
+
* @param params - Query parameters
|
|
1212
|
+
* @returns Statements with child-parent relationship
|
|
1213
|
+
*/
|
|
1214
|
+
declare const findParents: (client?: {
|
|
1215
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1216
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1217
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1218
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1219
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1220
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1221
|
+
config: ClientConfig;
|
|
1222
|
+
}) => (childUuid: UUID, params?: QueryParams) => Promise<ApiResponse<UUStatementDTO[]>>;
|
|
1223
|
+
/**
|
|
1224
|
+
* Find all properties of an object
|
|
1225
|
+
*
|
|
1226
|
+
* @param client - HTTP client instance
|
|
1227
|
+
* @param objectUuid - The object UUID
|
|
1228
|
+
* @param params - Query parameters
|
|
1229
|
+
* @returns Statements with object-property relationship
|
|
1230
|
+
*/
|
|
1231
|
+
declare const findProperties: (client?: {
|
|
1232
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1233
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1234
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1235
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1236
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1237
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1238
|
+
config: ClientConfig;
|
|
1239
|
+
}) => (objectUuid: UUID, params?: QueryParams) => Promise<ApiResponse<UUStatementDTO[]>>;
|
|
1240
|
+
/**
|
|
1241
|
+
* Find all values of a property
|
|
1242
|
+
*
|
|
1243
|
+
* @param client - HTTP client instance
|
|
1244
|
+
* @param propertyUuid - The property UUID
|
|
1245
|
+
* @param params - Query parameters
|
|
1246
|
+
* @returns Statements with property-value relationship
|
|
1247
|
+
*/
|
|
1248
|
+
declare const findPropertyValues: (client?: {
|
|
1249
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1250
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1251
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1252
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1253
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1254
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1255
|
+
config: ClientConfig;
|
|
1256
|
+
}) => (propertyUuid: UUID, params?: QueryParams) => Promise<ApiResponse<UUStatementDTO[]>>;
|
|
1257
|
+
/**
|
|
1258
|
+
* Find all files attached to an object
|
|
1259
|
+
*
|
|
1260
|
+
* @param client - HTTP client instance
|
|
1261
|
+
* @param objectUuid - The object UUID
|
|
1262
|
+
* @param params - Query parameters
|
|
1263
|
+
* @returns Statements with object-file relationship
|
|
1264
|
+
*/
|
|
1265
|
+
declare const findFiles: (client?: {
|
|
1266
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1267
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1268
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1269
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1270
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1271
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1272
|
+
config: ClientConfig;
|
|
1273
|
+
}) => (objectUuid: UUID, params?: QueryParams) => Promise<ApiResponse<UUStatementDTO[]>>;
|
|
1274
|
+
|
|
1275
|
+
/**
|
|
1276
|
+
* Get properties with optional filtering
|
|
1277
|
+
* This unified function handles all property retrieval scenarios
|
|
1278
|
+
*
|
|
1279
|
+
* @param client - HTTP client instance
|
|
1280
|
+
* @param params - Query parameters for filtering (uuid, softDeleted)
|
|
1281
|
+
* @returns List of properties matching the criteria, or single property if uuid is provided
|
|
1282
|
+
*/
|
|
1283
|
+
declare const getProperties: (client?: {
|
|
1284
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1285
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1286
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1287
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1288
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1289
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1290
|
+
config: ClientConfig;
|
|
1291
|
+
}) => (params?: QueryParams) => Promise<ApiResponse<UUPropertyDTO[]>>;
|
|
1292
|
+
/**
|
|
1293
|
+
* Get a property by key (convenience function)
|
|
1294
|
+
* Note: This filters client-side since the API doesn't support direct key lookup
|
|
1295
|
+
*
|
|
1296
|
+
* @param client - HTTP client instance
|
|
1297
|
+
* @param key - The key of the property to get
|
|
1298
|
+
* @param params - Query parameters
|
|
1299
|
+
* @returns The requested property or null if not found
|
|
1300
|
+
*/
|
|
1301
|
+
declare const getPropertyByKey: (client?: {
|
|
1302
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1303
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1304
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1305
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1306
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1307
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1308
|
+
config: ClientConfig;
|
|
1309
|
+
}) => (key: string, params?: QueryParams) => Promise<ApiResponse<UUPropertyDTO | null>>;
|
|
1310
|
+
/**
|
|
1311
|
+
* Create or update a property
|
|
1312
|
+
*
|
|
1313
|
+
* @param client - HTTP client instance
|
|
1314
|
+
* @param property - The property to create or update
|
|
1315
|
+
* @returns The created or updated property
|
|
1316
|
+
*/
|
|
1317
|
+
declare const createOrUpdateProperty: (client?: {
|
|
1318
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1319
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1320
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1321
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1322
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1323
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1324
|
+
config: ClientConfig;
|
|
1325
|
+
}) => (property: UUPropertyDTO) => Promise<ApiResponse<UUPropertyDTO>>;
|
|
1326
|
+
/**
|
|
1327
|
+
* Soft delete a property
|
|
1328
|
+
*
|
|
1329
|
+
* @param client - HTTP client instance
|
|
1330
|
+
* @param uuid - The UUID of the property to delete
|
|
1331
|
+
* @returns The API response
|
|
1332
|
+
*/
|
|
1333
|
+
declare const softDeleteProperty: (client?: {
|
|
1334
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1335
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1336
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1337
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1338
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1339
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1340
|
+
config: ClientConfig;
|
|
1341
|
+
}) => (uuid: UUID) => Promise<ApiResponse<any>>;
|
|
1342
|
+
|
|
1343
|
+
/**
|
|
1344
|
+
* Get property values with optional filtering
|
|
1345
|
+
* This unified function handles all property value retrieval scenarios
|
|
1346
|
+
*
|
|
1347
|
+
* @param client - HTTP client instance
|
|
1348
|
+
* @param params - Query parameters for filtering (uuid, softDeleted)
|
|
1349
|
+
* @returns List of property values matching the criteria, or single property value if uuid is provided
|
|
1350
|
+
*/
|
|
1351
|
+
declare const getPropertyValues: (client?: {
|
|
1352
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1353
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1354
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1355
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1356
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1357
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1358
|
+
config: ClientConfig;
|
|
1359
|
+
}) => (params?: QueryParams) => Promise<ApiResponse<UUPropertyValueDTO[]>>;
|
|
1360
|
+
/**
|
|
1361
|
+
* Create or update a property value
|
|
1362
|
+
*
|
|
1363
|
+
* @param client - HTTP client instance
|
|
1364
|
+
* @param propertyValue - The property value to create or update
|
|
1365
|
+
* @returns The created or updated property value
|
|
1366
|
+
*/
|
|
1367
|
+
declare const createOrUpdatePropertyValue: (client?: {
|
|
1368
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1369
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1370
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1371
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1372
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1373
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1374
|
+
config: ClientConfig;
|
|
1375
|
+
}) => (propertyValue: UUPropertyValueDTO) => Promise<ApiResponse<UUPropertyValueDTO>>;
|
|
1376
|
+
/**
|
|
1377
|
+
* Soft delete a property value
|
|
1378
|
+
*
|
|
1379
|
+
* @param client - HTTP client instance
|
|
1380
|
+
* @param uuid - The UUID of the property value to delete
|
|
1381
|
+
* @returns The API response
|
|
1382
|
+
*/
|
|
1383
|
+
declare const softDeletePropertyValue: (client?: {
|
|
1384
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1385
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1386
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1387
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1388
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1389
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1390
|
+
config: ClientConfig;
|
|
1391
|
+
}) => (uuid: UUID) => Promise<ApiResponse<any>>;
|
|
1392
|
+
|
|
1393
|
+
/**
|
|
1394
|
+
* Get files with optional filtering
|
|
1395
|
+
* This unified function replaces getAllFiles, getOwnFiles, and getFileByUuid
|
|
1396
|
+
*
|
|
1397
|
+
* @param client - HTTP client instance
|
|
1398
|
+
* @param params - Query parameters for filtering (uuid, softDeleted)
|
|
1399
|
+
* @returns List of files matching the criteria, or single file if uuid is provided
|
|
1400
|
+
*/
|
|
1401
|
+
declare const getFiles: (client?: {
|
|
1402
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1403
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1404
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1405
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1406
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1407
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1408
|
+
config: ClientConfig;
|
|
1409
|
+
}) => (params?: QueryParams) => Promise<ApiResponse<UUFileDTO[]>>;
|
|
1410
|
+
/**
|
|
1411
|
+
* Create or update a file
|
|
1412
|
+
*
|
|
1413
|
+
* @param client - HTTP client instance
|
|
1414
|
+
* @param file - The file to create or update
|
|
1415
|
+
* @returns The created or updated file
|
|
1416
|
+
*/
|
|
1417
|
+
declare const createOrUpdateFile: (client?: {
|
|
1418
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1419
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1420
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1421
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1422
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1423
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1424
|
+
config: ClientConfig;
|
|
1425
|
+
}) => (file: UUFileDTO) => Promise<ApiResponse<UUFileDTO>>;
|
|
1426
|
+
/**
|
|
1427
|
+
* Soft delete a file
|
|
1428
|
+
*
|
|
1429
|
+
* @param client - HTTP client instance
|
|
1430
|
+
* @param uuid - The UUID of the file to delete
|
|
1431
|
+
* @returns The API response
|
|
1432
|
+
*/
|
|
1433
|
+
declare const softDeleteFile: (client?: {
|
|
1434
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1435
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1436
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1437
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1438
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1439
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1440
|
+
config: ClientConfig;
|
|
1441
|
+
}) => (uuid: UUID) => Promise<ApiResponse<any>>;
|
|
1442
|
+
/**
|
|
1443
|
+
* Upload a file's binary content via multipart/form-data
|
|
1444
|
+
*
|
|
1445
|
+
* Swagger: POST /api/UUFile/upload?uuidFile={uuidFile}&uuidToAttach={uuidToAttach}
|
|
1446
|
+
*
|
|
1447
|
+
* @param client - HTTP client instance
|
|
1448
|
+
* @param uuidFile - UUID of the file record
|
|
1449
|
+
* @param uuidToAttach - UUID of the object/property/value to attach to
|
|
1450
|
+
* @param file - Blob | File | Buffer to upload
|
|
1451
|
+
* @param fieldName - Optional field name (defaults to 'file')
|
|
1452
|
+
*/
|
|
1453
|
+
declare const uploadFileBinary: (client?: {
|
|
1454
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1455
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1456
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1457
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1458
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1459
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1460
|
+
config: ClientConfig;
|
|
1461
|
+
}) => (uuidFile: UUID, uuidToAttach: UUID, file: any, fieldName?: string) => Promise<ApiResponse<any>>;
|
|
1462
|
+
/**
|
|
1463
|
+
* Download a file's binary content
|
|
1464
|
+
*
|
|
1465
|
+
* Swagger: GET /api/UUFile/download/{uuid}
|
|
1466
|
+
*/
|
|
1467
|
+
declare const downloadFileBinary: (client?: {
|
|
1468
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1469
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1470
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1471
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1472
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1473
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1474
|
+
config: ClientConfig;
|
|
1475
|
+
}) => (uuid: UUID) => Promise<ApiResponse<ArrayBuffer>>;
|
|
1476
|
+
|
|
1477
|
+
/**
|
|
1478
|
+
* Get addresses with optional filtering
|
|
1479
|
+
* This unified function handles all address retrieval scenarios including by UUID
|
|
1480
|
+
*
|
|
1481
|
+
* @param client - HTTP client instance
|
|
1482
|
+
* @param params - Query parameters for filtering (uuid, softDeleted)
|
|
1483
|
+
* @returns List of addresses matching the criteria, or single address if uuid is provided
|
|
1484
|
+
*/
|
|
1485
|
+
declare const getAddresses: (client?: {
|
|
1486
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1487
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1488
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1489
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1490
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1491
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1492
|
+
config: ClientConfig;
|
|
1493
|
+
}) => (params?: QueryParams) => Promise<ApiResponse<UUAddressDTO[]>>;
|
|
1494
|
+
/**
|
|
1495
|
+
* Create a new address (generates UUID automatically)
|
|
1496
|
+
*
|
|
1497
|
+
* @param client - HTTP client instance
|
|
1498
|
+
* @param address - The address data (without UUID)
|
|
1499
|
+
* @returns The created address with generated UUID
|
|
1500
|
+
*/
|
|
1501
|
+
declare const createAddress: (client?: {
|
|
1502
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1503
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1504
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1505
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1506
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1507
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1508
|
+
config: ClientConfig;
|
|
1509
|
+
}) => (address: Omit<UUAddressDTO, "uuid">) => Promise<ApiResponse<UUAddressDTO>>;
|
|
1510
|
+
/**
|
|
1511
|
+
* Update an existing address
|
|
1512
|
+
*
|
|
1513
|
+
* @param client - HTTP client instance
|
|
1514
|
+
* @param address - The address to update (must include UUID)
|
|
1515
|
+
* @returns The updated address
|
|
1516
|
+
*/
|
|
1517
|
+
declare const updateAddress: (client?: {
|
|
1518
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1519
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1520
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1521
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1522
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1523
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1524
|
+
config: ClientConfig;
|
|
1525
|
+
}) => (address: UUAddressDTO) => Promise<ApiResponse<UUAddressDTO>>;
|
|
1526
|
+
/**
|
|
1527
|
+
* Create an address for an object and establish the relationship
|
|
1528
|
+
* This is a convenience method that combines address creation with statement creation
|
|
1529
|
+
*
|
|
1530
|
+
* @param client - HTTP client instance
|
|
1531
|
+
* @param objectUuid - UUID of the object to associate the address with
|
|
1532
|
+
* @param addressData - Address data (without UUID, will be generated)
|
|
1533
|
+
* @returns The created address and relationship statement
|
|
1534
|
+
*/
|
|
1535
|
+
declare const createAddressForObject: (client?: {
|
|
1536
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1537
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1538
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1539
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1540
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1541
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1542
|
+
config: ClientConfig;
|
|
1543
|
+
}) => (objectUuid: string, addressData: Omit<UUAddressDTO, "uuid">) => Promise<ApiResponse<{
|
|
1544
|
+
address: UUAddressDTO;
|
|
1545
|
+
statement: any;
|
|
1546
|
+
}>>;
|
|
1547
|
+
/**
|
|
1548
|
+
* Soft delete an address by UUID
|
|
1549
|
+
*
|
|
1550
|
+
* @param client - HTTP client instance
|
|
1551
|
+
* @param uuid - UUID of the address to soft delete
|
|
1552
|
+
* @returns The API response
|
|
1553
|
+
*/
|
|
1554
|
+
declare const softDeleteAddress: (client?: {
|
|
1555
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1556
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1557
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1558
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1559
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1560
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1561
|
+
config: ClientConfig;
|
|
1562
|
+
}) => (uuid: UUID) => Promise<ApiResponse<any>>;
|
|
1563
|
+
|
|
1564
|
+
/**
|
|
1565
|
+
* Get UUIDs owned by the current user/client
|
|
1566
|
+
* Uses /api/UUID/own endpoint from swagger-uuid.json
|
|
1567
|
+
*
|
|
1568
|
+
* @param client - HTTP client instance
|
|
1569
|
+
* @param baseURL - Optional base URL for the UUID service (different from main API)
|
|
1570
|
+
* @returns UUIDs owned by the current user/client
|
|
1571
|
+
*/
|
|
1572
|
+
declare const getOwnedUUIDs: (client?: {
|
|
1573
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1574
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1575
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1576
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1577
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1578
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1579
|
+
config: ClientConfig;
|
|
1580
|
+
}, baseURL?: string) => () => Promise<ApiResponse<any>>;
|
|
1581
|
+
/**
|
|
1582
|
+
* Create a new UUID
|
|
1583
|
+
* Updated to use /api/UUID endpoint from new swagger-uuid.json
|
|
1584
|
+
*
|
|
1585
|
+
* @param client - HTTP client instance
|
|
1586
|
+
* @param baseURL - Optional base URL for the UUID service (different from main API)
|
|
1587
|
+
* @returns The newly created UUID data
|
|
1588
|
+
*/
|
|
1589
|
+
declare const createUUID: (client?: {
|
|
1590
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1591
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1592
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1593
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1594
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1595
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1596
|
+
config: ClientConfig;
|
|
1597
|
+
}, baseURL?: string) => () => Promise<ApiResponse<{
|
|
1598
|
+
uuid: UUID;
|
|
1599
|
+
}>>;
|
|
1600
|
+
/**
|
|
1601
|
+
* Get UUID record by UUID
|
|
1602
|
+
* Updated to use /api/UUID/{uuid} endpoint from new swagger-uuid.json
|
|
1603
|
+
*
|
|
1604
|
+
* @param client - HTTP client instance
|
|
1605
|
+
* @param baseURL - Optional base URL for the UUID service (different from main API)
|
|
1606
|
+
* @param uuid - UUID to find
|
|
1607
|
+
* @returns UUID record data
|
|
1608
|
+
*/
|
|
1609
|
+
declare const getUUIDRecord: (client?: {
|
|
1610
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1611
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1612
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1613
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1614
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1615
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1616
|
+
config: ClientConfig;
|
|
1617
|
+
}, baseURL?: string) => (uuid: UUID) => Promise<ApiResponse<any>>;
|
|
1618
|
+
/**
|
|
1619
|
+
* Update UUID record metadata
|
|
1620
|
+
* New endpoint from swagger-uuid.json
|
|
1621
|
+
*
|
|
1622
|
+
* @param client - HTTP client instance
|
|
1623
|
+
* @param baseURL - Optional base URL for the UUID service (different from main API)
|
|
1624
|
+
* @param params - UUID record metadata update parameters
|
|
1625
|
+
* @returns Updated UUID record data
|
|
1626
|
+
*/
|
|
1627
|
+
declare const updateUUIDRecordMeta: (client?: {
|
|
1628
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1629
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1630
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1631
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1632
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1633
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1634
|
+
config: ClientConfig;
|
|
1635
|
+
}, baseURL?: string) => (params: {
|
|
1636
|
+
uuid?: UUID;
|
|
1637
|
+
nodeType: string;
|
|
1638
|
+
}) => Promise<ApiResponse<any>>;
|
|
1639
|
+
/**
|
|
1640
|
+
* Authorize UUID record access
|
|
1641
|
+
* New endpoint from swagger-uuid.json
|
|
1642
|
+
*
|
|
1643
|
+
* @param client - HTTP client instance
|
|
1644
|
+
* @param baseURL - Optional base URL for the UUID service (different from main API)
|
|
1645
|
+
* @param params - Authorization parameters
|
|
1646
|
+
* @returns Authorization response
|
|
1647
|
+
*/
|
|
1648
|
+
declare const authorizeUUIDRecord: (client?: {
|
|
1649
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1650
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1651
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1652
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1653
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1654
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1655
|
+
config: ClientConfig;
|
|
1656
|
+
}, baseURL?: string) => (params: {
|
|
1657
|
+
userUUID: UUID;
|
|
1658
|
+
resourceId: UUID;
|
|
1659
|
+
}) => Promise<ApiResponse<any>>;
|
|
1660
|
+
|
|
1661
|
+
/**
|
|
1662
|
+
* Find any entity by UUID using the aggregate API
|
|
1663
|
+
* Uses the new /api/Aggregate/{uuid} endpoint which provides rich aggregated data
|
|
1664
|
+
*
|
|
1665
|
+
* @param client - HTTP client instance
|
|
1666
|
+
* @param uuid - UUID of the entity to find
|
|
1667
|
+
* @returns The aggregate entity if found, null otherwise
|
|
1668
|
+
*/
|
|
1669
|
+
declare const findByUUID$1: (client?: {
|
|
1670
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1671
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1672
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1673
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1674
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1675
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1676
|
+
config: ClientConfig;
|
|
1677
|
+
}) => (uuid: UUID) => Promise<ApiResponse<AggregateEntity[] | null>>;
|
|
1678
|
+
/**
|
|
1679
|
+
* Search aggregate entities with pagination and filtering
|
|
1680
|
+
* Uses the new /api/Aggregate/search endpoint with POST method for advanced searching
|
|
1681
|
+
*
|
|
1682
|
+
* @param client - HTTP client instance
|
|
1683
|
+
* @param params - Aggregate search parameters including the new searchBy field
|
|
1684
|
+
* @returns Paginated list of aggregate entities
|
|
1685
|
+
*/
|
|
1686
|
+
declare const getAggregateEntities$1: (client?: {
|
|
1687
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1688
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1689
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1690
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1691
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1692
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1693
|
+
config: ClientConfig;
|
|
1694
|
+
}) => (params?: AggregateFindDTO) => Promise<ApiResponse<PageAggregateEntity>>;
|
|
1695
|
+
/**
|
|
1696
|
+
* Create aggregate objects using the new API structure
|
|
1697
|
+
* Uses POST /api/Aggregate endpoint with new AggregateCreateDTO structure
|
|
1698
|
+
*
|
|
1699
|
+
* @param client - HTTP client instance
|
|
1700
|
+
* @param data - Aggregate creation data with user context
|
|
1701
|
+
* @returns Created aggregate response
|
|
1702
|
+
*/
|
|
1703
|
+
declare const createAggregateObject$1: (client?: {
|
|
1704
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1705
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1706
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1707
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1708
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1709
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1710
|
+
config: ClientConfig;
|
|
1711
|
+
}) => (data: AggregateCreateDTO) => Promise<ApiResponse<any | null>>;
|
|
1712
|
+
/**
|
|
1713
|
+
* Import multiple aggregate objects using the new API structure
|
|
1714
|
+
* Uses POST /api/Aggregate/Import endpoint with new AggregateCreateDTO structure
|
|
1715
|
+
*
|
|
1716
|
+
* @param client - HTTP client instance
|
|
1717
|
+
* @param data - Aggregate creation data with user context
|
|
1718
|
+
* @returns Import response
|
|
1719
|
+
*/
|
|
1720
|
+
declare const importAggregateObjects$1: (client?: {
|
|
1721
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1722
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1723
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1724
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1725
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1726
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1727
|
+
config: ClientConfig;
|
|
1728
|
+
}) => (data: AggregateCreateDTO) => Promise<ApiResponse<any | null>>;
|
|
1729
|
+
|
|
1730
|
+
/**
|
|
1731
|
+
* Authenticate with the base service using client certificate (mTLS)
|
|
1732
|
+
* This will trigger the browser certificate selection popup
|
|
1733
|
+
*
|
|
1734
|
+
* @param client - HTTP client instance
|
|
1735
|
+
* @returns Base service authentication data
|
|
1736
|
+
*/
|
|
1737
|
+
declare const requestBaseAuth: (client?: {
|
|
1738
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1739
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1740
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1741
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1742
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1743
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1744
|
+
config: ClientConfig;
|
|
1745
|
+
}) => () => Promise<ApiResponse<AuthResponse | null>>;
|
|
1746
|
+
/**
|
|
1747
|
+
* Authenticate with the UUID service using client certificate (mTLS)
|
|
1748
|
+
* This will trigger the browser certificate selection popup
|
|
1749
|
+
*
|
|
1750
|
+
* @param client - HTTP client instance
|
|
1751
|
+
* @returns UUID service authentication data
|
|
1752
|
+
*/
|
|
1753
|
+
declare const requestUuidAuth: (client?: {
|
|
1754
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1755
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1756
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1757
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1758
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1759
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1760
|
+
config: ClientConfig;
|
|
1761
|
+
}) => () => Promise<ApiResponse<AuthResponse | null>>;
|
|
1762
|
+
|
|
1763
|
+
/**
|
|
1764
|
+
* Create a complex object with multiple properties, multiple values per property,
|
|
1765
|
+
* and files attached to the object, properties, and values.
|
|
1766
|
+
* This high-level operation handles creating the complete object hierarchy in a single function call.
|
|
1767
|
+
*
|
|
1768
|
+
* @param client - HTTP client instance
|
|
1769
|
+
* @param objectData - The complex object data including properties, values, files, and optional parents
|
|
1770
|
+
* @returns The created complex object with all its relationships
|
|
1771
|
+
*/
|
|
1772
|
+
declare const createFullObject: (client?: {
|
|
1773
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1774
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1775
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1776
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1777
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1778
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1779
|
+
config: ClientConfig;
|
|
1780
|
+
}) => (objectData: ComplexObjectCreationInput) => Promise<ApiResponse<ComplexObjectOutput | null>>;
|
|
1781
|
+
|
|
1782
|
+
/**
|
|
1783
|
+
* Add a property to an object
|
|
1784
|
+
* This high-level operation automatically gets a UUID, creates the property,
|
|
1785
|
+
* and establishes the relationship with the object
|
|
1786
|
+
*
|
|
1787
|
+
* @param client - HTTP client instance
|
|
1788
|
+
* @param objectUuid - UUID of the object to add the property to
|
|
1789
|
+
* @param property - Property data (UUID will be generated if not provided)
|
|
1790
|
+
* @returns The created property
|
|
1791
|
+
*/
|
|
1792
|
+
declare const addPropertyToObject: (client?: {
|
|
1793
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1794
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1795
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1796
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1797
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1798
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1799
|
+
config: ClientConfig;
|
|
1800
|
+
}) => (objectUuid: UUID, property: Partial<UUPropertyDTO> & {
|
|
1801
|
+
key: string;
|
|
1802
|
+
}) => Promise<ApiResponse<UUPropertyDTO>>;
|
|
1803
|
+
/**
|
|
1804
|
+
* Get all properties for an object
|
|
1805
|
+
*
|
|
1806
|
+
* @param client - HTTP client instance
|
|
1807
|
+
* @param objectUuid - UUID of the object to get properties for
|
|
1808
|
+
* @param params - Query parameters
|
|
1809
|
+
* @returns List of properties for the object
|
|
1810
|
+
*/
|
|
1811
|
+
declare const getPropertiesForObject: (client?: {
|
|
1812
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1813
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1814
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1815
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1816
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1817
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1818
|
+
config: ClientConfig;
|
|
1819
|
+
}) => (objectUuid: UUID, params?: QueryParams) => Promise<ApiResponse<UUPropertyDTO[]>>;
|
|
1820
|
+
|
|
1821
|
+
/**
|
|
1822
|
+
* Set a value for a property
|
|
1823
|
+
* This high-level operation automatically gets a UUID, creates the value,
|
|
1824
|
+
* and establishes the relationship with the property
|
|
1825
|
+
*
|
|
1826
|
+
* @param client - HTTP client instance
|
|
1827
|
+
* @param propertyUuid - UUID of the property to set the value for
|
|
1828
|
+
* @param value - Value data (UUID will be generated if not provided)
|
|
1829
|
+
* @returns The created property value
|
|
1830
|
+
*/
|
|
1831
|
+
declare const setValueForProperty: (client?: {
|
|
1832
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1833
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1834
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1835
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1836
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1837
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1838
|
+
config: ClientConfig;
|
|
1839
|
+
}) => (propertyUuid: UUID, value: Partial<UUPropertyValueDTO>) => Promise<ApiResponse<UUPropertyValueDTO>>;
|
|
1840
|
+
/**
|
|
1841
|
+
* Get all values for a property
|
|
1842
|
+
*
|
|
1843
|
+
* @param client - HTTP client instance
|
|
1844
|
+
* @param propertyUuid - UUID of the property to get values for
|
|
1845
|
+
* @param params - Query parameters
|
|
1846
|
+
* @returns List of values for the property
|
|
1847
|
+
*/
|
|
1848
|
+
declare const getValuesForProperty: (client?: {
|
|
1849
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1850
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1851
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1852
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1853
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1854
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1855
|
+
config: ClientConfig;
|
|
1856
|
+
}) => (propertyUuid: UUID, params?: QueryParams) => Promise<ApiResponse<UUPropertyValueDTO[]>>;
|
|
1857
|
+
|
|
1858
|
+
/**
|
|
1859
|
+
* Search for any entity by UUID using the aggregate API
|
|
1860
|
+
* This provides rich aggregated data including relationships, properties, and files
|
|
1861
|
+
*
|
|
1862
|
+
* @param client - HTTP client instance
|
|
1863
|
+
* @param params - Search parameters including pagination and filters
|
|
1864
|
+
* @returns The aggregate entity with all related data if found
|
|
1865
|
+
*/
|
|
1866
|
+
declare const findByUUID: (client?: {
|
|
1867
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1868
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1869
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1870
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1871
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1872
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1873
|
+
config: ClientConfig;
|
|
1874
|
+
}) => (uuid: UUID) => Promise<ApiResponse<AggregateEntity[] | null>>;
|
|
1875
|
+
/**
|
|
1876
|
+
* Search aggregate entities with pagination and filtering
|
|
1877
|
+
*
|
|
1878
|
+
* @param client - HTTP client instance
|
|
1879
|
+
* @param params - Search parameters including pagination and filters
|
|
1880
|
+
* @returns Paginated list of aggregate entities
|
|
1881
|
+
*/
|
|
1882
|
+
declare const getAggregateEntities: (client?: {
|
|
1883
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1884
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1885
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1886
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1887
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1888
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1889
|
+
config: ClientConfig;
|
|
1890
|
+
}) => (params?: AggregateFindDTO) => Promise<ApiResponse<PageAggregateEntity>>;
|
|
1891
|
+
declare const createAggregateObject: (client?: {
|
|
1892
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1893
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1894
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1895
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1896
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1897
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1898
|
+
config: ClientConfig;
|
|
1899
|
+
}) => (data: any) => Promise<ApiResponse<any | null>>;
|
|
1900
|
+
/**
|
|
1901
|
+
* Import multiple aggregate objects
|
|
1902
|
+
*
|
|
1903
|
+
* @param client - HTTP client instance
|
|
1904
|
+
* @param data - Aggregate creation data with user context
|
|
1905
|
+
* @returns Import response
|
|
1906
|
+
*/
|
|
1907
|
+
declare const importAggregateObjects: (client?: {
|
|
1908
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1909
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1910
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1911
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1912
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1913
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1914
|
+
config: ClientConfig;
|
|
1915
|
+
}) => (data: any) => Promise<ApiResponse<any | null>>;
|
|
1916
|
+
|
|
1917
|
+
/**
|
|
1918
|
+
* Upload a file by external URL reference
|
|
1919
|
+
*
|
|
1920
|
+
* This creates a UUFile record with a provided URL in `fileReference` and links it to a parent object.
|
|
1921
|
+
* Always creates a new UUID first, then creates the file record and statement.
|
|
1922
|
+
*
|
|
1923
|
+
* @param client - HTTP client instance
|
|
1924
|
+
* @param input - File reference input with required fileReference and uuidToAttach
|
|
1925
|
+
* @returns The created file record
|
|
1926
|
+
*/
|
|
1927
|
+
declare const uploadByReference: (client?: {
|
|
1928
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1929
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1930
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1931
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1932
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1933
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1934
|
+
config: ClientConfig;
|
|
1935
|
+
}) => (input: {
|
|
1936
|
+
fileReference: string;
|
|
1937
|
+
uuidToAttach: UUID;
|
|
1938
|
+
label?: string;
|
|
1939
|
+
}) => Promise<ApiResponse<UUFileDTO | null>>;
|
|
1940
|
+
/**
|
|
1941
|
+
* Upload a file's binary content directly
|
|
1942
|
+
*
|
|
1943
|
+
* Complete flow for direct binary upload:
|
|
1944
|
+
* 1) Create UUID for the file
|
|
1945
|
+
* 2) Create UUFile record with fileName
|
|
1946
|
+
* 3) POST the binary to /api/UUFile/upload with uuidFile and uuidToAttach
|
|
1947
|
+
* 4) Create statement to link file to parent object
|
|
1948
|
+
*
|
|
1949
|
+
* @param client - HTTP client instance
|
|
1950
|
+
* @param input - File upload input
|
|
1951
|
+
* @returns The created file record
|
|
1952
|
+
*/
|
|
1953
|
+
declare const uploadDirect: (client?: {
|
|
1954
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1955
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1956
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1957
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1958
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1959
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1960
|
+
config: ClientConfig;
|
|
1961
|
+
}) => (input: {
|
|
1962
|
+
file: File | Blob | ArrayBuffer | FormData;
|
|
1963
|
+
uuidToAttach: UUID;
|
|
1964
|
+
}) => Promise<ApiResponse<UUFileDTO | null>>;
|
|
1965
|
+
/**
|
|
1966
|
+
* Upload using pre-constructed FormData from UI
|
|
1967
|
+
*
|
|
1968
|
+
* For cases where the UI has already constructed FormData with additional fields.
|
|
1969
|
+
* This method bypasses the internal FormData construction and uses the provided FormData directly.
|
|
1970
|
+
*
|
|
1971
|
+
* @param client - HTTP client instance
|
|
1972
|
+
* @param input - Upload input with pre-constructed FormData
|
|
1973
|
+
* @returns Upload response
|
|
1974
|
+
*/
|
|
1975
|
+
declare const uploadFormData: (client?: {
|
|
1976
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1977
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1978
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1979
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1980
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1981
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1982
|
+
config: ClientConfig;
|
|
1983
|
+
}) => (input: {
|
|
1984
|
+
formData: FormData;
|
|
1985
|
+
uuidFile: UUID;
|
|
1986
|
+
uuidToAttach: UUID;
|
|
1987
|
+
}) => Promise<ApiResponse<any>>;
|
|
1988
|
+
/**
|
|
1989
|
+
* Download file binary via UUID
|
|
1990
|
+
*/
|
|
1991
|
+
declare const download: (client?: {
|
|
1992
|
+
get: <T>(url: string, params?: Record<string, any>) => Promise<ApiResponse<T>>;
|
|
1993
|
+
getBinary: <T = ArrayBuffer>(url: string) => Promise<ApiResponse<T>>;
|
|
1994
|
+
post: <T>(url: string, data?: any, config?: axios.AxiosRequestConfig) => Promise<ApiResponse<T>>;
|
|
1995
|
+
postForm: <T>(url: string, formData: any) => Promise<ApiResponse<T>>;
|
|
1996
|
+
put: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1997
|
+
delete: <T>(url: string, data?: any) => Promise<ApiResponse<T>>;
|
|
1998
|
+
config: ClientConfig;
|
|
1999
|
+
}) => (uuid: UUID) => Promise<ApiResponse<ArrayBuffer>>;
|
|
2000
|
+
|
|
2001
|
+
/**
|
|
2002
|
+
* Validation error class for handling Zod validation errors
|
|
2003
|
+
*/
|
|
2004
|
+
declare class ValidationError extends Error {
|
|
2005
|
+
errors: Record<string, string[]>;
|
|
2006
|
+
constructor(error: z.ZodError);
|
|
2007
|
+
}
|
|
2008
|
+
/**
|
|
2009
|
+
* Generic validation function for validating data against a Zod schema
|
|
2010
|
+
*
|
|
2011
|
+
* @param schema - Zod schema to validate against
|
|
2012
|
+
* @param data - Data to validate
|
|
2013
|
+
* @returns Validated data or throws ValidationError
|
|
2014
|
+
*/
|
|
2015
|
+
declare function validate<T>(schema: z.ZodType<T>, data: unknown): T;
|
|
2016
|
+
/**
|
|
2017
|
+
* Safe validation function that doesn't throw errors but returns a result
|
|
2018
|
+
*
|
|
2019
|
+
* @param schema - Zod schema to validate against
|
|
2020
|
+
* @param data - Data to validate
|
|
2021
|
+
* @returns Object with success flag and either validated data or validation errors
|
|
2022
|
+
*/
|
|
2023
|
+
declare function validateSafe<T>(schema: z.ZodType<T>, data: unknown): {
|
|
2024
|
+
success: true;
|
|
2025
|
+
data: T;
|
|
2026
|
+
} | {
|
|
2027
|
+
success: false;
|
|
2028
|
+
errors: Record<string, string[]>;
|
|
2029
|
+
};
|
|
2030
|
+
|
|
2031
|
+
/**
|
|
2032
|
+
* Validates and cleans common query parameters
|
|
2033
|
+
* Removes undefined values to avoid sending them in requests
|
|
2034
|
+
*
|
|
2035
|
+
* @param params - Query parameters to validate
|
|
2036
|
+
* @returns Clean validated parameters or undefined if no params
|
|
2037
|
+
*/
|
|
2038
|
+
declare const validateQueryParams: (params?: QueryParams) => Record<string, any> | undefined;
|
|
2039
|
+
/**
|
|
2040
|
+
* Validates and cleans statement query parameters
|
|
2041
|
+
* Removes undefined values to avoid sending them in requests
|
|
2042
|
+
*
|
|
2043
|
+
* @param params - Statement query parameters to validate
|
|
2044
|
+
* @returns Clean validated parameters or undefined if no params
|
|
2045
|
+
*/
|
|
2046
|
+
declare const validateStatementQueryParams: (params?: StatementQueryParams) => Record<string, any> | undefined;
|
|
2047
|
+
/**
|
|
2048
|
+
* Validates and cleans aggregate find parameters
|
|
2049
|
+
* Removes undefined values to avoid sending them in requests
|
|
2050
|
+
*
|
|
2051
|
+
* @param params - Aggregate find parameters to validate
|
|
2052
|
+
* @returns Clean validated parameters or undefined if no params
|
|
2053
|
+
*/
|
|
2054
|
+
declare const validateAggregateParams: (params?: AggregateFindDTO) => Record<string, any> | undefined;
|
|
2055
|
+
/**
|
|
2056
|
+
* Validates a single UUID parameter
|
|
2057
|
+
*
|
|
2058
|
+
* @param uuid - UUID to validate
|
|
2059
|
+
* @returns Validated UUID
|
|
2060
|
+
*/
|
|
2061
|
+
declare const validateUuid: (uuid: string) => string;
|
|
2062
|
+
|
|
2063
|
+
export { Predicate$1 as Predicate, ValidationError, addPropertyToObject, findByUUID$1 as aggregateFindByUUID, findByUUID as aggregateSearch, authorizeUUIDRecord, configureLogger, createAddress, createAddressForObject, createAggregateObject as createAggregate, createAggregateObject$1 as createAggregateObject, createClient, createFullObject, createOrFindStatements, createOrUpdateFile, createOrUpdateObject, createOrUpdateProperty, createOrUpdatePropertyValue, createStatement, createUUID, download as downloadFile, downloadFileBinary, findChildren, findFiles, findParents, findProperties, findPropertyValues, getAddresses, getAggregateEntities$1 as getAggregateEntities, getFiles, getObjects, getOwnedUUIDs, getProperties, getPropertiesForObject, getPropertyByKey, getPropertyValues, getStatements, getStatementsByUuidAndPredicate, getUUIDRecord, getValuesForProperty, importAggregateObjects$1 as importAggregateObjects, importAggregateObjects as importAggregates, initializeClient, requestBaseAuth, requestUuidAuth, getAggregateEntities as searchAggregateEntities, setHttpClient, setValueForProperty, softDeleteAddress, softDeleteFile, softDeleteObject, softDeleteProperty, softDeletePropertyValue, softDeleteStatement, updateAddress, updateUUIDRecordMeta, uploadFileBinary, uploadByReference as uploadFileByReference, uploadDirect as uploadFileDirect, uploadFormData as uploadFileFormData, validate, validateAggregateParams, validateQueryParams, validateSafe, validateStatementQueryParams, validateUuid };
|
|
2064
|
+
export type { AggregateCreateDTO$1 as AggregateCreateDTO, AggregateEntity$1 as AggregateEntity, AggregateEntityCreateDTO$1 as AggregateEntityCreateDTO, AggregateFile, AggregateFindDTO$1 as AggregateFindDTO, AggregateProperty, AggregateUUAddress$1 as AggregateUUAddress, AggregateUUAddressCreateDTO$1 as AggregateUUAddressCreateDTO, AggregateUUFile$1 as AggregateUUFile, AggregateUUFileCreateDTO$1 as AggregateUUFileCreateDTO, AggregateUUObject$1 as AggregateUUObject, AggregateUUProperty$1 as AggregateUUProperty, AggregateUUPropertyCreateDTO$1 as AggregateUUPropertyCreateDTO, AggregateUUPropertyValue$1 as AggregateUUPropertyValue, AggregateUUPropertyValueCreateDTO$1 as AggregateUUPropertyValueCreateDTO, ApiError, ApiResponse$1 as ApiResponse, AuditUser$1 as AuditUser, AuthResponse$1 as AuthResponse, ClientConfig$1 as ClientConfig, ComplexObjectCreationInput$1 as ComplexObjectCreationInput, ComplexObjectOutput$1 as ComplexObjectOutput, PageAggregateEntity$1 as PageAggregateEntity, QueryParams$1 as QueryParams, StatementQueryParams$1 as StatementQueryParams, UUAddressDTO$1 as UUAddressDTO, UUFileDTO$1 as UUFileDTO, UUID$1 as UUID, UUObjectDTO$1 as UUObjectDTO, UUObjectWithProperties, UUPropertyDTO$1 as UUPropertyDTO, UUPropertyValueDTO$1 as UUPropertyValueDTO, UUStatementDTO$1 as UUStatementDTO, UUStatementFindDTO$1 as UUStatementFindDTO, UUStatementsProperty$1 as UUStatementsProperty, UUStatementsPropertyValue$1 as UUStatementsPropertyValue, UserDetailsCustom$1 as UserDetailsCustom };
|