@reviza/api-client 1.0.0-SNAPSHOT-b8000216 → 1.0.0-SNAPSHOT-aded9053
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CategoryNotificationEnum,
|
|
1
|
+
import { CategoryNotificationEnum, OrganizationNotificationEnum } from "../../Enum/Notifications";
|
|
2
2
|
export type CategoryNotificationData = {
|
|
3
3
|
id: number;
|
|
4
4
|
name: string;
|
|
@@ -22,11 +22,9 @@ export type NotificationData = {
|
|
|
22
22
|
read_at: string | null;
|
|
23
23
|
};
|
|
24
24
|
export type NotificationSettingsData = {
|
|
25
|
-
terms: NotificationTermEnum[];
|
|
26
25
|
organizations: OrganizationNotificationData[];
|
|
27
26
|
};
|
|
28
27
|
export type NotificationSettingsPayload = {
|
|
29
|
-
terms: NotificationTermEnum[];
|
|
30
28
|
organizations: OrganizationNotificationPayload[];
|
|
31
29
|
};
|
|
32
30
|
export type OrganizationNotificationData = {
|
|
@@ -6,12 +6,11 @@ export type RevisionCreatePayload = {
|
|
|
6
6
|
revision_date: string;
|
|
7
7
|
next_revision_date: string;
|
|
8
8
|
state: FacilityStateEnum;
|
|
9
|
-
issues:
|
|
9
|
+
issues: RevisionIssueCreatePayload[] | null;
|
|
10
10
|
revision_type: RevisionTypeEnum;
|
|
11
11
|
custom_revision_type: string | null;
|
|
12
12
|
next_revision_type: RevisionTypeEnum;
|
|
13
13
|
next_custom_revision_type: string | null;
|
|
14
|
-
virtual_revision_technician_id: number | null;
|
|
15
14
|
};
|
|
16
15
|
/**
|
|
17
16
|
* Includes:
|
|
@@ -37,12 +36,17 @@ export type RevisionData = {
|
|
|
37
36
|
updated_at: string | null;
|
|
38
37
|
deleted_at: string | null;
|
|
39
38
|
};
|
|
39
|
+
export type RevisionIssueCreatePayload = {
|
|
40
|
+
resolve_deadline: string;
|
|
41
|
+
description: string;
|
|
42
|
+
};
|
|
40
43
|
/**
|
|
41
44
|
* Includes:
|
|
42
45
|
* - revision
|
|
43
46
|
*/
|
|
44
47
|
export type RevisionIssueData = {
|
|
45
48
|
id: number;
|
|
49
|
+
number: number;
|
|
46
50
|
description: string;
|
|
47
51
|
resolve_deadline: string | null;
|
|
48
52
|
resolved_date: string | null;
|
|
@@ -52,21 +56,18 @@ export type RevisionIssueData = {
|
|
|
52
56
|
updated_at: string;
|
|
53
57
|
deleted_at: string | null;
|
|
54
58
|
};
|
|
55
|
-
export type
|
|
59
|
+
export type RevisionIssueUpdatePayload = {
|
|
60
|
+
id: number | null;
|
|
56
61
|
resolve_deadline: string;
|
|
57
62
|
description: string;
|
|
58
|
-
resolved_date: string | null;
|
|
59
|
-
resolved_note: string | null;
|
|
60
|
-
id: number | null;
|
|
61
63
|
};
|
|
62
64
|
export type RevisionUpdatePayload = {
|
|
63
65
|
revision_date: string;
|
|
64
66
|
next_revision_date: string;
|
|
65
67
|
state: FacilityStateEnum;
|
|
66
|
-
issues:
|
|
68
|
+
issues: RevisionIssueUpdatePayload[] | null;
|
|
67
69
|
revision_type: RevisionTypeEnum;
|
|
68
70
|
custom_revision_type: string | null;
|
|
69
71
|
next_revision_type: RevisionTypeEnum;
|
|
70
72
|
next_custom_revision_type: string | null;
|
|
71
|
-
virtual_revision_technician_id: number | null;
|
|
72
73
|
};
|
|
@@ -6,13 +6,6 @@ export declare enum CategoryNotificationEnum {
|
|
|
6
6
|
FACILITY_ISSUE_REMINDER = "FACILITY_ISSUE_REMINDER",
|
|
7
7
|
REVISION_DOCUMENT_UPLOADED = "REVISION_DOCUMENT_UPLOADED"
|
|
8
8
|
}
|
|
9
|
-
export declare enum NotificationTermEnum {
|
|
10
|
-
MONTHS_6 = "MONTHS_6",
|
|
11
|
-
MONTHS_3 = "MONTHS_3",
|
|
12
|
-
MONTHS_1 = "MONTHS_1",
|
|
13
|
-
WEEKS_2 = "WEEKS_2",
|
|
14
|
-
WEEKS_1 = "WEEKS_1"
|
|
15
|
-
}
|
|
16
9
|
export declare enum OrganizationNotificationEnum {
|
|
17
10
|
CATEGORY_CREATED = "CATEGORY_CREATED"
|
|
18
11
|
}
|
|
@@ -7,14 +7,6 @@ export var CategoryNotificationEnum;
|
|
|
7
7
|
CategoryNotificationEnum["FACILITY_ISSUE_REMINDER"] = "FACILITY_ISSUE_REMINDER";
|
|
8
8
|
CategoryNotificationEnum["REVISION_DOCUMENT_UPLOADED"] = "REVISION_DOCUMENT_UPLOADED";
|
|
9
9
|
})(CategoryNotificationEnum || (CategoryNotificationEnum = {}));
|
|
10
|
-
export var NotificationTermEnum;
|
|
11
|
-
(function (NotificationTermEnum) {
|
|
12
|
-
NotificationTermEnum["MONTHS_6"] = "MONTHS_6";
|
|
13
|
-
NotificationTermEnum["MONTHS_3"] = "MONTHS_3";
|
|
14
|
-
NotificationTermEnum["MONTHS_1"] = "MONTHS_1";
|
|
15
|
-
NotificationTermEnum["WEEKS_2"] = "WEEKS_2";
|
|
16
|
-
NotificationTermEnum["WEEKS_1"] = "WEEKS_1";
|
|
17
|
-
})(NotificationTermEnum || (NotificationTermEnum = {}));
|
|
18
10
|
export var OrganizationNotificationEnum;
|
|
19
11
|
(function (OrganizationNotificationEnum) {
|
|
20
12
|
OrganizationNotificationEnum["CATEGORY_CREATED"] = "CATEGORY_CREATED";
|