fmode-ng 0.0.83 → 0.0.85
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/esm2022/lib/aigc/avatar/comp-avatar-talk/comp-avatar-talk.component.mjs +1 -1
- package/esm2022/lib/aigc/avatar/modal-chat-voice-input/modal-chat-voice-input.component.mjs +1 -1
- package/esm2022/lib/aigc/chat/chat-header-area/comp-header-area.component.mjs +1 -1
- package/esm2022/lib/aigc/chat/chat-message-card/comp-message-card.component.mjs +1 -1
- package/esm2022/lib/aigc/chat/chat-modal-input/modal-audio-message/modal-audio-message.component.mjs +1 -1
- package/esm2022/lib/aigc/chat/chat-modal-input/modal-input.component.mjs +1 -1
- package/esm2022/lib/aigc/chat/chat-panel/chat-panel.component.mjs +1 -1
- package/esm2022/lib/aigc/index.mjs +1 -1
- package/esm2022/lib/aigc/story/fm-office-viewer/fm-office-viewer.component.mjs +10 -0
- package/esm2022/lib/aigc/story/fm-story-card/fm-story-card.component.mjs +10 -0
- package/esm2022/lib/aigc/story/fm-story-list/fm-story-list.component.mjs +10 -0
- package/esm2022/lib/aigc/story/fm-story-list/story-preview.mjs +10 -0
- package/esm2022/lib/aigc/story/fm-story-loader/fm-story-loader.component.mjs +10 -0
- package/esm2022/lib/aigc/story/fm-story-splitter/fm-story-splitter.component.mjs +10 -0
- package/esm2022/lib/aigc/story/index.mjs +10 -0
- package/esm2022/lib/aigc/story/modal-chat-story/comp-chat-story-json/comp-chat-story-json.component.mjs +10 -0
- package/esm2022/lib/aigc/story/modal-chat-story/comp-diary-story/comp-diary-story.component.mjs +10 -0
- package/esm2022/lib/aigc/story/modal-chat-story/modal-chat-story.component.mjs +10 -0
- package/esm2022/lib/aigc/story/story.service.mjs +10 -0
- package/esm2022/lib/aigc/voice/fmode-voice.service.mjs +1 -1
- package/esm2022/lib/aigc/voice/index.mjs +1 -1
- package/esm2022/lib/aigc/voice/{audio.player.mjs → lib/audio/audio.player.mjs} +2 -2
- package/esm2022/lib/aigc/voice/lib/audio/audio.streamer.mjs +10 -0
- package/esm2022/lib/aigc/voice/lib/audio/streamer.microsoft.mjs +10 -0
- package/esm2022/lib/aigc/voice/lib/audio/streamer.pcm.mjs +10 -0
- package/esm2022/lib/aigc/voice/tts/fmode-tts-class.mjs +1 -1
- package/esm2022/lib/aigc/voice/tts/index.mjs +1 -1
- package/esm2022/lib/aigc/voice/tts/int-tts-provider.mjs +10 -0
- package/esm2022/lib/aigc/voice/tts/provider-doubao.mjs +10 -0
- package/esm2022/lib/aigc/voice/tts/provider-microsoft.mjs +10 -0
- package/esm2022/lib/core/agent/chat/completion/fmode-completion.mjs +1 -1
- package/esm2022/lib/core/agent/chat/completion/int-gpt-chat-options.mjs +10 -0
- package/esm2022/lib/core/agent/chat/fmode-chat.mjs +1 -1
- package/esm2022/lib/core/agent/chat/index.mjs +1 -1
- package/esm2022/lib/core/agent/prompt/agent.prompt.mjs +1 -1
- package/esm2022/lib/core/index.mjs +10 -0
- package/esm2022/lib/core/voice/index.mjs +10 -0
- package/esm2022/lib/icon/filetype/audio.svg.mjs +10 -0
- package/esm2022/lib/icon/filetype/avatar.svg.mjs +10 -0
- package/esm2022/lib/icon/filetype/chat.svg.mjs +10 -0
- package/esm2022/lib/icon/filetype/docx.svg.mjs +10 -0
- package/esm2022/lib/icon/filetype/file.svg.mjs +10 -0
- package/esm2022/lib/icon/filetype/filetype.pipe.mjs +10 -0
- package/esm2022/lib/icon/filetype/index.mjs +10 -0
- package/esm2022/lib/icon/filetype/md.svg.mjs +10 -0
- package/esm2022/lib/icon/filetype/pdf.svg.mjs +10 -0
- package/esm2022/lib/icon/filetype/pptx.svg.mjs +10 -0
- package/esm2022/lib/icon/filetype/svgtoblob.mjs +10 -0
- package/esm2022/lib/icon/filetype/video.svg.mjs +10 -0
- package/esm2022/lib/icon/filetype/xlsx.svg.mjs +10 -0
- package/esm2022/lib/icon/index.mjs +10 -0
- package/esm2022/lib/person/comp-person-gender-icon/comp-person-gender-icon.component.mjs +10 -0
- package/esm2022/lib/person/comp-person-item/comp-person-item.component.mjs +10 -0
- package/esm2022/lib/person/comp-person-story/comp-person-story.component.mjs +10 -0
- package/esm2022/lib/person/edit-upload/edit-upload.component.mjs +10 -0
- package/esm2022/lib/person/edit-upload/edit-upload.module.mjs +10 -0
- package/esm2022/lib/person/index.mjs +10 -0
- package/esm2022/lib/person/modal-person-select/modal-person-select.component.mjs +10 -0
- package/esm2022/lib/person/modal-user-verify/secret-text.pipe.mjs +10 -0
- package/esm2022/lib/person/modal-user-verify/user-verify.component.mjs +10 -0
- package/esm2022/lib/person/person-detail/person-detail.component.mjs +10 -0
- package/esm2022/lib/person/person.service.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/article-editor-topbar/article-editor-topbar.component.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/article.service.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/comp-upload-book-banners/comp-upload-book-banners.component.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/draft.service.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/fm-article-aitool/fm-article-aitool.component.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/fm-article-draft/fm-article-draft.component.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/fm-article-editor.component.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/fm-article-outline/fm-article-outline.component.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/fm-article-outline-leftitem/fm-article-outline-leftitem.component.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/fm-article-preview/fm-article-preview.component.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/fm-article-write-options/fm-article-write-options.component.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/outline-count.pipe.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/prompt/prompt-insertion-article.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/task-article-generation.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/tasks/task-article-draft-create.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/tasks/task-article-outline-edit.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/tasks/task-article-outline.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/tasks/task-article-preview.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/tasks/task-article-writing-options.mjs +10 -0
- package/esm2022/lib/text/fm-article-editor/tasks/task-document-select.mjs +10 -0
- package/esm2022/lib/text/fm-text-quill/fm-text-quill.component.mjs +10 -0
- package/esm2022/lib/text/index.mjs +10 -0
- package/esm2022/public-api.mjs +1 -1
- package/fesm2022/fmode-ng.mjs +1 -1
- package/fesm2022/fmode-ng.mjs.map +1 -1
- package/lib/aigc/avatar/comp-avatar-talk/comp-avatar-talk.component.d.ts +5 -3
- package/lib/aigc/avatar/modal-chat-voice-input/modal-chat-voice-input.component.d.ts +4 -2
- package/lib/aigc/chat/chat-message-card/comp-message-card.component.d.ts +6 -1
- package/lib/aigc/chat/chat-modal-input/modal-audio-message/modal-audio-message.component.d.ts +6 -3
- package/lib/aigc/chat/chat-modal-input/modal-input.component.d.ts +5 -1
- package/lib/aigc/index.d.ts +1 -0
- package/lib/aigc/story/fm-office-viewer/fm-office-viewer.component.d.ts +23 -0
- package/lib/aigc/story/fm-story-card/fm-story-card.component.d.ts +26 -0
- package/lib/aigc/story/fm-story-list/fm-story-list.component.d.ts +71 -0
- package/lib/aigc/story/fm-story-list/story-preview.d.ts +20 -0
- package/lib/aigc/story/fm-story-loader/fm-story-loader.component.d.ts +38 -0
- package/lib/aigc/story/fm-story-splitter/fm-story-splitter.component.d.ts +13 -0
- package/lib/aigc/story/index.d.ts +5 -0
- package/lib/aigc/story/modal-chat-story/comp-chat-story-json/comp-chat-story-json.component.d.ts +14 -0
- package/lib/aigc/story/modal-chat-story/comp-diary-story/comp-diary-story.component.d.ts +29 -0
- package/lib/aigc/story/modal-chat-story/modal-chat-story.component.d.ts +44 -0
- package/lib/aigc/story/story.service.d.ts +12 -0
- package/lib/aigc/voice/fmode-voice.service.d.ts +3 -6
- package/lib/aigc/voice/index.d.ts +3 -2
- package/lib/aigc/voice/lib/audio/audio.streamer.d.ts +33 -0
- package/lib/aigc/voice/{stream.player.d.ts → lib/audio/streamer.microsoft.d.ts} +2 -2
- package/lib/aigc/voice/lib/audio/streamer.pcm.d.ts +45 -0
- package/lib/aigc/voice/tts/fmode-tts-class.d.ts +17 -37
- package/lib/aigc/voice/tts/index.d.ts +3 -0
- package/lib/aigc/voice/tts/int-tts-provider.d.ts +35 -0
- package/lib/aigc/voice/tts/provider-doubao.d.ts +43 -0
- package/lib/aigc/voice/tts/provider-microsoft.d.ts +21 -0
- package/lib/core/agent/chat/completion/fmode-completion.d.ts +2 -1
- package/lib/core/agent/chat/completion/int-gpt-chat-options.d.ts +72 -0
- package/lib/core/agent/chat/index.d.ts +1 -1
- package/lib/core/agent/chat/interface.d.ts +3 -0
- package/lib/core/agent/prompt/agent.prompt.d.ts +2 -1
- package/lib/core/index.d.ts +2 -0
- package/lib/core/voice/index.d.ts +1 -0
- package/lib/icon/filetype/audio.svg.d.ts +1 -0
- package/lib/icon/filetype/avatar.svg.d.ts +1 -0
- package/lib/icon/filetype/chat.svg.d.ts +1 -0
- package/lib/icon/filetype/docx.svg.d.ts +1 -0
- package/lib/icon/filetype/file.svg.d.ts +1 -0
- package/lib/icon/filetype/filetype.pipe.d.ts +8 -0
- package/lib/icon/filetype/index.d.ts +11 -0
- package/lib/icon/filetype/md.svg.d.ts +1 -0
- package/lib/icon/filetype/pdf.svg.d.ts +1 -0
- package/lib/icon/filetype/pptx.svg.d.ts +1 -0
- package/lib/icon/filetype/svgtoblob.d.ts +1 -0
- package/lib/icon/filetype/video.svg.d.ts +1 -0
- package/lib/icon/filetype/xlsx.svg.d.ts +1 -0
- package/lib/icon/index.d.ts +1 -0
- package/lib/person/comp-person-gender-icon/comp-person-gender-icon.component.d.ts +20 -0
- package/lib/person/comp-person-item/comp-person-item.component.d.ts +10 -0
- package/lib/person/comp-person-story/comp-person-story.component.d.ts +67 -0
- package/lib/person/edit-upload/edit-upload.component.d.ts +81 -0
- package/lib/person/edit-upload/edit-upload.module.d.ts +11 -0
- package/lib/person/index.d.ts +4 -0
- package/lib/person/modal-person-select/modal-person-select.component.d.ts +25 -0
- package/lib/person/modal-user-verify/secret-text.pipe.d.ts +7 -0
- package/lib/person/modal-user-verify/user-verify.component.d.ts +88 -0
- package/lib/person/person-detail/person-detail.component.d.ts +41 -0
- package/lib/person/person.service.d.ts +33 -0
- package/lib/text/fm-article-editor/article-editor-topbar/article-editor-topbar.component.d.ts +23 -0
- package/lib/text/fm-article-editor/article.service.d.ts +41 -0
- package/lib/text/fm-article-editor/comp-upload-book-banners/comp-upload-book-banners.component.d.ts +19 -0
- package/lib/text/fm-article-editor/draft.service.d.ts +33 -0
- package/lib/text/fm-article-editor/fm-article-aitool/fm-article-aitool.component.d.ts +73 -0
- package/lib/text/fm-article-editor/fm-article-draft/fm-article-draft.component.d.ts +81 -0
- package/lib/text/fm-article-editor/fm-article-editor.component.d.ts +90 -0
- package/lib/text/fm-article-editor/fm-article-outline/fm-article-outline.component.d.ts +36 -0
- package/lib/text/fm-article-editor/fm-article-outline-leftitem/fm-article-outline-leftitem.component.d.ts +12 -0
- package/lib/text/fm-article-editor/fm-article-preview/fm-article-preview.component.d.ts +55 -0
- package/lib/text/fm-article-editor/fm-article-write-options/fm-article-write-options.component.d.ts +31 -0
- package/lib/text/fm-article-editor/outline-count.pipe.d.ts +7 -0
- package/lib/text/fm-article-editor/prompt/prompt-insertion-article.d.ts +6 -0
- package/lib/text/fm-article-editor/task-article-generation.d.ts +23 -0
- package/lib/text/fm-article-editor/tasks/task-article-draft-create.d.ts +18 -0
- package/lib/text/fm-article-editor/tasks/task-article-outline-edit.d.ts +14 -0
- package/lib/text/fm-article-editor/tasks/task-article-outline.d.ts +19 -0
- package/lib/text/fm-article-editor/tasks/task-article-preview.d.ts +7 -0
- package/lib/text/fm-article-editor/tasks/task-article-writing-options.d.ts +14 -0
- package/lib/text/fm-article-editor/tasks/task-document-select.d.ts +14 -0
- package/lib/text/fm-text-quill/fm-text-quill.component.d.ts +39 -0
- package/lib/text/index.d.ts +3 -0
- package/package.json +6 -2
- package/public-api.d.ts +4 -0
- package/esm2022/lib/aigc/voice/lib/recorder/engine-pcm.mjs +0 -10
- package/esm2022/lib/aigc/voice/lib/recorder/engine-wav.mjs +0 -10
- package/esm2022/lib/aigc/voice/stream.player.mjs +0 -10
- package/lib/aigc/voice/lib/recorder/engine-pcm.d.ts +0 -1
- package/lib/aigc/voice/lib/recorder/engine-wav.d.ts +0 -1
- /package/lib/aigc/voice/{audio.player.d.ts → lib/audio/audio.player.d.ts} +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface FmodeTTSEvent {
|
|
2
|
+
onSpeakBefore?(): void;
|
|
3
|
+
onStreamStarted?(): void;
|
|
4
|
+
onAudioCompleted?(): void;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* TTS提供者接口
|
|
8
|
+
* 所有具体的TTS服务实现都应该遵循此接口
|
|
9
|
+
*/
|
|
10
|
+
export interface FmodeTTSProvider {
|
|
11
|
+
/**
|
|
12
|
+
* 初始化TTS服务
|
|
13
|
+
* @param config 配置参数
|
|
14
|
+
*/
|
|
15
|
+
initialize(config: any): void;
|
|
16
|
+
/**
|
|
17
|
+
* 合成语音
|
|
18
|
+
* @param textOrSSML 文本或SSML内容
|
|
19
|
+
* @param onResult 结果回调
|
|
20
|
+
* @param onError 错误回调
|
|
21
|
+
*/
|
|
22
|
+
synthesize(textOrSSML: string, onResult: (result: any) => void, onError: (error: any) => void, onStart: () => void): void;
|
|
23
|
+
/**
|
|
24
|
+
* 停止当前合成
|
|
25
|
+
*/
|
|
26
|
+
stop(): void;
|
|
27
|
+
/**
|
|
28
|
+
* 销毁资源
|
|
29
|
+
*/
|
|
30
|
+
dispose(): void;
|
|
31
|
+
/**
|
|
32
|
+
* 事件映射
|
|
33
|
+
*/
|
|
34
|
+
eventMap?: FmodeTTSEvent;
|
|
35
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { FmodeTTSProvider, FmodeTTSEvent } from "./int-tts-provider";
|
|
2
|
+
import { PCMStreamer } from "../lib/audio/streamer.pcm";
|
|
3
|
+
/**
|
|
4
|
+
* ByteDance/Doubao TTS Provider Implementation (Optimized)
|
|
5
|
+
*/
|
|
6
|
+
export declare class FmodeTTSProviderDoubao implements FmodeTTSProvider {
|
|
7
|
+
private ws;
|
|
8
|
+
private audioChunks;
|
|
9
|
+
private isSynthesizing;
|
|
10
|
+
private audioStream;
|
|
11
|
+
eventMap?: FmodeTTSEvent;
|
|
12
|
+
constructor();
|
|
13
|
+
config: any;
|
|
14
|
+
initialize(config: {
|
|
15
|
+
appId: string;
|
|
16
|
+
accessToken: string;
|
|
17
|
+
cluster?: string;
|
|
18
|
+
audioStream?: PCMStreamer;
|
|
19
|
+
}): void;
|
|
20
|
+
synthesize(textOrSSML: string, onResult: (result: {
|
|
21
|
+
audioData: ArrayBuffer;
|
|
22
|
+
audioDuration: number;
|
|
23
|
+
}) => void, onError: (error: string) => void, onStart: () => void): void;
|
|
24
|
+
private buildBinaryMessage;
|
|
25
|
+
isStarted: boolean;
|
|
26
|
+
private parseResponse;
|
|
27
|
+
stop(): void;
|
|
28
|
+
dispose(): void;
|
|
29
|
+
private extractTextFromSSML;
|
|
30
|
+
private blobToArrayBuffer;
|
|
31
|
+
private mergePcmToWav;
|
|
32
|
+
/**
|
|
33
|
+
* 创建WAV文件头
|
|
34
|
+
* @param options 音频参数
|
|
35
|
+
* @returns WAV头ArrayBuffer
|
|
36
|
+
*/
|
|
37
|
+
private createWavHeader;
|
|
38
|
+
/**
|
|
39
|
+
* 向DataView写入字符串
|
|
40
|
+
*/
|
|
41
|
+
private writeString;
|
|
42
|
+
}
|
|
43
|
+
export declare function buildFullUrl(url: string, auth: Record<string, string>): string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FmodeTTSProvider, FmodeTTSEvent } from "./int-tts-provider";
|
|
2
|
+
/**
|
|
3
|
+
* Microsoft语音合成服务实现
|
|
4
|
+
*/
|
|
5
|
+
export declare class FmodeTTSProviderMicrosoft implements FmodeTTSProvider {
|
|
6
|
+
private speechConfig;
|
|
7
|
+
private audioConfig;
|
|
8
|
+
private synthesizer;
|
|
9
|
+
eventMap?: FmodeTTSEvent;
|
|
10
|
+
constructor();
|
|
11
|
+
initialize(config: {
|
|
12
|
+
region: string;
|
|
13
|
+
subscriptionKey?: string;
|
|
14
|
+
token?: string;
|
|
15
|
+
audioStream?: any;
|
|
16
|
+
}): void;
|
|
17
|
+
synthesize(textOrSSML: string, onResult: (result: any) => void, onError: (error: any) => void, onStart: () => void): void;
|
|
18
|
+
stop(): void;
|
|
19
|
+
dispose(): void;
|
|
20
|
+
private fixMarkdownChar;
|
|
21
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
2
|
import { FmodeChatMessage } from "../interface";
|
|
3
|
+
import { GptChatOptions } from "./int-gpt-chat-options";
|
|
3
4
|
/**
|
|
4
5
|
* FmodeChatCompletion 文本补全类
|
|
5
6
|
* @public
|
|
@@ -25,5 +26,5 @@ export declare class FmodeChatCompletion {
|
|
|
25
26
|
isDirect?: boolean;
|
|
26
27
|
intTime?: number;
|
|
27
28
|
onComplete?: Function;
|
|
28
|
-
}): Observable<FmodeChatMessage>;
|
|
29
|
+
} & GptChatOptions): Observable<FmodeChatMessage>;
|
|
29
30
|
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { FmodeChatMessage } from "../interface";
|
|
2
|
+
export interface GptChatOptions {
|
|
3
|
+
/**
|
|
4
|
+
* 模型名称,例如 "gpt-3.5-turbo", "gpt-4" 等
|
|
5
|
+
*/
|
|
6
|
+
model?: string;
|
|
7
|
+
/**
|
|
8
|
+
* 对话消息列表
|
|
9
|
+
*/
|
|
10
|
+
messages?: Array<FmodeChatMessage>;
|
|
11
|
+
/**
|
|
12
|
+
* 控制生成文本的随机性 (0-2)
|
|
13
|
+
* 值越高输出越随机
|
|
14
|
+
*/
|
|
15
|
+
temperature?: number;
|
|
16
|
+
/**
|
|
17
|
+
* 核心采样概率 (0-1)
|
|
18
|
+
* 只考虑前top_p概率质量的token
|
|
19
|
+
*/
|
|
20
|
+
top_p?: number;
|
|
21
|
+
/**
|
|
22
|
+
* 生成的最大token数量
|
|
23
|
+
*/
|
|
24
|
+
max_tokens?: number;
|
|
25
|
+
/**
|
|
26
|
+
* 存在惩罚 (-2.0 到 2.0)
|
|
27
|
+
* 正值会根据token在文本中的已有出现次数进行惩罚
|
|
28
|
+
*/
|
|
29
|
+
presence_penalty?: number;
|
|
30
|
+
/**
|
|
31
|
+
* 频率惩罚 (-2.0 到 2.0)
|
|
32
|
+
* 正值会根据token在文本中的已有频率进行惩罚
|
|
33
|
+
*/
|
|
34
|
+
frequency_penalty?: number;
|
|
35
|
+
/**
|
|
36
|
+
* 停止生成的条件,遇到指定字符串时停止
|
|
37
|
+
*/
|
|
38
|
+
stop?: string | string[];
|
|
39
|
+
/**
|
|
40
|
+
* 是否以流式方式返回结果
|
|
41
|
+
*/
|
|
42
|
+
stream?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* 对数偏差,用于修改特定token的生成概率
|
|
45
|
+
*/
|
|
46
|
+
logit_bias?: Record<string, number>;
|
|
47
|
+
/**
|
|
48
|
+
* 用户标识,用于监控和滥用检测
|
|
49
|
+
*/
|
|
50
|
+
user?: string;
|
|
51
|
+
/**
|
|
52
|
+
* 函数调用相关配置
|
|
53
|
+
*/
|
|
54
|
+
functions?: Array<{
|
|
55
|
+
name: string;
|
|
56
|
+
description?: string;
|
|
57
|
+
parameters: Record<string, any>;
|
|
58
|
+
}>;
|
|
59
|
+
/**
|
|
60
|
+
* 控制函数调用行为
|
|
61
|
+
* 'none' - 不调用函数
|
|
62
|
+
* 'auto' - 模型自行决定
|
|
63
|
+
* {'name': 'my_function'} - 强制调用特定函数
|
|
64
|
+
*/
|
|
65
|
+
function_call?: 'none' | 'auto' | {
|
|
66
|
+
name: string;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* 是否在响应中包含使用情况数据
|
|
70
|
+
*/
|
|
71
|
+
usage?: boolean;
|
|
72
|
+
}
|
|
@@ -5,12 +5,15 @@ export interface FmodeChatMessageVoice {
|
|
|
5
5
|
voiceUrl?: string;
|
|
6
6
|
}
|
|
7
7
|
export interface FmodeChatEventMap {
|
|
8
|
+
onMessageStart?(FmodeChatMessage: any): void;
|
|
8
9
|
onComplete?(FmodeChatMessage: any): void;
|
|
9
10
|
onSSMLComplete?(FmodeChatMessageVoice: any): void;
|
|
10
11
|
}
|
|
11
12
|
export interface FmodeChatVoiceConfig {
|
|
12
13
|
voice: string;
|
|
13
14
|
autoTalk: boolean;
|
|
15
|
+
rate: string;
|
|
16
|
+
provider?: "microsoft" | "doubao";
|
|
14
17
|
welcome: {
|
|
15
18
|
enabled: true;
|
|
16
19
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { PromptTemplate } from "@langchain/core/prompts";
|
|
2
2
|
import { FmodeChatMessage } from '../chat';
|
|
3
3
|
import { Observable } from "rxjs";
|
|
4
|
+
import { GptChatOptions } from "../chat/completion/int-gpt-chat-options";
|
|
4
5
|
export declare class AgentPrompt {
|
|
5
6
|
constructor();
|
|
6
|
-
jsonCompletion(prompt: string, model?: string): Observable<FmodeChatMessage | any>;
|
|
7
|
+
jsonCompletion(prompt: string, model?: string, options?: GptChatOptions): Observable<FmodeChatMessage | any>;
|
|
7
8
|
extractAndParseJson(inputString: string): any;
|
|
8
9
|
extractMarkdownToMultiArray(markdownText: string): any;
|
|
9
10
|
getFormatTpl(promptTplCode: string, paramsMap: any): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tts";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const audioIcon: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const avatarIcon: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const chatIcon: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const docxIcon: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const fileIcon: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FiletypePipe implements PipeTransform {
|
|
4
|
+
iconMap: any;
|
|
5
|
+
transform(url?: string, ...args: string[]): unknown;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FiletypePipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FiletypePipe, "filetype", true>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./docx.svg";
|
|
2
|
+
export * from "./pptx.svg";
|
|
3
|
+
export * from "./xlsx.svg";
|
|
4
|
+
export * from "./pdf.svg";
|
|
5
|
+
export * from "./video.svg";
|
|
6
|
+
export * from "./audio.svg";
|
|
7
|
+
export * from './md.svg';
|
|
8
|
+
export * from './chat.svg';
|
|
9
|
+
export * from './file.svg';
|
|
10
|
+
export * from './avatar.svg';
|
|
11
|
+
export * from './filetype.pipe';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mdIcon: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const pdfIcon: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const pptxIcon: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function svgStringToBlobURL(svgString: any): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const videoIcon: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const xlsxSvg: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./filetype/filetype.pipe";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CompPersonGenderIconComponent implements OnInit {
|
|
4
|
+
person: Parse.Object | undefined;
|
|
5
|
+
constructor();
|
|
6
|
+
gender: "male" | "female" | "unknown";
|
|
7
|
+
genderIcon: {
|
|
8
|
+
male: string;
|
|
9
|
+
female: string;
|
|
10
|
+
unknown: string;
|
|
11
|
+
};
|
|
12
|
+
genderColor: {
|
|
13
|
+
male: string;
|
|
14
|
+
female: string;
|
|
15
|
+
unknown: string;
|
|
16
|
+
};
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CompPersonGenderIconComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CompPersonGenderIconComponent, "fm-comp-person-gender-icon", never, { "person": { "alias": "person"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CompPersonItemComponent implements OnInit {
|
|
4
|
+
person: Parse.Object | undefined;
|
|
5
|
+
defaultAvatar: string;
|
|
6
|
+
constructor();
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CompPersonItemComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CompPersonItemComponent, "fm-comp-person-item", never, { "person": { "alias": "person"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { AgentStory } from '../../core';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import Parse from "parse";
|
|
5
|
+
import { LoadingController } from '@ionic/angular';
|
|
6
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
7
|
+
import { FmStoryListComponent } from '../../aigc/story';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class CompPersonStoryComponent implements OnInit {
|
|
10
|
+
private route;
|
|
11
|
+
private loadingCtrl;
|
|
12
|
+
dialog: MatDialog;
|
|
13
|
+
private router;
|
|
14
|
+
listComp: FmStoryListComponent | undefined;
|
|
15
|
+
person: Parse.Object | undefined;
|
|
16
|
+
book: Parse.Object | undefined;
|
|
17
|
+
article: Parse.Object | undefined;
|
|
18
|
+
currentStory: AgentStory | undefined;
|
|
19
|
+
storyList: Array<AgentStory> | undefined;
|
|
20
|
+
isPreview: boolean;
|
|
21
|
+
currentTab: string;
|
|
22
|
+
height: string;
|
|
23
|
+
isSelectMode: boolean;
|
|
24
|
+
checkedMap: {
|
|
25
|
+
[key: string]: true;
|
|
26
|
+
};
|
|
27
|
+
selectCount: number;
|
|
28
|
+
selectToken: number;
|
|
29
|
+
onCancel: EventEmitter<boolean>;
|
|
30
|
+
onCountChange: EventEmitter<number>;
|
|
31
|
+
countChange(value: any): void;
|
|
32
|
+
onTokenChange: EventEmitter<number>;
|
|
33
|
+
tokenChange(value: any): void;
|
|
34
|
+
confirmSelectedList(): Promise<void>;
|
|
35
|
+
onConfirmSelect: EventEmitter<any>;
|
|
36
|
+
constructor(route: ActivatedRoute, loadingCtrl: LoadingController, dialog: MatDialog, router: Router);
|
|
37
|
+
routingMode: boolean;
|
|
38
|
+
ngOnInit(): Promise<void>;
|
|
39
|
+
previewStory(event: any): Promise<void>;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CompPersonStoryComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CompPersonStoryComponent, "comp-person-story", never, { "person": { "alias": "person"; "required": false; }; "book": { "alias": "book"; "required": false; }; "article": { "alias": "article"; "required": false; }; "isSelectMode": { "alias": "isSelectMode"; "required": false; }; }, { "onCancel": "onCancel"; "onCountChange": "onCountChange"; "onTokenChange": "onTokenChange"; "onConfirmSelect": "onConfirmSelect"; }, never, never, true, never>;
|
|
42
|
+
}
|
|
43
|
+
export declare class DialogPersonStorySelect {
|
|
44
|
+
dialogRef: MatDialogRef<CompPersonStoryComponent>;
|
|
45
|
+
data: {
|
|
46
|
+
person: Parse.Object;
|
|
47
|
+
book: Parse.Object;
|
|
48
|
+
article: Parse.Object;
|
|
49
|
+
};
|
|
50
|
+
storySelectComp: CompPersonStoryComponent | undefined;
|
|
51
|
+
person: Parse.Object | undefined;
|
|
52
|
+
book: Parse.Object | undefined;
|
|
53
|
+
article: Parse.Object | undefined;
|
|
54
|
+
isSelectMode: boolean;
|
|
55
|
+
selectCount: number | undefined;
|
|
56
|
+
selectToken: number;
|
|
57
|
+
limitToken: number;
|
|
58
|
+
confirmSelectedList(): void;
|
|
59
|
+
constructor(dialogRef: MatDialogRef<CompPersonStoryComponent>, data: {
|
|
60
|
+
person: Parse.Object;
|
|
61
|
+
book: Parse.Object;
|
|
62
|
+
article: Parse.Object;
|
|
63
|
+
});
|
|
64
|
+
onConfirm(ev: any): void;
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogPersonStorySelect, never>;
|
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogPersonStorySelect, "person-story-select-dialog", never, {}, {}, never, never, true, never>;
|
|
67
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { NovaUploadService } from "../../storage/service-upload/nova-upload.service";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class EditUploadComponent implements OnInit {
|
|
5
|
+
private uploadServ;
|
|
6
|
+
local: any;
|
|
7
|
+
/** 标签组件 <Tag> EditUpload
|
|
8
|
+
@param {Array | string} files 必填 绑定文件列表参数
|
|
9
|
+
@param {boolean} dragdrop 选填 默认false 是否支持拖拽上传
|
|
10
|
+
@param {string} multi 选填 默认false 是否支持多文件上传
|
|
11
|
+
@param {string} type 选填 默认image 设置上传附件类型
|
|
12
|
+
@param {number} max_file_size 选填 文件上传的最大体积 单位mb 默认 100 mb
|
|
13
|
+
**/
|
|
14
|
+
_files: any;
|
|
15
|
+
dragdrop: boolean;
|
|
16
|
+
multi: boolean;
|
|
17
|
+
max_file_size: number;
|
|
18
|
+
/**
|
|
19
|
+
* 上传文件类型
|
|
20
|
+
* @type 'image' | 'attachment' | 'video'
|
|
21
|
+
* @description "空"仅显示附件列表无上传、image仅图片类型、attachment图片及文档及压缩包类型、video视频类型
|
|
22
|
+
* @default image
|
|
23
|
+
*/
|
|
24
|
+
type: string;
|
|
25
|
+
onFilesChange: EventEmitter<any>;
|
|
26
|
+
avatarType: string;
|
|
27
|
+
inputType: string;
|
|
28
|
+
uptoken: string;
|
|
29
|
+
domain: string;
|
|
30
|
+
qiniuDomain: string;
|
|
31
|
+
company: string;
|
|
32
|
+
_file: string;
|
|
33
|
+
fileChange: EventEmitter<string>;
|
|
34
|
+
get file(): string;
|
|
35
|
+
set file(v: string);
|
|
36
|
+
fileList: string[];
|
|
37
|
+
fileListChange: EventEmitter<string[]>;
|
|
38
|
+
addToFileList(url: any): void;
|
|
39
|
+
get files(): any;
|
|
40
|
+
set files(v: any);
|
|
41
|
+
queryDomain(): Promise<void>;
|
|
42
|
+
/** 设备上传文件途径
|
|
43
|
+
* @path camera:相机 local:本地
|
|
44
|
+
*/
|
|
45
|
+
path: string;
|
|
46
|
+
isCapacitor: boolean;
|
|
47
|
+
zoneUrl: string;
|
|
48
|
+
constructor(uploadServ: NovaUploadService);
|
|
49
|
+
ngOnInit(): void;
|
|
50
|
+
/**
|
|
51
|
+
* 从摄像机获取数据
|
|
52
|
+
* @desc
|
|
53
|
+
* isCapacitor=true移动设备中,从摄像机获取照片/视频
|
|
54
|
+
*/
|
|
55
|
+
takeFromCamera(): Promise<void>;
|
|
56
|
+
ngAfterViewInit(): void;
|
|
57
|
+
hashid: string;
|
|
58
|
+
uploader: any;
|
|
59
|
+
mime_types: {
|
|
60
|
+
title: string;
|
|
61
|
+
extensions: string;
|
|
62
|
+
}[];
|
|
63
|
+
qiniuConf: any;
|
|
64
|
+
getUptoken(): Promise<any>;
|
|
65
|
+
checkFileType(url: string): "image" | "video" | "file";
|
|
66
|
+
upable(): boolean;
|
|
67
|
+
imgShowing: boolean;
|
|
68
|
+
fileUrl: string;
|
|
69
|
+
showFile(file: any): void;
|
|
70
|
+
closeShowModal(): void;
|
|
71
|
+
currentKey: any;
|
|
72
|
+
setFiles(file: any): Promise<void>;
|
|
73
|
+
deleteFile(id: any): void;
|
|
74
|
+
listenToUploader(): void;
|
|
75
|
+
uploaderType(): void;
|
|
76
|
+
getBelongId(): string;
|
|
77
|
+
initUploader(uptoken: any, domain: any): void;
|
|
78
|
+
private uuid;
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditUploadComponent, never>;
|
|
80
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditUploadComponent, "fm-edit-upload", never, { "_files": { "alias": "files"; "required": false; }; "dragdrop": { "alias": "dragdrop"; "required": false; }; "multi": { "alias": "multi"; "required": false; }; "max_file_size": { "alias": "max_file_size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "avatarType": { "alias": "avatarType"; "required": false; }; "company": { "alias": "company"; "required": false; }; "_file": { "alias": "file"; "required": false; }; "fileList": { "alias": "fileList"; "required": false; }; "path": { "alias": "path"; "required": false; }; }, { "onFilesChange": "filesChange"; "fileChange": "fileChange"; "fileListChange": "fileListChange"; }, never, never, false, never>;
|
|
81
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./edit-upload.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "ng-zorro-antd/button";
|
|
6
|
+
import * as i5 from "ng-zorro-antd/icon";
|
|
7
|
+
export declare class EditUploadModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditUploadModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EditUploadModule, [typeof i1.EditUploadComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.NzButtonModule, typeof i5.NzIconModule], [typeof i1.EditUploadComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<EditUploadModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AlertController } from "@ionic/angular/standalone";
|
|
3
|
+
import { ModalController } from "@ionic/angular/standalone";
|
|
4
|
+
import Parse from "parse";
|
|
5
|
+
import { PersonService } from '../person.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ModalPersonSelectComponent implements OnInit {
|
|
8
|
+
private modalCtrl;
|
|
9
|
+
private alertCtrl;
|
|
10
|
+
private personServ;
|
|
11
|
+
defaultAvatar: string;
|
|
12
|
+
selfPerson: Parse.Object | undefined;
|
|
13
|
+
constructor(modalCtrl: ModalController, alertCtrl: AlertController, personServ: PersonService);
|
|
14
|
+
ownPersonList: Parse.Object[];
|
|
15
|
+
authPersonList: Parse.Object[];
|
|
16
|
+
createSelfPerson(withIdcard?: boolean): Promise<void>;
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
selfLoaded: boolean;
|
|
19
|
+
loadPerson(): Promise<void>;
|
|
20
|
+
selectPerson(person: Parse.Object | undefined): Promise<boolean>;
|
|
21
|
+
cancel(): Promise<boolean>;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalPersonSelectComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalPersonSelectComponent, "app-modal-person-select", never, {}, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
25
|
+
export declare function openPersonSelectModal(modalCtrl: ModalController): Promise<any>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SecretTextPipe implements PipeTransform {
|
|
4
|
+
transform(value: string, ...args: string[]): unknown;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SecretTextPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SecretTextPipe, "secretText", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { OnInit, EventEmitter } from "@angular/core";
|
|
2
|
+
import Parse from "parse";
|
|
3
|
+
import { HttpClient } from "@angular/common/http";
|
|
4
|
+
import { NzMessageService } from "ng-zorro-antd/message";
|
|
5
|
+
import { AuthService } from "../../user/login/auth.service";
|
|
6
|
+
import { NovaCloudService } from "../../nova-cloud/nova-cloud.service";
|
|
7
|
+
import { AccountService } from "../../user/account/account.service";
|
|
8
|
+
import { AlertController, ModalController } from "@ionic/angular/standalone";
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
interface student {
|
|
11
|
+
studentID: string;
|
|
12
|
+
mobile: string;
|
|
13
|
+
school: string;
|
|
14
|
+
schoolMajor: string;
|
|
15
|
+
studentType: string;
|
|
16
|
+
education: string;
|
|
17
|
+
workUnit: string;
|
|
18
|
+
workid: string;
|
|
19
|
+
diploma: string;
|
|
20
|
+
degreeNumber: string;
|
|
21
|
+
entrySchool: number;
|
|
22
|
+
college: string;
|
|
23
|
+
}
|
|
24
|
+
export declare class ModalUserVerifyComponent implements OnInit {
|
|
25
|
+
private http;
|
|
26
|
+
private message;
|
|
27
|
+
private novaAccount;
|
|
28
|
+
authServ: AuthService;
|
|
29
|
+
private novaCloud;
|
|
30
|
+
private modalCtrl;
|
|
31
|
+
isVisible: boolean;
|
|
32
|
+
isVisibleChange: EventEmitter<Boolean>;
|
|
33
|
+
verifyOptions: UserVerifyOptions | undefined;
|
|
34
|
+
verifyResult: any;
|
|
35
|
+
onBreakPointSet: Function | undefined;
|
|
36
|
+
isLoading: boolean;
|
|
37
|
+
tab: string;
|
|
38
|
+
company: string;
|
|
39
|
+
idcard: string;
|
|
40
|
+
idcardData: any;
|
|
41
|
+
name: string;
|
|
42
|
+
sex: string;
|
|
43
|
+
idcard_image_front: string;
|
|
44
|
+
idcard_image_back: string;
|
|
45
|
+
identity_auth: boolean;
|
|
46
|
+
profile: Parse.Object | undefined;
|
|
47
|
+
account: Parse.Object | undefined;
|
|
48
|
+
studentDateil: student;
|
|
49
|
+
eduImage: string;
|
|
50
|
+
bankMap: any;
|
|
51
|
+
options: any;
|
|
52
|
+
bankOptions: any;
|
|
53
|
+
constructor(http: HttpClient, message: NzMessageService, novaAccount: AccountService, authServ: AuthService, novaCloud: NovaCloudService, modalCtrl: ModalController);
|
|
54
|
+
veifyFinishBack(): void;
|
|
55
|
+
ngOnInit(): Promise<void>;
|
|
56
|
+
getOptions(): void;
|
|
57
|
+
getProfile(): Promise<void>;
|
|
58
|
+
getAccount(): Promise<void>;
|
|
59
|
+
onClose(): void;
|
|
60
|
+
uploadChange(e: Array<string>, type: string): Promise<void>;
|
|
61
|
+
onDeleted(type: string): void;
|
|
62
|
+
authDisabled(): boolean;
|
|
63
|
+
authDisabledStudent(): boolean;
|
|
64
|
+
onSubmit(): Promise<void>;
|
|
65
|
+
onChangeDate(e: any): void;
|
|
66
|
+
mobileStatus(mobile: string): "error" | "warning" | "";
|
|
67
|
+
onSubimtStudent(): Promise<void>;
|
|
68
|
+
cardNoStatus(): "error" | "warning" | "";
|
|
69
|
+
saveBankAuth(): boolean;
|
|
70
|
+
onSubimtBank(): Promise<void>;
|
|
71
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalUserVerifyComponent, never>;
|
|
72
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalUserVerifyComponent, "app-user-verify", never, { "isVisible": { "alias": "isVisible"; "required": false; }; "verifyOptions": { "alias": "verifyOptions"; "required": false; }; }, { "isVisibleChange": "isVisibleChange"; }, never, never, true, never>;
|
|
73
|
+
}
|
|
74
|
+
interface UserVerifyOptions {
|
|
75
|
+
idcard?: any | {
|
|
76
|
+
ocr?: boolean;
|
|
77
|
+
};
|
|
78
|
+
student?: boolean;
|
|
79
|
+
bankcard?: boolean;
|
|
80
|
+
autoFinish?: boolean;
|
|
81
|
+
}
|
|
82
|
+
interface UserVerifyResult {
|
|
83
|
+
verifyResult: UserVerifyOptions;
|
|
84
|
+
profile?: Parse.Object;
|
|
85
|
+
account?: Parse.Object;
|
|
86
|
+
}
|
|
87
|
+
export declare function openUserVerifyModal(modalCtrl: ModalController, alertCtrl: AlertController, options?: UserVerifyOptions): Promise<UserVerifyResult | undefined>;
|
|
88
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
4
|
+
import { Location } from '@angular/common';
|
|
5
|
+
import * as Parse from "parse";
|
|
6
|
+
import { ModalController } from '@ionic/angular/standalone';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class PersonDetailComponent implements OnInit {
|
|
9
|
+
private route;
|
|
10
|
+
private message;
|
|
11
|
+
private location;
|
|
12
|
+
private modalCtrl;
|
|
13
|
+
cancel(): void;
|
|
14
|
+
confirm(): Promise<void>;
|
|
15
|
+
radioValue: string;
|
|
16
|
+
company: string;
|
|
17
|
+
avatar: string;
|
|
18
|
+
thumb: string;
|
|
19
|
+
name: string | undefined;
|
|
20
|
+
post: string | undefined;
|
|
21
|
+
mobile: string | undefined;
|
|
22
|
+
hobby: string | undefined;
|
|
23
|
+
birthday: any;
|
|
24
|
+
person: Parse.Object | undefined;
|
|
25
|
+
personId: any;
|
|
26
|
+
constructor(route: ActivatedRoute, message: NzMessageService, location: Location, modalCtrl: ModalController);
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
changeAvatar(): void;
|
|
29
|
+
changeThumb(): void;
|
|
30
|
+
date: Date | undefined;
|
|
31
|
+
/**获取时间 */
|
|
32
|
+
onDateChange(event: any): void;
|
|
33
|
+
getPerson(): Promise<void>;
|
|
34
|
+
gender: any;
|
|
35
|
+
currentUser: Parse.User | undefined;
|
|
36
|
+
addPerson(): Promise<any | null>;
|
|
37
|
+
goBack(): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PersonDetailComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PersonDetailComponent, "app-person-detail", never, {}, {}, never, never, true, never>;
|
|
40
|
+
}
|
|
41
|
+
export declare function openPersonDetailEditModal(modalCtrl: ModalController, person?: Parse.Object): Promise<any>;
|