Add skill for gameplay entry type workflows
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import type {
|
||||
CreateProfileRechargeOrderResponse,
|
||||
ClaimProfileTaskRewardResponse,
|
||||
PlatformBrowseHistoryBatchSyncRequest,
|
||||
PlatformBrowseHistoryResponse,
|
||||
PlatformBrowseHistoryWriteEntry,
|
||||
@@ -9,6 +10,7 @@ import type {
|
||||
ProfileRechargeCenterResponse,
|
||||
ProfileSaveArchiveListResponse,
|
||||
ProfileSaveArchiveResumeResponse,
|
||||
ProfileTaskCenterResponse,
|
||||
ProfileWalletLedgerResponse,
|
||||
RedeemProfileReferralInviteCodeResponse,
|
||||
RedeemProfileRewardCodeResponse,
|
||||
@@ -142,6 +144,27 @@ export function redeemRpgProfileRewardCode(
|
||||
);
|
||||
}
|
||||
|
||||
export function getRpgProfileTasks(options: RuntimeRequestOptions = {}) {
|
||||
return requestRpgRuntimeJson<ProfileTaskCenterResponse>(
|
||||
'/profile/tasks',
|
||||
{ method: 'GET' },
|
||||
'读取每日任务失败',
|
||||
options,
|
||||
);
|
||||
}
|
||||
|
||||
export function claimRpgProfileTaskReward(
|
||||
taskId: string,
|
||||
options: RuntimeRequestOptions = {},
|
||||
) {
|
||||
return requestRpgRuntimeJson<ClaimProfileTaskRewardResponse>(
|
||||
`/profile/tasks/${encodeURIComponent(taskId)}/claim`,
|
||||
{ method: 'POST' },
|
||||
'领取任务奖励失败',
|
||||
options,
|
||||
);
|
||||
}
|
||||
|
||||
export function getRpgProfilePlayStats(options: RuntimeRequestOptions = {}) {
|
||||
return requestRpgRuntimeJson<ProfilePlayStatsResponse>(
|
||||
'/profile/play-stats',
|
||||
@@ -255,6 +278,8 @@ export const rpgProfileClient = {
|
||||
createRechargeOrder: createRpgProfileRechargeOrder,
|
||||
getReferralInviteCenter: getRpgProfileReferralInviteCenter,
|
||||
redeemReferralInviteCode: redeemRpgProfileReferralInviteCode,
|
||||
getTasks: getRpgProfileTasks,
|
||||
claimTaskReward: claimRpgProfileTaskReward,
|
||||
getSettings: getRpgProfileSettings,
|
||||
putSettings: putRpgProfileSettings,
|
||||
listSaveArchives: listRpgProfileSaveArchives,
|
||||
|
||||
Reference in New Issue
Block a user