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

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 (68) 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-C65-tOmf.d.mts → club-XBakdLnC.d.mts} +1 -2
  7. package/dist/club-XBakdLnC.d.mts.map +1 -0
  8. package/dist/club-dictionary.cjs +1 -2
  9. package/dist/club-dictionary.d.cts +1 -1
  10. package/dist/club-dictionary.d.cts.map +1 -1
  11. package/dist/club-dictionary.d.mts +1 -1
  12. package/dist/club-dictionary.d.mts.map +1 -1
  13. package/dist/club-dictionary.mjs +1 -2
  14. package/dist/club-dictionary.mjs.map +1 -1
  15. package/dist/{club-DKBTnD_Q.d.cts → club-ezWWFvf8.d.cts} +1 -2
  16. package/dist/club-ezWWFvf8.d.cts.map +1 -0
  17. package/dist/{clubs-BMTfABm1.cjs → clubs-BoJOsnoJ.cjs} +77 -127
  18. package/dist/{clubs-ql57Bx32.mjs → clubs-CWrmJ-o7.mjs} +73 -129
  19. package/dist/{clubs-ql57Bx32.mjs.map → clubs-CWrmJ-o7.mjs.map} +1 -1
  20. package/dist/clubs.cjs +2 -1
  21. package/dist/clubs.d.cts +7 -2
  22. package/dist/clubs.d.cts.map +1 -1
  23. package/dist/clubs.d.mts +7 -2
  24. package/dist/clubs.d.mts.map +1 -1
  25. package/dist/clubs.mjs +2 -2
  26. package/dist/{data-B8fHRnNH.d.cts → data-8rg9TyXy.d.mts} +5 -5
  27. package/dist/{data-B8fHRnNH.d.cts.map → data-8rg9TyXy.d.mts.map} +1 -1
  28. package/dist/{data-DrLXADPh.cjs → data-BSgR8Eao.cjs} +1 -1
  29. package/dist/{data-BzqjPiVO.d.mts → data-CknytKa6.d.cts} +5 -5
  30. package/dist/{data-BzqjPiVO.d.mts.map → data-CknytKa6.d.cts.map} +1 -1
  31. package/dist/{data-C_cvAEea.mjs → data-DQ33qXdV.mjs} +2 -2
  32. package/dist/data-DQ33qXdV.mjs.map +1 -0
  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-CHzb3HU_.mjs.map +1 -1
  39. package/dist/dictionary.d.cts +2 -2
  40. package/dist/dictionary.d.mts +2 -2
  41. package/dist/index.cjs +6 -4
  42. package/dist/index.d.cts +5 -5
  43. package/dist/index.d.mts +5 -5
  44. package/dist/index.mjs +4 -4
  45. package/dist/types/club.d.cts +1 -1
  46. package/dist/types/club.d.mts +1 -1
  47. package/dist/types/data.cjs +1 -1
  48. package/dist/types/data.d.cts +1 -1
  49. package/dist/types/data.d.mts +1 -1
  50. package/dist/types/data.mjs +1 -1
  51. package/dist/types/index.cjs +1 -1
  52. package/dist/types/index.d.cts +2 -2
  53. package/dist/types/index.d.mts +2 -2
  54. package/dist/types/index.mjs +1 -1
  55. package/dist/{years-B5VOLk4F.cjs → years-B04BT1Yh.mjs} +5 -7
  56. package/dist/years-B04BT1Yh.mjs.map +1 -0
  57. package/dist/{years-C6sv3Psl.mjs → years-BUUrr09E.cjs} +16 -2
  58. package/dist/years.cjs +3 -2
  59. package/dist/years.d.cts +2 -1
  60. package/dist/years.d.cts.map +1 -1
  61. package/dist/years.d.mts +2 -1
  62. package/dist/years.d.mts.map +1 -1
  63. package/dist/years.mjs +2 -2
  64. package/package.json +3 -3
  65. package/dist/club-C65-tOmf.d.mts.map +0 -1
  66. package/dist/club-DKBTnD_Q.d.cts.map +0 -1
  67. package/dist/data-C_cvAEea.mjs.map +0 -1
  68. package/dist/years-C6sv3Psl.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"clubs-ql57Bx32.mjs","names":["clubs"],"sources":["../src/data/clubs.json","../src/clubs.ts"],"sourcesContent":["","import type { ClubInfo } from \"./types\";\nimport clubs from \"./data/clubs.json\";\n\nexport function getAllClubs() {\n const allClubs = clubs;\n return [...allClubs] as ClubInfo[];\n}\n\nexport function getClubBySlug(slug: string) {\n const clubs = getAllClubs();\n return clubs.find((club) => club.slug === slug);\n}\n\nexport function getClubsByCategory(category: string) {\n const clubs = getAllClubs();\n return clubs.filter((club) =>\n [\"J1\", \"J2\", \"J3\"].includes(category)\n ? club.category === category\n : [\"JFL\"].includes(club.category),\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACGA,SAAgB,cAAc;AAE5B,QAAO,CAAC,GADSA,cACG;;AAGtB,SAAgB,cAAc,MAAc;AAE1C,QADc,aAAa,CACd,MAAM,SAAS,KAAK,SAAS,KAAK;;AAGjD,SAAgB,mBAAmB,UAAkB;AAEnD,QADc,aAAa,CACd,QAAQ,SACnB;EAAC;EAAM;EAAM;EAAK,CAAC,SAAS,SAAS,GACjC,KAAK,aAAa,WAClB,CAAC,MAAM,CAAC,SAAS,KAAK,SAAS,CACpC"}
