@cieloazul310/jclub-financial-utils 0.0.1-alpha.5 → 0.0.1-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/all-fields.cjs +2 -2
  2. package/dist/all-fields.d.cts +1 -1
  3. package/dist/all-fields.d.mts +1 -1
  4. package/dist/all-fields.mjs +2 -2
  5. package/dist/all-fields.mjs.map +1 -1
  6. package/dist/{club-CauHQ_x1.d.mts → club-C65-tOmf.d.mts} +2 -1
  7. package/dist/club-C65-tOmf.d.mts.map +1 -0
  8. package/dist/{club-CmkWZe16.d.cts → club-DKBTnD_Q.d.cts} +2 -1
  9. package/dist/club-DKBTnD_Q.d.cts.map +1 -0
  10. package/dist/club-dictionary.cjs +47 -0
  11. package/dist/club-dictionary.d.cts +26 -0
  12. package/dist/club-dictionary.d.cts.map +1 -0
  13. package/dist/club-dictionary.d.mts +26 -0
  14. package/dist/club-dictionary.d.mts.map +1 -0
  15. package/dist/club-dictionary.mjs +45 -0
  16. package/dist/club-dictionary.mjs.map +1 -0
  17. package/dist/{clubs-B9ZOclEl.cjs → clubs-BMTfABm1.cjs} +139 -76
  18. package/dist/{clubs-ECnq3cfm.mjs → clubs-ql57Bx32.mjs} +140 -77
  19. package/dist/{clubs-ECnq3cfm.mjs.map → clubs-ql57Bx32.mjs.map} +1 -1
  20. package/dist/clubs.cjs +1 -1
  21. package/dist/clubs.d.cts +1 -1
  22. package/dist/clubs.d.cts.map +1 -1
  23. package/dist/clubs.d.mts +1 -1
  24. package/dist/clubs.d.mts.map +1 -1
  25. package/dist/clubs.mjs +1 -1
  26. package/dist/{data-BifrD3Hs.d.cts → data-B8fHRnNH.d.cts} +21 -7
  27. package/dist/data-B8fHRnNH.d.cts.map +1 -0
  28. package/dist/{data-rDHl-GBR.d.mts → data-BzqjPiVO.d.mts} +21 -7
  29. package/dist/data-BzqjPiVO.d.mts.map +1 -0
  30. package/dist/{data-PJ-fpqmg.mjs → data-C_cvAEea.mjs} +6 -7
  31. package/dist/data-C_cvAEea.mjs.map +1 -0
  32. package/dist/{data-CGTGYuvt.cjs → data-DrLXADPh.cjs} +6 -7
  33. package/dist/data.cjs +2 -2
  34. package/dist/data.d.cts +1 -1
  35. package/dist/data.d.mts +1 -1
  36. package/dist/data.mjs +2 -2
  37. package/dist/data.mjs.map +1 -1
  38. package/dist/{dictionary-BZ_zUPSy.cjs → dictionary-B1HhYGNO.cjs} +2 -2
  39. package/dist/{dictionary-D9CmvgCW.mjs → dictionary-CHzb3HU_.mjs} +3 -3
  40. package/dist/{dictionary-D9CmvgCW.mjs.map → dictionary-CHzb3HU_.mjs.map} +1 -1
  41. package/dist/dictionary.cjs +1 -1
  42. package/dist/dictionary.d.cts +1 -1
  43. package/dist/dictionary.d.mts +1 -1
  44. package/dist/dictionary.mjs +1 -1
  45. package/dist/index.cjs +9 -5
  46. package/dist/index.d.cts +5 -4
  47. package/dist/index.d.mts +5 -4
  48. package/dist/index.mjs +6 -5
  49. package/dist/types/club.d.cts +1 -1
  50. package/dist/types/club.d.mts +1 -1
  51. package/dist/types/data.cjs +2 -2
  52. package/dist/types/data.d.cts +2 -2
  53. package/dist/types/data.d.mts +2 -2
  54. package/dist/types/data.mjs +2 -2
  55. package/dist/types/index.cjs +2 -2
  56. package/dist/types/index.d.cts +4 -4
  57. package/dist/types/index.d.mts +4 -4
  58. package/dist/types/index.mjs +2 -2
  59. package/dist/types/year.d.cts +1 -1
  60. package/dist/types/year.d.mts +1 -1
  61. package/dist/{year-YIR3AeyZ.d.mts → year-BWTYD69L.d.cts} +1 -1
  62. package/dist/year-BWTYD69L.d.cts.map +1 -0
  63. package/dist/{year-uMcmlIjv.d.cts → year-DAScxhDV.d.mts} +1 -1
  64. package/dist/year-DAScxhDV.d.mts.map +1 -0
  65. package/dist/{years-BtLTGqsM.cjs → years-B5VOLk4F.cjs} +1 -1
  66. package/dist/{years-BD3YalWA.mjs → years-C6sv3Psl.mjs} +2 -2
  67. package/dist/{years-BD3YalWA.mjs.map → years-C6sv3Psl.mjs.map} +1 -1
  68. package/dist/years.cjs +1 -1
  69. package/dist/years.d.cts +1 -1
  70. package/dist/years.d.cts.map +1 -1
  71. package/dist/years.d.mts +1 -1
  72. package/dist/years.d.mts.map +1 -1
  73. package/dist/years.mjs +1 -1
  74. package/package.json +3 -3
  75. package/dist/club-CauHQ_x1.d.mts.map +0 -1
  76. package/dist/club-CmkWZe16.d.cts.map +0 -1
  77. package/dist/data-BifrD3Hs.d.cts.map +0 -1
  78. package/dist/data-PJ-fpqmg.mjs.map +0 -1
  79. package/dist/data-rDHl-GBR.d.mts.map +0 -1
  80. package/dist/year-YIR3AeyZ.d.mts.map +0 -1
  81. package/dist/year-uMcmlIjv.d.cts.map +0 -1
  82. /package/dist/{club-DMPe0Tct.mjs → club-CjHhgzsk.mjs} +0 -0
  83. /package/dist/{year-DlsIuRa9.mjs → year-s5YwjW7B.mjs} +0 -0
