@stevenkellner/team-conduct-api 1.0.33 → 1.0.35

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.
@@ -35,7 +35,10 @@ export declare namespace InvitationGetInvitationFunction {
35
35
  properties: PersonPrivateProperties;
36
36
  }[]): ReturnType;
37
37
  get personId(): Person.Id | null;
38
- get persons(): Person.Id[] | null;
38
+ get persons(): {
39
+ id: Person.Id;
40
+ properties: PersonPrivateProperties;
41
+ }[] | null;
39
42
  get flatten(): ReturnType.Flatten;
40
43
  }
41
44
  namespace ReturnType {
@@ -22,6 +22,8 @@ class InvitationGetInvitationFunction extends firebase_function_1.FirebaseFuncti
22
22
  if (!personSnapshot.exists)
23
23
  return null;
24
24
  const person = types_1.Person.builder.build(personSnapshot.data);
25
+ if (person.signInProperties !== null)
26
+ return null;
25
27
  return {
26
28
  id: person.id,
27
29
  properties: person.properties
@@ -57,7 +59,7 @@ exports.InvitationGetInvitationFunction = InvitationGetInvitationFunction;
57
59
  get persons() {
58
60
  if (!('persons' in this.personIdOrPersons))
59
61
  return null;
60
- return this.personIdOrPersons.persons.map(person => person.id);
62
+ return this.personIdOrPersons.persons;
61
63
  }
62
64
  get flatten() {
63
65
  if ('personId' in this.personIdOrPersons) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stevenkellner/team-conduct-api",
3
- "version": "1.0.33",
3
+ "version": "1.0.35",
4
4
  "description": "Firebase API for Team Conduct",
5
5
  "license": "MIT",
6
6
  "author": "Steven Kellner",
@@ -27,6 +27,8 @@ export class InvitationGetInvitationFunction extends FirebaseFunction<Invitation
27
27
  if (!personSnapshot.exists)
28
28
  return null;
29
29
  const person = Person.builder.build(personSnapshot.data);
30
+ if (person.signInProperties !== null)
31
+ return null;
30
32
  return {
31
33
  id: person.id,
32
34
  properties: person.properties
@@ -85,10 +87,13 @@ export namespace InvitationGetInvitationFunction {
85
87
  return this.personIdOrPersons.personId;
86
88
  }
87
89
 
88
- public get persons(): Person.Id[] | null {
90
+ public get persons(): {
91
+ id: Person.Id,
92
+ properties: PersonPrivateProperties,
93
+ }[] | null {
89
94
  if (!('persons' in this.personIdOrPersons))
90
95
  return null;
91
- return this.personIdOrPersons.persons.map(person => person.id);
96
+ return this.personIdOrPersons.persons;
92
97
  }
93
98
 
94
99
  public get flatten(): ReturnType.Flatten {