@stevenkellner/team-conduct-api 2.0.21 → 2.0.23

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.
@@ -14,7 +14,8 @@ export declare class PersonAddFunction implements FirebaseFunction<PersonAddFunc
14
14
  id: string;
15
15
  properties: {
16
16
  firstName: string;
17
- lastName: string | null;
17
+ lastName: string;
18
+ profilePictureUrl: string | null;
18
19
  };
19
20
  }, PersonAddFunction.Parameters>;
20
21
  returnTypeBuilder: ValueTypeBuilder<void>;
@@ -14,7 +14,8 @@ export declare class PersonUpdateFunction implements FirebaseFunction<PersonUpda
14
14
  id: string;
15
15
  properties: {
16
16
  firstName: string;
17
- lastName: string | null;
17
+ lastName: string;
18
+ profilePictureUrl: string | null;
18
19
  };
19
20
  }, PersonUpdateFunction.Parameters>;
20
21
  returnTypeBuilder: ValueTypeBuilder<void>;
@@ -6,14 +6,16 @@ import { Flattable, ITypeBuilder } from '@stevenkellner/typescript-common-functi
6
6
  */
7
7
  export declare class PersonProperties implements Flattable<PersonProperties.Flatten> {
8
8
  firstName: string;
9
- lastName: string | null;
9
+ lastName: string;
10
+ profilePictureUrl: string | null;
10
11
  /**
11
12
  * Creates new person properties.
12
13
  *
13
14
  * @param firstName - The first name of the person
14
15
  * @param lastName - The last name of the person (null if not provided)
16
+ * @param profilePictureUrl - The URL of the person's profile picture, or null if not set
15
17
  */
16
- constructor(firstName: string, lastName?: string | null);
18
+ constructor(firstName: string, lastName: string, profilePictureUrl: string | null);
17
19
  /**
18
20
  * Gets the flattened representation of these properties for serialization.
19
21
  */
@@ -25,7 +27,8 @@ export declare namespace PersonProperties {
25
27
  */
26
28
  type Flatten = {
27
29
  firstName: string;
28
- lastName: string | null;
30
+ lastName: string;
31
+ profilePictureUrl: string | null;
29
32
  };
30
33
  /**
31
34
  * Builder for constructing PersonProperties from flattened data.
@@ -9,15 +9,18 @@ exports.PersonProperties = void 0;
9
9
  class PersonProperties {
10
10
  firstName;
11
11
  lastName;
12
+ profilePictureUrl;
12
13
  /**
13
14
  * Creates new person properties.
14
15
  *
15
16
  * @param firstName - The first name of the person
16
17
  * @param lastName - The last name of the person (null if not provided)
18
+ * @param profilePictureUrl - The URL of the person's profile picture, or null if not set
17
19
  */
18
- constructor(firstName, lastName = null) {
20
+ constructor(firstName, lastName, profilePictureUrl) {
19
21
  this.firstName = firstName;
20
22
  this.lastName = lastName;
23
+ this.profilePictureUrl = profilePictureUrl;
21
24
  }
22
25
  /**
23
26
  * Gets the flattened representation of these properties for serialization.
@@ -25,7 +28,8 @@ class PersonProperties {
25
28
  get flatten() {
26
29
  return {
27
30
  firstName: this.firstName,
28
- lastName: this.lastName
31
+ lastName: this.lastName,
32
+ profilePictureUrl: this.profilePictureUrl
29
33
  };
30
34
  }
31
35
  }
@@ -42,7 +46,7 @@ exports.PersonProperties = PersonProperties;
42
46
  * @returns A new PersonProperties instance
43
47
  */
44
48
  build(value) {
45
- return new PersonProperties(value.firstName, value.lastName);
49
+ return new PersonProperties(value.firstName, value.lastName, value.profilePictureUrl);
46
50
  }
47
51
  }
48
52
  PersonProperties.TypeBuilder = TypeBuilder;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stevenkellner/team-conduct-api",
3
- "version": "2.0.21",
3
+ "version": "2.0.23",
4
4
  "description": "Firebase API for Team Conduct",
5
5
  "license": "MIT",
6
6
  "author": "Steven Kellner",
@@ -12,10 +12,12 @@ export class PersonProperties implements Flattable<PersonProperties.Flatten> {
12
12
  *
13
13
  * @param firstName - The first name of the person
14
14
  * @param lastName - The last name of the person (null if not provided)
15
+ * @param profilePictureUrl - The URL of the person's profile picture, or null if not set
15
16
  */
16
17
  constructor(
17
18
  public firstName: string,
18
- public lastName: string | null = null
19
+ public lastName: string,
20
+ public profilePictureUrl: string | null
19
21
  ) {}
20
22
 
21
23
  /**
@@ -24,7 +26,8 @@ export class PersonProperties implements Flattable<PersonProperties.Flatten> {
24
26
  public get flatten(): PersonProperties.Flatten {
25
27
  return {
26
28
  firstName: this.firstName,
27
- lastName: this.lastName
29
+ lastName: this.lastName,
30
+ profilePictureUrl: this.profilePictureUrl
28
31
  };
29
32
  }
30
33
  }
@@ -36,7 +39,8 @@ export namespace PersonProperties {
36
39
  */
37
40
  export type Flatten = {
38
41
  firstName: string;
39
- lastName: string | null;
42
+ lastName: string;
43
+ profilePictureUrl: string | null;
40
44
  }
41
45
 
42
46
  /**
@@ -53,7 +57,8 @@ export namespace PersonProperties {
53
57
  public build(value: Flatten): PersonProperties {
54
58
  return new PersonProperties(
55
59
  value.firstName,
56
- value.lastName
60
+ value.lastName,
61
+ value.profilePictureUrl
57
62
  );
58
63
  }
59
64
  }