fmode-ng 0.0.40 → 0.0.42

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.
@@ -0,0 +1,10 @@
1
+ import { PushAudioOutputStreamCallback } from "microsoft-cognitiveservices-speech-sdk/distrib/lib/src/sdk/Audio/PushAudioOutputStreamCallback";
2
+ export declare class FmPushAudioOutputStreamCallback extends PushAudioOutputStreamCallback {
3
+ audioContext: any;
4
+ source: any;
5
+ buffer: any;
6
+ constructor();
7
+ write(data: any): void;
8
+ playAudio(): void;
9
+ close(): void;
10
+ }
@@ -39,7 +39,7 @@ export declare class FmodeTTS {
39
39
  playedText: string;
40
40
  leftText: string;
41
41
  }): void;
42
- playAudioData(audioData: string, chatVoice: Parse.Object, eventMap: any): void;
43
- uploadAndSaveVoice(blob: any, chatVoice: any): Promise<void>;
42
+ playAudioData(audioData: string, chatVoice: Parse.Object, eventMap: any): Promise<void>;
43
+ uploadAndSaveVoice(blob: any, chatVoice: any): Promise<string>;
44
44
  }
45
45
  export {};
@@ -2,9 +2,11 @@ import Parse from "parse";
2
2
  import { Router } from '@angular/router';
3
3
  import { NovaCloudService } from '../../nova-cloud';
4
4
  import { HttpClient } from '@angular/common/http';
5
+ import { ToastController } from '@ionic/angular/standalone';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class AuthService {
7
8
  router: Router;
9
+ private toastCtrl;
8
10
  private novaCloud;
9
11
  private http;
10
12
  /**
@@ -15,6 +17,15 @@ export declare class AuthService {
15
17
  guardMap: any;
16
18
  isModalShow: boolean;
17
19
  isGuardLock(url: any): boolean;
20
+ showBackHome: boolean;
21
+ activeButton: string;
22
+ loginOptions: {
23
+ userpwd?: boolean;
24
+ mobilepwd?: boolean;
25
+ mobilecode?: boolean;
26
+ wechat?: boolean;
27
+ };
28
+ get loginTypeCount(): number;
18
29
  /**
19
30
  * 企业账套:登录用户校验所在的账套
20
31
  */
@@ -35,7 +46,8 @@ export declare class AuthService {
35
46
  */
36
47
  isLoggedIn: boolean;
37
48
  redirectUrl: string;
38
- constructor(router: Router, novaCloud: NovaCloudService, http: HttpClient);
49
+ constructor(router: Router, toastCtrl: ToastController, novaCloud: NovaCloudService, http: HttpClient);
50
+ toast(options: any): Promise<void>;
39
51
  init(options: {
40
52
  company?: string;
41
53
  guardType?: "page" | "modal";
@@ -56,9 +68,12 @@ export declare class AuthService {
56
68
  signMobilePassword(mobile: string, password: string): Promise<any>;
57
69
  mobileUserMap: {};
58
70
  getMobileUser(mobile: string): Promise<any>;
59
- loginCode(mobile: string, code: string, msgServ?: any): Promise<Boolean>;
71
+ enabledLocalCode: boolean;
72
+ signUpAndUpdate(mobile: any, password?: string): Promise<Parse.Object | undefined>;
73
+ getMobileCodeToken(mobile: any, code: any): Promise<any>;
74
+ loginCode(mobile: string, code: string, msgServ?: any, closeCallBack?: any): Promise<Boolean>;
60
75
  saveParamsInvite(): void;
61
- bindInvite(current?: any): void;
76
+ bindInvite(current?: any): Promise<void>;
62
77
  static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
63
78
  static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
64
79
  }
@@ -3,12 +3,14 @@ import { Router } from "@angular/router";
3
3
  import { AuthService } from "../login/auth.service";
4
4
  import { NzMessageService } from "ng-zorro-antd/message";
5
5
  import { HttpClient } from '@angular/common/http';
6
+ import { ToastController } from "@ionic/angular/standalone";
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class ModalUserLoginComponent implements OnInit {
8
9
  private msg;
9
10
  authServ: AuthService;
10
11
  private router;
11
12
  private http;
13
+ private toastCtrl;
12
14
  mobile: string;
13
15
  password: string;
14
16
  password2: string;
@@ -16,7 +18,7 @@ export declare class ModalUserLoginComponent implements OnInit {
16
18
  canvasDom: ElementRef;
17
19
  loginInfo: any;
18
20
  localCodeNum: string;
19
- constructor(msg: NzMessageService, authServ: AuthService, router: Router, http: HttpClient);
21
+ constructor(msg: NzMessageService, authServ: AuthService, router: Router, http: HttpClient, toastCtrl: ToastController);
20
22
  ngOnInit(): void;
21
23
  ngAfterViewInit(): void;
22
24
  signMobilePassword(): void;
@@ -24,7 +26,6 @@ export declare class ModalUserLoginComponent implements OnInit {
24
26
  close(): void;
25
27
  goHome(): void;
26
28
  handleEscapeKey(event: KeyboardEvent): void;
27
- activeButton: string;
28
29
  setActiveButton(buttonName: string): void;
29
30
  countdown: number;
30
31
  buttonText: string;
@@ -32,6 +33,7 @@ export declare class ModalUserLoginComponent implements OnInit {
32
33
  startCountdown(): void;
33
34
  time(): void;
34
35
  login(): Promise<void>;
36
+ toast(options: any): Promise<void>;
35
37
  drawCode: Array<string>;
36
38
  updateDrawCode(): void;
37
39
  randomColor(): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmode-ng",
3
- "version": "0.0.40",
3
+ "version": "0.0.42",
4
4
  "author": "未来全栈",
5
5
  "license": "COPYRIGHT © 未来飞马 未来全栈 www.fmode.cn All RIGHTS RESERVED",
6
6
  "peerDependencies": {