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