@automateinc/fleet-types 1.0.81-dev.3bc0cf4 → 1.0.81-dev.c05c289

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.
@@ -1,10 +1,17 @@
1
1
  export type StructuredContentTextVariant = "H1" | "H2" | "H3" | "H4" | "H5" | "H6" | "PARAGRAPH" | "TEXT";
2
2
  export type StructuredContentLinkVariant = "BUTTON" | "LINK";
3
- export type StructuredContentTableColumnType = "BOOLEAN" | "DATE" | "DATETIME" | "LINK" | "NUMBER" | "TEXT" | "TIME";
3
+ export type StructuredContentTableColumnType = "BOOLEAN" | "DATE" | "DATETIME" | "LINK" | "NUMBER" | "TAG" | "TEXT" | "TIME";
4
4
  export type StructuredContentTableSortType = "date" | "number" | "string";
5
+ export type StructuredContentTableToolbarFilterType = "DATE_RANGE" | "SELECT";
5
6
  export type StructuredContentLayoutWidth = "auto" | "full" | "half" | "third";
6
7
  export type StructuredContentLayoutAlign = "center" | "end" | "start";
7
8
  export type StructuredContentLayoutSpacing = "lg" | "md" | "none" | "sm";
9
+ export type StructuredContentTagTone = "danger" | "default" | "info" | "success" | "warning";
10
+
11
+ export interface IStructuredContentTagValue {
12
+ label: string;
13
+ tone?: StructuredContentTagTone;
14
+ }
8
15
 
9
16
  export interface IStructuredContentNodeLayout {
10
17
  align?: StructuredContentLayoutAlign;
@@ -19,6 +26,7 @@ export interface IStructuredContentNodeLayout {
19
26
 
20
27
  export interface IStructuredContentTableToolbarFilter {
21
28
  columnKey: string;
29
+ type?: StructuredContentTableToolbarFilterType;
22
30
  }
23
31
 
24
32
  export interface IStructuredContentTableToolbar {
@@ -26,6 +34,10 @@ export interface IStructuredContentTableToolbar {
26
34
  search?: boolean;
27
35
  }
28
36
 
37
+ export interface IStructuredContentTablePagination {
38
+ pageSize?: number;
39
+ }
40
+
29
41
  export interface IStructuredContentTableColumn {
30
42
  id: string;
31
43
  name: string;
@@ -37,7 +49,7 @@ export interface IStructuredContentTableColumn {
37
49
  export interface IStructuredContentNodeBase {
38
50
  id: string;
39
51
  layout?: IStructuredContentNodeLayout;
40
- type: "COLLAPSE" | "FILES" | "LINK" | "SPACE" | "TABLE" | "TEXT";
52
+ type: "COLLAPSE" | "FILES" | "LINK" | "SPACE" | "TABLE" | "TAG" | "TEXT";
41
53
  }
42
54
 
43
55
  export interface IStructuredContentCollapseNode extends IStructuredContentNodeBase {
@@ -67,6 +79,13 @@ export interface IStructuredContentTextNode extends IStructuredContentNodeBase {
67
79
  type: "TEXT";
68
80
  }
69
81
 
82
+ export interface IStructuredContentTagNode extends IStructuredContentNodeBase {
83
+ config?: {
84
+ tone?: StructuredContentTagTone;
85
+ };
86
+ type: "TAG";
87
+ }
88
+
70
89
  export interface IStructuredContentLinkNode extends IStructuredContentNodeBase {
71
90
  config?: {
72
91
  variant?: StructuredContentLinkVariant;
@@ -77,6 +96,7 @@ export interface IStructuredContentLinkNode extends IStructuredContentNodeBase {
77
96
  export interface IStructuredContentTableNode extends IStructuredContentNodeBase {
78
97
  config?: {
79
98
  columns?: IStructuredContentTableColumn[];
99
+ pagination?: IStructuredContentTablePagination;
80
100
  toolbar?: IStructuredContentTableToolbar;
81
101
  };
82
102
  type: "TABLE";
@@ -87,6 +107,7 @@ export type IStructuredContentNode =
87
107
  | IStructuredContentFilesNode
88
108
  | IStructuredContentLinkNode
89
109
  | IStructuredContentSpaceNode
110
+ | IStructuredContentTagNode
90
111
  | IStructuredContentTableNode
91
112
  | IStructuredContentTextNode;
92
113
 
@@ -97,9 +118,11 @@ export interface IStructuredContentLinkValue {
97
118
  }
98
119
 
99
120
  export type StructuredContentPrimitiveValue = boolean | number | string | null;
100
- export type IStructuredContentTableRow = Record<string, IStructuredContentLinkValue | StructuredContentPrimitiveValue>;
121
+ export type StructuredContentTaggableValue = IStructuredContentTagValue | StructuredContentPrimitiveValue;
122
+ export type IStructuredContentTableRow = Record<string, IStructuredContentLinkValue | StructuredContentTaggableValue>;
101
123
  export type StructuredContentDataValue =
102
124
  | IStructuredContentLinkValue
125
+ | IStructuredContentTagValue
103
126
  | IStructuredContentTableRow[]
104
127
  | StructuredContentPrimitiveValue;
105
128
  export type IStructuredContentData = Record<string, StructuredContentDataValue>;
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.3bc0cf4"
55
+ "version": "1.0.81-dev.c05c289"
56
56
  }