mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 08:33:11 +00:00
refactor: refactor SCThingTypes from union-type to enum. SCThingType-type-attributes are now string-type-attributes.
This commit is contained in:
@@ -13,12 +13,7 @@
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {SCThingInPlace} from '../base/ThingInPlace';
|
||||
import {SCThing, SCThingMeta} from '../Thing';
|
||||
|
||||
/**
|
||||
* Type of an organization
|
||||
*/
|
||||
export type SCOrganizationType = 'organization';
|
||||
import {SCThing, SCThingMeta, SCThingType} from '../Thing';
|
||||
|
||||
/**
|
||||
* An organization without references
|
||||
@@ -27,7 +22,7 @@ export interface SCOrganizationWithoutReferences extends SCThing {
|
||||
/**
|
||||
* Type of an organization
|
||||
*/
|
||||
type: SCOrganizationType;
|
||||
type: SCThingType.Organization;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -37,7 +32,7 @@ export interface SCOrganization extends SCOrganizationWithoutReferences, SCThing
|
||||
/**
|
||||
* Type of an organization
|
||||
*/
|
||||
type: SCOrganizationType;
|
||||
type: SCThingType.Organization;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user