京都のkintone用javascript
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
953B

  1. export type KintoneConfig = {
  2. APP_ID: {
  3. 顧客マスタ: number;
  4. 定期申込予約: number;
  5. 定期予約選考: number;
  6. 問い合わせ: number;
  7. 入金予定結果: number;
  8. 各種申請: number;
  9. 車室契約情報: number;
  10. };
  11. };
  12. export const kintoneConfig = (): KintoneConfig => {
  13. if (process.env.NODE_ENV === "development") {
  14. return {
  15. APP_ID: {
  16. 顧客マスタ: 254,
  17. 定期申込予約: 271,
  18. 定期予約選考: 301,
  19. 問い合わせ: 291,
  20. 入金予定結果: 272,
  21. 各種申請: 294,
  22. 車室契約情報: 253,
  23. },
  24. };
  25. } else {
  26. throw new Error("KintoneConfig不正");
  27. return {
  28. APP_ID: {
  29. 顧客マスタ: 254,
  30. 定期申込予約: 271,
  31. 定期予約選考: 301,
  32. 問い合わせ: 291,
  33. 入金予定結果: 272,
  34. 各種申請: 294,
  35. 車室契約情報: 253,
  36. },
  37. };
  38. }
  39. };