@contractspec/lib.files 1.57.0 → 1.59.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
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=files.docblock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.docblock.d.ts","sourceRoot":"","sources":["../../src/docs/files.docblock.ts"],"names":[],"mappings":""}
|
|
@@ -1,20 +1,16 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/docs/files.docblock.ts
|
|
1
3
|
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"files",
|
|
13
|
-
"attachments",
|
|
14
|
-
"storage",
|
|
15
|
-
"versions"
|
|
16
|
-
],
|
|
17
|
-
body: `## Capabilities
|
|
4
|
+
var filesDocBlocks = [
|
|
5
|
+
{
|
|
6
|
+
id: "docs.files.attachments",
|
|
7
|
+
title: "Files, Versions & Attachments",
|
|
8
|
+
summary: "Spec-first file management with storage adapters, versioning, presigned URLs, and polymorphic attachments for any entity.",
|
|
9
|
+
kind: "reference",
|
|
10
|
+
visibility: "public",
|
|
11
|
+
route: "/docs/files/attachments",
|
|
12
|
+
tags: ["files", "attachments", "storage", "versions"],
|
|
13
|
+
body: `## Capabilities
|
|
18
14
|
|
|
19
15
|
- **Entities**: File, FileVersion, Attachment, UploadSession with retention, checksum, ACLs.
|
|
20
16
|
- **Contracts**: upload/update/delete/list/get files; presigned upload/download; version create/list; attach/detach/list attachments.
|
|
@@ -38,7 +34,7 @@ registerDocBlocks([{
|
|
|
38
34
|
|
|
39
35
|
## Example
|
|
40
36
|
|
|
41
|
-
|
|
37
|
+
${"```"}ts
|
|
42
38
|
import {
|
|
43
39
|
UploadFileContract,
|
|
44
40
|
AttachFileContract,
|
|
@@ -57,7 +53,7 @@ const file = await storage.upload({
|
|
|
57
53
|
|
|
58
54
|
// attach
|
|
59
55
|
await AttachFileContract; // register in spec to enable attach flows
|
|
60
|
-
|
|
56
|
+
${"```"},
|
|
61
57
|
|
|
62
58
|
## Guardrails
|
|
63
59
|
|
|
@@ -65,7 +61,6 @@ await AttachFileContract; // register in spec to enable attach flows
|
|
|
65
61
|
- Keep \`orgId\` scoped for multi-tenant isolation; prefer presigned URLs for public delivery.
|
|
66
62
|
- Persist checksums for integrity; emit audit + events for access/retention changes.
|
|
67
63
|
`
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
//# sourceMappingURL=files.docblock.js.map
|
|
64
|
+
}
|
|
65
|
+
];
|
|
66
|
+
registerDocBlocks(filesDocBlocks);
|
package/dist/docs/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import './files.docblock';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/docs/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC"}
|
package/dist/docs/index.js
CHANGED
|
@@ -1 +1,66 @@
|
|
|
1
|
-
|
|
1
|
+
// @bun
|
|
2
|
+
// src/docs/files.docblock.ts
|
|
3
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
4
|
+
var filesDocBlocks = [
|
|
5
|
+
{
|
|
6
|
+
id: "docs.files.attachments",
|
|
7
|
+
title: "Files, Versions & Attachments",
|
|
8
|
+
summary: "Spec-first file management with storage adapters, versioning, presigned URLs, and polymorphic attachments for any entity.",
|
|
9
|
+
kind: "reference",
|
|
10
|
+
visibility: "public",
|
|
11
|
+
route: "/docs/files/attachments",
|
|
12
|
+
tags: ["files", "attachments", "storage", "versions"],
|
|
13
|
+
body: `## Capabilities
|
|
14
|
+
|
|
15
|
+
- **Entities**: File, FileVersion, Attachment, UploadSession with retention, checksum, ACLs.
|
|
16
|
+
- **Contracts**: upload/update/delete/list/get files; presigned upload/download; version create/list; attach/detach/list attachments.
|
|
17
|
+
- **Storage**: pluggable adapters (Local, S3 placeholder + interface), in-memory for tests.
|
|
18
|
+
- **Events**: file.uploaded/deleted, attachment.added/removed (see events export).
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
1) Compose schema
|
|
23
|
+
- Include \`filesSchemaContribution\` in your schema composition.
|
|
24
|
+
|
|
25
|
+
2) Register contracts/events
|
|
26
|
+
- Import contracts and events from \`@contractspec/lib.files\` in your spec registry.
|
|
27
|
+
|
|
28
|
+
3) Wire storage
|
|
29
|
+
- Provide a \`StorageAdapter\` implementation (local/in-memory or S3 via custom impl).
|
|
30
|
+
- Use \`createStorageAdapter\` with config to instantiate.
|
|
31
|
+
|
|
32
|
+
4) Attach to domain entities
|
|
33
|
+
- Use \`attachment.attach\` with \`entityType/entityId\` to link files to deals, orders, runs, etc.
|
|
34
|
+
|
|
35
|
+
## Example
|
|
36
|
+
|
|
37
|
+
${"```"}ts
|
|
38
|
+
import {
|
|
39
|
+
UploadFileContract,
|
|
40
|
+
AttachFileContract,
|
|
41
|
+
InMemoryStorageAdapter,
|
|
42
|
+
} from '@contractspec/lib.files';
|
|
43
|
+
|
|
44
|
+
// storage
|
|
45
|
+
const storage = new InMemoryStorageAdapter();
|
|
46
|
+
|
|
47
|
+
// upload
|
|
48
|
+
const file = await storage.upload({
|
|
49
|
+
path: 'org-1/reports/r1.pdf',
|
|
50
|
+
content: Buffer.from(pdfBytes),
|
|
51
|
+
mimeType: 'application/pdf',
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
// attach
|
|
55
|
+
await AttachFileContract; // register in spec to enable attach flows
|
|
56
|
+
${"```"},
|
|
57
|
+
|
|
58
|
+
## Guardrails
|
|
59
|
+
|
|
60
|
+
- Enforce size/MIME limits in your handlers; avoid storing PII in paths.
|
|
61
|
+
- Keep \`orgId\` scoped for multi-tenant isolation; prefer presigned URLs for public delivery.
|
|
62
|
+
- Persist checksums for integrity; emit audit + events for access/retention changes.
|
|
63
|
+
`
|
|
64
|
+
}
|
|
65
|
+
];
|
|
66
|
+
registerDocBlocks(filesDocBlocks);
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,169 +1,164 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ModuleSchemaContribution } from "@contractspec/lib.schema";
|
|
3
|
-
|
|
4
|
-
//#region src/entities/index.d.ts
|
|
1
|
+
import type { ModuleSchemaContribution } from '@contractspec/lib.schema';
|
|
5
2
|
/**
|
|
6
3
|
* Storage provider enum.
|
|
7
4
|
*/
|
|
8
|
-
declare const StorageProviderEnum:
|
|
5
|
+
export declare const StorageProviderEnum: import("@contractspec/lib.schema").EntityEnumDef;
|
|
9
6
|
/**
|
|
10
7
|
* File status enum.
|
|
11
8
|
*/
|
|
12
|
-
declare const FileStatusEnum:
|
|
9
|
+
export declare const FileStatusEnum: import("@contractspec/lib.schema").EntityEnumDef;
|
|
13
10
|
/**
|
|
14
11
|
* File entity - represents an uploaded file.
|
|
15
12
|
*/
|
|
16
|
-
declare const FileEntity:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
13
|
+
export declare const FileEntity: import("@contractspec/lib.schema").EntitySpec<{
|
|
14
|
+
id: import("@contractspec/lib.schema").EntityScalarField;
|
|
15
|
+
name: import("@contractspec/lib.schema").EntityScalarField;
|
|
16
|
+
mimeType: import("@contractspec/lib.schema").EntityScalarField;
|
|
17
|
+
size: import("@contractspec/lib.schema").EntityScalarField;
|
|
18
|
+
storageProvider: import("@contractspec/lib.schema").EntityEnumField;
|
|
19
|
+
storagePath: import("@contractspec/lib.schema").EntityScalarField;
|
|
20
|
+
storageKey: import("@contractspec/lib.schema").EntityScalarField;
|
|
21
|
+
checksum: import("@contractspec/lib.schema").EntityScalarField;
|
|
22
|
+
etag: import("@contractspec/lib.schema").EntityScalarField;
|
|
23
|
+
status: import("@contractspec/lib.schema").EntityEnumField;
|
|
24
|
+
isPublic: import("@contractspec/lib.schema").EntityScalarField;
|
|
25
|
+
expiresAt: import("@contractspec/lib.schema").EntityScalarField;
|
|
26
|
+
ownerId: import("@contractspec/lib.schema").EntityScalarField;
|
|
27
|
+
orgId: import("@contractspec/lib.schema").EntityScalarField;
|
|
28
|
+
metadata: import("@contractspec/lib.schema").EntityScalarField;
|
|
29
|
+
tags: import("@contractspec/lib.schema").EntityScalarField;
|
|
30
|
+
width: import("@contractspec/lib.schema").EntityScalarField;
|
|
31
|
+
height: import("@contractspec/lib.schema").EntityScalarField;
|
|
32
|
+
createdAt: import("@contractspec/lib.schema").EntityScalarField;
|
|
33
|
+
updatedAt: import("@contractspec/lib.schema").EntityScalarField;
|
|
34
|
+
versions: import("@contractspec/lib.schema").EntityRelationField;
|
|
35
|
+
attachments: import("@contractspec/lib.schema").EntityRelationField;
|
|
39
36
|
}>;
|
|
40
37
|
/**
|
|
41
38
|
* FileVersion entity - version history for files.
|
|
42
39
|
*/
|
|
43
|
-
declare const FileVersionEntity:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
40
|
+
export declare const FileVersionEntity: import("@contractspec/lib.schema").EntitySpec<{
|
|
41
|
+
id: import("@contractspec/lib.schema").EntityScalarField;
|
|
42
|
+
fileId: import("@contractspec/lib.schema").EntityScalarField;
|
|
43
|
+
version: import("@contractspec/lib.schema").EntityScalarField;
|
|
44
|
+
size: import("@contractspec/lib.schema").EntityScalarField;
|
|
45
|
+
storagePath: import("@contractspec/lib.schema").EntityScalarField;
|
|
46
|
+
checksum: import("@contractspec/lib.schema").EntityScalarField;
|
|
47
|
+
comment: import("@contractspec/lib.schema").EntityScalarField;
|
|
48
|
+
changes: import("@contractspec/lib.schema").EntityScalarField;
|
|
49
|
+
createdBy: import("@contractspec/lib.schema").EntityScalarField;
|
|
50
|
+
createdAt: import("@contractspec/lib.schema").EntityScalarField;
|
|
51
|
+
file: import("@contractspec/lib.schema").EntityRelationField;
|
|
55
52
|
}>;
|
|
56
53
|
/**
|
|
57
54
|
* Attachment entity - polymorphic link between files and entities.
|
|
58
55
|
*/
|
|
59
|
-
declare const AttachmentEntity:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
56
|
+
export declare const AttachmentEntity: import("@contractspec/lib.schema").EntitySpec<{
|
|
57
|
+
id: import("@contractspec/lib.schema").EntityScalarField;
|
|
58
|
+
fileId: import("@contractspec/lib.schema").EntityScalarField;
|
|
59
|
+
entityType: import("@contractspec/lib.schema").EntityScalarField;
|
|
60
|
+
entityId: import("@contractspec/lib.schema").EntityScalarField;
|
|
61
|
+
attachmentType: import("@contractspec/lib.schema").EntityScalarField;
|
|
62
|
+
name: import("@contractspec/lib.schema").EntityScalarField;
|
|
63
|
+
description: import("@contractspec/lib.schema").EntityScalarField;
|
|
64
|
+
order: import("@contractspec/lib.schema").EntityScalarField;
|
|
65
|
+
metadata: import("@contractspec/lib.schema").EntityScalarField;
|
|
66
|
+
createdBy: import("@contractspec/lib.schema").EntityScalarField;
|
|
67
|
+
createdAt: import("@contractspec/lib.schema").EntityScalarField;
|
|
68
|
+
updatedAt: import("@contractspec/lib.schema").EntityScalarField;
|
|
69
|
+
file: import("@contractspec/lib.schema").EntityRelationField;
|
|
73
70
|
}>;
|
|
74
71
|
/**
|
|
75
72
|
* UploadSession entity - tracks multipart uploads.
|
|
76
73
|
*/
|
|
77
|
-
declare const UploadSessionEntity:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
74
|
+
export declare const UploadSessionEntity: import("@contractspec/lib.schema").EntitySpec<{
|
|
75
|
+
id: import("@contractspec/lib.schema").EntityScalarField;
|
|
76
|
+
fileName: import("@contractspec/lib.schema").EntityScalarField;
|
|
77
|
+
mimeType: import("@contractspec/lib.schema").EntityScalarField;
|
|
78
|
+
totalSize: import("@contractspec/lib.schema").EntityScalarField;
|
|
79
|
+
uploadId: import("@contractspec/lib.schema").EntityScalarField;
|
|
80
|
+
uploadedBytes: import("@contractspec/lib.schema").EntityScalarField;
|
|
81
|
+
uploadedParts: import("@contractspec/lib.schema").EntityScalarField;
|
|
82
|
+
status: import("@contractspec/lib.schema").EntityScalarField;
|
|
83
|
+
error: import("@contractspec/lib.schema").EntityScalarField;
|
|
84
|
+
fileId: import("@contractspec/lib.schema").EntityScalarField;
|
|
85
|
+
ownerId: import("@contractspec/lib.schema").EntityScalarField;
|
|
86
|
+
orgId: import("@contractspec/lib.schema").EntityScalarField;
|
|
87
|
+
expiresAt: import("@contractspec/lib.schema").EntityScalarField;
|
|
88
|
+
createdAt: import("@contractspec/lib.schema").EntityScalarField;
|
|
89
|
+
updatedAt: import("@contractspec/lib.schema").EntityScalarField;
|
|
93
90
|
}>;
|
|
94
91
|
/**
|
|
95
92
|
* All file entities for schema composition.
|
|
96
93
|
*/
|
|
97
|
-
declare const fileEntities: (
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}> |
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}> |
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}> |
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
94
|
+
export declare const fileEntities: (import("@contractspec/lib.schema").EntitySpec<{
|
|
95
|
+
id: import("@contractspec/lib.schema").EntityScalarField;
|
|
96
|
+
name: import("@contractspec/lib.schema").EntityScalarField;
|
|
97
|
+
mimeType: import("@contractspec/lib.schema").EntityScalarField;
|
|
98
|
+
size: import("@contractspec/lib.schema").EntityScalarField;
|
|
99
|
+
storageProvider: import("@contractspec/lib.schema").EntityEnumField;
|
|
100
|
+
storagePath: import("@contractspec/lib.schema").EntityScalarField;
|
|
101
|
+
storageKey: import("@contractspec/lib.schema").EntityScalarField;
|
|
102
|
+
checksum: import("@contractspec/lib.schema").EntityScalarField;
|
|
103
|
+
etag: import("@contractspec/lib.schema").EntityScalarField;
|
|
104
|
+
status: import("@contractspec/lib.schema").EntityEnumField;
|
|
105
|
+
isPublic: import("@contractspec/lib.schema").EntityScalarField;
|
|
106
|
+
expiresAt: import("@contractspec/lib.schema").EntityScalarField;
|
|
107
|
+
ownerId: import("@contractspec/lib.schema").EntityScalarField;
|
|
108
|
+
orgId: import("@contractspec/lib.schema").EntityScalarField;
|
|
109
|
+
metadata: import("@contractspec/lib.schema").EntityScalarField;
|
|
110
|
+
tags: import("@contractspec/lib.schema").EntityScalarField;
|
|
111
|
+
width: import("@contractspec/lib.schema").EntityScalarField;
|
|
112
|
+
height: import("@contractspec/lib.schema").EntityScalarField;
|
|
113
|
+
createdAt: import("@contractspec/lib.schema").EntityScalarField;
|
|
114
|
+
updatedAt: import("@contractspec/lib.schema").EntityScalarField;
|
|
115
|
+
versions: import("@contractspec/lib.schema").EntityRelationField;
|
|
116
|
+
attachments: import("@contractspec/lib.schema").EntityRelationField;
|
|
117
|
+
}> | import("@contractspec/lib.schema").EntitySpec<{
|
|
118
|
+
id: import("@contractspec/lib.schema").EntityScalarField;
|
|
119
|
+
fileId: import("@contractspec/lib.schema").EntityScalarField;
|
|
120
|
+
version: import("@contractspec/lib.schema").EntityScalarField;
|
|
121
|
+
size: import("@contractspec/lib.schema").EntityScalarField;
|
|
122
|
+
storagePath: import("@contractspec/lib.schema").EntityScalarField;
|
|
123
|
+
checksum: import("@contractspec/lib.schema").EntityScalarField;
|
|
124
|
+
comment: import("@contractspec/lib.schema").EntityScalarField;
|
|
125
|
+
changes: import("@contractspec/lib.schema").EntityScalarField;
|
|
126
|
+
createdBy: import("@contractspec/lib.schema").EntityScalarField;
|
|
127
|
+
createdAt: import("@contractspec/lib.schema").EntityScalarField;
|
|
128
|
+
file: import("@contractspec/lib.schema").EntityRelationField;
|
|
129
|
+
}> | import("@contractspec/lib.schema").EntitySpec<{
|
|
130
|
+
id: import("@contractspec/lib.schema").EntityScalarField;
|
|
131
|
+
fileId: import("@contractspec/lib.schema").EntityScalarField;
|
|
132
|
+
entityType: import("@contractspec/lib.schema").EntityScalarField;
|
|
133
|
+
entityId: import("@contractspec/lib.schema").EntityScalarField;
|
|
134
|
+
attachmentType: import("@contractspec/lib.schema").EntityScalarField;
|
|
135
|
+
name: import("@contractspec/lib.schema").EntityScalarField;
|
|
136
|
+
description: import("@contractspec/lib.schema").EntityScalarField;
|
|
137
|
+
order: import("@contractspec/lib.schema").EntityScalarField;
|
|
138
|
+
metadata: import("@contractspec/lib.schema").EntityScalarField;
|
|
139
|
+
createdBy: import("@contractspec/lib.schema").EntityScalarField;
|
|
140
|
+
createdAt: import("@contractspec/lib.schema").EntityScalarField;
|
|
141
|
+
updatedAt: import("@contractspec/lib.schema").EntityScalarField;
|
|
142
|
+
file: import("@contractspec/lib.schema").EntityRelationField;
|
|
143
|
+
}> | import("@contractspec/lib.schema").EntitySpec<{
|
|
144
|
+
id: import("@contractspec/lib.schema").EntityScalarField;
|
|
145
|
+
fileName: import("@contractspec/lib.schema").EntityScalarField;
|
|
146
|
+
mimeType: import("@contractspec/lib.schema").EntityScalarField;
|
|
147
|
+
totalSize: import("@contractspec/lib.schema").EntityScalarField;
|
|
148
|
+
uploadId: import("@contractspec/lib.schema").EntityScalarField;
|
|
149
|
+
uploadedBytes: import("@contractspec/lib.schema").EntityScalarField;
|
|
150
|
+
uploadedParts: import("@contractspec/lib.schema").EntityScalarField;
|
|
151
|
+
status: import("@contractspec/lib.schema").EntityScalarField;
|
|
152
|
+
error: import("@contractspec/lib.schema").EntityScalarField;
|
|
153
|
+
fileId: import("@contractspec/lib.schema").EntityScalarField;
|
|
154
|
+
ownerId: import("@contractspec/lib.schema").EntityScalarField;
|
|
155
|
+
orgId: import("@contractspec/lib.schema").EntityScalarField;
|
|
156
|
+
expiresAt: import("@contractspec/lib.schema").EntityScalarField;
|
|
157
|
+
createdAt: import("@contractspec/lib.schema").EntityScalarField;
|
|
158
|
+
updatedAt: import("@contractspec/lib.schema").EntityScalarField;
|
|
162
159
|
}>)[];
|
|
163
160
|
/**
|
|
164
161
|
* Module schema contribution for files.
|
|
165
162
|
*/
|
|
166
|
-
declare const filesSchemaContribution: ModuleSchemaContribution;
|
|
167
|
-
//#endregion
|
|
168
|
-
export { AttachmentEntity, FileEntity, FileStatusEnum, FileVersionEntity, StorageProviderEnum, UploadSessionEntity, fileEntities, filesSchemaContribution };
|
|
163
|
+
export declare const filesSchemaContribution: ModuleSchemaContribution;
|
|
169
164
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,mBAAmB,kDAK9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc,kDAYzB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;EA0FrB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAwC5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;EAwD3B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;EA0D9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,wBAIrC,CAAC"}
|