@sprucelabs/spruce-people-utils 1.0.2 → 1.0.4
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/build/esm/inviting/InvitePersonCard.vc.d.ts +2 -2
- package/build/esm/inviting/inviteCardHeaders.d.ts +2 -0
- package/build/esm/inviting/inviteCardHeaders.js +13 -0
- package/build/esm/types/people-module.types.d.ts +22 -0
- package/build/esm/types/{people.types.js → people-module.types.js} +0 -0
- package/build/esm/viewControllers/searchPeopleToSuggestions.d.ts +1 -1
- package/build/inviting/InvitePersonCard.vc.d.ts +2 -2
- package/build/inviting/inviteCardHeaders.d.ts +2 -0
- package/build/inviting/inviteCardHeaders.js +16 -0
- package/build/types/people-module.types.d.ts +22 -0
- package/build/types/{people.types.js → people-module.types.js} +0 -0
- package/build/viewControllers/searchPeopleToSuggestions.d.ts +1 -1
- package/package.json +9 -9
- package/build/.spruce/schemas/schemas.types.d.ts +0 -1817
- package/build/.spruce/schemas/schemas.types.js +0 -5
- package/build/esm/.spruce/schemas/schemas.types.d.ts +0 -1817
- package/build/esm/.spruce/schemas/schemas.types.js +0 -3
- package/build/esm/types/people.types.d.ts +0 -9
- package/build/types/people.types.d.ts +0 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AbstractViewController, FormViewController, ViewControllerOptions, SwipeCardViewController, TalkingSprucebotViewController, SpruceSchemas, Card } from '@sprucelabs/heartwood-view-controllers';
|
|
2
|
-
import {
|
|
2
|
+
import { SendInvite } from '../types/people-module.types';
|
|
3
3
|
export default class InvitePersonCardViewController extends AbstractViewController<Card> {
|
|
4
4
|
static id: string;
|
|
5
5
|
protected cardVc: SwipeCardViewController;
|
|
@@ -7,7 +7,7 @@ export default class InvitePersonCardViewController extends AbstractViewControll
|
|
|
7
7
|
protected locationId?: string;
|
|
8
8
|
protected formVc: FormViewController<InviteFormSchema>;
|
|
9
9
|
protected talkingVc: TalkingSprucebotViewController;
|
|
10
|
-
protected pendingInvite?:
|
|
10
|
+
protected pendingInvite?: SendInvite;
|
|
11
11
|
private isLoaded;
|
|
12
12
|
private doneHandler?;
|
|
13
13
|
private client;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface SearchPerson {
|
|
2
|
+
id: string;
|
|
3
|
+
fullName: string;
|
|
4
|
+
phone: string;
|
|
5
|
+
}
|
|
6
|
+
export interface SendInvite {
|
|
7
|
+
id: string;
|
|
8
|
+
dateCreated: number;
|
|
9
|
+
status: 'pending' | 'accepted';
|
|
10
|
+
firstName?: string | undefined | null;
|
|
11
|
+
destination: Destination;
|
|
12
|
+
viewContext: ViewContext;
|
|
13
|
+
message: string;
|
|
14
|
+
introduction?: string | undefined | null;
|
|
15
|
+
}
|
|
16
|
+
export interface Destination {
|
|
17
|
+
id: string;
|
|
18
|
+
args?: Record<string, any> | undefined | null;
|
|
19
|
+
}
|
|
20
|
+
export interface ViewContext {
|
|
21
|
+
roleName?: string | undefined | null;
|
|
22
|
+
}
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AutocompleteSuggestion } from '@sprucelabs/heartwood-view-controllers';
|
|
2
|
-
import { SearchPerson } from '../types/people.types';
|
|
2
|
+
import { SearchPerson } from '../types/people-module.types';
|
|
3
3
|
export default function searchPeopleToSuggestions(people: SearchPerson[], cb?: (person: SearchPerson) => Promise<void> | void): AutocompleteSuggestion[];
|
|
4
4
|
export declare function renderLabel(p: SearchPerson): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AbstractViewController, FormViewController, ViewControllerOptions, SwipeCardViewController, TalkingSprucebotViewController, SpruceSchemas, Card } from '@sprucelabs/heartwood-view-controllers';
|
|
2
|
-
import {
|
|
2
|
+
import { SendInvite } from '../types/people-module.types';
|
|
3
3
|
export default class InvitePersonCardViewController extends AbstractViewController<Card> {
|
|
4
4
|
static id: string;
|
|
5
5
|
protected cardVc: SwipeCardViewController;
|
|
@@ -7,7 +7,7 @@ export default class InvitePersonCardViewController extends AbstractViewControll
|
|
|
7
7
|
protected locationId?: string;
|
|
8
8
|
protected formVc: FormViewController<InviteFormSchema>;
|
|
9
9
|
protected talkingVc: TalkingSprucebotViewController;
|
|
10
|
-
protected pendingInvite?:
|
|
10
|
+
protected pendingInvite?: SendInvite;
|
|
11
11
|
private isLoaded;
|
|
12
12
|
private doneHandler?;
|
|
13
13
|
private client;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.inviteCardHeaders = void 0;
|
|
4
|
+
exports.inviteCardHeaders = [
|
|
5
|
+
{
|
|
6
|
+
title: 'Invite a person!',
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
title: 'Invite sent',
|
|
10
|
+
subtitle: 'Hang tight until the invite is accepted!',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
title: 'All done!',
|
|
14
|
+
subtitle: 'You are good to go!',
|
|
15
|
+
},
|
|
16
|
+
];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface SearchPerson {
|
|
2
|
+
id: string;
|
|
3
|
+
fullName: string;
|
|
4
|
+
phone: string;
|
|
5
|
+
}
|
|
6
|
+
export interface SendInvite {
|
|
7
|
+
id: string;
|
|
8
|
+
dateCreated: number;
|
|
9
|
+
status: 'pending' | 'accepted';
|
|
10
|
+
firstName?: string | undefined | null;
|
|
11
|
+
destination: Destination;
|
|
12
|
+
viewContext: ViewContext;
|
|
13
|
+
message: string;
|
|
14
|
+
introduction?: string | undefined | null;
|
|
15
|
+
}
|
|
16
|
+
export interface Destination {
|
|
17
|
+
id: string;
|
|
18
|
+
args?: Record<string, any> | undefined | null;
|
|
19
|
+
}
|
|
20
|
+
export interface ViewContext {
|
|
21
|
+
roleName?: string | undefined | null;
|
|
22
|
+
}
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AutocompleteSuggestion } from '@sprucelabs/heartwood-view-controllers';
|
|
2
|
-
import { SearchPerson } from '../types/people.types';
|
|
2
|
+
import { SearchPerson } from '../types/people-module.types';
|
|
3
3
|
export default function searchPeopleToSuggestions(people: SearchPerson[], cb?: (person: SearchPerson) => Promise<void> | void): AutocompleteSuggestion[];
|
|
4
4
|
export declare function renderLabel(p: SearchPerson): string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sprucelabs/spruce-people-utils",
|
|
3
3
|
"description": "People Utilities",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"skill": {
|
|
6
6
|
"namespace": "invite"
|
|
7
7
|
},
|
|
@@ -22,22 +22,22 @@
|
|
|
22
22
|
"build/viewControllers/PersonSelectInput.vc.d.ts",
|
|
23
23
|
"build/esm/viewControllers/PersonSelectInput.vc.js",
|
|
24
24
|
"build/esm/viewControllers/PersonSelectInput.vc.d.ts",
|
|
25
|
-
"build/.spruce/schemas/schemas.types.js",
|
|
26
|
-
"build/.spruce/schemas/schemas.types.d.ts",
|
|
27
|
-
"build/esm/.spruce/schemas/schemas.types.js",
|
|
28
|
-
"build/esm/.spruce/schemas/schemas.types.d.ts",
|
|
29
25
|
"build/viewControllers/searchPeopleToSuggestions.js",
|
|
30
26
|
"build/viewControllers/searchPeopleToSuggestions.d.ts",
|
|
31
27
|
"build/esm/viewControllers/searchPeopleToSuggestions.js",
|
|
32
28
|
"build/esm/viewControllers/searchPeopleToSuggestions.d.ts",
|
|
33
|
-
"build/types/people.types.js",
|
|
34
|
-
"build/types/people.types.d.ts",
|
|
35
|
-
"build/esm/types/people.types.js",
|
|
36
|
-
"build/esm/types/people.types.d.ts",
|
|
37
29
|
"build/inviting/InvitePersonCard.vc.js",
|
|
38
30
|
"build/inviting/InvitePersonCard.vc.d.ts",
|
|
39
31
|
"build/esm/inviting/InvitePersonCard.vc.js",
|
|
40
32
|
"build/esm/inviting/InvitePersonCard.vc.d.ts",
|
|
33
|
+
"build/inviting/inviteCardHeaders.js",
|
|
34
|
+
"build/inviting/inviteCardHeaders.d.ts",
|
|
35
|
+
"build/esm/inviting/inviteCardHeaders.js",
|
|
36
|
+
"build/esm/inviting/inviteCardHeaders.d.ts",
|
|
37
|
+
"build/types/people-module.types.js",
|
|
38
|
+
"build/types/people-module.types.d.ts",
|
|
39
|
+
"build/esm/types/people-module.types.js",
|
|
40
|
+
"build/esm/types/people-module.types.d.ts",
|
|
41
41
|
"build/__tests__/behavioral/searching/SpyPersonSelectInput.js",
|
|
42
42
|
"build/__tests__/behavioral/searching/SpyPersonSelectInput.d.ts",
|
|
43
43
|
"build/esm/__tests__/behavioral/searching/SpyPersonSelectInput.js",
|