1
+ {"version":3,"file":"clubs-CWrmJ-o7.mjs","names":["clubs"],"sources":["../src/data/clubs.json","../src/clubs.ts"],"sourcesContent":["","import type { ClubInfo } from \"./types\";\nimport clubs from \"./data/clubs.json\";\n\nexport function getAllClubs() {\n const allClubs = clubs;\n return [...allClubs] as ClubInfo[];\n}\n/**\n * @deprecated\n * use `getClubById`\n */\nexport function getClubBySlug(slug: string) {\n const clubs = getAllClubs();\n return clubs.find((club) => club.id === slug);\n}\n\nexport function getClubById(id: string) {\n const clubs = getAllClubs();\n return clubs.find((club) => club.id === id);\n}\n\nexport function getClubsByCategory(category: string) {\n const clubs = getAllClubs();\n return clubs.filter((club) =>\n [\"J1\", \"J2\", \"J3\"].includes(category)\n ? club.category === category\n : [\"JFL\"].includes(club.category),\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AM;EAAK,CAAC,SAAS,SAAS,GACjC,KAAK,aAAa,WAClB,CAAC,MAAM,CAAC,SAAS,KAAK,SAAS,CACpC"}
package/dist/clubs.cjs CHANGED
@@ -1,5 +1,6 @@
1
- const require_clubs = require('./clubs-BMTfABm1.cjs');
1
+ const require_clubs = require('./clubs-BoJOsnoJ.cjs');
2
2
 
3
3
  exports.getAllClubs = require_clubs.getAllClubs;
4
+ exports.getClubById = require_clubs.getClubById;
4
5
  exports.getClubBySlug = require_clubs.getClubBySlug;
5
6
  exports.getClubsByCategory = require_clubs.getClubsByCategory;
package/dist/clubs.d.cts CHANGED
@@ -1,10 +1,15 @@
1
- import { t as ClubInfo } from "./club-DKBTnD_Q.cjs";
1
+ import { t as ClubInfo } from "./club-ezWWFvf8.cjs";
2
2
  import "./types/index.cjs";
3
3
 
4
4
  //#region src/clubs.d.ts
5
5
  declare function getAllClubs(): ClubInfo[];
6
+ /**
7
+ * @deprecated
8
+ * use `getClubById`
9
+ */
6
10
  declare function getClubBySlug(slug: string): ClubInfo | undefined;
11
+ declare function getClubById(id: string): ClubInfo | undefined;
7
12
  declare function getClubsByCategory(category: string): ClubInfo[];
8
13
  //#endregion
9
- export { getAllClubs, getClubBySlug, getClubsByCategory };
14
+ export { getAllClubs, getClubById, getClubBySlug, getClubsByCategory };
10
15
  //# sourceMappingURL=clubs.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"clubs.d.cts","names":[],"sources":["../src/clubs.ts"],"sourcesContent":[],"mappings":";;;;iBAGgB,WAAA,CAAA,GAEU;iBAGV,aAAA,gBAA0B;iBAK1B,kBAAA,oBAAmC"}
1
+ {"version":3,"file":"clubs.d.cts","names":[],"sources":["../src/clubs.ts"],"sourcesContent":[],"mappings":";;;;iBAGgB,WAAA,CAAA,GAEU;;;AAF1B;AAQA;AAKgB,iBALA,aAAA,CAKsB,IAAA,EAAA,MAAA,CAAA,EALI,QAKJ,GAAA,SAAA;AAKtB,iBALA,WAAA,CAKkB,EAAiB,EAAA,MAAA,CAAA,EALb,QAKa,GAAA,SAAA;iBAAnC,kBAAA,oBAAmC"}
package/dist/clubs.d.mts CHANGED
@@ -1,10 +1,15 @@
1
- import { t as ClubInfo } from "./club-C65-tOmf.mjs";
1
+ import { t as ClubInfo } from "./club-XBakdLnC.mjs";
2
2
  import "./types/index.mjs";
3
3
 
4
4
  //#region src/clubs.d.ts
5
5
  declare function getAllClubs(): ClubInfo[];
6
+ /**
7
+ * @deprecated
8
+ * use `getClubById`
9
+ */
6
10
  declare function getClubBySlug(slug: string): ClubInfo | undefined;
11
+ declare function getClubById(id: string): ClubInfo | undefined;
7
12
  declare function getClubsByCategory(category: string): ClubInfo[];
8
13
  //#endregion
9
- export { getAllClubs, getClubBySlug, getClubsByCategory };
14
+ export { getAllClubs, getClubById, getClubBySlug, getClubsByCategory };
10
15
  //# sourceMappingURL=clubs.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"clubs.d.mts","names":[],"sources":["../src/clubs.ts"],"sourcesContent":[],"mappings":";;;;iBAGgB,WAAA,CAAA,GAEU;iBAGV,aAAA,gBAA0B;iBAK1B,kBAAA,oBAAmC"}
1
+ {"version":3,"file":"clubs.d.mts","names":[],"sources":["../src/clubs.ts"],"sourcesContent":[],"mappings":";;;;iBAGgB,WAAA,CAAA,GAEU;;;AAF1B;AAQA;AAKgB,iBALA,aAAA,CAKsB,IAAA,EAAA,MAAA,CAAA,EALI,QAKJ,GAAA,SAAA;AAKtB,iBALA,WAAA,CAKkB,EAAiB,EAAA,MAAA,CAAA,EALb,QAKa,GAAA,SAAA;iBAAnC,kBAAA,oBAAmC"}
package/dist/clubs.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { n as getClubBySlug, r as getClubsByCategory, t as getAllClubs } from "./clubs-ql57Bx32.mjs";
1
+ import { i as getClubsByCategory, n as getClubById, r as getClubBySlug, t as getAllClubs } from "./clubs-CWrmJ-o7.mjs";
2
2
 
3
- export { getAllClubs, getClubBySlug, getClubsByCategory };
3
+ export { getAllClubs, getClubById, getClubBySlug, getClubsByCategory };
@@ -1,9 +1,9 @@
1
1
  //#region src/types/data.d.ts
2
- declare const AllGeneralFields: readonly ["id", "slug", "name", "short_name", "year", "category", "license"];
2
+ declare const AllGeneralFields: readonly ["id", "clubId", "name", "short_name", "year", "category", "license"];
3
3
  type GeneralFields = (typeof AllGeneralFields)[number];
4
4
  type General = {
5
5
  id: string;
6
- slug: string;
6
+ clubId: string;
7
7
  /**
8
8
  * 略称
9
9
  * name => short_name
@@ -144,7 +144,7 @@ declare const AllAttdFields: readonly ["ticket", "all_attd", "all_games", "avera
144
144
  type AttdFields = (typeof AllAttdFields)[number];
145
145
  type Attd = {
146
146
  /** 入場料収入 */
147
- ticket: number | null;
147
+ ticket?: number | null;
148
148
  /** リーグ戦入場者数 */
149
149
  league_attd: number;
150
150
  /** リーグ戦ホーム試合数 */
@@ -174,7 +174,7 @@ type Attd = {
174
174
  /** 客単価 */
175
175
  unit_price?: number | null;
176
176
  };
177
- declare const AllFinancialDatumFields: ("id" | "slug" | "name" | "short_name" | "year" | "category" | "license" | "rank" | "points" | "ppg" | "elevation" | "revenue" | "expense" | "op_profit" | "no_rev" | "no_exp" | "ordinary_profit" | "sp_rev" | "sp_exp" | "profit_before_tax" | "tax" | "profit" | "related_revenue" | "assets" | "curr_assets" | "fixed_assets" | "liabilities" | "curr_liabilities" | "fixed_liabilities" | "net_worth" | "capital_stock" | "capital_surplus" | "retained_earnings" | "sponsor" | "ticket" | "broadcast" | "academy_rev" | "women_rev" | "goods_rev" | "transfer_rev" | "transfer_int_rev" | "transfer_dom_rev" | "other_revs" | "salary" | "transfer_exp" | "transfer_int_exp" | "transfer_dom_exp" | "manage_exp" | "general_exp" | "game_exp" | "team_exp" | "academy_exp" | "women_exp" | "goods_exp" | "other_cost" | "sga" | "all_attd" | "all_games" | "average_attd" | "unit_price" | "league_attd" | "league_games" | "leaguecup_attd" | "leaguecup_games" | "po_attd" | "po_games" | "acl_attd" | "acl_games" | "second_attd" | "second_games")[];
177
+ declare const AllFinancialDatumFields: ("id" | "name" | "short_name" | "category" | "clubId" | "year" | "license" | "rank" | "points" | "ppg" | "elevation" | "revenue" | "expense" | "op_profit" | "no_rev" | "no_exp" | "ordinary_profit" | "sp_rev" | "sp_exp" | "profit_before_tax" | "tax" | "profit" | "related_revenue" | "assets" | "curr_assets" | "fixed_assets" | "liabilities" | "curr_liabilities" | "fixed_liabilities" | "net_worth" | "capital_stock" | "capital_surplus" | "retained_earnings" | "sponsor" | "ticket" | "broadcast" | "academy_rev" | "women_rev" | "goods_rev" | "transfer_rev" | "transfer_int_rev" | "transfer_dom_rev" | "other_revs" | "salary" | "transfer_exp" | "transfer_int_exp" | "transfer_dom_exp" | "manage_exp" | "general_exp" | "game_exp" | "team_exp" | "academy_exp" | "women_exp" | "goods_exp" | "other_cost" | "sga" | "all_attd" | "all_games" | "average_attd" | "unit_price" | "league_attd" | "league_games" | "leaguecup_attd" | "leaguecup_games" | "po_attd" | "po_games" | "acl_attd" | "acl_games" | "second_attd" | "second_games")[];
178
178
  type FinancialDatum = General & SeasonResult & PL & BS & Revenue & Expense & Attd;
179
179
  type FinancialDatumFields = keyof FinancialDatum;
180
180
  /**
@@ -191,4 +191,4 @@ type Extended<T extends Partial<FinancialDatum>> = { [key in keyof T]: ExtendedD
191
191
  type ExtendedFinancialDatum = Extended<FinancialDatum>;
192
192
  //#endregion
193
193
  export { PLFields as C, SeasonResultFields as D, SeasonResult as E, SortableFields as O, PL as S, RevenueFields as T, ExtendedFinancialDatum as _, AllGeneralFields as a, General as b, AllSeasonResultFields as c, BS as d, BSFields as f, ExtendedDataLike as g, Extended as h, AllFinancialDatumFields as i, SortableKeys as k, Attd as l, ExpenseFields as m, AllBSFields as n, AllPLFields as o, Expense as p, AllExpenseFields as r, AllRevenueFields as s, AllAttdFields as t, AttdFields as u, FinancialDatum as v, Revenue as w, GeneralFields as x, FinancialDatumFields as y };
194
- //# sourceMappingURL=data-B8fHRnNH.d.cts.map
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AAgB,MAAA,GAAA,IAC1B;EAOU;EAA2B,GAAA,CAAA,EAAA,MAAA,GAAA,IAAA;EAAR;EACf,MAAA,EAAA,MAAA;EAAqB;EAAE,eAAA,CAAA,EAAA,MAAA,GAAA,IAAA;CAAnB;AAAgB,cAtOvB,WAsOuB,EAAA,SAAA,CAAA,QAAA,EAAA,aAAA,EAAA,cAAA,EAAA,aAAA,EAAA,kBAAA,EAAA,mBAAA,EAAA,WAAA,EAAA,eAAA,EAAA,iBAAA,EAAA,mBAAA,EAAA,QAAA,CAAA;AAGxB,KA5NA,QAAA,GA4NA,CAAA,OA5NmB,WA4Ne,CAAA,CAAA,MAAA,CAAA;KA3NlC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;cAyBC;KAcD,aAAA,WAAwB;KACxB,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cA2BC;KAgBD,aAAA,WAAwB;KACxB,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+BC;KAiBD,UAAA,WAAqB;KACrB,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiCC;KAYD,cAAA,GAAiB,UAC3B,eACA,KACA,KACA,UACA,UACA;KACU,oBAAA,SAA6B;;;;;KAM7B,YAAA,YAER,WACA,WACA,gBACA,gBACA;KAEQ,cAAA,YAER,WACA,WACA,gBACA,gBACA;KAEQ,2DACV;SAGa;;;KAIH,mBAAmB,QAAQ,mCACvB,IAAI,iBAAiB,EAAE;KAG3B,sBAAA,GAAyB,SAAS"}
@@ -2,7 +2,7 @@
2
2
  //#region src/types/data.ts
3
3
  const AllGeneralFields = [
4
4
  "id",
5
- "slug",
5
+ "clubId",
6
6
  "name",
7
7
  "short_name",
8
8
  "year",
@@ -1,9 +1,9 @@
1
1
  //#region src/types/data.d.ts
2
- declare const AllGeneralFields: readonly ["id", "slug", "name", "short_name", "year", "category", "license"];
2
+ declare const AllGeneralFields: readonly ["id", "clubId", "name", "short_name", "year", "category", "license"];
3
3
  type GeneralFields = (typeof AllGeneralFields)[number];
4
4
  type General = {
5
5
  id: string;
6
- slug: string;
6
+ clubId: string;
7
7
  /**
8
8
  * 略称
9
9
  * name => short_name
@@ -144,7 +144,7 @@ declare const AllAttdFields: readonly ["ticket", "all_attd", "all_games", "avera
144
144
  type AttdFields = (typeof AllAttdFields)[number];
145
145
  type Attd = {
146
146
  /** 入場料収入 */
147
- ticket: number | null;
147
+ ticket?: number | null;
148
148
  /** リーグ戦入場者数 */
149
149
  league_attd: number;
150
150
  /** リーグ戦ホーム試合数 */
@@ -174,7 +174,7 @@ type Attd = {
174
174
  /** 客単価 */
175
175
  unit_price?: number | null;
176
176
  };
177
- declare const AllFinancialDatumFields: ("id" | "slug" | "name" | "short_name" | "year" | "category" | "license" | "rank" | "points" | "ppg" | "elevation" | "revenue" | "expense" | "op_profit" | "no_rev" | "no_exp" | "ordinary_profit" | "sp_rev" | "sp_exp" | "profit_before_tax" | "tax" | "profit" | "related_revenue" | "assets" | "curr_assets" | "fixed_assets" | "liabilities" | "curr_liabilities" | "fixed_liabilities" | "net_worth" | "capital_stock" | "capital_surplus" | "retained_earnings" | "sponsor" | "ticket" | "broadcast" | "academy_rev" | "women_rev" | "goods_rev" | "transfer_rev" | "transfer_int_rev" | "transfer_dom_rev" | "other_revs" | "salary" | "transfer_exp" | "transfer_int_exp" | "transfer_dom_exp" | "manage_exp" | "general_exp" | "game_exp" | "team_exp" | "academy_exp" | "women_exp" | "goods_exp" | "other_cost" | "sga" | "all_attd" | "all_games" | "average_attd" | "unit_price" | "league_attd" | "league_games" | "leaguecup_attd" | "leaguecup_games" | "po_attd" | "po_games" | "acl_attd" | "acl_games" | "second_attd" | "second_games")[];
177
+ declare const AllFinancialDatumFields: ("id" | "name" | "short_name" | "category" | "clubId" | "year" | "license" | "rank" | "points" | "ppg" | "elevation" | "revenue" | "expense" | "op_profit" | "no_rev" | "no_exp" | "ordinary_profit" | "sp_rev" | "sp_exp" | "profit_before_tax" | "tax" | "profit" | "related_revenue" | "assets" | "curr_assets" | "fixed_assets" | "liabilities" | "curr_liabilities" | "fixed_liabilities" | "net_worth" | "capital_stock" | "capital_surplus" | "retained_earnings" | "sponsor" | "ticket" | "broadcast" | "academy_rev" | "women_rev" | "goods_rev" | "transfer_rev" | "transfer_int_rev" | "transfer_dom_rev" | "other_revs" | "salary" | "transfer_exp" | "transfer_int_exp" | "transfer_dom_exp" | "manage_exp" | "general_exp" | "game_exp" | "team_exp" | "academy_exp" | "women_exp" | "goods_exp" | "other_cost" | "sga" | "all_attd" | "all_games" | "average_attd" | "unit_price" | "league_attd" | "league_games" | "leaguecup_attd" | "leaguecup_games" | "po_attd" | "po_games" | "acl_attd" | "acl_games" | "second_attd" | "second_games")[];
178
178
  type FinancialDatum = General & SeasonResult & PL & BS & Revenue & Expense & Attd;
179
179
  type FinancialDatumFields = keyof FinancialDatum;
180
180
  /**
@@ -191,4 +191,4 @@ type Extended<T extends Partial<FinancialDatum>> = { [key in keyof T]: ExtendedD
191
191
  type ExtendedFinancialDatum = Extended<FinancialDatum>;
192
192
  //#endregion
193
193
  export { PLFields as C, SeasonResultFields as D, SeasonResult as E, SortableFields as O, PL as S, RevenueFields as T, ExtendedFinancialDatum as _, AllGeneralFields as a, General as b, AllSeasonResultFields as c, BS as d, BSFields as f, ExtendedDataLike as g, Extended as h, AllFinancialDatumFields as i, SortableKeys as k, Attd as l, ExpenseFields as m, AllBSFields as n, AllPLFields as o, Expense as p, AllExpenseFields as r, AllRevenueFields as s, AllAttdFields as t, AttdFields as u, FinancialDatum as v, Revenue as w, GeneralFields as x, FinancialDatumFields as y };
194
- //# sourceMappingURL=data-BzqjPiVO.d.mts.map
194
+ //# sourceMappingURL=data-CknytKa6.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-BzqjPiVO.d.mts","names":[],"sources":["../src/types/data.ts"],"sourcesContent":[],"mappings":";cAAa;AAAA,KASD,aAAA,GADF,CAAA,OAC0B,gBAD1B,CAAA,CAAA,MAAA,CAAA;AACE,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,aAAA,EAAA,cAAA,EAAA,aAAA,EAAA,kBAAA,EAAA,mBAAA,EAAA,WAAA,EAAA,eAAA,EAAA,iBAAA,EAAA,mBAAA,EAAA,QAAA,CAAA;AAGxB,KA5NA,QAAA,GA4NA,CAAA,OA5NmB,WA4Ne,CAAA,CAAA,MAAA,CAAA;KA3NlC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;cAyBC;KAcD,aAAA,WAAwB;KACxB,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cA2BC;KAgBD,aAAA,WAAwB;KACxB,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+BC;KAiBD,UAAA,WAAqB;KACrB,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiCC;KAYD,cAAA,GAAiB,UAC3B,eACA,KACA,KACA,UACA,UACA;KACU,oBAAA,SAA6B;;;;;KAM7B,YAAA,YAER,WACA,WACA,gBACA,gBACA;KAEQ,cAAA,YAER,WACA,WACA,gBACA,gBACA;KAEQ,2DACV;SAGa;;;KAIH,mBAAmB,QAAQ,mCACvB,IAAI,iBAAiB,EAAE;KAG3B,sBAAA,GAAyB,SAAS"}
@@ -1,7 +1,7 @@
1
1
  //#region src/types/data.ts
2
2
  const AllGeneralFields = [
3
3
  "id",
4
- "slug",
4
+ "clubId",
5
5
  "name",
6
6
  "short_name",
7
7
  "year",
@@ -100,4 +100,4 @@ const AllFinancialDatumFields = Array.from(new Set([
100
100
 
101
101
  //#endregion
102
102
  export { AllGeneralFields as a, AllSeasonResultFields as c, AllFinancialDatumFields as i, AllBSFields as n, AllPLFields as o, AllExpenseFields as r, AllRevenueFields as s, AllAttdFields as t };
103
- //# sourceMappingURL=data-C_cvAEea.mjs.map
103
+ //# sourceMappingURL=data-DQ33qXdV.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-DQ33qXdV.mjs","names":[],"sources":["../src/types/data.ts"],"sourcesContent":["export const AllGeneralFields = [\n \"id\",\n \"clubId\",\n \"name\",\n \"short_name\",\n \"year\",\n \"category\",\n \"license\",\n] as const;\nexport type GeneralFields = (typeof AllGeneralFields)[number];\nexport type General = {\n id: string;\n clubId: string;\n /**\n * 略称\n * name => short_name\n */\n short_name: string;\n /**\n * 呼称\n * fullname => name\n */\n name: string;\n year: number;\n category: string;\n license?: string | null;\n};\n\nexport const AllSeasonResultFields = [\n \"rank\",\n \"points\",\n \"ppg\",\n \"elevation\",\n] as const;\nexport type SeasonResultFields = (typeof AllSeasonResultFields)[number];\nexport type SeasonResult = {\n rank: number;\n points: number;\n ppg: number;\n elevation?: \"昇格\" | \"降格\" | null;\n};\n\nexport const AllPLFields = [\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] as const;\nexport type PLFields = (typeof AllPLFields)[number];\nexport type PL = {\n /** 営業収入 */\n revenue: number;\n /** 営業費用 */\n expense: number;\n /** 営業利益 */\n op_profit: number;\n /** 営業外収入 */\n no_rev?: number | null;\n /** 営業外費用 */\n no_exp?: number | null;\n /** 経常利益 */\n ordinary_profit: number;\n /** 特別利益 */\n sp_rev?: number | null;\n /** 特別損失 */\n sp_exp?: number | null;\n /** 税引前当期利益 */\n profit_before_tax?: number | null;\n /** 法人税および住民税等 */\n tax?: number | null;\n /** 当期純利益 */\n profit: number;\n /** 関連する法人の営業収入 */\n related_revenue?: number | null;\n};\n\nexport const AllBSFields = [\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] as const;\nexport type BSFields = (typeof AllBSFields)[number];\nexport type BS = {\n /** 流動資産 */\n curr_assets?: number | null;\n /** 固定資産等 */\n fixed_assets?: number | null;\n /** 総資産 */\n assets?: number | null;\n /** 流動負債 */\n curr_liabilities?: number | null;\n /** 固定負債 */\n fixed_liabilities?: number | null;\n /** 総負債 */\n liabilities?: number | null;\n /** 純資産 */\n net_worth?: number | null;\n /** 資本金 */\n capital_stock?: number | null;\n /** 資本剰余金 */\n capital_surplus?: number | null;\n /** 利益剰余金 */\n retained_earnings?: number | null;\n /** 当期純利益 */\n profit: number;\n};\n\nexport const AllRevenueFields = [\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] as const;\nexport type RevenueFields = (typeof AllRevenueFields)[number];\nexport type Revenue = {\n /** 営業収入 */\n revenue: number;\n /** 広告料収入 */\n sponsor?: number | null;\n /** 入場料収入 */\n ticket?: number | null;\n /** Jリーグ配分金 */\n broadcast?: number | null;\n /** アカデミー関連収入 */\n academy_rev?: number | null;\n /** 女子チーム関連収入 */\n women_rev?: number | null;\n /** 物販収入 */\n goods_rev?: number | null;\n /** 移籍補償金等収入 */\n transfer_rev?: number | null;\n /** 国外クラブからの収入 */\n transfer_int_rev?: number | null;\n /** 国内クラブからの収入 */\n transfer_dom_rev?: number | null;\n /** その他収入 */\n other_revs?: number | null;\n /** 関連する法人の営業収入 */\n related_revenue?: number | null;\n};\n\nexport const AllExpenseFields = [\n \"expense\",\n \"salary\",\n \"transfer_exp\",\n \"transfer_int_exp\",\n \"transfer_dom_exp\",\n \"manage_exp\",\n \"general_exp\",\n \"game_exp\",\n \"team_exp\",\n \"academy_exp\",\n \"women_exp\",\n \"goods_exp\",\n \"other_cost\",\n \"sga\",\n] as const;\nexport type ExpenseFields = (typeof AllExpenseFields)[number];\nexport type Expense = {\n /** 営業費用 */\n expense: number;\n /** チーム人件費 */\n salary?: number | null;\n /** 移籍関連費用 */\n transfer_exp?: number | null;\n /** 国外クラブからの移籍に関する費用 */\n transfer_int_exp?: number | null;\n /** 国内クラブからの移籍に関する費用 */\n transfer_dom_exp?: number | null;\n /** 事業費 */\n manage_exp?: number | null;\n /** 総事業費 */\n general_exp?: number | null;\n /** 試合関連経費 */\n game_exp?: number | null;\n /** トップチーム運営経費 */\n team_exp?: number | null;\n /** アカデミー関連経費 */\n academy_exp?: number | null;\n /** 女子チーム運営経費 */\n women_exp?: number | null;\n /** 物販関連費 */\n goods_exp?: number | null;\n /** その他売上原価 */\n other_cost?: number | null;\n /** 販売費および一般管理費 */\n sga?: number | null;\n};\n\nexport const AllAttdFields = [\n \"ticket\",\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] as const;\nexport type AttdFields = (typeof AllAttdFields)[number];\nexport type Attd = {\n /** 入場料収入 */\n ticket?: number | null;\n /** リーグ戦入場者数 */\n league_attd: number;\n /** リーグ戦ホーム試合数 */\n league_games: number;\n /** リーグカップ入場者数 */\n leaguecup_attd?: number | null;\n /** リーグカップホーム試合数 */\n leaguecup_games?: number | null;\n /** PO入場者数 */\n po_attd?: number | null;\n /** POホーム試合数 */\n po_games?: number | null;\n /** ACL入場者数 */\n acl_attd?: number | null;\n /** ACLホーム試合数 */\n acl_games?: number | null;\n /** セカンドチーム入場者数 */\n second_attd?: number | null;\n /** セカンドチームホーム試合数 */\n second_games?: number | null;\n /** 総入場者数 */\n all_attd: number;\n /** ホーム総試合数 */\n all_games: number;\n /** リーグ戦平均入場者数 */\n average_attd: number;\n /** 客単価 */\n unit_price?: number | null;\n};\n\nexport const AllFinancialDatumFields = Array.from(\n new Set([\n ...AllGeneralFields,\n ...AllSeasonResultFields,\n ...AllPLFields,\n ...AllBSFields,\n ...AllRevenueFields,\n ...AllExpenseFields,\n ...AllAttdFields,\n ]),\n);\n\nexport type FinancialDatum = General &\n SeasonResult &\n PL &\n BS &\n Revenue &\n Expense &\n Attd;\nexport type FinancialDatumFields = keyof FinancialDatum;\n\n/**\n * @deprecated\n * use `SortableFields`\n */\nexport type SortableKeys =\n | \"rank\"\n | PLFields\n | BSFields\n | RevenueFields\n | ExpenseFields\n | AttdFields;\n\nexport type SortableFields =\n | \"rank\"\n | PLFields\n | BSFields\n | RevenueFields\n | ExpenseFields\n | AttdFields;\n\nexport type ExtendedDataLike<T = number | string | undefined | null> =\n T extends undefined\n ? undefined\n : {\n value: T;\n delta?: number | null;\n };\n\nexport type Extended<T extends Partial<FinancialDatum>> = {\n [key in keyof T]: ExtendedDataLike<T[key]>;\n};\n\nexport type ExtendedFinancialDatum = Extended<FinancialDatum>;\n"],"mappings":";AAAA,MAAa,mBAAmB;CAC9B;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAoBD,MAAa,wBAAwB;CACnC;CACA;CACA;CACA;CACD;AASD,MAAa,cAAc;CACzB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AA6BD,MAAa,cAAc;CACzB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AA2BD,MAAa,mBAAmB;CAC9B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AA6BD,MAAa,mBAAmB;CAC9B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAiCD,MAAa,gBAAgB;CAC3B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAmCD,MAAa,0BAA0B,MAAM,KAC3C,IAAI,IAAI;CACN,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACJ,CAAC,CACH"}
package/dist/data.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_data = require('./data-DrLXADPh.cjs');
1
+ const require_data = require('./data-BSgR8Eao.cjs');
2
2
  require('./types/index.cjs');
