feat: integrate learning module
This commit is contained in:
@@ -4,6 +4,7 @@ export type ProjectPublic = {
|
||||
app_id: string;
|
||||
title: string;
|
||||
summary: string;
|
||||
description?: string | null;
|
||||
cover_url?: string | null;
|
||||
category?: string | null;
|
||||
age_band?: string | null;
|
||||
@@ -15,6 +16,7 @@ export type ProjectPublic = {
|
||||
/** @deprecated Use play_url. Kept for one client compatibility release. */
|
||||
runtime_url?: string | null;
|
||||
creator_name?: string | null;
|
||||
creator_age?: number | null;
|
||||
buddy_name?: string | null;
|
||||
buddy_sprite_url?: string | null;
|
||||
buddy_pose_url?: string | null;
|
||||
@@ -74,7 +76,10 @@ export type WorksProjectMetadataInput = {
|
||||
app_id: string;
|
||||
title: string;
|
||||
summary: string;
|
||||
description?: string | null;
|
||||
cover_url?: string | null;
|
||||
creator_name?: string | null;
|
||||
creator_age?: number | null;
|
||||
category?: string | null;
|
||||
age_band?: string | null;
|
||||
difficulty?: string | null;
|
||||
@@ -133,6 +138,13 @@ export type WorksStaticPackageSummary = {
|
||||
export type WorksProjectSourcePublishInput = {
|
||||
projectId: string;
|
||||
project: WorksProjectMetadataInput;
|
||||
cover?: WorksProjectCoverUpload;
|
||||
};
|
||||
|
||||
export type WorksProjectCoverUpload = {
|
||||
fileName: string;
|
||||
mimeType: string;
|
||||
dataBase64: string;
|
||||
};
|
||||
|
||||
export type WorksSubmissionBindingWarning = {
|
||||
@@ -428,6 +440,7 @@ export async function publishWorksProjectSource(
|
||||
body: JSON.stringify({
|
||||
projectId: input.projectId,
|
||||
project: input.project,
|
||||
...(input.cover ? { cover: input.cover } : {}),
|
||||
}),
|
||||
});
|
||||
if (!response.success || !response.package || !response.upload) {
|
||||
|
||||
Reference in New Issue
Block a user