File size: 1,188 Bytes
68f7925
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
 * API Client Proxy
 *
 * このファイルはgradio.tsの関数をプロキシし、
 * モック機能が有効な場合はモックデータを返します。
 * 既存のコードへの影響を最小限にするため、
 * 同じインターフェースを維持しています。
 */

import * as gradioOriginal from '@/services/gradio';

// モックインターセプターは無効化(ファイルが存在しないため)
export const callApiWithTimeout = gradioOriginal.callApiWithTimeout;

// その他の関数は元のgradio.tsからそのままエクスポート
// これにより、import文の変更だけで済む
export {
  downloadExcelData,
  getCheckUrl,
  getDummyProposalOutput,
  getExcel,
  getGradioStorageClient,
  getPox,
  getPpts2OwnLp,
  getProposal,
  getProposalCnDummy,
  getProposalDummy,
  getProposalFvDummy,
  getProposalIntentDummy,
  getProposalPredictionDummy,
  getRefreshMoment,
  getScore,
  getScoreStep3,
  getSummary,
  getThemeByMoment,
  getVisScore,
  replaceRegulationApiEach,
  sendLog,
} from '@/services/gradio';

// 型定義もエクスポート
export type { ProposalParams, ProposalResponse } from '@/services/gradio';