@evercam/api 1.0.0-9cdcb2c4a → 1.0.0-9dffa9592
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 +210 -10
- package/dist/api/api/adminApi.d.ts +140 -96
- package/dist/api/api/aiApi.d.ts +153 -82
- package/dist/api/api/authzApi.d.ts +34 -15
- package/dist/api/api/client/axios.d.ts +2 -1
- package/dist/api/api/client/swr/Swr.d.ts +1 -1
- package/dist/api/api/evercamApi.d.ts +148 -102
- package/dist/api/api/evercamLabsApi.d.ts +9 -7
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/ingestApi.d.ts +125 -33
- package/dist/api/api/ptzApi.d.ts +12 -3
- package/dist/api/api/videoWallApi.d.ts +7 -7
- package/dist/api/api/weatherApi.d.ts +2 -2
- package/dist/api/types/360.d.ts +291 -16
- package/dist/api/types/aconex.d.ts +104 -6
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/aiConfigs.d.ts +242 -0
- package/dist/api/types/analytics.d.ts +174 -43
- package/dist/api/types/anpr.d.ts +53 -13
- package/dist/api/types/auditLogs.d.ts +19 -1
- package/dist/api/types/authz.d.ts +107 -0
- package/dist/api/types/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +105 -1
- package/dist/api/types/axios.d.ts +19 -14
- package/dist/api/types/bim.d.ts +38 -9
- package/dist/api/types/camera.d.ts +111 -99
- package/dist/api/types/comments.d.ts +26 -11
- package/dist/api/types/company.d.ts +43 -2
- package/dist/api/types/compare.d.ts +20 -5
- package/dist/api/types/connector.d.ts +5 -5
- package/dist/api/types/coolify.d.ts +20 -2
- package/dist/api/types/copilot.d.ts +11 -9
- package/dist/api/types/credentials.d.ts +1 -0
- package/dist/api/types/detections.d.ts +23 -32
- package/dist/api/types/drone.d.ts +96 -6
- package/dist/api/types/errors.d.ts +14 -1
- package/dist/api/types/gateReport.d.ts +49 -168
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/hdd.d.ts +26 -1
- package/dist/api/types/index.d.ts +17 -2
- package/dist/api/types/ingest.d.ts +191 -4
- package/dist/api/types/kit.d.ts +83 -57
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +10 -3
- package/dist/api/types/notification.d.ts +72 -3
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/observationEvents.d.ts +61 -0
- package/dist/api/types/observations.d.ts +85 -0
- package/dist/api/types/planner.d.ts +101 -9
- package/dist/api/types/posthog.d.ts +35 -0
- package/dist/api/types/procore.d.ts +13 -6
- package/dist/api/types/progressPhoto.d.ts +6 -31
- package/dist/api/types/project.d.ts +144 -18
- package/dist/api/types/recording.d.ts +10 -15
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/roi.d.ts +3 -11
- package/dist/api/types/routeParams.d.ts +3 -1
- package/dist/api/types/router.d.ts +20 -1
- package/dist/api/types/shared.d.ts +29 -27
- package/dist/api/types/shares.d.ts +6 -157
- package/dist/api/types/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +189 -46
- package/dist/api/types/siteAnalyticsManagement.d.ts +117 -0
- package/dist/api/types/siteView.d.ts +73 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +55 -1
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/api/types/storyblok.d.ts +27 -0
- package/dist/api/types/streaming.d.ts +3 -3
- package/dist/api/types/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +4 -18
- package/dist/api/types/timelapse.d.ts +7 -11
- package/dist/api/types/user.d.ts +106 -35
- package/dist/api/types/videoWall.d.ts +47 -14
- package/dist/api/types/weather.d.ts +77 -11
- package/dist/api/types/widget.d.ts +96 -16
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/index.js +2454 -1020
- 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/types/components.d.ts +211 -35
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/imagePlayer.d.ts +10 -3
- package/dist/shared/types/index.d.ts +3 -0
- package/dist/shared/types/observations.d.ts +21 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +2 -1
- package/package.json +6 -4
- package/dist/api/types/storageServers.d.ts +0 -4
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -1,29 +1,66 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type AconexUserProject = {
|
|
2
2
|
id: number;
|
|
3
3
|
name: string;
|
|
4
4
|
shortName: string;
|
|
5
5
|
startDate: string;
|
|
6
6
|
endDate: string;
|
|
7
|
-
|
|
7
|
+
active: boolean;
|
|
8
|
+
hidden: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type AconexDocumentSchema = {
|
|
11
|
+
dataType: AconexDocumentDataType;
|
|
12
|
+
identifier: AconexIdentifiers;
|
|
13
|
+
fieldName: string;
|
|
14
|
+
modifiedFieldName?: string;
|
|
15
|
+
mandatoryStatus: AconexMandatoryStatus;
|
|
16
|
+
schemaValues?: Array<{
|
|
17
|
+
id: string;
|
|
18
|
+
value: string;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
export type AconexDocumentTypeSchema = {
|
|
22
|
+
dataType: AconexDocumentDataType;
|
|
23
|
+
identifier: AconexIdentifiers;
|
|
24
|
+
fieldName: string;
|
|
25
|
+
modifiedFieldName?: string;
|
|
26
|
+
mandatoryStatus: AconexMandatoryStatus;
|
|
27
|
+
specifications?: Array<AconexFieldSpecification>;
|
|
28
|
+
};
|
|
8
29
|
export type AconexDocumentSchemaField = {
|
|
9
30
|
dataType: AconexDocumentDataType;
|
|
10
|
-
identifier:
|
|
31
|
+
identifier: AconexIdentifiers;
|
|
11
32
|
schemaValues?: Array<{
|
|
12
33
|
id: string;
|
|
13
34
|
value: string;
|
|
14
35
|
}>;
|
|
15
36
|
fieldName: string;
|
|
37
|
+
modifiedFieldName?: string;
|
|
16
38
|
mandatoryStatus: AconexMandatoryStatus;
|
|
17
39
|
componentType?: AconexFormComponentType;
|
|
18
40
|
items?: Array<any>;
|
|
19
41
|
disabled?: boolean;
|
|
42
|
+
specifications?: Array<AconexFieldSpecification>;
|
|
43
|
+
};
|
|
44
|
+
export type AconexFormSchema = Record<AconexIdentifiers | string, AconexDocumentSchemaField>;
|
|
45
|
+
export type AconexFieldSpecification = {
|
|
46
|
+
name: string;
|
|
47
|
+
options: Array<string>;
|
|
20
48
|
};
|
|
21
49
|
export declare enum AconexDocumentDataType {
|
|
22
|
-
Long = "LONG",
|
|
23
|
-
Integer = "INTEGER",
|
|
24
50
|
String = "STRING",
|
|
25
51
|
Boolean = "BOOLEAN",
|
|
26
|
-
|
|
52
|
+
Ratio = "RATIO",
|
|
53
|
+
Integer = "INTEGER",
|
|
54
|
+
Double = "DOUBLE",
|
|
55
|
+
Long = "LONG",
|
|
56
|
+
Date = "DATE",
|
|
57
|
+
Complex = "COMPLEX",
|
|
58
|
+
SingleLineText = "SINGLE_LINE_TEXT",
|
|
59
|
+
MultiLineText = "MULTI_LINE_TEXT",
|
|
60
|
+
SingleSelect = "SINGLE_SELECT",
|
|
61
|
+
MultiSelect = "MULTI_SELECT",
|
|
62
|
+
User = "USER",
|
|
63
|
+
Number = "NUMBER"
|
|
27
64
|
}
|
|
28
65
|
export declare enum AconexFormComponentType {
|
|
29
66
|
Select = "SelectField",
|
|
@@ -43,3 +80,64 @@ export type AconexEditedImageUploadRequestPayload = {
|
|
|
43
80
|
projectExid: string;
|
|
44
81
|
snapshot: string;
|
|
45
82
|
};
|
|
83
|
+
export declare enum AconexIdentifiers {
|
|
84
|
+
DocumentNumber = "DocumentNumber",
|
|
85
|
+
DocumentTypeId = "DocumentTypeId",
|
|
86
|
+
Revision = "Revision",
|
|
87
|
+
HasFile = "HasFile",
|
|
88
|
+
AccessList = "AccessList",
|
|
89
|
+
AsBuiltRequired = "AsBuiltRequired",
|
|
90
|
+
Attribute1 = "Attribute1",
|
|
91
|
+
Attribute2 = "Attribute2",
|
|
92
|
+
Attribute3 = "Attribute3",
|
|
93
|
+
Attribute4 = "Attribute4",
|
|
94
|
+
Author = "Author",
|
|
95
|
+
AuthorisedBy = "AuthorisedBy",
|
|
96
|
+
Category = "Category",
|
|
97
|
+
Check1 = "Check1",
|
|
98
|
+
Check2 = "Check2",
|
|
99
|
+
Comments = "Comments",
|
|
100
|
+
Comments2 = "Comments2",
|
|
101
|
+
ContractNumber = "ContractNumber",
|
|
102
|
+
ContractDeliverable = "ContractDeliverable",
|
|
103
|
+
ContractorDocumentNumber = "ContractorDocumentNumber",
|
|
104
|
+
ContractorRev = "ContractorRev",
|
|
105
|
+
Date1 = "Date1",
|
|
106
|
+
Date2 = "Date2",
|
|
107
|
+
DateApproved = "DateApproved",
|
|
108
|
+
DateCreated = "DateCreated",
|
|
109
|
+
DateForReview = "DateForReview",
|
|
110
|
+
DateReviewed = "DateReviewed",
|
|
111
|
+
Discipline = "Discipline",
|
|
112
|
+
DocumentStatusId = "DocumentStatusId",
|
|
113
|
+
MilestoneDate = "MilestoneDate",
|
|
114
|
+
PackageNumber = "PackageNumber",
|
|
115
|
+
PercentageComplete = "PercentageComplete",
|
|
116
|
+
PlannedSubmissionDate = "PlannedSubmissionDate",
|
|
117
|
+
PrintSize = "PrintSize",
|
|
118
|
+
ProjectField1 = "ProjectField1",
|
|
119
|
+
ProjectField2 = "ProjectField2",
|
|
120
|
+
ProjectField3 = "ProjectField3",
|
|
121
|
+
Reference = "Reference",
|
|
122
|
+
RevisionDate = "RevisionDate",
|
|
123
|
+
Scale = "Scale",
|
|
124
|
+
SelectList1 = "SelectList1",
|
|
125
|
+
SelectList2 = "SelectList2",
|
|
126
|
+
SelectList3 = "SelectList3",
|
|
127
|
+
SelectList4 = "SelectList4",
|
|
128
|
+
SelectList5 = "SelectList5",
|
|
129
|
+
SelectList6 = "SelectList6",
|
|
130
|
+
SelectList7 = "SelectList7",
|
|
131
|
+
SelectList8 = "SelectList8",
|
|
132
|
+
SelectList9 = "SelectList9",
|
|
133
|
+
SelectList10 = "SelectList10",
|
|
134
|
+
TagNumber = "TagNumber",
|
|
135
|
+
Title = "Title",
|
|
136
|
+
ToClientDate = "ToClientDate",
|
|
137
|
+
UploadDate = "UploadDate",
|
|
138
|
+
UploadedBy = "UploadedBy",
|
|
139
|
+
Vdrcode = "Vdrcode",
|
|
140
|
+
VendorDocumentNumber = "VendorDocumentNumber",
|
|
141
|
+
VendorRev = "VendorRev",
|
|
142
|
+
AutoNumber = "AutoNumber"
|
|
143
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { JsonObject } from "@evercam/api/types";
|
|
2
|
+
export type WithZohoParams = {
|
|
3
|
+
with_zoho?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export type AdminSearchProjectItem = {
|
|
6
|
+
id: number;
|
|
7
|
+
name: string;
|
|
8
|
+
status: string;
|
|
9
|
+
exid: string;
|
|
10
|
+
featureFlags: string[];
|
|
11
|
+
};
|
|
12
|
+
export type AdminSearchItem = AdminSearchProjectItem | JsonObject;
|
|
13
|
+
export type AdminInviteRole = {
|
|
14
|
+
id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
resourceType: string;
|
|
17
|
+
};
|
|
18
|
+
export type AdminInviteAssigner = {
|
|
19
|
+
id: number;
|
|
20
|
+
email: string;
|
|
21
|
+
fullname: string;
|
|
22
|
+
};
|
|
23
|
+
export type AdminInviteAuthContextSubRole = {
|
|
24
|
+
resourceId: string;
|
|
25
|
+
roleId: number;
|
|
26
|
+
};
|
|
27
|
+
export type AdminInviteAuthContext = {
|
|
28
|
+
permissions: string[] | null;
|
|
29
|
+
subRoles: AdminInviteAuthContextSubRole[];
|
|
30
|
+
hasOverride: boolean;
|
|
31
|
+
};
|
|
32
|
+
export type AdminInvite = {
|
|
33
|
+
id: number;
|
|
34
|
+
message: string | null;
|
|
35
|
+
status: number;
|
|
36
|
+
email: string;
|
|
37
|
+
key: string;
|
|
38
|
+
updatedAt: string;
|
|
39
|
+
role: AdminInviteRole;
|
|
40
|
+
createdAt: string;
|
|
41
|
+
resourceId: string;
|
|
42
|
+
assigner: AdminInviteAssigner;
|
|
43
|
+
sentCount: number;
|
|
44
|
+
lastSentAt: string;
|
|
45
|
+
authContext: AdminInviteAuthContext;
|
|
46
|
+
statusName: string;
|
|
47
|
+
};
|
|
48
|
+
export type ZohoDeskTicketSearchResponse = {
|
|
49
|
+
data: JsonObject[];
|
|
50
|
+
count: number;
|
|
51
|
+
};
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { PaginatedItems, PaginationParams } from "@evercam/api/types";
|
|
2
|
+
export declare enum AiApp {
|
|
3
|
+
GateReport = "gate_report",
|
|
4
|
+
Ppe = "ppe",
|
|
5
|
+
SiteAnalytics = "site_analytics"
|
|
6
|
+
}
|
|
7
|
+
export declare enum AiProvider {
|
|
8
|
+
Gemini = "gemini",
|
|
9
|
+
OpenAi = "openai",
|
|
10
|
+
Anthropic = "anthropic"
|
|
11
|
+
}
|
|
12
|
+
export declare enum AiConfigsPromptDialogMode {
|
|
13
|
+
Create = "create",
|
|
14
|
+
Edit = "edit",
|
|
15
|
+
View = "view",
|
|
16
|
+
Subprompt = "subprompt"
|
|
17
|
+
}
|
|
18
|
+
export declare enum AiConfigsKeyDialogMode {
|
|
19
|
+
Create = "create",
|
|
20
|
+
Rotate = "rotate",
|
|
21
|
+
Rename = "rename"
|
|
22
|
+
}
|
|
23
|
+
export interface AiAppConfig {
|
|
24
|
+
bg: string;
|
|
25
|
+
fg: string;
|
|
26
|
+
border: string;
|
|
27
|
+
icon: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const AI_APP_CONFIGS: Record<AiApp | "generic", AiAppConfig>;
|
|
30
|
+
export interface AiProviderConfig {
|
|
31
|
+
bg: string;
|
|
32
|
+
fg: string;
|
|
33
|
+
icon: string;
|
|
34
|
+
}
|
|
35
|
+
export declare const AI_PROVIDER_CONFIGS: Record<AiProvider, AiProviderConfig>;
|
|
36
|
+
export declare enum AiPromptModel {
|
|
37
|
+
Gemini3Pro = "gemini-3-pro",
|
|
38
|
+
Gemini3FlashPreview = "gemini-3-flash-preview",
|
|
39
|
+
Gemini25Pro = "gemini-2.5-pro",
|
|
40
|
+
Gemini25Flash = "gemini-2.5-flash",
|
|
41
|
+
Gemini20Flash = "gemini-2.0-flash",
|
|
42
|
+
Gpt5 = "gpt-5",
|
|
43
|
+
Gpt5Mini = "gpt-5-mini",
|
|
44
|
+
Gpt4o = "gpt-4o",
|
|
45
|
+
Gpt4oMini = "gpt-4o-mini",
|
|
46
|
+
ClaudeOpus45 = "claude-opus-4-5",
|
|
47
|
+
ClaudeSonnet46 = "claude-sonnet-4-6",
|
|
48
|
+
ClaudeHaiku45 = "claude-haiku-4-5"
|
|
49
|
+
}
|
|
50
|
+
export declare enum AiPromptType {
|
|
51
|
+
Prompt = "prompt",
|
|
52
|
+
Parent = "parent",
|
|
53
|
+
Subprompt = "subprompt"
|
|
54
|
+
}
|
|
55
|
+
export interface AiPrompt {
|
|
56
|
+
id: number;
|
|
57
|
+
title: string | null;
|
|
58
|
+
purpose: string | null;
|
|
59
|
+
app: string | null;
|
|
60
|
+
model: string | null;
|
|
61
|
+
prompt: string;
|
|
62
|
+
outputSchema: Record<string, unknown> | null;
|
|
63
|
+
createdBy: string;
|
|
64
|
+
createdAt: string;
|
|
65
|
+
updatedAt: string;
|
|
66
|
+
promptType: AiPromptType;
|
|
67
|
+
parentId: number | null;
|
|
68
|
+
subpromptCount: number;
|
|
69
|
+
}
|
|
70
|
+
export interface AiPromptCreatePayload {
|
|
71
|
+
title?: string | null;
|
|
72
|
+
purpose: string;
|
|
73
|
+
app: string;
|
|
74
|
+
model?: string | null;
|
|
75
|
+
prompt: string;
|
|
76
|
+
outputSchema?: Record<string, unknown> | null;
|
|
77
|
+
promptType?: AiPromptType.Prompt | AiPromptType.Parent;
|
|
78
|
+
}
|
|
79
|
+
export interface AiPromptUpdatePayload {
|
|
80
|
+
title?: string | null;
|
|
81
|
+
purpose?: string;
|
|
82
|
+
app?: string;
|
|
83
|
+
model?: string | null;
|
|
84
|
+
prompt?: string;
|
|
85
|
+
outputSchema?: Record<string, unknown> | null;
|
|
86
|
+
}
|
|
87
|
+
export type AiPromptQueryParams = PaginationParams & {
|
|
88
|
+
app?: string;
|
|
89
|
+
purpose?: string;
|
|
90
|
+
model?: string;
|
|
91
|
+
search?: string;
|
|
92
|
+
createdBy?: string;
|
|
93
|
+
promptType?: AiPromptType;
|
|
94
|
+
includeSubprompts?: boolean;
|
|
95
|
+
};
|
|
96
|
+
export interface AiSubpromptCreatePayload {
|
|
97
|
+
title?: string | null;
|
|
98
|
+
purpose: string;
|
|
99
|
+
model?: string | null;
|
|
100
|
+
prompt: string;
|
|
101
|
+
outputSchema?: Record<string, unknown> | null;
|
|
102
|
+
}
|
|
103
|
+
export type AiPromptListResponse = PaginatedItems<AiPrompt>;
|
|
104
|
+
export interface AiPromptCreateResponse {
|
|
105
|
+
created: boolean;
|
|
106
|
+
data: AiPrompt;
|
|
107
|
+
message: string;
|
|
108
|
+
}
|
|
109
|
+
export interface AiPromptUpdateResponse {
|
|
110
|
+
updated: boolean;
|
|
111
|
+
id: number | string;
|
|
112
|
+
message: string;
|
|
113
|
+
}
|
|
114
|
+
export interface AiPromptDeleteResponse {
|
|
115
|
+
deleted: boolean;
|
|
116
|
+
count: number;
|
|
117
|
+
message: string;
|
|
118
|
+
}
|
|
119
|
+
export interface AiApiKey {
|
|
120
|
+
id: number;
|
|
121
|
+
projectExid: string;
|
|
122
|
+
provider: string;
|
|
123
|
+
name: string;
|
|
124
|
+
purpose: string;
|
|
125
|
+
enabled: boolean;
|
|
126
|
+
autoGenerated: boolean;
|
|
127
|
+
firstUsedAt: string | null;
|
|
128
|
+
lastUsedAt: string | null;
|
|
129
|
+
insertedAt: string;
|
|
130
|
+
updatedAt: string;
|
|
131
|
+
}
|
|
132
|
+
export interface AiApiKeyCreatePayload {
|
|
133
|
+
projectExid: string;
|
|
134
|
+
provider: string;
|
|
135
|
+
name?: string;
|
|
136
|
+
purpose?: string;
|
|
137
|
+
apiKey?: string;
|
|
138
|
+
enabled?: boolean;
|
|
139
|
+
}
|
|
140
|
+
export interface AiApiKeyUpdatePayload {
|
|
141
|
+
name?: string;
|
|
142
|
+
enabled?: boolean;
|
|
143
|
+
apiKey?: string;
|
|
144
|
+
}
|
|
145
|
+
export type AiApiKeyQueryParams = {
|
|
146
|
+
projectExid?: string;
|
|
147
|
+
provider?: string;
|
|
148
|
+
purpose?: string;
|
|
149
|
+
enabled?: boolean;
|
|
150
|
+
};
|
|
151
|
+
export interface AiApiKeyCreateResponse {
|
|
152
|
+
created: boolean;
|
|
153
|
+
data: AiApiKey;
|
|
154
|
+
message: string;
|
|
155
|
+
}
|
|
156
|
+
export interface AiApiKeyUpdateResponse {
|
|
157
|
+
updated: boolean;
|
|
158
|
+
id: number | string;
|
|
159
|
+
message: string;
|
|
160
|
+
}
|
|
161
|
+
export interface AiApiKeyDeleteResponse {
|
|
162
|
+
deleted: boolean;
|
|
163
|
+
count: number;
|
|
164
|
+
message: string;
|
|
165
|
+
}
|
|
166
|
+
export declare enum AiObservationFeasibilityStatus {
|
|
167
|
+
Prod = "prod",
|
|
168
|
+
Beta = "beta",
|
|
169
|
+
Parked = "parked"
|
|
170
|
+
}
|
|
171
|
+
export declare enum AiObservationTimeDetection {
|
|
172
|
+
PerSecond = "per_second",
|
|
173
|
+
PerMinute = "per_minute",
|
|
174
|
+
Hourly = "hourly",
|
|
175
|
+
Daily = "daily"
|
|
176
|
+
}
|
|
177
|
+
export interface AiObservationFeasibilityConfig {
|
|
178
|
+
bg: string;
|
|
179
|
+
fg: string;
|
|
180
|
+
border: string;
|
|
181
|
+
label: string;
|
|
182
|
+
}
|
|
183
|
+
export declare const AI_OBSERVATION_FEASIBILITY_CONFIGS: Record<AiObservationFeasibilityStatus, AiObservationFeasibilityConfig>;
|
|
184
|
+
export interface AiObservationType {
|
|
185
|
+
id: number;
|
|
186
|
+
observationCode: string;
|
|
187
|
+
name: string;
|
|
188
|
+
description: string | null;
|
|
189
|
+
type: string;
|
|
190
|
+
rules: Record<string, unknown> | null;
|
|
191
|
+
timeDetection: string | null;
|
|
192
|
+
every: number | null;
|
|
193
|
+
severity: number | null;
|
|
194
|
+
feasibilityStatus: AiObservationFeasibilityStatus;
|
|
195
|
+
promptId: number | null;
|
|
196
|
+
promptName: string | null;
|
|
197
|
+
insertedAt: string;
|
|
198
|
+
updatedAt: string;
|
|
199
|
+
}
|
|
200
|
+
export interface AiObservationTypeCreatePayload {
|
|
201
|
+
observationCode: string;
|
|
202
|
+
name: string;
|
|
203
|
+
description?: string | null;
|
|
204
|
+
type: string;
|
|
205
|
+
rules?: Record<string, unknown> | null;
|
|
206
|
+
timeDetection?: string | null;
|
|
207
|
+
every?: number | null;
|
|
208
|
+
severity?: number | null;
|
|
209
|
+
feasibilityStatus: AiObservationFeasibilityStatus;
|
|
210
|
+
promptId?: number | null;
|
|
211
|
+
}
|
|
212
|
+
export type AiObservationTypeUpdatePayload = Partial<Omit<AiObservationTypeCreatePayload, "observationCode">>;
|
|
213
|
+
export type AiObservationTypeQueryParams = {
|
|
214
|
+
search?: string;
|
|
215
|
+
feasibilityStatus?: string;
|
|
216
|
+
type?: string;
|
|
217
|
+
page?: number;
|
|
218
|
+
limit?: number;
|
|
219
|
+
};
|
|
220
|
+
export interface AiObservationTypeListResponse {
|
|
221
|
+
items: AiObservationType[];
|
|
222
|
+
total: number;
|
|
223
|
+
page: number;
|
|
224
|
+
limit: number;
|
|
225
|
+
from: number;
|
|
226
|
+
to: number;
|
|
227
|
+
}
|
|
228
|
+
export interface AiObservationTypeCreateResponse {
|
|
229
|
+
created: boolean;
|
|
230
|
+
data: AiObservationType;
|
|
231
|
+
message: string;
|
|
232
|
+
}
|
|
233
|
+
export interface AiObservationTypeUpdateResponse {
|
|
234
|
+
updated: boolean;
|
|
235
|
+
id: number | string;
|
|
236
|
+
message: string;
|
|
237
|
+
}
|
|
238
|
+
export interface AiObservationTypeDeleteResponse {
|
|
239
|
+
deleted: boolean;
|
|
240
|
+
count: number;
|
|
241
|
+
message: string;
|
|
242
|
+
}
|