@@ -1,12 +1,12 @@
1
1
 
2
2
  //#region src/all-fields.ts
3
3
  function getGeneral(datum) {
4
- const { id, name, slug, fullname, year, license, category } = datum;
4
+ const { id, slug, name, short_name, year, license, category } = datum;
5
5
  return {
6
6
  id,
7
7
  name,
8
8
  slug,
9
- fullname,
9
+ short_name,
10
10
  year,
11
11
  license,
12
12
  category
@@ -1,4 +1,4 @@
1
- import { E as SeasonResultFields, S as PLFields, _ as ExtendedFinancialDatum, b as GeneralFields, f as BSFields, m as ExpenseFields, u as AttdFields, v as FinancialDatum, w as RevenueFields } from "./data-BifrD3Hs.cjs";
1
+ import { C as PLFields, D as SeasonResultFields, T as RevenueFields, _ as ExtendedFinancialDatum, f as BSFields, m as ExpenseFields, u as AttdFields, v as FinancialDatum, x as GeneralFields } from "./data-B8fHRnNH.cjs";
2
2
 
3
3
  //#region src/all-fields.d.ts
4
4
  declare function getGeneral<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in GeneralFields]: T[key] };
@@ -1,4 +1,4 @@
1
- import { E as SeasonResultFields, S as PLFields, _ as ExtendedFinancialDatum, b as GeneralFields, f as BSFields, m as ExpenseFields, u as AttdFields, v as FinancialDatum, w as RevenueFields } from "./data-rDHl-GBR.mjs";
1
+ import { C as PLFields, D as SeasonResultFields, T as RevenueFields, _ as ExtendedFinancialDatum, f as BSFields, m as ExpenseFields, u as AttdFields, v as FinancialDatum, x as GeneralFields } from "./data-BzqjPiVO.mjs";
2
2
 
