-
Notifications
You must be signed in to change notification settings - Fork 9
/
furnidata.d.ts
51 lines (47 loc) · 1.07 KB
/
furnidata.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { Hotel } from "./hotel";
export type FurniData = {
roomitemtypes: {
furnitype: FloorItemData[]
},
wallitemtypes: {
furnitype: WallItemData[]
},
getFloorItemByTypeId(id: number): FloorItemData,
getWallItemByTypeId(id: number): WallItemData,
getFloorItemByClassName(classname: string): FloorItemData,
getWallItemByClassName(classname: string): WallItemData
};
export namespace FurniDataUtils {
export function fetch(hotel: Hotel): Promise<FurniData>;
}
export type WallItemData = {
id: number;
classname: string;
revision: number;
category: string;
name: string;
description: string;
adurl: string;
specialtype: number;
furniline: string;
environment: string;
rare: boolean;
offerid: number;
buyout: boolean;
rentofferid: number;
rentbuyout: boolean;
bc: boolean;
excludeddynamic: boolean;
}
export type FloorItemData = WallItemData & {
defaultdir: number;
xdim: number;
ydim: number;
partcolors: {
color: string[];
};
customparams: string;
canstandon: boolean;
cansiton: boolean;
canlayon: boolean;
}