3
3
 
4
4
  //#region src/data.ts
@@ -33,7 +33,7 @@ function extendClubData(data) {
33
33
  }
34
34
  function extendYearData(data, prevData) {
35
35
  return data.map((datum) => {
36
- const prev = prevData?.find(({ slug }) => slug === datum.slug);
36
+ const prev = prevData?.find(({ clubId }) => clubId === datum.clubId);
37
37
  return processDatum(datum, prev);
38
38
  });
39
39
  }
package/dist/data.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as ExtendedFinancialDatum, v as FinancialDatum } from "./data-B8fHRnNH.cjs";
1
+ import { _ as ExtendedFinancialDatum, v as FinancialDatum } from "./data-CknytKa6.cjs";
2
2
  import "./types/index.cjs";
3
3
 
4
4
  //#region src/data.d.ts
package/dist/data.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as ExtendedFinancialDatum, v as FinancialDatum } from "./data-BzqjPiVO.mjs";
1
+ import { _ as ExtendedFinancialDatum, v as FinancialDatum } from "./data-8rg9TyXy.mjs";
2
2
  import "./types/index.mjs";
3
3
 
4
4
  //#region src/data.d.ts
package/dist/data.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as AllGeneralFields, c as AllSeasonResultFields, i as AllFinancialDatumFields } from "./data-C_cvAEea.mjs";
1
+ import { a as AllGeneralFields, c as AllSeasonResultFields, i as AllFinancialDatumFields } from "./data-DQ33qXdV.mjs";
2
2
  import "./types/index.mjs";
