@contractspec/lib.files 1.44.1 → 1.45.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 +291 -291
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +13 -13
- package/dist/contracts/index.js.map +1 -1
- package/dist/entities/index.d.ts +133 -133
- package/dist/events.d.ts +118 -118
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +9 -9
- package/dist/events.js.map +1 -1
- package/dist/files.feature.js +24 -24
- package/dist/files.feature.js.map +1 -1
- package/package.json +5 -5
package/dist/events.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","names":[],"sources":["../src/events.ts"],"sourcesContent":["import { ScalarTypeEnum, defineSchemaModel } from '@contractspec/lib.schema';\nimport { defineEvent } from '@contractspec/lib.contracts';\n\n// ============ Event Payloads ============\n\nconst FileUploadedPayload = defineSchemaModel({\n name: 'FileUploadedEventPayload',\n description: 'Payload when a file is uploaded',\n fields: {\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n mimeType: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n size: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n storageProvider: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n ownerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n uploadedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst FileUpdatedPayload = defineSchemaModel({\n name: 'FileUpdatedEventPayload',\n description: 'Payload when a file is updated',\n fields: {\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n changes: { type: ScalarTypeEnum.JSON(), isOptional: false },\n updatedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst FileDeletedPayload = defineSchemaModel({\n name: 'FileDeletedEventPayload',\n description: 'Payload when a file is deleted',\n fields: {\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n storageProvider: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n storagePath: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n deletedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n deletedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst FileVersionCreatedPayload = defineSchemaModel({\n name: 'FileVersionCreatedEventPayload',\n description: 'Payload when a file version is created',\n fields: {\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n versionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n version: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n size: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n createdBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n comment: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst AttachmentAttachedPayload = defineSchemaModel({\n name: 'AttachmentAttachedEventPayload',\n description: 'Payload when a file is attached to an entity',\n fields: {\n attachmentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n entityType: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n entityId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n attachmentType: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n attachedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n attachedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst AttachmentDetachedPayload = defineSchemaModel({\n name: 'AttachmentDetachedEventPayload',\n description: 'Payload when a file is detached from an entity',\n fields: {\n attachmentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n entityType: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n entityId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n detachedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n detachedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst UploadSessionStartedPayload = defineSchemaModel({\n name: 'UploadSessionStartedEventPayload',\n description: 'Payload when an upload session starts',\n fields: {\n sessionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fileName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n mimeType: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n totalSize: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n ownerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n startedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst UploadSessionCompletedPayload = defineSchemaModel({\n name: 'UploadSessionCompletedEventPayload',\n description: 'Payload when an upload session completes',\n fields: {\n sessionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fileName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n size: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n completedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n// ============ Events ============\n\n/**\n * Emitted when a file is uploaded.\n */\nexport const FileUploadedEvent = defineEvent({\n meta: {\n key: 'file.uploaded',\n version: 1,\n description: 'A file has been uploaded.',\n stability: 'stable',\n owners: ['@platform.files'],\n tags: ['files', 'upload'],\n },\n payload: FileUploadedPayload,\n});\n\n/**\n * Emitted when a file is updated.\n */\nexport const FileUpdatedEvent = defineEvent({\n meta: {\n key: 'file.updated',\n version: 1,\n description: 'A file has been updated.',\n stability: 'stable',\n owners: ['@platform.files'],\n tags: ['files', 'update'],\n },\n payload: FileUpdatedPayload,\n});\n\n/**\n * Emitted when a file is deleted.\n */\nexport const FileDeletedEvent = defineEvent({\n meta: {\n key: 'file.deleted',\n version: 1,\n description: 'A file has been deleted.',\n stability: 'stable',\n owners: ['@platform.files'],\n tags: ['files', 'delete'],\n },\n payload: FileDeletedPayload,\n});\n\n/**\n * Emitted when a file version is created.\n */\nexport const FileVersionCreatedEvent = defineEvent({\n meta: {\n key: 'file.version_created',\n version: 1,\n description: 'A new file version has been created.',\n stability: 'stable',\n owners: ['@platform.files'],\n tags: ['files', 'version', 'create'],\n },\n payload: FileVersionCreatedPayload,\n});\n\n/**\n * Emitted when a file is attached to an entity.\n */\nexport const AttachmentAttachedEvent = defineEvent({\n meta: {\n key: 'attachment.attached',\n version: 1,\n description: 'A file has been attached to an entity.',\n stability: 'stable',\n owners: ['@platform.files'],\n tags: ['files', 'attachment', 'attach'],\n },\n payload: AttachmentAttachedPayload,\n});\n\n/**\n * Emitted when a file is detached from an entity.\n */\nexport const AttachmentDetachedEvent = defineEvent({\n meta: {\n key: 'attachment.detached',\n version: 1,\n description: 'A file has been detached from an entity.',\n stability: 'stable',\n owners: ['@platform.files'],\n tags: ['files', 'attachment', 'detach'],\n },\n payload: AttachmentDetachedPayload,\n});\n\n/**\n * Emitted when an upload session starts.\n */\nexport const UploadSessionStartedEvent = defineEvent({\n meta: {\n key: 'upload.session_started',\n version: 1,\n description: 'An upload session has started.',\n stability: 'stable',\n owners: ['@platform.files'],\n tags: ['files', 'upload', 'session', 'start'],\n },\n payload: UploadSessionStartedPayload,\n});\n\n/**\n * Emitted when an upload session completes.\n */\nexport const UploadSessionCompletedEvent = defineEvent({\n meta: {\n key: 'upload.session_completed',\n version: 1,\n description: 'An upload session has completed.',\n stability: 'stable',\n owners: ['@platform.files'],\n tags: ['files', 'upload', 'session', 'complete'],\n },\n payload: UploadSessionCompletedPayload,\n});\n\n/**\n * All file events.\n */\nexport const FileEvents = {\n FileUploadedEvent,\n FileUpdatedEvent,\n FileDeletedEvent,\n FileVersionCreatedEvent,\n AttachmentAttachedEvent,\n AttachmentDetachedEvent,\n UploadSessionStartedEvent,\n UploadSessionCompletedEvent,\n};\n"],"mappings":";;;;AAKA,MAAM,sBAAsB,kBAAkB;CAC5C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,QAAQ;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,MAAM;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACnE,UAAU;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,MAAM;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAO;EAChE,iBAAiB;GACf,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,OAAO;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACnE,YAAY;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EACnE;CACF,CAAC;AAEF,MAAM,qBAAqB,kBAAkB;CAC3C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,QAAQ;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,MAAM;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACnE,SAAS;GAAE,MAAM,eAAe,MAAM;GAAE,YAAY;GAAO;EAC3D,WAAW;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACvE,WAAW;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;AAEF,MAAM,qBAAqB,kBAAkB;CAC3C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,QAAQ;GAAE,MAAM,eAAe,iBAAiB;GAAE,Y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MAAa,8BAA8B,YAAY;CACrD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,kBAAkB;EAC3B,MAAM;GAAC;GAAS;GAAU;GAAW;GAAW;EACjD;CACD,SAAS;CACV,CAAC;;;;AAKF,MAAa,aAAa;CACxB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD"}
|
|
1
|
+
{"version":3,"file":"events.js","names":[],"sources":["../src/events.ts"],"sourcesContent":["import { ScalarTypeEnum, defineSchemaModel } from '@contractspec/lib.schema';\nimport { defineEvent } from '@contractspec/lib.contracts';\n\n// ============ Event Payloads ============\n\nconst FileUploadedPayload = defineSchemaModel({\n name: 'FileUploadedEventPayload',\n description: 'Payload when a file is uploaded',\n fields: {\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n mimeType: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n size: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n storageProvider: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n ownerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n uploadedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst FileUpdatedPayload = defineSchemaModel({\n name: 'FileUpdatedEventPayload',\n description: 'Payload when a file is updated',\n fields: {\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n changes: { type: ScalarTypeEnum.JSON(), isOptional: false },\n updatedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst FileDeletedPayload = defineSchemaModel({\n name: 'FileDeletedEventPayload',\n description: 'Payload when a file is deleted',\n fields: {\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n storageProvider: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n storagePath: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n deletedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n deletedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst FileVersionCreatedPayload = defineSchemaModel({\n name: 'FileVersionCreatedEventPayload',\n description: 'Payload when a file version is created',\n fields: {\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n versionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n version: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n size: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n createdBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n comment: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst AttachmentAttachedPayload = defineSchemaModel({\n name: 'AttachmentAttachedEventPayload',\n description: 'Payload when a file is attached to an entity',\n fields: {\n attachmentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n entityType: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n entityId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n attachmentType: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n attachedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n attachedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst AttachmentDetachedPayload = defineSchemaModel({\n name: 'AttachmentDetachedEventPayload',\n description: 'Payload when a file is detached from an entity',\n fields: {\n attachmentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n entityType: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n entityId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n detachedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n detachedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst UploadSessionStartedPayload = defineSchemaModel({\n name: 'UploadSessionStartedEventPayload',\n description: 'Payload when an upload session starts',\n fields: {\n sessionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fileName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n mimeType: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n totalSize: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n ownerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n startedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst UploadSessionCompletedPayload = defineSchemaModel({\n name: 'UploadSessionCompletedEventPayload',\n description: 'Payload when an upload session completes',\n fields: {\n sessionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fileName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n size: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n completedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n// ============ Events ============\n\n/**\n * Emitted when a file is uploaded.\n */\nexport const FileUploadedEvent = defineEvent({\n meta: {\n key: 'file.uploaded',\n version: '1.0.0',\n description: 'A file has been uploaded.',\n stability: 'stable',\n owners: ['@platform.files'],\n tags: ['files', 'upload'],\n },\n payload: FileUploadedPayload,\n});\n\n/**\n * Emitted when a file is updated.\n */\nexport const FileUpdatedEvent = defineEvent({\n meta: {\n key: 'file.updated',\n version: '1.0.0',\n description: 'A file has been updated.',\n stability: 'stable',\n owners: ['@platform.files'],\n tags: ['files', 'update'],\n },\n payload: FileUpdatedPayload,\n});\n\n/**\n * Emitted when a file is deleted.\n */\nexport const FileDeletedEvent = defineEvent({\n meta: {\n key: 'file.deleted',\n version: '1.0.0',\n description: 'A file has been deleted.',\n stability: 'stable',\n owners: ['@platform.files'],\n tags: ['files', 'delete'],\n },\n payload: FileDeletedPayload,\n});\n\n/**\n * Emitted when a file version is created.\n */\nexport const FileVersionCreatedEvent = defineEvent({\n meta: {\n key: 'file.version_created',\n version: '1.0.0',\n description: 'A new file version has been created.',\n stability: 'stable',\n owners: ['@platform.files'],\n tags: ['files', 'version', 'create'],\n },\n payload: FileVersionCreatedPayload,\n});\n\n/**\n * Emitted when a file is attached to an entity.\n */\nexport const AttachmentAttachedEvent = defineEvent({\n meta: {\n key: 'attachment.attached',\n version: '1.0.0',\n description: 'A file has been attached to an entity.',\n stability: 'stable',\n owners: ['@platform.files'],\n tags: ['files', 'attachment', 'attach'],\n },\n payload: AttachmentAttachedPayload,\n});\n\n/**\n * Emitted when a file is detached from an entity.\n */\nexport const AttachmentDetachedEvent = defineEvent({\n meta: {\n key: 'attachment.detached',\n version: '1.0.0',\n description: 'A file has been detached from an entity.',\n stability: 'stable',\n owners: ['@platform.files'],\n tags: ['files', 'attachment', 'detach'],\n },\n payload: AttachmentDetachedPayload,\n});\n\n/**\n * Emitted when an upload session starts.\n */\nexport const UploadSessionStartedEvent = defineEvent({\n meta: {\n key: 'upload.session_started',\n version: '1.0.0',\n description: 'An upload session has started.',\n stability: 'stable',\n owners: ['@platform.files'],\n tags: ['files', 'upload', 'session', 'start'],\n },\n payload: UploadSessionStartedPayload,\n});\n\n/**\n * Emitted when an upload session completes.\n */\nexport const UploadSessionCompletedEvent = defineEvent({\n meta: {\n key: 'upload.session_completed',\n version: '1.0.0',\n description: 'An upload session has completed.',\n stability: 'stable',\n owners: ['@platform.files'],\n tags: ['files', 'upload', 'session', 'complete'],\n },\n payload: UploadSessionCompletedPayload,\n});\n\n/**\n * All file events.\n */\nexport const FileEvents = {\n FileUploadedEvent,\n FileUpdatedEvent,\n FileDeletedEvent,\n FileVersionCreatedEvent,\n Attach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AW;EACjD;CACD,SAAS;CACV,CAAC;;;;AAKF,MAAa,aAAa;CACxB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD"}
|
package/dist/files.feature.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
const FilesFeature = {
|
|
7
7
|
meta: {
|
|
8
8
|
key: "files",
|
|
9
|
-
version: 1,
|
|
9
|
+
version: "1.0.0",
|
|
10
10
|
title: "File Management",
|
|
11
11
|
description: "File upload, versioning, and attachment management with presigned URLs",
|
|
12
12
|
domain: "platform",
|
|
@@ -22,85 +22,85 @@ const FilesFeature = {
|
|
|
22
22
|
operations: [
|
|
23
23
|
{
|
|
24
24
|
key: "file.upload",
|
|
25
|
-
version: 1
|
|
25
|
+
version: "1.0.0"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
key: "file.update",
|
|
29
|
-
version: 1
|
|
29
|
+
version: "1.0.0"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
key: "file.delete",
|
|
33
|
-
version: 1
|
|
33
|
+
version: "1.0.0"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
key: "file.get",
|
|
37
|
-
version: 1
|
|
37
|
+
version: "1.0.0"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
key: "file.list",
|
|
41
|
-
version: 1
|
|
41
|
+
version: "1.0.0"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
key: "file.downloadUrl",
|
|
45
|
-
version: 1
|
|
45
|
+
version: "1.0.0"
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
key: "file.presignedUrl.create",
|
|
49
|
-
version: 1
|
|
49
|
+
version: "1.0.0"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
key: "file.version.create",
|
|
53
|
-
version: 1
|
|
53
|
+
version: "1.0.0"
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
key: "file.version.list",
|
|
57
|
-
version: 1
|
|
57
|
+
version: "1.0.0"
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
key: "attachment.attach",
|
|
61
|
-
version: 1
|
|
61
|
+
version: "1.0.0"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
key: "attachment.detach",
|
|
65
|
-
version: 1
|
|
65
|
+
version: "1.0.0"
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
key: "attachment.list",
|
|
69
|
-
version: 1
|
|
69
|
+
version: "1.0.0"
|
|
70
70
|
}
|
|
71
71
|
],
|
|
72
72
|
events: [
|
|
73
73
|
{
|
|
74
74
|
key: "file.uploaded",
|
|
75
|
-
version: 1
|
|
75
|
+
version: "1.0.0"
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
key: "file.updated",
|
|
79
|
-
version: 1
|
|
79
|
+
version: "1.0.0"
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
key: "file.deleted",
|
|
83
|
-
version: 1
|
|
83
|
+
version: "1.0.0"
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
key: "file.version_created",
|
|
87
|
-
version: 1
|
|
87
|
+
version: "1.0.0"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
key: "attachment.attached",
|
|
91
|
-
version: 1
|
|
91
|
+
version: "1.0.0"
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
key: "attachment.detached",
|
|
95
|
-
version: 1
|
|
95
|
+
version: "1.0.0"
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
key: "upload.session_started",
|
|
99
|
-
version: 1
|
|
99
|
+
version: "1.0.0"
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
key: "upload.session_completed",
|
|
103
|
-
version: 1
|
|
103
|
+
version: "1.0.0"
|
|
104
104
|
}
|
|
105
105
|
],
|
|
106
106
|
presentations: [],
|
|
@@ -109,14 +109,14 @@ const FilesFeature = {
|
|
|
109
109
|
capabilities: {
|
|
110
110
|
provides: [{
|
|
111
111
|
key: "files",
|
|
112
|
-
version: 1
|
|
112
|
+
version: "1.0.0"
|
|
113
113
|
}, {
|
|
114
114
|
key: "attachments",
|
|
115
|
-
version: 1
|
|
115
|
+
version: "1.0.0"
|
|
116
116
|
}],
|
|
117
117
|
requires: [{
|
|
118
118
|
key: "identity",
|
|
119
|
-
version: 1
|
|
119
|
+
version: "1.0.0"
|
|
120
120
|
}]
|
|
121
121
|
}
|
|
122
122
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.feature.js","names":["FilesFeature: FeatureModuleSpec"],"sources":["../src/files.feature.ts"],"sourcesContent":["/**\n * Files Feature Module Specification\n *\n * Defines the feature module for file management capabilities.\n */\nimport type { FeatureModuleSpec } from '@contractspec/lib.contracts';\n\n/**\n * Files feature module that bundles file upload, versioning,\n * and attachment management capabilities.\n */\nexport const FilesFeature: FeatureModuleSpec = {\n meta: {\n key: 'files',\n version: 1,\n title: 'File Management',\n description:\n 'File upload, versioning, and attachment management with presigned URLs',\n domain: 'platform',\n owners: ['@platform.files'],\n tags: ['files', 'upload', 'attachments', 'storage'],\n stability: 'stable',\n },\n\n // All contract operations included in this feature\n operations: [\n // File CRUD operations\n { key: 'file.upload', version: 1 },\n { key: 'file.update', version: 1 },\n { key: 'file.delete', version: 1 },\n { key: 'file.get', version: 1 },\n { key: 'file.list', version: 1 },\n { key: 'file.downloadUrl', version: 1 },\n { key: 'file.presignedUrl.create', version: 1 },\n\n // Version operations\n { key: 'file.version.create', version: 1 },\n { key: 'file.version.list', version: 1 },\n\n // Attachment operations\n { key: 'attachment.attach', version: 1 },\n { key: 'attachment.detach', version: 1 },\n { key: 'attachment.list', version: 1 },\n ],\n\n // Events emitted by this feature\n events: [\n // File events\n { key: 'file.uploaded', version: 1 },\n { key: 'file.updated', version: 1 },\n { key: 'file.deleted', version: 1 },\n { key: 'file.version_created', version: 1 },\n\n // Attachment events\n { key: 'attachment.attached', version: 1 },\n { key: 'attachment.detached', version: 1 },\n\n // Upload session events\n { key: 'upload.session_started', version: 1 },\n { key: 'upload.session_completed', version: 1 },\n ],\n\n // No presentations for this library feature\n presentations: [],\n opToPresentation: [],\n presentationsTargets: [],\n\n // Capability definitions\n capabilities: {\n provides: [\n { key: 'files', version: 1 },\n { key: 'attachments', version: 1 },\n ],\n requires: [{ key: 'identity', version: 1 }],\n },\n};\n"],"mappings":";;;;;AAWA,MAAaA,eAAkC;CAC7C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,kBAAkB;EAC3B,MAAM;GAAC;GAAS;GAAU;GAAe;GAAU;EACnD,WAAW;EACZ;CAGD,YAAY;EAEV;GAAE,KAAK;GAAe,SAAS;
|
|
1
|
+
{"version":3,"file":"files.feature.js","names":["FilesFeature: FeatureModuleSpec"],"sources":["../src/files.feature.ts"],"sourcesContent":["/**\n * Files Feature Module Specification\n *\n * Defines the feature module for file management capabilities.\n */\nimport type { FeatureModuleSpec } from '@contractspec/lib.contracts';\n\n/**\n * Files feature module that bundles file upload, versioning,\n * and attachment management capabilities.\n */\nexport const FilesFeature: FeatureModuleSpec = {\n meta: {\n key: 'files',\n version: '1.0.0',\n title: 'File Management',\n description:\n 'File upload, versioning, and attachment management with presigned URLs',\n domain: 'platform',\n owners: ['@platform.files'],\n tags: ['files', 'upload', 'attachments', 'storage'],\n stability: 'stable',\n },\n\n // All contract operations included in this feature\n operations: [\n // File CRUD operations\n { key: 'file.upload', version: '1.0.0' },\n { key: 'file.update', version: '1.0.0' },\n { key: 'file.delete', version: '1.0.0' },\n { key: 'file.get', version: '1.0.0' },\n { key: 'file.list', version: '1.0.0' },\n { key: 'file.downloadUrl', version: '1.0.0' },\n { key: 'file.presignedUrl.create', version: '1.0.0' },\n\n // Version operations\n { key: 'file.version.create', version: '1.0.0' },\n { key: 'file.version.list', version: '1.0.0' },\n\n // Attachment operations\n { key: 'attachment.attach', version: '1.0.0' },\n { key: 'attachment.detach', version: '1.0.0' },\n { key: 'attachment.list', version: '1.0.0' },\n ],\n\n // Events emitted by this feature\n events: [\n // File events\n { key: 'file.uploaded', version: '1.0.0' },\n { key: 'file.updated', version: '1.0.0' },\n { key: 'file.deleted', version: '1.0.0' },\n { key: 'file.version_created', version: '1.0.0' },\n\n // Attachment events\n { key: 'attachment.attached', version: '1.0.0' },\n { key: 'attachment.detached', version: '1.0.0' },\n\n // Upload session events\n { key: 'upload.session_started', version: '1.0.0' },\n { key: 'upload.session_completed', version: '1.0.0' },\n ],\n\n // No presentations for this library feature\n presentations: [],\n opToPresentation: [],\n presentationsTargets: [],\n\n // Capability definitions\n capabilities: {\n provides: [\n { key: 'files', version: '1.0.0' },\n { key: 'attachments', version: '1.0.0' },\n ],\n requires: [{ key: 'identity', version: '1.0.0' }],\n },\n};\n"],"mappings":";;;;;AAWA,MAAaA,eAAkC;CAC7C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,kBAAkB;EAC3B,MAAM;GAAC;GAAS;GAAU;GAAe;GAAU;EACnD,WAAW;EACZ;CAGD,YAAY;EAEV;GAAE,KAAK;GAAe,SAAS;GAAS;EACxC;GAAE,KAAK;GAAe,SAAS;GAAS;EACxC;GAAE,KAAK;GAAe,SAAS;GAAS;EACxC;GAAE,KAAK;GAAY,SAAS;GAAS;EACrC;GAAE,KAAK;GAAa,SAAS;GAAS;EACtC;GAAE,KAAK;GAAoB,SAAS;GAAS;EAC7C;GAAE,KAAK;GAA4B,SAAS;GAAS;EAGrD;GAAE,KAAK;GAAuB,SAAS;GAAS;EAChD;GAAE,KAAK;GAAqB,SAAS;GAAS;EAG9C;GAAE,KAAK;GAAqB,SAAS;GAAS;EAC9C;GAAE,KAAK;GAAqB,SAAS;GAAS;EAC9C;GAAE,KAAK;GAAmB,SAAS;GAAS;EAC7C;CAGD,QAAQ;EAEN;GAAE,KAAK;GAAiB,SAAS;GAAS;EAC1C;GAAE,KAAK;GAAgB,SAAS;GAAS;EACzC;GAAE,KAAK;GAAgB,SAAS;GAAS;EACzC;GAAE,KAAK;GAAwB,SAAS;GAAS;EAGjD;GAAE,KAAK;GAAuB,SAAS;GAAS;EAChD;GAAE,KAAK;GAAuB,SAAS;GAAS;EAGhD;GAAE,KAAK;GAA0B,SAAS;GAAS;EACnD;GAAE,KAAK;GAA4B,SAAS;GAAS;EACtD;CAGD,eAAe,EAAE;CACjB,kBAAkB,EAAE;CACpB,sBAAsB,EAAE;CAGxB,cAAc;EACZ,UAAU,CACR;GAAE,KAAK;GAAS,SAAS;GAAS,EAClC;GAAE,KAAK;GAAe,SAAS;GAAS,CACzC;EACD,UAAU,CAAC;GAAE,KAAK;GAAY,SAAS;GAAS,CAAC;EAClD;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/lib.files",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.45.0",
|
|
4
4
|
"description": "Files, documents and attachments module for ContractSpec applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contractspec",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"lint:check": "eslint src"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@contractspec/lib.schema": "1.
|
|
30
|
-
"@contractspec/lib.contracts": "1.
|
|
29
|
+
"@contractspec/lib.schema": "1.45.0",
|
|
30
|
+
"@contractspec/lib.contracts": "1.45.0",
|
|
31
31
|
"zod": "^4.1.13"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@contractspec/tool.typescript": "1.
|
|
35
|
-
"@contractspec/tool.tsdown": "1.
|
|
34
|
+
"@contractspec/tool.typescript": "1.45.0",
|
|
35
|
+
"@contractspec/tool.tsdown": "1.45.0",
|
|
36
36
|
"typescript": "^5.9.3"
|
|
37
37
|
},
|
|
38
38
|
"exports": {
|