@evercam/api 1.0.0-ea5c7d976 → 1.0.0-eb137e485
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/README.md +4 -0
- package/dist/api/api/3dFirebaseApi.d.ts +224 -0
- package/dist/api/api/adminApi.d.ts +379 -0
- package/dist/api/api/aiApi.d.ts +251 -0
- package/dist/api/api/authzApi.d.ts +40 -0
- package/dist/api/{client → api/client}/axios.d.ts +2 -1
- package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
- package/dist/api/{client → api/client}/interceptors.d.ts +1 -1
- package/dist/api/api/client/swr/Swr.d.ts +14 -0
- package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
- package/dist/api/api/evercamApi.d.ts +353 -0
- package/dist/api/api/evercamLabsApi.d.ts +37 -0
- package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +2 -2
- package/dist/api/api/index.d.ts +14 -0
- package/dist/api/api/ingestApi.d.ts +170 -0
- package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +12 -3
- package/dist/api/api/reportsApi.d.ts +15 -0
- package/dist/api/api/videoWallApi.d.ts +9 -0
- package/dist/api/api/weatherApi.d.ts +9 -0
- package/dist/api/index.d.ts +3 -13
- package/dist/api/types/360.d.ts +368 -0
- package/dist/api/types/aconex.d.ts +143 -0
- package/dist/api/types/admin.d.ts +85 -0
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/{types → api/types}/analytics.d.ts +265 -96
- package/dist/{types → api/types}/anpr.d.ts +57 -13
- package/dist/api/types/apiKey.d.ts +70 -0
- package/dist/api/types/auditLogs.d.ts +257 -0
- package/dist/api/types/authz.d.ts +132 -0
- package/dist/{types → api/types}/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +123 -0
- package/dist/{types → api/types}/axios.d.ts +32 -11
- package/dist/{types → api/types}/bim.d.ts +65 -16
- package/dist/api/types/camera.d.ts +660 -0
- package/dist/api/types/comments.d.ts +96 -0
- package/dist/api/types/company.d.ts +121 -0
- package/dist/{types → api/types}/compare.d.ts +21 -6
- package/dist/api/types/connector.d.ts +21 -0
- package/dist/api/types/coolify.d.ts +36 -0
- package/dist/{types → api/types}/countries.d.ts +0 -7
- package/dist/{types → api/types}/credentials.d.ts +1 -0
- package/dist/api/types/detections.d.ts +120 -0
- package/dist/api/types/drone.d.ts +106 -0
- package/dist/api/types/emailMessages.d.ts +27 -0
- package/dist/{types → api/types}/errors.d.ts +31 -1
- package/dist/{types → api/types}/gateReport.d.ts +51 -169
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/{types → api/types}/hdd.d.ts +27 -2
- package/dist/{types → api/types}/index.d.ts +23 -4
- package/dist/api/types/ingest.d.ts +314 -0
- package/dist/{types → api/types}/kit.d.ts +170 -108
- package/dist/api/types/map.d.ts +16 -0
- package/dist/{types → api/types}/media.d.ts +33 -4
- package/dist/api/types/notification.d.ts +107 -0
- package/dist/api/types/nvr.d.ts +67 -0
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/observationEvents.d.ts +167 -0
- package/dist/api/types/observations.d.ts +89 -0
- package/dist/api/types/planner.d.ts +125 -0
- package/dist/api/types/posthog.d.ts +89 -0
- package/dist/api/types/procore.d.ts +229 -0
- package/dist/{types → api/types}/progressPhoto.d.ts +41 -40
- package/dist/api/types/project.d.ts +293 -0
- package/dist/{types → api/types}/recording.d.ts +10 -16
- package/dist/api/types/recycleBin.d.ts +20 -0
- package/dist/api/types/reports.d.ts +109 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/{types → api/types}/roi.d.ts +2 -9
- package/dist/{types → api/types}/routeParams.d.ts +5 -2
- package/dist/{types → api/types}/router.d.ts +34 -10
- package/dist/{types → api/types}/shared.d.ts +48 -36
- package/dist/api/types/shares.d.ts +45 -0
- package/dist/{types → api/types}/sim.d.ts +23 -11
- package/dist/api/types/siteAnalytics.d.ts +285 -0
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +80 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +144 -0
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/sso.d.ts +29 -0
- package/dist/api/types/storageProvider.d.ts +30 -0
- package/dist/api/types/storyblok.d.ts +27 -0
- package/dist/{types → api/types}/streaming.d.ts +4 -25
- package/dist/api/types/systemCheck.d.ts +11 -0
- package/dist/{types → api/types}/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +7 -0
- package/dist/{types → api/types}/timelapse.d.ts +7 -11
- package/dist/{types → api/types}/user.d.ts +143 -59
- package/dist/api/types/videoWall.d.ts +66 -0
- package/dist/api/types/weather.d.ts +153 -0
- package/dist/{types → api/types}/widget.d.ts +108 -19
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +3174 -1147
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/shared/api/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
- package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
- package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
- package/dist/shared/types/components.d.ts +763 -0
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/droneUpload.d.ts +93 -0
- package/dist/shared/types/imagePlayer.d.ts +41 -0
- package/dist/shared/types/index.d.ts +9 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/report.d.ts +107 -0
- package/dist/shared/types/timeline.d.ts +10 -0
- package/dist/shared/utils/datePickerValue.d.ts +36 -0
- package/dist/shared/utils/datePresets.d.ts +31 -0
- package/package.json +7 -4
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/adminApi.d.ts +0 -313
- package/dist/api/aiApi.d.ts +0 -110
- package/dist/api/authzApi.d.ts +0 -21
- package/dist/api/evercamApi.d.ts +0 -266
- package/dist/api/evercamLabsApi.d.ts +0 -46
- package/dist/api/ingestApi.d.ts +0 -65
- package/dist/api/videoWallApi.d.ts +0 -9
- package/dist/api/weatherApi.d.ts +0 -27
- package/dist/types/360.d.ts +0 -83
- package/dist/types/aconex.d.ts +0 -45
- package/dist/types/auditLogs.d.ts +0 -99
- package/dist/types/automation.d.ts +0 -6
- package/dist/types/camera.d.ts +0 -565
- package/dist/types/comments.d.ts +0 -36
- package/dist/types/company.d.ts +0 -46
- package/dist/types/connector.d.ts +0 -16
- package/dist/types/coolify.d.ts +0 -18
- package/dist/types/copilot.d.ts +0 -157
- package/dist/types/detections.d.ts +0 -76
- package/dist/types/devices.d.ts +0 -228
- package/dist/types/drone.d.ts +0 -17
- package/dist/types/ingest.d.ts +0 -43
- package/dist/types/map.d.ts +0 -4
- package/dist/types/notification.d.ts +0 -27
- package/dist/types/nvr.d.ts +0 -36
- package/dist/types/planner.d.ts +0 -28
- package/dist/types/procore.d.ts +0 -76
- package/dist/types/project.d.ts +0 -119
- package/dist/types/shares.d.ts +0 -192
- package/dist/types/siteAnalytics.d.ts +0 -84
- package/dist/types/snapshots.d.ts +0 -50
- package/dist/types/storageServers.d.ts +0 -4
- package/dist/types/time.d.ts +0 -19
- package/dist/types/vendorModel.d.ts +0 -15
- package/dist/types/videoWall.d.ts +0 -33
- package/dist/types/weather.d.ts +0 -83
- /package/dist/api/{client → api/client}/index.d.ts +0 -0
- /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
- /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export type ActiveUsersRequestPayload = {
|
|
2
|
+
from?: string;
|
|
3
|
+
to?: string;
|
|
4
|
+
companyExid?: string;
|
|
5
|
+
projectExid?: string;
|
|
6
|
+
cameraExid?: string;
|
|
7
|
+
};
|
|
8
|
+
export type ActiveUsersResponsePayload = Array<{
|
|
9
|
+
date?: string;
|
|
10
|
+
dau?: number;
|
|
11
|
+
wau?: number;
|
|
12
|
+
mau?: number;
|
|
13
|
+
}>;
|
|
14
|
+
export declare enum ActiveUsersMetric {
|
|
15
|
+
DAU = "dau",
|
|
16
|
+
WAU = "wau",
|
|
17
|
+
MAU = "mau"
|
|
18
|
+
}
|
|
19
|
+
export type PosthogUser = {
|
|
20
|
+
id: string;
|
|
21
|
+
email: string;
|
|
22
|
+
isWeeklyActiveUser: number;
|
|
23
|
+
isMonthlyActiveUser: number;
|
|
24
|
+
eventsCount: number;
|
|
25
|
+
};
|
|
26
|
+
export type PosthogUsersRequestParams = {
|
|
27
|
+
companyExid?: string;
|
|
28
|
+
projectExid?: string;
|
|
29
|
+
cameraExid?: string;
|
|
30
|
+
productsActivityOnly?: boolean;
|
|
31
|
+
afterId?: string;
|
|
32
|
+
size?: number;
|
|
33
|
+
};
|
|
34
|
+
export type PosthogUsersResponse = {
|
|
35
|
+
data: PosthogUser[];
|
|
36
|
+
hasMore: boolean;
|
|
37
|
+
size: number;
|
|
38
|
+
};
|
|
39
|
+
export type PosthogEventsQueryParams = Partial<{
|
|
40
|
+
companyExid: string;
|
|
41
|
+
projectExid: string;
|
|
42
|
+
cameraExid: string;
|
|
43
|
+
email: string;
|
|
44
|
+
before: string;
|
|
45
|
+
after: string;
|
|
46
|
+
type: string;
|
|
47
|
+
period: string;
|
|
48
|
+
isStatsOnly: boolean;
|
|
49
|
+
whiteListedPages: string | null;
|
|
50
|
+
page: number;
|
|
51
|
+
size: number;
|
|
52
|
+
sort: string | null;
|
|
53
|
+
}>;
|
|
54
|
+
export type PosthogEventListItem = Partial<{
|
|
55
|
+
timestamp: string;
|
|
56
|
+
companyExid: string | null;
|
|
57
|
+
projectExid: string | null;
|
|
58
|
+
cameraExid: string | null;
|
|
59
|
+
email: string;
|
|
60
|
+
name: string;
|
|
61
|
+
page: string;
|
|
62
|
+
context: string;
|
|
63
|
+
action: string;
|
|
64
|
+
properties: Record<string, string>;
|
|
65
|
+
eventsCount: number;
|
|
66
|
+
}>;
|
|
67
|
+
export type PosthogEventsResponse<T = PosthogEventListItem> = {
|
|
68
|
+
data: T[];
|
|
69
|
+
size: number;
|
|
70
|
+
page: number;
|
|
71
|
+
total: number;
|
|
72
|
+
from: number;
|
|
73
|
+
to: number;
|
|
74
|
+
};
|
|
75
|
+
export type PosthogUserParams = {
|
|
76
|
+
firstname?: string;
|
|
77
|
+
lastname?: string;
|
|
78
|
+
email: string;
|
|
79
|
+
telephone?: string;
|
|
80
|
+
country?: string;
|
|
81
|
+
isAdmin?: boolean;
|
|
82
|
+
persona?: string;
|
|
83
|
+
companyExid: string;
|
|
84
|
+
companyName: string;
|
|
85
|
+
isImpersonationLogin: boolean;
|
|
86
|
+
ImpersonatedUserEmail?: string;
|
|
87
|
+
ImpersonatedUserFirstname?: string;
|
|
88
|
+
impersonatedUserLastname?: string;
|
|
89
|
+
};
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
export type ProcoreUserCompaniesResponsePayload = Array<{
|
|
2
|
+
id: number;
|
|
3
|
+
isActive?: boolean;
|
|
4
|
+
name: string;
|
|
5
|
+
}>;
|
|
6
|
+
export type ProcoreCompanyRequestPayload = {
|
|
7
|
+
companyId: number;
|
|
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
|
+
};
|
|
47
|
+
export type ProcoreUserProject = {
|
|
48
|
+
accountingProjectNumber?: number;
|
|
49
|
+
active: boolean;
|
|
50
|
+
address: string;
|
|
51
|
+
city: string;
|
|
52
|
+
company: {
|
|
53
|
+
id: number;
|
|
54
|
+
name: string;
|
|
55
|
+
};
|
|
56
|
+
completionDate: string;
|
|
57
|
+
countryCode: string;
|
|
58
|
+
county: string;
|
|
59
|
+
createdAt: string;
|
|
60
|
+
customFields?: object;
|
|
61
|
+
designatedMarketArea: string;
|
|
62
|
+
displayName: string;
|
|
63
|
+
estimatedValue: string;
|
|
64
|
+
id: number;
|
|
65
|
+
isDemo: boolean;
|
|
66
|
+
latitude: number;
|
|
67
|
+
longitude: number;
|
|
68
|
+
name: string;
|
|
69
|
+
originCode: string | number | null;
|
|
70
|
+
originData: string | null;
|
|
71
|
+
originId: number | null;
|
|
72
|
+
ownersProjectId: number | null;
|
|
73
|
+
parentJobId: number | null;
|
|
74
|
+
phone: string | number;
|
|
75
|
+
photoId: number;
|
|
76
|
+
projectBidTypeId: number | null;
|
|
77
|
+
projectNumber: string;
|
|
78
|
+
projectOwnerTypeId: number | null;
|
|
79
|
+
projectRegionId: number | null;
|
|
80
|
+
stage: string;
|
|
81
|
+
startDate: string;
|
|
82
|
+
stateCode: string;
|
|
83
|
+
storeNumber?: string;
|
|
84
|
+
timeZone: string;
|
|
85
|
+
totalValue: string;
|
|
86
|
+
updatedAt: string;
|
|
87
|
+
zip: number;
|
|
88
|
+
};
|
|
89
|
+
export type ProcoreUserProjectsResponsePayload = Array<ProcoreUserProject>;
|
|
90
|
+
export type ProcoreToolUserAccessLevel = {
|
|
91
|
+
id: ProcoreToolUserAccessLevelIds;
|
|
92
|
+
name: string;
|
|
93
|
+
};
|
|
94
|
+
export type ProcoreToolPermittedAction = {
|
|
95
|
+
id: number;
|
|
96
|
+
actionName: string;
|
|
97
|
+
label: string;
|
|
98
|
+
toolName: string;
|
|
99
|
+
};
|
|
100
|
+
export type ProcoreToolPermissions = {
|
|
101
|
+
id: number;
|
|
102
|
+
name: string;
|
|
103
|
+
friendlyName: string;
|
|
104
|
+
domainId: number;
|
|
105
|
+
tabGroup: string;
|
|
106
|
+
availableForUser: boolean;
|
|
107
|
+
url: string;
|
|
108
|
+
userAccessLevel: ProcoreToolUserAccessLevel;
|
|
109
|
+
permittedActions: Array<ProcoreToolPermittedAction>;
|
|
110
|
+
createUrl: string;
|
|
111
|
+
canCreate: boolean;
|
|
112
|
+
trial: boolean;
|
|
113
|
+
};
|
|
114
|
+
export type ProcoreUserProjectPermissionsResponsePayload = {
|
|
115
|
+
tools: Array<ProcoreToolPermissions>;
|
|
116
|
+
};
|
|
117
|
+
export type ProcoreEditedImageUploadRequestPayload = {
|
|
118
|
+
projectExid: string;
|
|
119
|
+
companyId: number;
|
|
120
|
+
projectId: number;
|
|
121
|
+
snapshot: string;
|
|
122
|
+
categoryId?: number;
|
|
123
|
+
};
|
|
124
|
+
export type ProcoreProjectAlbum = {
|
|
125
|
+
count: number;
|
|
126
|
+
coverPhoto: string | null;
|
|
127
|
+
createdAt: string;
|
|
128
|
+
id: number;
|
|
129
|
+
links: {
|
|
130
|
+
delete: string;
|
|
131
|
+
show: string;
|
|
132
|
+
update: string;
|
|
133
|
+
};
|
|
134
|
+
name: string;
|
|
135
|
+
position: number;
|
|
136
|
+
private: boolean;
|
|
137
|
+
updatedAt: string;
|
|
138
|
+
};
|
|
139
|
+
export type ProcoreProjectsAlbumsPayload = Array<ProcoreProjectAlbum>;
|
|
140
|
+
export type ProcoreObservationType = {
|
|
141
|
+
id: number;
|
|
142
|
+
name: string;
|
|
143
|
+
localizedName: string;
|
|
144
|
+
category: string;
|
|
145
|
+
categoryKey: string;
|
|
146
|
+
companyActive: boolean;
|
|
147
|
+
active: boolean;
|
|
148
|
+
kind: string;
|
|
149
|
+
parentInactive: boolean;
|
|
150
|
+
isUse: boolean;
|
|
151
|
+
nameTranslations: string;
|
|
152
|
+
};
|
|
153
|
+
export type ProcoreObservationTypesResponsePayload = Array<ProcoreObservationType>;
|
|
154
|
+
export type ProcoreObservationFormRequestPayload = {
|
|
155
|
+
projectId: number;
|
|
156
|
+
companyId: number;
|
|
157
|
+
observationType: string;
|
|
158
|
+
};
|
|
159
|
+
export type ProcoreCustomFieldOptionsRequestPayload = {
|
|
160
|
+
optionsUrl: string;
|
|
161
|
+
companyId: number;
|
|
162
|
+
};
|
|
163
|
+
export type ProcoreObservationForm = Record<string, ProcoreObservationField | ProcoreObservationCustomField>;
|
|
164
|
+
export type ProcoreObservationField = {
|
|
165
|
+
name: string;
|
|
166
|
+
required: boolean;
|
|
167
|
+
visible: boolean;
|
|
168
|
+
};
|
|
169
|
+
export type ProcoreObservationCustomField = {
|
|
170
|
+
id: number;
|
|
171
|
+
required: boolean;
|
|
172
|
+
visible: boolean;
|
|
173
|
+
name: string;
|
|
174
|
+
label: string;
|
|
175
|
+
description: string;
|
|
176
|
+
customFieldDefinitionId: number;
|
|
177
|
+
dataType: ProcoreObservationCustomFieldDataType;
|
|
178
|
+
variant: string;
|
|
179
|
+
position: number;
|
|
180
|
+
row: number;
|
|
181
|
+
column: number;
|
|
182
|
+
columnWidth: number;
|
|
183
|
+
optionsUrl: string | null;
|
|
184
|
+
defaultValue: string | null;
|
|
185
|
+
};
|
|
186
|
+
export type ProcoreNextObservationAvailableNumber = {
|
|
187
|
+
nextAvailableNumber: number;
|
|
188
|
+
};
|
|
189
|
+
export declare enum ProcoreObservationCustomFieldDataType {
|
|
190
|
+
RichText = "rich_text",
|
|
191
|
+
Date = "date",
|
|
192
|
+
DateTime = "datetime",
|
|
193
|
+
LovEntry = "lov_entry",
|
|
194
|
+
LovEntries = "lov_entries",
|
|
195
|
+
Boolean = "boolean",
|
|
196
|
+
Vendor = "vendor",
|
|
197
|
+
Decimal = "decimal",
|
|
198
|
+
String = "string",
|
|
199
|
+
LoginInformation = "login_information",
|
|
200
|
+
LoginInformations = "login_informations",
|
|
201
|
+
Dropdown = "dropdown"
|
|
202
|
+
}
|
|
203
|
+
export declare enum ProcoreObservationDefaultFieldNames {
|
|
204
|
+
Number = "number",
|
|
205
|
+
Name = "name",
|
|
206
|
+
Status = "status",
|
|
207
|
+
Trade = "tradeId",
|
|
208
|
+
Assignee = "assigneeId",
|
|
209
|
+
DueDate = "dueDate",
|
|
210
|
+
SpecificationSection = "specificationSectionId",
|
|
211
|
+
Priority = "priority",
|
|
212
|
+
Location = "locationId",
|
|
213
|
+
DistributionMembers = "distributionMemberIds",
|
|
214
|
+
Personal = "personal",
|
|
215
|
+
Hazard = "hazardId",
|
|
216
|
+
ContributingBehavior = "contributingBehaviorId",
|
|
217
|
+
ContributingCondition = "contributingConditionId",
|
|
218
|
+
Description = "description"
|
|
219
|
+
}
|
|
220
|
+
export declare enum ProcoreTools {
|
|
221
|
+
Observations = "observations",
|
|
222
|
+
ProgressPhotos = "images"
|
|
223
|
+
}
|
|
224
|
+
export declare enum ProcoreToolUserAccessLevelIds {
|
|
225
|
+
NoAccess = 1,
|
|
226
|
+
ReadOnly = 2,
|
|
227
|
+
Standard = 3,
|
|
228
|
+
Admin = 4
|
|
229
|
+
}
|
|
@@ -1,46 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}>;
|
|
13
|
-
isPaused: boolean;
|
|
1
|
+
import { Automation, AutomationEmailRecipient, DateType, PaginationParams } from "@evercam/api/types";
|
|
2
|
+
export type ProgressPhotosConfig = Partial<{
|
|
3
|
+
compareDelay: number;
|
|
4
|
+
period: number;
|
|
5
|
+
recipients: string;
|
|
6
|
+
projectId: number;
|
|
7
|
+
companyId: number;
|
|
8
|
+
categoryId: string;
|
|
9
|
+
}>;
|
|
10
|
+
export type ProgressPhotosCreateUpdateRequestPayload = Partial<{
|
|
11
|
+
cameraExids: string;
|
|
14
12
|
notifyDays: string;
|
|
13
|
+
compareDelay: number;
|
|
15
14
|
notifyTime: string;
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
provider: string;
|
|
16
|
+
type: string;
|
|
17
|
+
config: ProgressPhotosConfig;
|
|
18
|
+
subject: string;
|
|
19
|
+
isPaused: boolean;
|
|
18
20
|
timezone: string;
|
|
19
|
-
|
|
20
|
-
};
|
|
21
|
-
export type ProgressPhotosCreateUpdateRequestPayload = {
|
|
22
|
-
cameraExids?: string;
|
|
23
|
-
notifyDays?: string;
|
|
24
|
-
notifyTime?: string;
|
|
25
|
-
provider?: string;
|
|
26
|
-
config?: {
|
|
27
|
-
recipients?: string;
|
|
28
|
-
projectId?: number;
|
|
29
|
-
companyId?: number;
|
|
30
|
-
catergoryId?: string;
|
|
31
|
-
};
|
|
32
|
-
subject?: string;
|
|
33
|
-
isPaused?: boolean;
|
|
34
|
-
timezone?: string;
|
|
35
|
-
};
|
|
21
|
+
}>;
|
|
36
22
|
export type ProgressPhotosUnSubscribeParams = {
|
|
37
23
|
email: string;
|
|
38
24
|
token?: string;
|
|
39
25
|
};
|
|
40
26
|
export type ProgressPhotosResponsePayload = {
|
|
41
|
-
progressPhotos:
|
|
27
|
+
progressPhotos: Automation[];
|
|
28
|
+
};
|
|
29
|
+
export type ProgressPhotoItemResponsePayload = {
|
|
30
|
+
progressPhotos: Automation;
|
|
31
|
+
};
|
|
32
|
+
export type ProgressPhotoUpdateResponse = {
|
|
33
|
+
id: string;
|
|
34
|
+
cameraIds: string;
|
|
35
|
+
cameraNames: string;
|
|
36
|
+
requesterName: string;
|
|
37
|
+
requesterEmail: string;
|
|
38
|
+
createdAt: string;
|
|
39
|
+
notifyDays: string;
|
|
42
40
|
};
|
|
43
|
-
export declare enum
|
|
41
|
+
export declare enum AutomationDialogType {
|
|
44
42
|
Create = "create",
|
|
45
43
|
Edit = "edit",
|
|
46
44
|
Pause = "pause"
|
|
@@ -51,18 +49,20 @@ export type CameraOption = {
|
|
|
51
49
|
};
|
|
52
50
|
export interface ProgressPhotoItem {
|
|
53
51
|
id: number;
|
|
54
|
-
|
|
52
|
+
name: string;
|
|
53
|
+
type: string;
|
|
54
|
+
cameras: Array<CameraOption | string> | string;
|
|
55
55
|
insertedAt: string;
|
|
56
56
|
provider: string;
|
|
57
57
|
config: {
|
|
58
|
-
recipients: string |
|
|
58
|
+
recipients: string | AutomationEmailRecipient[];
|
|
59
59
|
sendSnapshotAs: string;
|
|
60
60
|
};
|
|
61
61
|
isPaused: boolean;
|
|
62
62
|
notifyDays: string | string[];
|
|
63
63
|
notifyTime: string;
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
apiId: string;
|
|
65
|
+
apiKey: string;
|
|
66
66
|
timezone: string;
|
|
67
67
|
exid: string;
|
|
68
68
|
fullname: string;
|
|
@@ -74,7 +74,7 @@ export type ProgressPhotosQueryParams = PaginationParams & {
|
|
|
74
74
|
timezone: string;
|
|
75
75
|
cameras: string;
|
|
76
76
|
};
|
|
77
|
-
export type progressPhotosHistoryQueryParams = {
|
|
77
|
+
export type progressPhotosHistoryQueryParams = PaginationParams & {
|
|
78
78
|
insertedAt: DateType[];
|
|
79
79
|
recipients: string;
|
|
80
80
|
subject: string;
|
|
@@ -86,5 +86,6 @@ export type ProgressPhotosHistory = {
|
|
|
86
86
|
cameraIds: string;
|
|
87
87
|
failedCameraIds: string;
|
|
88
88
|
subject: string;
|
|
89
|
-
recipients:
|
|
89
|
+
recipients: string;
|
|
90
|
+
insertedAt: string;
|
|
90
91
|
};
|