minapp-fetch
Version:
771 lines (770 loc) • 31.8 kB
TypeScript
import addUserIntoGroup_temp from './addUserIntoGroup';
import anonymous_temp from './anonymous';
import count_temp from './count';
import countContent_temp from './countContent';
import countFile_temp from './countFile';
import countUser_temp from './countUser';
import createSuperGroup_temp from './createSuperGroup';
import createUserGroup_temp from './createUserGroup';
import currentUser_temp from './currentUser';
import currentUserUpdate_temp from './currentUserUpdate';
import deleteCategory_temp from './deleteCategory';
import deleteContent_temp from './deleteContent';
import deleteFile_temp from './deleteFile';
import deleteOne_temp from './deleteOne';
import deleteMany_temp from './deleteMany';
import deleteSuperGroup_temp from './deleteSuperGroup';
import deleteUserGroup_temp from './deleteUserGroup';
import emailVerify_temp from './emailVerify';
import find_temp from './find';
import findCategory_temp from './findCategory';
import findContent_temp from './findContent';
import findContentGroup_temp from './findContentGroup';
import findFile_temp from './findFile';
import findUser_temp from './findUser';
import get_temp from './get';
import getAsyncJobResult_temp from './getAsyncJobResult';
import getCategory_temp from './getCategory';
import getContent_temp from './getContent';
import getContentGroup_temp from './getContentGroup';
import getFile_temp from './getFile';
import getServerDate_temp from './getServerDate';
import getSuperGroup_temp from './getSuperGroup';
import getSuperGroupList_temp from './getSuperGroupList';
import getTable_temp from './getTable';
import getTableList_temp from './getTableList';
import getUser_temp from './getUser';
import getUserGroup_temp from './getUserGroup';
import getUserGroupList_temp from './getUserGroupList';
import init_temp from './init';
import invoke_temp from './invoke';
import login_temp from './login';
import loginThirdParty_temp from './loginThirdParty';
import loginWith_temp from './loginWith';
import loginWithSmsVerificationCode_temp from './loginWithSmsVerificationCode';
import logout_temp from './logout';
import passwordReset_temp from './passwordReset';
import pay_temp from './pay';
import pLimit_temp from './pLimit';
import redirectResult_temp from './redirectResult';
import register_temp from './register';
import removeUserFromGroup_temp from './removeUserFromGroup';
import request_temp from './request';
import sendEmail_temp from './sendEmail';
import sendSmsCode_temp from './sendSmsCode';
import set_temp from './set';
import setCategory_temp from './setCategory';
import setContent_temp from './setContent';
import setMany_temp from './setMany';
import subscribe_temp from './subscribe';
import subscribeMessage_temp from './subscribeMessage';
import thirdPartyAuth_temp from './thirdPartyAuth';
import unsubscribe_temp from './unsubscribe';
import update_temp from './update';
import updateCategory_temp from './updateCategory';
import updateContent_temp from './updateContent';
import updateMany_temp from './updateMany';
import updateSuperGroup_temp from './updateSuperGroup';
import updateUser_temp from './updateUser';
import updateUserGroup_temp from './updateUserGroup';
import updateUserMany_temp from './updateUserMany';
import upload_temp from './upload';
import verifySmsCode_temp from './verifySmsCode';
import wxDecryptData_temp from './wxDecryptData';
declare const _default: {
addUserIntoGroup: typeof addUserIntoGroup_temp;
anonymous: typeof anonymous_temp;
count: typeof count_temp;
countContent: typeof countContent_temp;
countFile: typeof countFile_temp;
countUser: typeof countUser_temp;
createSuperGroup: typeof createSuperGroup_temp;
createUserGroup: typeof createUserGroup_temp;
currentUser: typeof currentUser_temp;
currentUserUpdate: typeof currentUserUpdate_temp;
deleteCategory: typeof deleteCategory_temp;
deleteContent: typeof deleteContent_temp;
deleteFile: typeof deleteFile_temp;
deleteOne: typeof deleteOne_temp;
deleteMany: typeof deleteMany_temp;
deleteSuperGroup: typeof deleteSuperGroup_temp;
deleteUserGroup: typeof deleteUserGroup_temp;
emailVerify: typeof emailVerify_temp;
find: typeof find_temp;
findCategory: typeof findCategory_temp;
findContent: typeof findContent_temp;
findContentGroup: typeof findContentGroup_temp;
findFile: typeof findFile_temp;
findUser: typeof findUser_temp;
get: typeof get_temp;
getAsyncJobResult: typeof getAsyncJobResult_temp;
getCategory: typeof getCategory_temp;
getContent: typeof getContent_temp;
getContentGroup: typeof getContentGroup_temp;
getFile: typeof getFile_temp;
getServerDate: typeof getServerDate_temp;
getSuperGroup: typeof getSuperGroup_temp;
getSuperGroupList: typeof getSuperGroupList_temp;
getTable: typeof getTable_temp;
getTableList: typeof getTableList_temp;
getUser: typeof getUser_temp;
getUserGroup: typeof getUserGroup_temp;
getUserGroupList: typeof getUserGroupList_temp;
init: typeof init_temp;
invoke: typeof invoke_temp;
login: typeof login_temp;
loginThirdParty: typeof loginThirdParty_temp;
loginWith: typeof loginWith_temp;
loginWithSmsVerificationCode: typeof loginWithSmsVerificationCode_temp;
logout: typeof logout_temp;
passwordReset: typeof passwordReset_temp;
pay: typeof pay_temp;
pLimit: typeof pLimit_temp;
redirectResult: typeof redirectResult_temp;
register: typeof register_temp;
removeUserFromGroup: typeof removeUserFromGroup_temp;
request: typeof request_temp;
sendEmail: typeof sendEmail_temp;
sendSmsCode: typeof sendSmsCode_temp;
set: typeof set_temp;
setCategory: typeof setCategory_temp;
setContent: typeof setContent_temp;
setMany: typeof setMany_temp;
subscribe: typeof subscribe_temp;
subscribeMessage: typeof subscribeMessage_temp;
thirdPartyAuth: typeof thirdPartyAuth_temp;
unsubscribe: typeof unsubscribe_temp;
update: typeof update_temp;
updateCategory: typeof updateCategory_temp;
updateContent: typeof updateContent_temp;
updateMany: typeof updateMany_temp;
updateSuperGroup: typeof updateSuperGroup_temp;
updateUser: typeof updateUser_temp;
updateUserGroup: typeof updateUserGroup_temp;
updateUserMany: typeof updateUserMany_temp;
upload: typeof upload_temp;
verifySmsCode: typeof verifySmsCode_temp;
wxDecryptData: typeof wxDecryptData_temp;
};
export default _default;
export declare const addUserIntoGroup: typeof addUserIntoGroup_temp;
export declare const anonymous: typeof anonymous_temp;
export declare const count: typeof count_temp;
export declare const countContent: typeof countContent_temp;
export declare const countFile: typeof countFile_temp;
export declare const countUser: typeof countUser_temp;
export declare const createSuperGroup: typeof createSuperGroup_temp;
export declare const createUserGroup: typeof createUserGroup_temp;
export declare const currentUser: typeof currentUser_temp;
export declare const currentUserUpdate: typeof currentUserUpdate_temp;
export declare const deleteCategory: typeof deleteCategory_temp;
export declare const deleteContent: typeof deleteContent_temp;
export declare const deleteFile: typeof deleteFile_temp;
export declare const deleteOne: typeof deleteOne_temp;
export declare const deleteMany: typeof deleteMany_temp;
export declare const deleteSuperGroup: typeof deleteSuperGroup_temp;
export declare const deleteUserGroup: typeof deleteUserGroup_temp;
export declare const emailVerify: typeof emailVerify_temp;
export declare const find: typeof find_temp;
export declare const findCategory: typeof findCategory_temp;
export declare const findContent: typeof findContent_temp;
export declare const findContentGroup: typeof findContentGroup_temp;
export declare const findFile: typeof findFile_temp;
export declare const findUser: typeof findUser_temp;
export declare const get: typeof get_temp;
export declare const getAsyncJobResult: typeof getAsyncJobResult_temp;
export declare const getCategory: typeof getCategory_temp;
export declare const getContent: typeof getContent_temp;
export declare const getContentGroup: typeof getContentGroup_temp;
export declare const getFile: typeof getFile_temp;
export declare const getServerDate: typeof getServerDate_temp;
export declare const getSuperGroup: typeof getSuperGroup_temp;
export declare const getSuperGroupList: typeof getSuperGroupList_temp;
export declare const getTable: typeof getTable_temp;
export declare const getTableList: typeof getTableList_temp;
export declare const getUser: typeof getUser_temp;
export declare const getUserGroup: typeof getUserGroup_temp;
export declare const getUserGroupList: typeof getUserGroupList_temp;
export declare const init: typeof init_temp;
export declare const invoke: typeof invoke_temp;
export declare const login: typeof login_temp;
export declare const loginThirdParty: typeof loginThirdParty_temp;
export declare const loginWith: typeof loginWith_temp;
export declare const loginWithSmsVerificationCode: typeof loginWithSmsVerificationCode_temp;
export declare const logout: typeof logout_temp;
export declare const passwordReset: typeof passwordReset_temp;
export declare const pay: typeof pay_temp;
export declare const pLimit: typeof pLimit_temp;
export declare const redirectResult: typeof redirectResult_temp;
export declare const register: typeof register_temp;
export declare const removeUserFromGroup: typeof removeUserFromGroup_temp;
export declare const request: typeof request_temp;
export declare const sendEmail: typeof sendEmail_temp;
export declare const sendSmsCode: typeof sendSmsCode_temp;
export declare const set: typeof set_temp;
export declare const setCategory: typeof setCategory_temp;
export declare const setContent: typeof setContent_temp;
export declare const setMany: typeof setMany_temp;
export declare const subscribe: typeof subscribe_temp;
export declare const subscribeMessage: typeof subscribeMessage_temp;
export declare const thirdPartyAuth: typeof thirdPartyAuth_temp;
export declare const unsubscribe: typeof unsubscribe_temp;
export declare const update: typeof update_temp;
export declare const updateCategory: typeof updateCategory_temp;
export declare const updateContent: typeof updateContent_temp;
export declare const updateMany: typeof updateMany_temp;
export declare const updateSuperGroup: typeof updateSuperGroup_temp;
export declare const updateUser: typeof updateUser_temp;
export declare const updateUserGroup: typeof updateUserGroup_temp;
export declare const updateUserMany: typeof updateUserMany_temp;
export declare const upload: typeof upload_temp;
export declare const verifySmsCode: typeof verifySmsCode_temp;
export declare const wxDecryptData: typeof wxDecryptData_temp;
declare type TWxEnvInit = {
database?: string;
storage?: string;
functions?: string;
default?: string;
};
export declare type TPlatform = 'zx_alipay' | 'zx_cloud' | 'zx_jd' | 'zx_ks' | 'zx_op' | 'zx_qq' | 'zx_rn' | 'zx_swan' | 'zx_tt' | 'zx_weapp' | 'zx_web' | 'zx_webapi' | 'wx_weapp' | 'wx_cloud' | 'mongodb' | 'uni_cloud' | 'mysql';
export interface IZXWebapi {
clientID: string;
host?: string;
accessToken?: string;
env?: string;
[key: string]: any;
}
export interface IWXWeapp {
env: string | TWxEnvInit;
traceUser?: boolean;
[key: string]: any;
}
export interface IWXCloud {
env: string | TWxEnvInit;
traceUser?: string;
[key: string]: any;
}
export interface IMongodb {
host: string;
env?: string;
[key: string]: any;
}
export interface IMysql {
host: string;
database: string;
user?: string;
password?: string;
port?: string;
[key: string]: any;
}
export declare type THeader = {
[key: string]: string | number | undefined | null;
};
export interface IGetBaaSF {
BaaS_F: any;
minapp: TPlatform;
options?: {
RequestBase?: string;
Header?: THeader;
host?: string;
user?: string;
password?: string;
port?: string;
env?: string | TWxEnvInit;
};
}
export declare type TTable = string | number;
export declare type TCheckMethod = '=' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'notIn' | 'arrayContains' | 'contains' | 'matches' | 'stringLength' | 'like' | 'hasKey' | 'between' | 'notBetween' | 'isNull' | 'isExists' | 'include' | 'withinCircle' | 'withinRegion' | 'within';
export declare type TP = 'p0' | 'p1' | 'p2' | 'p3' | 'p4' | 'p5' | 'p6' | 'p7' | 'p8' | 'p9' | 'p10' | 'p11' | 'p12' | 'p13' | 'p14' | 'p15' | 'p16' | 'p17' | 'p18' | 'p19';
declare type TField = 'id' | 'name' | 'size' | 'category_id' | 'category_name' | 'created_at';
interface IPRList {
p0?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p1?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p2?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p3?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p4?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p5?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p6?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p7?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p8?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p9?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p10?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p11?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p12?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p13?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p14?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p15?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p16?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p17?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p18?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p19?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p20?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p21?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p22?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p23?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p24?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p25?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p26?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p27?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p28?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p29?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p30?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p31?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p32?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p33?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p34?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p35?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p36?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p37?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p38?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p39?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p40?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p41?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p42?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p43?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p44?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p45?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p46?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p47?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p48?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p49?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p50?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p51?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p52?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p53?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p54?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p55?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p56?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p57?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p58?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p59?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p60?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p61?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p62?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p63?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p64?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p65?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p66?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p67?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p68?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p69?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p70?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p71?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p72?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p73?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p74?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p75?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p76?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p77?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p78?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p79?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p80?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p81?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p82?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p83?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p84?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p85?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p86?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p87?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p88?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p89?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p90?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p91?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p92?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p93?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p94?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p95?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p96?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p97?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p98?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
p99?: [string, TCheckMethod, ...any[]] | [TCheckMethod, ...any[]];
r?: string;
r2?: string;
}
interface IPRFileList {
p0?: [TField, TCheckMethod, ...any[]];
p1?: [TField, TCheckMethod, ...any[]];
p2?: [TField, TCheckMethod, ...any[]];
p3?: [TField, TCheckMethod, ...any[]];
p4?: [TField, TCheckMethod, ...any[]];
p5?: [TField, TCheckMethod, ...any[]];
p6?: [TField, TCheckMethod, ...any[]];
p7?: [TField, TCheckMethod, ...any[]];
p8?: [TField, TCheckMethod, ...any[]];
p9?: [TField, TCheckMethod, ...any[]];
p10?: [TField, TCheckMethod, ...any[]];
p11?: [TField, TCheckMethod, ...any[]];
p12?: [TField, TCheckMethod, ...any[]];
p13?: [TField, TCheckMethod, ...any[]];
p14?: [TField, TCheckMethod, ...any[]];
p15?: [TField, TCheckMethod, ...any[]];
p16?: [TField, TCheckMethod, ...any[]];
p17?: [TField, TCheckMethod, ...any[]];
p18?: [TField, TCheckMethod, ...any[]];
p19?: [TField, TCheckMethod, ...any[]];
p20?: [TField, TCheckMethod, ...any[]];
p21?: [TField, TCheckMethod, ...any[]];
p22?: [TField, TCheckMethod, ...any[]];
p23?: [TField, TCheckMethod, ...any[]];
p24?: [TField, TCheckMethod, ...any[]];
p25?: [TField, TCheckMethod, ...any[]];
p26?: [TField, TCheckMethod, ...any[]];
p27?: [TField, TCheckMethod, ...any[]];
p28?: [TField, TCheckMethod, ...any[]];
p29?: [TField, TCheckMethod, ...any[]];
p30?: [TField, TCheckMethod, ...any[]];
p31?: [TField, TCheckMethod, ...any[]];
p32?: [TField, TCheckMethod, ...any[]];
p33?: [TField, TCheckMethod, ...any[]];
p34?: [TField, TCheckMethod, ...any[]];
p35?: [TField, TCheckMethod, ...any[]];
p36?: [TField, TCheckMethod, ...any[]];
p37?: [TField, TCheckMethod, ...any[]];
p38?: [TField, TCheckMethod, ...any[]];
p39?: [TField, TCheckMethod, ...any[]];
p40?: [TField, TCheckMethod, ...any[]];
p41?: [TField, TCheckMethod, ...any[]];
p42?: [TField, TCheckMethod, ...any[]];
p43?: [TField, TCheckMethod, ...any[]];
p44?: [TField, TCheckMethod, ...any[]];
p45?: [TField, TCheckMethod, ...any[]];
p46?: [TField, TCheckMethod, ...any[]];
p47?: [TField, TCheckMethod, ...any[]];
p48?: [TField, TCheckMethod, ...any[]];
p49?: [TField, TCheckMethod, ...any[]];
p50?: [TField, TCheckMethod, ...any[]];
r?: string;
}
export interface ICheckParams extends IPRList {
page?: number;
limit?: number;
orderBy?: string | string[];
expand?: string | string[];
select?: string | string[];
groupBy?: string | string[];
withCount?: boolean;
}
export interface ICheckFileParams extends IPRFileList {
page?: number;
limit?: number;
orderBy?: string | string[];
expand?: string | string[];
select?: string | string[];
withCount?: boolean;
}
export interface ICountParams extends IPRList {
limit?: 1;
withCount?: true;
}
export interface ICountFileParams extends IPRFileList {
limit?: 1;
withCount?: true;
}
export interface IUpdateManyParams extends IPRList {
page?: number;
limit?: number;
u: IUpdateParams;
expand?: string | string[];
enableTrigger?: boolean;
withCount?: boolean;
}
export declare type TCheckManyItem = [string | number, ICheckParams];
declare type TUpdateMethod = 'incr' | 'set' | 'unset' | 'patchObject' | 'geo' | 'append' | 'remove' | 'uAppend' | 'pop' | 'shift';
declare type TSetMethod = 'geo';
declare type dataType = string | string[] | number | number[] | boolean | boolean[] | null | undefined | {
[propName: string]: any;
} | {
[index: number]: any;
};
export declare type TSentence = 'sentence';
export interface IUpdateParams {
[key: string]: [TUpdateMethod, dataType] | dataType;
}
export interface ISetParams {
[key: string]: [TSetMethod, dataType] | dataType;
}
export interface ISetQuery {
expand?: string | string[];
enableTrigger?: boolean;
}
export interface IUpdateQuery {
expand?: string | string[];
enableTrigger?: boolean;
}
export interface IDeleteQuery {
}
export interface ISetManyQuery {
enableTrigger?: boolean;
}
export interface IGetQuery {
expand?: string | string[];
select?: string | string[];
}
export interface IFileParams {
filePath?: string;
fileObj?: string;
fileType?: string;
}
export interface IDeleteParams extends IPRList {
page?: number;
limit?: number;
enableTrigger?: boolean;
withCount?: boolean;
}
export interface IMetaData {
categoryID?: string;
categoryName?: string;
fileName?: string;
filePath?: string;
contentType?: string;
}
export declare type TGetItem = [TTable, string, IGetQuery];
export declare type TSetItem = [TTable, ISetParams];
export declare type TUpdateItem = [TTable, string, IUpdateParams];
export interface ICategoryParams {
page?: number;
limit?: number;
orderBy?: '-created_at' | 'created_at' | '-updated_at' | 'updated_at';
withCount?: boolean;
}
export interface IContentGroupParams {
page?: number;
limit?: number;
withCount?: boolean;
}
export interface ISetCategoryParams {
name: string;
parent?: number;
}
export interface ISetContentParams {
title?: string;
content?: string;
cover?: any;
description?: string;
categories?: number[];
[propName: string]: any;
}
export interface ISendEmailParams {
recipient?: string;
subject?: string;
body?: string;
}
declare type TGetewayType = 'weixin_tenpay_wap' | 'weixin_tenpay_native' | 'weixin_tenpay_js' | 'alipay_page' | 'alipay_wap' | 'qpay_native';
export declare type TPayWay = 'zx_alipay' | 'zx_weapp' | 'zx_qq' | 'zx_swan' | 'zx_tt';
export interface IPayParams {
gatewayType?: TGetewayType;
totalCost: number;
merchandiseDescription: string;
service?: string;
merchandiseSchemaID?: number;
merchandiseRecordID?: string;
merchandiseSnapshot?: any;
profitSharing?: boolean;
}
declare type TRequestMethod = 'get' | 'delete' | 'head' | 'post' | 'put' | 'patch' | 'options' | 'trace' | 'connect';
export interface IRequestParams {
url: string;
method: TRequestMethod;
baseURL?: string;
transformRequest?: any;
transformResponse?: any;
headers?: {
[propName: string]: any;
};
params?: any;
paramsSerializer?: any;
data?: any;
timeout?: number;
withCredentials?: boolean;
adapter?: any;
auth?: any;
responseType?: 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream';
responseEncoding?: string;
xsrfCookieName?: string;
xsrfHeaderName?: string;
onUploadProgress?: any;
onDownloadProgress?: any;
maxContentLength?: number;
maxBodyLength?: number;
validateStatus?: any;
maxRedirects?: number;
socketPath?: string | null;
httpAgent?: any;
httpsAgent?: any;
proxy?: any;
cancelToken?: any;
decompress?: any;
dataType?: 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream';
}
export interface ISubMessage {
template_id: string | number;
subscription_type: 'once' | 'permanent';
}
export declare type TSubEvent = 'create' | 'update' | 'delete';
export declare type TSubUnionID = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | '14' | '15' | '16' | '17' | '18' | '19' | '20';
export interface ISubRes {
after: {
[key: string]: any;
};
before: {
[key: string]: any;
};
event: 'on_init' | 'on_create' | 'on_update' | 'on_delete' | 'on_error';
schema_id: number;
schema_name: string;
id: string;
}
export declare type ISubCallBack = (res: ISubRes, err?: any) => void;
export interface IGetTableListParams {
limit?: number;
page?: number;
name?: string;
}
export interface ILoginParams {
email?: string;
username?: string;
phone?: string;
password: string;
}
export interface ILoginWithParams {
createUser?: boolean;
syncUserProfile?: 'overwrite' | 'setnx' | 'false';
withUnionID?: boolean;
}
export declare type TWxDecryptType = 'we-run-data' | 'phone-number' | 'open-gid';
export declare type TLoginThirdProvider = 'oauth-wechat-mp' | 'oauth-wechat-web' | 'oauth-weibo';
export interface ILoginThirdParams {
debug?: boolean;
mode?: 'popup-window' | 'popup-iframe' | 'redirect';
authModalStyle?: any;
wechatIframeContentStyle?: any;
windowFeatures?: any;
createUser?: boolean;
syncUserProfile?: 'overwrite' | 'setnx' | 'false';
}
export interface ICurrentUser {
id: number;
get?: () => any;
toJSON?: () => any;
avatar?: string;
created_at?: number;
updated_at?: number;
nickname?: string;
city?: string;
country?: string;
created_by?: number;
gender?: number;
is_authorized?: boolean;
language?: string;
openid?: string;
province?: string;
session_expires_at?: string;
unionid?: string;
user_id?: number;
_anonymous?: boolean;
_email?: string;
_email_verified?: boolean;
_phone?: string;
_phone_verified?: boolean;
_provider?: {
alipay: {
avatar: string;
province: string;
city: string;
nick_name: string;
is_student: boolean;
user_type: string;
user_status: string;
verified: boolean;
gender: string;
};
wechat: {
avatar: string;
city: string;
country: string;
gender: number;
language: string;
nickname: string;
openid: string;
province: string;
unionid: string;
};
};
[key: string]: any;
}
export interface IFindRes {
statusCode?: number;
data: {
meta?: {
limit: number;
next: string | null;
offset: number;
previous: string | null;
total_count?: number;
};
objects: any[];
};
[key: string]: any;
}
export interface ISetRes {
statusCode?: number;
data: {
id?: string | string;
[key: string]: any;
};
[key: string]: any;
}
export interface IGetRes {
statusCode?: number;
data: {
id?: string | string;
[key: string]: any;
};
[key: string]: any;
}
export interface IUpdateRes {
statusCode?: number;
data: {
id?: string;
[key: string]: any;
};
[key: string]: any;
}
export interface IDeleteRes {
data: {
[key: string]: any;
};
[key: string]: any;
}
export interface IGetFileRes {
tempFilePath?: string;
fileID?: string;
statusCode?: number;
data: {
categories?: {
id?: string;
name?: string;
} | {
id?: string;
name?: string;
}[];
cdn_path?: string;
created_at: number;
id: string;
media_type?: string;
mime_type?: string;
name: string;
path: string;
size?: number;
status?: string;
};
[key: string]: any;
}
export interface IGetServerTimeRes {
data: {
time: string;
[key: string]: any;
};
status?: number;
[key: string]: any;
}