Commit 9e5dfca0 by asranov0003

refactor: types of account, apps and notification

parent f620bab7
import { createAsyncThunk, createSlice } from "@reduxjs/toolkit";
import { sendRpcRequest } from "../../services/apiClient";
import { TG_USER_ID } from "../../constants/constants";
interface ISession {
login: string;
emailVerified: boolean;
subDateEnd: string;
paid: boolean;
timeZoneStr: string;
}
import type { ISession } from "../../types/account.types";
interface IAccountState {
session: ISession;
......
import { createAsyncThunk, createSlice } from "@reduxjs/toolkit";
import { sendRpcRequest } from "../../services/apiClient";
export interface IApp {
pkgName: string;
appName: string;
appVer: string;
appVerInt: number;
appIcon: string;
}
import type { IApp } from "../../types/apps.types";
interface AppsState {
allApps: IApp[];
......
import { createAsyncThunk, createSlice } from "@reduxjs/toolkit";
import { sendRpcRequest } from "../../services/apiClient";
interface INotification {
id: string;
caption: string;
text: string;
action: string;
date: string;
deviceId: string;
type: string;
}
import type { INotification } from "../../types/notification.types";
interface INotificationState {
notifications: INotification[];
......
export interface ISession {
login: string;
emailVerified: boolean;
subDateEnd: string;
paid: boolean;
timeZoneStr: string;
}
export interface IApp {
pkgName: string;
appName: string;
appVer: string;
appVerInt: number;
appIcon: string;
}
export interface INotification {
id: string;
caption: string;
text: string;
action: string;
date: string;
deviceId: string;
type: string;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment