@contractspec/lib.files 1.57.0 → 1.58.0
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 +1080 -1086
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +575 -854
- package/dist/docs/files.docblock.d.ts +2 -1
- package/dist/docs/files.docblock.d.ts.map +1 -0
- package/dist/docs/files.docblock.js +17 -22
- package/dist/docs/index.d.ts +2 -1
- package/dist/docs/index.d.ts.map +1 -0
- package/dist/docs/index.js +66 -1
- package/dist/entities/index.d.ts +134 -139
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +228 -257
- package/dist/events.d.ts +357 -363
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +217 -400
- package/dist/files.capability.d.ts +2 -7
- package/dist/files.capability.d.ts.map +1 -1
- package/dist/files.capability.js +29 -25
- package/dist/files.feature.d.ts +1 -6
- package/dist/files.feature.d.ts.map +1 -1
- package/dist/files.feature.js +50 -131
- package/dist/index.d.ts +7 -6
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1411 -8
- package/dist/node/contracts/index.js +576 -0
- package/dist/node/docs/files.docblock.js +65 -0
- package/dist/node/docs/index.js +65 -0
- package/dist/node/entities/index.js +235 -0
- package/dist/node/events.js +219 -0
- package/dist/node/files.capability.js +28 -0
- package/dist/node/files.feature.js +51 -0
- package/dist/node/index.js +1410 -0
- package/dist/node/storage/index.js +268 -0
- package/dist/storage/index.d.ts +163 -166
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +266 -266
- package/package.json +104 -30
- package/dist/contracts/index.js.map +0 -1
- package/dist/docs/files.docblock.js.map +0 -1
- package/dist/entities/index.js.map +0 -1
- package/dist/events.js.map +0 -1
- package/dist/files.capability.js.map +0 -1
- package/dist/files.feature.js.map +0 -1
- package/dist/storage/index.js.map +0 -1
package/dist/events.d.ts
CHANGED
|
@@ -1,468 +1,462 @@
|
|
|
1
|
-
import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
|
|
2
|
-
import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
|
|
3
|
-
|
|
4
|
-
//#region src/events.d.ts
|
|
5
1
|
/**
|
|
6
2
|
* Emitted when a file is uploaded.
|
|
7
3
|
*/
|
|
8
|
-
declare const FileUploadedEvent:
|
|
9
|
-
fileId: {
|
|
10
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
11
|
-
isOptional: false;
|
|
12
|
-
};
|
|
13
|
-
name: {
|
|
14
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
15
|
-
isOptional: false;
|
|
16
|
-
};
|
|
17
|
-
mimeType: {
|
|
18
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
19
|
-
isOptional: false;
|
|
20
|
-
};
|
|
21
|
-
size: {
|
|
22
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
23
|
-
isOptional: false;
|
|
24
|
-
};
|
|
25
|
-
storageProvider: {
|
|
26
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
27
|
-
isOptional: false;
|
|
28
|
-
};
|
|
29
|
-
ownerId: {
|
|
30
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
31
|
-
isOptional: false;
|
|
32
|
-
};
|
|
33
|
-
orgId: {
|
|
34
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
35
|
-
isOptional: true;
|
|
36
|
-
};
|
|
37
|
-
uploadedAt: {
|
|
38
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
39
|
-
isOptional: false;
|
|
40
|
-
};
|
|
41
|
-
}>>;
|
|
42
|
-
/**
|
|
43
|
-
* Emitted when a file is updated.
|
|
44
|
-
*/
|
|
45
|
-
declare const FileUpdatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
46
|
-
fileId: {
|
|
47
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
48
|
-
isOptional: false;
|
|
49
|
-
};
|
|
50
|
-
name: {
|
|
51
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
52
|
-
isOptional: false;
|
|
53
|
-
};
|
|
54
|
-
changes: {
|
|
55
|
-
type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
|
|
56
|
-
isOptional: false;
|
|
57
|
-
};
|
|
58
|
-
updatedBy: {
|
|
59
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
60
|
-
isOptional: true;
|
|
61
|
-
};
|
|
62
|
-
updatedAt: {
|
|
63
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
64
|
-
isOptional: false;
|
|
65
|
-
};
|
|
66
|
-
}>>;
|
|
67
|
-
/**
|
|
68
|
-
* Emitted when a file is deleted.
|
|
69
|
-
*/
|
|
70
|
-
declare const FileDeletedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
71
|
-
fileId: {
|
|
72
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
73
|
-
isOptional: false;
|
|
74
|
-
};
|
|
75
|
-
name: {
|
|
76
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
77
|
-
isOptional: false;
|
|
78
|
-
};
|
|
79
|
-
storageProvider: {
|
|
80
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
81
|
-
isOptional: false;
|
|
82
|
-
};
|
|
83
|
-
storagePath: {
|
|
84
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
85
|
-
isOptional: false;
|
|
86
|
-
};
|
|
87
|
-
deletedBy: {
|
|
88
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
89
|
-
isOptional: true;
|
|
90
|
-
};
|
|
91
|
-
deletedAt: {
|
|
92
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
93
|
-
isOptional: false;
|
|
94
|
-
};
|
|
95
|
-
}>>;
|
|
96
|
-
/**
|
|
97
|
-
* Emitted when a file version is created.
|
|
98
|
-
*/
|
|
99
|
-
declare const FileVersionCreatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
100
|
-
fileId: {
|
|
101
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
102
|
-
isOptional: false;
|
|
103
|
-
};
|
|
104
|
-
versionId: {
|
|
105
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
106
|
-
isOptional: false;
|
|
107
|
-
};
|
|
108
|
-
version: {
|
|
109
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
110
|
-
isOptional: false;
|
|
111
|
-
};
|
|
112
|
-
size: {
|
|
113
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
114
|
-
isOptional: false;
|
|
115
|
-
};
|
|
116
|
-
createdBy: {
|
|
117
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
118
|
-
isOptional: false;
|
|
119
|
-
};
|
|
120
|
-
comment: {
|
|
121
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
122
|
-
isOptional: true;
|
|
123
|
-
};
|
|
124
|
-
createdAt: {
|
|
125
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
126
|
-
isOptional: false;
|
|
127
|
-
};
|
|
128
|
-
}>>;
|
|
129
|
-
/**
|
|
130
|
-
* Emitted when a file is attached to an entity.
|
|
131
|
-
*/
|
|
132
|
-
declare const AttachmentAttachedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
133
|
-
attachmentId: {
|
|
134
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
135
|
-
isOptional: false;
|
|
136
|
-
};
|
|
137
|
-
fileId: {
|
|
138
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
139
|
-
isOptional: false;
|
|
140
|
-
};
|
|
141
|
-
entityType: {
|
|
142
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
143
|
-
isOptional: false;
|
|
144
|
-
};
|
|
145
|
-
entityId: {
|
|
146
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
147
|
-
isOptional: false;
|
|
148
|
-
};
|
|
149
|
-
attachmentType: {
|
|
150
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
151
|
-
isOptional: true;
|
|
152
|
-
};
|
|
153
|
-
attachedBy: {
|
|
154
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
155
|
-
isOptional: false;
|
|
156
|
-
};
|
|
157
|
-
attachedAt: {
|
|
158
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
159
|
-
isOptional: false;
|
|
160
|
-
};
|
|
161
|
-
}>>;
|
|
162
|
-
/**
|
|
163
|
-
* Emitted when a file is detached from an entity.
|
|
164
|
-
*/
|
|
165
|
-
declare const AttachmentDetachedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
166
|
-
attachmentId: {
|
|
167
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
168
|
-
isOptional: false;
|
|
169
|
-
};
|
|
170
|
-
fileId: {
|
|
171
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
172
|
-
isOptional: false;
|
|
173
|
-
};
|
|
174
|
-
entityType: {
|
|
175
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
176
|
-
isOptional: false;
|
|
177
|
-
};
|
|
178
|
-
entityId: {
|
|
179
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
180
|
-
isOptional: false;
|
|
181
|
-
};
|
|
182
|
-
detachedBy: {
|
|
183
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
184
|
-
isOptional: true;
|
|
185
|
-
};
|
|
186
|
-
detachedAt: {
|
|
187
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
188
|
-
isOptional: false;
|
|
189
|
-
};
|
|
190
|
-
}>>;
|
|
191
|
-
/**
|
|
192
|
-
* Emitted when an upload session starts.
|
|
193
|
-
*/
|
|
194
|
-
declare const UploadSessionStartedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
195
|
-
sessionId: {
|
|
196
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
197
|
-
isOptional: false;
|
|
198
|
-
};
|
|
199
|
-
fileName: {
|
|
200
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
201
|
-
isOptional: false;
|
|
202
|
-
};
|
|
203
|
-
mimeType: {
|
|
204
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
205
|
-
isOptional: false;
|
|
206
|
-
};
|
|
207
|
-
totalSize: {
|
|
208
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
209
|
-
isOptional: false;
|
|
210
|
-
};
|
|
211
|
-
ownerId: {
|
|
212
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
213
|
-
isOptional: false;
|
|
214
|
-
};
|
|
215
|
-
startedAt: {
|
|
216
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
217
|
-
isOptional: false;
|
|
218
|
-
};
|
|
219
|
-
}>>;
|
|
220
|
-
/**
|
|
221
|
-
* Emitted when an upload session completes.
|
|
222
|
-
*/
|
|
223
|
-
declare const UploadSessionCompletedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
224
|
-
sessionId: {
|
|
225
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
226
|
-
isOptional: false;
|
|
227
|
-
};
|
|
228
|
-
fileId: {
|
|
229
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
230
|
-
isOptional: false;
|
|
231
|
-
};
|
|
232
|
-
fileName: {
|
|
233
|
-
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
234
|
-
isOptional: false;
|
|
235
|
-
};
|
|
236
|
-
size: {
|
|
237
|
-
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
238
|
-
isOptional: false;
|
|
239
|
-
};
|
|
240
|
-
completedAt: {
|
|
241
|
-
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
242
|
-
isOptional: false;
|
|
243
|
-
};
|
|
244
|
-
}>>;
|
|
245
|
-
/**
|
|
246
|
-
* All file events.
|
|
247
|
-
*/
|
|
248
|
-
declare const FileEvents: {
|
|
249
|
-
FileUploadedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
|
|
4
|
+
export declare const FileUploadedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
250
5
|
fileId: {
|
|
251
|
-
|
|
252
|
-
|
|
6
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
7
|
+
isOptional: false;
|
|
253
8
|
};
|
|
254
9
|
name: {
|
|
255
|
-
|
|
256
|
-
|
|
10
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
11
|
+
isOptional: false;
|
|
257
12
|
};
|
|
258
13
|
mimeType: {
|
|
259
|
-
|
|
260
|
-
|
|
14
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
15
|
+
isOptional: false;
|
|
261
16
|
};
|
|
262
17
|
size: {
|
|
263
|
-
|
|
264
|
-
|
|
18
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
19
|
+
isOptional: false;
|
|
265
20
|
};
|
|
266
21
|
storageProvider: {
|
|
267
|
-
|
|
268
|
-
|
|
22
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
23
|
+
isOptional: false;
|
|
269
24
|
};
|
|
270
25
|
ownerId: {
|
|
271
|
-
|
|
272
|
-
|
|
26
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
27
|
+
isOptional: false;
|
|
273
28
|
};
|
|
274
29
|
orgId: {
|
|
275
|
-
|
|
276
|
-
|
|
30
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
31
|
+
isOptional: true;
|
|
277
32
|
};
|
|
278
33
|
uploadedAt: {
|
|
279
|
-
|
|
280
|
-
|
|
34
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
35
|
+
isOptional: false;
|
|
281
36
|
};
|
|
282
|
-
|
|
283
|
-
|
|
37
|
+
}>>;
|
|
38
|
+
/**
|
|
39
|
+
* Emitted when a file is updated.
|
|
40
|
+
*/
|
|
41
|
+
export declare const FileUpdatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
284
42
|
fileId: {
|
|
285
|
-
|
|
286
|
-
|
|
43
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
44
|
+
isOptional: false;
|
|
287
45
|
};
|
|
288
46
|
name: {
|
|
289
|
-
|
|
290
|
-
|
|
47
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
48
|
+
isOptional: false;
|
|
291
49
|
};
|
|
292
50
|
changes: {
|
|
293
|
-
|
|
294
|
-
|
|
51
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
52
|
+
isOptional: false;
|
|
295
53
|
};
|
|
296
54
|
updatedBy: {
|
|
297
|
-
|
|
298
|
-
|
|
55
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
56
|
+
isOptional: true;
|
|
299
57
|
};
|
|
300
58
|
updatedAt: {
|
|
301
|
-
|
|
302
|
-
|
|
59
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
60
|
+
isOptional: false;
|
|
303
61
|
};
|
|
304
|
-
|
|
305
|
-
|
|
62
|
+
}>>;
|
|
63
|
+
/**
|
|
64
|
+
* Emitted when a file is deleted.
|
|
65
|
+
*/
|
|
66
|
+
export declare const FileDeletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
306
67
|
fileId: {
|
|
307
|
-
|
|
308
|
-
|
|
68
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
69
|
+
isOptional: false;
|
|
309
70
|
};
|
|
310
71
|
name: {
|
|
311
|
-
|
|
312
|
-
|
|
72
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
73
|
+
isOptional: false;
|
|
313
74
|
};
|
|
314
75
|
storageProvider: {
|
|
315
|
-
|
|
316
|
-
|
|
76
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
77
|
+
isOptional: false;
|
|
317
78
|
};
|
|
318
79
|
storagePath: {
|
|
319
|
-
|
|
320
|
-
|
|
80
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
81
|
+
isOptional: false;
|
|
321
82
|
};
|
|
322
83
|
deletedBy: {
|
|
323
|
-
|
|
324
|
-
|
|
84
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
85
|
+
isOptional: true;
|
|
325
86
|
};
|
|
326
87
|
deletedAt: {
|
|
327
|
-
|
|
328
|
-
|
|
88
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
89
|
+
isOptional: false;
|
|
329
90
|
};
|
|
330
|
-
|
|
331
|
-
|
|
91
|
+
}>>;
|
|
92
|
+
/**
|
|
93
|
+
* Emitted when a file version is created.
|
|
94
|
+
*/
|
|
95
|
+
export declare const FileVersionCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
332
96
|
fileId: {
|
|
333
|
-
|
|
334
|
-
|
|
97
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
98
|
+
isOptional: false;
|
|
335
99
|
};
|
|
336
100
|
versionId: {
|
|
337
|
-
|
|
338
|
-
|
|
101
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
102
|
+
isOptional: false;
|
|
339
103
|
};
|
|
340
104
|
version: {
|
|
341
|
-
|
|
342
|
-
|
|
105
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
106
|
+
isOptional: false;
|
|
343
107
|
};
|
|
344
108
|
size: {
|
|
345
|
-
|
|
346
|
-
|
|
109
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
110
|
+
isOptional: false;
|
|
347
111
|
};
|
|
348
112
|
createdBy: {
|
|
349
|
-
|
|
350
|
-
|
|
113
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
114
|
+
isOptional: false;
|
|
351
115
|
};
|
|
352
116
|
comment: {
|
|
353
|
-
|
|
354
|
-
|
|
117
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
118
|
+
isOptional: true;
|
|
355
119
|
};
|
|
356
120
|
createdAt: {
|
|
357
|
-
|
|
358
|
-
|
|
121
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
122
|
+
isOptional: false;
|
|
359
123
|
};
|
|
360
|
-
|
|
361
|
-
|
|
124
|
+
}>>;
|
|
125
|
+
/**
|
|
126
|
+
* Emitted when a file is attached to an entity.
|
|
127
|
+
*/
|
|
128
|
+
export declare const AttachmentAttachedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
362
129
|
attachmentId: {
|
|
363
|
-
|
|
364
|
-
|
|
130
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
131
|
+
isOptional: false;
|
|
365
132
|
};
|
|
366
133
|
fileId: {
|
|
367
|
-
|
|
368
|
-
|
|
134
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
135
|
+
isOptional: false;
|
|
369
136
|
};
|
|
370
137
|
entityType: {
|
|
371
|
-
|
|
372
|
-
|
|
138
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
139
|
+
isOptional: false;
|
|
373
140
|
};
|
|
374
141
|
entityId: {
|
|
375
|
-
|
|
376
|
-
|
|
142
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
143
|
+
isOptional: false;
|
|
377
144
|
};
|
|
378
145
|
attachmentType: {
|
|
379
|
-
|
|
380
|
-
|
|
146
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
147
|
+
isOptional: true;
|
|
381
148
|
};
|
|
382
149
|
attachedBy: {
|
|
383
|
-
|
|
384
|
-
|
|
150
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
151
|
+
isOptional: false;
|
|
385
152
|
};
|
|
386
153
|
attachedAt: {
|
|
387
|
-
|
|
388
|
-
|
|
154
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
155
|
+
isOptional: false;
|
|
389
156
|
};
|
|
390
|
-
|
|
391
|
-
|
|
157
|
+
}>>;
|
|
158
|
+
/**
|
|
159
|
+
* Emitted when a file is detached from an entity.
|
|
160
|
+
*/
|
|
161
|
+
export declare const AttachmentDetachedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
392
162
|
attachmentId: {
|
|
393
|
-
|
|
394
|
-
|
|
163
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
164
|
+
isOptional: false;
|
|
395
165
|
};
|
|
396
166
|
fileId: {
|
|
397
|
-
|
|
398
|
-
|
|
167
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
168
|
+
isOptional: false;
|
|
399
169
|
};
|
|
400
170
|
entityType: {
|
|
401
|
-
|
|
402
|
-
|
|
171
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
172
|
+
isOptional: false;
|
|
403
173
|
};
|
|
404
174
|
entityId: {
|
|
405
|
-
|
|
406
|
-
|
|
175
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
176
|
+
isOptional: false;
|
|
407
177
|
};
|
|
408
178
|
detachedBy: {
|
|
409
|
-
|
|
410
|
-
|
|
179
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
180
|
+
isOptional: true;
|
|
411
181
|
};
|
|
412
182
|
detachedAt: {
|
|
413
|
-
|
|
414
|
-
|
|
183
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
184
|
+
isOptional: false;
|
|
415
185
|
};
|
|
416
|
-
|
|
417
|
-
|
|
186
|
+
}>>;
|
|
187
|
+
/**
|
|
188
|
+
* Emitted when an upload session starts.
|
|
189
|
+
*/
|
|
190
|
+
export declare const UploadSessionStartedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
418
191
|
sessionId: {
|
|
419
|
-
|
|
420
|
-
|
|
192
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
193
|
+
isOptional: false;
|
|
421
194
|
};
|
|
422
195
|
fileName: {
|
|
423
|
-
|
|
424
|
-
|
|
196
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
197
|
+
isOptional: false;
|
|
425
198
|
};
|
|
426
199
|
mimeType: {
|
|
427
|
-
|
|
428
|
-
|
|
200
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
201
|
+
isOptional: false;
|
|
429
202
|
};
|
|
430
203
|
totalSize: {
|
|
431
|
-
|
|
432
|
-
|
|
204
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
205
|
+
isOptional: false;
|
|
433
206
|
};
|
|
434
207
|
ownerId: {
|
|
435
|
-
|
|
436
|
-
|
|
208
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
209
|
+
isOptional: false;
|
|
437
210
|
};
|
|
438
211
|
startedAt: {
|
|
439
|
-
|
|
440
|
-
|
|
212
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
213
|
+
isOptional: false;
|
|
441
214
|
};
|
|
442
|
-
|
|
443
|
-
|
|
215
|
+
}>>;
|
|
216
|
+
/**
|
|
217
|
+
* Emitted when an upload session completes.
|
|
218
|
+
*/
|
|
219
|
+
export declare const UploadSessionCompletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
444
220
|
sessionId: {
|
|
445
|
-
|
|
446
|
-
|
|
221
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
222
|
+
isOptional: false;
|
|
447
223
|
};
|
|
448
224
|
fileId: {
|
|
449
|
-
|
|
450
|
-
|
|
225
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
226
|
+
isOptional: false;
|
|
451
227
|
};
|
|
452
228
|
fileName: {
|
|
453
|
-
|
|
454
|
-
|
|
229
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
230
|
+
isOptional: false;
|
|
455
231
|
};
|
|
456
232
|
size: {
|
|
457
|
-
|
|
458
|
-
|
|
233
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
234
|
+
isOptional: false;
|
|
459
235
|
};
|
|
460
236
|
completedAt: {
|
|
461
|
-
|
|
462
|
-
|
|
237
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
238
|
+
isOptional: false;
|
|
463
239
|
};
|
|
464
|
-
|
|
240
|
+
}>>;
|
|
241
|
+
/**
|
|
242
|
+
* All file events.
|
|
243
|
+
*/
|
|
244
|
+
export declare const FileEvents: {
|
|
245
|
+
FileUploadedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
246
|
+
fileId: {
|
|
247
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
248
|
+
isOptional: false;
|
|
249
|
+
};
|
|
250
|
+
name: {
|
|
251
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
252
|
+
isOptional: false;
|
|
253
|
+
};
|
|
254
|
+
mimeType: {
|
|
255
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
256
|
+
isOptional: false;
|
|
257
|
+
};
|
|
258
|
+
size: {
|
|
259
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
260
|
+
isOptional: false;
|
|
261
|
+
};
|
|
262
|
+
storageProvider: {
|
|
263
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
264
|
+
isOptional: false;
|
|
265
|
+
};
|
|
266
|
+
ownerId: {
|
|
267
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
268
|
+
isOptional: false;
|
|
269
|
+
};
|
|
270
|
+
orgId: {
|
|
271
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
272
|
+
isOptional: true;
|
|
273
|
+
};
|
|
274
|
+
uploadedAt: {
|
|
275
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
276
|
+
isOptional: false;
|
|
277
|
+
};
|
|
278
|
+
}>>;
|
|
279
|
+
FileUpdatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
280
|
+
fileId: {
|
|
281
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
282
|
+
isOptional: false;
|
|
283
|
+
};
|
|
284
|
+
name: {
|
|
285
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
286
|
+
isOptional: false;
|
|
287
|
+
};
|
|
288
|
+
changes: {
|
|
289
|
+
type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
|
|
290
|
+
isOptional: false;
|
|
291
|
+
};
|
|
292
|
+
updatedBy: {
|
|
293
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
294
|
+
isOptional: true;
|
|
295
|
+
};
|
|
296
|
+
updatedAt: {
|
|
297
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
298
|
+
isOptional: false;
|
|
299
|
+
};
|
|
300
|
+
}>>;
|
|
301
|
+
FileDeletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
302
|
+
fileId: {
|
|
303
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
304
|
+
isOptional: false;
|
|
305
|
+
};
|
|
306
|
+
name: {
|
|
307
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
308
|
+
isOptional: false;
|
|
309
|
+
};
|
|
310
|
+
storageProvider: {
|
|
311
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
312
|
+
isOptional: false;
|
|
313
|
+
};
|
|
314
|
+
storagePath: {
|
|
315
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
316
|
+
isOptional: false;
|
|
317
|
+
};
|
|
318
|
+
deletedBy: {
|
|
319
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
320
|
+
isOptional: true;
|
|
321
|
+
};
|
|
322
|
+
deletedAt: {
|
|
323
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
324
|
+
isOptional: false;
|
|
325
|
+
};
|
|
326
|
+
}>>;
|
|
327
|
+
FileVersionCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
328
|
+
fileId: {
|
|
329
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
330
|
+
isOptional: false;
|
|
331
|
+
};
|
|
332
|
+
versionId: {
|
|
333
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
334
|
+
isOptional: false;
|
|
335
|
+
};
|
|
336
|
+
version: {
|
|
337
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
338
|
+
isOptional: false;
|
|
339
|
+
};
|
|
340
|
+
size: {
|
|
341
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
342
|
+
isOptional: false;
|
|
343
|
+
};
|
|
344
|
+
createdBy: {
|
|
345
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
346
|
+
isOptional: false;
|
|
347
|
+
};
|
|
348
|
+
comment: {
|
|
349
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
350
|
+
isOptional: true;
|
|
351
|
+
};
|
|
352
|
+
createdAt: {
|
|
353
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
354
|
+
isOptional: false;
|
|
355
|
+
};
|
|
356
|
+
}>>;
|
|
357
|
+
AttachmentAttachedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
358
|
+
attachmentId: {
|
|
359
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
360
|
+
isOptional: false;
|
|
361
|
+
};
|
|
362
|
+
fileId: {
|
|
363
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
364
|
+
isOptional: false;
|
|
365
|
+
};
|
|
366
|
+
entityType: {
|
|
367
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
368
|
+
isOptional: false;
|
|
369
|
+
};
|
|
370
|
+
entityId: {
|
|
371
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
372
|
+
isOptional: false;
|
|
373
|
+
};
|
|
374
|
+
attachmentType: {
|
|
375
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
376
|
+
isOptional: true;
|
|
377
|
+
};
|
|
378
|
+
attachedBy: {
|
|
379
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
380
|
+
isOptional: false;
|
|
381
|
+
};
|
|
382
|
+
attachedAt: {
|
|
383
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
384
|
+
isOptional: false;
|
|
385
|
+
};
|
|
386
|
+
}>>;
|
|
387
|
+
AttachmentDetachedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
388
|
+
attachmentId: {
|
|
389
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
390
|
+
isOptional: false;
|
|
391
|
+
};
|
|
392
|
+
fileId: {
|
|
393
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
394
|
+
isOptional: false;
|
|
395
|
+
};
|
|
396
|
+
entityType: {
|
|
397
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
398
|
+
isOptional: false;
|
|
399
|
+
};
|
|
400
|
+
entityId: {
|
|
401
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
402
|
+
isOptional: false;
|
|
403
|
+
};
|
|
404
|
+
detachedBy: {
|
|
405
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
406
|
+
isOptional: true;
|
|
407
|
+
};
|
|
408
|
+
detachedAt: {
|
|
409
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
410
|
+
isOptional: false;
|
|
411
|
+
};
|
|
412
|
+
}>>;
|
|
413
|
+
UploadSessionStartedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
414
|
+
sessionId: {
|
|
415
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
416
|
+
isOptional: false;
|
|
417
|
+
};
|
|
418
|
+
fileName: {
|
|
419
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
420
|
+
isOptional: false;
|
|
421
|
+
};
|
|
422
|
+
mimeType: {
|
|
423
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
424
|
+
isOptional: false;
|
|
425
|
+
};
|
|
426
|
+
totalSize: {
|
|
427
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
428
|
+
isOptional: false;
|
|
429
|
+
};
|
|
430
|
+
ownerId: {
|
|
431
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
432
|
+
isOptional: false;
|
|
433
|
+
};
|
|
434
|
+
startedAt: {
|
|
435
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
436
|
+
isOptional: false;
|
|
437
|
+
};
|
|
438
|
+
}>>;
|
|
439
|
+
UploadSessionCompletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
440
|
+
sessionId: {
|
|
441
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
442
|
+
isOptional: false;
|
|
443
|
+
};
|
|
444
|
+
fileId: {
|
|
445
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
446
|
+
isOptional: false;
|
|
447
|
+
};
|
|
448
|
+
fileName: {
|
|
449
|
+
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
450
|
+
isOptional: false;
|
|
451
|
+
};
|
|
452
|
+
size: {
|
|
453
|
+
type: import("@contractspec/lib.schema").FieldType<number, number>;
|
|
454
|
+
isOptional: false;
|
|
455
|
+
};
|
|
456
|
+
completedAt: {
|
|
457
|
+
type: import("@contractspec/lib.schema").FieldType<Date, string>;
|
|
458
|
+
isOptional: false;
|
|
459
|
+
};
|
|
460
|
+
}>>;
|
|
465
461
|
};
|
|
466
|
-
//#endregion
|
|
467
|
-
export { AttachmentAttachedEvent, AttachmentDetachedEvent, FileDeletedEvent, FileEvents, FileUpdatedEvent, FileUploadedEvent, FileVersionCreatedEvent, UploadSessionCompletedEvent, UploadSessionStartedEvent };
|
|
468
462
|
//# sourceMappingURL=events.d.ts.map
|