1 | import { Handler } from "../../handler";
|
2 | import { BaseTriggerEvent, StringMap } from "./_common";
|
3 |
|
4 | export interface BasePreSignUpTriggerEvent<T extends string> extends BaseTriggerEvent<T> {
|
5 | request: {
|
6 | userAttributes: StringMap;
|
7 | validationData?: StringMap | undefined;
|
8 | clientMetadata?: StringMap | undefined;
|
9 | };
|
10 | response: {
|
11 | autoConfirmUser: boolean;
|
12 | autoVerifyEmail: boolean;
|
13 | autoVerifyPhone: boolean;
|
14 | };
|
15 | }
|
16 |
|
17 | export type PreSignUpEmailTriggerEvent = BasePreSignUpTriggerEvent<"PreSignUp_SignUp">;
|
18 |
|
19 | export type PreSignUpExternalProviderTriggerEvent = BasePreSignUpTriggerEvent<"PreSignUp_ExternalProvider">;
|
20 |
|
21 | export type PreSignUpAdminCreateUserTriggerEvent = BasePreSignUpTriggerEvent<"PreSignUp_AdminCreateUser">;
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | export type PreSignUpTriggerEvent =
|
27 | | PreSignUpEmailTriggerEvent
|
28 | | PreSignUpExternalProviderTriggerEvent
|
29 | | PreSignUpAdminCreateUserTriggerEvent;
|
30 |
|
31 | export type PreSignUpTriggerHandler = Handler<PreSignUpTriggerEvent>;
|