@bit-ui-libs/common
Version:
This library was generated with [Nx](https://nx.dev).
66 lines (61 loc) • 1.32 kB
text/typescript
import { ChainTypeEnum } from './chain-type-enum';
export interface AssetTemplate {
id: string;
typeId: string | null;
// This property doesn't seem to be available
typeName?: string | null;
step: string | null;
name: string;
title: string;
fields: AssetTypePropDataModel[];
description: string | null;
status: string;
createdAt: string | null;
updatedAt: string | null;
activatedAt: string | null;
archivedAt: string | null;
hint: string;
}
export interface AssetTypePropDataModel {
propName: string;
propTypeId: number;
propType: {
id: number;
name: string;
friendlyName: string;
type: string;
hasOption: boolean;
multiValue: boolean;
};
label: string;
required: boolean;
order: number;
visible: boolean;
hint: string | null;
defaultValue: string | null;
options:
| {
optionId: string;
name: string;
visible: boolean;
order: number;
}[]
| null;
}
export interface AssetType {
id: string;
name: string;
description: string;
categoryId: string;
readyForUse: boolean;
imageUrl: string;
isActive: boolean;
steps: AssetTypeStep[];
vdtType: ChainTypeEnum;
}
export interface AssetTypeStep {
typeId: string | null;
step: string | null;
enabled: boolean;
order: number;
}