@automateinc/fleet-types 1.0.81-dev.e0e9a5b → 1.0.81

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.
@@ -0,0 +1,17 @@
1
+ export interface ICallEntity {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt?: string;
5
+
6
+ number: string;
7
+
8
+ type: "BUILDING" | "CLIENT" | "EMPLOYEE" | "OTHER" | "USER" | null;
9
+
10
+ employeeId: string | null;
11
+ buildingId: string | null;
12
+ clientId: string | null;
13
+ userId: string | null;
14
+
15
+ otherCaller?: string | null;
16
+ metadata?: any;
17
+ }
@@ -10,10 +10,7 @@ export interface ICallLog {
10
10
 
11
11
  status: "MISSED" | "ANSWERED" | "REJECTED" | "FAILED" | "NO_ANSWER";
12
12
 
13
- employeeContactId?: string;
14
- clientContactId?: string;
15
-
16
- otherCaller?: string;
13
+ callEntityId?: string;
17
14
 
18
15
  userId?: string;
19
16
 
@@ -52,6 +52,7 @@ export * from "./building-contact";
52
52
  export * from "./building-lease";
53
53
  export * from "./building-lease-payment";
54
54
  export * from "./bunk";
55
+ export * from "./call-entity";
55
56
  export * from "./call-log";
56
57
  export * from "./ceiling";
57
58
  export * from "./client";
@@ -189,7 +190,6 @@ export * from "./shift";
189
190
  export * from "./shift-type";
190
191
  export * from "./signing-mode";
191
192
  export * from "./standard-operating-procedure";
192
- export * from "./structured-content";
193
193
  export * from "./tag";
194
194
  export * from "./tag-color";
195
195
  export * from "./team";
@@ -131,6 +131,7 @@ export type IModel =
131
131
  | "report"
132
132
  | "reportComment"
133
133
  | "reportCommentReaction"
134
+ | "callEntity"
134
135
  | "callLog"
135
136
  | "notificationToken"
136
137
  | "notification"
package/package.json CHANGED
@@ -52,5 +52,5 @@
52
52
  "test": "echo \"Error: no test specified\" && exit 1"
53
53
  },
54
54
  "types": "dist/types/index.d.ts",
55
- "version": "1.0.81-dev.e0e9a5b"
55
+ "version": "1.0.81"
56
56
  }
