Skip to main content

IResourceGroup

Hierarchy

Index

Properties

files

files: string[]

The id of the files included in this group.

This is a bi-directional field, developers should maintain this field and the files field of the resource group. Or the resource querying may not working correctly, Recative Studio did this automatically but if you are writing resource definition manually, please be careful.

readonlyid

id: string

The unique ID of this resource file, for most of the case, the value is randomly generated by Nano ID while importing the resource. Some extension may use meaningful value. However, this is a very special case, except developers have a specific purpose, this value should always be a random ID to prevent any kind of conflict.

readonlyimportTime

importTime: number

The time of the file is imported.

label

label: string

Human readable label to identity the resource file, this field is manually filled by developers, developers should avoid name conflict, at lease for each episode or resource group.

Please notice if there is a resource group and a resource file with the same label, Recative System selects resource groups over resource files in preference.

removed

removed: boolean

If the file is soft removed, Recative System do not remove files even if developers removed the file in the Recative Studio since the resource is possible to be published in production, remove the record of these resource is not safe.

removedTime

removedTime: number

The time of the file is removed.

optionalresourceGroupId

resourceGroupId?: never

For resource group, there should never have a resource group field, this typing if written for prevent writing this field.

tags

tags: GroupType[]

The type of this resource, this is mainly for Recative Studio to filter different resource in the Resource view, not used in other places.

readonlythumbnailSrc

thumbnailSrc: string

The URL of the thumbnail image, this field is only used in the Recative Studio, would not be uploaded to the CDN, and would not be used by any part of the Recative System.

readonlytype

type: group

The type of this resource, for a resource group, the value should be group.