🐛 fix: Ci
CI / build (20.15.1) (push) Has been cancelled

This commit is contained in:
2026-01-27 20:11:44 -08:00
parent 57b841525d
commit 3b93b95177
9 changed files with 662 additions and 15 deletions
+68
View File
@@ -85,3 +85,71 @@ export async function getSubscribeApplicationList(
},
);
}
/** Create App Version POST /v1/admin/application/version */
export async function createAppVersion(
body: API.CreateAppVersionRequest,
options?: { [key: string]: any },
) {
return request<API.Response & { data?: API.ApplicationVersion }>(
'/v1/admin/application/version',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
},
);
}
/** Update App Version PUT /v1/admin/application/version */
export async function updateAppVersion(
body: API.UpdateAppVersionRequest,
options?: { [key: string]: any },
) {
return request<API.Response & { data?: API.ApplicationVersion }>(
'/v1/admin/application/version',
{
method: 'PUT',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
},
);
}
/** Delete App Version DELETE /v1/admin/application/version */
export async function deleteAppVersion(
body: API.DeleteAppVersionRequest,
options?: { [key: string]: any },
) {
return request<API.Response & { data?: any }>('/v1/admin/application/version', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** Get App Version List GET /v1/admin/application/version/list */
export async function getAppVersionList(
params: API.GetAppVersionListParams,
options?: { [key: string]: any },
) {
return request<API.Response & { data?: API.GetAppVersionListResponse }>(
'/v1/admin/application/version/list',
{
method: 'GET',
params: {
...params,
},
...(options || {}),
},
);
}
+45 -1
View File
@@ -65,10 +65,53 @@ declare namespace API {
type ApplicationVersion = {
id: number;
platform: string;
url: string;
version: string;
description: string;
min_version?: string;
force_update: boolean;
description: Record<string, string>;
is_default: boolean;
is_in_review: boolean;
created_at: number;
};
type CreateAppVersionRequest = {
platform: string;
version: string;
min_version?: string;
force_update?: boolean;
description?: string;
url: string;
is_default?: boolean;
is_in_review?: boolean;
};
type UpdateAppVersionRequest = {
id: number;
platform: string;
version: string;
min_version?: string;
force_update?: boolean;
description?: string;
url: string;
is_default?: boolean;
is_in_review?: boolean;
};
type DeleteAppVersionRequest = {
id: number;
};
type GetAppVersionListParams = {
page?: number;
size?: number;
platform?: string;
};
type GetAppVersionListResponse = {
total: number;
list: ApplicationVersion[];
};
type AppUserSubcbribe = {
@@ -398,6 +441,7 @@ declare namespace API {
access_key: string;
currency_unit: string;
currency_symbol: string;
fixed_rate?: number;
};
type DeleteAdsRequest = {