UNPKG

moysklad-api-model

Version:

Объектная модель API МойСклад для TypeScript проектов

17 lines (16 loc) 571 B
import type { Entity } from './Entity'; import type { MetaType } from './MetaType'; export type StateType = 'Regular' | 'Successful' | 'Unsuccessful'; /** * Состояние документа или сущности */ export interface State<T extends MetaType = MetaType> extends Entity<'state'> { /** Наименование */ name: string; /** Цвет статуса */ color: number; /** Тип статуса */ stateType: StateType; /** Сущность которой пренадлежит статус */ entityType: T; }