@reviza/api-client 1.2.0-SNAPSHOT-79ad38f4 → 1.2.0-SNAPSHOT-31b04730

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.
@@ -24,6 +24,7 @@ export type RegisterPayload = {
24
24
  email: string;
25
25
  phone: string | null;
26
26
  password: string;
27
+ password_confirmation: string;
27
28
  legal_consent: boolean;
28
29
  marketing_consent: boolean;
29
30
  };
@@ -1,4 +1,4 @@
1
- import { FacilityTypeEnum, FacilityStateEnum, IntervalUnitEnum } from "../../Enum";
1
+ import { FacilityTypeEnum, FacilityStateEnum, IntervalUnitEnum, RevisionTypeEnum } from "../../Enum";
2
2
  import { CategoryData } from "../Category";
3
3
  import { RevisionData, RevisionIssueData } from "../Revision";
4
4
  import { DocumentData } from "../Document";
@@ -76,6 +76,19 @@ export type FacilityListData = {
76
76
  category_id: number;
77
77
  organization_id: number | null;
78
78
  };
79
+ export type FacilityRevisionData = {
80
+ state: FacilityStateEnum;
81
+ id: number;
82
+ revision_date: string;
83
+ next_revision_date: string;
84
+ revision_type: RevisionTypeEnum;
85
+ custom_revision_type: string | null;
86
+ next_revision_type: RevisionTypeEnum;
87
+ next_custom_revision_type: string | null;
88
+ created_at: string | null;
89
+ updated_at: string | null;
90
+ deleted_at: string | null;
91
+ };
79
92
  export type FacilityUpdatePayload = {
80
93
  name: string;
81
94
  identification_number: string | null;
@@ -1,48 +1,84 @@
1
- import { FacilityStateEnum, RevisionTypeEnum, RevisionIssueStateEnum } from "../../Enum";
2
- import { FacilityData } from "../Facility";
1
+ import { RevisionTypeEnum, FacilityStateEnum, FacilityTypeEnum, RevisionIssueStateEnum } from "../../Enum";
3
2
  import { DocumentData } from "../Document";
4
3
  import { UserData } from "../User";
4
+ import { FacilityIntervalData } from "../Facility";
5
+ import { CategoryData } from "../Category";
6
+ export type BaseRevisionData = {
7
+ id: number;
8
+ revision_date: string;
9
+ next_revision_date: string;
10
+ revision_type: RevisionTypeEnum;
11
+ custom_revision_type: string | null;
12
+ next_revision_type: RevisionTypeEnum;
13
+ next_custom_revision_type: string | null;
14
+ created_at: string | null;
15
+ updated_at: string | null;
16
+ deleted_at: string | null;
17
+ };
5
18
  export type RevisionCreatePayload = {
6
- facility_ids: number[];
7
19
  revision_date: string;
8
20
  next_revision_date: string;
9
- state: FacilityStateEnum;
10
- issues: RevisionIssueCreatePayload[];
11
21
  revision_type: RevisionTypeEnum;
12
22
  custom_revision_type: string | null;
13
23
  next_revision_type: RevisionTypeEnum;
14
24
  next_custom_revision_type: string | null;
25
+ facilities: RevisionFacilityCreatePayload[];
15
26
  };
16
27
  /**
17
28
  * Includes:
18
29
  * - facilities
19
- * - issues
20
30
  * - documents
21
31
  * - authorUser
22
32
  */
23
33
  export type RevisionData = {
34
+ facilities: RevisionFacilityData[];
35
+ documents: DocumentData[];
36
+ author_user?: UserData | null;
24
37
  id: number;
25
38
  revision_date: string;
26
39
  next_revision_date: string;
27
- state: FacilityStateEnum;
28
40
  revision_type: RevisionTypeEnum;
29
41
  custom_revision_type: string | null;
30
42
  next_revision_type: RevisionTypeEnum;
31
43
  next_custom_revision_type: string | null;
32
- facilities?: FacilityData[];
33
- issues?: RevisionIssueData[];
34
- documents?: DocumentData[];
35
- author_user?: UserData | null;
36
44
  created_at: string | null;
37
45
  updated_at: string | null;
38
46
  deleted_at: string | null;
39
47
  };
48
+ export type RevisionFacilityCreatePayload = {
49
+ id: number;
50
+ state: FacilityStateEnum;
51
+ issues: RevisionIssueCreatePayload[];
52
+ };
53
+ /**
54
+ * Includes:
55
+ * - category
56
+ */
57
+ export type RevisionFacilityData = {
58
+ id: number;
59
+ name: string;
60
+ facility_type: FacilityTypeEnum;
61
+ custom_facility_type: string | null;
62
+ state: FacilityStateEnum;
63
+ intervals: Record<string, FacilityIntervalData>;
64
+ issues: RevisionIssueData[];
65
+ category?: CategoryData;
66
+ created_at: string | null;
67
+ updated_at: string | null;
68
+ deleted_at: string | null;
69
+ };
70
+ export type RevisionFacilityUpdatePayload = {
71
+ id: number;
72
+ state: FacilityStateEnum;
73
+ issues: RevisionIssueUpdatePayload[];
74
+ };
40
75
  export type RevisionIssueCreatePayload = {
41
76
  state: RevisionIssueStateEnum;
42
77
  resolve_deadline: string;
43
78
  description: string;
44
79
  note: string | null;
45
80
  duplicated_issue_id: number | null;
81
+ group_key: string | null;
46
82
  };
47
83
  /**
48
84
  * Includes:
@@ -59,6 +95,8 @@ export type RevisionIssueData = {
59
95
  resolved_note: string | null;
60
96
  duplicated_issue?: RevisionIssueData;
61
97
  duplicating_issue?: RevisionIssueData;
98
+ group_key: string | null;
99
+ group_issues?: RevisionIssueData[];
62
100
  revision?: RevisionData;
63
101
  path: string;
64
102
  created_at: string;
@@ -71,15 +109,14 @@ export type RevisionIssueUpdatePayload = {
71
109
  description: string;
72
110
  note: string | null;
73
111
  duplicated_issue_id: number | null;
112
+ group_key: string | null;
74
113
  };
75
114
  export type RevisionUpdatePayload = {
76
- facility_ids: number[];
77
115
  revision_date: string;
78
116
  next_revision_date: string;
79
- state: FacilityStateEnum;
80
- issues: RevisionIssueUpdatePayload[];
81
117
  revision_type: RevisionTypeEnum;
82
118
  custom_revision_type: string | null;
83
119
  next_revision_type: RevisionTypeEnum;
84
120
  next_custom_revision_type: string | null;
121
+ facilities: RevisionFacilityUpdatePayload[];
85
122
  };
package/dist/index.d.ts CHANGED
@@ -186,6 +186,7 @@ export type * from "./App/Data/Search";
186
186
  export type * from "./App/Data/Subscription";
187
187
  export type * from "./App/Data/User";
188
188
  export type * from "./App/Data/Picture";
189
+ export type * from "./App/Data/Ui";
189
190
  export * from "./App/Enum";
190
191
  export * from "./App/Enum/Permissions";
191
192
  export * from "./App/Enum/Notifications";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reviza/api-client",
3
- "version": "1.2.0-SNAPSHOT-79ad38f4",
3
+ "version": "1.2.0-SNAPSHOT-31b04730",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",