@abyss-project/main 1.0.59 → 1.0.60
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/dist/api/auth.api.d.ts +2 -1
- package/dist/api/auth.api.js +7 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/server-sent-events/index.d.ts +2 -0
- package/dist/server-sent-events/index.js +18 -0
- package/dist/server-sent-events/protocols/index.d.ts +17 -0
- package/dist/server-sent-events/protocols/index.js +26 -0
- package/dist/server-sent-events/protocols/user-notification/index.d.ts +1 -0
- package/dist/server-sent-events/protocols/user-notification/index.js +17 -0
- package/dist/server-sent-events/protocols/user-notification/user-notification.sse-protocol.d.ts +24 -0
- package/dist/server-sent-events/protocols/user-notification/user-notification.sse-protocol.js +13 -0
- package/dist/server-sent-events/server-sent-events.manager.d.ts +19 -0
- package/dist/server-sent-events/server-sent-events.manager.js +58 -0
- package/dist/types/enum/abyss-application-event.enum.d.ts +6 -0
- package/dist/types/enum/abyss-application-event.enum.js +6 -0
- package/dist/types/enum/oauth-account-type.enum.d.ts +2 -1
- package/dist/types/enum/oauth-account-type.enum.js +1 -0
- package/dist/types/interface/api/requests/auth.request.d.ts +1 -0
- package/dist/types/interface/api/requests/board.request.d.ts +3 -0
- package/dist/types/interface/api/responses/auth.response.d.ts +4 -0
- package/package.json +1 -1
package/dist/api/auth.api.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ILoginAuthBody, ILoginAuthResponse, IRefreshAuthResponse, ISignupAuthBody, ISignupAuthResponse, IOAuthAuthBody, IOAuthAuthResponse, ISendEmailVerificationAuthBody, ISendEmailVerificationAuthResponse, IVerifyEmailAuthQuery, IVerifyEmailAuthResponse, ISendEmailResetPasswordAuthBody, ISendEmailResetPasswordAuthResponse, IResetPasswordAuthBody, IResetPasswordAuthQuery, IResetPasswordAuthResponse, IActivateServiceAuthQuery, IActivateServiceAuthResponse, IGetEmailVerificationCodeAuthBody, IGetEmailVerificationCodeAuthResponse, IGetEmailVerificationTokenAuthResponse, IGetEmailVerificationTokenAuthBody } from '../types';
|
|
1
|
+
import { ILoginAuthBody, ILoginAuthResponse, IRefreshAuthResponse, ISignupAuthBody, ISignupAuthResponse, IOAuthAuthBody, IOAuthAuthResponse, ISendEmailVerificationAuthBody, ISendEmailVerificationAuthResponse, IVerifyEmailAuthQuery, IVerifyEmailAuthResponse, ISendEmailResetPasswordAuthBody, ISendEmailResetPasswordAuthResponse, IResetPasswordAuthBody, IResetPasswordAuthQuery, IResetPasswordAuthResponse, IActivateServiceAuthQuery, IActivateServiceAuthResponse, IGetEmailVerificationCodeAuthBody, IGetEmailVerificationCodeAuthResponse, IGetEmailVerificationTokenAuthResponse, IGetEmailVerificationTokenAuthBody, IGetConnectUrlGoogleAuthQuery, IGetConnectUrlGoogleAuthResponse } from '../types';
|
|
2
2
|
export declare const login: (body: ILoginAuthBody) => Promise<ILoginAuthResponse>;
|
|
3
3
|
export declare const refresh: () => Promise<IRefreshAuthResponse>;
|
|
4
4
|
export declare const register: (body: ISignupAuthBody) => Promise<ISignupAuthResponse>;
|
|
5
5
|
export declare const oauth: (body: IOAuthAuthBody) => Promise<IOAuthAuthResponse>;
|
|
6
|
+
export declare const getConnectUrlGoogleAuth: (query: IGetConnectUrlGoogleAuthQuery) => Promise<IGetConnectUrlGoogleAuthResponse>;
|
|
6
7
|
export declare const sendVerificationEmail: (body: ISendEmailVerificationAuthBody) => Promise<ISendEmailVerificationAuthResponse>;
|
|
7
8
|
export declare const verifyEmail: (query: IVerifyEmailAuthQuery) => Promise<IVerifyEmailAuthResponse>;
|
|
8
9
|
export declare const sendEmailResetPassword: (body: ISendEmailResetPasswordAuthBody) => Promise<ISendEmailResetPasswordAuthResponse>;
|
package/dist/api/auth.api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getEmailVerificationToken = exports.getEmailVerificationCode = exports.activateService = exports.resetPassword = exports.sendEmailResetPassword = exports.verifyEmail = exports.sendVerificationEmail = exports.oauth = exports.register = exports.refresh = exports.login = void 0;
|
|
3
|
+
exports.getEmailVerificationToken = exports.getEmailVerificationCode = exports.activateService = exports.resetPassword = exports.sendEmailResetPassword = exports.verifyEmail = exports.sendVerificationEmail = exports.getConnectUrlGoogleAuth = exports.oauth = exports.register = exports.refresh = exports.login = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const login = async (body) => {
|
|
6
6
|
const response = await __1.AbyssCore.axios.post('auth/login', body);
|
|
@@ -33,6 +33,12 @@ const oauth = async (body) => {
|
|
|
33
33
|
return response.data;
|
|
34
34
|
};
|
|
35
35
|
exports.oauth = oauth;
|
|
36
|
+
const getConnectUrlGoogleAuth = async (query) => {
|
|
37
|
+
return (await __1.AbyssCore.axios.get('auth/oauth/google', {
|
|
38
|
+
params: query,
|
|
39
|
+
})).data;
|
|
40
|
+
};
|
|
41
|
+
exports.getConnectUrlGoogleAuth = getConnectUrlGoogleAuth;
|
|
36
42
|
const sendVerificationEmail = async (body) => {
|
|
37
43
|
return (await __1.AbyssCore.axios.post('auth/send-verification-email', body)).data;
|
|
38
44
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './utils';
|
|
|
5
5
|
export * from './front';
|
|
6
6
|
export * from './translate';
|
|
7
7
|
export * from './constants';
|
|
8
|
+
export * from './server-sent-events';
|
|
8
9
|
export declare const DISCORD_URL = "https://discord.gg/PVMNgxJb8W";
|
|
9
10
|
export declare const API_KEY_PROJECT_HEADER = "abyss-main-project-api-key";
|
|
10
11
|
export declare const ADMIN_TOKEN_HEADER = "abyss-admin-token";
|
package/dist/index.js
CHANGED
|
@@ -39,6 +39,7 @@ __exportStar(require("./utils"), exports);
|
|
|
39
39
|
__exportStar(require("./front"), exports);
|
|
40
40
|
__exportStar(require("./translate"), exports);
|
|
41
41
|
__exportStar(require("./constants"), exports);
|
|
42
|
+
__exportStar(require("./server-sent-events"), exports);
|
|
42
43
|
const DEFAULT_BASE_URL = 'https://app-api.abyss-project.fr/api/';
|
|
43
44
|
exports.DISCORD_URL = 'https://discord.gg/PVMNgxJb8W';
|
|
44
45
|
exports.API_KEY_PROJECT_HEADER = 'abyss-main-project-api-key';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./server-sent-events.manager"), exports);
|
|
18
|
+
__exportStar(require("./protocols"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ValueOf } from '../..';
|
|
2
|
+
export * from './user-notification';
|
|
3
|
+
export declare enum SYSTEM_PROTOCOL_EVENTS {
|
|
4
|
+
PING = "PING"
|
|
5
|
+
}
|
|
6
|
+
export type SystemSSEMessageContent = ValueOf<{
|
|
7
|
+
[K in SYSTEM_PROTOCOL_EVENTS]: {
|
|
8
|
+
type: K;
|
|
9
|
+
payload: SystemSSEEventPayload[K];
|
|
10
|
+
};
|
|
11
|
+
}>;
|
|
12
|
+
export declare class SystemSSEEventPayload implements Record<SYSTEM_PROTOCOL_EVENTS, Record<string, any>> {
|
|
13
|
+
[SYSTEM_PROTOCOL_EVENTS.PING]: {
|
|
14
|
+
openedAt: number;
|
|
15
|
+
timestamp: number;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.SystemSSEEventPayload = exports.SYSTEM_PROTOCOL_EVENTS = void 0;
|
|
18
|
+
__exportStar(require("./user-notification"), exports);
|
|
19
|
+
var SYSTEM_PROTOCOL_EVENTS;
|
|
20
|
+
(function (SYSTEM_PROTOCOL_EVENTS) {
|
|
21
|
+
SYSTEM_PROTOCOL_EVENTS["PING"] = "PING";
|
|
22
|
+
})(SYSTEM_PROTOCOL_EVENTS || (exports.SYSTEM_PROTOCOL_EVENTS = SYSTEM_PROTOCOL_EVENTS = {}));
|
|
23
|
+
class SystemSSEEventPayload {
|
|
24
|
+
}
|
|
25
|
+
exports.SystemSSEEventPayload = SystemSSEEventPayload;
|
|
26
|
+
SYSTEM_PROTOCOL_EVENTS.PING;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './user-notification.sse-protocol';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./user-notification.sse-protocol"), exports);
|
package/dist/server-sent-events/protocols/user-notification/user-notification.sse-protocol.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SystemSSEEventPayload } from '..';
|
|
2
|
+
import { IUserNotification, NotificationDTO, ValueOf } from '../../../types';
|
|
3
|
+
export declare const SSE_USER_NOTIFICATION_CHANNEL = "SSE_USER_NOTIFICATION_CHANNEL";
|
|
4
|
+
export declare enum UserNotificationSSEEvent {
|
|
5
|
+
USER_NOTIFICATION_CREATED = "USER_NOTIFICATION_CREATED",
|
|
6
|
+
USER_NOTIFICATION_OPENED = "USER_NOTIFICATION_OPENED"
|
|
7
|
+
}
|
|
8
|
+
export type UserNotificationSSEMessageContent = ValueOf<{
|
|
9
|
+
[K in UserNotificationSSEEvent]: {
|
|
10
|
+
type: K;
|
|
11
|
+
payload: UserNotificationSSEEventPayload[K];
|
|
12
|
+
};
|
|
13
|
+
}>;
|
|
14
|
+
export declare class UserNotificationSSEEventPayload implements Record<UserNotificationSSEEvent, Record<string, any>> {
|
|
15
|
+
[UserNotificationSSEEvent.USER_NOTIFICATION_CREATED]: {
|
|
16
|
+
userNotification: IUserNotification & NotificationDTO;
|
|
17
|
+
userId: string;
|
|
18
|
+
};
|
|
19
|
+
[UserNotificationSSEEvent.USER_NOTIFICATION_OPENED]: {
|
|
20
|
+
userNotification: IUserNotification & NotificationDTO;
|
|
21
|
+
userId: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export type UserNotificationCombinedSSEEventPayload = UserNotificationSSEEventPayload & SystemSSEEventPayload;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserNotificationSSEEventPayload = exports.UserNotificationSSEEvent = exports.SSE_USER_NOTIFICATION_CHANNEL = void 0;
|
|
4
|
+
exports.SSE_USER_NOTIFICATION_CHANNEL = 'SSE_USER_NOTIFICATION_CHANNEL';
|
|
5
|
+
var UserNotificationSSEEvent;
|
|
6
|
+
(function (UserNotificationSSEEvent) {
|
|
7
|
+
UserNotificationSSEEvent["USER_NOTIFICATION_CREATED"] = "USER_NOTIFICATION_CREATED";
|
|
8
|
+
UserNotificationSSEEvent["USER_NOTIFICATION_OPENED"] = "USER_NOTIFICATION_OPENED";
|
|
9
|
+
})(UserNotificationSSEEvent || (exports.UserNotificationSSEEvent = UserNotificationSSEEvent = {}));
|
|
10
|
+
class UserNotificationSSEEventPayload {
|
|
11
|
+
}
|
|
12
|
+
exports.UserNotificationSSEEventPayload = UserNotificationSSEEventPayload;
|
|
13
|
+
UserNotificationSSEEvent.USER_NOTIFICATION_CREATED, UserNotificationSSEEvent.USER_NOTIFICATION_OPENED;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Request, Response } from 'express-serve-static-core';
|
|
2
|
+
export declare class ServerSentEventBaseContext {
|
|
3
|
+
id: string;
|
|
4
|
+
createdAt: Date;
|
|
5
|
+
req: Request;
|
|
6
|
+
res: Response;
|
|
7
|
+
}
|
|
8
|
+
export declare class ServerSentEventsManager<T extends ServerSentEventBaseContext, P extends {
|
|
9
|
+
type: string;
|
|
10
|
+
payload: any;
|
|
11
|
+
}> {
|
|
12
|
+
private channel;
|
|
13
|
+
private contexts;
|
|
14
|
+
constructor(channelName: string);
|
|
15
|
+
add(key: string, context: T): void;
|
|
16
|
+
sendToContext(key: string, data: P, { senderId }?: {
|
|
17
|
+
senderId?: string;
|
|
18
|
+
}): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServerSentEventsManager = exports.ServerSentEventBaseContext = void 0;
|
|
4
|
+
const uuid_1 = require("uuid");
|
|
5
|
+
const protocols_1 = require("./protocols");
|
|
6
|
+
class ServerSentEventBaseContext {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.id = (0, uuid_1.v4)();
|
|
9
|
+
this.createdAt = new Date();
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.ServerSentEventBaseContext = ServerSentEventBaseContext;
|
|
13
|
+
class ServerSentEventsManager {
|
|
14
|
+
constructor(channelName) {
|
|
15
|
+
this.channel = channelName;
|
|
16
|
+
this.contexts = new Map();
|
|
17
|
+
}
|
|
18
|
+
add(key, context) {
|
|
19
|
+
var _a, _b;
|
|
20
|
+
context.res.setHeader('Content-Type', 'text/event-stream');
|
|
21
|
+
context.res.setHeader('Cache-Control', 'no-cache');
|
|
22
|
+
context.res.setHeader('Connection', 'keep-alive');
|
|
23
|
+
(_b = (_a = context.res).flushHeaders) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
24
|
+
const row = this.contexts.get(key);
|
|
25
|
+
if (!row) {
|
|
26
|
+
this.contexts.set(key, new Set([context]));
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
row.add(context);
|
|
30
|
+
}
|
|
31
|
+
const pingTimeout = setInterval(() => {
|
|
32
|
+
const payload = {
|
|
33
|
+
type: protocols_1.SYSTEM_PROTOCOL_EVENTS.PING,
|
|
34
|
+
payload: {
|
|
35
|
+
openedAt: context.createdAt.getTime(),
|
|
36
|
+
timestamp: Date.now(),
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
context.res.write(`data: ${JSON.stringify(payload)}\n\n`);
|
|
40
|
+
}, 10000);
|
|
41
|
+
context.res.on('close', () => {
|
|
42
|
+
clearInterval(pingTimeout);
|
|
43
|
+
const row = this.contexts.get(key);
|
|
44
|
+
row === null || row === void 0 ? void 0 : row.delete(context);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
sendToContext(key, data, { senderId } = {}) {
|
|
48
|
+
const payload = JSON.stringify({ ...data, date: new Date() });
|
|
49
|
+
const clients = this.contexts.get(key);
|
|
50
|
+
clients === null || clients === void 0 ? void 0 : clients.forEach((client) => {
|
|
51
|
+
if (client.id === senderId) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
client.res.write(`data: ${payload}\n\n`);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.ServerSentEventsManager = ServerSentEventsManager;
|
|
@@ -4,6 +4,12 @@ export declare enum AbyssApplicationEvent {
|
|
|
4
4
|
AUTHENTICATION_USER_LOGIN = "authentication.user.login",
|
|
5
5
|
AUTHENTICATION_USER_LOGIN_REFRESH = "authentication.user.login-refresh",
|
|
6
6
|
MAILING_EMAIL_SEND = "mailing.email.send",
|
|
7
|
+
USER_NOTIFICATION_CREATE = "user.notification.create",
|
|
8
|
+
USER_NOTIFICATION_OPEN = "user.notification.open",
|
|
9
|
+
SERVER_SENT_EVENTS_BOARD_OPEN = "server-sent-events.board.open",
|
|
10
|
+
SERVER_SENT_EVENTS_BOARD_SEND = "server-sent-events.board.send",
|
|
11
|
+
SERVER_SENT_EVENTS_USER_OPEN = "server-sent-events.user.open",
|
|
12
|
+
SERVER_SENT_EVENTS_USER_SEND = "server-sent-events.user.send",
|
|
7
13
|
BOARD_CREATE = "board.create",
|
|
8
14
|
BOARD_UPDATE = "board.update",
|
|
9
15
|
BOARD_DELETE = "board.delete",
|
|
@@ -8,6 +8,12 @@ var AbyssApplicationEvent;
|
|
|
8
8
|
AbyssApplicationEvent["AUTHENTICATION_USER_LOGIN"] = "authentication.user.login";
|
|
9
9
|
AbyssApplicationEvent["AUTHENTICATION_USER_LOGIN_REFRESH"] = "authentication.user.login-refresh";
|
|
10
10
|
AbyssApplicationEvent["MAILING_EMAIL_SEND"] = "mailing.email.send";
|
|
11
|
+
AbyssApplicationEvent["USER_NOTIFICATION_CREATE"] = "user.notification.create";
|
|
12
|
+
AbyssApplicationEvent["USER_NOTIFICATION_OPEN"] = "user.notification.open";
|
|
13
|
+
AbyssApplicationEvent["SERVER_SENT_EVENTS_BOARD_OPEN"] = "server-sent-events.board.open";
|
|
14
|
+
AbyssApplicationEvent["SERVER_SENT_EVENTS_BOARD_SEND"] = "server-sent-events.board.send";
|
|
15
|
+
AbyssApplicationEvent["SERVER_SENT_EVENTS_USER_OPEN"] = "server-sent-events.user.open";
|
|
16
|
+
AbyssApplicationEvent["SERVER_SENT_EVENTS_USER_SEND"] = "server-sent-events.user.send";
|
|
11
17
|
AbyssApplicationEvent["BOARD_CREATE"] = "board.create";
|
|
12
18
|
AbyssApplicationEvent["BOARD_UPDATE"] = "board.update";
|
|
13
19
|
AbyssApplicationEvent["BOARD_DELETE"] = "board.delete";
|
|
@@ -4,4 +4,5 @@ exports.OAuthAccountType = void 0;
|
|
|
4
4
|
var OAuthAccountType;
|
|
5
5
|
(function (OAuthAccountType) {
|
|
6
6
|
OAuthAccountType[OAuthAccountType["DISCORD"] = 1] = "DISCORD";
|
|
7
|
+
OAuthAccountType[OAuthAccountType["GOOGLE"] = 2] = "GOOGLE";
|
|
7
8
|
})(OAuthAccountType || (exports.OAuthAccountType = OAuthAccountType = {}));
|
|
@@ -48,3 +48,7 @@ export interface IGetEmailVerificationTokenAuthData {
|
|
|
48
48
|
email: string;
|
|
49
49
|
}
|
|
50
50
|
export type IGetEmailVerificationTokenAuthResponse = IResponse<IGetEmailVerificationTokenAuthData>;
|
|
51
|
+
export interface IGetConnectUrlGoogleAuthData {
|
|
52
|
+
connectUrl: string;
|
|
53
|
+
}
|
|
54
|
+
export type IGetConnectUrlGoogleAuthResponse = IResponse<IGetConnectUrlGoogleAuthData>;
|