auth.service.d.ts 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. import Parse from "parse";
  2. import { Router } from '@angular/router';
  3. import { NovaCloudService } from '../../nova-cloud';
  4. import { HttpClient } from '@angular/common/http';
  5. import { ToastController } from '@ionic/angular/standalone';
  6. import * as i0 from "@angular/core";
  7. export declare class AuthService {
  8. router: Router;
  9. private toastCtrl;
  10. private novaCloud;
  11. private http;
  12. /**
  13. * 守卫方式:权限验证锁定方式
  14. * @type "page"|"modal" page页面跳转 modal弹窗锁定
  15. */
  16. guardType: "page" | "modal";
  17. guardMap: any;
  18. modalType: "fullscreen" | "sheet";
  19. isModalShow: boolean;
  20. isGuardLock(url: any): boolean;
  21. showBackHome: boolean;
  22. activeButton: string;
  23. loginOptions: {
  24. userpwd?: boolean;
  25. mobilepwd?: boolean;
  26. mobilecode?: boolean;
  27. wechat?: boolean;
  28. };
  29. get loginTypeCount(): number;
  30. /**
  31. * 企业账套:登录用户校验所在的账套
  32. */
  33. _logoUrl: string;
  34. get logoUrl(): string;
  35. set logoUrl(v: string);
  36. company: string;
  37. getCompanyId(): string;
  38. wechatUrl: string;
  39. /**
  40. * 资金账户:user自动创建唯一资金账户
  41. */
  42. account: Parse.Object;
  43. /**
  44. * 登录状态:默认false,登陆后为true
  45. * @description
  46. * 用于守卫弹窗锁定模块校验
  47. */
  48. isLoggedIn: boolean;
  49. redirectUrl: string;
  50. constructor(router: Router, toastCtrl: ToastController, novaCloud: NovaCloudService, http: HttpClient);
  51. toast(options: any): Promise<void>;
  52. message: {
  53. success: (msg: string) => void;
  54. create: (type: string, msg: string) => void;
  55. info: (msg: string) => void;
  56. error: (msg: string) => void;
  57. };
  58. init(options: {
  59. company?: string;
  60. guardType?: "page" | "modal";
  61. LoginPage?: string;
  62. modalType?: "fullscreen" | "sheet";
  63. }): void;
  64. checkLoginLock(): boolean;
  65. LoginPage: string;
  66. checkLogin(url: string): Promise<boolean>;
  67. checkAndLoginWithToken(): Promise<void>;
  68. setAccount(user: any): Promise<Parse.Object<Parse.Attributes>>;
  69. login(username: any, password: any): Promise<unknown>;
  70. refreshPage(): Promise<unknown>;
  71. setCurrentUserLocalStorage(user: Parse.User): void;
  72. logout(type: any, url: any): void;
  73. /**
  74. * 根据帐套内mobile字段登录逻辑
  75. */
  76. loginMobilePassword(mobile: string, password: string, msgServ: any): Promise<void>;
  77. signMobilePassword(mobile: string, password: string): Promise<any>;
  78. mobileUserMap: {};
  79. getMobileUser(mobile: string): Promise<any>;
  80. enabledLocalCode: boolean;
  81. signUpAndUpdate(mobile: any, password?: string): Promise<Parse.Object | undefined>;
  82. getMobileCodeToken(mobile: any, code: any): Promise<any>;
  83. loginCode(mobile: string, code: string, msgServ?: any, closeCallBack?: any): Promise<Boolean>;
  84. saveParamsInvite(): void;
  85. bindInvite(current?: any): Promise<void>;
  86. static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
  87. static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
  88. }