fiber-firebase-functions 1.0.2 → 1.0.4
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/README.md +74 -0
- package/lib/auth/is_user_disabled.js +37 -36
- package/lib/auth/is_user_disabled.js.map +1 -1
- package/lib/auth/is_user_exists.js +31 -30
- package/lib/auth/is_user_exists.js.map +1 -1
- package/lib/auth/otp.js +162 -0
- package/lib/auth/otp.js.map +1 -0
- package/lib/auth/reset_password.js +327 -0
- package/lib/auth/reset_password.js.map +1 -0
- package/lib/auth/update_password.js +18 -7
- package/lib/auth/update_password.js.map +1 -1
- package/lib/auth/user.js +44 -32
- package/lib/auth/user.js.map +1 -1
- package/lib/common/config.js +64 -0
- package/lib/common/config.js.map +1 -0
- package/lib/common/locale.js +119 -0
- package/lib/common/locale.js.map +1 -0
- package/lib/email/email.js +96 -0
- package/lib/email/email.js.map +1 -0
- package/lib/email/send_email.js +81 -0
- package/lib/email/send_email.js.map +1 -0
- package/lib/email/templates/new_user.js +491 -0
- package/lib/email/templates/new_user.js.map +1 -0
- package/lib/email/templates.js +38 -0
- package/lib/email/templates.js.map +1 -0
- package/lib/index.js +6 -0
- package/lib/index.js.map +1 -1
- package/lib/middleware/rate_limiter.js +19 -6
- package/lib/middleware/rate_limiter.js.map +1 -1
- package/package.json +6 -4
- package/src/auth/is_user_disabled.ts +31 -29
- package/src/auth/is_user_exists.ts +25 -23
- package/src/auth/otp.ts +135 -0
- package/src/auth/reset_password.ts +317 -0
- package/src/auth/user.ts +34 -24
- package/src/common/config.ts +84 -0
- package/src/common/locale.ts +121 -0
- package/src/email/email.ts +70 -0
- package/src/email/templates/new_user.ts +493 -0
- package/src/email/templates.ts +34 -0
- package/src/index.ts +6 -0
- package/src/middleware/rate_limiter.ts +25 -6
- package/src/auth/update_password.ts +0 -211
package/src/auth/user.ts
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
*/
|
|
31
31
|
|
|
32
32
|
import * as admin from "firebase-admin";
|
|
33
|
-
import {
|
|
33
|
+
import { IsUserExists, UserExistsByEmailStatus, UserExistsByIdStatus } from "./is_user_exists";
|
|
34
34
|
|
|
35
35
|
if (admin.apps.length === 0) {
|
|
36
36
|
admin.initializeApp();
|
|
@@ -38,46 +38,56 @@ if (admin.apps.length === 0) {
|
|
|
38
38
|
|
|
39
39
|
export enum UserByIdStatus {
|
|
40
40
|
MISSING_USER_ID = "MISSING_USER_ID",
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
USER_NOT_FOUND = "USER_NOT_FOUND",
|
|
42
|
+
USER_FOUND = "USER_FOUND",
|
|
43
43
|
INTERNAL_ERROR = "INTERNAL_ERROR",
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export enum UserByEmailStatus {
|
|
47
47
|
MISSING_EMAIL = "MISSING_EMAIL",
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
USER_NOT_FOUND = "USER_NOT_FOUND",
|
|
49
|
+
USER_FOUND = "USER_FOUND",
|
|
50
50
|
INTERNAL_ERROR = "INTERNAL_ERROR",
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
export
|
|
54
|
-
|
|
53
|
+
export class User {
|
|
54
|
+
static async withId(userId: string): Promise<{ status: UserByIdStatus; user?: admin.auth.UserRecord; }> {
|
|
55
|
+
userId = userId.trim();
|
|
55
56
|
|
|
56
|
-
|
|
57
|
+
if (!userId || userId === "") return { status: UserByIdStatus.MISSING_USER_ID };
|
|
57
58
|
|
|
58
|
-
|
|
59
|
+
const userExists = await IsUserExists.withId(userId);
|
|
60
|
+
if (userExists === UserExistsByIdStatus.MISSING_USER_ID) return { status: UserByIdStatus.MISSING_USER_ID };
|
|
61
|
+
if (userExists === UserExistsByIdStatus.INTERNAL_ERROR) return { status: UserByIdStatus.INTERNAL_ERROR };
|
|
62
|
+
if (userExists === UserExistsByIdStatus.USER_NOT_FOUND) return { status: UserByIdStatus.USER_NOT_FOUND };
|
|
59
63
|
|
|
60
|
-
|
|
61
|
-
|
|
64
|
+
try {
|
|
65
|
+
const user = await admin.auth().getUser(userId);
|
|
62
66
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
67
|
+
return { status: UserByIdStatus.USER_FOUND, user: user };
|
|
68
|
+
} catch (error: any) {
|
|
69
|
+
return { status: UserByIdStatus.INTERNAL_ERROR };
|
|
70
|
+
}
|
|
66
71
|
}
|
|
67
|
-
}
|
|
68
72
|
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
static async withEmail(email: string): Promise<{ status: UserByEmailStatus; user?: admin.auth.UserRecord; }> {
|
|
74
|
+
email = email.trim();
|
|
71
75
|
|
|
72
|
-
|
|
76
|
+
if (!email || email === "") return { status: UserByEmailStatus.MISSING_EMAIL };
|
|
73
77
|
|
|
74
|
-
|
|
78
|
+
const userExists = await IsUserExists.withEmail(email);
|
|
79
|
+
if (userExists === UserExistsByEmailStatus.MISSING_USER_EMAIL) {
|
|
80
|
+
return { status: UserByEmailStatus.MISSING_EMAIL };
|
|
81
|
+
}
|
|
82
|
+
if (userExists === UserExistsByEmailStatus.INTERNAL_ERROR) return { status: UserByEmailStatus.INTERNAL_ERROR };
|
|
83
|
+
if (userExists === UserExistsByEmailStatus.USER_NOT_FOUND) return { status: UserByEmailStatus.USER_NOT_FOUND };
|
|
75
84
|
|
|
76
|
-
|
|
77
|
-
|
|
85
|
+
try {
|
|
86
|
+
const user = await admin.auth().getUserByEmail(email);
|
|
78
87
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
88
|
+
return { status: UserByEmailStatus.USER_FOUND, user: user };
|
|
89
|
+
} catch (error: any) {
|
|
90
|
+
return { status: UserByEmailStatus.INTERNAL_ERROR };
|
|
91
|
+
}
|
|
82
92
|
}
|
|
83
93
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2025 Fiber
|
|
3
|
+
*
|
|
4
|
+
* All rights reserved. This script, including its code and logic, is the
|
|
5
|
+
* exclusive property of Fiber. Redistribution, reproduction,
|
|
6
|
+
* or modification of any part of this script is strictly prohibited
|
|
7
|
+
* without prior written permission from Fiber.
|
|
8
|
+
*
|
|
9
|
+
* Conditions of use:
|
|
10
|
+
* - The code may not be copied, duplicated, or used, in whole or in part,
|
|
11
|
+
* for any purpose without explicit authorization.
|
|
12
|
+
* - Redistribution of this code, with or without modification, is not
|
|
13
|
+
* permitted unless expressly agreed upon by Fiber.
|
|
14
|
+
* - The name "Fiber" and any associated branding, logos, or
|
|
15
|
+
* trademarks may not be used to endorse or promote derived products
|
|
16
|
+
* or services without prior written approval.
|
|
17
|
+
*
|
|
18
|
+
* Disclaimer:
|
|
19
|
+
* THIS SCRIPT AND ITS CODE ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
|
|
20
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
* FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL
|
|
22
|
+
* FIBER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
23
|
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO LOSS OF USE,
|
|
24
|
+
* DATA, PROFITS, OR BUSINESS INTERRUPTION) ARISING OUT OF OR RELATED TO THE USE
|
|
25
|
+
* OR INABILITY TO USE THIS SCRIPT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
26
|
+
*
|
|
27
|
+
* Unauthorized copying or reproduction of this script, in whole or in part,
|
|
28
|
+
* is a violation of applicable intellectual property laws and will result
|
|
29
|
+
* in legal action.
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
import fs from "fs";
|
|
33
|
+
import path from "path";
|
|
34
|
+
|
|
35
|
+
export interface AppConfig {
|
|
36
|
+
rateLimiter: DatabaseConfig;
|
|
37
|
+
otp: OtpConfig;
|
|
38
|
+
email: EmailConfig;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface DatabaseConfig {
|
|
42
|
+
appName: string;
|
|
43
|
+
url: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface OtpConfig {
|
|
47
|
+
collection: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface EmailConfig {
|
|
51
|
+
applicationName: string;
|
|
52
|
+
collection: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
let cachedConfig: AppConfig | null = null;
|
|
56
|
+
|
|
57
|
+
export function appInitialize(): AppConfig {
|
|
58
|
+
if (cachedConfig) return cachedConfig;
|
|
59
|
+
|
|
60
|
+
const configPath = path.resolve(process.cwd(), "config", "app.json");
|
|
61
|
+
|
|
62
|
+
if (!fs.existsSync(configPath)) {
|
|
63
|
+
throw new Error(`Missing configuration file at: ${configPath}`);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const raw = fs.readFileSync(configPath, "utf-8");
|
|
67
|
+
const parsed = JSON.parse(raw);
|
|
68
|
+
|
|
69
|
+
cachedConfig = {
|
|
70
|
+
rateLimiter: {
|
|
71
|
+
appName: parsed.rate_limiter.app_name ?? undefined,
|
|
72
|
+
url: parsed.rate_limiter.url ?? undefined,
|
|
73
|
+
},
|
|
74
|
+
otp: {
|
|
75
|
+
collection: parsed.otp.collection ?? undefined
|
|
76
|
+
},
|
|
77
|
+
email: {
|
|
78
|
+
applicationName: parsed.email.application_name ?? undefined,
|
|
79
|
+
collection: parsed.email.collection ?? undefined,
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
return cachedConfig;
|
|
84
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2025 Fiber
|
|
3
|
+
*
|
|
4
|
+
* All rights reserved. This script, including its code and logic, is the
|
|
5
|
+
* exclusive property of Fiber. Redistribution, reproduction,
|
|
6
|
+
* or modification of any part of this script is strictly prohibited
|
|
7
|
+
* without prior written permission from Fiber.
|
|
8
|
+
*
|
|
9
|
+
* Conditions of use:
|
|
10
|
+
* - The code may not be copied, duplicated, or used, in whole or in part,
|
|
11
|
+
* for any purpose without explicit authorization.
|
|
12
|
+
* - Redistribution of this code, with or without modification, is not
|
|
13
|
+
* permitted unless expressly agreed upon by Fiber.
|
|
14
|
+
* - The name "Fiber" and any associated branding, logos, or
|
|
15
|
+
* trademarks may not be used to endorse or promote derived products
|
|
16
|
+
* or services without prior written approval.
|
|
17
|
+
*
|
|
18
|
+
* Disclaimer:
|
|
19
|
+
* THIS SCRIPT AND ITS CODE ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
|
|
20
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
* FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL
|
|
22
|
+
* FIBER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
23
|
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO LOSS OF USE,
|
|
24
|
+
* DATA, PROFITS, OR BUSINESS INTERRUPTION) ARISING OUT OF OR RELATED TO THE USE
|
|
25
|
+
* OR INABILITY TO USE THIS SCRIPT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
26
|
+
*
|
|
27
|
+
* Unauthorized copying or reproduction of this script, in whole or in part,
|
|
28
|
+
* is a violation of applicable intellectual property laws and will result
|
|
29
|
+
* in legal action.
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
export interface LanguageCode {
|
|
33
|
+
short: string;
|
|
34
|
+
full: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export enum Language {
|
|
38
|
+
ARABIC = "arabic",
|
|
39
|
+
BULGARIAN = "bulgarian",
|
|
40
|
+
CATALAN = "catalan",
|
|
41
|
+
CHINESE = "chinese",
|
|
42
|
+
CROATIAN = "croatian",
|
|
43
|
+
CZECH = "czech",
|
|
44
|
+
DANISH = "danish",
|
|
45
|
+
DUTCH = "dutch",
|
|
46
|
+
ENGLISH = "english",
|
|
47
|
+
FINNISH = "finnish",
|
|
48
|
+
FRENCH = "french",
|
|
49
|
+
GERMAN = "german",
|
|
50
|
+
GREEK = "greek",
|
|
51
|
+
HEBREW = "hebrew",
|
|
52
|
+
HINDI = "hindi",
|
|
53
|
+
HUNGARIAN = "hungarian",
|
|
54
|
+
INDONESIAN = "indonesian",
|
|
55
|
+
ITALIAN = "italian",
|
|
56
|
+
JAPANESE = "japanese",
|
|
57
|
+
KOREAN = "korean",
|
|
58
|
+
LITHUANIAN = "lithuanian",
|
|
59
|
+
MALAY = "malay",
|
|
60
|
+
NORWEGIAN = "norwegian",
|
|
61
|
+
POLISH = "polish",
|
|
62
|
+
PORTUGUESE = "portuguese",
|
|
63
|
+
ROMANIAN = "romanian",
|
|
64
|
+
RUSSIAN = "russian",
|
|
65
|
+
SLOVAK = "slovak",
|
|
66
|
+
SLOVENIAN = "slovenian",
|
|
67
|
+
SPANISH = "spanish",
|
|
68
|
+
SWEDISH = "swedish",
|
|
69
|
+
THAI = "thai",
|
|
70
|
+
TURKISH = "turkish",
|
|
71
|
+
UKRAINIAN = "ukrainian",
|
|
72
|
+
VIETNAMESE = "vietnamese"
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export const countryCode: Record<Language, LanguageCode> = {
|
|
76
|
+
[Language.ARABIC]: { short: 'ar', full: 'ar-SA' },
|
|
77
|
+
[Language.BULGARIAN]: { short: 'bg', full: 'bg-BG' },
|
|
78
|
+
[Language.CATALAN]: { short: 'ca', full: 'ca-ES' },
|
|
79
|
+
[Language.CHINESE]: { short: 'zh', full: 'zh-CN' },
|
|
80
|
+
[Language.CROATIAN]: { short: 'hr', full: 'hr-HR' },
|
|
81
|
+
[Language.CZECH]: { short: 'cs', full: 'cs-CZ' },
|
|
82
|
+
[Language.DANISH]: { short: 'da', full: 'da-DK' },
|
|
83
|
+
[Language.DUTCH]: { short: 'nl', full: 'nl-NL' },
|
|
84
|
+
[Language.ENGLISH]: { short: 'en', full: 'en-US' },
|
|
85
|
+
[Language.FINNISH]: { short: 'fi', full: 'fi-FI' },
|
|
86
|
+
[Language.FRENCH]: { short: 'fr', full: 'fr-FR' },
|
|
87
|
+
[Language.GERMAN]: { short: 'de', full: 'de-DE' },
|
|
88
|
+
[Language.GREEK]: { short: 'el', full: 'el-GR' },
|
|
89
|
+
[Language.HEBREW]: { short: 'he', full: 'he-IL' },
|
|
90
|
+
[Language.HINDI]: { short: 'hi', full: 'hi-IN' },
|
|
91
|
+
[Language.HUNGARIAN]: { short: 'hu', full: 'hu-HU' },
|
|
92
|
+
[Language.INDONESIAN]: { short: 'id', full: 'id-ID' },
|
|
93
|
+
[Language.ITALIAN]: { short: 'it', full: 'it-IT' },
|
|
94
|
+
[Language.JAPANESE]: { short: 'ja', full: 'ja-JP' },
|
|
95
|
+
[Language.KOREAN]: { short: 'ko', full: 'ko-KR' },
|
|
96
|
+
[Language.LITHUANIAN]: { short: 'lt', full: 'lt-LT' },
|
|
97
|
+
[Language.MALAY]: { short: 'ms', full: 'ms-MY' },
|
|
98
|
+
[Language.NORWEGIAN]: { short: 'no', full: 'no-NO' },
|
|
99
|
+
[Language.POLISH]: { short: 'pl', full: 'pl-PL' },
|
|
100
|
+
[Language.PORTUGUESE]: { short: 'pt', full: 'pt-PT' },
|
|
101
|
+
[Language.ROMANIAN]: { short: 'ro', full: 'ro-RO' },
|
|
102
|
+
[Language.RUSSIAN]: { short: 'ru', full: 'ru-RU' },
|
|
103
|
+
[Language.SLOVAK]: { short: 'sk', full: 'sk-SK' },
|
|
104
|
+
[Language.SLOVENIAN]: { short: 'sl', full: 'sl-SI' },
|
|
105
|
+
[Language.SPANISH]: { short: 'es', full: 'es-ES' },
|
|
106
|
+
[Language.SWEDISH]: { short: 'sv', full: 'sv-SE' },
|
|
107
|
+
[Language.THAI]: { short: 'th', full: 'th-TH' },
|
|
108
|
+
[Language.TURKISH]: { short: 'tr', full: 'tr-TR' },
|
|
109
|
+
[Language.UKRAINIAN]: { short: 'uk', full: 'uk-UA' },
|
|
110
|
+
[Language.VIETNAMESE]: { short: 'vi', full: 'vi-VN' },
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export namespace Language {
|
|
114
|
+
export function fullCountryCode(lang: Language): string {
|
|
115
|
+
return countryCode[lang].full;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function shortCountryCode(lang: Language): string {
|
|
119
|
+
return countryCode[lang].short;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2025 Fiber
|
|
3
|
+
*
|
|
4
|
+
* All rights reserved. This script, including its code and logic, is the
|
|
5
|
+
* exclusive property of Fiber. Redistribution, reproduction,
|
|
6
|
+
* or modification of any part of this script is strictly prohibited
|
|
7
|
+
* without prior written permission from Fiber.
|
|
8
|
+
*
|
|
9
|
+
* Conditions of use:
|
|
10
|
+
* - The code may not be copied, duplicated, or used, in whole or in part,
|
|
11
|
+
* for any purpose without explicit authorization.
|
|
12
|
+
* - Redistribution of this code, with or without modification, is not
|
|
13
|
+
* permitted unless expressly agreed upon by Fiber.
|
|
14
|
+
* - The name "Fiber" and any associated branding, logos, or
|
|
15
|
+
* trademarks may not be used to endorse or promote derived products
|
|
16
|
+
* or services without prior written approval.
|
|
17
|
+
*
|
|
18
|
+
* Disclaimer:
|
|
19
|
+
* THIS SCRIPT AND ITS CODE ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
|
|
20
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
* FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL
|
|
22
|
+
* FIBER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
23
|
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO LOSS OF USE,
|
|
24
|
+
* DATA, PROFITS, OR BUSINESS INTERRUPTION) ARISING OUT OF OR RELATED TO THE USE
|
|
25
|
+
* OR INABILITY TO USE THIS SCRIPT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
26
|
+
*
|
|
27
|
+
* Unauthorized copying or reproduction of this script, in whole or in part,
|
|
28
|
+
* is a violation of applicable intellectual property laws and will result
|
|
29
|
+
* in legal action.
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
import * as admin from "firebase-admin";
|
|
33
|
+
import { appInitialize } from "../common/config";
|
|
34
|
+
|
|
35
|
+
if (admin.apps.length === 0) {
|
|
36
|
+
admin.initializeApp();
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export enum SendEmailStatus {
|
|
40
|
+
MISSING_EMAIL_CONFIG = "MISSING_EMAIL_CONFIG",
|
|
41
|
+
SUCCESS = "SUCCESS",
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface EmailTemplate {
|
|
45
|
+
subject: string;
|
|
46
|
+
text: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export class Email {
|
|
50
|
+
static async send(to: string, email: EmailTemplate): Promise<SendEmailStatus> {
|
|
51
|
+
const config = appInitialize();
|
|
52
|
+
const emailConfig = config.email;
|
|
53
|
+
|
|
54
|
+
if (emailConfig.applicationName === undefined || emailConfig.collection === undefined) {
|
|
55
|
+
return SendEmailStatus.MISSING_EMAIL_CONFIG;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const firestore = admin.firestore();
|
|
59
|
+
|
|
60
|
+
await firestore.collection(emailConfig.collection).add({
|
|
61
|
+
to: [to],
|
|
62
|
+
message: {
|
|
63
|
+
subject: email.subject,
|
|
64
|
+
text: email.text,
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
return SendEmailStatus.SUCCESS;
|
|
69
|
+
}
|
|
70
|
+
}
|