@sprucelabs/spruce-people-utils 3.7.7 → 3.8.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.
@@ -185,6 +185,7 @@ class InvitePersonCardViewController extends AbstractViewController {
185
185
  });
186
186
  }
187
187
  handleSubmitNamePhoneForm() {
188
+ var _a;
188
189
  return __awaiter(this, void 0, void 0, function* () {
189
190
  this.swipeVc.setIsBusy(true);
190
191
  yield this.swipeVc.jumpToSlide(1);
@@ -204,6 +205,9 @@ class InvitePersonCardViewController extends AbstractViewController {
204
205
  message: 'approve your account',
205
206
  },
206
207
  });
208
+ if (invite.autoAcceptedPersonId) {
209
+ return (_a = this.doneHandler) === null || _a === void 0 ? void 0 : _a.call(this, invite.autoAcceptedPersonId);
210
+ }
207
211
  this.pendingInvite = invite;
208
212
  }
209
213
  catch (err) {
@@ -249,7 +253,7 @@ const inviteFormSchema = buildSchema({
249
253
  id: 'inviteForm',
250
254
  fields: {
251
255
  firstName: {
252
- label: 'First name',
256
+ label: 'First Name',
253
257
  type: 'text',
254
258
  },
255
259
  phone: {
@@ -1,18 +1,10 @@
1
+ import { SpruceSchemas } from '@sprucelabs/spruce-core-schemas';
1
2
  export interface SearchPerson {
2
3
  id: string;
3
4
  fullName: string;
4
5
  phone: string;
5
6
  }
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
- }
7
+ export type SendInvite = SpruceSchemas.Invite.v2021_12_16.SendInvite;
16
8
  export interface Destination {
17
9
  id: string;
18
10
  args?: Record<string, any> | undefined | null;
@@ -165,6 +165,7 @@ class InvitePersonCardViewController extends heartwood_view_controllers_1.Abstra
165
165
  return super.destroy();
166
166
  }
167
167
  async handleSubmitNamePhoneForm() {
168
+ var _a;
168
169
  this.swipeVc.setIsBusy(true);
169
170
  await this.swipeVc.jumpToSlide(1);
170
171
  try {
@@ -183,6 +184,9 @@ class InvitePersonCardViewController extends heartwood_view_controllers_1.Abstra
183
184
  message: 'approve your account',
184
185
  },
185
186
  });
187
+ if (invite.autoAcceptedPersonId) {
188
+ return (_a = this.doneHandler) === null || _a === void 0 ? void 0 : _a.call(this, invite.autoAcceptedPersonId);
189
+ }
186
190
  this.pendingInvite = invite;
187
191
  }
188
192
  catch (err) {
@@ -221,7 +225,7 @@ const inviteFormSchema = (0, schema_1.buildSchema)({
221
225
  id: 'inviteForm',
222
226
  fields: {
223
227
  firstName: {
224
- label: 'First name',
228
+ label: 'First Name',
225
229
  type: 'text',
226
230
  },
227
231
  phone: {
@@ -1,18 +1,10 @@
1
+ import { SpruceSchemas } from '@sprucelabs/spruce-core-schemas';
1
2
  export interface SearchPerson {
2
3
  id: string;
3
4
  fullName: string;
4
5
  phone: string;
5
6
  }
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
- }
7
+ export type SendInvite = SpruceSchemas.Invite.v2021_12_16.SendInvite;
16
8
  export interface Destination {
17
9
  id: string;
18
10
  args?: Record<string, any> | undefined | null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-people-utils",
3
3
  "description": "People Utilities",
4
- "version": "3.7.7",
4
+ "version": "3.8.0",
5
5
  "skill": {
6
6
  "namespace": "invite"
7
7
  },