3
3
 
4
4
  //#region src/data.ts
@@ -33,7 +33,7 @@ function extendClubData(data) {
33
33
  }
34
34
  function extendYearData(data, prevData) {
35
35
  return data.map((datum) => {
36
- const prev = prevData?.find(({ slug }) => slug === datum.slug);
36
+ const prev = prevData?.find(({ clubId }) => clubId === datum.clubId);
37
37
  return processDatum(datum, prev);
38
38
  });
39
39
  }
package/dist/data.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"data.mjs","names":[],"sources":["../src/data.ts"],"sourcesContent":["import {\n AllFinancialDatumFields,\n AllGeneralFields,\n AllSeasonResultFields,\n type GeneralFields,\n type FinancialDatum,\n type ExtendedFinancialDatum,\n type SeasonResultFields,\n} from \"./types\";\n\nfunction isGeneralFields(key: string): key is GeneralFields {\n return AllGeneralFields.some((str) => str === key);\n}\nfunction isSeasonResultFields(key: string): key is SeasonResultFields {\n return AllSeasonResultFields.some((str) => str === key);\n}\n\nfunction processDatum(datum: FinancialDatum, prev?: FinancialDatum | null) {\n const obj = {} as any;\n\n for (const key of AllFinancialDatumFields) {\n const value = datum[key];\n if (isGeneralFields(key) || isSeasonResultFields(key)) {\n if (value) {\n obj[key] = { value };\n }\n continue;\n }\n if (typeof value === \"number\") {\n obj[key] = {\n value,\n delta: typeof prev?.[key] === \"number\" ? value - prev[key] : null,\n };\n continue;\n }\n }\n return obj;\n}\n\nexport function extendClubData(\n data: FinancialDatum[],\n): ExtendedFinancialDatum[] {\n const sorted = [...data].sort((a, b) => a.year - b.year);\n return sorted.map((d, index, arr) => {\n const prev = index === 0 ? null : arr[index - 1];\n\n return processDatum(d, prev);\n });\n}\n\nexport function extendYearData(\n data: FinancialDatum[],\n prevData: FinancialDatum[] | null,\n): ExtendedFinancialDatum[] {\n return data.map((datum) => {\n const prev = prevData?.find(({ slug }) => slug === datum.slug);\n\n return processDatum(datum, prev);\n });\n}\n"],"mappings":";;;;AAUA,SAAS,gBAAgB,KAAmC;AAC1D,QAAO,iBAAiB,MAAM,QAAQ,QAAQ,IAAI;;AAEpD,SAAS,qBAAqB,KAAwC;AACpE,QAAO,sBAAsB,MAAM,QAAQ,QAAQ,IAAI;;AAGzD,SAAS,aAAa,OAAuB,MAA8B;CACzE,MAAM,MAAM,EAAE;AAEd,MAAK,MAAM,OAAO,yBAAyB;EACzC,MAAM,QAAQ,MAAM;AACpB,MAAI,gBAAgB,IAAI,IAAI,qBAAqB,IAAI,EAAE;AACrD,OAAI,MACF,KAAI,OAAO,EAAE,OAAO;AAEtB;;AAEF,MAAI,OAAO,UAAU,UAAU;AAC7B,OAAI,OAAO;IACT;IACA,OAAO,OAAO,OAAO,SAAS,WAAW,QAAQ,KAAK,OAAO;IAC9D;AACD;;;AAGJ,QAAO;;AAGT,SAAgB,eACd,MAC0B;AAE1B,QADe,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,EAAE,OAAO,EAAE,KAAK,CAC1C,KAAK,GAAG,OAAO,QAAQ;AAGnC,SAAO,aAAa,GAFP,UAAU,IAAI,OAAO,IAAI,QAAQ,GAElB;GAC5B;;AAGJ,SAAgB,eACd,MACA,UAC0B;AAC1B,QAAO,KAAK,KAAK,UAAU;EACzB,MAAM,OAAO,UAAU,MAAM,EAAE,WAAW,SAAS,MAAM,KAAK;AAE9D,SAAO,aAAa,OAAO,KAAK;GAChC"}
1
+ {"version":3,"file":"data.mjs","names":[],"sources":["../src/data.ts"],"sourcesContent":["import {\n AllFinancialDatumFields,\n AllGeneralFields,\n AllSeasonResultFields,\n type GeneralFields,\n type FinancialDatum,\n type ExtendedFinancialDatum,\n type SeasonResultFields,\n} from \"./types\";\n\nfunction isGeneralFields(key: string): key is GeneralFields {\n return AllGeneralFields.some((str) => str === key);\n}\nfunction isSeasonResultFields(key: string): key is SeasonResultFields {\n return AllSeasonResultFields.some((str) => str === key);\n}\n\nfunction processDatum(datum: FinancialDatum, prev?: FinancialDatum | null) {\n const obj = {} as any;\n\n for (const key of AllFinancialDatumFields) {\n const value = datum[key];\n if (isGeneralFields(key) || isSeasonResultFields(key)) {\n if (value) {\n obj[key] = { value };\n }\n continue;\n }\n if (typeof value === \"number\") {\n obj[key] = {\n value,\n delta: typeof prev?.[key] === \"number\" ? value - prev[key] : null,\n };\n continue;\n }\n }\n return obj;\n}\n\nexport function extendClubData(\n data: FinancialDatum[],\n): ExtendedFinancialDatum[] {\n const sorted = [...data].sort((a, b) => a.year - b.year);\n return sorted.map((d, index, arr) => {\n const prev = index === 0 ? null : arr[index - 1];\n\n return processDatum(d, prev);\n });\n}\n\nexport function extendYearData(\n data: FinancialDatum[],\n prevData: FinancialDatum[] | null,\n): ExtendedFinancialDatum[] {\n return data.map((datum) => {\n const prev = prevData?.find(({ clubId }) => clubId === datum.clubId);\n\n return processDatum(datum, prev);\n });\n}\n"],"mappings":";;;;AAUA,SAAS,gBAAgB,KAAmC;AAC1D,QAAO,iBAAiB,MAAM,QAAQ,QAAQ,IAAI;;AAEpD,SAAS,qBAAqB,KAAwC;AACpE,QAAO,sBAAsB,MAAM,QAAQ,QAAQ,IAAI;;AAGzD,SAAS,aAAa,OAAuB,MAA8B;CACzE,MAAM,MAAM,EAAE;AAEd,MAAK,MAAM,OAAO,yBAAyB;EACzC,MAAM,QAAQ,MAAM;AACpB,MAAI,gBAAgB,IAAI,IAAI,qBAAqB,IAAI,EAAE;AACrD,OAAI,MACF,KAAI,OAAO,EAAE,OAAO;AAEtB;;AAEF,MAAI,OAAO,UAAU,UAAU;AAC7B,OAAI,OAAO;IACT;IACA,OAAO,OAAO,OAAO,SAAS,WAAW,QAAQ,KAAK,OAAO;IAC9D;AACD;;;AAGJ,QAAO;;AAGT,SAAgB,eACd,MAC0B;AAE1B,QADe,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,EAAE,OAAO,EAAE,KAAK,CAC1C,KAAK,GAAG,OAAO,QAAQ;AAGnC,SAAO,aAAa,GAFP,UAAU,IAAI,OAAO,IAAI,QAAQ,GAElB;GAC5B;;AAGJ,SAAgB,eACd,MACA,UAC0B;AAC1B,QAAO,KAAK,KAAK,UAAU;EACzB,MAAM,OAAO,UAAU,MAAM,EAAE,aAAa,WAAW,MAAM,OAAO;AAEpE,SAAO,aAAa,OAAO,KAAK;GAChC"}
@@ -1 +1 @@
1
- {"version":3,"file":"dictionary-CHzb3HU_.mjs","names":["dictionary"],"sources":["../src/data/dictionary.json","../src/dictionary.ts"],"sourcesContent":["","import type { FinancialDatum } from \"./types\";\nimport dictionary from \"./data/dictionary.json\";\n\nconst has = Object.prototype.hasOwnProperty;\n\nfunction isDirectoryKey(\n key: string,\n): key is keyof Omit<FinancialDatum, \"slug\"> {\n return has.call(dictionary, key);\n}\n\n/**\n * プロパティ名から日本語ラベルを取得する\n * @param key FinancialDatum のプロパティ名\n * @returns 日本語ラベル。未定義のキーの場合はキー名をそのまま返す\n */\nexport function getLabel(key: string): string {\n if (isDirectoryKey(key)) return dictionary[key];\n return key;\n}\n\n/**\n * プロパティ名から日本語ラベルを取得する(オプションつき)\n * @param key FinancialDatum のプロパティ名\n * @param options fallback や後処理のオプション\n * @returns 日本語ラベル\n */\nexport function getLabelWithOptions(\n key: keyof Omit<FinancialDatum, \"slug\">,\n options?: {\n /** キーが未定義の場合のフォールバック。省略時はキー名を返す */\n fallback?: string;\n /** ラベルに対する後処理 */\n transform?: (label: string) => string;\n },\n): string {\n const label = dictionary[key] ?? options?.fallback ?? key;\n return options?.transform ? options.transform(label) : label;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACGA,MAAM,MAAM,OAAO,UAAU;AAE7B,SAAS,eACP,KAC2C;AAC3C,QAAO,IAAI,KAAKA,oBAAY,IAAI;;;;;;;AAQlC,SAAgB,SAAS,KAAqB;AAC5C,KAAI,eAAe,IAAI,CAAE,QAAOA,mBAAW;AAC3C,QAAO;;;;;;;;AAST,SAAgB,oBACd,KACA,SAMQ;CACR,MAAM,QAAQA,mBAAW,QAAQ,SAAS,YAAY;AACtD,QAAO,SAAS,YAAY,QAAQ,UAAU,MAAM,GAAG"}
1
+ {"version":3,"file":"dictionary-CHzb3HU_.mjs","names":["dictionary"],"sources":["../src/data/dictionary.json","../src/dictionary.ts"],"sourcesContent":["","import type { FinancialDatum } from \"./types\";\nimport dictionary from \"./data/dictionary.json\";\n\nconst has = Object.prototype.hasOwnProperty;\n\nfunction isDirectoryKey(\n key: string,\n): key is keyof Omit<FinancialDatum, \"clubId\"> {\n return has.call(dictionary, key);\n}\n\n/**\n * プロパティ名から日本語ラベルを取得する\n * @param key FinancialDatum のプロパティ名\n * @returns 日本語ラベル。未定義のキーの場合はキー名をそのまま返す\n */\nexport function getLabel(key: string): string {\n if (isDirectoryKey(key)) return dictionary[key];\n return key;\n}\n\n/**\n * プロパティ名から日本語ラベルを取得する(オプションつき)\n * @param key FinancialDatum のプロパティ名\n * @param options fallback や後処理のオプション\n * @returns 日本語ラベル\n */\nexport function getLabelWithOptions(\n key: keyof Omit<FinancialDatum, \"clubId\">,\n options?: {\n /** キーが未定義の場合のフォールバック。省略時はキー名を返す */\n fallback?: string;\n /** ラベルに対する後処理 */\n transform?: (label: string) => string;\n },\n): string {\n const label = dictionary[key] ?? options?.fallback ?? key;\n return options?.transform ? options.transform(label) : label;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACGA,MAAM,MAAM,OAAO,UAAU;AAE7B,SAAS,eACP,KAC6C;AAC7C,QAAO,IAAI,KAAKA,oBAAY,IAAI;;;;;;;AAQlC,SAAgB,SAAS,KAAqB;AAC5C,KAAI,eAAe,IAAI,CAAE,QAAOA,mBAAW;AAC3C,QAAO;;;;;;;;AAST,SAAgB,oBACd,KACA,SAMQ;CACR,MAAM,QAAQA,mBAAW,QAAQ,SAAS,YAAY;AACtD,QAAO,SAAS,YAAY,QAAQ,UAAU,MAAM,GAAG"}
@@ -1,4 +1,4 @@
1
- import { v as FinancialDatum } from "./data-B8fHRnNH.cjs";
1
+ import { v as FinancialDatum } from "./data-CknytKa6.cjs";
2
2
  import "./types/index.cjs";
3
3
 
4
4
  //#region src/dictionary.d.ts
@@ -15,7 +15,7 @@ declare function getLabel(key: string): string;
15
15
  * @param options fallback や後処理のオプション
16
16
  * @returns 日本語ラベル
17
17
  */
18
- declare function getLabelWithOptions(key: keyof Omit<FinancialDatum, "slug">, options?: {
18
+ declare function getLabelWithOptions(key: keyof Omit<FinancialDatum, "clubId">, options?: {
19
19
  /** キーが未定義の場合のフォールバック。省略時はキー名を返す */
20
20
  fallback?: string;
21
21
  /** ラベルに対する後処理 */
@@ -1,4 +1,4 @@
1
- import { v as FinancialDatum } from "./data-BzqjPiVO.mjs";
1
+ import { v as FinancialDatum } from "./data-8rg9TyXy.mjs";
2
2
  import "./types/index.mjs";
3
3
 
4
4
  //#region src/dictionary.d.ts
@@ -15,7 +15,7 @@ declare function getLabel(key: string): string;
15
15
  * @param options fallback や後処理のオプション
16
16
  * @returns 日本語ラベル
17
17
  */
18
- declare function getLabelWithOptions(key: keyof Omit<FinancialDatum, "slug">, options?: {
18
+ declare function getLabelWithOptions(key: keyof Omit<FinancialDatum, "clubId">, options?: {
19
19
  /** キーが未定義の場合のフォールバック。省略時はキー名を返す */
20
20
  fallback?: string;
21
21
  /** ラベルに対する後処理 */
package/dist/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  const require_all_fields = require('./all-fields.cjs');
2
2
  const require_club_dictionary = require('./club-dictionary.cjs');
3
- const require_clubs = require('./clubs-BMTfABm1.cjs');
4
- const require_data = require('./data-DrLXADPh.cjs');
3
+ const require_clubs = require('./clubs-BoJOsnoJ.cjs');
4
+ const require_data = require('./data-BSgR8Eao.cjs');
5
5
  require('./types/index.cjs');
6
6
  const require_data$1 = require('./data.cjs');
7
7
  const require_dictionary = require('./dictionary-B1HhYGNO.cjs');
8
- const require_years = require('./years-B5VOLk4F.cjs');
8
+ const require_years = require('./years-BUUrr09E.cjs');
9
9
 
10
10
  exports.AllAttdFields = require_data.AllAttdFields;
11
11
  exports.AllBSFields = require_data.AllBSFields;
@@ -22,6 +22,7 @@ exports.getAllClubs = require_clubs.getAllClubs;
22
22
  exports.getAllYears = require_years.getAllYears;
23
23
  exports.getAttd = require_all_fields.getAttd;
24
24
  exports.getBS = require_all_fields.getBS;
25
+ exports.getClubById = require_clubs.getClubById;
25
26
  exports.getClubBySlug = require_clubs.getClubBySlug;
26
27
  exports.getClubInfoLabel = require_club_dictionary.getClubInfoLabel;
27
28
  exports.getClubInfoLabelWithOptions = require_club_dictionary.getClubInfoLabelWithOptions;
@@ -32,4 +33,5 @@ exports.getLabel = require_dictionary.getLabel;
32
33
  exports.getLabelWithOptions = require_dictionary.getLabelWithOptions;
33
34
  exports.getPL = require_all_fields.getPL;
34
35
  exports.getRevenue = require_all_fields.getRevenue;
35
- exports.getSeasonResult = require_all_fields.getSeasonResult;
36
+ exports.getSeasonResult = require_all_fields.getSeasonResult;
37
+ exports.getYearInfo = require_years.getYearInfo;
package/dist/index.d.cts CHANGED
@@ -1,11 +1,11 @@
1
- import { C as PLFields, D as SeasonResultFields, E as SeasonResult, O as SortableFields, S as PL, T as RevenueFields, _ as ExtendedFinancialDatum, a as AllGeneralFields, b as General, c as AllSeasonResultFields, d as BS, f as BSFields, g as ExtendedDataLike, h as Extended, i as AllFinancialDatumFields, k as SortableKeys, l as Attd, m as ExpenseFields, n as AllBSFields, o as AllPLFields, p as Expense, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields, u as AttdFields, v as FinancialDatum, w as Revenue, x as GeneralFields, y as FinancialDatumFields } from "./data-B8fHRnNH.cjs";
1
+ import { C as PLFields, D as SeasonResultFields, E as SeasonResult, O as SortableFields, S as PL, T as RevenueFields, _ as ExtendedFinancialDatum, a as AllGeneralFields, b as General, c as AllSeasonResultFields, d as BS, f as BSFields, g as ExtendedDataLike, h as Extended, i as AllFinancialDatumFields, k as SortableKeys, l as Attd, m as ExpenseFields, n as AllBSFields, o as AllPLFields, p as Expense, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields, u as AttdFields, v as FinancialDatum, w as Revenue, x as GeneralFields, y as FinancialDatumFields } from "./data-CknytKa6.cjs";
2
2
  import { getAttd, getBS, getExpense, getGeneral, getPL, getRevenue, getSeasonResult } from "./all-fields.cjs";
3
- import { t as ClubInfo } from "./club-DKBTnD_Q.cjs";
3
+ import { t as ClubInfo } from "./club-ezWWFvf8.cjs";
4
4
  import { t as YearInfo } from "./year-BWTYD69L.cjs";
5
5
  import "./types/index.cjs";
6
6
  import { clubInfoDictionary, getClubInfoLabel, getClubInfoLabelWithOptions } from "./club-dictionary.cjs";
7
- import { getAllClubs, getClubBySlug, getClubsByCategory } from "./clubs.cjs";
7
+ import { getAllClubs, getClubById, getClubBySlug, getClubsByCategory } from "./clubs.cjs";
8
8
  import { extendClubData, extendYearData } from "./data.cjs";
9
9
  import { getLabel, getLabelWithOptions } from "./dictionary.cjs";
10
- import { getAllYears } from "./years.cjs";
11
- export { AllAttdFields, AllBSFields, AllExpenseFields, AllFinancialDatumFields, AllGeneralFields, AllPLFields, AllRevenueFields, AllSeasonResultFields, Attd, AttdFields, BS, BSFields, ClubInfo, Expense, ExpenseFields, Extended, ExtendedDataLike, ExtendedFinancialDatum, FinancialDatum, FinancialDatumFields, General, GeneralFields, PL, PLFields, Revenue, RevenueFields, SeasonResult, SeasonResultFields, SortableFields, SortableKeys, YearInfo, clubInfoDictionary, extendClubData, extendYearData, getAllClubs, getAllYears, getAttd, getBS, getClubBySlug, getClubInfoLabel, getClubInfoLabelWithOptions, getClubsByCategory, getExpense, getGeneral, getLabel, getLabelWithOptions, getPL, getRevenue, getSeasonResult };
10
+ import { getAllYears, getYearInfo } from "./years.cjs";
11
+ export { AllAttdFields, AllBSFields, AllExpenseFields, AllFinancialDatumFields, AllGeneralFields, AllPLFields, AllRevenueFields, AllSeasonResultFields, Attd, AttdFields, BS, BSFields, ClubInfo, Expense, ExpenseFields, Extended, ExtendedDataLike, ExtendedFinancialDatum, FinancialDatum, FinancialDatumFields, General, GeneralFields, PL, PLFields, Revenue, RevenueFields, SeasonResult, SeasonResultFields, SortableFields, SortableKeys, YearInfo, clubInfoDictionary, extendClubData, extendYearData, getAllClubs, getAllYears, getAttd, getBS, getClubById, getClubBySlug, getClubInfoLabel, getClubInfoLabelWithOptions, getClubsByCategory, getExpense, getGeneral, getLabel, getLabelWithOptions, getPL, getRevenue, getSeasonResult, getYearInfo };
package/dist/index.d.mts CHANGED
@@ -1,11 +1,11 @@
1
- import { C as PLFields, D as SeasonResultFields, E as SeasonResult, O as SortableFields, S as PL, T as RevenueFields, _ as ExtendedFinancialDatum, a as AllGeneralFields, b as General, c as AllSeasonResultFields, d as BS, f as BSFields, g as ExtendedDataLike, h as Extended, i as AllFinancialDatumFields, k as SortableKeys, l as Attd, m as ExpenseFields, n as AllBSFields, o as AllPLFields, p as Expense, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields, u as AttdFields, v as FinancialDatum, w as Revenue, x as GeneralFields, y as FinancialDatumFields } from "./data-BzqjPiVO.mjs";
1
+ import { C as PLFields, D as SeasonResultFields, E as SeasonResult, O as SortableFields, S as PL, T as RevenueFields, _ as ExtendedFinancialDatum, a as AllGeneralFields, b as General, c as AllSeasonResultFields, d as BS, f as BSFields, g as ExtendedDataLike, h as Extended, i as AllFinancialDatumFields, k as SortableKeys, l as Attd, m as ExpenseFields, n as AllBSFields, o as AllPLFields, p as Expense, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields, u as AttdFields, v as FinancialDatum, w as Revenue, x as GeneralFields, y as FinancialDatumFields } from "./data-8rg9TyXy.mjs";
2
2
  import { getAttd, getBS, getExpense, getGeneral, getPL, getRevenue, getSeasonResult } from "./all-fields.mjs";
3
- import { t as ClubInfo } from "./club-C65-tOmf.mjs";
3
+ import { t as ClubInfo } from "./club-XBakdLnC.mjs";
4
4
  import { t as YearInfo } from "./year-DAScxhDV.mjs";
5
5
  import "./types/index.mjs";
6
6
  import { clubInfoDictionary, getClubInfoLabel, getClubInfoLabelWithOptions } from "./club-dictionary.mjs";
7
- import { getAllClubs, getClubBySlug, getClubsByCategory } from "./clubs.mjs";
7
+ import { getAllClubs, getClubById, getClubBySlug, getClubsByCategory } from "./clubs.mjs";
8
8
  import { extendClubData, extendYearData } from "./data.mjs";
9
9
  import { getLabel, getLabelWithOptions } from "./dictionary.mjs";
10
- import { getAllYears } from "./years.mjs";
11
- export { AllAttdFields, AllBSFields, AllExpenseFields, AllFinancialDatumFields, AllGeneralFields, AllPLFields, AllRevenueFields, AllSeasonResultFields, Attd, AttdFields, BS, BSFields, ClubInfo, Expense, ExpenseFields, Extended, ExtendedDataLike, ExtendedFinancialDatum, FinancialDatum, FinancialDatumFields, General, GeneralFields, PL, PLFields, Revenue, RevenueFields, SeasonResult, SeasonResultFields, SortableFields, SortableKeys, YearInfo, clubInfoDictionary, extendClubData, extendYearData, getAllClubs, getAllYears, getAttd, getBS, getClubBySlug, getClubInfoLabel, getClubInfoLabelWithOptions, getClubsByCategory, getExpense, getGeneral, getLabel, getLabelWithOptions, getPL, getRevenue, getSeasonResult };
10
+ import { getAllYears, getYearInfo } from "./years.mjs";
11
+ export { AllAttdFields, AllBSFields, AllExpenseFields, AllFinancialDatumFields, AllGeneralFields, AllPLFields, AllRevenueFields, AllSeasonResultFields, Attd, AttdFields, BS, BSFields, ClubInfo, Expense, ExpenseFields, Extended, ExtendedDataLike, ExtendedFinancialDatum, FinancialDatum, FinancialDatumFields, General, GeneralFields, PL, PLFields, Revenue, RevenueFields, SeasonResult, SeasonResultFields, SortableFields, SortableKeys, YearInfo, clubInfoDictionary, extendClubData, extendYearData, getAllClubs, getAllYears, getAttd, getBS, getClubById, getClubBySlug, getClubInfoLabel, getClubInfoLabelWithOptions, getClubsByCategory, getExpense, getGeneral, getLabel, getLabelWithOptions, getPL, getRevenue, getSeasonResult, getYearInfo };
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import { getAttd, getBS, getExpense, getGeneral, getPL, getRevenue, getSeasonResult } from "./all-fields.mjs";
2
2
  import { clubInfoDictionary, getClubInfoLabel, getClubInfoLabelWithOptions } from "./club-dictionary.mjs";
3
- import { n as getClubBySlug, r as getClubsByCategory, t as getAllClubs } from "./clubs-ql57Bx32.mjs";
4
- import { a as AllGeneralFields, c as AllSeasonResultFields, i as AllFinancialDatumFields, n as AllBSFields, o as AllPLFields, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields } from "./data-C_cvAEea.mjs";
3
+ import { i as getClubsByCategory, n as getClubById, r as getClubBySlug, t as getAllClubs } from "./clubs-CWrmJ-o7.mjs";
4
+ import { a as AllGeneralFields, c as AllSeasonResultFields, i as AllFinancialDatumFields, n as AllBSFields, o as AllPLFields, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields } from "./data-DQ33qXdV.mjs";
5
5
  import "./types/index.mjs";
6
6
  import { extendClubData, extendYearData } from "./data.mjs";
7
7
  import { n as getLabelWithOptions, t as getLabel } from "./dictionary-CHzb3HU_.mjs";
8
- import { t as getAllYears } from "./years-C6sv3Psl.mjs";
8
+ import { n as getYearInfo, t as getAllYears } from "./years-B04BT1Yh.mjs";
9
9
 
10
- export { AllAttdFields, AllBSFields, AllExpenseFields, AllFinancialDatumFields, AllGeneralFields, AllPLFields, AllRevenueFields, AllSeasonResultFields, clubInfoDictionary, extendClubData, extendYearData, getAllClubs, getAllYears, getAttd, getBS, getClubBySlug, getClubInfoLabel, getClubInfoLabelWithOptions, getClubsByCategory, getExpense, getGeneral, getLabel, getLabelWithOptions, getPL, getRevenue, getSeasonResult };
10
+ export { AllAttdFields, AllBSFields, AllExpenseFields, AllFinancialDatumFields, AllGeneralFields, AllPLFields, AllRevenueFields, AllSeasonResultFields, clubInfoDictionary, extendClubData, extendYearData, getAllClubs, getAllYears, getAttd, getBS, getClubById, getClubBySlug, getClubInfoLabel, getClubInfoLabelWithOptions, getClubsByCategory, getExpense, getGeneral, getLabel, getLabelWithOptions, getPL, getRevenue, getSeasonResult, getYearInfo };
@@ -1,2 +1,2 @@
1
- import { t as ClubInfo } from "../club-DKBTnD_Q.cjs";
1
+ import { t as ClubInfo } from "../club-ezWWFvf8.cjs";
2
2
  export { ClubInfo };
@@ -1,2 +1,2 @@
1
- import { t as ClubInfo } from "../club-C65-tOmf.mjs";
1
+ import { t as ClubInfo } from "../club-XBakdLnC.mjs";
2
2
  export { ClubInfo };
@@ -1,4 +1,4 @@
1
- const require_data = require('../data-DrLXADPh.cjs');
1
+ const require_data = require('../data-BSgR8Eao.cjs');
2
2
 
3
3
  exports.AllAttdFields = require_data.AllAttdFields;
4
4
  exports.AllBSFields = require_data.AllBSFields;
@@ -1,2 +1,2 @@
1
- import { C as PLFields, D as SeasonResultFields, E as SeasonResult, O as SortableFields, S as PL, T as RevenueFields, _ as ExtendedFinancialDatum, a as AllGeneralFields, b as General, c as AllSeasonResultFields, d as BS, f as BSFields, g as ExtendedDataLike, h as Extended, i as AllFinancialDatumFields, k as SortableKeys, l as Attd, m as ExpenseFields, n as AllBSFields, o as AllPLFields, p as Expense, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields, u as AttdFields, v as FinancialDatum, w as Revenue, x as GeneralFields, y as FinancialDatumFields } from "../data-B8fHRnNH.cjs";
1
+ import { C as PLFields, D as SeasonResultFields, E as SeasonResult, O as SortableFields, S as PL, T as RevenueFields, _ as ExtendedFinancialDatum, a as AllGeneralFields, b as General, c as AllSeasonResultFields, d as BS, f as BSFields, g as ExtendedDataLike, h as Extended, i as AllFinancialDatumFields, k as SortableKeys, l as Attd, m as ExpenseFields, n as AllBSFields, o as AllPLFields, p as Expense, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields, u as AttdFields, v as FinancialDatum, w as Revenue, x as GeneralFields, y as FinancialDatumFields } from "../data-CknytKa6.cjs";
2
2
  export { AllAttdFields, AllBSFields, AllExpenseFields, AllFinancialDatumFields, AllGeneralFields, AllPLFields, AllRevenueFields, AllSeasonResultFields, Attd, AttdFields, BS, BSFields, Expense, ExpenseFields, Extended, ExtendedDataLike, ExtendedFinancialDatum, FinancialDatum, FinancialDatumFields, General, GeneralFields, PL, PLFields, Revenue, RevenueFields, SeasonResult, SeasonResultFields, SortableFields, SortableKeys };
@@ -1,2 +1,2 @@
1
- import { C as PLFields, D as SeasonResultFields, E as SeasonResult, O as SortableFields, S as PL, T as RevenueFields, _ as ExtendedFinancialDatum, a as AllGeneralFields, b as General, c as AllSeasonResultFields, d as BS, f as BSFields, g as ExtendedDataLike, h as Extended, i as AllFinancialDatumFields, k as SortableKeys, l as Attd, m as ExpenseFields, n as AllBSFields, o as AllPLFields, p as Expense, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields, u as AttdFields, v as FinancialDatum, w as Revenue, x as GeneralFields, y as FinancialDatumFields } from "../data-BzqjPiVO.mjs";
1
+ import { C as PLFields, D as SeasonResultFields, E as SeasonResult, O as SortableFields, S as PL, T as RevenueFields, _ as ExtendedFinancialDatum, a as AllGeneralFields, b as General, c as AllSeasonResultFields, d as BS, f as BSFields, g as ExtendedDataLike, h as Extended, i as AllFinancialDatumFields, k as SortableKeys, l as Attd, m as ExpenseFields, n as AllBSFields, o as AllPLFields, p as Expense, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields, u as AttdFields, v as FinancialDatum, w as Revenue, x as GeneralFields, y as FinancialDatumFields } from "../data-8rg9TyXy.mjs";
2
2
  export { AllAttdFields, AllBSFields, AllExpenseFields, AllFinancialDatumFields, AllGeneralFields, AllPLFields, AllRevenueFields, AllSeasonResultFields, Attd, AttdFields, BS, BSFields, Expense, ExpenseFields, Extended, ExtendedDataLike, ExtendedFinancialDatum, FinancialDatum, FinancialDatumFields, General, GeneralFields, PL, PLFields, Revenue, RevenueFields, SeasonResult, SeasonResultFields, SortableFields, SortableKeys };
@@ -1,3 +1,3 @@
1
- import { a as AllGeneralFields, c as AllSeasonResultFields, i as AllFinancialDatumFields, n as AllBSFields, o as AllPLFields, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields } from "../data-C_cvAEea.mjs";
1
+ import { a as AllGeneralFields, c as AllSeasonResultFields, i as AllFinancialDatumFields, n as AllBSFields, o as AllPLFields, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields } from "../data-DQ33qXdV.mjs";
2
2
 
3
3
  export { AllAttdFields, AllBSFields, AllExpenseFields, AllFinancialDatumFields, AllGeneralFields, AllPLFields, AllRevenueFields, AllSeasonResultFields };
@@ -1,4 +1,4 @@
1
- const require_data = require('../data-DrLXADPh.cjs');
1
+ const require_data = require('../data-BSgR8Eao.cjs');
2
2
 
3
3
  exports.AllAttdFields = require_data.AllAttdFields;
4
4
  exports.AllBSFields = require_data.AllBSFields;
@@ -1,4 +1,4 @@
1
- import { C as PLFields, D as SeasonResultFields, E as SeasonResult, O as SortableFields, S as PL, T as RevenueFields, _ as ExtendedFinancialDatum, a as AllGeneralFields, b as General, c as AllSeasonResultFields, d as BS, f as BSFields, g as ExtendedDataLike, h as Extended, i as AllFinancialDatumFields, k as SortableKeys, l as Attd, m as ExpenseFields, n as AllBSFields, o as AllPLFields, p as Expense, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields, u as AttdFields, v as FinancialDatum, w as Revenue, x as GeneralFields, y as FinancialDatumFields } from "../data-B8fHRnNH.cjs";
2
- import { t as ClubInfo } from "../club-DKBTnD_Q.cjs";
1
+ import { C as PLFields, D as SeasonResultFields, E as SeasonResult, O as SortableFields, S as PL, T as RevenueFields, _ as ExtendedFinancialDatum, a as AllGeneralFields, b as General, c as AllSeasonResultFields, d as BS, f as BSFields, g as ExtendedDataLike, h as Extended, i as AllFinancialDatumFields, k as SortableKeys, l as Attd, m as ExpenseFields, n as AllBSFields, o as AllPLFields, p as Expense, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields, u as AttdFields, v as FinancialDatum, w as Revenue, x as GeneralFields, y as FinancialDatumFields } from "../data-CknytKa6.cjs";
2
+ import { t as ClubInfo } from "../club-ezWWFvf8.cjs";
3
3
  import { t as YearInfo } from "../year-BWTYD69L.cjs";
4
4
  export { AllAttdFields, AllBSFields, AllExpenseFields, AllFinancialDatumFields, AllGeneralFields, AllPLFields, AllRevenueFields, AllSeasonResultFields, Attd, AttdFields, BS, BSFields, ClubInfo, Expense, ExpenseFields, Extended, ExtendedDataLike, ExtendedFinancialDatum, FinancialDatum, FinancialDatumFields, General, GeneralFields, PL, PLFields, Revenue, RevenueFields, SeasonResult, SeasonResultFields, SortableFields, SortableKeys, YearInfo };
@@ -1,4 +1,4 @@
1
- import { C as PLFields, D as SeasonResultFields, E as SeasonResult, O as SortableFields, S as PL, T as RevenueFields, _ as ExtendedFinancialDatum, a as AllGeneralFields, b as General, c as AllSeasonResultFields, d as BS, f as BSFields, g as ExtendedDataLike, h as Extended, i as AllFinancialDatumFields, k as SortableKeys, l as Attd, m as ExpenseFields, n as AllBSFields, o as AllPLFields, p as Expense, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields, u as AttdFields, v as FinancialDatum, w as Revenue, x as GeneralFields, y as FinancialDatumFields } from "../data-BzqjPiVO.mjs";
2
- import { t as ClubInfo } from "../club-C65-tOmf.mjs";
1
+ import { C as PLFields, D as SeasonResultFields, E as SeasonResult, O as SortableFields, S as PL, T as RevenueFields, _ as ExtendedFinancialDatum, a as AllGeneralFields, b as General, c as AllSeasonResultFields, d as BS, f as BSFields, g as ExtendedDataLike, h as Extended, i as AllFinancialDatumFields, k as SortableKeys, l as Attd, m as ExpenseFields, n as AllBSFields, o as AllPLFields, p as Expense, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields, u as AttdFields, v as FinancialDatum, w as Revenue, x as GeneralFields, y as FinancialDatumFields } from "../data-8rg9TyXy.mjs";
2
+ import { t as ClubInfo } from "../club-XBakdLnC.mjs";
3
3
  import { t as YearInfo } from "../year-DAScxhDV.mjs";
4
4
  export { AllAttdFields, AllBSFields, AllExpenseFields, AllFinancialDatumFields, AllGeneralFields, AllPLFields, AllRevenueFields, AllSeasonResultFields, Attd, AttdFields, BS, BSFields, ClubInfo, Expense, ExpenseFields, Extended, ExtendedDataLike, ExtendedFinancialDatum, FinancialDatum, FinancialDatumFields, General, GeneralFields, PL, PLFields, Revenue, RevenueFields, SeasonResult, SeasonResultFields, SortableFields, SortableKeys, YearInfo };
@@ -1,3 +1,3 @@
1
- import { a as AllGeneralFields, c as AllSeasonResultFields, i as AllFinancialDatumFields, n as AllBSFields, o as AllPLFields, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields } from "../data-C_cvAEea.mjs";
1
+ import { a as AllGeneralFields, c as AllSeasonResultFields, i as AllFinancialDatumFields, n as AllBSFields, o as AllPLFields, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields } from "../data-DQ33qXdV.mjs";
2
2
 
3
3
  export { AllAttdFields, AllBSFields, AllExpenseFields, AllFinancialDatumFields, AllGeneralFields, AllPLFields, AllRevenueFields, AllSeasonResultFields };
@@ -1,4 +1,3 @@
1
-
2
1
  //#region src/data/years.json
3
2
  var years_default = [
4
3
  {
@@ -152,11 +151,10 @@ var years_default = [
152
151
  function getAllYears() {
153
152
  return [...years_default].sort((a, b) => a.year - b.year);
154
153
  }
154
+ function getYearInfo(year) {
155
+ return getAllYears().find((yearInfo) => yearInfo.year === year);
156
+ }
155
157
 
156
158
  //#endregion
157
- Object.defineProperty(exports, 'getAllYears', {
158
- enumerable: true,
159
- get: function () {
160
- return getAllYears;
161
- }
162
- });
159
+ export { getYearInfo as n, getAllYears as t };
160
+ //# sourceMappingURL=years-B04BT1Yh.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"years-B04BT1Yh.mjs","names":["years"],"sources":["../src/data/years.json","../src/years.ts"],"sourcesContent":["","import type { YearInfo } from \"./types\";\nimport years from \"./data/years.json\";\n\nexport function getAllYears() {\n const allYears = years;\n return [...allYears].sort((a, b) => a.year - b.year) as YearInfo[];\n}\n\nexport function getYearInfo(year: number) {\n const allYears = getAllYears();\n return allYears.find((yearInfo) => yearInfo.year === year);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACGA,SAAgB,cAAc;AAE5B,QAAO,CAAC,GADSA,cACG,CAAC,MAAM,GAAG,MAAM,EAAE,OAAO,EAAE,KAAK;;AAGtD,SAAgB,YAAY,MAAc;AAExC,QADiB,aAAa,CACd,MAAM,aAAa,SAAS,SAAS,KAAK"}
@@ -1,3 +1,4 @@
1
+
1
2
  //#region src/data/years.json
2
3
  var years_default = [
3
4
  {
@@ -151,7 +152,20 @@ var years_default = [
151
152
  function getAllYears() {
152
153
  return [...years_default].sort((a, b) => a.year - b.year);
153
154
  }
155
+ function getYearInfo(year) {
156
+ return getAllYears().find((yearInfo) => yearInfo.year === year);
157
+ }
154
158
 
155
159
  //#endregion
156
- export { getAllYears as t };
157
- //# sourceMappingURL=years-C6sv3Psl.mjs.map
160
+ Object.defineProperty(exports, 'getAllYears', {
161
+ enumerable: true,
162
+ get: function () {
163
+ return getAllYears;
164
+ }
165
+ });
166
+ Object.defineProperty(exports, 'getYearInfo', {
167
+ enumerable: true,
168
+ get: function () {
169
+ return getYearInfo;
170
+ }
171
+ });
package/dist/years.cjs CHANGED
@@ -1,3 +1,4 @@
1
- const require_years = require('./years-B5VOLk4F.cjs');
1
+ const require_years = require('./years-BUUrr09E.cjs');
2
2
 
3
- exports.getAllYears = require_years.getAllYears;
3
+ exports.getAllYears = require_years.getAllYears;
4
+ exports.getYearInfo = require_years.getYearInfo;
package/dist/years.d.cts CHANGED
@@ -3,6 +3,7 @@ import "./types/index.cjs";
3
3
 
4
4
  //#region src/years.d.ts
5
5
  declare function getAllYears(): YearInfo[];
6
+ declare function getYearInfo(year: number): YearInfo | undefined;
6
7
  //#endregion
7
- export { getAllYears };
8
+ export { getAllYears, getYearInfo };
8
9
  //# sourceMappingURL=years.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"years.d.cts","names":[],"sources":["../src/years.ts"],"sourcesContent":[],"mappings":";;;;iBAGgB,WAAA,CAAA,GAE0C"}
1
+ {"version":3,"file":"years.d.cts","names":[],"sources":["../src/years.ts"],"sourcesContent":[],"mappings":";;;;iBAGgB,WAAA,CAAA,GAE0C;iBAG1C,WAAA,gBAAwB"}