@reviza/api-client 1.0.0-SNAPSHOT-1c195465 → 1.0.0-SNAPSHOT-689473e0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App/Data/ActionLog/index.d.ts +25 -0
- package/dist/App/Data/ActionLog/index.js +1 -0
- package/dist/App/Data/Auth/index.d.ts +36 -0
- package/dist/App/Data/Auth/index.js +1 -0
- package/dist/App/Data/Category/index.d.ts +67 -0
- package/dist/App/Data/Category/index.js +1 -0
- package/dist/App/Data/Config/index.d.ts +36 -0
- package/dist/App/Data/Config/index.js +1 -0
- package/dist/App/Data/Demo/index.d.ts +20 -0
- package/dist/App/Data/Demo/index.js +1 -0
- package/dist/App/Data/Document/index.d.ts +22 -0
- package/dist/App/Data/Document/index.js +1 -0
- package/dist/App/Data/Facility/index.d.ts +108 -0
- package/dist/App/Data/Facility/index.js +1 -0
- package/dist/App/Data/FrontendRoute/index.d.ts +6 -0
- package/dist/App/Data/FrontendRoute/index.js +1 -0
- package/dist/App/Data/Map/index.d.ts +25 -0
- package/dist/App/Data/Map/index.js +1 -0
- package/dist/App/Data/Me/index.d.ts +29 -0
- package/dist/App/Data/Me/index.js +1 -0
- package/dist/App/Data/Notification/index.d.ts +32 -0
- package/dist/App/Data/Notification/index.js +1 -0
- package/dist/App/Data/Organization/index.d.ts +57 -0
- package/dist/App/Data/Organization/index.js +1 -0
- package/dist/App/Data/Permission/index.d.ts +32 -0
- package/dist/App/Data/Permission/index.js +1 -0
- package/dist/App/Data/Revision/index.d.ts +72 -0
- package/dist/App/Data/Revision/index.js +1 -0
- package/dist/App/Data/Search/index.d.ts +24 -0
- package/dist/App/Data/Search/index.js +1 -0
- package/dist/App/Data/Subscription/index.d.ts +25 -0
- package/dist/App/Data/Subscription/index.js +1 -0
- package/dist/App/Data/User/index.d.ts +31 -0
- package/dist/App/Data/User/index.js +1 -0
- package/dist/App/Data/index.d.ts +4 -0
- package/dist/App/Data/index.js +1 -0
- package/dist/App/Enum/Notifications/index.d.ts +11 -0
- package/dist/App/Enum/Notifications/index.js +13 -0
- package/dist/App/Enum/Permissions/index.d.ts +11 -0
- package/dist/App/Enum/Permissions/index.js +13 -0
- package/dist/App/Enum/index.d.ts +55 -0
- package/dist/App/Enum/index.js +62 -0
- package/dist/Illuminate/Http/index.d.ts +1 -0
- package/dist/Illuminate/Http/index.js +1 -0
- package/dist/Illuminate/index.d.ts +39 -0
- package/dist/Illuminate/index.js +1 -0
- package/dist/Spatie/LaravelData/Enums/index.d.ts +27 -0
- package/dist/Spatie/LaravelData/Enums/index.js +30 -0
- package/dist/Spatie/LaravelData/Support/Creation/index.d.ts +6 -0
- package/dist/Spatie/LaravelData/Support/Creation/index.js +7 -0
- package/dist/Spatie/LaravelData/Support/Partials/index.d.ts +6 -0
- package/dist/Spatie/LaravelData/Support/Partials/index.js +7 -0
- package/dist/Spatie/LaravelData/Support/Wrapping/index.d.ts +10 -0
- package/dist/Spatie/LaravelData/Support/Wrapping/index.js +12 -0
- package/dist/Spatie/LaravelData/index.d.ts +7 -0
- package/dist/Spatie/LaravelData/index.js +1 -0
- package/dist/Symfony/Component/HttpFoundation/index.d.ts +1 -0
- package/dist/Symfony/Component/HttpFoundation/index.js +1 -0
- package/dist/controllers/System/index.d.ts +253 -0
- package/dist/controllers/System/index.js +42 -0
- package/dist/controllers/index.d.ts +627 -0
- package/dist/controllers/index.js +382 -0
- package/dist/index.d.ts +184 -0
- package/dist/index.js +433 -0
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ActionEnum } from "../../Enum";
|
|
2
|
+
import { UserData } from "../User";
|
|
3
|
+
export type ActionLogData = {
|
|
4
|
+
id: number;
|
|
5
|
+
model_id: number;
|
|
6
|
+
action: ActionEnum;
|
|
7
|
+
model_type: string;
|
|
8
|
+
old_data: any;
|
|
9
|
+
new_data: any;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Includes:
|
|
13
|
+
* - user
|
|
14
|
+
* - logs
|
|
15
|
+
*/
|
|
16
|
+
export type ActionTransactionData = {
|
|
17
|
+
id: number;
|
|
18
|
+
created_at: string;
|
|
19
|
+
name: string;
|
|
20
|
+
reverted: boolean;
|
|
21
|
+
/** Email the user had when performed the action */
|
|
22
|
+
user_email: string | null;
|
|
23
|
+
user?: UserData | null;
|
|
24
|
+
logs?: ActionLogData[];
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export type ForgotPasswordPayload = {
|
|
2
|
+
/** Included when user token is verified */
|
|
3
|
+
email: string;
|
|
4
|
+
};
|
|
5
|
+
export type InvitationPayload = {
|
|
6
|
+
email: string;
|
|
7
|
+
};
|
|
8
|
+
export type LoginData = {
|
|
9
|
+
token: string;
|
|
10
|
+
expires_at: string | null;
|
|
11
|
+
};
|
|
12
|
+
export type LoginPayload = {
|
|
13
|
+
email: string;
|
|
14
|
+
password: string;
|
|
15
|
+
remember: boolean | null;
|
|
16
|
+
};
|
|
17
|
+
export type PasswordPayload = {
|
|
18
|
+
password: string;
|
|
19
|
+
password_confirmation: string;
|
|
20
|
+
};
|
|
21
|
+
export type RegisterPayload = {
|
|
22
|
+
first_name: string;
|
|
23
|
+
last_name: string;
|
|
24
|
+
email: string;
|
|
25
|
+
phone: string | null;
|
|
26
|
+
password: string;
|
|
27
|
+
password_confirmation: string;
|
|
28
|
+
legal_consent: boolean;
|
|
29
|
+
marketing_consent: boolean;
|
|
30
|
+
};
|
|
31
|
+
export type RegistrationTokenData = {
|
|
32
|
+
user_registered: boolean;
|
|
33
|
+
email: string | null;
|
|
34
|
+
/** Included when user is already registered */
|
|
35
|
+
message: string | null;
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { OrganizationData } from "../Organization";
|
|
2
|
+
import { FacilityData } from "../Facility";
|
|
3
|
+
import { MapData } from "../Map";
|
|
4
|
+
export type CategoryCreatePayload = {
|
|
5
|
+
name: string;
|
|
6
|
+
type_name: string;
|
|
7
|
+
color: string;
|
|
8
|
+
note: string | null;
|
|
9
|
+
contact_first_name: string | null;
|
|
10
|
+
contact_last_name: string | null;
|
|
11
|
+
contact_email: string | null;
|
|
12
|
+
contact_phone: string | null;
|
|
13
|
+
organization_id: number | null;
|
|
14
|
+
parent_category_id: number | null;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Includes:
|
|
18
|
+
* - parent
|
|
19
|
+
* - children
|
|
20
|
+
* - organization
|
|
21
|
+
* - facilities
|
|
22
|
+
* - maps
|
|
23
|
+
*/
|
|
24
|
+
export type CategoryData = {
|
|
25
|
+
id: number;
|
|
26
|
+
name: string;
|
|
27
|
+
type_name: string;
|
|
28
|
+
color: string;
|
|
29
|
+
note: string | null;
|
|
30
|
+
contact_first_name: string | null;
|
|
31
|
+
contact_last_name: string | null;
|
|
32
|
+
contact_full_name: string | null;
|
|
33
|
+
contact_email: string | null;
|
|
34
|
+
contact_phone: string | null;
|
|
35
|
+
top_parent_id: number;
|
|
36
|
+
level: number;
|
|
37
|
+
parent?: CategoryData | null;
|
|
38
|
+
/** Only permitted child categories */
|
|
39
|
+
children?: CategoryData[];
|
|
40
|
+
organization?: OrganizationData | null;
|
|
41
|
+
facilities?: FacilityData[];
|
|
42
|
+
maps?: MapData[];
|
|
43
|
+
created_at: string | null;
|
|
44
|
+
updated_at: string | null;
|
|
45
|
+
deleted_at: string | null;
|
|
46
|
+
};
|
|
47
|
+
export type CategoryTreeData = {
|
|
48
|
+
key: string;
|
|
49
|
+
label: string;
|
|
50
|
+
selectable: boolean;
|
|
51
|
+
data: CategoryTreeNodeMetaData;
|
|
52
|
+
children: CategoryData[];
|
|
53
|
+
};
|
|
54
|
+
export type CategoryTreeNodeMetaData = {
|
|
55
|
+
id: number;
|
|
56
|
+
organization_id: number | null;
|
|
57
|
+
};
|
|
58
|
+
export type CategoryUpdatePayload = {
|
|
59
|
+
name: string;
|
|
60
|
+
type_name: string;
|
|
61
|
+
color: string;
|
|
62
|
+
note: string | null;
|
|
63
|
+
contact_first_name: string | null;
|
|
64
|
+
contact_last_name: string | null;
|
|
65
|
+
contact_email: string | null;
|
|
66
|
+
contact_phone: string | null;
|
|
67
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { FacilityTypeEnum } from "../../Enum";
|
|
2
|
+
export type ConfigData = {
|
|
3
|
+
facility_states: {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}[];
|
|
7
|
+
facility_types: {
|
|
8
|
+
value: string;
|
|
9
|
+
label: string;
|
|
10
|
+
}[];
|
|
11
|
+
revision_types: {
|
|
12
|
+
value: string;
|
|
13
|
+
label: string;
|
|
14
|
+
}[];
|
|
15
|
+
notification_types: {
|
|
16
|
+
value: string;
|
|
17
|
+
label: string;
|
|
18
|
+
}[];
|
|
19
|
+
interval_units: {
|
|
20
|
+
value: string;
|
|
21
|
+
label: string;
|
|
22
|
+
}[];
|
|
23
|
+
roles: {
|
|
24
|
+
value: string;
|
|
25
|
+
label: string;
|
|
26
|
+
}[];
|
|
27
|
+
permission_types: {
|
|
28
|
+
value: string;
|
|
29
|
+
label: string;
|
|
30
|
+
}[];
|
|
31
|
+
facility_type_revision_types: Record<FacilityTypeEnum, {
|
|
32
|
+
value: string;
|
|
33
|
+
label: string;
|
|
34
|
+
}[]>;
|
|
35
|
+
colors: Record<FacilityTypeEnum, string>;
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type DemoRequestCreatePayload = {
|
|
2
|
+
first_name: string;
|
|
3
|
+
last_name: string;
|
|
4
|
+
email: string;
|
|
5
|
+
phone: string;
|
|
6
|
+
company_name: string;
|
|
7
|
+
cin: string | null;
|
|
8
|
+
gdpr_consent: boolean;
|
|
9
|
+
recaptcha_token: string;
|
|
10
|
+
};
|
|
11
|
+
export type DemoRequestData = {
|
|
12
|
+
id: number;
|
|
13
|
+
first_name: string;
|
|
14
|
+
last_name: string;
|
|
15
|
+
email: string;
|
|
16
|
+
phone: string | null;
|
|
17
|
+
company_name: string | null;
|
|
18
|
+
cin: string | null;
|
|
19
|
+
created_at: string | null;
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UploadedFile } from "../../../Illuminate/Http";
|
|
2
|
+
import { UserData } from "../User";
|
|
3
|
+
export type DocumentCreatePayload = {
|
|
4
|
+
name: string;
|
|
5
|
+
file: UploadedFile;
|
|
6
|
+
is_private: boolean;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Includes:
|
|
10
|
+
* - owner
|
|
11
|
+
*/
|
|
12
|
+
export type DocumentData = {
|
|
13
|
+
id: number;
|
|
14
|
+
name: string;
|
|
15
|
+
is_private: boolean;
|
|
16
|
+
has_preview: boolean;
|
|
17
|
+
owner?: UserData | null;
|
|
18
|
+
};
|
|
19
|
+
export type DocumentUpdatePayload = {
|
|
20
|
+
name: string;
|
|
21
|
+
is_private: boolean;
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { FacilityTypeEnum, FacilityStateEnum, IntervalUnitEnum } from "../../Enum";
|
|
2
|
+
import { CategoryData } from "../Category";
|
|
3
|
+
import { RevisionData, RevisionIssueData } from "../Revision";
|
|
4
|
+
import { DocumentData } from "../Document";
|
|
5
|
+
import { MapData } from "../Map";
|
|
6
|
+
import { UploadedFile } from "../../../Illuminate/Http";
|
|
7
|
+
export type FacilityCreatePayload = {
|
|
8
|
+
name: string;
|
|
9
|
+
identification_number: string | null;
|
|
10
|
+
facility_type: FacilityTypeEnum;
|
|
11
|
+
custom_facility_type: string | null;
|
|
12
|
+
revision_group: string | null;
|
|
13
|
+
revision_type: string | null;
|
|
14
|
+
has_custom_revision_group: boolean | null;
|
|
15
|
+
custom_revision_group: string | null;
|
|
16
|
+
color: string | null;
|
|
17
|
+
manufacture_year: number | null;
|
|
18
|
+
manufacture_number: string | null;
|
|
19
|
+
note: string | null;
|
|
20
|
+
intervals: Record<string, FacilityIntervalData>;
|
|
21
|
+
values: Record<string, string>;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Includes:
|
|
25
|
+
* - intervals
|
|
26
|
+
* - values
|
|
27
|
+
* - category
|
|
28
|
+
* - revisions
|
|
29
|
+
* - lastRevision
|
|
30
|
+
* - issues
|
|
31
|
+
* - documents
|
|
32
|
+
* - relatedFacilities
|
|
33
|
+
* - maps
|
|
34
|
+
*/
|
|
35
|
+
export type FacilityData = {
|
|
36
|
+
id: number;
|
|
37
|
+
name: string;
|
|
38
|
+
identification_number: string | null;
|
|
39
|
+
facility_type: FacilityTypeEnum;
|
|
40
|
+
custom_facility_type: string | null;
|
|
41
|
+
revision_group: string | null;
|
|
42
|
+
revision_type: string | null;
|
|
43
|
+
has_custom_revision_group: boolean | null;
|
|
44
|
+
custom_revision_group: string | null;
|
|
45
|
+
color: string | null;
|
|
46
|
+
manufacture_year: number | null;
|
|
47
|
+
manufacture_number: string | number | null;
|
|
48
|
+
note: string | null;
|
|
49
|
+
map_feature_layer: string;
|
|
50
|
+
state: FacilityStateEnum;
|
|
51
|
+
has_picture: boolean;
|
|
52
|
+
intervals: Record<string, FacilityIntervalData>;
|
|
53
|
+
values: Record<string, string>;
|
|
54
|
+
category?: CategoryData;
|
|
55
|
+
revisions?: RevisionData[];
|
|
56
|
+
last_revision?: RevisionData | null;
|
|
57
|
+
issues?: RevisionIssueData[];
|
|
58
|
+
documents?: DocumentData[];
|
|
59
|
+
related_facilities?: FacilityData[];
|
|
60
|
+
maps?: MapData[];
|
|
61
|
+
created_at: string | null;
|
|
62
|
+
updated_at: string | null;
|
|
63
|
+
deleted_at: string | null;
|
|
64
|
+
};
|
|
65
|
+
export type FacilityIntervalData = {
|
|
66
|
+
duration: number | null;
|
|
67
|
+
unit: IntervalUnitEnum | null;
|
|
68
|
+
};
|
|
69
|
+
export type FacilityIssueResolvedPayload = {
|
|
70
|
+
resolved: boolean;
|
|
71
|
+
resolved_date: string | null;
|
|
72
|
+
resolved_note: string | null;
|
|
73
|
+
};
|
|
74
|
+
export type FacilityListData = {
|
|
75
|
+
facility_id: number;
|
|
76
|
+
facility_name: string;
|
|
77
|
+
category_id: number;
|
|
78
|
+
organization_id: number | null;
|
|
79
|
+
};
|
|
80
|
+
export type FacilityPicturePayload = {
|
|
81
|
+
picture: UploadedFile;
|
|
82
|
+
};
|
|
83
|
+
export type FacilityUpdatePayload = {
|
|
84
|
+
name: string;
|
|
85
|
+
identification_number: string | null;
|
|
86
|
+
facility_type: FacilityTypeEnum;
|
|
87
|
+
custom_facility_type: string | null;
|
|
88
|
+
revision_group: string | null;
|
|
89
|
+
revision_type: string | null;
|
|
90
|
+
has_custom_revision_group: boolean | null;
|
|
91
|
+
custom_revision_group: string | null;
|
|
92
|
+
color: string | null;
|
|
93
|
+
manufacture_year: number | null;
|
|
94
|
+
manufacture_number: string | null;
|
|
95
|
+
note: string | null;
|
|
96
|
+
intervals: Record<string, FacilityIntervalData>;
|
|
97
|
+
values: Record<string, string>;
|
|
98
|
+
};
|
|
99
|
+
export type RelatedFacilityCreatePayload = {
|
|
100
|
+
related_facility_id: number;
|
|
101
|
+
};
|
|
102
|
+
export type RelatedFacilityData = {
|
|
103
|
+
id: number;
|
|
104
|
+
facility: FacilityData;
|
|
105
|
+
created_at: string | null;
|
|
106
|
+
updated_at: string | null;
|
|
107
|
+
deleted_at: string | null;
|
|
108
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UploadedFile } from "../../../Illuminate/Http";
|
|
2
|
+
import { CategoryData } from "../Category";
|
|
3
|
+
export type MapCreatePayload = {
|
|
4
|
+
category_ids: number[];
|
|
5
|
+
name: string;
|
|
6
|
+
project_file: UploadedFile | null;
|
|
7
|
+
project_file_google_id: string | null;
|
|
8
|
+
};
|
|
9
|
+
export type MapData = {
|
|
10
|
+
id: number;
|
|
11
|
+
name: string;
|
|
12
|
+
categories: CategoryData[];
|
|
13
|
+
};
|
|
14
|
+
export type MapExtentData = {
|
|
15
|
+
minx: number;
|
|
16
|
+
miny: number;
|
|
17
|
+
maxx: number;
|
|
18
|
+
maxy: number;
|
|
19
|
+
};
|
|
20
|
+
export type MapUpdatePayload = {
|
|
21
|
+
category_ids: number[];
|
|
22
|
+
name: string;
|
|
23
|
+
project_file: UploadedFile | null;
|
|
24
|
+
project_file_google_id: string | null;
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UserRoleEnum } from "../../Enum";
|
|
2
|
+
import { OrganizationData } from "../Organization";
|
|
3
|
+
import { CategoryData } from "../Category";
|
|
4
|
+
import { UserPermissionData } from "../Permission";
|
|
5
|
+
export type MeData = {
|
|
6
|
+
id: number;
|
|
7
|
+
first_name: string | null;
|
|
8
|
+
last_name: string | null;
|
|
9
|
+
full_name: string;
|
|
10
|
+
email: string;
|
|
11
|
+
phone: string | null;
|
|
12
|
+
is_registered: boolean;
|
|
13
|
+
role: UserRoleEnum | null;
|
|
14
|
+
marketing_consent: boolean;
|
|
15
|
+
legal_consent: boolean;
|
|
16
|
+
tutorial: boolean;
|
|
17
|
+
owned_organization: OrganizationData | null;
|
|
18
|
+
default_category: CategoryData | null;
|
|
19
|
+
/** NON SYSTEM_ADMIN only */
|
|
20
|
+
permissions?: UserPermissionData;
|
|
21
|
+
};
|
|
22
|
+
export type MeUpdatePayload = {
|
|
23
|
+
first_name: string;
|
|
24
|
+
last_name: string;
|
|
25
|
+
email: string;
|
|
26
|
+
phone: string | null;
|
|
27
|
+
marketing_consent: boolean;
|
|
28
|
+
legal_consent: boolean;
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CategoryNotificationEnum, OrganizationNotificationEnum } from "../../Enum/Notifications";
|
|
2
|
+
export type CategoryNotificationData = {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
type_name: string;
|
|
6
|
+
notifications: CategoryNotificationEnum[];
|
|
7
|
+
notification_options: CategoryNotificationEnum[];
|
|
8
|
+
categories: CategoryNotificationData[];
|
|
9
|
+
};
|
|
10
|
+
export type CategoryNotificationPayload = {
|
|
11
|
+
id: number;
|
|
12
|
+
notifications: CategoryNotificationEnum[];
|
|
13
|
+
categories: CategoryNotificationPayload[] | null;
|
|
14
|
+
};
|
|
15
|
+
export type NotificationSettingsData = {
|
|
16
|
+
organizations: OrganizationNotificationData[];
|
|
17
|
+
};
|
|
18
|
+
export type NotificationSettingsPayload = {
|
|
19
|
+
organizations: OrganizationNotificationPayload[];
|
|
20
|
+
};
|
|
21
|
+
export type OrganizationNotificationData = {
|
|
22
|
+
id: number;
|
|
23
|
+
name: string;
|
|
24
|
+
notifications: OrganizationNotificationEnum[];
|
|
25
|
+
notification_options: OrganizationNotificationEnum[];
|
|
26
|
+
categories: CategoryNotificationData[];
|
|
27
|
+
};
|
|
28
|
+
export type OrganizationNotificationPayload = {
|
|
29
|
+
id: number;
|
|
30
|
+
notifications: OrganizationNotificationEnum[];
|
|
31
|
+
categories: CategoryNotificationPayload[] | null;
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { UserData } from "../User";
|
|
2
|
+
import { SubscriptionData } from "../Subscription";
|
|
3
|
+
export type OrganizationCreatePayload = {
|
|
4
|
+
name: string;
|
|
5
|
+
street: string;
|
|
6
|
+
city: string;
|
|
7
|
+
postal: string;
|
|
8
|
+
country: string;
|
|
9
|
+
cin: string;
|
|
10
|
+
vat_number: string | null;
|
|
11
|
+
vat_id: string | null;
|
|
12
|
+
email: string;
|
|
13
|
+
phone: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Includes:
|
|
17
|
+
* - subscriptions
|
|
18
|
+
*/
|
|
19
|
+
export type OrganizationData = {
|
|
20
|
+
id: number;
|
|
21
|
+
name: string;
|
|
22
|
+
street: string | null;
|
|
23
|
+
city: string | null;
|
|
24
|
+
postal: string | null;
|
|
25
|
+
country: string | null;
|
|
26
|
+
cin: string | null;
|
|
27
|
+
vat_number: string | null;
|
|
28
|
+
vat_id: string | null;
|
|
29
|
+
email: string;
|
|
30
|
+
phone: string | null;
|
|
31
|
+
subscription_end_date: string | null;
|
|
32
|
+
subscription_facility_limit: number;
|
|
33
|
+
actual_facility_count: number;
|
|
34
|
+
subscription_user_limit: number;
|
|
35
|
+
actual_user_count: number;
|
|
36
|
+
/** SYSTEM_ADMIN only */
|
|
37
|
+
owner?: UserData;
|
|
38
|
+
subscriptions?: SubscriptionData[];
|
|
39
|
+
expired: boolean;
|
|
40
|
+
expire_date: string;
|
|
41
|
+
delete_date: string;
|
|
42
|
+
created_at: string | null;
|
|
43
|
+
updated_at: string | null;
|
|
44
|
+
deleted_at: string | null;
|
|
45
|
+
};
|
|
46
|
+
export type OrganizationUpdatePayload = {
|
|
47
|
+
name: string;
|
|
48
|
+
street: string;
|
|
49
|
+
city: string;
|
|
50
|
+
postal: string;
|
|
51
|
+
country: string;
|
|
52
|
+
cin: string;
|
|
53
|
+
vat_number: string | null;
|
|
54
|
+
vat_id: string | null;
|
|
55
|
+
email: string;
|
|
56
|
+
phone: string;
|
|
57
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CategoryPermissionEnum, OrganizationPermissionEnum } from "../../Enum/Permissions";
|
|
2
|
+
export type CategoryPermissionData = {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
type_name: string;
|
|
6
|
+
permissions: CategoryPermissionEnum[];
|
|
7
|
+
permission_options: CategoryPermissionEnum[];
|
|
8
|
+
categories: CategoryPermissionData[];
|
|
9
|
+
};
|
|
10
|
+
export type CategoryPermissionPayload = {
|
|
11
|
+
id: number;
|
|
12
|
+
permissions: CategoryPermissionEnum[] | null;
|
|
13
|
+
categories: CategoryPermissionPayload[] | null;
|
|
14
|
+
};
|
|
15
|
+
export type OrganizationPermissionData = {
|
|
16
|
+
id: number;
|
|
17
|
+
name: string;
|
|
18
|
+
permissions: OrganizationPermissionEnum[];
|
|
19
|
+
permission_options: OrganizationPermissionEnum[];
|
|
20
|
+
categories: CategoryPermissionData[];
|
|
21
|
+
};
|
|
22
|
+
export type OrganizationPermissionPayload = {
|
|
23
|
+
id: number;
|
|
24
|
+
permissions: OrganizationPermissionEnum[] | null;
|
|
25
|
+
categories: CategoryPermissionPayload[] | null;
|
|
26
|
+
};
|
|
27
|
+
export type UserPermissionData = {
|
|
28
|
+
organizations: OrganizationPermissionData[];
|
|
29
|
+
};
|
|
30
|
+
export type UserPermissionPayload = {
|
|
31
|
+
organizations: OrganizationPermissionPayload[];
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { FacilityStateEnum, RevisionTypeEnum } from "../../Enum";
|
|
2
|
+
import { FacilityData } from "../Facility";
|
|
3
|
+
import { DocumentData } from "../Document";
|
|
4
|
+
import { UserData } from "../User";
|
|
5
|
+
export type RevisionCreatePayload = {
|
|
6
|
+
revision_date: string;
|
|
7
|
+
next_revision_date: string;
|
|
8
|
+
state: FacilityStateEnum;
|
|
9
|
+
issues: RevisionIssuePayload[] | null;
|
|
10
|
+
revision_type: RevisionTypeEnum;
|
|
11
|
+
custom_revision_type: string | null;
|
|
12
|
+
next_revision_type: RevisionTypeEnum;
|
|
13
|
+
next_custom_revision_type: string | null;
|
|
14
|
+
virtual_revision_technician_id: number | null;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Includes:
|
|
18
|
+
* - facility
|
|
19
|
+
* - issues
|
|
20
|
+
* - documents
|
|
21
|
+
* - authorUser
|
|
22
|
+
*/
|
|
23
|
+
export type RevisionData = {
|
|
24
|
+
id: number;
|
|
25
|
+
revision_date: string;
|
|
26
|
+
next_revision_date: string;
|
|
27
|
+
state: FacilityStateEnum;
|
|
28
|
+
revision_type: RevisionTypeEnum;
|
|
29
|
+
custom_revision_type: string | null;
|
|
30
|
+
next_revision_type: RevisionTypeEnum;
|
|
31
|
+
next_custom_revision_type: string | null;
|
|
32
|
+
facility?: FacilityData;
|
|
33
|
+
issues: RevisionIssueData[];
|
|
34
|
+
documents: DocumentData[];
|
|
35
|
+
author_user?: UserData | null;
|
|
36
|
+
created_at: string | null;
|
|
37
|
+
updated_at: string | null;
|
|
38
|
+
deleted_at: string | null;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Includes:
|
|
42
|
+
* - revision
|
|
43
|
+
*/
|
|
44
|
+
export type RevisionIssueData = {
|
|
45
|
+
id: number;
|
|
46
|
+
description: string;
|
|
47
|
+
resolve_deadline: string | null;
|
|
48
|
+
resolved_date: string | null;
|
|
49
|
+
resolved_note: string | null;
|
|
50
|
+
revision?: RevisionData;
|
|
51
|
+
created_at: string;
|
|
52
|
+
updated_at: string;
|
|
53
|
+
deleted_at: string | null;
|
|
54
|
+
};
|
|
55
|
+
export type RevisionIssuePayload = {
|
|
56
|
+
resolve_deadline: string;
|
|
57
|
+
description: string;
|
|
58
|
+
resolved_date: string | null;
|
|
59
|
+
resolved_note: string | null;
|
|
60
|
+
id: number | null;
|
|
61
|
+
};
|
|
62
|
+
export type RevisionUpdatePayload = {
|
|
63
|
+
revision_date: string;
|
|
64
|
+
next_revision_date: string;
|
|
65
|
+
state: FacilityStateEnum;
|
|
66
|
+
issues: RevisionIssuePayload[] | null;
|
|
67
|
+
revision_type: RevisionTypeEnum;
|
|
68
|
+
custom_revision_type: string | null;
|
|
69
|
+
next_revision_type: RevisionTypeEnum;
|
|
70
|
+
next_custom_revision_type: string | null;
|
|
71
|
+
virtual_revision_technician_id: number | null;
|
|
72
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FacilityStateEnum } from "../../Enum";
|
|
2
|
+
export type SearchCategoryData = {
|
|
3
|
+
readonly note: string | null;
|
|
4
|
+
readonly type_name: string;
|
|
5
|
+
};
|
|
6
|
+
export type SearchData = {
|
|
7
|
+
readonly id: number;
|
|
8
|
+
readonly url: string;
|
|
9
|
+
readonly title: string;
|
|
10
|
+
readonly type: string;
|
|
11
|
+
readonly type_name: string;
|
|
12
|
+
readonly category?: SearchCategoryData;
|
|
13
|
+
readonly facility?: SearchFacilityData;
|
|
14
|
+
readonly revision_issue?: SearchRevisionIssueData;
|
|
15
|
+
};
|
|
16
|
+
export type SearchFacilityData = {
|
|
17
|
+
readonly id: number;
|
|
18
|
+
readonly note: string | null;
|
|
19
|
+
readonly state: FacilityStateEnum;
|
|
20
|
+
};
|
|
21
|
+
export type SearchRevisionIssueData = {
|
|
22
|
+
readonly note: string | null;
|
|
23
|
+
readonly resolved_date: any;
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SubscriptionPlanEnum } from "../../Enum";
|
|
2
|
+
import { UserData } from "../User";
|
|
3
|
+
export type SubscriptionCreatePayload = {
|
|
4
|
+
author_user_id: number;
|
|
5
|
+
end_date: string;
|
|
6
|
+
facility_limit: number;
|
|
7
|
+
user_limit: number;
|
|
8
|
+
price: number;
|
|
9
|
+
admin_note: string | null;
|
|
10
|
+
plan: SubscriptionPlanEnum;
|
|
11
|
+
};
|
|
12
|
+
export type SubscriptionData = {
|
|
13
|
+
id: number;
|
|
14
|
+
end_date: string;
|
|
15
|
+
facility_limit: number;
|
|
16
|
+
user_limit: number;
|
|
17
|
+
price: number | null;
|
|
18
|
+
admin_note: string | null;
|
|
19
|
+
/** SYSTEM_ADMIN only */
|
|
20
|
+
author_user?: UserData | null;
|
|
21
|
+
plan: SubscriptionPlanEnum | null;
|
|
22
|
+
created_at: string | null;
|
|
23
|
+
updated_at: string | null;
|
|
24
|
+
deleted_at: string | null;
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|