@installagent/sdk 0.16.0 → 0.16.1
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/tech-call-prep.d.ts
CHANGED
|
@@ -11,16 +11,16 @@ export interface PrepCheck {
|
|
|
11
11
|
/** What to do about a gap or a skip. Empty on a pass. */
|
|
12
12
|
fix: string;
|
|
13
13
|
}
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* The people who must be on the invite, from the CRM: the technician and a
|
|
16
|
+
* client contact. Sales is not required on a tech call (decided 2026-11-20).
|
|
17
|
+
* Names and emails stay in memory only.
|
|
18
|
+
*/
|
|
15
19
|
export interface PrepTeam {
|
|
16
20
|
technicians: Array<{
|
|
17
21
|
name: string;
|
|
18
22
|
email: string;
|
|
19
23
|
}>;
|
|
20
|
-
sales: Array<{
|
|
21
|
-
name: string;
|
|
22
|
-
email: string;
|
|
23
|
-
}>;
|
|
24
24
|
/** The client's company email domain, or "" for a free-mail contact. */
|
|
25
25
|
clientDomain: string;
|
|
26
26
|
}
|
package/dist/tech-call-prep.js
CHANGED
|
@@ -139,7 +139,7 @@ export function checkInvite(events, team, callDate) {
|
|
|
139
139
|
const problems = [];
|
|
140
140
|
if (team.technicians.length === 0)
|
|
141
141
|
problems.push("no technician is linked on the CRM record");
|
|
142
|
-
for (const person of
|
|
142
|
+
for (const person of team.technicians) {
|
|
143
143
|
if (!on.has(person.email.toLowerCase()))
|
|
144
144
|
problems.push(`${person.name} is not on the invite`);
|
|
145
145
|
}
|
|
@@ -153,7 +153,7 @@ export function checkInvite(events, team, callDate) {
|
|
|
153
153
|
}
|
|
154
154
|
const clients = event.attendees.filter((email) => domainOf(email) === team.clientDomain).length;
|
|
155
155
|
return problems.length === 0
|
|
156
|
-
? pass("invite", `The invite has the technician
|
|
156
|
+
? pass("invite", `The invite has the technician and ${clients} client attendee(s).`)
|
|
157
157
|
: gap("invite", `On the invite "${event.summary.slice(0, 60)}": ${problems.join("; ")}.`, "Fix the invite before the call.");
|
|
158
158
|
}
|
|
159
159
|
export function checkVault(titles, vault) {
|
|
@@ -297,7 +297,6 @@ export function realProbes(options) {
|
|
|
297
297
|
const domain = domainOf(String(client.fields.Email ?? ""));
|
|
298
298
|
return {
|
|
299
299
|
technicians: pick(client.fields.Technician),
|
|
300
|
-
sales: pick(client.fields.Sales),
|
|
301
300
|
clientDomain: FREE_MAIL.includes(domain) ? "" : domain,
|
|
302
301
|
};
|
|
303
302
|
}
|
package/package.json
CHANGED