@cieloazul310/jclub-financial-utils 0.0.1-alpha.6 → 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.
- package/dist/all-fields.cjs +3 -3
- package/dist/all-fields.d.cts +1 -1
- package/dist/all-fields.d.mts +1 -1
- package/dist/all-fields.mjs +3 -3
- package/dist/all-fields.mjs.map +1 -1
- package/dist/{club-CauHQ_x1.d.mts → club-XBakdLnC.d.mts} +2 -2
- package/dist/club-XBakdLnC.d.mts.map +1 -0
- package/dist/club-dictionary.cjs +46 -0
- package/dist/club-dictionary.d.cts +26 -0
- package/dist/club-dictionary.d.cts.map +1 -0
- package/dist/club-dictionary.d.mts +26 -0
- package/dist/club-dictionary.d.mts.map +1 -0
- package/dist/club-dictionary.mjs +44 -0
- package/dist/club-dictionary.mjs.map +1 -0
- package/dist/{club-CmkWZe16.d.cts → club-ezWWFvf8.d.cts} +2 -2
- package/dist/club-ezWWFvf8.d.cts.map +1 -0
- package/dist/{clubs-Bpokw8dA.cjs → clubs-BoJOsnoJ.cjs} +151 -138
- package/dist/{clubs-CdRVlJPi.mjs → clubs-CWrmJ-o7.mjs} +147 -140
- package/dist/{clubs-CdRVlJPi.mjs.map → clubs-CWrmJ-o7.mjs.map} +1 -1
- package/dist/clubs.cjs +2 -1
- package/dist/clubs.d.cts +7 -2
- package/dist/clubs.d.cts.map +1 -1
- package/dist/clubs.d.mts +7 -2
- package/dist/clubs.d.mts.map +1 -1
- package/dist/clubs.mjs +2 -2
- package/dist/{data-BifrD3Hs.d.cts → data-8rg9TyXy.d.mts} +22 -8
- package/dist/data-8rg9TyXy.d.mts.map +1 -0
- package/dist/{data-CGTGYuvt.cjs → data-BSgR8Eao.cjs} +6 -7
- package/dist/{data-rDHl-GBR.d.mts → data-CknytKa6.d.cts} +22 -8
- package/dist/data-CknytKa6.d.cts.map +1 -0
- package/dist/{data-PJ-fpqmg.mjs → data-DQ33qXdV.mjs} +6 -7
- package/dist/data-DQ33qXdV.mjs.map +1 -0
- package/dist/data.cjs +3 -3
- package/dist/data.d.cts +1 -1
- package/dist/data.d.mts +1 -1
- package/dist/data.mjs +3 -3
- package/dist/data.mjs.map +1 -1
- package/dist/{dictionary-BZ_zUPSy.cjs → dictionary-B1HhYGNO.cjs} +2 -2
- package/dist/{dictionary-D9CmvgCW.mjs → dictionary-CHzb3HU_.mjs} +3 -3
- package/dist/dictionary-CHzb3HU_.mjs.map +1 -0
- package/dist/dictionary.cjs +1 -1
- package/dist/dictionary.d.cts +2 -2
- package/dist/dictionary.d.mts +2 -2
- package/dist/dictionary.mjs +1 -1
- package/dist/index.cjs +12 -6
- package/dist/index.d.cts +7 -6
- package/dist/index.d.mts +7 -6
- package/dist/index.mjs +6 -5
- package/dist/types/club.d.cts +1 -1
- package/dist/types/club.d.mts +1 -1
- package/dist/types/data.cjs +2 -2
- package/dist/types/data.d.cts +2 -2
- package/dist/types/data.d.mts +2 -2
- package/dist/types/data.mjs +2 -2
- package/dist/types/index.cjs +2 -2
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.mjs +2 -2
- package/dist/types/year.d.cts +1 -1
- package/dist/types/year.d.mts +1 -1
- package/dist/{year-YIR3AeyZ.d.mts → year-BWTYD69L.d.cts} +1 -1
- package/dist/year-BWTYD69L.d.cts.map +1 -0
- package/dist/{year-uMcmlIjv.d.cts → year-DAScxhDV.d.mts} +1 -1
- package/dist/year-DAScxhDV.d.mts.map +1 -0
- package/dist/{years-B5VOLk4F.cjs → years-B04BT1Yh.mjs} +5 -7
- package/dist/years-B04BT1Yh.mjs.map +1 -0
- package/dist/{years-CYHxC5qZ.mjs → years-BUUrr09E.cjs} +16 -2
- package/dist/years.cjs +3 -2
- package/dist/years.d.cts +3 -2
- package/dist/years.d.cts.map +1 -1
- package/dist/years.d.mts +3 -2
- package/dist/years.d.mts.map +1 -1
- package/dist/years.mjs +2 -2
- package/package.json +3 -3
- package/dist/club-CauHQ_x1.d.mts.map +0 -1
- package/dist/club-CmkWZe16.d.cts.map +0 -1
- package/dist/data-BifrD3Hs.d.cts.map +0 -1
- package/dist/data-PJ-fpqmg.mjs.map +0 -1
- package/dist/data-rDHl-GBR.d.mts.map +0 -1
- package/dist/dictionary-D9CmvgCW.mjs.map +0 -1
- package/dist/year-YIR3AeyZ.d.mts.map +0 -1
- package/dist/year-uMcmlIjv.d.cts.map +0 -1
- package/dist/years-CYHxC5qZ.mjs.map +0 -1
- /package/dist/{club-DMPe0Tct.mjs → club-CjHhgzsk.mjs} +0 -0
- /package/dist/{year-DlsIuRa9.mjs → year-s5YwjW7B.mjs} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clubs-
|
|
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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 -1,5 +1,6 @@
|
|
|
1
|
-
const require_clubs = require('./clubs-
|
|
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-
|
|
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
|
package/dist/clubs.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clubs.d.cts","names":[],"sources":["../src/clubs.ts"],"sourcesContent":[],"mappings":";;;;iBAGgB,WAAA,CAAA,GAEU;
|
|
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-
|
|
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
|
package/dist/clubs.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clubs.d.mts","names":[],"sources":["../src/clubs.ts"],"sourcesContent":[],"mappings":";;;;iBAGgB,WAAA,CAAA,GAEU;
|
|
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
|
|
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,11 +1,19 @@
|
|
|
1
1
|
//#region src/types/data.d.ts
|
|
2
|
-
declare const AllGeneralFields: readonly ["id", "
|
|
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
|
+
clubId: string;
|
|
7
|
+
/**
|
|
8
|
+
* 略称
|
|
9
|
+
* name => short_name
|
|
10
|
+
*/
|
|
11
|
+
short_name: string;
|
|
12
|
+
/**
|
|
13
|
+
* 呼称
|
|
14
|
+
* fullname => name
|
|
15
|
+
*/
|
|
6
16
|
name: string;
|
|
7
|
-
slug: string;
|
|
8
|
-
fullname: string;
|
|
9
17
|
year: number;
|
|
10
18
|
category: string;
|
|
11
19
|
license?: string | null;
|
|
@@ -100,7 +108,7 @@ type Revenue = {
|
|
|
100
108
|
/** 関連する法人の営業収入 */
|
|
101
109
|
related_revenue?: number | null;
|
|
102
110
|
};
|
|
103
|
-
declare const AllExpenseFields: readonly ["expense", "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", "
|
|
111
|
+
declare const AllExpenseFields: readonly ["expense", "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"];
|
|
104
112
|
type ExpenseFields = (typeof AllExpenseFields)[number];
|
|
105
113
|
type Expense = {
|
|
106
114
|
/** 営業費用 */
|
|
@@ -136,7 +144,7 @@ declare const AllAttdFields: readonly ["ticket", "all_attd", "all_games", "avera
|
|
|
136
144
|
type AttdFields = (typeof AllAttdFields)[number];
|
|
137
145
|
type Attd = {
|
|
138
146
|
/** 入場料収入 */
|
|
139
|
-
ticket
|
|
147
|
+
ticket?: number | null;
|
|
140
148
|
/** リーグ戦入場者数 */
|
|
141
149
|
league_attd: number;
|
|
142
150
|
/** リーグ戦ホーム試合数 */
|
|
@@ -166,9 +174,15 @@ type Attd = {
|
|
|
166
174
|
/** 客単価 */
|
|
167
175
|
unit_price?: number | null;
|
|
168
176
|
};
|
|
169
|
-
declare const
|
|
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")[];
|
|
170
178
|
type FinancialDatum = General & SeasonResult & PL & BS & Revenue & Expense & Attd;
|
|
179
|
+
type FinancialDatumFields = keyof FinancialDatum;
|
|
180
|
+
/**
|
|
181
|
+
* @deprecated
|
|
182
|
+
* use `SortableFields`
|
|
183
|
+
*/
|
|
171
184
|
type SortableKeys = "rank" | PLFields | BSFields | RevenueFields | ExpenseFields | AttdFields;
|
|
185
|
+
type SortableFields = "rank" | PLFields | BSFields | RevenueFields | ExpenseFields | AttdFields;
|
|
172
186
|
type ExtendedDataLike<T = number | string | undefined | null> = T extends undefined ? undefined : {
|
|
173
187
|
value: T;
|
|
174
188
|
delta?: number | null;
|
|
@@ -176,5 +190,5 @@ type ExtendedDataLike<T = number | string | undefined | null> = T extends undefi
|
|
|
176
190
|
type Extended<T extends Partial<FinancialDatum>> = { [key in keyof T]: ExtendedDataLike<T[key]> };
|
|
177
191
|
type ExtendedFinancialDatum = Extended<FinancialDatum>;
|
|
178
192
|
//#endregion
|
|
179
|
-
export {
|
|
180
|
-
//# sourceMappingURL=data-
|
|
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-8rg9TyXy.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-8rg9TyXy.d.mts","names":[],"sources":["../src/types/data.ts"],"sourcesContent":[],"mappings":";cAAa;AAAA,KASD,aAAA,GADF,CAAA,OAC0B,gBAD1B,CAAA,CAAA,MAAA,CAAA;AACE,KACA,OAAA,GADa;EACb,EAAA,EAAA,MAAO;EAkBN,MAAA,EAAA,MAAA;EAMD;AACZ;AAOA;AAcA;EACY,UAAE,EAAA,MAAA;EA2BD;AAab;AACA;AAyBA;EAcY,IAAA,EAAA,MAAA;EACA,IAAA,EAAA,MAAO;EA2BN,QAAA,EAAA,MAAA;EAgBD,OAAA,CAAA,EAAA,MAAa,GAAA,IAAA;AACzB,CAAA;AA+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AAA,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,9 +2,9 @@
|
|
|
2
2
|
//#region src/types/data.ts
|
|
3
3
|
const AllGeneralFields = [
|
|
4
4
|
"id",
|
|
5
|
+
"clubId",
|
|
5
6
|
"name",
|
|
6
|
-
"
|
|
7
|
-
"fullname",
|
|
7
|
+
"short_name",
|
|
8
8
|
"year",
|
|
9
9
|
"category",
|
|
10
10
|
"license"
|
|
@@ -70,7 +70,6 @@ const AllExpenseFields = [
|
|
|
70
70
|
"women_exp",
|
|
71
71
|
"goods_exp",
|
|
72
72
|
"other_cost",
|
|
73
|
-
"manage_exp",
|
|
74
73
|
"sga"
|
|
75
74
|
];
|
|
76
75
|
const AllAttdFields = [
|
|
@@ -90,7 +89,7 @@ const AllAttdFields = [
|
|
|
90
89
|
"second_attd",
|
|
91
90
|
"second_games"
|
|
92
91
|
];
|
|
93
|
-
const
|
|
92
|
+
const AllFinancialDatumFields = Array.from(new Set([
|
|
94
93
|
...AllGeneralFields,
|
|
95
94
|
...AllSeasonResultFields,
|
|
96
95
|
...AllPLFields,
|
|
@@ -98,7 +97,7 @@ const AllFields = [
|
|
|
98
97
|
...AllRevenueFields,
|
|
99
98
|
...AllExpenseFields,
|
|
100
99
|
...AllAttdFields
|
|
101
|
-
];
|
|
100
|
+
]));
|
|
102
101
|
|
|
103
102
|
//#endregion
|
|
104
103
|
Object.defineProperty(exports, 'AllAttdFields', {
|
|
@@ -119,10 +118,10 @@ Object.defineProperty(exports, 'AllExpenseFields', {
|
|
|
119
118
|
return AllExpenseFields;
|
|
120
119
|
}
|
|
121
120
|
});
|
|
122
|
-
Object.defineProperty(exports, '
|
|
121
|
+
Object.defineProperty(exports, 'AllFinancialDatumFields', {
|
|
123
122
|
enumerable: true,
|
|
124
123
|
get: function () {
|
|
125
|
-
return
|
|
124
|
+
return AllFinancialDatumFields;
|
|
126
125
|
}
|
|
127
126
|
});
|
|
128
127
|
Object.defineProperty(exports, 'AllGeneralFields', {
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
//#region src/types/data.d.ts
|
|
2
|
-
declare const AllGeneralFields: readonly ["id", "
|
|
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
|
+
clubId: string;
|
|
7
|
+
/**
|
|
8
|
+
* 略称
|
|
9
|
+
* name => short_name
|
|
10
|
+
*/
|
|
11
|
+
short_name: string;
|
|
12
|
+
/**
|
|
13
|
+
* 呼称
|
|
14
|
+
* fullname => name
|
|
15
|
+
*/
|
|
6
16
|
name: string;
|
|
7
|
-
slug: string;
|
|
8
|
-
fullname: string;
|
|
9
17
|
year: number;
|
|
10
18
|
category: string;
|
|
11
19
|
license?: string | null;
|
|
@@ -100,7 +108,7 @@ type Revenue = {
|
|
|
100
108
|
/** 関連する法人の営業収入 */
|
|
101
109
|
related_revenue?: number | null;
|
|
102
110
|
};
|
|
103
|
-
declare const AllExpenseFields: readonly ["expense", "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", "
|
|
111
|
+
declare const AllExpenseFields: readonly ["expense", "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"];
|
|
104
112
|
type ExpenseFields = (typeof AllExpenseFields)[number];
|
|
105
113
|
type Expense = {
|
|
106
114
|
/** 営業費用 */
|
|
@@ -136,7 +144,7 @@ declare const AllAttdFields: readonly ["ticket", "all_attd", "all_games", "avera
|
|
|
136
144
|
type AttdFields = (typeof AllAttdFields)[number];
|
|
137
145
|
type Attd = {
|
|
138
146
|
/** 入場料収入 */
|
|
139
|
-
ticket
|
|
147
|
+
ticket?: number | null;
|
|
140
148
|
/** リーグ戦入場者数 */
|
|
141
149
|
league_attd: number;
|
|
142
150
|
/** リーグ戦ホーム試合数 */
|
|
@@ -166,9 +174,15 @@ type Attd = {
|
|
|
166
174
|
/** 客単価 */
|
|
167
175
|
unit_price?: number | null;
|
|
168
176
|
};
|
|
169
|
-
declare const
|
|
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")[];
|
|
170
178
|
type FinancialDatum = General & SeasonResult & PL & BS & Revenue & Expense & Attd;
|
|
179
|
+
type FinancialDatumFields = keyof FinancialDatum;
|
|
180
|
+
/**
|
|
181
|
+
* @deprecated
|
|
182
|
+
* use `SortableFields`
|
|
183
|
+
*/
|
|
171
184
|
type SortableKeys = "rank" | PLFields | BSFields | RevenueFields | ExpenseFields | AttdFields;
|
|
185
|
+
type SortableFields = "rank" | PLFields | BSFields | RevenueFields | ExpenseFields | AttdFields;
|
|
172
186
|
type ExtendedDataLike<T = number | string | undefined | null> = T extends undefined ? undefined : {
|
|
173
187
|
value: T;
|
|
174
188
|
delta?: number | null;
|
|
@@ -176,5 +190,5 @@ type ExtendedDataLike<T = number | string | undefined | null> = T extends undefi
|
|
|
176
190
|
type Extended<T extends Partial<FinancialDatum>> = { [key in keyof T]: ExtendedDataLike<T[key]> };
|
|
177
191
|
type ExtendedFinancialDatum = Extended<FinancialDatum>;
|
|
178
192
|
//#endregion
|
|
179
|
-
export {
|
|
180
|
-
//# sourceMappingURL=data-
|
|
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-CknytKa6.d.cts.map
|
|
@@ -0,0 +1 @@
|
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|
6
|
+
"short_name",
|
|
7
7
|
"year",
|
|
8
8
|
"category",
|
|
9
9
|
"license"
|
|
@@ -69,7 +69,6 @@ const AllExpenseFields = [
|
|
|
69
69
|
"women_exp",
|
|
70
70
|
"goods_exp",
|
|
71
71
|
"other_cost",
|
|
72
|
-
"manage_exp",
|
|
73
72
|
"sga"
|
|
74
73
|
];
|
|
75
74
|
const AllAttdFields = [
|
|
@@ -89,7 +88,7 @@ const AllAttdFields = [
|
|
|
89
88
|
"second_attd",
|
|
90
89
|
"second_games"
|
|
91
90
|
];
|
|
92
|
-
const
|
|
91
|
+
const AllFinancialDatumFields = Array.from(new Set([
|
|
93
92
|
...AllGeneralFields,
|
|
94
93
|
...AllSeasonResultFields,
|
|
95
94
|
...AllPLFields,
|
|
@@ -97,8 +96,8 @@ const AllFields = [
|
|
|
97
96
|
...AllRevenueFields,
|
|
98
97
|
...AllExpenseFields,
|
|
99
98
|
...AllAttdFields
|
|
100
|
-
];
|
|
99
|
+
]));
|
|
101
100
|
|
|
102
101
|
//#endregion
|
|
103
|
-
export { AllGeneralFields as a, AllSeasonResultFields as c,
|
|
104
|
-
//# sourceMappingURL=data-
|
|
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-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-
|
|
1
|
+
const require_data = require('./data-BSgR8Eao.cjs');
|
|
2
2
|
require('./types/index.cjs');
|
|
3
3
|
|
|
4
4
|
//#region src/data.ts
|
|
@@ -10,7 +10,7 @@ function isSeasonResultFields(key) {
|
|
|
10
10
|
}
|
|
11
11
|
function processDatum(datum, prev) {
|
|
12
12
|
const obj = {};
|
|
13
|
-
for (const key of require_data.
|
|
13
|
+
for (const key of require_data.AllFinancialDatumFields) {
|
|
14
14
|
const value = datum[key];
|
|
15
15
|
if (isGeneralFields(key) || isSeasonResultFields(key)) {
|
|
16
16
|
if (value) obj[key] = { value };
|
|
@@ -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(({
|
|
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
package/dist/data.d.mts
CHANGED
package/dist/data.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as AllGeneralFields, c as AllSeasonResultFields, i as
|
|
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
|
|
@@ -10,7 +10,7 @@ function isSeasonResultFields(key) {
|
|
|
10
10
|
}
|
|
11
11
|
function processDatum(datum, prev) {
|
|
12
12
|
const obj = {};
|
|
13
|
-
for (const key of
|
|
13
|
+
for (const key of AllFinancialDatumFields) {
|
|
14
14
|
const value = datum[key];
|
|
15
15
|
if (isGeneralFields(key) || isSeasonResultFields(key)) {
|
|
16
16
|
if (value) obj[key] = { value };
|
|
@@ -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(({
|
|
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
|
|
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,8 +1,8 @@
|
|
|
1
1
|
//#region src/data/dictionary.json
|
|
2
2
|
var dictionary_default = {
|
|
3
|
-
name: "クラブ",
|
|
4
|
-
fullname: "呼称",
|
|
5
3
|
id: "id",
|
|
4
|
+
name: "呼称",
|
|
5
|
+
short_name: "略称",
|
|
6
6
|
year: "年",
|
|
7
7
|
category: "所属",
|
|
8
8
|
license: "ライセンス",
|
|
@@ -99,4 +99,4 @@ function getLabelWithOptions(key, options) {
|
|
|
99
99
|
|
|
100
100
|
//#endregion
|
|
101
101
|
export { getLabelWithOptions as n, getLabel as t };
|
|
102
|
-
//# sourceMappingURL=dictionary-
|
|
102
|
+
//# sourceMappingURL=dictionary-CHzb3HU_.mjs.map
|
|
@@ -0,0 +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, \"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"}
|
package/dist/dictionary.cjs
CHANGED
package/dist/dictionary.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as FinancialDatum } from "./data-
|
|
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, "
|
|
18
|
+
declare function getLabelWithOptions(key: keyof Omit<FinancialDatum, "clubId">, options?: {
|
|
19
19
|
/** キーが未定義の場合のフォールバック。省略時はキー名を返す */
|
|
20
20
|
fallback?: string;
|
|
21
21
|
/** ラベルに対する後処理 */
|
package/dist/dictionary.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as FinancialDatum } from "./data-
|
|
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, "
|
|
18
|
+
declare function getLabelWithOptions(key: keyof Omit<FinancialDatum, "clubId">, options?: {
|
|
19
19
|
/** キーが未定義の場合のフォールバック。省略時はキー名を返す */
|
|
20
20
|
fallback?: string;
|
|
21
21
|
/** ラベルに対する後処理 */
|
package/dist/dictionary.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,26 +1,31 @@
|
|
|
1
1
|
const require_all_fields = require('./all-fields.cjs');
|
|
2
|
-
const
|
|
3
|
-
const
|
|
2
|
+
const require_club_dictionary = require('./club-dictionary.cjs');
|
|
3
|
+
const require_clubs = require('./clubs-BoJOsnoJ.cjs');
|
|
4
|
+
const require_data = require('./data-BSgR8Eao.cjs');
|
|
4
5
|
require('./types/index.cjs');
|
|
5
6
|
const require_data$1 = require('./data.cjs');
|
|
6
|
-
const require_dictionary = require('./dictionary-
|
|
7
|
-
const require_years = require('./years-
|
|
7
|
+
const require_dictionary = require('./dictionary-B1HhYGNO.cjs');
|
|
8
|
+
const require_years = require('./years-BUUrr09E.cjs');
|
|
8
9
|
|
|
9
10
|
exports.AllAttdFields = require_data.AllAttdFields;
|
|
10
11
|
exports.AllBSFields = require_data.AllBSFields;
|
|
11
12
|
exports.AllExpenseFields = require_data.AllExpenseFields;
|
|
12
|
-
exports.
|
|
13
|
+
exports.AllFinancialDatumFields = require_data.AllFinancialDatumFields;
|
|
13
14
|
exports.AllGeneralFields = require_data.AllGeneralFields;
|
|
14
15
|
exports.AllPLFields = require_data.AllPLFields;
|
|
15
16
|
exports.AllRevenueFields = require_data.AllRevenueFields;
|
|
16
17
|
exports.AllSeasonResultFields = require_data.AllSeasonResultFields;
|
|
18
|
+
exports.clubInfoDictionary = require_club_dictionary.clubInfoDictionary;
|
|
17
19
|
exports.extendClubData = require_data$1.extendClubData;
|
|
18
20
|
exports.extendYearData = require_data$1.extendYearData;
|
|
19
21
|
exports.getAllClubs = require_clubs.getAllClubs;
|
|
20
22
|
exports.getAllYears = require_years.getAllYears;
|
|
21
23
|
exports.getAttd = require_all_fields.getAttd;
|
|
22
24
|
exports.getBS = require_all_fields.getBS;
|
|
25
|
+
exports.getClubById = require_clubs.getClubById;
|
|
23
26
|
exports.getClubBySlug = require_clubs.getClubBySlug;
|
|
27
|
+
exports.getClubInfoLabel = require_club_dictionary.getClubInfoLabel;
|
|
28
|
+
exports.getClubInfoLabelWithOptions = require_club_dictionary.getClubInfoLabelWithOptions;
|
|
24
29
|
exports.getClubsByCategory = require_clubs.getClubsByCategory;
|
|
25
30
|
exports.getExpense = require_all_fields.getExpense;
|
|
26
31
|
exports.getGeneral = require_all_fields.getGeneral;
|
|
@@ -28,4 +33,5 @@ exports.getLabel = require_dictionary.getLabel;
|
|
|
28
33
|
exports.getLabelWithOptions = require_dictionary.getLabelWithOptions;
|
|
29
34
|
exports.getPL = require_all_fields.getPL;
|
|
30
35
|
exports.getRevenue = require_all_fields.getRevenue;
|
|
31
|
-
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,10 +1,11 @@
|
|
|
1
|
-
import { C as
|
|
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-
|
|
4
|
-
import { t as YearInfo } from "./year-
|
|
3
|
+
import { t as ClubInfo } from "./club-ezWWFvf8.cjs";
|
|
4
|
+
import { t as YearInfo } from "./year-BWTYD69L.cjs";
|
|
5
5
|
import "./types/index.cjs";
|
|
6
|
-
import {
|
|
6
|
+
import { clubInfoDictionary, getClubInfoLabel, getClubInfoLabelWithOptions } from "./club-dictionary.cjs";
|
|
7
|
+
import { getAllClubs, getClubById, getClubBySlug, getClubsByCategory } from "./clubs.cjs";
|
|
7
8
|
import { extendClubData, extendYearData } from "./data.cjs";
|
|
8
9
|
import { getLabel, getLabelWithOptions } from "./dictionary.cjs";
|
|
9
|
-
import { getAllYears } from "./years.cjs";
|
|
10
|
-
export { AllAttdFields, AllBSFields, AllExpenseFields,
|
|
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,10 +1,11 @@
|
|
|
1
|
-
import { C as
|
|
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-
|
|
4
|
-
import { t as YearInfo } from "./year-
|
|
3
|
+
import { t as ClubInfo } from "./club-XBakdLnC.mjs";
|
|
4
|
+
import { t as YearInfo } from "./year-DAScxhDV.mjs";
|
|
5
5
|
import "./types/index.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { clubInfoDictionary, getClubInfoLabel, getClubInfoLabelWithOptions } from "./club-dictionary.mjs";
|
|
7
|
+
import { getAllClubs, getClubById, getClubBySlug, getClubsByCategory } from "./clubs.mjs";
|
|
7
8
|
import { extendClubData, extendYearData } from "./data.mjs";
|
|
8
9
|
import { getLabel, getLabelWithOptions } from "./dictionary.mjs";
|
|
9
|
-
import { getAllYears } from "./years.mjs";
|
|
10
|
-
export { AllAttdFields, AllBSFields, AllExpenseFields,
|
|
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 };
|