3
3
  //#region src/all-fields.d.ts
4
4
  declare function getGeneral<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in GeneralFields]: T[key] };
@@ -1,11 +1,11 @@
1
1
  //#region src/all-fields.ts
2
2
  function getGeneral(datum) {
3
- const { id, name, slug, fullname, year, license, category } = datum;
3
+ const { id, slug, name, short_name, year, license, category } = datum;
4
4
  return {
5
5
  id,
6
6
  name,
7
7
  slug,
8
- fullname,
8
+ short_name,
9
9
  year,
10
10
  license,
11
11
  category
@@ -1 +1 @@
1
- {"version":3,"file":"all-fields.mjs","names":[],"sources":["../src/all-fields.ts"],"sourcesContent":["import type {\n FinancialDatum,\n ExtendedFinancialDatum,\n GeneralFields,\n SeasonResultFields,\n PLFields,\n BSFields,\n RevenueFields,\n ExpenseFields,\n AttdFields,\n} from \"./types/data\";\n\nexport function getGeneral<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in GeneralFields]: T[key];\n} {\n const { id, name, slug, fullname, year, license, category } = datum;\n return { id, name, slug, fullname, year, license, category };\n}\n\nexport function getSeasonResult<\n T extends FinancialDatum | ExtendedFinancialDatum,\n>(\n datum: T,\n): {\n [key in SeasonResultFields]: T[key];\n} {\n const { rank, points, ppg, elevation } = datum;\n return { rank, points, ppg, elevation };\n}\n\nexport function getPL<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in PLFields]: T[key];\n} {\n const {\n revenue,\n expense,\n op_profit,\n no_rev,\n no_exp,\n ordinary_profit,\n sp_rev,\n sp_exp,\n profit_before_tax,\n tax,\n profit,\n related_revenue,\n } = datum;\n return {\n revenue,\n expense,\n op_profit,\n no_rev,\n no_exp,\n ordinary_profit,\n sp_rev,\n sp_exp,\n profit_before_tax,\n tax,\n profit,\n related_revenue,\n };\n}\n\nexport function getBS<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in BSFields]: T[key];\n} {\n const {\n assets,\n curr_assets,\n fixed_assets,\n liabilities,\n curr_liabilities,\n fixed_liabilities,\n net_worth,\n capital_stock,\n capital_surplus,\n retained_earnings,\n profit,\n } = datum;\n return {\n assets,\n curr_assets,\n fixed_assets,\n liabilities,\n curr_liabilities,\n fixed_liabilities,\n net_worth,\n capital_stock,\n capital_surplus,\n retained_earnings,\n profit,\n };\n}\n\nexport function getRevenue<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in RevenueFields]: T[key];\n} {\n const {\n revenue,\n sponsor,\n ticket,\n broadcast,\n academy_rev,\n women_rev,\n goods_rev,\n transfer_rev,\n transfer_int_rev,\n transfer_dom_rev,\n other_revs,\n related_revenue,\n } = datum;\n return {\n revenue,\n sponsor,\n ticket,\n broadcast,\n academy_rev,\n women_rev,\n goods_rev,\n transfer_rev,\n transfer_int_rev,\n transfer_dom_rev,\n other_revs,\n related_revenue,\n };\n}\n\nexport function getExpense<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in ExpenseFields]: T[key];\n} {\n const {\n expense,\n general_exp,\n salary,\n transfer_exp,\n transfer_int_exp,\n transfer_dom_exp,\n game_exp,\n team_exp,\n academy_exp,\n women_exp,\n goods_exp,\n other_cost,\n manage_exp,\n sga,\n } = datum;\n return {\n expense,\n general_exp,\n salary,\n transfer_exp,\n transfer_int_exp,\n transfer_dom_exp,\n game_exp,\n team_exp,\n academy_exp,\n women_exp,\n goods_exp,\n other_cost,\n manage_exp,\n sga,\n };\n}\n\nexport function getAttd<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in AttdFields]: T[key];\n} {\n const {\n all_attd,\n all_games,\n average_attd,\n unit_price,\n league_attd,\n league_games,\n leaguecup_attd,\n leaguecup_games,\n po_attd,\n po_games,\n acl_attd,\n acl_games,\n second_attd,\n second_games,\n ticket,\n } = datum;\n return {\n all_attd,\n all_games,\n average_attd,\n unit_price,\n league_attd,\n league_games,\n leaguecup_attd,\n leaguecup_games,\n po_attd,\n po_games,\n acl_attd,\n acl_games,\n second_attd,\n second_games,\n ticket,\n };\n}\n"],"mappings":";AAYA,SAAgB,WACd,OAGA;CACA,MAAM,EAAE,IAAI,MAAM,MAAM,UAAU,MAAM,SAAS,aAAa;AAC9D,QAAO;EAAE;EAAI;EAAM;EAAM;EAAU;EAAM;EAAS;EAAU;;AAG9D,SAAgB,gBAGd,OAGA;CACA,MAAM,EAAE,MAAM,QAAQ,KAAK,cAAc;AACzC,QAAO;EAAE;EAAM;EAAQ;EAAK;EAAW;;AAGzC,SAAgB,MACd,OAGA;CACA,MAAM,EACJ,SACA,SACA,WACA,QACA,QACA,iBACA,QACA,QACA,mBACA,KACA,QACA,oBACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;;AAGH,SAAgB,MACd,OAGA;CACA,MAAM,EACJ,QACA,aACA,cACA,aACA,kBACA,mBACA,WACA,eACA,iBACA,mBACA,WACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;;AAGH,SAAgB,WACd,OAGA;CACA,MAAM,EACJ,SACA,SACA,QACA,WACA,aACA,WACA,WACA,cACA,kBACA,kBACA,YACA,oBACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;;AAGH,SAAgB,WACd,OAGA;CACA,MAAM,EACJ,SACA,aACA,QACA,cACA,kBACA,kBACA,UACA,UACA,aACA,WACA,WACA,YACA,YACA,QACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;;AAGH,SAAgB,QACd,OAGA;CACA,MAAM,EACJ,UACA,WACA,cACA,YACA,aACA,cACA,gBACA,iBACA,SACA,UACA,UACA,WACA,aACA,cACA,WACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD"}
1
+ {"version":3,"file":"all-fields.mjs","names":[],"sources":["../src/all-fields.ts"],"sourcesContent":["import type {\n FinancialDatum,\n ExtendedFinancialDatum,\n GeneralFields,\n SeasonResultFields,\n PLFields,\n BSFields,\n RevenueFields,\n ExpenseFields,\n AttdFields,\n} from \"./types/data\";\n\nexport function getGeneral<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in GeneralFields]: T[key];\n} {\n const { id, slug, name, short_name, year, license, category } = datum;\n return { id, name, slug, short_name, year, license, category };\n}\n\nexport function getSeasonResult<\n T extends FinancialDatum | ExtendedFinancialDatum,\n>(\n datum: T,\n): {\n [key in SeasonResultFields]: T[key];\n} {\n const { rank, points, ppg, elevation } = datum;\n return { rank, points, ppg, elevation };\n}\n\nexport function getPL<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in PLFields]: T[key];\n} {\n const {\n revenue,\n expense,\n op_profit,\n no_rev,\n no_exp,\n ordinary_profit,\n sp_rev,\n sp_exp,\n profit_before_tax,\n tax,\n profit,\n related_revenue,\n } = datum;\n return {\n revenue,\n expense,\n op_profit,\n no_rev,\n no_exp,\n ordinary_profit,\n sp_rev,\n sp_exp,\n profit_before_tax,\n tax,\n profit,\n related_revenue,\n };\n}\n\nexport function getBS<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in BSFields]: T[key];\n} {\n const {\n assets,\n curr_assets,\n fixed_assets,\n liabilities,\n curr_liabilities,\n fixed_liabilities,\n net_worth,\n capital_stock,\n capital_surplus,\n retained_earnings,\n profit,\n } = datum;\n return {\n assets,\n curr_assets,\n fixed_assets,\n liabilities,\n curr_liabilities,\n fixed_liabilities,\n net_worth,\n capital_stock,\n capital_surplus,\n retained_earnings,\n profit,\n };\n}\n\nexport function getRevenue<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in RevenueFields]: T[key];\n} {\n const {\n revenue,\n sponsor,\n ticket,\n broadcast,\n academy_rev,\n women_rev,\n goods_rev,\n transfer_rev,\n transfer_int_rev,\n transfer_dom_rev,\n other_revs,\n related_revenue,\n } = datum;\n return {\n revenue,\n sponsor,\n ticket,\n broadcast,\n academy_rev,\n women_rev,\n goods_rev,\n transfer_rev,\n transfer_int_rev,\n transfer_dom_rev,\n other_revs,\n related_revenue,\n };\n}\n\nexport function getExpense<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in ExpenseFields]: T[key];\n} {\n const {\n expense,\n general_exp,\n salary,\n transfer_exp,\n transfer_int_exp,\n transfer_dom_exp,\n game_exp,\n team_exp,\n academy_exp,\n women_exp,\n goods_exp,\n other_cost,\n manage_exp,\n sga,\n } = datum;\n return {\n expense,\n general_exp,\n salary,\n transfer_exp,\n transfer_int_exp,\n transfer_dom_exp,\n game_exp,\n team_exp,\n academy_exp,\n women_exp,\n goods_exp,\n other_cost,\n manage_exp,\n sga,\n };\n}\n\nexport function getAttd<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in AttdFields]: T[key];\n} {\n const {\n all_attd,\n all_games,\n average_attd,\n unit_price,\n league_attd,\n league_games,\n leaguecup_attd,\n leaguecup_games,\n po_attd,\n po_games,\n acl_attd,\n acl_games,\n second_attd,\n second_games,\n ticket,\n } = datum;\n return {\n all_attd,\n all_games,\n average_attd,\n unit_price,\n league_attd,\n league_games,\n leaguecup_attd,\n leaguecup_games,\n po_attd,\n po_games,\n acl_attd,\n acl_games,\n second_attd,\n second_games,\n ticket,\n };\n}\n"],"mappings":";AAYA,SAAgB,WACd,OAGA;CACA,MAAM,EAAE,IAAI,MAAM,MAAM,YAAY,MAAM,SAAS,aAAa;AAChE,QAAO;EAAE;EAAI;EAAM;EAAM;EAAY;EAAM;EAAS;EAAU;;AAGhE,SAAgB,gBAGd,OAGA;CACA,MAAM,EAAE,MAAM,QAAQ,KAAK,cAAc;AACzC,QAAO;EAAE;EAAM;EAAQ;EAAK;EAAW;;AAGzC,SAAgB,MACd,OAGA;CACA,MAAM,EACJ,SACA,SACA,WACA,QACA,QACA,iBACA,QACA,QACA,mBACA,KACA,QACA,oBACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;;AAGH,SAAgB,MACd,OAGA;CACA,MAAM,EACJ,QACA,aACA,cACA,aACA,kBACA,mBACA,WACA,eACA,iBACA,mBACA,WACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;;AAGH,SAAgB,WACd,OAGA;CACA,MAAM,EACJ,SACA,SACA,QACA,WACA,aACA,WACA,WACA,cACA,kBACA,kBACA,YACA,oBACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;;AAGH,SAAgB,WACd,OAGA;CACA,MAAM,EACJ,SACA,aACA,QACA,cACA,kBACA,kBACA,UACA,UACA,aACA,WACA,WACA,YACA,YACA,QACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;;AAGH,SAAgB,QACd,OAGA;CACA,MAAM,EACJ,UACA,WACA,cACA,YACA,aACA,cACA,gBACA,iBACA,SACA,UACA,UACA,WACA,aACA,cACA,WACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD"}
@@ -1,6 +1,7 @@
1
1
  //#region src/types/club.d.ts
2
2
  type ClubInfo = {
3
3
  id: string;
4
+ code: string;
4
5
  slug: string;
5
6
  name: string;
6
7
  fullname: string;
@@ -17,4 +18,4 @@ type ClubInfo = {
17
18
  };
18
19
  //#endregion
19
20
  export { ClubInfo as t };
20
- //# sourceMappingURL=club-CauHQ_x1.d.mts.map
21
+ //# sourceMappingURL=club-C65-tOmf.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"club-C65-tOmf.d.mts","names":[],"sources":["../src/types/club.ts"],"sourcesContent":[],"mappings":";KAAY,QAAA;EAAA,EAAA,EAAA,MAAA"}
@@ -1,6 +1,7 @@
1
1
  //#region src/types/club.d.ts
2
2
  type ClubInfo = {
3
3
  id: string;
4
+ code: string;
4
5
  slug: string;
5
6
  name: string;
6
7
  fullname: string;
@@ -17,4 +18,4 @@ type ClubInfo = {
17
18
  };
18
19
  //#endregion
19
20
  export { ClubInfo as t };
20
- //# sourceMappingURL=club-CmkWZe16.d.cts.map
21
+ //# sourceMappingURL=club-DKBTnD_Q.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"club-DKBTnD_Q.d.cts","names":[],"sources":["../src/types/club.ts"],"sourcesContent":[],"mappings":";KAAY,QAAA;EAAA,EAAA,EAAA,MAAA"}
@@ -0,0 +1,47 @@
1
+
2
+ //#region src/club-dictionary.ts
3
+ const clubInfoDictionary = {
4
+ id: "id",
5
+ code: "code",
6
+ slug: "slug",
7
+ name: "呼称",
8
+ fullname: "正式名称",
9
+ short_name: "略称",
10
+ company: "法人名",
11
+ category: "所属カテゴリ",
12
+ hometown: "ホームタウン",
13
+ area: "活動エリア",
14
+ period: "決算期",
15
+ website: "公式サイト",
16
+ settlement: "決算情報",
17
+ relatedCompanies: "関連する法人",
18
+ annotation: "注釈"
19
+ };
20
+ const has = Object.prototype.hasOwnProperty;
21
+ function isDirectoryKey(key) {
22
+ return has.call(clubInfoDictionary, key);
23
+ }
24
+ /**
25
+ * プロパティ名から日本語ラベルを取得する
26
+ * @param key FinancialDatum のプロパティ名
27
+ * @returns 日本語ラベル。未定義のキーの場合はキー名をそのまま返す
28
+ */
29
+ function getClubInfoLabel(key) {
30
+ if (isDirectoryKey(key)) return clubInfoDictionary[key];
31
+ return key;
32
+ }
33
+ /**
34
+ * プロパティ名から日本語ラベルを取得する(オプションつき)
35
+ * @param key FinancialDatum のプロパティ名
36
+ * @param options fallback や後処理のオプション
37
+ * @returns 日本語ラベル
38
+ */
39
+ function getClubInfoLabelWithOptions(key, options) {
40
+ const label = clubInfoDictionary[key] ?? options?.fallback ?? key;
41
+ return options?.transform ? options.transform(label) : label;
42
+ }
43
+
44
+ //#endregion
45
+ exports.clubInfoDictionary = clubInfoDictionary;
46
+ exports.getClubInfoLabel = getClubInfoLabel;
47
+ exports.getClubInfoLabelWithOptions = getClubInfoLabelWithOptions;
@@ -0,0 +1,26 @@
1
+ import { t as ClubInfo } from "./club-DKBTnD_Q.cjs";
2
+ import "./types/index.cjs";
3
+
4
+ //#region src/club-dictionary.d.ts
5
+ declare const clubInfoDictionary: Record<keyof ClubInfo, string>;
6
+ /**
7
+ * プロパティ名から日本語ラベルを取得する
8
+ * @param key FinancialDatum のプロパティ名
9
+ * @returns 日本語ラベル。未定義のキーの場合はキー名をそのまま返す
10
+ */
11
+ declare function getClubInfoLabel(key: string): string;
12
+ /**
13
+ * プロパティ名から日本語ラベルを取得する(オプションつき)
14
+ * @param key FinancialDatum のプロパティ名
15
+ * @param options fallback や後処理のオプション
16
+ * @returns 日本語ラベル
17
+ */
18
+ declare function getClubInfoLabelWithOptions(key: keyof ClubInfo, options?: {
19
+ /** キーが未定義の場合のフォールバック。省略時はキー名を返す */
20
+ fallback?: string;
21
+ /** ラベルに対する後処理 */
22
+ transform?: (label: string) => string;
23
+ }): string;
24
+ //#endregion
25
+ export { clubInfoDictionary, getClubInfoLabel, getClubInfoLabelWithOptions };
26
+ //# sourceMappingURL=club-dictionary.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"club-dictionary.d.cts","names":[],"sources":["../src/club-dictionary.ts"],"sourcesContent":[],"mappings":";;;;cAEa,oBAAoB,aAAa;;;AAA9C;AA6BA;AAWA;iBAXgB,gBAAA;;;;;;;iBAWA,2BAAA,YACH"}
@@ -0,0 +1,26 @@
1
+ import { t as ClubInfo } from "./club-C65-tOmf.mjs";
2
+ import "./types/index.mjs";
3
+
4
+ //#region src/club-dictionary.d.ts
5
+ declare const clubInfoDictionary: Record<keyof ClubInfo, string>;
6
+ /**
7
+ * プロパティ名から日本語ラベルを取得する
8
+ * @param key FinancialDatum のプロパティ名
9
+ * @returns 日本語ラベル。未定義のキーの場合はキー名をそのまま返す
10
+ */
11
+ declare function getClubInfoLabel(key: string): string;
12
+ /**
13
+ * プロパティ名から日本語ラベルを取得する(オプションつき)
14
+ * @param key FinancialDatum のプロパティ名
15
+ * @param options fallback や後処理のオプション
16
+ * @returns 日本語ラベル
17
+ */
18
+ declare function getClubInfoLabelWithOptions(key: keyof ClubInfo, options?: {
19
+ /** キーが未定義の場合のフォールバック。省略時はキー名を返す */
20
+ fallback?: string;
21
+ /** ラベルに対する後処理 */
22
+ transform?: (label: string) => string;
23
+ }): string;
24
+ //#endregion
25
+ export { clubInfoDictionary, getClubInfoLabel, getClubInfoLabelWithOptions };
26
+ //# sourceMappingURL=club-dictionary.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"club-dictionary.d.mts","names":[],"sources":["../src/club-dictionary.ts"],"sourcesContent":[],"mappings":";;;;cAEa,oBAAoB,aAAa;;;AAA9C;AA6BA;AAWA;iBAXgB,gBAAA;;;;;;;iBAWA,2BAAA,YACH"}
@@ -0,0 +1,45 @@
1
+ //#region src/club-dictionary.ts
2
+ const clubInfoDictionary = {
3
+ id: "id",
4
+ code: "code",
5
+ slug: "slug",
6
+ name: "呼称",
7
+ fullname: "正式名称",
8
+ short_name: "略称",
9
+ company: "法人名",
10
+ category: "所属カテゴリ",
11
+ hometown: "ホームタウン",
12
+ area: "活動エリア",
13
+ period: "決算期",
14
+ website: "公式サイト",
15
+ settlement: "決算情報",
16
+ relatedCompanies: "関連する法人",
17
+ annotation: "注釈"
18
+ };
19
+ const has = Object.prototype.hasOwnProperty;
20
+ function isDirectoryKey(key) {
21
+ return has.call(clubInfoDictionary, key);
22
+ }
23
+ /**
24
+ * プロパティ名から日本語ラベルを取得する
25
+ * @param key FinancialDatum のプロパティ名
26
+ * @returns 日本語ラベル。未定義のキーの場合はキー名をそのまま返す
27
+ */
28
+ function getClubInfoLabel(key) {
29
+ if (isDirectoryKey(key)) return clubInfoDictionary[key];
30
+ return key;
31
+ }
32
+ /**
33
+ * プロパティ名から日本語ラベルを取得する(オプションつき)
34
+ * @param key FinancialDatum のプロパティ名
35
+ * @param options fallback や後処理のオプション
36
+ * @returns 日本語ラベル
37
+ */
38
+ function getClubInfoLabelWithOptions(key, options) {
39
+ const label = clubInfoDictionary[key] ?? options?.fallback ?? key;
40
+ return options?.transform ? options.transform(label) : label;
41
+ }
42
+
43
+ //#endregion
44
+ export { clubInfoDictionary, getClubInfoLabel, getClubInfoLabelWithOptions };
45
+ //# sourceMappingURL=club-dictionary.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"club-dictionary.mjs","names":["clubInfoDictionary: Record<keyof ClubInfo, string>"],"sources":["../src/club-dictionary.ts"],"sourcesContent":["import type { ClubInfo } from \"./types\";\n\nexport const clubInfoDictionary: Record<keyof ClubInfo, string> = {\n id: \"id\",\n code: \"code\",\n slug: \"slug\",\n name: \"呼称\",\n fullname: \"正式名称\",\n short_name: \"略称\",\n company: \"法人名\",\n category: \"所属カテゴリ\",\n hometown: \"ホームタウン\",\n area: \"活動エリア\",\n period: \"決算期\",\n website: \"公式サイト\",\n settlement: \"決算情報\",\n relatedCompanies: \"関連する法人\",\n annotation: \"注釈\",\n};\n\nconst has = Object.prototype.hasOwnProperty;\n\nfunction isDirectoryKey(key: string): key is keyof ClubInfo {\n return has.call(clubInfoDictionary, key);\n}\n\n/**\n * プロパティ名から日本語ラベルを取得する\n * @param key FinancialDatum のプロパティ名\n * @returns 日本語ラベル。未定義のキーの場合はキー名をそのまま返す\n */\nexport function getClubInfoLabel(key: string): string {\n if (isDirectoryKey(key)) return clubInfoDictionary[key];\n return key;\n}\n\n/**\n * プロパティ名から日本語ラベルを取得する(オプションつき)\n * @param key FinancialDatum のプロパティ名\n * @param options fallback や後処理のオプション\n * @returns 日本語ラベル\n */\nexport function getClubInfoLabelWithOptions(\n key: keyof ClubInfo,\n options?: {\n /** キーが未定義の場合のフォールバック。省略時はキー名を返す */\n fallback?: string;\n /** ラベルに対する後処理 */\n transform?: (label: string) => string;\n },\n): string {\n const label = clubInfoDictionary[key] ?? options?.fallback ?? key;\n return options?.transform ? options.transform(label) : label;\n}\n"],"mappings":";AAEA,MAAaA,qBAAqD;CAChE,IAAI;CACJ,MAAM;CACN,MAAM;CACN,MAAM;CACN,UAAU;CACV,YAAY;CACZ,SAAS;CACT,UAAU;CACV,UAAU;CACV,MAAM;CACN,QAAQ;CACR,SAAS;CACT,YAAY;CACZ,kBAAkB;CAClB,YAAY;CACb;AAED,MAAM,MAAM,OAAO,UAAU;AAE7B,SAAS,eAAe,KAAoC;AAC1D,QAAO,IAAI,KAAK,oBAAoB,IAAI;;;;;;;AAQ1C,SAAgB,iBAAiB,KAAqB;AACpD,KAAI,eAAe,IAAI,CAAE,QAAO,mBAAmB;AACnD,QAAO;;;;;;;;AAST,SAAgB,4BACd,KACA,SAMQ;CACR,MAAM,QAAQ,mBAAmB,QAAQ,SAAS,YAAY;AAC9D,QAAO,SAAS,YAAY,QAAQ,UAAU,MAAM,GAAG"}