package/AGENTS.md DELETED
@@ -1,13 +0,0 @@
1
- # Repository Agent Instructions (`fleet-types`)
2
-
3
- ## Purpose
4
-
5
- This package defines reusable base Fleet TypeScript types.
6
-
7
- ## Rules
8
-
9
- 1. Base types in `fleet-types` must only include scalar/model-owned fields.
10
- 2. Do not add relation fields to base types.
11
- 3. Do not add nested related model shapes such as `history?: IFile[]` to base types.
12
- 4. If a frontend or endpoint needs enriched relation data, define that as a local response type in the consuming app instead of expanding the shared base type.
13
- 5. Follow the nearest existing declaration pattern in `dist/types` for naming and field shape.
@@ -1,174 +0,0 @@
1
- import { IModel } from "./models";
2
-
3
- export type StructuredContentTextVariant = "H1" | "H2" | "H3" | "H4" | "H5" | "H6" | "PARAGRAPH" | "TEXT";
4
- export type StructuredContentLinkVariant = "BUTTON" | "LINK";
5
- export type StructuredContentTableColumnType =
6
- | "BOOLEAN"
7
- | "DATE"
8
- | "DATETIME"
9
- | "DEFAULT_AVATAR"
10
- | "LINK"
11
- | "NUMBER"
12
- | "TAG"
13
- | "TEXT"
14
- | "TIME";
15
- export type StructuredContentTableSortType = "date" | "number" | "string";
16
- export type StructuredContentTableToolbarFilterType = "DATE_RANGE" | "SELECT";
17
- export type StructuredContentLayoutWidth = "auto" | "full" | "half" | "third";
18
- export type StructuredContentLayoutAlign = "center" | "end" | "start";
19
- export type StructuredContentLayoutSpacing = "lg" | "md" | "none" | "sm";
20
- export type StructuredContentTagTone = "danger" | "default" | "info" | "success" | "warning";
21
-
22
- export interface IStructuredContentTagValue {
23
- label: string;
24
- tone?: StructuredContentTagTone;
25
- }
26
-
27
- export interface IStructuredContentDefaultAvatarValue {
28
- inactive?: boolean;
29
- onLeave?: boolean;
30
- src: string;
31
- }
32
-
33
- export interface IStructuredContentNodeLayout {
34
- align?: StructuredContentLayoutAlign;
35
- gap?: StructuredContentLayoutSpacing;
36
- hidden?: boolean;
37
- marginBottom?: StructuredContentLayoutSpacing;
38
- marginTop?: StructuredContentLayoutSpacing;
39
- paddingX?: StructuredContentLayoutSpacing;
40
- paddingY?: StructuredContentLayoutSpacing;
41
- width?: StructuredContentLayoutWidth;
42
- }
43
-
44
- export interface IStructuredContentTableToolbarFilter {
45
- columnKey: string;
46
- type?: StructuredContentTableToolbarFilterType;
47
- }
48
-
49
- export interface IStructuredContentTableToolbar {
50
- filters?: IStructuredContentTableToolbarFilter[];
51
- search?: boolean;
52
- }
53
-
54
- export interface IStructuredContentTablePagination {
55
- pageSize?: number;
56
- }
57
-
58
- export interface IStructuredContentTableColumn {
59
- config?: {
60
- size?: number;
61
- };
62
- id: string;
63
- name: string;
64
- sortType?: StructuredContentTableSortType;
65
- sortable?: boolean;
66
- type: StructuredContentTableColumnType;
67
- }
68
-
69
- export interface IStructuredContentNodeBase {
70
- id: string;
71
- layout?: IStructuredContentNodeLayout;
72
- type: "COLLAPSE" | "DEFAULT_AVATAR" | "FILES" | "LINK" | "SPACE" | "TABLE" | "TAG" | "TEXT";
73
- }
74
-
75
- export interface IStructuredContentCollapseNode extends IStructuredContentNodeBase {
76
- children?: IStructuredContentNode[];
77
- config?: {
78
- title?: string;
79
- };
80
- type: "COLLAPSE";
81
- }
82
-
83
- export interface IStructuredContentFilesNode extends IStructuredContentNodeBase {
84
- config?: {
85
- source?: "HISTORY";
86
- };
87
- type: "FILES";
88
- }
89
-
90
- export interface IStructuredContentDefaultAvatarNode extends IStructuredContentNodeBase {
91
- config?: {
92
- size?: number;
93
- };
94
- type: "DEFAULT_AVATAR";
95
- }
96
-
97
- export interface IStructuredContentSpaceNode extends IStructuredContentNodeBase {
98
- children?: IStructuredContentNode[];
99
- type: "SPACE";
100
- }
101
-
102
- export interface IStructuredContentTextNode extends IStructuredContentNodeBase {
103
- config?: {
104
- variant?: StructuredContentTextVariant;
105
- };
106
- type: "TEXT";
107
- }
108
-
109
- export interface IStructuredContentTagNode extends IStructuredContentNodeBase {
110
- config?: {
111
- tone?: StructuredContentTagTone;
112
- };
113
- type: "TAG";
114
- }
115
-
116
- export interface IStructuredContentLinkNode extends IStructuredContentNodeBase {
117
- config?: {
118
- variant?: StructuredContentLinkVariant;
119
- };
120
- type: "LINK";
121
- }
122
-
123
- export interface IStructuredContentTableNode extends IStructuredContentNodeBase {
124
- config?: {
125
- columns?: IStructuredContentTableColumn[];
126
- pagination?: IStructuredContentTablePagination;
127
- toolbar?: IStructuredContentTableToolbar;
128
- };
129
- type: "TABLE";
130
- }
131
-
132
- export type IStructuredContentNode =
133
- | IStructuredContentCollapseNode
134
- | IStructuredContentDefaultAvatarNode
135
- | IStructuredContentFilesNode
136
- | IStructuredContentLinkNode
137
- | IStructuredContentSpaceNode
138
- | IStructuredContentTagNode
139
- | IStructuredContentTableNode
140
- | IStructuredContentTextNode;
141
-
142
- export interface IStructuredContentLinkValue {
143
- href: string;
144
- target?: string;
145
- title: string;
146
- }
147
-
148
- export type StructuredContentPrimitiveValue = boolean | number | string | null;
149
- export type StructuredContentAvatarValue = IStructuredContentDefaultAvatarValue;
150
- export type StructuredContentTaggableValue = IStructuredContentTagValue | StructuredContentPrimitiveValue;
151
- export type IStructuredContentTableRow = Record<
152
- string,
153
- IStructuredContentLinkValue | StructuredContentAvatarValue | StructuredContentTaggableValue
154
- >;
155
- export type StructuredContentDataValue =
156
- | IStructuredContentDefaultAvatarValue
157
- | IStructuredContentLinkValue
158
- | IStructuredContentTagValue
159
- | IStructuredContentTableRow[]
160
- | StructuredContentPrimitiveValue;
161
- export type IStructuredContentData = Record<string, StructuredContentDataValue>;
162
-
163
- export interface IStructuredContent {
164
- createdAt: string;
165
- data: IStructuredContentData;
166
- id: string;
167
- key: string;
168
- metadata?: unknown;
169
- rawData: unknown;
170
- relation: IModel;
171
- relationId: string;
172
- structure: IStructuredContentNode[];
173
- updatedAt?: string;
174
- }