-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypings.ts
156 lines (150 loc) · 4.91 KB
/
typings.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
/* eslint-disable */
import {
CollectionCustomizer,
TAggregation,
TConditionTree,
TPaginatedFilter,
TPartialRow,
TSortClause
} from '@forestadmin/agent';
export type ContractCustomizer = CollectionCustomizer<Schema, 'contract'>;
export type ContractRecord = TPartialRow<Schema, 'contract'>;
export type ContractConditionTree = TConditionTree<Schema, 'contract'>;
export type ContractFilter = TPaginatedFilter<Schema, 'contract'>;
export type ContractSortClause = TSortClause<Schema, 'contract'>;
export type ContractAggregation = TAggregation<Schema, 'contract'>;
export type CustomerCustomizer = CollectionCustomizer<Schema, 'customer'>;
export type CustomerRecord = TPartialRow<Schema, 'customer'>;
export type CustomerConditionTree = TConditionTree<Schema, 'customer'>;
export type CustomerFilter = TPaginatedFilter<Schema, 'customer'>;
export type CustomerSortClause = TSortClause<Schema, 'customer'>;
export type CustomerAggregation = TAggregation<Schema, 'customer'>;
export type DealCustomizer = CollectionCustomizer<Schema, 'deal'>;
export type DealRecord = TPartialRow<Schema, 'deal'>;
export type DealConditionTree = TConditionTree<Schema, 'deal'>;
export type DealFilter = TPaginatedFilter<Schema, 'deal'>;
export type DealSortClause = TSortClause<Schema, 'deal'>;
export type DealAggregation = TAggregation<Schema, 'deal'>;
export type HousingCustomizer = CollectionCustomizer<Schema, 'housing'>;
export type HousingRecord = TPartialRow<Schema, 'housing'>;
export type HousingConditionTree = TConditionTree<Schema, 'housing'>;
export type HousingFilter = TPaginatedFilter<Schema, 'housing'>;
export type HousingSortClause = TSortClause<Schema, 'housing'>;
export type HousingAggregation = TAggregation<Schema, 'housing'>;
export type Schema = {
'contract': {
plain: {
'id': number;
'deal_id': number;
'commission_rate': number;
'start_at': string;
'end_at': string;
'created_at': string;
'updated_at': string;
'displayName': string;
};
nested: {
'deal': Schema['deal']['plain'] & Schema['deal']['nested'];
};
flat: {
'deal:id': number;
'deal:owner': string;
'deal:customer_id': number;
'deal:housing_id': number;
'deal:stage': string;
'deal:closed_at': string;
'deal:created_at': string;
'deal:updated_at': string;
'deal:customer:id': number;
'deal:customer:first_name': string;
'deal:customer:last_name': string;
'deal:customer:email': string;
'deal:customer:phone': string;
'deal:customer:customer_type': 'lead' | 'customer' | 'ex-customer';
'deal:customer:created_at': string;
'deal:customer:updated_at': string;
'deal:housing:id': number;
'deal:housing:picture': string;
'deal:housing:address': string;
'deal:housing:zip': string;
'deal:housing:city': string;
'deal:housing:area': number;
'deal:housing:num_rooms': number;
'deal:housing:monthly_rent': number;
'deal:housing:description': string;
'deal:housing:created_at': string;
'deal:housing:updated_at': string;
'deal:housing:displayName': string;
};
};
'customer': {
plain: {
'id': number;
'first_name': string;
'last_name': string;
'email': string;
'phone': string;
'customer_type': 'lead' | 'customer' | 'ex-customer';
'created_at': string;
'updated_at': string;
};
nested: {};
flat: {};
};
'deal': {
plain: {
'id': number;
'owner': string;
'customer_id': number;
'housing_id': number;
'stage': string;
'closed_at': string;
'created_at': string;
'updated_at': string;
};
nested: {
'customer': Schema['customer']['plain'] & Schema['customer']['nested'];
'housing': Schema['housing']['plain'] & Schema['housing']['nested'];
};
flat: {
'customer:id': number;
'customer:first_name': string;
'customer:last_name': string;
'customer:email': string;
'customer:phone': string;
'customer:customer_type': 'lead' | 'customer' | 'ex-customer';
'customer:created_at': string;
'customer:updated_at': string;
'housing:id': number;
'housing:picture': string;
'housing:address': string;
'housing:zip': string;
'housing:city': string;
'housing:area': number;
'housing:num_rooms': number;
'housing:monthly_rent': number;
'housing:description': string;
'housing:created_at': string;
'housing:updated_at': string;
'housing:displayName': string;
};
};
'housing': {
plain: {
'id': number;
'picture': string;
'address': string;
'zip': string;
'city': string;
'area': number;
'num_rooms': number;
'monthly_rent': number;
'description': string;
'created_at': string;
'updated_at': string;
'displayName': string;
};
nested: {};
flat: {};
};
};