@lssm/lib.files 0.0.0-canary-20251207012602 → 0.0.0-canary-20251207013726
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/dist/contracts/index.d.ts +290 -290
- package/dist/entities/index.d.ts +133 -133
- package/package.json +1 -1
|
@@ -1,625 +1,625 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema115 from "@lssm/lib.schema";
|
|
2
2
|
import * as _lssm_lib_contracts15 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/contracts/index.d.ts
|
|
5
|
-
declare const FileModel:
|
|
5
|
+
declare const FileModel: _lssm_lib_schema115.SchemaModel<{
|
|
6
6
|
id: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
name: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
mimeType: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
size: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
storageProvider: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
storagePath: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
checksum: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
32
32
|
isOptional: true;
|
|
33
33
|
};
|
|
34
34
|
status: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
isPublic: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema115.FieldType<boolean, boolean>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
ownerId: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
orgId: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
48
48
|
isOptional: true;
|
|
49
49
|
};
|
|
50
50
|
metadata: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema115.FieldType<unknown, unknown>;
|
|
52
52
|
isOptional: true;
|
|
53
53
|
};
|
|
54
54
|
width: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
56
56
|
isOptional: true;
|
|
57
57
|
};
|
|
58
58
|
height: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
60
60
|
isOptional: true;
|
|
61
61
|
};
|
|
62
62
|
createdAt: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
updatedAt: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
}>;
|
|
71
|
-
declare const FileVersionModel:
|
|
71
|
+
declare const FileVersionModel: _lssm_lib_schema115.SchemaModel<{
|
|
72
72
|
id: {
|
|
73
|
-
type:
|
|
73
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
74
74
|
isOptional: false;
|
|
75
75
|
};
|
|
76
76
|
fileId: {
|
|
77
|
-
type:
|
|
77
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
78
78
|
isOptional: false;
|
|
79
79
|
};
|
|
80
80
|
version: {
|
|
81
|
-
type:
|
|
81
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
82
82
|
isOptional: false;
|
|
83
83
|
};
|
|
84
84
|
size: {
|
|
85
|
-
type:
|
|
85
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
86
86
|
isOptional: false;
|
|
87
87
|
};
|
|
88
88
|
storagePath: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
checksum: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
94
94
|
isOptional: true;
|
|
95
95
|
};
|
|
96
96
|
comment: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
98
98
|
isOptional: true;
|
|
99
99
|
};
|
|
100
100
|
createdBy: {
|
|
101
|
-
type:
|
|
101
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
102
102
|
isOptional: false;
|
|
103
103
|
};
|
|
104
104
|
createdAt: {
|
|
105
|
-
type:
|
|
105
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
106
106
|
isOptional: false;
|
|
107
107
|
};
|
|
108
108
|
}>;
|
|
109
|
-
declare const AttachmentModel:
|
|
109
|
+
declare const AttachmentModel: _lssm_lib_schema115.SchemaModel<{
|
|
110
110
|
id: {
|
|
111
|
-
type:
|
|
111
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
112
112
|
isOptional: false;
|
|
113
113
|
};
|
|
114
114
|
fileId: {
|
|
115
|
-
type:
|
|
115
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
116
116
|
isOptional: false;
|
|
117
117
|
};
|
|
118
118
|
entityType: {
|
|
119
|
-
type:
|
|
119
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
entityId: {
|
|
123
|
-
type:
|
|
123
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
124
124
|
isOptional: false;
|
|
125
125
|
};
|
|
126
126
|
attachmentType: {
|
|
127
|
-
type:
|
|
127
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
128
128
|
isOptional: true;
|
|
129
129
|
};
|
|
130
130
|
name: {
|
|
131
|
-
type:
|
|
131
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
132
132
|
isOptional: true;
|
|
133
133
|
};
|
|
134
134
|
description: {
|
|
135
|
-
type:
|
|
135
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
136
136
|
isOptional: true;
|
|
137
137
|
};
|
|
138
138
|
order: {
|
|
139
|
-
type:
|
|
139
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
140
140
|
isOptional: false;
|
|
141
141
|
};
|
|
142
142
|
metadata: {
|
|
143
|
-
type:
|
|
143
|
+
type: _lssm_lib_schema115.FieldType<unknown, unknown>;
|
|
144
144
|
isOptional: true;
|
|
145
145
|
};
|
|
146
146
|
createdBy: {
|
|
147
|
-
type:
|
|
147
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
148
148
|
isOptional: false;
|
|
149
149
|
};
|
|
150
150
|
createdAt: {
|
|
151
|
-
type:
|
|
151
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
152
152
|
isOptional: false;
|
|
153
153
|
};
|
|
154
154
|
file: {
|
|
155
|
-
type:
|
|
155
|
+
type: _lssm_lib_schema115.SchemaModel<{
|
|
156
156
|
id: {
|
|
157
|
-
type:
|
|
157
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
158
158
|
isOptional: false;
|
|
159
159
|
};
|
|
160
160
|
name: {
|
|
161
|
-
type:
|
|
161
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
162
162
|
isOptional: false;
|
|
163
163
|
};
|
|
164
164
|
mimeType: {
|
|
165
|
-
type:
|
|
165
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
166
166
|
isOptional: false;
|
|
167
167
|
};
|
|
168
168
|
size: {
|
|
169
|
-
type:
|
|
169
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
170
170
|
isOptional: false;
|
|
171
171
|
};
|
|
172
172
|
storageProvider: {
|
|
173
|
-
type:
|
|
173
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
174
174
|
isOptional: false;
|
|
175
175
|
};
|
|
176
176
|
storagePath: {
|
|
177
|
-
type:
|
|
177
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
178
178
|
isOptional: false;
|
|
179
179
|
};
|
|
180
180
|
checksum: {
|
|
181
|
-
type:
|
|
181
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
182
182
|
isOptional: true;
|
|
183
183
|
};
|
|
184
184
|
status: {
|
|
185
|
-
type:
|
|
185
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
186
186
|
isOptional: false;
|
|
187
187
|
};
|
|
188
188
|
isPublic: {
|
|
189
|
-
type:
|
|
189
|
+
type: _lssm_lib_schema115.FieldType<boolean, boolean>;
|
|
190
190
|
isOptional: false;
|
|
191
191
|
};
|
|
192
192
|
ownerId: {
|
|
193
|
-
type:
|
|
193
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
194
194
|
isOptional: false;
|
|
195
195
|
};
|
|
196
196
|
orgId: {
|
|
197
|
-
type:
|
|
197
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
198
198
|
isOptional: true;
|
|
199
199
|
};
|
|
200
200
|
metadata: {
|
|
201
|
-
type:
|
|
201
|
+
type: _lssm_lib_schema115.FieldType<unknown, unknown>;
|
|
202
202
|
isOptional: true;
|
|
203
203
|
};
|
|
204
204
|
width: {
|
|
205
|
-
type:
|
|
205
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
206
206
|
isOptional: true;
|
|
207
207
|
};
|
|
208
208
|
height: {
|
|
209
|
-
type:
|
|
209
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
210
210
|
isOptional: true;
|
|
211
211
|
};
|
|
212
212
|
createdAt: {
|
|
213
|
-
type:
|
|
213
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
214
214
|
isOptional: false;
|
|
215
215
|
};
|
|
216
216
|
updatedAt: {
|
|
217
|
-
type:
|
|
217
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
218
218
|
isOptional: false;
|
|
219
219
|
};
|
|
220
220
|
}>;
|
|
221
221
|
isOptional: true;
|
|
222
222
|
};
|
|
223
223
|
}>;
|
|
224
|
-
declare const PresignedUrlModel:
|
|
224
|
+
declare const PresignedUrlModel: _lssm_lib_schema115.SchemaModel<{
|
|
225
225
|
url: {
|
|
226
|
-
type:
|
|
226
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
227
227
|
isOptional: false;
|
|
228
228
|
};
|
|
229
229
|
fields: {
|
|
230
|
-
type:
|
|
230
|
+
type: _lssm_lib_schema115.FieldType<unknown, unknown>;
|
|
231
231
|
isOptional: true;
|
|
232
232
|
};
|
|
233
233
|
expiresAt: {
|
|
234
|
-
type:
|
|
234
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
235
235
|
isOptional: false;
|
|
236
236
|
};
|
|
237
237
|
fileId: {
|
|
238
|
-
type:
|
|
238
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
239
239
|
isOptional: true;
|
|
240
240
|
};
|
|
241
241
|
sessionId: {
|
|
242
|
-
type:
|
|
242
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
243
243
|
isOptional: true;
|
|
244
244
|
};
|
|
245
245
|
}>;
|
|
246
246
|
/**
|
|
247
247
|
* Upload a file.
|
|
248
248
|
*/
|
|
249
|
-
declare const UploadFileContract: _lssm_lib_contracts15.ContractSpec<
|
|
249
|
+
declare const UploadFileContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema115.SchemaModel<{
|
|
250
250
|
name: {
|
|
251
|
-
type:
|
|
251
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
252
252
|
isOptional: false;
|
|
253
253
|
};
|
|
254
254
|
mimeType: {
|
|
255
|
-
type:
|
|
255
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
256
256
|
isOptional: false;
|
|
257
257
|
};
|
|
258
258
|
size: {
|
|
259
|
-
type:
|
|
259
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
260
260
|
isOptional: false;
|
|
261
261
|
};
|
|
262
262
|
content: {
|
|
263
|
-
type:
|
|
263
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
264
264
|
isOptional: false;
|
|
265
265
|
};
|
|
266
266
|
orgId: {
|
|
267
|
-
type:
|
|
267
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
268
268
|
isOptional: true;
|
|
269
269
|
};
|
|
270
270
|
isPublic: {
|
|
271
|
-
type:
|
|
271
|
+
type: _lssm_lib_schema115.FieldType<boolean, boolean>;
|
|
272
272
|
isOptional: true;
|
|
273
273
|
};
|
|
274
274
|
metadata: {
|
|
275
|
-
type:
|
|
275
|
+
type: _lssm_lib_schema115.FieldType<unknown, unknown>;
|
|
276
276
|
isOptional: true;
|
|
277
277
|
};
|
|
278
278
|
tags: {
|
|
279
|
-
type:
|
|
279
|
+
type: _lssm_lib_schema115.FieldType<unknown, unknown>;
|
|
280
280
|
isOptional: true;
|
|
281
281
|
};
|
|
282
|
-
}>,
|
|
282
|
+
}>, _lssm_lib_schema115.SchemaModel<{
|
|
283
283
|
id: {
|
|
284
|
-
type:
|
|
284
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
285
285
|
isOptional: false;
|
|
286
286
|
};
|
|
287
287
|
name: {
|
|
288
|
-
type:
|
|
288
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
289
289
|
isOptional: false;
|
|
290
290
|
};
|
|
291
291
|
mimeType: {
|
|
292
|
-
type:
|
|
292
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
293
293
|
isOptional: false;
|
|
294
294
|
};
|
|
295
295
|
size: {
|
|
296
|
-
type:
|
|
296
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
297
297
|
isOptional: false;
|
|
298
298
|
};
|
|
299
299
|
storageProvider: {
|
|
300
|
-
type:
|
|
300
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
301
301
|
isOptional: false;
|
|
302
302
|
};
|
|
303
303
|
storagePath: {
|
|
304
|
-
type:
|
|
304
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
305
305
|
isOptional: false;
|
|
306
306
|
};
|
|
307
307
|
checksum: {
|
|
308
|
-
type:
|
|
308
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
309
309
|
isOptional: true;
|
|
310
310
|
};
|
|
311
311
|
status: {
|
|
312
|
-
type:
|
|
312
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
313
313
|
isOptional: false;
|
|
314
314
|
};
|
|
315
315
|
isPublic: {
|
|
316
|
-
type:
|
|
316
|
+
type: _lssm_lib_schema115.FieldType<boolean, boolean>;
|
|
317
317
|
isOptional: false;
|
|
318
318
|
};
|
|
319
319
|
ownerId: {
|
|
320
|
-
type:
|
|
320
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
321
321
|
isOptional: false;
|
|
322
322
|
};
|
|
323
323
|
orgId: {
|
|
324
|
-
type:
|
|
324
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
325
325
|
isOptional: true;
|
|
326
326
|
};
|
|
327
327
|
metadata: {
|
|
328
|
-
type:
|
|
328
|
+
type: _lssm_lib_schema115.FieldType<unknown, unknown>;
|
|
329
329
|
isOptional: true;
|
|
330
330
|
};
|
|
331
331
|
width: {
|
|
332
|
-
type:
|
|
332
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
333
333
|
isOptional: true;
|
|
334
334
|
};
|
|
335
335
|
height: {
|
|
336
|
-
type:
|
|
336
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
337
337
|
isOptional: true;
|
|
338
338
|
};
|
|
339
339
|
createdAt: {
|
|
340
|
-
type:
|
|
340
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
341
341
|
isOptional: false;
|
|
342
342
|
};
|
|
343
343
|
updatedAt: {
|
|
344
|
-
type:
|
|
344
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
345
345
|
isOptional: false;
|
|
346
346
|
};
|
|
347
347
|
}>, undefined>;
|
|
348
348
|
/**
|
|
349
349
|
* Update a file.
|
|
350
350
|
*/
|
|
351
|
-
declare const UpdateFileContract: _lssm_lib_contracts15.ContractSpec<
|
|
351
|
+
declare const UpdateFileContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema115.SchemaModel<{
|
|
352
352
|
fileId: {
|
|
353
|
-
type:
|
|
353
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
354
354
|
isOptional: false;
|
|
355
355
|
};
|
|
356
356
|
name: {
|
|
357
|
-
type:
|
|
357
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
358
358
|
isOptional: true;
|
|
359
359
|
};
|
|
360
360
|
isPublic: {
|
|
361
|
-
type:
|
|
361
|
+
type: _lssm_lib_schema115.FieldType<boolean, boolean>;
|
|
362
362
|
isOptional: true;
|
|
363
363
|
};
|
|
364
364
|
metadata: {
|
|
365
|
-
type:
|
|
365
|
+
type: _lssm_lib_schema115.FieldType<unknown, unknown>;
|
|
366
366
|
isOptional: true;
|
|
367
367
|
};
|
|
368
368
|
tags: {
|
|
369
|
-
type:
|
|
369
|
+
type: _lssm_lib_schema115.FieldType<unknown, unknown>;
|
|
370
370
|
isOptional: true;
|
|
371
371
|
};
|
|
372
|
-
}>,
|
|
372
|
+
}>, _lssm_lib_schema115.SchemaModel<{
|
|
373
373
|
id: {
|
|
374
|
-
type:
|
|
374
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
375
375
|
isOptional: false;
|
|
376
376
|
};
|
|
377
377
|
name: {
|
|
378
|
-
type:
|
|
378
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
379
379
|
isOptional: false;
|
|
380
380
|
};
|
|
381
381
|
mimeType: {
|
|
382
|
-
type:
|
|
382
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
383
383
|
isOptional: false;
|
|
384
384
|
};
|
|
385
385
|
size: {
|
|
386
|
-
type:
|
|
386
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
387
387
|
isOptional: false;
|
|
388
388
|
};
|
|
389
389
|
storageProvider: {
|
|
390
|
-
type:
|
|
390
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
391
391
|
isOptional: false;
|
|
392
392
|
};
|
|
393
393
|
storagePath: {
|
|
394
|
-
type:
|
|
394
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
395
395
|
isOptional: false;
|
|
396
396
|
};
|
|
397
397
|
checksum: {
|
|
398
|
-
type:
|
|
398
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
399
399
|
isOptional: true;
|
|
400
400
|
};
|
|
401
401
|
status: {
|
|
402
|
-
type:
|
|
402
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
403
403
|
isOptional: false;
|
|
404
404
|
};
|
|
405
405
|
isPublic: {
|
|
406
|
-
type:
|
|
406
|
+
type: _lssm_lib_schema115.FieldType<boolean, boolean>;
|
|
407
407
|
isOptional: false;
|
|
408
408
|
};
|
|
409
409
|
ownerId: {
|
|
410
|
-
type:
|
|
410
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
411
411
|
isOptional: false;
|
|
412
412
|
};
|
|
413
413
|
orgId: {
|
|
414
|
-
type:
|
|
414
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
415
415
|
isOptional: true;
|
|
416
416
|
};
|
|
417
417
|
metadata: {
|
|
418
|
-
type:
|
|
418
|
+
type: _lssm_lib_schema115.FieldType<unknown, unknown>;
|
|
419
419
|
isOptional: true;
|
|
420
420
|
};
|
|
421
421
|
width: {
|
|
422
|
-
type:
|
|
422
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
423
423
|
isOptional: true;
|
|
424
424
|
};
|
|
425
425
|
height: {
|
|
426
|
-
type:
|
|
426
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
427
427
|
isOptional: true;
|
|
428
428
|
};
|
|
429
429
|
createdAt: {
|
|
430
|
-
type:
|
|
430
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
431
431
|
isOptional: false;
|
|
432
432
|
};
|
|
433
433
|
updatedAt: {
|
|
434
|
-
type:
|
|
434
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
435
435
|
isOptional: false;
|
|
436
436
|
};
|
|
437
437
|
}>, undefined>;
|
|
438
438
|
/**
|
|
439
439
|
* Delete a file.
|
|
440
440
|
*/
|
|
441
|
-
declare const DeleteFileContract: _lssm_lib_contracts15.ContractSpec<
|
|
441
|
+
declare const DeleteFileContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema115.SchemaModel<{
|
|
442
442
|
fileId: {
|
|
443
|
-
type:
|
|
443
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
444
444
|
isOptional: false;
|
|
445
445
|
};
|
|
446
|
-
}>,
|
|
446
|
+
}>, _lssm_lib_schema115.SchemaModel<{
|
|
447
447
|
success: {
|
|
448
|
-
type:
|
|
448
|
+
type: _lssm_lib_schema115.FieldType<boolean, boolean>;
|
|
449
449
|
isOptional: false;
|
|
450
450
|
};
|
|
451
451
|
}>, undefined>;
|
|
452
452
|
/**
|
|
453
453
|
* Get a file by ID.
|
|
454
454
|
*/
|
|
455
|
-
declare const GetFileContract: _lssm_lib_contracts15.ContractSpec<
|
|
455
|
+
declare const GetFileContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema115.SchemaModel<{
|
|
456
456
|
fileId: {
|
|
457
|
-
type:
|
|
457
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
458
458
|
isOptional: false;
|
|
459
459
|
};
|
|
460
|
-
}>,
|
|
460
|
+
}>, _lssm_lib_schema115.SchemaModel<{
|
|
461
461
|
id: {
|
|
462
|
-
type:
|
|
462
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
463
463
|
isOptional: false;
|
|
464
464
|
};
|
|
465
465
|
name: {
|
|
466
|
-
type:
|
|
466
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
467
467
|
isOptional: false;
|
|
468
468
|
};
|
|
469
469
|
mimeType: {
|
|
470
|
-
type:
|
|
470
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
471
471
|
isOptional: false;
|
|
472
472
|
};
|
|
473
473
|
size: {
|
|
474
|
-
type:
|
|
474
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
475
475
|
isOptional: false;
|
|
476
476
|
};
|
|
477
477
|
storageProvider: {
|
|
478
|
-
type:
|
|
478
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
479
479
|
isOptional: false;
|
|
480
480
|
};
|
|
481
481
|
storagePath: {
|
|
482
|
-
type:
|
|
482
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
483
483
|
isOptional: false;
|
|
484
484
|
};
|
|
485
485
|
checksum: {
|
|
486
|
-
type:
|
|
486
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
487
487
|
isOptional: true;
|
|
488
488
|
};
|
|
489
489
|
status: {
|
|
490
|
-
type:
|
|
490
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
491
491
|
isOptional: false;
|
|
492
492
|
};
|
|
493
493
|
isPublic: {
|
|
494
|
-
type:
|
|
494
|
+
type: _lssm_lib_schema115.FieldType<boolean, boolean>;
|
|
495
495
|
isOptional: false;
|
|
496
496
|
};
|
|
497
497
|
ownerId: {
|
|
498
|
-
type:
|
|
498
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
499
499
|
isOptional: false;
|
|
500
500
|
};
|
|
501
501
|
orgId: {
|
|
502
|
-
type:
|
|
502
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
503
503
|
isOptional: true;
|
|
504
504
|
};
|
|
505
505
|
metadata: {
|
|
506
|
-
type:
|
|
506
|
+
type: _lssm_lib_schema115.FieldType<unknown, unknown>;
|
|
507
507
|
isOptional: true;
|
|
508
508
|
};
|
|
509
509
|
width: {
|
|
510
|
-
type:
|
|
510
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
511
511
|
isOptional: true;
|
|
512
512
|
};
|
|
513
513
|
height: {
|
|
514
|
-
type:
|
|
514
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
515
515
|
isOptional: true;
|
|
516
516
|
};
|
|
517
517
|
createdAt: {
|
|
518
|
-
type:
|
|
518
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
519
519
|
isOptional: false;
|
|
520
520
|
};
|
|
521
521
|
updatedAt: {
|
|
522
|
-
type:
|
|
522
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
523
523
|
isOptional: false;
|
|
524
524
|
};
|
|
525
525
|
}>, undefined>;
|
|
526
526
|
/**
|
|
527
527
|
* List files.
|
|
528
528
|
*/
|
|
529
|
-
declare const ListFilesContract: _lssm_lib_contracts15.ContractSpec<
|
|
529
|
+
declare const ListFilesContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema115.SchemaModel<{
|
|
530
530
|
orgId: {
|
|
531
|
-
type:
|
|
531
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
532
532
|
isOptional: true;
|
|
533
533
|
};
|
|
534
534
|
ownerId: {
|
|
535
|
-
type:
|
|
535
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
536
536
|
isOptional: true;
|
|
537
537
|
};
|
|
538
538
|
mimeType: {
|
|
539
|
-
type:
|
|
539
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
540
540
|
isOptional: true;
|
|
541
541
|
};
|
|
542
542
|
status: {
|
|
543
|
-
type:
|
|
543
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
544
544
|
isOptional: true;
|
|
545
545
|
};
|
|
546
546
|
tags: {
|
|
547
|
-
type:
|
|
547
|
+
type: _lssm_lib_schema115.FieldType<unknown, unknown>;
|
|
548
548
|
isOptional: true;
|
|
549
549
|
};
|
|
550
550
|
limit: {
|
|
551
|
-
type:
|
|
551
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
552
552
|
isOptional: true;
|
|
553
553
|
};
|
|
554
554
|
offset: {
|
|
555
|
-
type:
|
|
555
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
556
556
|
isOptional: true;
|
|
557
557
|
};
|
|
558
|
-
}>,
|
|
558
|
+
}>, _lssm_lib_schema115.SchemaModel<{
|
|
559
559
|
files: {
|
|
560
|
-
type:
|
|
560
|
+
type: _lssm_lib_schema115.SchemaModel<{
|
|
561
561
|
id: {
|
|
562
|
-
type:
|
|
562
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
563
563
|
isOptional: false;
|
|
564
564
|
};
|
|
565
565
|
name: {
|
|
566
|
-
type:
|
|
566
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
567
567
|
isOptional: false;
|
|
568
568
|
};
|
|
569
569
|
mimeType: {
|
|
570
|
-
type:
|
|
570
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
571
571
|
isOptional: false;
|
|
572
572
|
};
|
|
573
573
|
size: {
|
|
574
|
-
type:
|
|
574
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
575
575
|
isOptional: false;
|
|
576
576
|
};
|
|
577
577
|
storageProvider: {
|
|
578
|
-
type:
|
|
578
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
579
579
|
isOptional: false;
|
|
580
580
|
};
|
|
581
581
|
storagePath: {
|
|
582
|
-
type:
|
|
582
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
583
583
|
isOptional: false;
|
|
584
584
|
};
|
|
585
585
|
checksum: {
|
|
586
|
-
type:
|
|
586
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
587
587
|
isOptional: true;
|
|
588
588
|
};
|
|
589
589
|
status: {
|
|
590
|
-
type:
|
|
590
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
591
591
|
isOptional: false;
|
|
592
592
|
};
|
|
593
593
|
isPublic: {
|
|
594
|
-
type:
|
|
594
|
+
type: _lssm_lib_schema115.FieldType<boolean, boolean>;
|
|
595
595
|
isOptional: false;
|
|
596
596
|
};
|
|
597
597
|
ownerId: {
|
|
598
|
-
type:
|
|
598
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
599
599
|
isOptional: false;
|
|
600
600
|
};
|
|
601
601
|
orgId: {
|
|
602
|
-
type:
|
|
602
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
603
603
|
isOptional: true;
|
|
604
604
|
};
|
|
605
605
|
metadata: {
|
|
606
|
-
type:
|
|
606
|
+
type: _lssm_lib_schema115.FieldType<unknown, unknown>;
|
|
607
607
|
isOptional: true;
|
|
608
608
|
};
|
|
609
609
|
width: {
|
|
610
|
-
type:
|
|
610
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
611
611
|
isOptional: true;
|
|
612
612
|
};
|
|
613
613
|
height: {
|
|
614
|
-
type:
|
|
614
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
615
615
|
isOptional: true;
|
|
616
616
|
};
|
|
617
617
|
createdAt: {
|
|
618
|
-
type:
|
|
618
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
619
619
|
isOptional: false;
|
|
620
620
|
};
|
|
621
621
|
updatedAt: {
|
|
622
|
-
type:
|
|
622
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
623
623
|
isOptional: false;
|
|
624
624
|
};
|
|
625
625
|
}>;
|
|
@@ -627,151 +627,151 @@ declare const ListFilesContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_sc
|
|
|
627
627
|
isOptional: false;
|
|
628
628
|
};
|
|
629
629
|
total: {
|
|
630
|
-
type:
|
|
630
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
631
631
|
isOptional: false;
|
|
632
632
|
};
|
|
633
633
|
}>, undefined>;
|
|
634
634
|
/**
|
|
635
635
|
* Get download URL.
|
|
636
636
|
*/
|
|
637
|
-
declare const GetDownloadUrlContract: _lssm_lib_contracts15.ContractSpec<
|
|
637
|
+
declare const GetDownloadUrlContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema115.SchemaModel<{
|
|
638
638
|
fileId: {
|
|
639
|
-
type:
|
|
639
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
640
640
|
isOptional: false;
|
|
641
641
|
};
|
|
642
642
|
expiresInSeconds: {
|
|
643
|
-
type:
|
|
643
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
644
644
|
isOptional: true;
|
|
645
645
|
};
|
|
646
|
-
}>,
|
|
646
|
+
}>, _lssm_lib_schema115.SchemaModel<{
|
|
647
647
|
url: {
|
|
648
|
-
type:
|
|
648
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
649
649
|
isOptional: false;
|
|
650
650
|
};
|
|
651
651
|
fields: {
|
|
652
|
-
type:
|
|
652
|
+
type: _lssm_lib_schema115.FieldType<unknown, unknown>;
|
|
653
653
|
isOptional: true;
|
|
654
654
|
};
|
|
655
655
|
expiresAt: {
|
|
656
|
-
type:
|
|
656
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
657
657
|
isOptional: false;
|
|
658
658
|
};
|
|
659
659
|
fileId: {
|
|
660
|
-
type:
|
|
660
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
661
661
|
isOptional: true;
|
|
662
662
|
};
|
|
663
663
|
sessionId: {
|
|
664
|
-
type:
|
|
664
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
665
665
|
isOptional: true;
|
|
666
666
|
};
|
|
667
667
|
}>, undefined>;
|
|
668
668
|
/**
|
|
669
669
|
* Create a file version.
|
|
670
670
|
*/
|
|
671
|
-
declare const CreateVersionContract: _lssm_lib_contracts15.ContractSpec<
|
|
671
|
+
declare const CreateVersionContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema115.SchemaModel<{
|
|
672
672
|
fileId: {
|
|
673
|
-
type:
|
|
673
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
674
674
|
isOptional: false;
|
|
675
675
|
};
|
|
676
676
|
content: {
|
|
677
|
-
type:
|
|
677
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
678
678
|
isOptional: false;
|
|
679
679
|
};
|
|
680
680
|
comment: {
|
|
681
|
-
type:
|
|
681
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
682
682
|
isOptional: true;
|
|
683
683
|
};
|
|
684
|
-
}>,
|
|
684
|
+
}>, _lssm_lib_schema115.SchemaModel<{
|
|
685
685
|
id: {
|
|
686
|
-
type:
|
|
686
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
687
687
|
isOptional: false;
|
|
688
688
|
};
|
|
689
689
|
fileId: {
|
|
690
|
-
type:
|
|
690
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
691
691
|
isOptional: false;
|
|
692
692
|
};
|
|
693
693
|
version: {
|
|
694
|
-
type:
|
|
694
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
695
695
|
isOptional: false;
|
|
696
696
|
};
|
|
697
697
|
size: {
|
|
698
|
-
type:
|
|
698
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
699
699
|
isOptional: false;
|
|
700
700
|
};
|
|
701
701
|
storagePath: {
|
|
702
|
-
type:
|
|
702
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
703
703
|
isOptional: false;
|
|
704
704
|
};
|
|
705
705
|
checksum: {
|
|
706
|
-
type:
|
|
706
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
707
707
|
isOptional: true;
|
|
708
708
|
};
|
|
709
709
|
comment: {
|
|
710
|
-
type:
|
|
710
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
711
711
|
isOptional: true;
|
|
712
712
|
};
|
|
713
713
|
createdBy: {
|
|
714
|
-
type:
|
|
714
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
715
715
|
isOptional: false;
|
|
716
716
|
};
|
|
717
717
|
createdAt: {
|
|
718
|
-
type:
|
|
718
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
719
719
|
isOptional: false;
|
|
720
720
|
};
|
|
721
721
|
}>, undefined>;
|
|
722
722
|
/**
|
|
723
723
|
* Get file versions.
|
|
724
724
|
*/
|
|
725
|
-
declare const GetVersionsContract: _lssm_lib_contracts15.ContractSpec<
|
|
725
|
+
declare const GetVersionsContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema115.SchemaModel<{
|
|
726
726
|
fileId: {
|
|
727
|
-
type:
|
|
727
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
728
728
|
isOptional: false;
|
|
729
729
|
};
|
|
730
730
|
limit: {
|
|
731
|
-
type:
|
|
731
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
732
732
|
isOptional: true;
|
|
733
733
|
};
|
|
734
734
|
offset: {
|
|
735
|
-
type:
|
|
735
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
736
736
|
isOptional: true;
|
|
737
737
|
};
|
|
738
|
-
}>,
|
|
738
|
+
}>, _lssm_lib_schema115.SchemaModel<{
|
|
739
739
|
versions: {
|
|
740
|
-
type:
|
|
740
|
+
type: _lssm_lib_schema115.SchemaModel<{
|
|
741
741
|
id: {
|
|
742
|
-
type:
|
|
742
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
743
743
|
isOptional: false;
|
|
744
744
|
};
|
|
745
745
|
fileId: {
|
|
746
|
-
type:
|
|
746
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
747
747
|
isOptional: false;
|
|
748
748
|
};
|
|
749
749
|
version: {
|
|
750
|
-
type:
|
|
750
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
751
751
|
isOptional: false;
|
|
752
752
|
};
|
|
753
753
|
size: {
|
|
754
|
-
type:
|
|
754
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
755
755
|
isOptional: false;
|
|
756
756
|
};
|
|
757
757
|
storagePath: {
|
|
758
|
-
type:
|
|
758
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
759
759
|
isOptional: false;
|
|
760
760
|
};
|
|
761
761
|
checksum: {
|
|
762
|
-
type:
|
|
762
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
763
763
|
isOptional: true;
|
|
764
764
|
};
|
|
765
765
|
comment: {
|
|
766
|
-
type:
|
|
766
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
767
767
|
isOptional: true;
|
|
768
768
|
};
|
|
769
769
|
createdBy: {
|
|
770
|
-
type:
|
|
770
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
771
771
|
isOptional: false;
|
|
772
772
|
};
|
|
773
773
|
createdAt: {
|
|
774
|
-
type:
|
|
774
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
775
775
|
isOptional: false;
|
|
776
776
|
};
|
|
777
777
|
}>;
|
|
@@ -779,155 +779,155 @@ declare const GetVersionsContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_
|
|
|
779
779
|
isOptional: false;
|
|
780
780
|
};
|
|
781
781
|
total: {
|
|
782
|
-
type:
|
|
782
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
783
783
|
isOptional: false;
|
|
784
784
|
};
|
|
785
785
|
}>, undefined>;
|
|
786
786
|
/**
|
|
787
787
|
* Attach a file to an entity.
|
|
788
788
|
*/
|
|
789
|
-
declare const AttachFileContract: _lssm_lib_contracts15.ContractSpec<
|
|
789
|
+
declare const AttachFileContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema115.SchemaModel<{
|
|
790
790
|
fileId: {
|
|
791
|
-
type:
|
|
791
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
792
792
|
isOptional: false;
|
|
793
793
|
};
|
|
794
794
|
entityType: {
|
|
795
|
-
type:
|
|
795
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
796
796
|
isOptional: false;
|
|
797
797
|
};
|
|
798
798
|
entityId: {
|
|
799
|
-
type:
|
|
799
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
800
800
|
isOptional: false;
|
|
801
801
|
};
|
|
802
802
|
attachmentType: {
|
|
803
|
-
type:
|
|
803
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
804
804
|
isOptional: true;
|
|
805
805
|
};
|
|
806
806
|
name: {
|
|
807
|
-
type:
|
|
807
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
808
808
|
isOptional: true;
|
|
809
809
|
};
|
|
810
810
|
description: {
|
|
811
|
-
type:
|
|
811
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
812
812
|
isOptional: true;
|
|
813
813
|
};
|
|
814
814
|
order: {
|
|
815
|
-
type:
|
|
815
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
816
816
|
isOptional: true;
|
|
817
817
|
};
|
|
818
818
|
metadata: {
|
|
819
|
-
type:
|
|
819
|
+
type: _lssm_lib_schema115.FieldType<unknown, unknown>;
|
|
820
820
|
isOptional: true;
|
|
821
821
|
};
|
|
822
|
-
}>,
|
|
822
|
+
}>, _lssm_lib_schema115.SchemaModel<{
|
|
823
823
|
id: {
|
|
824
|
-
type:
|
|
824
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
825
825
|
isOptional: false;
|
|
826
826
|
};
|
|
827
827
|
fileId: {
|
|
828
|
-
type:
|
|
828
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
829
829
|
isOptional: false;
|
|
830
830
|
};
|
|
831
831
|
entityType: {
|
|
832
|
-
type:
|
|
832
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
833
833
|
isOptional: false;
|
|
834
834
|
};
|
|
835
835
|
entityId: {
|
|
836
|
-
type:
|
|
836
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
837
837
|
isOptional: false;
|
|
838
838
|
};
|
|
839
839
|
attachmentType: {
|
|
840
|
-
type:
|
|
840
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
841
841
|
isOptional: true;
|
|
842
842
|
};
|
|
843
843
|
name: {
|
|
844
|
-
type:
|
|
844
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
845
845
|
isOptional: true;
|
|
846
846
|
};
|
|
847
847
|
description: {
|
|
848
|
-
type:
|
|
848
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
849
849
|
isOptional: true;
|
|
850
850
|
};
|
|
851
851
|
order: {
|
|
852
|
-
type:
|
|
852
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
853
853
|
isOptional: false;
|
|
854
854
|
};
|
|
855
855
|
metadata: {
|
|
856
|
-
type:
|
|
856
|
+
type: _lssm_lib_schema115.FieldType<unknown, unknown>;
|
|
857
857
|
isOptional: true;
|
|
858
858
|
};
|
|
859
859
|
createdBy: {
|
|
860
|
-
type:
|
|
860
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
861
861
|
isOptional: false;
|
|
862
862
|
};
|
|
863
863
|
createdAt: {
|
|
864
|
-
type:
|
|
864
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
865
865
|
isOptional: false;
|
|
866
866
|
};
|
|
867
867
|
file: {
|
|
868
|
-
type:
|
|
868
|
+
type: _lssm_lib_schema115.SchemaModel<{
|
|
869
869
|
id: {
|
|
870
|
-
type:
|
|
870
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
871
871
|
isOptional: false;
|
|
872
872
|
};
|
|
873
873
|
name: {
|
|
874
|
-
type:
|
|
874
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
875
875
|
isOptional: false;
|
|
876
876
|
};
|
|
877
877
|
mimeType: {
|
|
878
|
-
type:
|
|
878
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
879
879
|
isOptional: false;
|
|
880
880
|
};
|
|
881
881
|
size: {
|
|
882
|
-
type:
|
|
882
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
883
883
|
isOptional: false;
|
|
884
884
|
};
|
|
885
885
|
storageProvider: {
|
|
886
|
-
type:
|
|
886
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
887
887
|
isOptional: false;
|
|
888
888
|
};
|
|
889
889
|
storagePath: {
|
|
890
|
-
type:
|
|
890
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
891
891
|
isOptional: false;
|
|
892
892
|
};
|
|
893
893
|
checksum: {
|
|
894
|
-
type:
|
|
894
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
895
895
|
isOptional: true;
|
|
896
896
|
};
|
|
897
897
|
status: {
|
|
898
|
-
type:
|
|
898
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
899
899
|
isOptional: false;
|
|
900
900
|
};
|
|
901
901
|
isPublic: {
|
|
902
|
-
type:
|
|
902
|
+
type: _lssm_lib_schema115.FieldType<boolean, boolean>;
|
|
903
903
|
isOptional: false;
|
|
904
904
|
};
|
|
905
905
|
ownerId: {
|
|
906
|
-
type:
|
|
906
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
907
907
|
isOptional: false;
|
|
908
908
|
};
|
|
909
909
|
orgId: {
|
|
910
|
-
type:
|
|
910
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
911
911
|
isOptional: true;
|
|
912
912
|
};
|
|
913
913
|
metadata: {
|
|
914
|
-
type:
|
|
914
|
+
type: _lssm_lib_schema115.FieldType<unknown, unknown>;
|
|
915
915
|
isOptional: true;
|
|
916
916
|
};
|
|
917
917
|
width: {
|
|
918
|
-
type:
|
|
918
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
919
919
|
isOptional: true;
|
|
920
920
|
};
|
|
921
921
|
height: {
|
|
922
|
-
type:
|
|
922
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
923
923
|
isOptional: true;
|
|
924
924
|
};
|
|
925
925
|
createdAt: {
|
|
926
|
-
type:
|
|
926
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
927
927
|
isOptional: false;
|
|
928
928
|
};
|
|
929
929
|
updatedAt: {
|
|
930
|
-
type:
|
|
930
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
931
931
|
isOptional: false;
|
|
932
932
|
};
|
|
933
933
|
}>;
|
|
@@ -937,144 +937,144 @@ declare const AttachFileContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_s
|
|
|
937
937
|
/**
|
|
938
938
|
* Detach a file from an entity.
|
|
939
939
|
*/
|
|
940
|
-
declare const DetachFileContract: _lssm_lib_contracts15.ContractSpec<
|
|
940
|
+
declare const DetachFileContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema115.SchemaModel<{
|
|
941
941
|
attachmentId: {
|
|
942
|
-
type:
|
|
942
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
943
943
|
isOptional: false;
|
|
944
944
|
};
|
|
945
|
-
}>,
|
|
945
|
+
}>, _lssm_lib_schema115.SchemaModel<{
|
|
946
946
|
success: {
|
|
947
|
-
type:
|
|
947
|
+
type: _lssm_lib_schema115.FieldType<boolean, boolean>;
|
|
948
948
|
isOptional: false;
|
|
949
949
|
};
|
|
950
950
|
}>, undefined>;
|
|
951
951
|
/**
|
|
952
952
|
* List attachments for an entity.
|
|
953
953
|
*/
|
|
954
|
-
declare const ListAttachmentsContract: _lssm_lib_contracts15.ContractSpec<
|
|
954
|
+
declare const ListAttachmentsContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema115.SchemaModel<{
|
|
955
955
|
entityType: {
|
|
956
|
-
type:
|
|
956
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
957
957
|
isOptional: false;
|
|
958
958
|
};
|
|
959
959
|
entityId: {
|
|
960
|
-
type:
|
|
960
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
961
961
|
isOptional: false;
|
|
962
962
|
};
|
|
963
963
|
attachmentType: {
|
|
964
|
-
type:
|
|
964
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
965
965
|
isOptional: true;
|
|
966
966
|
};
|
|
967
|
-
}>,
|
|
967
|
+
}>, _lssm_lib_schema115.SchemaModel<{
|
|
968
968
|
attachments: {
|
|
969
|
-
type:
|
|
969
|
+
type: _lssm_lib_schema115.SchemaModel<{
|
|
970
970
|
id: {
|
|
971
|
-
type:
|
|
971
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
972
972
|
isOptional: false;
|
|
973
973
|
};
|
|
974
974
|
fileId: {
|
|
975
|
-
type:
|
|
975
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
976
976
|
isOptional: false;
|
|
977
977
|
};
|
|
978
978
|
entityType: {
|
|
979
|
-
type:
|
|
979
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
980
980
|
isOptional: false;
|
|
981
981
|
};
|
|
982
982
|
entityId: {
|
|
983
|
-
type:
|
|
983
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
984
984
|
isOptional: false;
|
|
985
985
|
};
|
|
986
986
|
attachmentType: {
|
|
987
|
-
type:
|
|
987
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
988
988
|
isOptional: true;
|
|
989
989
|
};
|
|
990
990
|
name: {
|
|
991
|
-
type:
|
|
991
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
992
992
|
isOptional: true;
|
|
993
993
|
};
|
|
994
994
|
description: {
|
|
995
|
-
type:
|
|
995
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
996
996
|
isOptional: true;
|
|
997
997
|
};
|
|
998
998
|
order: {
|
|
999
|
-
type:
|
|
999
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
1000
1000
|
isOptional: false;
|
|
1001
1001
|
};
|
|
1002
1002
|
metadata: {
|
|
1003
|
-
type:
|
|
1003
|
+
type: _lssm_lib_schema115.FieldType<unknown, unknown>;
|
|
1004
1004
|
isOptional: true;
|
|
1005
1005
|
};
|
|
1006
1006
|
createdBy: {
|
|
1007
|
-
type:
|
|
1007
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
1008
1008
|
isOptional: false;
|
|
1009
1009
|
};
|
|
1010
1010
|
createdAt: {
|
|
1011
|
-
type:
|
|
1011
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
1012
1012
|
isOptional: false;
|
|
1013
1013
|
};
|
|
1014
1014
|
file: {
|
|
1015
|
-
type:
|
|
1015
|
+
type: _lssm_lib_schema115.SchemaModel<{
|
|
1016
1016
|
id: {
|
|
1017
|
-
type:
|
|
1017
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
1018
1018
|
isOptional: false;
|
|
1019
1019
|
};
|
|
1020
1020
|
name: {
|
|
1021
|
-
type:
|
|
1021
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
1022
1022
|
isOptional: false;
|
|
1023
1023
|
};
|
|
1024
1024
|
mimeType: {
|
|
1025
|
-
type:
|
|
1025
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
1026
1026
|
isOptional: false;
|
|
1027
1027
|
};
|
|
1028
1028
|
size: {
|
|
1029
|
-
type:
|
|
1029
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
1030
1030
|
isOptional: false;
|
|
1031
1031
|
};
|
|
1032
1032
|
storageProvider: {
|
|
1033
|
-
type:
|
|
1033
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
1034
1034
|
isOptional: false;
|
|
1035
1035
|
};
|
|
1036
1036
|
storagePath: {
|
|
1037
|
-
type:
|
|
1037
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
1038
1038
|
isOptional: false;
|
|
1039
1039
|
};
|
|
1040
1040
|
checksum: {
|
|
1041
|
-
type:
|
|
1041
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
1042
1042
|
isOptional: true;
|
|
1043
1043
|
};
|
|
1044
1044
|
status: {
|
|
1045
|
-
type:
|
|
1045
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
1046
1046
|
isOptional: false;
|
|
1047
1047
|
};
|
|
1048
1048
|
isPublic: {
|
|
1049
|
-
type:
|
|
1049
|
+
type: _lssm_lib_schema115.FieldType<boolean, boolean>;
|
|
1050
1050
|
isOptional: false;
|
|
1051
1051
|
};
|
|
1052
1052
|
ownerId: {
|
|
1053
|
-
type:
|
|
1053
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
1054
1054
|
isOptional: false;
|
|
1055
1055
|
};
|
|
1056
1056
|
orgId: {
|
|
1057
|
-
type:
|
|
1057
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
1058
1058
|
isOptional: true;
|
|
1059
1059
|
};
|
|
1060
1060
|
metadata: {
|
|
1061
|
-
type:
|
|
1061
|
+
type: _lssm_lib_schema115.FieldType<unknown, unknown>;
|
|
1062
1062
|
isOptional: true;
|
|
1063
1063
|
};
|
|
1064
1064
|
width: {
|
|
1065
|
-
type:
|
|
1065
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
1066
1066
|
isOptional: true;
|
|
1067
1067
|
};
|
|
1068
1068
|
height: {
|
|
1069
|
-
type:
|
|
1069
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
1070
1070
|
isOptional: true;
|
|
1071
1071
|
};
|
|
1072
1072
|
createdAt: {
|
|
1073
|
-
type:
|
|
1073
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
1074
1074
|
isOptional: false;
|
|
1075
1075
|
};
|
|
1076
1076
|
updatedAt: {
|
|
1077
|
-
type:
|
|
1077
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
1078
1078
|
isOptional: false;
|
|
1079
1079
|
};
|
|
1080
1080
|
}>;
|
|
@@ -1085,53 +1085,53 @@ declare const ListAttachmentsContract: _lssm_lib_contracts15.ContractSpec<_lssm_
|
|
|
1085
1085
|
isOptional: false;
|
|
1086
1086
|
};
|
|
1087
1087
|
total: {
|
|
1088
|
-
type:
|
|
1088
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
1089
1089
|
isOptional: false;
|
|
1090
1090
|
};
|
|
1091
1091
|
}>, undefined>;
|
|
1092
1092
|
/**
|
|
1093
1093
|
* Create a presigned upload URL.
|
|
1094
1094
|
*/
|
|
1095
|
-
declare const CreatePresignedUrlContract: _lssm_lib_contracts15.ContractSpec<
|
|
1095
|
+
declare const CreatePresignedUrlContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema115.SchemaModel<{
|
|
1096
1096
|
fileName: {
|
|
1097
|
-
type:
|
|
1097
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
1098
1098
|
isOptional: false;
|
|
1099
1099
|
};
|
|
1100
1100
|
mimeType: {
|
|
1101
|
-
type:
|
|
1101
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
1102
1102
|
isOptional: false;
|
|
1103
1103
|
};
|
|
1104
1104
|
size: {
|
|
1105
|
-
type:
|
|
1105
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
1106
1106
|
isOptional: false;
|
|
1107
1107
|
};
|
|
1108
1108
|
orgId: {
|
|
1109
|
-
type:
|
|
1109
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
1110
1110
|
isOptional: true;
|
|
1111
1111
|
};
|
|
1112
1112
|
expiresInSeconds: {
|
|
1113
|
-
type:
|
|
1113
|
+
type: _lssm_lib_schema115.FieldType<number, number>;
|
|
1114
1114
|
isOptional: true;
|
|
1115
1115
|
};
|
|
1116
|
-
}>,
|
|
1116
|
+
}>, _lssm_lib_schema115.SchemaModel<{
|
|
1117
1117
|
url: {
|
|
1118
|
-
type:
|
|
1118
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
1119
1119
|
isOptional: false;
|
|
1120
1120
|
};
|
|
1121
1121
|
fields: {
|
|
1122
|
-
type:
|
|
1122
|
+
type: _lssm_lib_schema115.FieldType<unknown, unknown>;
|
|
1123
1123
|
isOptional: true;
|
|
1124
1124
|
};
|
|
1125
1125
|
expiresAt: {
|
|
1126
|
-
type:
|
|
1126
|
+
type: _lssm_lib_schema115.FieldType<Date, string>;
|
|
1127
1127
|
isOptional: false;
|
|
1128
1128
|
};
|
|
1129
1129
|
fileId: {
|
|
1130
|
-
type:
|
|
1130
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
1131
1131
|
isOptional: true;
|
|
1132
1132
|
};
|
|
1133
1133
|
sessionId: {
|
|
1134
|
-
type:
|
|
1134
|
+
type: _lssm_lib_schema115.FieldType<string, string>;
|
|
1135
1135
|
isOptional: true;
|
|
1136
1136
|
};
|
|
1137
1137
|
}>, undefined>;
|