mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-29 13:05:08 +02:00
UBERF-6161: Storage configuration (#5109)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -21,6 +21,12 @@ export default mergeIds(coreId, core, {
|
||||
Archived: '' as IntlString,
|
||||
ClassLabel: '' as IntlString,
|
||||
ClassPropertyLabel: '' as IntlString,
|
||||
Members: '' as IntlString
|
||||
Members: '' as IntlString,
|
||||
Blob: '' as IntlString,
|
||||
BlobContentType: '' as IntlString,
|
||||
BlobEtag: '' as IntlString,
|
||||
BlobVersion: '' as IntlString,
|
||||
BlobStorageId: '' as IntlString,
|
||||
BlobSize: '' as IntlString
|
||||
}
|
||||
})
|
||||
|
||||
@@ -14,7 +14,9 @@
|
||||
//
|
||||
|
||||
import {
|
||||
type Blob,
|
||||
DOMAIN_BLOB,
|
||||
DOMAIN_BLOB_DATA,
|
||||
DOMAIN_CONFIGURATION,
|
||||
DOMAIN_DOC_INDEX_STATE,
|
||||
DOMAIN_FULLTEXT_BLOB,
|
||||
@@ -63,6 +65,7 @@ import {
|
||||
ReadOnly,
|
||||
TypeBoolean,
|
||||
TypeIntlString,
|
||||
TypeNumber,
|
||||
TypeRecord,
|
||||
TypeRef,
|
||||
TypeString,
|
||||
@@ -129,6 +132,34 @@ export class TAttachedDoc extends TDoc implements AttachedDoc {
|
||||
collection!: string
|
||||
}
|
||||
|
||||
@Model(core.class.Blob, core.class.Doc, DOMAIN_BLOB_DATA)
|
||||
@UX(core.string.Object)
|
||||
export class TBlob extends TDoc implements Blob {
|
||||
@Prop(TypeString(), core.string.Blob)
|
||||
@ReadOnly()
|
||||
provider!: string
|
||||
|
||||
@Prop(TypeString(), core.string.BlobContentType)
|
||||
@ReadOnly()
|
||||
contentType!: string
|
||||
|
||||
@Prop(TypeString(), core.string.BlobStorageId)
|
||||
@ReadOnly()
|
||||
storageId!: string
|
||||
|
||||
@Prop(TypeString(), core.string.BlobEtag)
|
||||
@ReadOnly()
|
||||
etag!: string
|
||||
|
||||
@Prop(TypeString(), core.string.BlobVersion)
|
||||
@ReadOnly()
|
||||
version!: string
|
||||
|
||||
@Prop(TypeNumber(), core.string.BlobSize)
|
||||
@ReadOnly()
|
||||
size!: number
|
||||
}
|
||||
|
||||
@UX(core.string.ClassLabel)
|
||||
@Model(core.class.Class, core.class.Doc, DOMAIN_MODEL)
|
||||
export class TClass extends TDoc implements Class<Obj> {
|
||||
|
||||
@@ -29,6 +29,7 @@ import {
|
||||
TArrOf,
|
||||
TAttachedDoc,
|
||||
TAttribute,
|
||||
TBlob,
|
||||
TBlobData,
|
||||
TClass,
|
||||
TCollection,
|
||||
@@ -151,7 +152,8 @@ export function createModel (builder: Builder): void {
|
||||
TIndexConfiguration,
|
||||
TStatus,
|
||||
TStatusCategory,
|
||||
TMigrationState
|
||||
TMigrationState,
|
||||
TBlob
|
||||
)
|
||||
|
||||
builder.createDoc(
|
||||
|
||||
Reference in New Issue
Block a user