@stevenkellner/team-conduct-api 2.0.10 → 2.0.12
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/lib/src/functions/invitation/register.d.ts +7 -0
- package/lib/src/functions/invitation/register.js +2 -1
- package/lib/src/functions/team/new.d.ts +7 -2
- package/lib/src/functions/team/new.js +1 -1
- package/package.json +1 -1
- package/src/functions/invitation/register.ts +3 -1
- package/src/functions/team/new.ts +2 -2
|
@@ -5,12 +5,19 @@ export declare namespace InvitationRegisterFunction {
|
|
|
5
5
|
type Parameters = {
|
|
6
6
|
teamId: Team.Id;
|
|
7
7
|
personId: Person.Id;
|
|
8
|
+
signInType: User.SignInType;
|
|
8
9
|
};
|
|
9
10
|
}
|
|
10
11
|
export declare class InvitationRegisterFunction implements FirebaseFunction<InvitationRegisterFunction.Parameters, User> {
|
|
11
12
|
parametersBuilder: ObjectTypeBuilder<{
|
|
12
13
|
teamId: string;
|
|
13
14
|
personId: string;
|
|
15
|
+
signInType: {
|
|
16
|
+
type: "email";
|
|
17
|
+
email: string;
|
|
18
|
+
} | {
|
|
19
|
+
type: "google" | "apple";
|
|
20
|
+
};
|
|
14
21
|
}, InvitationRegisterFunction.Parameters>;
|
|
15
22
|
returnTypeBuilder: User.TypeBuilder;
|
|
16
23
|
}
|
|
@@ -6,7 +6,8 @@ const typescript_common_functionality_1 = require("@stevenkellner/typescript-com
|
|
|
6
6
|
class InvitationRegisterFunction {
|
|
7
7
|
parametersBuilder = new typescript_common_functionality_1.ObjectTypeBuilder({
|
|
8
8
|
teamId: types_1.Team.Id.builder,
|
|
9
|
-
personId: types_1.Person.Id.builder
|
|
9
|
+
personId: types_1.Person.Id.builder,
|
|
10
|
+
signInType: types_1.User.SignInType.builder
|
|
10
11
|
});
|
|
11
12
|
returnTypeBuilder = types_1.User.builder;
|
|
12
13
|
}
|
|
@@ -4,8 +4,8 @@ import { Person, PersonProperties, User, Team } from '../../types';
|
|
|
4
4
|
export declare namespace TeamNewFunction {
|
|
5
5
|
type Parameters = {
|
|
6
6
|
id: Team.Id;
|
|
7
|
+
signInType: User.SignInType;
|
|
7
8
|
name: string;
|
|
8
|
-
paypalMeLink: string | null;
|
|
9
9
|
personId: Person.Id;
|
|
10
10
|
personProperties: PersonProperties;
|
|
11
11
|
};
|
|
@@ -13,8 +13,13 @@ export declare namespace TeamNewFunction {
|
|
|
13
13
|
export declare class TeamNewFunction implements FirebaseFunction<TeamNewFunction.Parameters, User> {
|
|
14
14
|
parametersBuilder: ObjectTypeBuilder<{
|
|
15
15
|
id: string;
|
|
16
|
+
signInType: {
|
|
17
|
+
type: "email";
|
|
18
|
+
email: string;
|
|
19
|
+
} | {
|
|
20
|
+
type: "google" | "apple";
|
|
21
|
+
};
|
|
16
22
|
name: string;
|
|
17
|
-
paypalMeLink: string | null;
|
|
18
23
|
personId: string;
|
|
19
24
|
personProperties: {
|
|
20
25
|
firstName: string;
|
|
@@ -6,8 +6,8 @@ const types_1 = require("../../types");
|
|
|
6
6
|
class TeamNewFunction {
|
|
7
7
|
parametersBuilder = new typescript_common_functionality_1.ObjectTypeBuilder({
|
|
8
8
|
id: types_1.Team.Id.builder,
|
|
9
|
+
signInType: types_1.User.SignInType.builder,
|
|
9
10
|
name: new typescript_common_functionality_1.ValueTypeBuilder(),
|
|
10
|
-
paypalMeLink: new typescript_common_functionality_1.ValueTypeBuilder(),
|
|
11
11
|
personId: types_1.Person.Id.builder,
|
|
12
12
|
personProperties: types_1.PersonProperties.builder
|
|
13
13
|
});
|
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ export namespace InvitationRegisterFunction {
|
|
|
7
7
|
export type Parameters = {
|
|
8
8
|
teamId: Team.Id
|
|
9
9
|
personId: Person.Id
|
|
10
|
+
signInType: User.SignInType
|
|
10
11
|
};
|
|
11
12
|
}
|
|
12
13
|
|
|
@@ -14,7 +15,8 @@ export class InvitationRegisterFunction implements FirebaseFunction<InvitationRe
|
|
|
14
15
|
|
|
15
16
|
public parametersBuilder = new ObjectTypeBuilder<Flattable.Flatten<InvitationRegisterFunction.Parameters>, InvitationRegisterFunction.Parameters>({
|
|
16
17
|
teamId: Team.Id.builder,
|
|
17
|
-
personId: Person.Id.builder
|
|
18
|
+
personId: Person.Id.builder,
|
|
19
|
+
signInType: User.SignInType.builder
|
|
18
20
|
});
|
|
19
21
|
|
|
20
22
|
public returnTypeBuilder = User.builder;
|
|
@@ -6,8 +6,8 @@ export namespace TeamNewFunction {
|
|
|
6
6
|
|
|
7
7
|
export type Parameters = {
|
|
8
8
|
id: Team.Id
|
|
9
|
+
signInType: User.SignInType
|
|
9
10
|
name: string
|
|
10
|
-
paypalMeLink: string | null
|
|
11
11
|
personId: Person.Id
|
|
12
12
|
personProperties: PersonProperties
|
|
13
13
|
};
|
|
@@ -17,8 +17,8 @@ export class TeamNewFunction implements FirebaseFunction<TeamNewFunction.Paramet
|
|
|
17
17
|
|
|
18
18
|
public parametersBuilder = new ObjectTypeBuilder<Flattable.Flatten<TeamNewFunction.Parameters>, TeamNewFunction.Parameters>({
|
|
19
19
|
id: Team.Id.builder,
|
|
20
|
+
signInType: User.SignInType.builder,
|
|
20
21
|
name: new ValueTypeBuilder(),
|
|
21
|
-
paypalMeLink: new ValueTypeBuilder(),
|
|
22
22
|
personId: Person.Id.builder,
|
|
23
23
|
personProperties: PersonProperties.builder
|
|
24
24
|
});
|