@kintone/customize-uploader
Version:
A kintone customize uploader
108 lines (107 loc) • 7.53 kB
TypeScript
import type { Lang } from "./lang";
export declare const messages: {
readonly E_requiredManifestFile: {
readonly en: "Please specify manifest file";
readonly ja: "マニフェストファイルを指定してください";
};
readonly Q_BaseUrl: {
readonly en: "Input your kintone's base URL (https://example.cybozu.com):";
readonly ja: "kintoneのベースURLを入力してください (https://example.cybozu.com):";
};
readonly Q_UserName: {
readonly en: "Input your username:";
readonly ja: "ログイン名を入力してください:";
};
readonly Q_Password: {
readonly en: "Input your password:";
readonly ja: "パスワードを入力してください:";
};
readonly Q_AppId: {
readonly en: "Input your app id:";
readonly ja: "アプリIDを入力してください:";
};
readonly Q_Scope: {
readonly en: "Select the scope of customization:";
readonly ja: "カスタマイズの適用範囲を選択してください:";
};
readonly M_StartUploading: {
readonly en: "Start uploading customization files";
readonly ja: "カスタマイズのアップロードを開始します";
};
readonly M_FileUploaded: {
readonly en: "JavaScript/CSS files have been uploaded!";
readonly ja: "JavaScript/CSS ファイルをアップロードしました!";
};
readonly E_FileUploaded: {
readonly en: "Failed to upload JavaScript/CSS files";
readonly ja: "JavaScript/CSS ファイルのアップロードに失敗しました";
};
readonly M_Uploaded: {
readonly en: "has been uploaded!";
readonly ja: "をアップロードしました!";
};
readonly M_Updated: {
readonly en: "Customize setting has been updated!";
readonly ja: "JavaScript/CSS カスタマイズの設定を変更しました!";
};
readonly M_UpdateManifestFile: {
readonly en: "Update manifest file based on the current customization setting on kintone app";
readonly ja: "kintoneのアプリのカスタマイズ設定を元にマニフェストファイルを更新しています";
};
readonly M_DownloadUploadedFile: {
readonly en: "Download the current customization files on kintone app";
readonly ja: "kintoneのアプリからカスタマイズ設定されたファイルをダウンロードしています";
};
readonly M_CommandInitFinish: {
readonly en: "customize-manifest.json file has been created";
readonly ja: "customize-manifest.json を生成しました";
};
readonly M_CommandImportFinish: {
readonly en: "Finish importing customization files from kintone app";
readonly ja: "kintoneのアプリからカスタマイズのインポートが完了しました";
};
readonly E_Updated: {
readonly en: "Failed to update customize setting";
readonly ja: "JavaScript/CSS カスタマイズの設定の変更に失敗しました";
};
readonly M_Deployed: {
readonly en: "Setting has been deployed!";
readonly ja: "運用環境に反映しました!";
};
readonly E_Authentication: {
readonly en: "Failed to authenticate. Please confirm your username, password, and kintone's base URL";
readonly ja: "認証に失敗しました。ログイン名、パスワード、ベース URL を確認してください";
};
readonly E_Deployed: {
readonly en: "Failed to deploy setting";
readonly ja: "運用環境への反映に失敗しました";
};
readonly M_Deploying: {
readonly en: "Wait for deploying completed...";
readonly ja: "運用環境への反映の完了を待っています...";
};
readonly M_Watching: {
readonly en: "Watching for file changes...";
readonly ja: "ファイルの変更を監視しています...";
};
readonly E_Retry: {
readonly en: "An error occurred, retry";
readonly ja: "エラーが発生しました。リトライします";
};
readonly E_Exit: {
readonly en: "An error occurred, exit process. Please check if you passed proper arguments and manifest file";
readonly ja: "エラーが発生しました。引数の値と、マニフェストファイルに正しい値が入力されているか確認してください";
};
};
/**
* Returns a message for the passed lang and key
* @param lang
* @param key
*/
export declare const getMessage: (lang: Lang, key: keyof typeof messages) => "Please specify manifest file" | "マニフェストファイルを指定してください" | "Input your kintone's base URL (https://example.cybozu.com):" | "kintoneのベースURLを入力してください (https://example.cybozu.com):" | "Input your username:" | "ログイン名を入力してください:" | "Input your password:" | "パスワードを入力してください:" | "Input your app id:" | "アプリIDを入力してください:" | "Select the scope of customization:" | "カスタマイズの適用範囲を選択してください:" | "Start uploading customization files" | "カスタマイズのアップロードを開始します" | "JavaScript/CSS files have been uploaded!" | "JavaScript/CSS ファイルをアップロードしました!" | "Failed to upload JavaScript/CSS files" | "JavaScript/CSS ファイルのアップロードに失敗しました" | "has been uploaded!" | "をアップロードしました!" | "Customize setting has been updated!" | "JavaScript/CSS カスタマイズの設定を変更しました!" | "Update manifest file based on the current customization setting on kintone app" | "kintoneのアプリのカスタマイズ設定を元にマニフェストファイルを更新しています" | "Download the current customization files on kintone app" | "kintoneのアプリからカスタマイズ設定されたファイルをダウンロードしています" | "customize-manifest.json file has been created" | "customize-manifest.json を生成しました" | "Finish importing customization files from kintone app" | "kintoneのアプリからカスタマイズのインポートが完了しました" | "Failed to update customize setting" | "JavaScript/CSS カスタマイズの設定の変更に失敗しました" | "Setting has been deployed!" | "運用環境に反映しました!" | "Failed to authenticate. Please confirm your username, password, and kintone's base URL" | "認証に失敗しました。ログイン名、パスワード、ベース URL を確認してください" | "Failed to deploy setting" | "運用環境への反映に失敗しました" | "Wait for deploying completed..." | "運用環境への反映の完了を待っています..." | "Watching for file changes..." | "ファイルの変更を監視しています..." | "An error occurred, retry" | "エラーが発生しました。リトライします" | "An error occurred, exit process. Please check if you passed proper arguments and manifest file" | "エラーが発生しました。引数の値と、マニフェストファイルに正しい値が入力されているか確認してください";
export type BoundMessage = (key: keyof typeof messages) => string;
/**
* Returns a function bound lang to getMessage
* @param lang
*/
export declare const getBoundMessage: (lang: Lang) => BoundMessage;