mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 00:52:55 +00:00
refactor: refactor SCThingTypes from union-type to enum. SCThingType-type-attributes are now string-type-attributes.
This commit is contained in:
@@ -13,14 +13,9 @@
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {SCThingInPlace} from '../base/ThingInPlace';
|
||||
import {SCThing, SCThingMeta} from '../Thing';
|
||||
import {SCThing, SCThingMeta, SCThingType} from '../Thing';
|
||||
import {SCISO8601Duration} from '../types/Time';
|
||||
|
||||
/**
|
||||
* Type of a ticket
|
||||
*/
|
||||
export type SCTicketType = 'ticket';
|
||||
|
||||
/**
|
||||
* A ticket without references
|
||||
*/
|
||||
@@ -43,7 +38,7 @@ export interface SCTicketWithoutReferences extends SCThing {
|
||||
/**
|
||||
* Type of a ticket
|
||||
*/
|
||||
type: SCTicketType;
|
||||
type: SCThingType.Ticket;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -53,7 +48,7 @@ export interface SCTicket extends SCTicketWithoutReferences, SCThingInPlace {
|
||||
/**
|
||||
* Type of a ticket
|
||||
*/
|
||||
type: SCTicketType;
|
||||
type: SCThingType.Ticket;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user