import { BootO, Payload, Raw } from '@niama/auth/types'; import { GetBootCfg, GetBootP, GetBootSagaP, GetRawCfg, GetServiceO, Maybe } from '@niama/core/types'; import { Po } from './main'; import * as S from './services'; // CONFIG=================================================================================================================================== export type BootCfg = GetBootCfg; export type BootAuthP = GetBootP; export type RawCfg = GetRawCfg; export type ServiceO = GetServiceO; export type BootSagaP = GetBootSagaP; // PROVIDER ================================================================================================================================ export interface Provider extends Services, GetServiceO {} // SERVICES ================================================================================================================================ export interface Services { // refreshSession: () => any; // current: Current; changePassword: (p: S.ChangePasswordP) => S.ChangePasswordR; confirmSignup: (p: S.ConfirmSignupP) => S.ConfirmSignupR; //deleteCurrent$?: (p: S.DeleteCurrentP) => Observable; fetch: () => Promise>; fromPayload: (p: Maybe) => Po; //getCurrent$(p: S.GetCurrentP): S.GetCurrentR; //getRefreshedTokens$(p: any): any; //refresh$: (p: S.RefreshP) => Observable; resetPassword: (p: S.ResetPasswordP) => S.ResetPasswordR; //sendEmailResetCode$?: (p: S.SendEmailResetCodeP) => Observable; sendConfirmSignup: (p: S.SendConfirmSignupP) => S.SendConfirmSignupR; sendResetPassword: (p: S.SendResetPasswordP) => S.SendResetPasswordR; sendVerifyEmail: (p: S.SendVerifyEmailP) => S.SendVerifyEmailR; signin: (p: S.SigninP) => S.SigninR; signout: (p: S.SignoutP) => S.SignoutR; signup: (p: S.SignupP) => S.SignupR; verifyEmail: (p: S.VerifyEmailP) => S.VerifyEmailR; }