fix
This commit is contained in:
parent
5ecdd94f42
commit
028b68e4bf
|
|
@ -4,8 +4,9 @@ import { RowStore } from 'oak-domain/lib/types';
|
||||||
export declare abstract class GeneralRuntimeContext<ED extends EntityDict> extends UniversalContext<ED> {
|
export declare abstract class GeneralRuntimeContext<ED extends EntityDict> extends UniversalContext<ED> {
|
||||||
private applicationId;
|
private applicationId;
|
||||||
private getTokenFn;
|
private getTokenFn;
|
||||||
constructor(store: RowStore<ED, GeneralRuntimeContext<ED>>, appId: string, getToken: () => Promise<string | undefined>);
|
private scene;
|
||||||
getApplication(): Promise<import("oak-domain/lib/types").SelectRowShape<import("oak-app-domain/Application/Schema").Schema, {
|
constructor(store: RowStore<ED, GeneralRuntimeContext<ED>>, appId: string, getToken: () => Promise<string | undefined>, scene: string);
|
||||||
|
getApplication(): Promise<import("oak-domain/lib/types").SelectRowShape<EntityDict, {
|
||||||
id: 1;
|
id: 1;
|
||||||
name: 1;
|
name: 1;
|
||||||
config: 1;
|
config: 1;
|
||||||
|
|
@ -17,4 +18,5 @@ export declare abstract class GeneralRuntimeContext<ED extends EntityDict> exten
|
||||||
userId: 1;
|
userId: 1;
|
||||||
playerId: 1;
|
playerId: 1;
|
||||||
}> | undefined>;
|
}> | undefined>;
|
||||||
|
getScene(): string;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
declare const _default: import("oak-domain/lib/types").Checker<import("oak-app-domain").EntityDict, "address", import("..").GeneralRuntimeContext<import("oak-app-domain").EntityDict>>[];
|
declare const _default: (import("oak-domain/lib/types").Checker<EntityDict, "address", import("..").GeneralRuntimeContext<EntityDict>> | import("oak-domain/lib/types").Checker<EntityDict, "token", import("..").GeneralRuntimeContext<EntityDict>>)[];
|
||||||
export default _default;
|
export default _default;
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
import { Checker } from "oak-domain/lib/types";
|
||||||
|
import { EntityDict } from 'oak-app-domain';
|
||||||
|
import { GeneralRuntimeContext } from '../RuntimeContext';
|
||||||
|
declare const checkers: Checker<EntityDict, 'token', GeneralRuntimeContext<EntityDict>>[];
|
||||||
|
export default checkers;
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
declare const _default: {
|
declare const _default: {
|
||||||
user: import("oak-app-domain/User/Schema").CreateOperationData[];
|
user: UserCreate[];
|
||||||
role: import("oak-app-domain/Role/Schema").CreateOperationData[];
|
role: RoleCreate[];
|
||||||
area: ({
|
area: ({
|
||||||
code: string;
|
code: string;
|
||||||
level: string;
|
level: string;
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,13 @@
|
||||||
import { EntityDict } from 'oak-app-domain';
|
import { EntityDict } from 'oak-app-domain';
|
||||||
import { Feature } from 'oak-frontend-base';
|
import { Feature } from 'oak-frontend-base';
|
||||||
import { Aspect, Context } from 'oak-domain/lib/types';
|
import { Aspect, Context } from 'oak-domain/lib/types';
|
||||||
import { WechatMpEnv } from 'oak-app-domain/Token/Schema';
|
|
||||||
export declare class Token<ED extends EntityDict, Cxt extends Context<ED>, AD extends Record<string, Aspect<ED, Cxt>>> extends Feature<ED, Cxt, AD> {
|
export declare class Token<ED extends EntityDict, Cxt extends Context<ED>, AD extends Record<string, Aspect<ED, Cxt>>> extends Feature<ED, Cxt, AD> {
|
||||||
private token?;
|
private token?;
|
||||||
private rwLock;
|
private rwLock;
|
||||||
constructor();
|
constructor();
|
||||||
loginByPassword(mobile: string, password: string): Promise<void>;
|
loginByPassword(mobile: string, password: string, scene: string): Promise<void>;
|
||||||
loginWechatMp(code: string, env: WechatMpEnv): Promise<void>;
|
loginWechatMp(scene: string): Promise<void>;
|
||||||
syncUserInfoWechatMp(): Promise<void>;
|
syncUserInfoWechatMp(scene: string): Promise<void>;
|
||||||
logout(): Promise<void>;
|
logout(): Promise<void>;
|
||||||
getToken(): Promise<string | undefined>;
|
getToken(): Promise<string | undefined>;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import { EntityDict as BaseEntityDict } from 'oak-app-domain/EntityDict';
|
|
||||||
import { Trigger } from 'oak-domain/lib/types';
|
import { Trigger } from 'oak-domain/lib/types';
|
||||||
declare const _default: (Trigger<BaseEntityDict, "address", import("..").GeneralRuntimeContext<BaseEntityDict>> | Trigger<BaseEntityDict, "user", import("..").GeneralRuntimeContext<BaseEntityDict>>)[];
|
declare const _default: (Trigger<EntityDict, "address", import("..").GeneralRuntimeContext<EntityDict>> | Trigger<EntityDict, "user", import("..").GeneralRuntimeContext<EntityDict>>)[];
|
||||||
export default _default;
|
export default _default;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
import { OpSchema as ExtraFile } from '../base-app-domain/ExtraFile/Schema';
|
import { OpSchema as ExtraFile } from '../base-app-domain/ExtraFile/Schema';
|
||||||
export declare function composeFileUrl(extraFile: ExtraFile): string;
|
export declare function composeFileUrl(extraFile: ExtraFile): any;
|
||||||
export declare function decomposeFileUrl(url: string): Pick<ExtraFile, 'bucket' | 'filename' | 'origin' | 'type'>;
|
export declare function decomposeFileUrl(url: string): Pick<ExtraFile, 'bucket' | 'filename' | 'origin' | 'type' | 'extra1'>;
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
export {};
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
export {};
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
export {};
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
export {};
|
||||||
Loading…
Reference in New Issue