auth auth : { applyDataMerge : ( ( data : HandlerRequestAuthDataMergeApply , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseAuthDataMergeApply , HandlerMap & { msg ?: string ; } > > ) ; checkDataMerge : ( ( params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseAuthDataMergeCheck , HandlerMap & { msg ?: string ; } > > ) ; loginByEmail : ( ( data : HandlerRequestAuthEmailLogin , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseUserLogin , HandlerMap & { msg ?: string ; } > > ) ; registerByEmail : ( ( data : HandlerRequestAuthEmailRegister , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseUserLogin , HandlerMap & { msg ?: string ; } > > ) ; sendVerifyEmail : ( ( data : HandlerRequestAuthEmailSend , params ?: RequestParams ) => Promise < HttpResponse < HandlerMap & { msg ?: string ; } , HandlerMap & { msg ?: string ; } > > ) ; } = ...
Type declaration apply Data Merge : ( ( data : HandlerRequestAuthDataMergeApply , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseAuthDataMergeApply , HandlerMap & { msg ?: string ; } > > ) ( data , params ? ) : Promise < HttpResponse < HandlerResponseAuthDataMergeApply , HandlerMap & { msg ?: string ; } > > Parameters data : HandlerRequestAuthDataMergeApply params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseAuthDataMergeApply , HandlerMap & { msg ?: string ; } > > check Data Merge : ( ( params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseAuthDataMergeCheck , HandlerMap & { msg ?: string ; } > > ) ( params ? ) : Promise < HttpResponse < HandlerResponseAuthDataMergeCheck , HandlerMap & { msg ?: string ; } > > Parameters params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseAuthDataMergeCheck , HandlerMap & { msg ?: string ; } > > login By Email : ( ( data : HandlerRequestAuthEmailLogin , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseUserLogin , HandlerMap & { msg ?: string ; } > > ) ( data , params ? ) : Promise < HttpResponse < HandlerResponseUserLogin , HandlerMap & { msg ?: string ; } > > Parameters data : HandlerRequestAuthEmailLogin params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseUserLogin , HandlerMap & { msg ?: string ; } > > register By Email : ( ( data : HandlerRequestAuthEmailRegister , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseUserLogin , HandlerMap & { msg ?: string ; } > > ) ( data , params ? ) : Promise < HttpResponse < HandlerResponseUserLogin , HandlerMap & { msg ?: string ; } > > Parameters data : HandlerRequestAuthEmailRegister params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseUserLogin , HandlerMap & { msg ?: string ; } > > send Verify Email : ( ( data : HandlerRequestAuthEmailSend , params ?: RequestParams ) => Promise < HttpResponse < HandlerMap & { msg ?: string ; } , HandlerMap & { msg ?: string ; } > > ) ( data , params ? ) : Promise < HttpResponse < HandlerMap & { msg ?: string ; } , HandlerMap & { msg ?: string ; } > > Parameters data : HandlerRequestAuthEmailSend params : RequestParams = {} Returns Promise < HttpResponse < HandlerMap & { msg ?: string ; } , HandlerMap & { msg ?: string ; } > > base Url base Url : string = '/api/v2'
cache cache : { flushCache : ( ( params ?: RequestParams ) => Promise < HttpResponse < HandlerMap & { msg ?: string ; } , HandlerMap & { msg ?: string ; } > > ) ; warmUpCache : ( ( params ?: RequestParams ) => Promise < HttpResponse < HandlerMap & { msg ?: string ; } , HandlerMap & { msg ?: string ; } > > ) ; } = ...
Type declaration flush Cache : ( ( params ?: RequestParams ) => Promise < HttpResponse < HandlerMap & { msg ?: string ; } , HandlerMap & { msg ?: string ; } > > ) ( params ? ) : Promise < HttpResponse < HandlerMap & { msg ?: string ; } , HandlerMap & { msg ?: string ; } > > Parameters params : RequestParams = {} Returns Promise < HttpResponse < HandlerMap & { msg ?: string ; } , HandlerMap & { msg ?: string ; } > > warm Up Cache : ( ( params ?: RequestParams ) => Promise < HttpResponse < HandlerMap & { msg ?: string ; } , HandlerMap & { msg ?: string ; } > > ) ( params ? ) : Promise < HttpResponse < HandlerMap & { msg ?: string ; } , HandlerMap & { msg ?: string ; } > > Parameters params : RequestParams = {} Returns Promise < HttpResponse < HandlerMap & { msg ?: string ; } , HandlerMap & { msg ?: string ; } > > captcha captcha : { getCaptcha : ( ( params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseCaptchaGet , HandlerMap & { msg ?: string ; } > > ) ; getCaptchaStatus : ( ( params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseCaptchaStatus , any > > ) ; verifyCaptcha : ( ( data : HandlerParamsCaptchaVerify , params ?: RequestParams ) => Promise < HttpResponse < HandlerMap , HandlerMap & { img_data ?: string ; } > > ) ; } = ...
Type declaration get Captcha : ( ( params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseCaptchaGet , HandlerMap & { msg ?: string ; } > > ) ( params ? ) : Promise < HttpResponse < HandlerResponseCaptchaGet , HandlerMap & { msg ?: string ; } > > Parameters params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseCaptchaGet , HandlerMap & { msg ?: string ; } > > get Captcha Status : ( ( params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseCaptchaStatus , any > > ) ( params ? ) : Promise < HttpResponse < HandlerResponseCaptchaStatus , any > > Parameters params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseCaptchaStatus , any > > verify Captcha : ( ( data : HandlerParamsCaptchaVerify , params ?: RequestParams ) => Promise < HttpResponse < HandlerMap , HandlerMap & { img_data ?: string ; } > > ) ( data , params ? ) : Promise < HttpResponse < HandlerMap , HandlerMap & { img_data ?: string ; } > > Parameters data : HandlerParamsCaptchaVerify params : RequestParams = {} Returns Promise < HttpResponse < HandlerMap , HandlerMap & { img_data ?: string ; } > > comments comments : { createComment : ( ( comment : HandlerParamsCommentCreate , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseCommentCreate , HandlerMap & { msg ?: string ; } > > ) ; deleteComment : ( ( id : number , params ?: RequestParams ) => Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > ) ; getComment : ( ( id : number , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseCommentGet , HandlerMap & { msg ?: string ; } > > ) ; getComments : ( ( query : { email ?: string ; flat_mode ?: boolean ; limit ?: number ; name ?: string ; offset ?: number ; page_key : string ; scope ?: "page" | "user" | "site" ; search ?: string ; site_name ?: string ; sort_by ?: "date_asc" | "date_desc" | "vote" ; type ?: | "all" | "pending" | "mentions" | "mine" ; view_only_admin ?: boolean ; } , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseCommentList , HandlerMap & { msg ?: string ; } > > ) ; updateComment : ( ( id : number , comment : HandlerParamsCommentUpdate , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseCommentUpdate , HandlerMap & { msg ?: string ; } > > ) ; } = ...
Type declaration create Comment : ( ( comment : HandlerParamsCommentCreate , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseCommentCreate , HandlerMap & { msg ?: string ; } > > ) Parameters comment : HandlerParamsCommentCreate params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseCommentCreate , HandlerMap & { msg ?: string ; } > > delete Comment : ( ( id : number , params ?: RequestParams ) => Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > ) Parameters id : number params : RequestParams = {} Returns Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > get Comment : ( ( id : number , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseCommentGet , HandlerMap & { msg ?: string ; } > > ) Parameters id : number params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseCommentGet , HandlerMap & { msg ?: string ; } > > get Comments : ( ( query : { email ?: string ; flat_mode ?: boolean ; limit ?: number ; name ?: string ; offset ?: number ; page_key : string ; scope ?: "page" | "user" | "site" ; search ?: string ; site_name ?: string ; sort_by ?: "date_asc" | "date_desc" | "vote" ; type ?: | "all" | "pending" | "mentions" | "mine" ; view_only_admin ?: boolean ; } , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseCommentList , HandlerMap & { msg ?: string ; } > > ) Parameters query : { email ?: string ; flat_mode ?: boolean ; limit ?: number ; name ?: string ; offset ?: number ; page_key : string ; scope ?: "page" | "user" | "site" ; search ?: string ; site_name ?: string ; sort_by ?: "date_asc" | "date_desc" | "vote" ; type ?: | "all" | "pending" | "mentions" | "mine" ; view_only_admin ?: boolean ; } Optional
email ?: string Optional
flat_ mode ?: boolean Optional
limit ?: number Optional
name ?: string Optional
offset ?: number page_ key : string Optional
scope ?: "page" | "user" | "site" Optional
search ?: string Optional
site_ name ?: string Optional
sort_ by ?: "date_asc" | "date_desc" | "vote" Optional
type ?: | "all" | "pending" | "mentions" | "mine" Optional
view_ only_ admin ?: boolean params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseCommentList , HandlerMap & { msg ?: string ; } > > update Comment : ( ( id : number , comment : HandlerParamsCommentUpdate , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseCommentUpdate , HandlerMap & { msg ?: string ; } > > ) Parameters id : number comment : HandlerParamsCommentUpdate params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseCommentUpdate , HandlerMap & { msg ?: string ; } > > conf conf : { conf : ( ( params ?: RequestParams ) => Promise < HttpResponse < CommonConfData , any > > ) ; getDomain : ( ( query ?: { url ?: string ; } , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseConfDomain , any > > ) ; getSocialLoginProviders : ( ( params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseConfAuthProviders , HandlerMap & { msg ?: string ; } > > ) ; } = ...
Type declaration conf : ( ( params ?: RequestParams ) => Promise < HttpResponse < CommonConfData , any > > ) ( params ? ) : Promise < HttpResponse < CommonConfData , any > > Parameters params : RequestParams = {} Returns Promise < HttpResponse < CommonConfData , any > > get Domain : ( ( query ?: { url ?: string ; } , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseConfDomain , any > > ) ( query ? , params ? ) : Promise < HttpResponse < HandlerResponseConfDomain , any > > Parameters Optional
query : { url ?: string ; } params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseConfDomain , any > > get Social Login Providers : ( ( params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseConfAuthProviders , HandlerMap & { msg ?: string ; } > > ) ( params ? ) : Promise < HttpResponse < HandlerResponseConfAuthProviders , HandlerMap & { msg ?: string ; } > > Parameters params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseConfAuthProviders , HandlerMap & { msg ?: string ; } > > notifies notifies : { getNotifies : ( ( query : { email : string ; name : string ; } , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseNotifyList , HandlerMap & { msg ?: string ; } > > ) ; markAllNotifyRead : ( ( options : HandlerParamsNotifyReadAll , params ?: RequestParams ) => Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > ) ; markNotifyRead : ( ( commentId : number , notifyKey : string , params ?: RequestParams ) => Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > ) ; } = ...
Type declaration get Notifies : ( ( query : { email : string ; name : string ; } , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseNotifyList , HandlerMap & { msg ?: string ; } > > ) ( query , params ? ) : Promise < HttpResponse < HandlerResponseNotifyList , HandlerMap & { msg ?: string ; } > > Parameters query : { email : string ; name : string ; } email : string name : string params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseNotifyList , HandlerMap & { msg ?: string ; } > > mark All Notify Read : ( ( options : HandlerParamsNotifyReadAll , params ?: RequestParams ) => Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > ) ( options , params ? ) : Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > Parameters options : HandlerParamsNotifyReadAll params : RequestParams = {} Returns Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > mark Notify Read : ( ( commentId : number , notifyKey : string , params ?: RequestParams ) => Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > ) ( commentId , notifyKey , params ? ) : Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > Parameters commentId : number notifyKey : string params : RequestParams = {} Returns Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > pages pages : { deletePage : ( ( id : number , params ?: RequestParams ) => Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > ) ; fetchAllPages : ( ( options : HandlerParamsPageFetchAll , params ?: RequestParams ) => Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > ) ; fetchPage : ( ( id : number , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponsePageFetch , HandlerMap & { msg ?: string ; } > > ) ; getPageFetchStatus : ( ( params ?: RequestParams ) => Promise < HttpResponse < HandlerResponsePageFetchStatus , any > > ) ; getPages : ( ( query ?: { limit ?: number ; offset ?: number ; search ?: string ; site_name ?: string ; } , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponsePageList , HandlerMap & { msg ?: string ; } > > ) ; logPv : ( ( page : HandlerParamsPagePV , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponsePagePV , any > > ) ; updatePage : ( ( id : number , page : HandlerParamsPageUpdate , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponsePageUpdate , HandlerMap & { msg ?: string ; } > > ) ; } = ...
Type declaration delete Page : ( ( id : number , params ?: RequestParams ) => Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > ) ( id , params ? ) : Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > Parameters id : number params : RequestParams = {} Returns Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > fetch All Pages : ( ( options : HandlerParamsPageFetchAll , params ?: RequestParams ) => Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > ) ( options , params ? ) : Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > Parameters options : HandlerParamsPageFetchAll params : RequestParams = {} Returns Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > fetch Page : ( ( id : number , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponsePageFetch , HandlerMap & { msg ?: string ; } > > ) ( id , params ? ) : Promise < HttpResponse < HandlerResponsePageFetch , HandlerMap & { msg ?: string ; } > > Parameters id : number params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponsePageFetch , HandlerMap & { msg ?: string ; } > > get Page Fetch Status : ( ( params ?: RequestParams ) => Promise < HttpResponse < HandlerResponsePageFetchStatus , any > > ) ( params ? ) : Promise < HttpResponse < HandlerResponsePageFetchStatus , any > > Parameters params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponsePageFetchStatus , any > > get Pages : ( ( query ?: { limit ?: number ; offset ?: number ; search ?: string ; site_name ?: string ; } , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponsePageList , HandlerMap & { msg ?: string ; } > > ) ( query ? , params ? ) : Promise < HttpResponse < HandlerResponsePageList , HandlerMap & { msg ?: string ; } > > Parameters Optional
query : { limit ?: number ; offset ?: number ; search ?: string ; site_name ?: string ; } Optional
limit ?: number Optional
offset ?: number Optional
search ?: string Optional
site_ name ?: string params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponsePageList , HandlerMap & { msg ?: string ; } > > log Pv : ( ( page : HandlerParamsPagePV , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponsePagePV , any > > ) ( page , params ? ) : Promise < HttpResponse < HandlerResponsePagePV , any > > Parameters page : HandlerParamsPagePV params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponsePagePV , any > > update Page : ( ( id : number , page : HandlerParamsPageUpdate , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponsePageUpdate , HandlerMap & { msg ?: string ; } > > ) ( id , page , params ? ) : Promise < HttpResponse < HandlerResponsePageUpdate , HandlerMap & { msg ?: string ; } > > Parameters id : number page : HandlerParamsPageUpdate params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponsePageUpdate , HandlerMap & { msg ?: string ; } > > send Email send Email : { sendEmail : ( ( email : HandlerParamsEmailSend , params ?: RequestParams ) => Promise < HttpResponse < HandlerMap , HandlerMap | HandlerMap & { msg ?: string ; } > > ) ; } = ...
Type declaration send Email : ( ( email : HandlerParamsEmailSend , params ?: RequestParams ) => Promise < HttpResponse < HandlerMap , HandlerMap | HandlerMap & { msg ?: string ; } > > ) ( email , params ? ) : Promise < HttpResponse < HandlerMap , HandlerMap | HandlerMap & { msg ?: string ; } > > Parameters email : HandlerParamsEmailSend params : RequestParams = {} Returns Promise < HttpResponse < HandlerMap , HandlerMap | HandlerMap & { msg ?: string ; } > > settings settings : { applySettings : ( ( settings : HandlerParamsSettingApply , params ?: RequestParams ) => Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > ) ; getSettings : ( ( params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseSettingGet , HandlerMap & { msg ?: string ; } > > ) ; getSettingsTemplate : ( ( locale : string , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseSettingTemplate , any > > ) ; } = ...
Type declaration apply Settings : ( ( settings : HandlerParamsSettingApply , params ?: RequestParams ) => Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > ) ( settings , params ? ) : Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > Parameters settings : HandlerParamsSettingApply params : RequestParams = {} Returns Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > get Settings : ( ( params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseSettingGet , HandlerMap & { msg ?: string ; } > > ) ( params ? ) : Promise < HttpResponse < HandlerResponseSettingGet , HandlerMap & { msg ?: string ; } > > Parameters params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseSettingGet , HandlerMap & { msg ?: string ; } > > get Settings Template : ( ( locale : string , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseSettingTemplate , any > > ) ( locale , params ? ) : Promise < HttpResponse < HandlerResponseSettingTemplate , any > > Parameters locale : string params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseSettingTemplate , any > > sites sites : { createSite : ( ( site : HandlerParamsSiteCreate , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseSiteCreate , HandlerMap & { msg ?: string ; } > > ) ; deleteSite : ( ( id : number , params ?: RequestParams ) => Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > ) ; getSites : ( ( params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseSiteList , any > > ) ; updateSite : ( ( id : number , site : HandlerParamsSiteUpdate , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseSiteUpdate , any > > ) ; } = ...
Type declaration create Site : ( ( site : HandlerParamsSiteCreate , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseSiteCreate , HandlerMap & { msg ?: string ; } > > ) ( site , params ? ) : Promise < HttpResponse < HandlerResponseSiteCreate , HandlerMap & { msg ?: string ; } > > Parameters site : HandlerParamsSiteCreate params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseSiteCreate , HandlerMap & { msg ?: string ; } > > delete Site : ( ( id : number , params ?: RequestParams ) => Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > ) ( id , params ? ) : Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > Parameters id : number params : RequestParams = {} Returns Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > get Sites : ( ( params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseSiteList , any > > ) ( params ? ) : Promise < HttpResponse < HandlerResponseSiteList , any > > Parameters params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseSiteList , any > > update Site : ( ( id : number , site : HandlerParamsSiteUpdate , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseSiteUpdate , any > > ) ( id , site , params ? ) : Promise < HttpResponse < HandlerResponseSiteUpdate , any > > Parameters id : number site : HandlerParamsSiteUpdate params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseSiteUpdate , any > > stats stats : { getStats : ( ( type : | "latest_comments" | "latest_pages" | "pv_most_pages" | "comment_most_pages" | "page_pv" | "site_pv" | "page_comment" | "site_comment" | "rand_comments" | "rand_pages" , query ?: { limit ?: number ; page_keys ?: string ; site_name ?: string ; } , params ?: RequestParams ) => Promise < HttpResponse < CommonJSONResult , HandlerMap & { msg ?: string ; } > > ) ; } = ...
Type declaration get Stats : ( ( type : | "latest_comments" | "latest_pages" | "pv_most_pages" | "comment_most_pages" | "page_pv" | "site_pv" | "page_comment" | "site_comment" | "rand_comments" | "rand_pages" , query ?: { limit ?: number ; page_keys ?: string ; site_name ?: string ; } , params ?: RequestParams ) => Promise < HttpResponse < CommonJSONResult , HandlerMap & { msg ?: string ; } > > ) ( type , query ? , params ? ) : Promise < HttpResponse < CommonJSONResult , HandlerMap & { msg ?: string ; } > > Parameters type : | "latest_comments" | "latest_pages" | "pv_most_pages" | "comment_most_pages" | "page_pv" | "site_pv" | "page_comment" | "site_comment" | "rand_comments" | "rand_pages" Optional
query : { limit ?: number ; page_keys ?: string ; site_name ?: string ; } Optional
limit ?: number Optional
page_ keys ?: string Optional
site_ name ?: string params : RequestParams = {} Returns Promise < HttpResponse < CommonJSONResult , HandlerMap & { msg ?: string ; } > > transfer transfer : { exportArtrans : ( ( params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseTransferExport , HandlerMap & { msg ?: string ; } > > ) ; importArtrans : ( ( data : HandlerParamsTransferImport , params ?: RequestParams ) => Promise < HttpResponse < string , any > > ) ; uploadArtrans : ( ( data : { file : File ; } , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseTransferUpload & { filename ?: string ; } , HandlerMap & { msg ?: string ; } > > ) ; } = ...
Type declaration export Artrans : ( ( params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseTransferExport , HandlerMap & { msg ?: string ; } > > ) ( params ? ) : Promise < HttpResponse < HandlerResponseTransferExport , HandlerMap & { msg ?: string ; } > > Parameters params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseTransferExport , HandlerMap & { msg ?: string ; } > > import Artrans : ( ( data : HandlerParamsTransferImport , params ?: RequestParams ) => Promise < HttpResponse < string , any > > ) ( data , params ? ) : Promise < HttpResponse < string , any > > Parameters data : HandlerParamsTransferImport params : RequestParams = {} Returns Promise < HttpResponse < string , any > > upload Artrans : ( ( data : { file : File ; } , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseTransferUpload & { filename ?: string ; } , HandlerMap & { msg ?: string ; } > > ) ( data , params ? ) : Promise < HttpResponse < HandlerResponseTransferUpload & { filename ?: string ; } , HandlerMap & { msg ?: string ; } > > Parameters data : { file : File ; } params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseTransferUpload & { filename ?: string ; } , HandlerMap & { msg ?: string ; } > > upload upload : { upload : ( ( data : { file : File ; } , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseUpload , HandlerMap & { msg ?: string ; } > > ) ; } = ...
Type declaration upload : ( ( data : { file : File ; } , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseUpload , HandlerMap & { msg ?: string ; } > > ) ( data , params ? ) : Promise < HttpResponse < HandlerResponseUpload , HandlerMap & { msg ?: string ; } > > Parameters data : { file : File ; } params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseUpload , HandlerMap & { msg ?: string ; } > > user user : { getUser : ( ( query ?: { email ?: string ; name ?: string ; } , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseUserInfo , HandlerMap & { msg ?: string ; } > > ) ; getUserStatus : ( ( query ?: { email ?: string ; name ?: string ; } , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseUserStatus , any > > ) ; login : ( ( user : HandlerParamsUserLogin , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseUserLogin , HandlerMap & { data ?: { need_name_select ?: ( ...) [] ; } ; msg ?: string ; } | HandlerMap & { msg ?: string ; } > > ) ; updateProfile : ( ( data : HandlerRequestUserInfoUpdate , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseUserInfoUpdate , HandlerMap & { msg ?: string ; } > > ) ; } = ...
Type declaration get User : ( ( query ?: { email ?: string ; name ?: string ; } , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseUserInfo , HandlerMap & { msg ?: string ; } > > ) ( query ? , params ? ) : Promise < HttpResponse < HandlerResponseUserInfo , HandlerMap & { msg ?: string ; } > > Parameters Optional
query : { email ?: string ; name ?: string ; } Optional
email ?: string Optional
name ?: string params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseUserInfo , HandlerMap & { msg ?: string ; } > > get User Status : ( ( query ?: { email ?: string ; name ?: string ; } , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseUserStatus , any > > ) ( query ? , params ? ) : Promise < HttpResponse < HandlerResponseUserStatus , any > > Parameters Optional
query : { email ?: string ; name ?: string ; } Optional
email ?: string Optional
name ?: string params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseUserStatus , any > > login : ( ( user : HandlerParamsUserLogin , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseUserLogin , HandlerMap & { data ?: { need_name_select ?: ( ...) [] ; } ; msg ?: string ; } | HandlerMap & { msg ?: string ; } > > ) ( user , params ? ) : Promise < HttpResponse < HandlerResponseUserLogin , HandlerMap & { data ?: { need_name_select ?: ( ...) [] ; } ; msg ?: string ; } | HandlerMap & { msg ?: string ; } > > Parameters user : HandlerParamsUserLogin params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseUserLogin , HandlerMap & { data ?: { need_name_select ?: ( ...) [] ; } ; msg ?: string ; } | HandlerMap & { msg ?: string ; } > > update Profile : ( ( data : HandlerRequestUserInfoUpdate , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseUserInfoUpdate , HandlerMap & { msg ?: string ; } > > ) ( data , params ? ) : Promise < HttpResponse < HandlerResponseUserInfoUpdate , HandlerMap & { msg ?: string ; } > > Parameters data : HandlerRequestUserInfoUpdate params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseUserInfoUpdate , HandlerMap & { msg ?: string ; } > > users users : { createUser : ( ( user : HandlerParamsUserCreate , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseUserCreate , HandlerMap & { msg ?: string ; } > > ) ; deleteUser : ( ( id : number , params ?: RequestParams ) => Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > ) ; getUsers : ( ( type ?: "all" | "admin" | "in_conf" , query ?: { limit ?: number ; offset ?: number ; search ?: string ; } , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseAdminUserList , HandlerMap & { msg ?: string ; } > > ) ; updateUser : ( ( id : number , user : HandlerParamsUserUpdate , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseUserUpdate , HandlerMap & { msg ?: string ; } > > ) ; } = ...
Type declaration create User : ( ( user : HandlerParamsUserCreate , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseUserCreate , HandlerMap & { msg ?: string ; } > > ) ( user , params ? ) : Promise < HttpResponse < HandlerResponseUserCreate , HandlerMap & { msg ?: string ; } > > Parameters user : HandlerParamsUserCreate params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseUserCreate , HandlerMap & { msg ?: string ; } > > delete User : ( ( id : number , params ?: RequestParams ) => Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > ) ( id , params ? ) : Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > Parameters id : number params : RequestParams = {} Returns Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > get Users : ( ( type ?: "all" | "admin" | "in_conf" , query ?: { limit ?: number ; offset ?: number ; search ?: string ; } , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseAdminUserList , HandlerMap & { msg ?: string ; } > > ) ( type ? , query ? , params ? ) : Promise < HttpResponse < HandlerResponseAdminUserList , HandlerMap & { msg ?: string ; } > > Parameters Optional
type : "all" | "admin" | "in_conf" Optional
query : { limit ?: number ; offset ?: number ; search ?: string ; } Optional
limit ?: number Optional
offset ?: number Optional
search ?: string params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseAdminUserList , HandlerMap & { msg ?: string ; } > > update User : ( ( id : number , user : HandlerParamsUserUpdate , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseUserUpdate , HandlerMap & { msg ?: string ; } > > ) ( id , user , params ? ) : Promise < HttpResponse < HandlerResponseUserUpdate , HandlerMap & { msg ?: string ; } > > Parameters id : number user : HandlerParamsUserUpdate params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseUserUpdate , HandlerMap & { msg ?: string ; } > > version version : { getVersion : ( ( params ?: RequestParams ) => Promise < HttpResponse < CommonApiVersionData , any > > ) ; } = ...
Type declaration get Version : ( ( params ?: RequestParams ) => Promise < HttpResponse < CommonApiVersionData , any > > ) ( params ? ) : Promise < HttpResponse < CommonApiVersionData , any > > Parameters params : RequestParams = {} Returns Promise < HttpResponse < CommonApiVersionData , any > > votes votes : { createVote : ( ( targetName : "page" | "comment" , targetId : number , choice : "up" | "down" , vote : HandlerParamsVoteCreate , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseVote , HandlerMap & { msg ?: string ; } > > ) ; getVote : ( ( targetName : "page" | "comment" , targetId : number , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseVote , HandlerMap & { msg ?: string ; } > > ) ; syncVotes : ( ( params ?: RequestParams ) => Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > ) ; } = ...
Type declaration create Vote : ( ( targetName : "page" | "comment" , targetId : number , choice : "up" | "down" , vote : HandlerParamsVoteCreate , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseVote , HandlerMap & { msg ?: string ; } > > ) ( targetName , targetId , choice , vote , params ? ) : Promise < HttpResponse < HandlerResponseVote , HandlerMap & { msg ?: string ; } > > Parameters targetName : "page" | "comment" targetId : number choice : "up" | "down" vote : HandlerParamsVoteCreate params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseVote , HandlerMap & { msg ?: string ; } > > get Vote : ( ( targetName : "page" | "comment" , targetId : number , params ?: RequestParams ) => Promise < HttpResponse < HandlerResponseVote , HandlerMap & { msg ?: string ; } > > ) ( targetName , targetId , params ? ) : Promise < HttpResponse < HandlerResponseVote , HandlerMap & { msg ?: string ; } > > Parameters targetName : "page" | "comment" targetId : number params : RequestParams = {} Returns Promise < HttpResponse < HandlerResponseVote , HandlerMap & { msg ?: string ; } > > sync Votes : ( ( params ?: RequestParams ) => Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > ) ( params ? ) : Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > > Parameters params : RequestParams = {} Returns Promise < HttpResponse < HandlerMap , HandlerMap & { msg ?: string ; } > >
Description
This function is to solve the problem of multiple users with the same email address, should be called after user login and then check, and perform data merge.
Tags
Auth
Name
ApplyDataMerge
Summary
Apply data merge
Request
POST:/auth/merge
Secure
Response
200
HandlerResponseAuthDataMergeApply
OKResponse
400
`(HandlerMap & { msg?: string,})` Bad Request
Response
500
`(HandlerMap & { msg?: string,})` Internal Server Error