@pisell/pisellos
Version:
一个可扩展的前端模块化SDK框架,支持插件系统
79 lines (77 loc) • 4.15 kB
JavaScript
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/solution/RegisterAndLogin/types.ts
var types_exports = {};
__export(types_exports, {
OAuthProvider: () => OAuthProvider,
RegisterAndLoginHooks: () => RegisterAndLoginHooks,
VerificationCodeType: () => VerificationCodeType,
VerificationPurpose: () => VerificationPurpose
});
module.exports = __toCommonJS(types_exports);
var RegisterAndLoginHooks = /* @__PURE__ */ ((RegisterAndLoginHooks2) => {
RegisterAndLoginHooks2["onInited"] = "registerAndLogin:onInited";
RegisterAndLoginHooks2["onDestroy"] = "registerAndLogin:onDestroy";
RegisterAndLoginHooks2["onEmailVerificationSent"] = "registerAndLogin:onEmailVerificationSent";
RegisterAndLoginHooks2["onEmailVerificationVerified"] = "registerAndLogin:onEmailVerificationVerified";
RegisterAndLoginHooks2["onEmailVerificationFailed"] = "registerAndLogin:onEmailVerificationFailed";
RegisterAndLoginHooks2["onSmsVerificationSent"] = "registerAndLogin:onSmsVerificationSent";
RegisterAndLoginHooks2["onSmsVerificationVerified"] = "registerAndLogin:onSmsVerificationVerified";
RegisterAndLoginHooks2["onSmsVerificationFailed"] = "registerAndLogin:onSmsVerificationFailed";
RegisterAndLoginHooks2["onOAuthLoginStarted"] = "registerAndLogin:onOAuthLoginStarted";
RegisterAndLoginHooks2["onOAuthLoginSuccess"] = "registerAndLogin:onOAuthLoginSuccess";
RegisterAndLoginHooks2["onOAuthLoginFailed"] = "registerAndLogin:onOAuthLoginFailed";
RegisterAndLoginHooks2["onRegisterStarted"] = "registerAndLogin:onRegisterStarted";
RegisterAndLoginHooks2["onRegisterSuccess"] = "registerAndLogin:onRegisterSuccess";
RegisterAndLoginHooks2["onRegisterFailed"] = "registerAndLogin:onRegisterFailed";
RegisterAndLoginHooks2["onLoginStarted"] = "registerAndLogin:onLoginStarted";
RegisterAndLoginHooks2["onLoginSuccess"] = "registerAndLogin:onLoginSuccess";
RegisterAndLoginHooks2["onLoginFailed"] = "registerAndLogin:onLoginFailed";
RegisterAndLoginHooks2["onPasswordResetStarted"] = "registerAndLogin:onPasswordResetStarted";
RegisterAndLoginHooks2["onPasswordResetSuccess"] = "registerAndLogin:onPasswordResetSuccess";
RegisterAndLoginHooks2["onPasswordResetFailed"] = "registerAndLogin:onPasswordResetFailed";
return RegisterAndLoginHooks2;
})(RegisterAndLoginHooks || {});
var OAuthProvider = /* @__PURE__ */ ((OAuthProvider2) => {
OAuthProvider2["FACEBOOK"] = "facebook";
OAuthProvider2["APPLE"] = "apple";
OAuthProvider2["GOOGLE"] = "google";
OAuthProvider2["WECHAT"] = "wechat";
OAuthProvider2["GITHUB"] = "github";
return OAuthProvider2;
})(OAuthProvider || {});
var VerificationCodeType = /* @__PURE__ */ ((VerificationCodeType2) => {
VerificationCodeType2["EMAIL"] = "email";
VerificationCodeType2["SMS"] = "sms";
return VerificationCodeType2;
})(VerificationCodeType || {});
var VerificationPurpose = /* @__PURE__ */ ((VerificationPurpose2) => {
VerificationPurpose2["REGISTER"] = "register";
VerificationPurpose2["LOGIN"] = "login";
VerificationPurpose2["PASSWORD_RESET"] = "password_reset";
VerificationPurpose2["CHANGE_EMAIL"] = "change_email";
VerificationPurpose2["CHANGE_PHONE"] = "change_phone";
return VerificationPurpose2;
})(VerificationPurpose || {});
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
OAuthProvider,
RegisterAndLoginHooks,
VerificationCodeType,
VerificationPurpose
});