-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypings.d.ts
88 lines (83 loc) · 3.25 KB
/
typings.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
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
/* eslint-disable */
import {
CollectionCustomizer,
TAggregation,
TConditionTree,
TPaginatedFilter,
TPartialRow,
TSortClause
} from '@forestadmin/agent';
export type UsersCustomizer = CollectionCustomizer<Schema, 'users'>;
export type UsersRecord = TPartialRow<Schema, 'users'>;
export type UsersConditionTree = TConditionTree<Schema, 'users'>;
export type UsersFilter = TPaginatedFilter<Schema, 'users'>;
export type UsersSortClause = TSortClause<Schema, 'users'>;
export type UsersAggregation = TAggregation<Schema, 'users'>;
export type CompaniesCustomizer = CollectionCustomizer<Schema, 'companies'>;
export type CompaniesRecord = TPartialRow<Schema, 'companies'>;
export type CompaniesConditionTree = TConditionTree<Schema, 'companies'>;
export type CompaniesFilter = TPaginatedFilter<Schema, 'companies'>;
export type CompaniesSortClause = TSortClause<Schema, 'companies'>;
export type CompaniesAggregation = TAggregation<Schema, 'companies'>;
export type CountriesWithExtensionCustomizer = CollectionCustomizer<Schema, 'countries_with_extension'>;
export type CountriesWithExtensionRecord = TPartialRow<Schema, 'countries_with_extension'>;
export type CountriesWithExtensionConditionTree = TConditionTree<Schema, 'countries_with_extension'>;
export type CountriesWithExtensionFilter = TPaginatedFilter<Schema, 'countries_with_extension'>;
export type CountriesWithExtensionSortClause = TSortClause<Schema, 'countries_with_extension'>;
export type CountriesWithExtensionAggregation = TAggregation<Schema, 'countries_with_extension'>;
export type Schema = {
'companies': {
plain: {
'headquarter': string | null;
'iban': string | null;
'id': number;
'name': string;
'status': 'approved' | 'created' | 'rejected' | 'require_further_verification' | 'waiting_for_legal_doc' | null;
'url': string | null;
'urlExtension': string | null;
'user_id': number | null;
};
nested: {
'owner': Schema['users']['plain'] & Schema['users']['nested'];
'potentialCountry': Schema['countries_with_extension']['plain'] & Schema['countries_with_extension']['nested'];
};
flat: {
'owner:address': string | null;
'owner:email': string;
'owner:firstname': string | null;
'owner:iban': string | null;
'owner:id': number;
'owner:is_blacklisted': boolean | null;
'owner:lastname': string | null;
'owner:phone_number': string | null;
'owner:signup_date': string | null;
'owner:status': 'approved' | 'rejected' | 'require_further_verification' | 'signed_up' | 'waiting_for_legal_doc' | null;
'potentialCountry:country': string;
'potentialCountry:id': string;
};
};
'countries_with_extension': {
plain: {
'country': string;
'id': string;
};
nested: {};
flat: {};
};
'users': {
plain: {
'address': string | null;
'email': string;
'firstname': string | null;
'iban': string | null;
'id': number;
'is_blacklisted': boolean | null;
'lastname': string | null;
'phone_number': string | null;
'signup_date': string | null;
'status': 'approved' | 'rejected' | 'require_further_verification' | 'signed_up' | 'waiting_for_legal_doc' | null;
};
nested: {};
flat: {};
};
};