UBERF-6161: Storage configuration (#5109)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2024-04-02 14:05:16 +07:00
committed by GitHub
parent 5da63b70f4
commit 0803bb4ea2
50 changed files with 1254 additions and 713 deletions
+7 -1
View File
@@ -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
}
})
+31
View File
@@ -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> {
+3 -1
View File
@@ -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(