26 lines
1.1 KiB
TypeScript
26 lines
1.1 KiB
TypeScript
import { LocalStorage } from 'oak-frontend-base/es/features/localStorage';
|
|
import { Cache } from 'oak-frontend-base/es/features/cache';
|
|
import { Feature } from 'oak-frontend-base/es/types/Feature';
|
|
import { EntityDict } from '../oak-app-domain';
|
|
import { MediaType, MediaVideoDescription } from '../types/WeChat';
|
|
export declare class Application<ED extends EntityDict> extends Feature {
|
|
private applicationId?;
|
|
private application?;
|
|
private cache;
|
|
private storage;
|
|
private projection;
|
|
constructor(cache: Cache<ED>, storage: LocalStorage);
|
|
private getApplicationFromCache;
|
|
private loadApplicationInfo;
|
|
initialize(domain: string, appId?: string | null, projection?: EntityDict['application']['Selection']['data']): Promise<void>;
|
|
getApplication(): Partial<import("../oak-app-domain/Application/Schema").Schema> | undefined;
|
|
getApplicationId(): string;
|
|
uploadWechatMedia(params: {
|
|
applicationId: string;
|
|
file: File;
|
|
type: MediaType;
|
|
isPermanent?: boolean;
|
|
description?: MediaVideoDescription;
|
|
}): Promise<any>;
|
|
}
|