@evercam/api 1.0.0-7e1c6b521 → 1.0.0-805a76c03

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.
@@ -8,7 +8,7 @@ export type AconexUserProjectsResponsePayload = Array<{
8
8
  export type AconexDocumentSchemaField = {
9
9
  dataType: AconexDocumentDataType;
10
10
  identifier: string;
11
- schemaValues: Array<{
11
+ schemaValues?: Array<{
12
12
  id: string;
13
13
  value: string;
14
14
  }>;
@@ -20,6 +20,7 @@ export declare enum AnalyticsEventPageId {
20
20
  ProjectSettingsCameraSettings = "ProjectSettings-CameraSettings",
21
21
  ProjectSettingsMembers = "ProjectSettings-Members",
22
22
  ProjectSettingsOverview = "ProjectSettings-Overview",
23
+ ProjectSettingsDangerZone = "ProjectSettings-DangerZone",
23
24
  Settings = "Settings",
24
25
  SettingsAccount = "Settings-Account",
25
26
  SettingsConnectors = "Settings-Connectors",
@@ -10,6 +10,10 @@ export declare enum Connector {
10
10
  VoyageControl = "voyage_control",
11
11
  XWeather = "xweather"
12
12
  }
13
+ export declare enum ProcoreType {
14
+ Observations = "observations",
15
+ Photos = "photos"
16
+ }
13
17
  export type ConnectorResponsePayload = Array<{
14
18
  hostname: string;
15
19
  login: string;
@@ -1,4 +1,4 @@
1
- import { CountryCode, CountryId, DateType, Nvr, PaginationParams, PowerType, Project, Region, Router, Schedule, Tag } from "@/types";
1
+ import { CountryCode, CountryId, DateTime, DateType, Nvr, PaginationParams, PowerType, Project, Region, Router, Schedule, Tag } from "@/types";
2
2
  export type Kit = {
3
3
  alarms: KitAlarm[];
4
4
  countryCode: CountryCode;
@@ -302,3 +302,27 @@ export type KitUpdatePayload = {
302
302
  kitStatus: KitStatus;
303
303
  type: string;
304
304
  };
305
+ export declare enum KitStorageTransport {
306
+ Sata = "sata",
307
+ Nvme = "nvme",
308
+ Usb = "usb"
309
+ }
310
+ export type KitStorageRequestPayload = {
311
+ kitId: number;
312
+ };
313
+ export type KitStorageResponsePayload = {
314
+ id: number;
315
+ serial: string;
316
+ status: string;
317
+ type: string;
318
+ metadata: {
319
+ formFactor: string;
320
+ };
321
+ model: string;
322
+ insertedAt: DateTime;
323
+ updatedAt: DateTime;
324
+ vendor: string;
325
+ kitId: number;
326
+ capacity: number;
327
+ tran: KitStorageTransport;
328
+ };
@@ -3,9 +3,47 @@ export type ProcoreUserCompaniesResponsePayload = Array<{
3
3
  isActive?: boolean;
4
4
  name: string;
5
5
  }>;
6
- export type ProcoreUserProjectRequestPayload = {
6
+ export type ProcoreCompanyRequestPayload = {
7
7
  companyId: number;
8
8
  };
9
+ export type ProcoreProjectRequestPayload = {
10
+ companyId: number;
11
+ projectId: number;
12
+ };
13
+ export type ProcoreObservationListItem = {
14
+ id: number;
15
+ name: string;
16
+ };
17
+ export type ProcoreObservationDefaultList = Array<ProcoreObservationListItem & {
18
+ active: boolean;
19
+ global: boolean;
20
+ createdAt: string;
21
+ updatedAt: string;
22
+ }>;
23
+ export type ProcoreObservationAssignee = ProcoreObservationListItem & {
24
+ vendor: ProcoreObservationListItem;
25
+ };
26
+ export type ProcoreObservationDistributionMember = ProcoreObservationListItem & {
27
+ login: string;
28
+ };
29
+ export type ProcoreObservationTrades = ProcoreObservationListItem & {
30
+ active: boolean;
31
+ updatedAt: string;
32
+ };
33
+ export type ProcoreObservationLocation = ProcoreObservationListItem & {
34
+ nodeName: string;
35
+ parentId: number;
36
+ createdAt: string;
37
+ updatedAt: string;
38
+ code: string;
39
+ };
40
+ export type ProcoreObservationSpecificationSection = {
41
+ id: number;
42
+ number: string;
43
+ description: string;
44
+ label: string;
45
+ currentRevisionId: number;
46
+ };
9
47
  export type ProcoreUserProjectsResponsePayload = Array<{
10
48
  accountingProjectNumber?: number;
11
49
  active: boolean;
@@ -48,6 +86,33 @@ export type ProcoreUserProjectsResponsePayload = Array<{
48
86
  updatedAt: string;
49
87
  zip: number;
50
88
  }>;
89
+ export type ProcoreToolUserAccessLevel = {
90
+ id: ProcoreToolUserAccessLevelIds;
91
+ name: string;
92
+ };
93
+ export type ProcoreToolPermittedAction = {
94
+ id: number;
95
+ actionName: string;
96
+ label: string;
97
+ toolName: string;
98
+ };
99
+ export type ProcoreToolPermissions = {
100
+ id: number;
101
+ name: string;
102
+ friendlyName: string;
103
+ domainId: number;
104
+ tabGroup: string;
105
+ availableForUser: boolean;
106
+ url: string;
107
+ userAccessLevel: ProcoreToolUserAccessLevel;
108
+ permittedActions: Array<ProcoreToolPermittedAction>;
109
+ createUrl: string;
110
+ canCreate: boolean;
111
+ trial: boolean;
112
+ };
113
+ export type ProcoreUserProjectPermissionsResponsePayload = {
114
+ tools: Array<ProcoreToolPermissions>;
115
+ };
51
116
  export type ProcoreEditedImageUploadRequestPayload = {
52
117
  projectExid: string;
53
118
  companyId: number;
@@ -70,7 +135,85 @@ export type ProcoreProjectsAlbumsPayload = Array<{
70
135
  private: boolean;
71
136
  updatedAt: string;
72
137
  }>;
73
- export type ProcoreProjectsAlbumsRequestPayload = {
74
- companyId: number;
138
+ export type ProcoreObservationTypesResponsePayload = Array<{
139
+ id: number;
140
+ name: string;
141
+ localizedName: string;
142
+ category: string;
143
+ categoryKey: string;
144
+ companyActive: boolean;
145
+ active: boolean;
146
+ kind: string;
147
+ parentInactive: boolean;
148
+ isUse: boolean;
149
+ nameTranslations: string;
150
+ }>;
151
+ export type ProcoreObservationFormRequestPayload = {
75
152
  projectId: number;
153
+ companyId: number;
154
+ observationType: string;
155
+ };
156
+ export type ProcoreObservationForm = Record<string, ProcoreObservationField | ProcoreObservationCustomField>;
157
+ export type ProcoreObservationField = {
158
+ name: string;
159
+ required: boolean;
160
+ visible: boolean;
161
+ };
162
+ export type ProcoreObservationCustomField = {
163
+ id: number;
164
+ required: boolean;
165
+ visible: boolean;
166
+ name: string;
167
+ label: string;
168
+ description: string;
169
+ customFieldDefinitionId: number;
170
+ dataType: ProcoreObservationCustomFieldDataType;
171
+ variant: string;
172
+ position: number;
173
+ row: number;
174
+ column: number;
175
+ columnWidth: number;
176
+ optionsUrl: string | null;
177
+ defaultValue: string | null;
76
178
  };
179
+ export declare enum ProcoreObservationCustomFieldDataType {
180
+ RichText = "rich_text",
181
+ Date = "date",
182
+ DateTime = "datetime",
183
+ LovEnty = "lov_entry",
184
+ LovEntries = "lov_entries",
185
+ Boolean = "boolean",
186
+ Vendor = "vendor",
187
+ Decimal = "decimal",
188
+ String = "string",
189
+ LoginInformation = "login_information",
190
+ LoginInformations = "login_informations",
191
+ Dropdown = "dropdown"
192
+ }
193
+ export declare enum ProcoreObservationDefaultFieldNames {
194
+ Number = "number",
195
+ Name = "name",
196
+ Status = "status",
197
+ Trade = "trade_id",
198
+ Assignee = "assignee_id",
199
+ DueDate = "due_date",
200
+ SpecificationSection = "specification_section_id",
201
+ Priority = "priority",
202
+ Location = "location_id",
203
+ DistributionMembers = "distribution_member_ids",
204
+ Personal = "personal",
205
+ Hazard = "hazard_id",
206
+ ContributingBehavior = "contributing_behavior_id",
207
+ ContributingCondition = "contributing_condition_id",
208
+ Description = "description"
209
+ }
210
+ export declare enum ProcoreTools {
211
+ Observations = "observations",
212
+ ProgressPhotos = "images"
213
+ }
214
+ export declare enum ProcoreToolUserAccessLevelIds {
215
+ NoAccess = 1,
216
+ ReadOnly = 2,
217
+ Standard = 3,
218
+ Admin = 4
219
+ }
@@ -55,7 +55,8 @@ export declare enum ProjectFeatureFlag {
55
55
  MediaHubSharing = "archives_sharing",
56
56
  GateReportAnprBased = "anpr_sourced",
57
57
  NoLicensePlate = "no_license_plate",
58
- DefaultToProjectApp = "default_to_project_app"
58
+ DefaultToProjectApp = "default_to_project_app",
59
+ SmartSearch = "smart_search"
59
60
  }
60
61
  export type ProjectBatteryReading = {
61
62
  exid: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evercam/api",
3
- "version": "1.0.0-7e1c6b521",
3
+ "version": "1.0.0-805a76c03",
4
4
  "description": "Evercam API client",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,7 +36,7 @@
36
36
  "publish-api": "cd ../.. && yarn publish-api"
37
37
  },
38
38
  "devDependencies": {
39
- "@types/node": "^24.0.10",
39
+ "@types/node": "^24.0.13",
40
40
  "vite": "latest",
41
41
  "vite-plugin-commonjs": "^0.10.3",
42
42
  "vite-plugin-dts": "^4.5.4"