@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
package/dist/files.capability.js
CHANGED
|
@@ -1,25 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
// @bun
|
|
2
|
+
// src/files.capability.ts
|
|
3
|
+
import { defineCapability, StabilityEnum } from "@contractspec/lib.contracts";
|
|
4
|
+
var FilesCapability = defineCapability({
|
|
5
|
+
meta: {
|
|
6
|
+
key: "files",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
kind: "data",
|
|
9
|
+
stability: StabilityEnum.Experimental,
|
|
10
|
+
description: "File storage and management",
|
|
11
|
+
owners: ["@platform.core"],
|
|
12
|
+
tags: ["files", "storage"]
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
var AttachmentsCapability = defineCapability({
|
|
16
|
+
meta: {
|
|
17
|
+
key: "attachments",
|
|
18
|
+
version: "1.0.0",
|
|
19
|
+
kind: "data",
|
|
20
|
+
stability: StabilityEnum.Experimental,
|
|
21
|
+
description: "File attachments for entities",
|
|
22
|
+
owners: ["@platform.core"],
|
|
23
|
+
tags: ["attachments", "files"]
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
FilesCapability,
|
|
28
|
+
AttachmentsCapability
|
|
29
|
+
};
|
package/dist/files.feature.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
|
|
2
|
-
|
|
3
|
-
//#region src/files.feature.d.ts
|
|
4
1
|
/**
|
|
5
2
|
* Files feature module that bundles file storage,
|
|
6
3
|
* attachments, and media processing capabilities.
|
|
7
4
|
*/
|
|
8
|
-
declare const FilesFeature:
|
|
9
|
-
//#endregion
|
|
10
|
-
export { FilesFeature };
|
|
5
|
+
export declare const FilesFeature: import("@contractspec/lib.contracts").FeatureModuleSpec;
|
|
11
6
|
//# sourceMappingURL=files.feature.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.feature.d.ts","
|
|
1
|
+
{"version":3,"file":"files.feature.d.ts","sourceRoot":"","sources":["../src/files.feature.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,eAAO,MAAM,YAAY,yDAgEvB,CAAC"}
|
package/dist/files.feature.js
CHANGED
|
@@ -1,133 +1,52 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/files.feature.ts
|
|
1
3
|
import { defineFeature } from "@contractspec/lib.contracts";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
key: "file.list",
|
|
48
|
-
version: "1.0.0"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
key: "file.downloadUrl",
|
|
52
|
-
version: "1.0.0"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
key: "file.presignedUrl.create",
|
|
56
|
-
version: "1.0.0"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
key: "file.version.create",
|
|
60
|
-
version: "1.0.0"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
key: "file.version.list",
|
|
64
|
-
version: "1.0.0"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
key: "attachment.attach",
|
|
68
|
-
version: "1.0.0"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
key: "attachment.detach",
|
|
72
|
-
version: "1.0.0"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
key: "attachment.list",
|
|
76
|
-
version: "1.0.0"
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
events: [
|
|
80
|
-
{
|
|
81
|
-
key: "file.uploaded",
|
|
82
|
-
version: "1.0.0"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
key: "file.updated",
|
|
86
|
-
version: "1.0.0"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
key: "file.deleted",
|
|
90
|
-
version: "1.0.0"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
key: "file.version_created",
|
|
94
|
-
version: "1.0.0"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
key: "attachment.attached",
|
|
98
|
-
version: "1.0.0"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
key: "attachment.detached",
|
|
102
|
-
version: "1.0.0"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
key: "upload.session_started",
|
|
106
|
-
version: "1.0.0"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
key: "upload.session_completed",
|
|
110
|
-
version: "1.0.0"
|
|
111
|
-
}
|
|
112
|
-
],
|
|
113
|
-
presentations: [],
|
|
114
|
-
opToPresentation: [],
|
|
115
|
-
presentationsTargets: [],
|
|
116
|
-
capabilities: {
|
|
117
|
-
provides: [{
|
|
118
|
-
key: "files",
|
|
119
|
-
version: "1.0.0"
|
|
120
|
-
}, {
|
|
121
|
-
key: "attachments",
|
|
122
|
-
version: "1.0.0"
|
|
123
|
-
}],
|
|
124
|
-
requires: [{
|
|
125
|
-
key: "identity",
|
|
126
|
-
version: "1.0.0"
|
|
127
|
-
}]
|
|
128
|
-
}
|
|
4
|
+
var FilesFeature = defineFeature({
|
|
5
|
+
meta: {
|
|
6
|
+
key: "files",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
title: "File Management",
|
|
9
|
+
description: "File storage, attachments, and media processing with presigned URLs",
|
|
10
|
+
domain: "platform",
|
|
11
|
+
owners: ["@platform.files"],
|
|
12
|
+
tags: ["files", "upload", "attachments", "storage"],
|
|
13
|
+
stability: "stable"
|
|
14
|
+
},
|
|
15
|
+
operations: [
|
|
16
|
+
{ key: "file.upload", version: "1.0.0" },
|
|
17
|
+
{ key: "file.update", version: "1.0.0" },
|
|
18
|
+
{ key: "file.delete", version: "1.0.0" },
|
|
19
|
+
{ key: "file.get", version: "1.0.0" },
|
|
20
|
+
{ key: "file.list", version: "1.0.0" },
|
|
21
|
+
{ key: "file.downloadUrl", version: "1.0.0" },
|
|
22
|
+
{ key: "file.presignedUrl.create", version: "1.0.0" },
|
|
23
|
+
{ key: "file.version.create", version: "1.0.0" },
|
|
24
|
+
{ key: "file.version.list", version: "1.0.0" },
|
|
25
|
+
{ key: "attachment.attach", version: "1.0.0" },
|
|
26
|
+
{ key: "attachment.detach", version: "1.0.0" },
|
|
27
|
+
{ key: "attachment.list", version: "1.0.0" }
|
|
28
|
+
],
|
|
29
|
+
events: [
|
|
30
|
+
{ key: "file.uploaded", version: "1.0.0" },
|
|
31
|
+
{ key: "file.updated", version: "1.0.0" },
|
|
32
|
+
{ key: "file.deleted", version: "1.0.0" },
|
|
33
|
+
{ key: "file.version_created", version: "1.0.0" },
|
|
34
|
+
{ key: "attachment.attached", version: "1.0.0" },
|
|
35
|
+
{ key: "attachment.detached", version: "1.0.0" },
|
|
36
|
+
{ key: "upload.session_started", version: "1.0.0" },
|
|
37
|
+
{ key: "upload.session_completed", version: "1.0.0" }
|
|
38
|
+
],
|
|
39
|
+
presentations: [],
|
|
40
|
+
opToPresentation: [],
|
|
41
|
+
presentationsTargets: [],
|
|
42
|
+
capabilities: {
|
|
43
|
+
provides: [
|
|
44
|
+
{ key: "files", version: "1.0.0" },
|
|
45
|
+
{ key: "attachments", version: "1.0.0" }
|
|
46
|
+
],
|
|
47
|
+
requires: [{ key: "identity", version: "1.0.0" }]
|
|
48
|
+
}
|
|
129
49
|
});
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
//# sourceMappingURL=files.feature.js.map
|
|
50
|
+
export {
|
|
51
|
+
FilesFeature
|
|
52
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
export * from './entities';
|
|
2
|
+
export * from './contracts';
|
|
3
|
+
export * from './events';
|
|
4
|
+
export * from './storage';
|
|
5
|
+
export * from './files.feature';
|
|
6
|
+
import './docs';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAG3B,cAAc,aAAa,CAAC;AAG5B,cAAc,UAAU,CAAC;AAGzB,cAAc,WAAW,CAAC;AAG1B,cAAc,iBAAiB,CAAC;AAGhC,OAAO,QAAQ,CAAC"}
|