@lssm/lib.files 0.0.0-canary-20251217080011 → 0.0.0-canary-20251219202229
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/LICENSE +21 -0
- package/README.md +2 -0
- package/dist/contracts/dist/capabilities/openbanking.js +2 -1
- package/dist/contracts/dist/capabilities/openbanking.js.map +1 -0
- package/dist/contracts/dist/contract-registry/schemas.js +2 -1
- package/dist/contracts/dist/contract-registry/schemas.js.map +1 -0
- package/dist/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +2 -1
- package/dist/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/index.js +2 -6
- package/dist/contracts/dist/docs/meta.docs.js +30 -0
- package/dist/contracts/dist/docs/meta.docs.js.map +1 -0
- package/dist/contracts/dist/docs/presentations.js +2 -1
- package/dist/contracts/dist/docs/presentations.js.map +1 -0
- package/dist/contracts/dist/docs/registry.js +2 -1
- package/dist/contracts/dist/docs/registry.js.map +1 -0
- package/dist/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/llm/llm-integration.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/mcp-endpoints.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/presentation-runtime.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/schema/README.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/schema/README.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/studio/learning-events.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/studio/project-routing.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/studio/team-invitations.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/studio/workspaces.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/telemetry-ingest.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/templates/runtime.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/templates/runtime.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/vscode-extension.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/vscode-extension.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech/workflows/overview.docblock.js +2 -1
- package/dist/contracts/dist/docs/tech/workflows/overview.docblock.js.map +1 -0
- package/dist/contracts/dist/docs/tech-contracts.docs.js +97 -0
- package/dist/contracts/dist/docs/tech-contracts.docs.js.map +1 -0
- package/dist/contracts/dist/events.js +2 -1
- package/dist/contracts/dist/events.js.map +1 -0
- package/dist/contracts/dist/index.js +2 -1
- package/dist/contracts/dist/integrations/contracts.js +65 -66
- package/dist/contracts/dist/integrations/contracts.js.map +1 -0
- package/dist/contracts/dist/integrations/openbanking/contracts/accounts.js +31 -32
- package/dist/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -0
- package/dist/contracts/dist/integrations/openbanking/contracts/balances.js +18 -19
- package/dist/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -0
- package/dist/contracts/dist/integrations/openbanking/contracts/transactions.js +32 -33
- package/dist/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -0
- package/dist/contracts/dist/integrations/openbanking/models.js +60 -61
- package/dist/contracts/dist/integrations/openbanking/models.js.map +1 -0
- package/dist/contracts/dist/integrations/openbanking/telemetry.js +2 -1
- package/dist/contracts/dist/integrations/openbanking/telemetry.js.map +1 -0
- package/dist/contracts/dist/integrations/providers/elevenlabs.js +2 -1
- package/dist/contracts/dist/integrations/providers/elevenlabs.js.map +1 -0
- package/dist/contracts/dist/integrations/providers/gcs-storage.js +2 -1
- package/dist/contracts/dist/integrations/providers/gcs-storage.js.map +1 -0
- package/dist/contracts/dist/integrations/providers/gmail.js +2 -1
- package/dist/contracts/dist/integrations/providers/gmail.js.map +1 -0
- package/dist/contracts/dist/integrations/providers/google-calendar.js +2 -1
- package/dist/contracts/dist/integrations/providers/google-calendar.js.map +1 -0
- package/dist/contracts/dist/integrations/providers/mistral.js +2 -1
- package/dist/contracts/dist/integrations/providers/mistral.js.map +1 -0
- package/dist/contracts/dist/integrations/providers/postmark.js +2 -1
- package/dist/contracts/dist/integrations/providers/postmark.js.map +1 -0
- package/dist/contracts/dist/integrations/providers/powens.js +2 -1
- package/dist/contracts/dist/integrations/providers/powens.js.map +1 -0
- package/dist/contracts/dist/integrations/providers/qdrant.js +2 -1
- package/dist/contracts/dist/integrations/providers/qdrant.js.map +1 -0
- package/dist/contracts/dist/integrations/providers/stripe.js +2 -1
- package/dist/contracts/dist/integrations/providers/stripe.js.map +1 -0
- package/dist/contracts/dist/integrations/providers/twilio-sms.js +2 -1
- package/dist/contracts/dist/integrations/providers/twilio-sms.js.map +1 -0
- package/dist/contracts/dist/knowledge/contracts.js +44 -45
- package/dist/contracts/dist/knowledge/contracts.js.map +1 -0
- package/dist/contracts/dist/knowledge/spaces/email-threads.js +2 -1
- package/dist/contracts/dist/knowledge/spaces/email-threads.js.map +1 -0
- package/dist/contracts/dist/knowledge/spaces/financial-docs.js +2 -1
- package/dist/contracts/dist/knowledge/spaces/financial-docs.js.map +1 -0
- package/dist/contracts/dist/knowledge/spaces/financial-overview.js +2 -1
- package/dist/contracts/dist/knowledge/spaces/financial-overview.js.map +1 -0
- package/dist/contracts/dist/knowledge/spaces/product-canon.js +2 -1
- package/dist/contracts/dist/knowledge/spaces/product-canon.js.map +1 -0
- package/dist/contracts/dist/knowledge/spaces/support-faq.js +2 -1
- package/dist/contracts/dist/knowledge/spaces/support-faq.js.map +1 -0
- package/dist/contracts/dist/knowledge/spaces/uploaded-docs.js +2 -1
- package/dist/contracts/dist/knowledge/spaces/uploaded-docs.js.map +1 -0
- package/dist/contracts/dist/llm/exporters.js +2 -1
- package/dist/contracts/dist/llm/exporters.js.map +1 -0
- package/dist/contracts/dist/onboarding-base.js +22 -23
- package/dist/contracts/dist/onboarding-base.js.map +1 -0
- package/dist/contracts/dist/ownership.js +4 -2
- package/dist/contracts/dist/ownership.js.map +1 -0
- package/dist/contracts/dist/presentations.v2.js +2 -1
- package/dist/contracts/dist/presentations.v2.js.map +1 -0
- package/dist/contracts/dist/regenerator/service.js +2 -1
- package/dist/contracts/dist/regenerator/service.js.map +1 -0
- package/dist/contracts/dist/schema/dist/index.js +3873 -6
- package/dist/contracts/dist/schema/dist/index.js.map +1 -0
- package/dist/contracts/dist/spec.js +2 -1
- package/dist/contracts/dist/spec.js.map +1 -0
- package/dist/contracts/index.d.ts +292 -291
- package/dist/contracts/index.d.ts.map +1 -0
- package/dist/contracts/index.js +115 -116
- package/dist/contracts/index.js.map +1 -0
- package/dist/docs/files.docblock.js +2 -1
- package/dist/docs/files.docblock.js.map +1 -0
- package/dist/entities/index.d.ts +135 -134
- package/dist/entities/index.d.ts.map +1 -0
- package/dist/entities/index.js +81 -81
- package/dist/entities/index.js.map +1 -0
- package/dist/events.d.ts +2 -1
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +61 -62
- package/dist/events.js.map +1 -0
- package/dist/files.feature.d.ts +2 -1
- package/dist/files.feature.d.ts.map +1 -0
- package/dist/files.feature.js +2 -1
- package/dist/files.feature.js.map +1 -0
- package/dist/schema/dist/index.js +4889 -6
- package/dist/schema/dist/index.js.map +1 -0
- package/dist/storage/index.d.ts +2 -1
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +2 -1
- package/dist/storage/index.js.map +1 -0
- package/package.json +7 -6
- package/dist/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
- package/dist/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
- package/dist/contracts/dist/schema/dist/EnumType.js +0 -2
- package/dist/contracts/dist/schema/dist/FieldType.js +0 -49
- package/dist/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/contracts/dist/schema/dist/SchemaModel.js +0 -34
- package/dist/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
- package/dist/contracts/dist/schema/dist/entity/index.js +0 -2
- package/dist/contracts/dist/schema/dist/entity/types.js +0 -1
- package/dist/schema/dist/EnumType.js +0 -2
- package/dist/schema/dist/FieldType.js +0 -49
- package/dist/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/schema/dist/SchemaModel.js +0 -39
- package/dist/schema/dist/entity/defineEntity.js +0 -236
- package/dist/schema/dist/entity/index.js +0 -2
- package/dist/schema/dist/entity/types.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../../src/contracts/index.ts"],"sourcesContent":["import { ScalarTypeEnum, defineSchemaModel } from '@lssm/lib.schema';\nimport { defineCommand, defineQuery } from '@lssm/lib.contracts';\n\nconst OWNERS = ['platform.files'] as const;\n\n// ============ Schema Models ============\n\nexport const FileModel = defineSchemaModel({\n name: 'File',\n description: 'Represents an uploaded file',\n fields: {\n id: { 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 storagePath: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n checksum: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n isPublic: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n ownerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n metadata: { type: ScalarTypeEnum.JSON(), isOptional: true },\n width: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n height: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const FileVersionModel = defineSchemaModel({\n name: 'FileVersion',\n description: 'Represents a file version',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n version: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n size: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n storagePath: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n checksum: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n comment: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n createdBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const AttachmentModel = defineSchemaModel({\n name: 'Attachment',\n description: 'Represents an attachment',\n fields: {\n id: { 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 name: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n order: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n metadata: { type: ScalarTypeEnum.JSON(), isOptional: true },\n createdBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n file: { type: FileModel, isOptional: true },\n },\n});\n\nexport const PresignedUrlModel = defineSchemaModel({\n name: 'PresignedUrl',\n description: 'A presigned URL for file operations',\n fields: {\n url: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n fields: { type: ScalarTypeEnum.JSON(), isOptional: true },\n expiresAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n sessionId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\n// ============ Input/Output Models ============\n\nconst UploadFileInput = defineSchemaModel({\n name: 'UploadFileInput',\n description: 'Input for uploading a file',\n fields: {\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 content: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }, // Base64 encoded\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n isPublic: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n metadata: { type: ScalarTypeEnum.JSON(), isOptional: true },\n tags: { type: ScalarTypeEnum.JSON(), isOptional: true },\n },\n});\n\nconst UpdateFileInput = defineSchemaModel({\n name: 'UpdateFileInput',\n description: 'Input for updating a file',\n fields: {\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n isPublic: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n metadata: { type: ScalarTypeEnum.JSON(), isOptional: true },\n tags: { type: ScalarTypeEnum.JSON(), isOptional: true },\n },\n});\n\nconst DeleteFileInput = defineSchemaModel({\n name: 'DeleteFileInput',\n description: 'Input for deleting a file',\n fields: {\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nconst GetFileInput = defineSchemaModel({\n name: 'GetFileInput',\n description: 'Input for getting a file',\n fields: {\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nconst ListFilesInput = defineSchemaModel({\n name: 'ListFilesInput',\n description: 'Input for listing files',\n fields: {\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n ownerId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n mimeType: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n tags: { type: ScalarTypeEnum.JSON(), isOptional: true },\n limit: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n offset: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n },\n});\n\nconst ListFilesOutput = defineSchemaModel({\n name: 'ListFilesOutput',\n description: 'Output for listing files',\n fields: {\n files: { type: FileModel, isArray: true, isOptional: false },\n total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n },\n});\n\nconst GetDownloadUrlInput = defineSchemaModel({\n name: 'GetDownloadUrlInput',\n description: 'Input for getting a download URL',\n fields: {\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n expiresInSeconds: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n },\n});\n\nconst CreateVersionInput = defineSchemaModel({\n name: 'CreateVersionInput',\n description: 'Input for creating a file version',\n fields: {\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n content: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }, // Base64 encoded\n comment: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\nconst GetVersionsInput = defineSchemaModel({\n name: 'GetVersionsInput',\n description: 'Input for getting file versions',\n fields: {\n fileId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n limit: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n offset: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n },\n});\n\nconst GetVersionsOutput = defineSchemaModel({\n name: 'GetVersionsOutput',\n description: 'Output for getting file versions',\n fields: {\n versions: { type: FileVersionModel, isArray: true, isOptional: false },\n total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n },\n});\n\nconst AttachFileInput = defineSchemaModel({\n name: 'AttachFileInput',\n description: 'Input for attaching a file to an entity',\n fields: {\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 name: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n order: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n metadata: { type: ScalarTypeEnum.JSON(), isOptional: true },\n },\n});\n\nconst DetachFileInput = defineSchemaModel({\n name: 'DetachFileInput',\n description: 'Input for detaching a file',\n fields: {\n attachmentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nconst ListAttachmentsInput = defineSchemaModel({\n name: 'ListAttachmentsInput',\n description: 'Input for listing attachments',\n fields: {\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 },\n});\n\nconst ListAttachmentsOutput = defineSchemaModel({\n name: 'ListAttachmentsOutput',\n description: 'Output for listing attachments',\n fields: {\n attachments: { type: AttachmentModel, isArray: true, isOptional: false },\n total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n },\n});\n\nconst CreatePresignedUrlInput = defineSchemaModel({\n name: 'CreatePresignedUrlInput',\n description: 'Input for creating a presigned upload URL',\n fields: {\n fileName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n mimeType: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n size: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n expiresInSeconds: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n },\n});\n\nconst SuccessOutput = defineSchemaModel({\n name: 'SuccessOutput',\n description: 'Generic success output',\n fields: {\n success: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n});\n\n// ============ Contracts ============\n\n/**\n * Upload a file.\n */\nexport const UploadFileContract = defineCommand({\n meta: {\n name: 'file.upload',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['files', 'upload'],\n description: 'Upload a new file.',\n goal: 'Store a file and create a file record.',\n context: 'Called when uploading files directly.',\n },\n io: {\n input: UploadFileInput,\n output: FileModel,\n errors: {\n FILE_TOO_LARGE: {\n description: 'File exceeds size limit',\n http: 413,\n gqlCode: 'FILE_TOO_LARGE',\n when: 'File size exceeds configured limit',\n },\n INVALID_MIME_TYPE: {\n description: 'MIME type not allowed',\n http: 415,\n gqlCode: 'INVALID_MIME_TYPE',\n when: 'File type is not in allowed list',\n },\n },\n },\n policy: {\n auth: 'user',\n },\n});\n\n/**\n * Update a file.\n */\nexport const UpdateFileContract = defineCommand({\n meta: {\n name: 'file.update',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['files', 'update'],\n description: 'Update file metadata.',\n goal: 'Modify file properties without replacing content.',\n context: 'Called when renaming or updating file metadata.',\n },\n io: {\n input: UpdateFileInput,\n output: FileModel,\n errors: {\n FILE_NOT_FOUND: {\n description: 'File does not exist',\n http: 404,\n gqlCode: 'FILE_NOT_FOUND',\n when: 'File ID is invalid',\n },\n },\n },\n policy: {\n auth: 'user',\n },\n});\n\n/**\n * Delete a file.\n */\nexport const DeleteFileContract = defineCommand({\n meta: {\n name: 'file.delete',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['files', 'delete'],\n description: 'Delete a file.',\n goal: 'Remove a file and all its versions and attachments.',\n context: 'Called when removing a file permanently.',\n },\n io: {\n input: DeleteFileInput,\n output: SuccessOutput,\n errors: {\n FILE_NOT_FOUND: {\n description: 'File does not exist',\n http: 404,\n gqlCode: 'FILE_NOT_FOUND',\n when: 'File ID is invalid',\n },\n },\n },\n policy: {\n auth: 'user',\n },\n});\n\n/**\n * Get a file by ID.\n */\nexport const GetFileContract = defineQuery({\n meta: {\n name: 'file.get',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['files', 'get'],\n description: 'Get a file by ID.',\n goal: 'Retrieve file metadata.',\n context: 'Called to inspect file details.',\n },\n io: {\n input: GetFileInput,\n output: FileModel,\n errors: {\n FILE_NOT_FOUND: {\n description: 'File does not exist',\n http: 404,\n gqlCode: 'FILE_NOT_FOUND',\n when: 'File ID is invalid',\n },\n },\n },\n policy: {\n auth: 'user',\n },\n});\n\n/**\n * List files.\n */\nexport const ListFilesContract = defineQuery({\n meta: {\n name: 'file.list',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['files', 'list'],\n description: 'List files with filtering.',\n goal: 'Browse uploaded files.',\n context: 'Called to browse file library.',\n },\n io: {\n input: ListFilesInput,\n output: ListFilesOutput,\n },\n policy: {\n auth: 'user',\n },\n});\n\n/**\n * Get download URL.\n */\nexport const GetDownloadUrlContract = defineQuery({\n meta: {\n name: 'file.downloadUrl',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['files', 'download'],\n description: 'Get a presigned download URL.',\n goal: 'Generate a temporary URL for downloading.',\n context: 'Called when user wants to download a file.',\n },\n io: {\n input: GetDownloadUrlInput,\n output: PresignedUrlModel,\n errors: {\n FILE_NOT_FOUND: {\n description: 'File does not exist',\n http: 404,\n gqlCode: 'FILE_NOT_FOUND',\n when: 'File ID is invalid',\n },\n },\n },\n policy: {\n auth: 'user',\n },\n});\n\n/**\n * Create a file version.\n */\nexport const CreateVersionContract = defineCommand({\n meta: {\n name: 'file.version.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['files', 'version', 'create'],\n description: 'Create a new version of a file.',\n goal: 'Upload a new version while preserving history.',\n context: 'Called when updating a document.',\n },\n io: {\n input: CreateVersionInput,\n output: FileVersionModel,\n errors: {\n FILE_NOT_FOUND: {\n description: 'File does not exist',\n http: 404,\n gqlCode: 'FILE_NOT_FOUND',\n when: 'File ID is invalid',\n },\n },\n },\n policy: {\n auth: 'user',\n },\n});\n\n/**\n * Get file versions.\n */\nexport const GetVersionsContract = defineQuery({\n meta: {\n name: 'file.version.list',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['files', 'version', 'list'],\n description: 'Get file version history.',\n goal: 'View all versions of a file.',\n context: 'Called to browse file history.',\n },\n io: {\n input: GetVersionsInput,\n output: GetVersionsOutput,\n errors: {\n FILE_NOT_FOUND: {\n description: 'File does not exist',\n http: 404,\n gqlCode: 'FILE_NOT_FOUND',\n when: 'File ID is invalid',\n },\n },\n },\n policy: {\n auth: 'user',\n },\n});\n\n/**\n * Attach a file to an entity.\n */\nexport const AttachFileContract = defineCommand({\n meta: {\n name: 'attachment.attach',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['files', 'attachment', 'attach'],\n description: 'Attach a file to an entity.',\n goal: 'Link a file to a business entity.',\n context: 'Called when associating files with entities.',\n },\n io: {\n input: AttachFileInput,\n output: AttachmentModel,\n errors: {\n FILE_NOT_FOUND: {\n description: 'File does not exist',\n http: 404,\n gqlCode: 'FILE_NOT_FOUND',\n when: 'File ID is invalid',\n },\n ATTACHMENT_EXISTS: {\n description: 'Attachment already exists',\n http: 409,\n gqlCode: 'ATTACHMENT_EXISTS',\n when: 'File is already attached to this entity',\n },\n },\n },\n policy: {\n auth: 'user',\n },\n});\n\n/**\n * Detach a file from an entity.\n */\nexport const DetachFileContract = defineCommand({\n meta: {\n name: 'attachment.detach',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['files', 'attachment', 'detach'],\n description: 'Detach a file from an entity.',\n goal: 'Remove a file association.',\n context: 'Called when removing file from entity.',\n },\n io: {\n input: DetachFileInput,\n output: SuccessOutput,\n errors: {\n ATTACHMENT_NOT_FOUND: {\n description: 'Attachment does not exist',\n http: 404,\n gqlCode: 'ATTACHMENT_NOT_FOUND',\n when: 'Attachment ID is invalid',\n },\n },\n },\n policy: {\n auth: 'user',\n },\n});\n\n/**\n * List attachments for an entity.\n */\nexport const ListAttachmentsContract = defineQuery({\n meta: {\n name: 'attachment.list',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['files', 'attachment', 'list'],\n description: 'List attachments for an entity.',\n goal: 'Get all files attached to an entity.',\n context: 'Called to display attached files.',\n },\n io: {\n input: ListAttachmentsInput,\n output: ListAttachmentsOutput,\n },\n policy: {\n auth: 'user',\n },\n});\n\n/**\n * Create a presigned upload URL.\n */\nexport const CreatePresignedUrlContract = defineCommand({\n meta: {\n name: 'file.presignedUrl.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['files', 'presigned', 'upload'],\n description: 'Create a presigned URL for direct upload.',\n goal: 'Enable direct-to-storage uploads.',\n context: 'Called for large file uploads.',\n },\n io: {\n input: CreatePresignedUrlInput,\n output: PresignedUrlModel,\n errors: {\n FILE_TOO_LARGE: {\n description: 'File exceeds size limit',\n http: 413,\n gqlCode: 'FILE_TOO_LARGE',\n when: 'Requested file size exceeds limit',\n },\n INVALID_MIME_TYPE: {\n description: 'MIME type not allowed',\n http: 415,\n gqlCode: 'INVALID_MIME_TYPE',\n when: 'File type is not in allowed list',\n },\n },\n },\n policy: {\n auth: 'user',\n },\n});\n"],"mappings":";;;;;AAGA,MAAM,SAAS,CAAC,iBAAiB;AAIjC,MAAa,YAAYA,GAAkB;CACzC,MAAM;CACN,aAAa;CACb,QAAQ;EACN,IAAI;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,MAAM;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACnE,UAAU;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,MAAM;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAO;EAChE,iBAAiB;GACf,MAAMA,GAAe,iBAAiB;GACtC,YAAY;GACb;EACD,aAAa;GAAE,MAAMA,GAA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AS;GAAc;GAAS;EACvC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACR,QAAQ,EACN,sBAAsB;GACpB,aAAa;GACb,MAAM;GACN,SAAS;GACT,MAAM;GACP,EACF;EACF;CACD,QAAQ,EACN,MAAM,QACP;CACF,CAAC;;;;AAKF,MAAa,0BAA0B,YAAY;CACjD,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAS;GAAc;GAAO;EACrC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EACN,MAAM,QACP;CACF,CAAC;;;;AAKF,MAAa,6BAA6B,cAAc;CACtD,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAS;GAAa;GAAS;EACtC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACR,QAAQ;GACN,gBAAgB;IACd,aAAa;IACb,MAAM;IACN,SAAS;IACT,MAAM;IACP;GACD,mBAAmB;IACjB,aAAa;IACb,MAAM;IACN,SAAS;IACT,MAAM;IACP;GACF;EACF;CACD,QAAQ,EACN,MAAM,QACP;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.docblock.js","names":[],"sources":["../../src/docs/files.docblock.ts"],"sourcesContent":["import type { DocBlock } from '@lssm/lib.contracts/docs';\nimport { registerDocBlocks } from '@lssm/lib.contracts/docs';\n\nconst filesDocBlocks: DocBlock[] = [\n {\n id: 'docs.files.attachments',\n title: 'Files, Versions & Attachments',\n summary:\n 'Spec-first file management with storage adapters, versioning, presigned URLs, and polymorphic attachments for any entity.',\n kind: 'reference',\n visibility: 'public',\n route: '/docs/files/attachments',\n tags: ['files', 'attachments', 'storage', 'versions'],\n body: `## Capabilities\n\n- **Entities**: File, FileVersion, Attachment, UploadSession with retention, checksum, ACLs.\n- **Contracts**: upload/update/delete/list/get files; presigned upload/download; version create/list; attach/detach/list attachments.\n- **Storage**: pluggable adapters (Local, S3 placeholder + interface), in-memory for tests.\n- **Events**: file.uploaded/deleted, attachment.added/removed (see events export).\n\n## Usage\n\n1) Compose schema\n- Include \\`filesSchemaContribution\\` in your schema composition.\n\n2) Register contracts/events\n- Import contracts and events from \\`@lssm/lib.files\\` in your spec registry.\n\n3) Wire storage\n- Provide a \\`StorageAdapter\\` implementation (local/in-memory or S3 via custom impl).\n- Use \\`createStorageAdapter\\` with config to instantiate.\n\n4) Attach to domain entities\n- Use \\`attachment.attach\\` with \\`entityType/entityId\\` to link files to deals, orders, runs, etc.\n\n## Example\n\n${'```'}ts\nimport {\n UploadFileContract,\n AttachFileContract,\n InMemoryStorageAdapter,\n} from '@lssm/lib.files';\n\n// storage\nconst storage = new InMemoryStorageAdapter();\n\n// upload\nconst file = await storage.upload({\n path: 'org-1/reports/r1.pdf',\n content: Buffer.from(pdfBytes),\n mimeType: 'application/pdf',\n});\n\n// attach\nawait AttachFileContract; // register in spec to enable attach flows\n${'```'},\n\n## Guardrails\n\n- Enforce size/MIME limits in your handlers; avoid storing PII in paths.\n- Keep \\`orgId\\` scoped for multi-tenant isolation; prefer presigned URLs for public delivery.\n- Persist checksums for integrity; emit audit + events for access/retention changes.\n`,\n },\n];\n\nregisterDocBlocks(filesDocBlocks);\n"],"mappings":";;;;AAmEA,kBAhEmC,CACjC;CACE,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM;EAAC;EAAS;EAAe;EAAW;EAAW;CACrD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDP,CACF,CAEgC"}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,168 +1,169 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema404 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_schema404.EntityEnumDef;
|
|
9
9
|
/**
|
|
10
10
|
* File status enum.
|
|
11
11
|
*/
|
|
12
|
-
declare const FileStatusEnum:
|
|
12
|
+
declare const FileStatusEnum: _lssm_lib_schema404.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_schema404.EntitySpec<{
|
|
17
|
+
id: _lssm_lib_schema404.EntityScalarField;
|
|
18
|
+
name: _lssm_lib_schema404.EntityScalarField;
|
|
19
|
+
mimeType: _lssm_lib_schema404.EntityScalarField;
|
|
20
|
+
size: _lssm_lib_schema404.EntityScalarField;
|
|
21
|
+
storageProvider: _lssm_lib_schema404.EntityEnumField;
|
|
22
|
+
storagePath: _lssm_lib_schema404.EntityScalarField;
|
|
23
|
+
storageKey: _lssm_lib_schema404.EntityScalarField;
|
|
24
|
+
checksum: _lssm_lib_schema404.EntityScalarField;
|
|
25
|
+
etag: _lssm_lib_schema404.EntityScalarField;
|
|
26
|
+
status: _lssm_lib_schema404.EntityEnumField;
|
|
27
|
+
isPublic: _lssm_lib_schema404.EntityScalarField;
|
|
28
|
+
expiresAt: _lssm_lib_schema404.EntityScalarField;
|
|
29
|
+
ownerId: _lssm_lib_schema404.EntityScalarField;
|
|
30
|
+
orgId: _lssm_lib_schema404.EntityScalarField;
|
|
31
|
+
metadata: _lssm_lib_schema404.EntityScalarField;
|
|
32
|
+
tags: _lssm_lib_schema404.EntityScalarField;
|
|
33
|
+
width: _lssm_lib_schema404.EntityScalarField;
|
|
34
|
+
height: _lssm_lib_schema404.EntityScalarField;
|
|
35
|
+
createdAt: _lssm_lib_schema404.EntityScalarField;
|
|
36
|
+
updatedAt: _lssm_lib_schema404.EntityScalarField;
|
|
37
|
+
versions: _lssm_lib_schema404.EntityRelationField;
|
|
38
|
+
attachments: _lssm_lib_schema404.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_schema404.EntitySpec<{
|
|
44
|
+
id: _lssm_lib_schema404.EntityScalarField;
|
|
45
|
+
fileId: _lssm_lib_schema404.EntityScalarField;
|
|
46
|
+
version: _lssm_lib_schema404.EntityScalarField;
|
|
47
|
+
size: _lssm_lib_schema404.EntityScalarField;
|
|
48
|
+
storagePath: _lssm_lib_schema404.EntityScalarField;
|
|
49
|
+
checksum: _lssm_lib_schema404.EntityScalarField;
|
|
50
|
+
comment: _lssm_lib_schema404.EntityScalarField;
|
|
51
|
+
changes: _lssm_lib_schema404.EntityScalarField;
|
|
52
|
+
createdBy: _lssm_lib_schema404.EntityScalarField;
|
|
53
|
+
createdAt: _lssm_lib_schema404.EntityScalarField;
|
|
54
|
+
file: _lssm_lib_schema404.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_schema404.EntitySpec<{
|
|
60
|
+
id: _lssm_lib_schema404.EntityScalarField;
|
|
61
|
+
fileId: _lssm_lib_schema404.EntityScalarField;
|
|
62
|
+
entityType: _lssm_lib_schema404.EntityScalarField;
|
|
63
|
+
entityId: _lssm_lib_schema404.EntityScalarField;
|
|
64
|
+
attachmentType: _lssm_lib_schema404.EntityScalarField;
|
|
65
|
+
name: _lssm_lib_schema404.EntityScalarField;
|
|
66
|
+
description: _lssm_lib_schema404.EntityScalarField;
|
|
67
|
+
order: _lssm_lib_schema404.EntityScalarField;
|
|
68
|
+
metadata: _lssm_lib_schema404.EntityScalarField;
|
|
69
|
+
createdBy: _lssm_lib_schema404.EntityScalarField;
|
|
70
|
+
createdAt: _lssm_lib_schema404.EntityScalarField;
|
|
71
|
+
updatedAt: _lssm_lib_schema404.EntityScalarField;
|
|
72
|
+
file: _lssm_lib_schema404.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_schema404.EntitySpec<{
|
|
78
|
+
id: _lssm_lib_schema404.EntityScalarField;
|
|
79
|
+
fileName: _lssm_lib_schema404.EntityScalarField;
|
|
80
|
+
mimeType: _lssm_lib_schema404.EntityScalarField;
|
|
81
|
+
totalSize: _lssm_lib_schema404.EntityScalarField;
|
|
82
|
+
uploadId: _lssm_lib_schema404.EntityScalarField;
|
|
83
|
+
uploadedBytes: _lssm_lib_schema404.EntityScalarField;
|
|
84
|
+
uploadedParts: _lssm_lib_schema404.EntityScalarField;
|
|
85
|
+
status: _lssm_lib_schema404.EntityScalarField;
|
|
86
|
+
error: _lssm_lib_schema404.EntityScalarField;
|
|
87
|
+
fileId: _lssm_lib_schema404.EntityScalarField;
|
|
88
|
+
ownerId: _lssm_lib_schema404.EntityScalarField;
|
|
89
|
+
orgId: _lssm_lib_schema404.EntityScalarField;
|
|
90
|
+
expiresAt: _lssm_lib_schema404.EntityScalarField;
|
|
91
|
+
createdAt: _lssm_lib_schema404.EntityScalarField;
|
|
92
|
+
updatedAt: _lssm_lib_schema404.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_schema404.EntitySpec<{
|
|
98
|
+
id: _lssm_lib_schema404.EntityScalarField;
|
|
99
|
+
name: _lssm_lib_schema404.EntityScalarField;
|
|
100
|
+
mimeType: _lssm_lib_schema404.EntityScalarField;
|
|
101
|
+
size: _lssm_lib_schema404.EntityScalarField;
|
|
102
|
+
storageProvider: _lssm_lib_schema404.EntityEnumField;
|
|
103
|
+
storagePath: _lssm_lib_schema404.EntityScalarField;
|
|
104
|
+
storageKey: _lssm_lib_schema404.EntityScalarField;
|
|
105
|
+
checksum: _lssm_lib_schema404.EntityScalarField;
|
|
106
|
+
etag: _lssm_lib_schema404.EntityScalarField;
|
|
107
|
+
status: _lssm_lib_schema404.EntityEnumField;
|
|
108
|
+
isPublic: _lssm_lib_schema404.EntityScalarField;
|
|
109
|
+
expiresAt: _lssm_lib_schema404.EntityScalarField;
|
|
110
|
+
ownerId: _lssm_lib_schema404.EntityScalarField;
|
|
111
|
+
orgId: _lssm_lib_schema404.EntityScalarField;
|
|
112
|
+
metadata: _lssm_lib_schema404.EntityScalarField;
|
|
113
|
+
tags: _lssm_lib_schema404.EntityScalarField;
|
|
114
|
+
width: _lssm_lib_schema404.EntityScalarField;
|
|
115
|
+
height: _lssm_lib_schema404.EntityScalarField;
|
|
116
|
+
createdAt: _lssm_lib_schema404.EntityScalarField;
|
|
117
|
+
updatedAt: _lssm_lib_schema404.EntityScalarField;
|
|
118
|
+
versions: _lssm_lib_schema404.EntityRelationField;
|
|
119
|
+
attachments: _lssm_lib_schema404.EntityRelationField;
|
|
120
|
+
}> | _lssm_lib_schema404.EntitySpec<{
|
|
121
|
+
id: _lssm_lib_schema404.EntityScalarField;
|
|
122
|
+
fileId: _lssm_lib_schema404.EntityScalarField;
|
|
123
|
+
version: _lssm_lib_schema404.EntityScalarField;
|
|
124
|
+
size: _lssm_lib_schema404.EntityScalarField;
|
|
125
|
+
storagePath: _lssm_lib_schema404.EntityScalarField;
|
|
126
|
+
checksum: _lssm_lib_schema404.EntityScalarField;
|
|
127
|
+
comment: _lssm_lib_schema404.EntityScalarField;
|
|
128
|
+
changes: _lssm_lib_schema404.EntityScalarField;
|
|
129
|
+
createdBy: _lssm_lib_schema404.EntityScalarField;
|
|
130
|
+
createdAt: _lssm_lib_schema404.EntityScalarField;
|
|
131
|
+
file: _lssm_lib_schema404.EntityRelationField;
|
|
132
|
+
}> | _lssm_lib_schema404.EntitySpec<{
|
|
133
|
+
id: _lssm_lib_schema404.EntityScalarField;
|
|
134
|
+
fileId: _lssm_lib_schema404.EntityScalarField;
|
|
135
|
+
entityType: _lssm_lib_schema404.EntityScalarField;
|
|
136
|
+
entityId: _lssm_lib_schema404.EntityScalarField;
|
|
137
|
+
attachmentType: _lssm_lib_schema404.EntityScalarField;
|
|
138
|
+
name: _lssm_lib_schema404.EntityScalarField;
|
|
139
|
+
description: _lssm_lib_schema404.EntityScalarField;
|
|
140
|
+
order: _lssm_lib_schema404.EntityScalarField;
|
|
141
|
+
metadata: _lssm_lib_schema404.EntityScalarField;
|
|
142
|
+
createdBy: _lssm_lib_schema404.EntityScalarField;
|
|
143
|
+
createdAt: _lssm_lib_schema404.EntityScalarField;
|
|
144
|
+
updatedAt: _lssm_lib_schema404.EntityScalarField;
|
|
145
|
+
file: _lssm_lib_schema404.EntityRelationField;
|
|
146
|
+
}> | _lssm_lib_schema404.EntitySpec<{
|
|
147
|
+
id: _lssm_lib_schema404.EntityScalarField;
|
|
148
|
+
fileName: _lssm_lib_schema404.EntityScalarField;
|
|
149
|
+
mimeType: _lssm_lib_schema404.EntityScalarField;
|
|
150
|
+
totalSize: _lssm_lib_schema404.EntityScalarField;
|
|
151
|
+
uploadId: _lssm_lib_schema404.EntityScalarField;
|
|
152
|
+
uploadedBytes: _lssm_lib_schema404.EntityScalarField;
|
|
153
|
+
uploadedParts: _lssm_lib_schema404.EntityScalarField;
|
|
154
|
+
status: _lssm_lib_schema404.EntityScalarField;
|
|
155
|
+
error: _lssm_lib_schema404.EntityScalarField;
|
|
156
|
+
fileId: _lssm_lib_schema404.EntityScalarField;
|
|
157
|
+
ownerId: _lssm_lib_schema404.EntityScalarField;
|
|
158
|
+
orgId: _lssm_lib_schema404.EntityScalarField;
|
|
159
|
+
expiresAt: _lssm_lib_schema404.EntityScalarField;
|
|
160
|
+
createdAt: _lssm_lib_schema404.EntityScalarField;
|
|
161
|
+
updatedAt: _lssm_lib_schema404.EntityScalarField;
|
|
162
162
|
}>)[];
|
|
163
163
|
/**
|
|
164
164
|
* Module schema contribution for files.
|
|
165
165
|
*/
|
|
166
166
|
declare const filesSchemaContribution: ModuleSchemaContribution;
|
|
167
167
|
//#endregion
|
|
168
|
-
export { AttachmentEntity, FileEntity, FileStatusEnum, FileVersionEntity, StorageProviderEnum, UploadSessionEntity, fileEntities, filesSchemaContribution };
|
|
168
|
+
export { AttachmentEntity, FileEntity, FileStatusEnum, FileVersionEntity, StorageProviderEnum, UploadSessionEntity, fileEntities, filesSchemaContribution };
|
|
169
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/entities/index.ts"],"sourcesContent":[],"mappings":";;;;;;;AAMa,cAAA,mBAKX,EAAA,mBAAA,CAL8B,aAK9B;AAKF;AAiBA;;cAjBa,gBAYX,mBAAA,CAZyB;;;;cAiBd,gCAAU;MA0FrB,mBAAA,CAAA;;;;;;;;;;;;;;;;8CA1FqB;EAAA,MAAA,uCAAA;EA+FV,SAAA,uCAwCX;EAAA,SAAA,uCAAA;;;;;;;cAxCW,uCAAiB;MAwC5B,mBAAA,CAAA;;;6CAxC4B;EAAA,WAAA,uCAAA;EA6CjB,QAAA,uCAwDX;EAAA,OAAA,uCAAA;;;;;;;;;cAxDW,sCAAgB;MAwD3B,mBAAA,CAAA;;;iDAxD2B;EAAA,cAAA,uCAAA;EA6DhB,IAAA,uCA0DX;EAAA,WAAA,uCAAA;;;;;;;;;;;cA1DW,yCAAmB;MA0D9B,mBAAA,CAAA;;;kDA1D8B;EAAA,QAAA,uCAAA;EA+DnB,aAAA,uCAKZ;EAAA,aAAA,uCAAA;;;;;;;;;;;;;cALY,mCAAY;MAKxB,mBAAA,CAAA;;;;;;;;6CALwB;EAAA,MAAA,qCAAA;;;;;;;;;;;;;;MAAA,mBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUZ,SAAA,uCAAyB;;;;;;;;;;;;;;;;cAAzB,yBAAyB"}
|