Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ dist-ssr
*.sln
*.sw?
.env*
dist
# dist
4 changes: 4 additions & 0 deletions dist/api/calendar.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { DateType, ICalendar, IdType, IGetListCalendarParams } from '../models';
export declare const getListCalendarAPI: (params?: IGetListCalendarParams) => Promise<ICalendar[]>;
export declare const resetCalendarAPI: (deviceId: IdType) => Promise<boolean>;
export declare const getLastSyncTimeCalendarAPI: (deviceId: IdType) => Promise<DateType | null>;
6 changes: 6 additions & 0 deletions dist/api/call.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { DateType, ICall, IdType, IGetListCallParams } from '../models';
import { IListResponse } from '../models/interfaces/common';
export declare const getListCallAPI: (params?: IGetListCallParams) => Promise<IListResponse<ICall>>;
export declare const resetCallAPI: (deviceId: IdType) => Promise<boolean>;
export declare const deleteCallAPI: (id: IdType) => Promise<boolean>;
export declare const getLastSyncTimeCallAPI: (deviceId: IdType) => Promise<DateType | null>;
6 changes: 6 additions & 0 deletions dist/api/clipboard.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { DateType, IClipboard, IdType, IGetListClipboardParams } from '../models';
import { IListResponse } from '../models/interfaces/common';
export declare const getListClipboardAPI: (params?: IGetListClipboardParams) => Promise<IListResponse<IClipboard>>;
export declare const resetClipboardAPI: (deviceId: IdType) => Promise<boolean>;
export declare const deleteClipboardAPI: (id: IdType) => Promise<boolean>;
export declare const getLastSyncTimeClipboardAPI: (deviceId: IdType) => Promise<DateType | null>;
6 changes: 6 additions & 0 deletions dist/api/contact.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { DateType, IContact, IdType, IGetListContactParams } from '../models';
import { IListResponse } from '../models/interfaces/common';
export declare const getListContactAPI: (params?: IGetListContactParams) => Promise<IListResponse<IContact>>;
export declare const resetContactAPI: (deviceId: IdType) => Promise<boolean>;
export declare const deleteContactAPI: (id: IdType) => Promise<boolean>;
export declare const getLastSyncTimeContactAPI: (deviceId: IdType) => Promise<DateType | null>;
3 changes: 3 additions & 0 deletions dist/api/deviceDataSync.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { IDeviceDataSync, IGetOrCreateDeviceDataSync } from '../models';
export declare const getOrCreateDeviceDataSync: (params?: IGetOrCreateDeviceDataSync) => Promise<IDeviceDataSync>;
export declare const createOrUpdateDeviceDataSync: (params?: IDeviceDataSync) => Promise<IDeviceDataSync>;
3 changes: 3 additions & 0 deletions dist/api/deviceSettingSync.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { ICreateOrUpdateDeviceSettingSync, IDeviceSettingSync, IGetOrCreateDeviceSettingSync } from '../models';
export declare const getDeviceSettingSync: (params?: IGetOrCreateDeviceSettingSync) => Promise<IDeviceSettingSync>;
export declare const createOrUpdateDeviceSettingSync: (params?: ICreateOrUpdateDeviceSettingSync) => Promise<ICreateOrUpdateDeviceSettingSync>;
4 changes: 4 additions & 0 deletions dist/api/devices.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { IAggregateDevice, IDeleteDeviceParams, IEditDeviceParams, IEditDevicePayload, IGetListAggregateDevicesParams } from '../models';
export declare const getAllAggregateDevicesAPI: (params: IGetListAggregateDevicesParams) => Promise<IAggregateDevice[]>;
export declare const deleteDeviceAPI: (params: IDeleteDeviceParams) => Promise<import("axios").AxiosResponse<any, any>>;
export declare const updateDeviceAPI: (params: IEditDeviceParams, payload: IEditDevicePayload) => Promise<any>;
5 changes: 5 additions & 0 deletions dist/api/file.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { DateType, IdType, IFile, IGetListFileParams } from '../models';
export declare const getListFileAPI: (params?: IGetListFileParams) => Promise<IFile[]>;
export declare const resetFileAPI: (deviceId: IdType) => Promise<boolean>;
export declare const deleteFileAPI: (id: IdType) => Promise<boolean>;
export declare const getLastSyncTimeFileAPI: (deviceId: IdType) => Promise<DateType | null>;
7 changes: 7 additions & 0 deletions dist/api/gps.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { DateType, IdType, IGetLastGPSParams, IGetListGPSParams, IGPS } from '../models';
import { IListResponse } from '../models/interfaces/common';
export declare const getListGPSAPI: (params?: IGetListGPSParams) => Promise<IListResponse<IGPS>>;
export declare const resetGPSAPI: (deviceId: IdType) => Promise<boolean>;
export declare const deleteGPSAPI: (id: IdType) => Promise<boolean>;
export declare const getLastSyncTimeGPSAPI: (deviceId: IdType) => Promise<DateType | null>;
export declare const getLastGPSAPI: (params?: IGetLastGPSParams) => Promise<IGPS | null>;
15 changes: 15 additions & 0 deletions dist/api/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export * from './calendar';
export * from './call';
export * from './clipboard';
export * from './contact';
export * from './deviceDataSync';
export * from './devices';
export * from './deviceSettingSync';
export * from './file';
export * from './gps';
export * from './keylogger';
export * from './notification';
export * from './phoneCallRecording';
export * from './photo';
export * from './sms';
export * from './url';
6 changes: 6 additions & 0 deletions dist/api/keylogger.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { DateType, IdType, IGetListKeyloggerParams, IKeylogger } from '../models';
import { IListResponse } from '../models/interfaces/common';
export declare const getListKeyloggerAPI: (params?: IGetListKeyloggerParams) => Promise<IListResponse<IKeylogger>>;
export declare const resetKeyloggerAPI: (deviceId: IdType) => Promise<boolean>;
export declare const deleteKeyloggerAPI: (id: IdType) => Promise<boolean>;
export declare const getLastSyncTimeKeyloggerAPI: (deviceId: IdType) => Promise<DateType | null>;
6 changes: 6 additions & 0 deletions dist/api/notification.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { DateType, IdType, IGetListNotificationParams, INotification } from '../models';
import { IListResponse } from '../models/interfaces/common';
export declare const getListNotificationAPI: (params?: IGetListNotificationParams) => Promise<IListResponse<INotification>>;
export declare const resetNotificationAPI: (deviceId: IdType) => Promise<boolean>;
export declare const deleteNotificationAPI: (id: IdType) => Promise<boolean>;
export declare const getLastSyncTimeNotificationAPI: (deviceId: IdType) => Promise<DateType | null>;
6 changes: 6 additions & 0 deletions dist/api/phoneCallRecording.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { DateType, IdType, IGetListPhoneCallRecordingParams, IPhoneCallRecording } from '../models';
import { IListResponse } from '../models/interfaces/common';
export declare const getListPhoneCallRecordingAPI: (params?: IGetListPhoneCallRecordingParams) => Promise<IListResponse<IPhoneCallRecording>>;
export declare const resetPhoneCallRecordingAPI: (deviceId: IdType) => Promise<boolean>;
export declare const deletePhoneCallRecordingAPI: (id: IdType) => Promise<boolean>;
export declare const getLastSyncTimePhoneCallRecordingAPI: (deviceId: IdType) => Promise<DateType | null>;
5 changes: 5 additions & 0 deletions dist/api/photo.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { DateType, IdType, IGetListPhotoParams, IPhoto } from '../models';
export declare const getListPhotoAPI: (params?: IGetListPhotoParams) => Promise<IPhoto[]>;
export declare const resetPhotoAPI: (deviceId: IdType) => Promise<boolean>;
export declare const deletePhotoAPI: (id: IdType) => Promise<boolean>;
export declare const getLastSyncTimePhotoAPI: (deviceId: IdType) => Promise<DateType | null>;
6 changes: 6 additions & 0 deletions dist/api/sms.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { DateType, IdType, IGetListSMSParams, ISMS } from '../models';
import { IListResponse } from '../models/interfaces/common';
export declare const getListSMSAPI: (params?: IGetListSMSParams) => Promise<IListResponse<ISMS>>;
export declare const resetSMSAPI: (deviceId: IdType) => Promise<boolean>;
export declare const deleteSMSAPI: (id: IdType) => Promise<boolean>;
export declare const getLastSyncTimeSMSAPI: (deviceId: IdType) => Promise<DateType | null>;
6 changes: 6 additions & 0 deletions dist/api/url.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { DateType, IdType, IGetListURLParams, IURL } from '../models';
import { IListResponse } from '../models/interfaces/common';
export declare const getListURLAPI: (params?: IGetListURLParams) => Promise<IListResponse<IURL>>;
export declare const resetURLAPI: (deviceId: IdType) => Promise<boolean>;
export declare const deleteURLAPI: (id: IdType) => Promise<boolean>;
export declare const getLastSyncTimeURLAPI: (deviceId: IdType) => Promise<DateType | null>;
3 changes: 3 additions & 0 deletions dist/config/axios/axiosClient.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare let axiosInstanceDun: ReturnType<typeof axiosInstance>;
declare const axiosInstance: (baseUrl: string) => import("axios").AxiosInstance;
export { axiosInstanceDun };
18 changes: 18 additions & 0 deletions dist/core/app.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { BehaviorSubject } from 'rxjs';
import { DunConfig } from '../models';
import { RawAxiosRequestHeaders } from 'axios';
declare class AppService {
private static _instance;
private _appConfig$;
private _authKey$;
private _userHeaders$;
static get Instance(): AppService;
getConfig$(): BehaviorSubject<DunConfig>;
setConfig(config: DunConfig): void;
getAuthKey$(): BehaviorSubject<string>;
setAuthKey(authKey: string): void;
getUserHeaders$(): BehaviorSubject<RawAxiosRequestHeaders | null>;
setUserHeaders(headers: RawAxiosRequestHeaders): void;
}
export declare const _AppService: AppService;
export {};
7 changes: 7 additions & 0 deletions dist/core/client.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { RawAxiosRequestHeaders } from 'axios';
import { DunConfig } from '../models';
export declare class AuthClient {
constructor(config: DunConfig);
setAuthKey(authKey: string): void;
setHeaders(headers: RawAxiosRequestHeaders): void;
}
3 changes: 3 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from "./api";
export * from "./models";
export * from "./core/client";
Loading