@cellaware/utils 8.6.32 → 8.6.33
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/dist/chatwms/teams.d.ts +0 -57
- package/dist/chatwms/teams.js +47 -45
- package/package.json +1 -1
package/dist/chatwms/teams.d.ts
CHANGED
|
@@ -42,17 +42,6 @@ export declare function createTeamsReportBriefCard(briefMarkdown: string, report
|
|
|
42
42
|
size: string;
|
|
43
43
|
isSubtle: boolean;
|
|
44
44
|
wrap: boolean;
|
|
45
|
-
} | {
|
|
46
|
-
type: string;
|
|
47
|
-
layouts: {
|
|
48
|
-
type: string;
|
|
49
|
-
horizontalItemsAlignment: string;
|
|
50
|
-
minItemWidth: string;
|
|
51
|
-
}[];
|
|
52
|
-
items: {
|
|
53
|
-
type: string;
|
|
54
|
-
text: string;
|
|
55
|
-
}[];
|
|
56
45
|
} | {
|
|
57
46
|
type: string;
|
|
58
47
|
items: {
|
|
@@ -72,17 +61,6 @@ export declare function createTeamsReportTableCard(lineTitle: string, table: any
|
|
|
72
61
|
type: string;
|
|
73
62
|
text: string;
|
|
74
63
|
size: string;
|
|
75
|
-
} | {
|
|
76
|
-
type: string;
|
|
77
|
-
layouts: {
|
|
78
|
-
type: string;
|
|
79
|
-
horizontalItemsAlignment: string;
|
|
80
|
-
minItemWidth: string;
|
|
81
|
-
}[];
|
|
82
|
-
items: {
|
|
83
|
-
type: string;
|
|
84
|
-
text: string;
|
|
85
|
-
}[];
|
|
86
64
|
} | {
|
|
87
65
|
type: string;
|
|
88
66
|
roundedCorners: boolean;
|
|
@@ -108,17 +86,6 @@ export declare function createTeamsReportValueCard(lineTitle: string, columnName
|
|
|
108
86
|
size: string;
|
|
109
87
|
isSubtle: boolean;
|
|
110
88
|
wrap: boolean;
|
|
111
|
-
} | {
|
|
112
|
-
type: string;
|
|
113
|
-
layouts: {
|
|
114
|
-
type: string;
|
|
115
|
-
horizontalItemsAlignment: string;
|
|
116
|
-
minItemWidth: string;
|
|
117
|
-
}[];
|
|
118
|
-
items: {
|
|
119
|
-
type: string;
|
|
120
|
-
text: string;
|
|
121
|
-
}[];
|
|
122
89
|
} | {
|
|
123
90
|
type: string;
|
|
124
91
|
roundedCorners: boolean;
|
|
@@ -151,17 +118,6 @@ export declare function createTeamsReportChartCard(lineTitle: string, png: strin
|
|
|
151
118
|
size: string;
|
|
152
119
|
isSubtle: boolean;
|
|
153
120
|
wrap: boolean;
|
|
154
|
-
} | {
|
|
155
|
-
type: string;
|
|
156
|
-
layouts: {
|
|
157
|
-
type: string;
|
|
158
|
-
horizontalItemsAlignment: string;
|
|
159
|
-
minItemWidth: string;
|
|
160
|
-
}[];
|
|
161
|
-
items: {
|
|
162
|
-
type: string;
|
|
163
|
-
text: string;
|
|
164
|
-
}[];
|
|
165
121
|
} | {
|
|
166
122
|
type: string;
|
|
167
123
|
url: string;
|
|
@@ -177,19 +133,6 @@ export declare function createTeamsAlertTableCard(condition: string, rows: any[]
|
|
|
177
133
|
type: string;
|
|
178
134
|
text: string;
|
|
179
135
|
size: string;
|
|
180
|
-
} | {
|
|
181
|
-
type: string;
|
|
182
|
-
items: ({
|
|
183
|
-
type: string;
|
|
184
|
-
text: string;
|
|
185
|
-
size: string;
|
|
186
|
-
style: string;
|
|
187
|
-
} | {
|
|
188
|
-
type: string;
|
|
189
|
-
text: string;
|
|
190
|
-
size?: undefined;
|
|
191
|
-
style?: undefined;
|
|
192
|
-
})[];
|
|
193
136
|
} | {
|
|
194
137
|
type: string;
|
|
195
138
|
roundedCorners: boolean;
|
package/dist/chatwms/teams.js
CHANGED
|
@@ -23,41 +23,43 @@ function createTeamsSummaryItem(summary) {
|
|
|
23
23
|
wrap: true
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
function createTeamsReportSourceItem(reportTitle) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
26
|
+
// function createTeamsReportSourceItem(reportTitle: string) {
|
|
27
|
+
// return {
|
|
28
|
+
// type: "Container",
|
|
29
|
+
// // layouts: [
|
|
30
|
+
// // {
|
|
31
|
+
// // type: "Layout.Flow",
|
|
32
|
+
// // horizontalItemsAlignment: "Left",
|
|
33
|
+
// // minItemWidth: "0px"
|
|
34
|
+
// // }
|
|
35
|
+
// // ],
|
|
36
|
+
// items: [
|
|
37
|
+
// {
|
|
38
|
+
// type: "TextBlock",
|
|
39
|
+
// text: `Report: **${reportTitle}**`,
|
|
40
|
+
// size: "Small",
|
|
41
|
+
// }
|
|
42
|
+
// ]
|
|
43
|
+
// };
|
|
44
|
+
// }
|
|
45
|
+
// function createTeamsAlertSourceItem(alertTitle: string) {
|
|
46
|
+
// return {
|
|
47
|
+
// type: "Container",
|
|
48
|
+
// items: [
|
|
49
|
+
// {
|
|
50
|
+
// type: "Badge",
|
|
51
|
+
// text: "Alert",
|
|
52
|
+
// size: "Large",
|
|
53
|
+
// style: "Attention"
|
|
54
|
+
// },
|
|
55
|
+
// {
|
|
56
|
+
// type: "TextBlock",
|
|
57
|
+
// text: `Alert: **${alertTitle}**`,
|
|
58
|
+
// size: "Small",
|
|
59
|
+
// }
|
|
60
|
+
// ]
|
|
61
|
+
// };
|
|
62
|
+
// }
|
|
61
63
|
export function createTeamsTableItem(rows) {
|
|
62
64
|
if (rows.length === 0) {
|
|
63
65
|
return [];
|
|
@@ -75,7 +77,7 @@ export function createTeamsReportBriefCard(briefMarkdown, reportTitle) {
|
|
|
75
77
|
version: "1.5",
|
|
76
78
|
msteams: { width: "Full" },
|
|
77
79
|
body: [
|
|
78
|
-
createTeamsTitleItem(
|
|
80
|
+
createTeamsTitleItem(`Brief - ${reportTitle}`),
|
|
79
81
|
{
|
|
80
82
|
type: "Container",
|
|
81
83
|
items: [
|
|
@@ -87,7 +89,7 @@ export function createTeamsReportBriefCard(briefMarkdown, reportTitle) {
|
|
|
87
89
|
]
|
|
88
90
|
},
|
|
89
91
|
createTeamsSummaryItem('ChatWMS can make mistakes. [Check important info.](https://chatwms.io/user-manual/chatwms/disclaimer)'),
|
|
90
|
-
createTeamsReportSourceItem(reportTitle)
|
|
92
|
+
// createTeamsReportSourceItem(reportTitle)
|
|
91
93
|
]
|
|
92
94
|
};
|
|
93
95
|
}
|
|
@@ -97,7 +99,7 @@ export function createTeamsReportTableCard(lineTitle, table, summary, reportTitl
|
|
|
97
99
|
version: "1.5",
|
|
98
100
|
msteams: { width: "Full" },
|
|
99
101
|
body: [
|
|
100
|
-
createTeamsTitleItem(lineTitle),
|
|
102
|
+
createTeamsTitleItem(`${lineTitle} - ${reportTitle}`),
|
|
101
103
|
createTeamsTableQualifierItem(),
|
|
102
104
|
{
|
|
103
105
|
type: "Table",
|
|
@@ -107,7 +109,7 @@ export function createTeamsReportTableCard(lineTitle, table, summary, reportTitl
|
|
|
107
109
|
rows: table
|
|
108
110
|
},
|
|
109
111
|
createTeamsSummaryItem(summary),
|
|
110
|
-
createTeamsReportSourceItem(reportTitle)
|
|
112
|
+
// createTeamsReportSourceItem(reportTitle)
|
|
111
113
|
]
|
|
112
114
|
};
|
|
113
115
|
}
|
|
@@ -146,7 +148,7 @@ export function createTeamsReportValueCard(lineTitle, columnName, value, styles,
|
|
|
146
148
|
version: "1.5",
|
|
147
149
|
msteams: { width: "Full" },
|
|
148
150
|
body: [
|
|
149
|
-
createTeamsTitleItem(lineTitle),
|
|
151
|
+
createTeamsTitleItem(`${lineTitle} - ${reportTitle}`),
|
|
150
152
|
{
|
|
151
153
|
type: "Container",
|
|
152
154
|
roundedCorners: true,
|
|
@@ -164,7 +166,7 @@ export function createTeamsReportValueCard(lineTitle, columnName, value, styles,
|
|
|
164
166
|
]
|
|
165
167
|
},
|
|
166
168
|
createTeamsSummaryItem(summary),
|
|
167
|
-
createTeamsReportSourceItem(reportTitle)
|
|
169
|
+
// createTeamsReportSourceItem(reportTitle)
|
|
168
170
|
]
|
|
169
171
|
};
|
|
170
172
|
}
|
|
@@ -174,13 +176,13 @@ export function createTeamsReportChartCard(lineTitle, png, summary, reportTitle)
|
|
|
174
176
|
version: "1.5",
|
|
175
177
|
msteams: { width: "Full" },
|
|
176
178
|
body: [
|
|
177
|
-
createTeamsTitleItem(lineTitle),
|
|
179
|
+
createTeamsTitleItem(`${lineTitle} - ${reportTitle}`),
|
|
178
180
|
{
|
|
179
181
|
type: "Image",
|
|
180
182
|
url: png
|
|
181
183
|
},
|
|
182
184
|
createTeamsSummaryItem(summary),
|
|
183
|
-
createTeamsReportSourceItem(reportTitle)
|
|
185
|
+
// createTeamsReportSourceItem(reportTitle)
|
|
184
186
|
]
|
|
185
187
|
};
|
|
186
188
|
}
|
|
@@ -191,7 +193,7 @@ export function createTeamsAlertTableCard(condition, rows, alertTitle) {
|
|
|
191
193
|
version: "1.5",
|
|
192
194
|
msteams: { width: "Full" },
|
|
193
195
|
body: [
|
|
194
|
-
createTeamsTitleItem(condition),
|
|
196
|
+
createTeamsTitleItem(`${condition} - ${alertTitle}`),
|
|
195
197
|
createTeamsTableQualifierItem(),
|
|
196
198
|
{
|
|
197
199
|
type: "Table",
|
|
@@ -200,7 +202,7 @@ export function createTeamsAlertTableCard(condition, rows, alertTitle) {
|
|
|
200
202
|
columns: table.length === 0 ? [] : table[0].cells.map(() => ({ width: 3 })),
|
|
201
203
|
rows: table
|
|
202
204
|
},
|
|
203
|
-
createTeamsAlertSourceItem(alertTitle)
|
|
205
|
+
// createTeamsAlertSourceItem(alertTitle)
|
|
204
206
|
]
|
|
205
207
|
};
|
|
206
208
|
}
|