chore: build
This commit is contained in:
@@ -97,6 +97,12 @@ export interface CodeBuySub {
|
||||
created_at: string
|
||||
}
|
||||
|
||||
export interface PremiumUser {
|
||||
username: string
|
||||
activated_at: string
|
||||
expired_at: string
|
||||
}
|
||||
|
||||
export interface Contact {
|
||||
id: string
|
||||
username: string
|
||||
@@ -223,6 +229,7 @@ export const api = {
|
||||
transferDemoToPremium: (id: string) => request<Demo>('POST', `/demos/${id}/premium`),
|
||||
|
||||
listCodes: () => request<{ items: CodeBuySub[] }>('GET', '/codes'),
|
||||
listPremiumUsers: () => request<{ items: PremiumUser[] }>('GET', '/premium'),
|
||||
createCode: (username: string) =>
|
||||
request<{ code: string }>('POST', '/codes', { username }),
|
||||
addCode: (code: string) =>
|
||||
|
||||
Reference in New Issue
Block a user