@sprucelabs/spruce-people-utils 6.0.194 → 6.2.0
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.
@@ -10,5 +10,5 @@ export function searchPersonToSuggestion(person, cb) {
|
|
10
10
|
}
|
11
11
|
export function renderLabel(p) {
|
12
12
|
var _a;
|
13
|
-
return `${(_a = p.fullName) !== null && _a !== void 0 ? _a : 'friend'} (${p.phone})`;
|
13
|
+
return `${(_a = p.fullName) !== null && _a !== void 0 ? _a : 'friend'}${p.phone ? ` (${p.phone})` : ''}`;
|
14
14
|
}
|
@@ -2,7 +2,7 @@ import { SpruceSchemas } from '@sprucelabs/spruce-core-schemas';
|
|
2
2
|
export interface SearchPerson {
|
3
3
|
id: string;
|
4
4
|
fullName: string;
|
5
|
-
phone
|
5
|
+
phone?: string | null;
|
6
6
|
}
|
7
7
|
export type SendInvite = SpruceSchemas.Invite.v2021_12_16.SendInvite;
|
8
8
|
export interface Destination {
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
15
15
|
}) : function(o, v) {
|
16
16
|
o["default"] = v;
|
17
17
|
});
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
};
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
19
|
+
var ownKeys = function(o) {
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
21
|
+
var ar = [];
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
23
|
+
return ar;
|
24
|
+
};
|
25
|
+
return ownKeys(o);
|
26
|
+
};
|
27
|
+
return function (mod) {
|
28
|
+
if (mod && mod.__esModule) return mod;
|
29
|
+
var result = {};
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
31
|
+
__setModuleDefault(result, mod);
|
32
|
+
return result;
|
33
|
+
};
|
34
|
+
})();
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
27
37
|
};
|
@@ -2,7 +2,7 @@ import { SpruceSchemas } from '@sprucelabs/spruce-core-schemas';
|
|
2
2
|
export interface SearchPerson {
|
3
3
|
id: string;
|
4
4
|
fullName: string;
|
5
|
-
phone
|
5
|
+
phone?: string | null;
|
6
6
|
}
|
7
7
|
export type SendInvite = SpruceSchemas.Invite.v2021_12_16.SendInvite;
|
8
8
|
export interface Destination {
|