@cieloazul310/jclub-financial-utils 0.0.1-alpha.1 → 0.0.1-alpha.3
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 +117 -0
- package/dist/all-fields.d.cts +10 -3
- package/dist/all-fields.d.cts.map +1 -1
- package/dist/all-fields.d.mts +10 -3
- package/dist/all-fields.d.mts.map +1 -1
- package/dist/all-fields.mjs +111 -1
- package/dist/all-fields.mjs.map +1 -1
- package/dist/{club-CcV6Gouv.d.mts → club-CauHQ_x1.d.mts} +1 -1
- package/dist/club-CauHQ_x1.d.mts.map +1 -0
- package/dist/{club-DConAzRZ.d.cts → club-CmkWZe16.d.cts} +1 -1
- package/dist/club-CmkWZe16.d.cts.map +1 -0
- package/dist/{clubs-BF9Y0ITz.mjs → clubs-BitYeQ3W.mjs} +1 -1
- package/dist/{clubs-BF9Y0ITz.mjs.map → clubs-BitYeQ3W.mjs.map} +1 -1
- package/dist/clubs.d.cts +1 -1
- package/dist/clubs.d.mts +1 -1
- package/dist/clubs.mjs +1 -1
- package/dist/{data-Bs9dSa_0.d.cts → data-CEME1ilU.d.mts} +7 -2
- package/dist/data-CEME1ilU.d.mts.map +1 -0
- package/dist/{data-c1kTjXyV.d.mts → data-Dr1RQuDQ.d.cts} +7 -2
- package/dist/data-Dr1RQuDQ.d.cts.map +1 -0
- package/dist/data.cjs +34 -0
- package/dist/data.d.cts +9 -0
- package/dist/data.d.cts.map +1 -0
- package/dist/data.d.mts +9 -0
- package/dist/data.d.mts.map +1 -0
- package/dist/data.mjs +34 -0
- package/dist/data.mjs.map +1 -0
- package/dist/{dictionary-LXXa4AIA.mjs → dictionary-C5g3hCzq.mjs} +1 -1
- package/dist/{dictionary-LXXa4AIA.mjs.map → dictionary-C5g3hCzq.mjs.map} +1 -1
- package/dist/dictionary.d.cts +1 -1
- package/dist/dictionary.d.mts +1 -1
- package/dist/dictionary.mjs +1 -1
- package/dist/index.cjs +10 -0
- package/dist/index.d.cts +6 -5
- package/dist/index.d.mts +6 -5
- 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.d.cts +2 -2
- package/dist/types/data.d.mts +2 -2
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.mts +4 -4
- package/dist/types/year.d.cts +1 -1
- package/dist/types/year.d.mts +1 -1
- package/dist/{year-C02MQex_.d.mts → year-YIR3AeyZ.d.mts} +1 -1
- package/dist/year-YIR3AeyZ.d.mts.map +1 -0
- package/dist/{year-CSrJssAF.d.cts → year-uMcmlIjv.d.cts} +1 -1
- package/dist/year-uMcmlIjv.d.cts.map +1 -0
- package/dist/{years-6Ii8ZNVQ.mjs → years-BwmUZcK_.mjs} +1 -1
- package/dist/{years-6Ii8ZNVQ.mjs.map → years-BwmUZcK_.mjs.map} +1 -1
- package/dist/years.d.cts +1 -1
- package/dist/years.d.mts +1 -1
- package/dist/years.mjs +1 -1
- package/package.json +3 -3
- package/dist/club-CcV6Gouv.d.mts.map +0 -1
- package/dist/club-DConAzRZ.d.cts.map +0 -1
- package/dist/data-Bs9dSa_0.d.cts.map +0 -1
- package/dist/data-c1kTjXyV.d.mts.map +0 -1
- package/dist/year-C02MQex_.d.mts.map +0 -1
- package/dist/year-CSrJssAF.d.cts.map +0 -1
- /package/dist/{club-CCls7mTR.mjs → club-Dyqgxvkt.mjs} +0 -0
- /package/dist/{data-BI1o8Mn-.mjs → data-vII377kw.mjs} +0 -0
- /package/dist/{year-0HxxyYb_.mjs → year-D3WZVmTU.mjs} +0 -0
package/dist/all-fields.cjs
CHANGED
|
@@ -84,6 +84,116 @@ const allSortableFields = [
|
|
|
84
84
|
...attdFields
|
|
85
85
|
];
|
|
86
86
|
const allFields = [...generalFields, ...allSortableFields];
|
|
87
|
+
function getGeneral(datum) {
|
|
88
|
+
const { id, name, slug, fullname, year, license, category } = datum;
|
|
89
|
+
return {
|
|
90
|
+
id,
|
|
91
|
+
name,
|
|
92
|
+
slug,
|
|
93
|
+
fullname,
|
|
94
|
+
year,
|
|
95
|
+
license,
|
|
96
|
+
category
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
function getSeasonResult(datum) {
|
|
100
|
+
const { rank, points, ppg, elevation } = datum;
|
|
101
|
+
return {
|
|
102
|
+
rank,
|
|
103
|
+
points,
|
|
104
|
+
ppg,
|
|
105
|
+
elevation
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function getPL(datum) {
|
|
109
|
+
const { revenue, expense, op_profit, no_rev, no_exp, ordinary_profit, sp_rev, sp_exp, profit_before_tax, tax, profit, related_revenue } = datum;
|
|
110
|
+
return {
|
|
111
|
+
revenue,
|
|
112
|
+
expense,
|
|
113
|
+
op_profit,
|
|
114
|
+
no_rev,
|
|
115
|
+
no_exp,
|
|
116
|
+
ordinary_profit,
|
|
117
|
+
sp_rev,
|
|
118
|
+
sp_exp,
|
|
119
|
+
profit_before_tax,
|
|
120
|
+
tax,
|
|
121
|
+
profit,
|
|
122
|
+
related_revenue
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
function getBS(datum) {
|
|
126
|
+
const { assets, curr_assets, fixed_assets, liabilities, curr_liabilities, fixed_liabilities, net_worth, capital_stock, capital_surplus, retained_earnings, profit } = datum;
|
|
127
|
+
return {
|
|
128
|
+
assets,
|
|
129
|
+
curr_assets,
|
|
130
|
+
fixed_assets,
|
|
131
|
+
liabilities,
|
|
132
|
+
curr_liabilities,
|
|
133
|
+
fixed_liabilities,
|
|
134
|
+
net_worth,
|
|
135
|
+
capital_stock,
|
|
136
|
+
capital_surplus,
|
|
137
|
+
retained_earnings,
|
|
138
|
+
profit
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
function getRevenue(datum) {
|
|
142
|
+
const { revenue, sponsor, ticket, broadcast, academy_rev, women_rev, goods_rev, transfer_rev, transfer_int_rev, transfer_dom_rev, other_revs, related_revenue } = datum;
|
|
143
|
+
return {
|
|
144
|
+
revenue,
|
|
145
|
+
sponsor,
|
|
146
|
+
ticket,
|
|
147
|
+
broadcast,
|
|
148
|
+
academy_rev,
|
|
149
|
+
women_rev,
|
|
150
|
+
goods_rev,
|
|
151
|
+
transfer_rev,
|
|
152
|
+
transfer_int_rev,
|
|
153
|
+
transfer_dom_rev,
|
|
154
|
+
other_revs,
|
|
155
|
+
related_revenue
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
function getExpense(datum) {
|
|
159
|
+
const { expense, general_exp, salary, transfer_exp, transfer_int_exp, transfer_dom_exp, game_exp, team_exp, academy_exp, women_exp, goods_exp, other_cost, manage_exp, sga } = datum;
|
|
160
|
+
return {
|
|
161
|
+
expense,
|
|
162
|
+
general_exp,
|
|
163
|
+
salary,
|
|
164
|
+
transfer_exp,
|
|
165
|
+
transfer_int_exp,
|
|
166
|
+
transfer_dom_exp,
|
|
167
|
+
game_exp,
|
|
168
|
+
team_exp,
|
|
169
|
+
academy_exp,
|
|
170
|
+
women_exp,
|
|
171
|
+
goods_exp,
|
|
172
|
+
other_cost,
|
|
173
|
+
manage_exp,
|
|
174
|
+
sga
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
function getAttd(datum) {
|
|
178
|
+
const { 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, ticket } = datum;
|
|
179
|
+
return {
|
|
180
|
+
all_attd,
|
|
181
|
+
all_games,
|
|
182
|
+
average_attd,
|
|
183
|
+
unit_price,
|
|
184
|
+
league_attd,
|
|
185
|
+
league_games,
|
|
186
|
+
leaguecup_attd,
|
|
187
|
+
leaguecup_games,
|
|
188
|
+
po_attd,
|
|
189
|
+
po_games,
|
|
190
|
+
acl_attd,
|
|
191
|
+
acl_games,
|
|
192
|
+
second_attd,
|
|
193
|
+
second_games,
|
|
194
|
+
ticket
|
|
195
|
+
};
|
|
196
|
+
}
|
|
87
197
|
|
|
88
198
|
//#endregion
|
|
89
199
|
exports.allFields = allFields;
|
|
@@ -92,5 +202,12 @@ exports.attdFields = attdFields;
|
|
|
92
202
|
exports.bsFields = bsFields;
|
|
93
203
|
exports.expenseFields = expenseFields;
|
|
94
204
|
exports.generalFields = generalFields;
|
|
205
|
+
exports.getAttd = getAttd;
|
|
206
|
+
exports.getBS = getBS;
|
|
207
|
+
exports.getExpense = getExpense;
|
|
208
|
+
exports.getGeneral = getGeneral;
|
|
209
|
+
exports.getPL = getPL;
|
|
210
|
+
exports.getRevenue = getRevenue;
|
|
211
|
+
exports.getSeasonResult = getSeasonResult;
|
|
95
212
|
exports.plFields = plFields;
|
|
96
213
|
exports.revenueFields = revenueFields;
|
package/dist/all-fields.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as FinancialDatum, c as Revenue, l as SeasonResult, n as BS, o as General, r as Expense, s as PL, t as Attd, u as SortalbeKeys } from "./data-Dr1RQuDQ.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/all-fields.d.ts
|
|
4
4
|
declare const generalFields: (keyof General | keyof SeasonResult)[];
|
|
@@ -7,8 +7,15 @@ declare const bsFields: (keyof BS)[];
|
|
|
7
7
|
declare const revenueFields: (keyof Revenue)[];
|
|
8
8
|
declare const expenseFields: (keyof Expense)[];
|
|
9
9
|
declare const attdFields: (keyof Attd)[];
|
|
10
|
-
declare const allSortableFields:
|
|
10
|
+
declare const allSortableFields: SortalbeKeys[];
|
|
11
11
|
declare const allFields: (keyof FinancialDatum)[];
|
|
12
|
+
declare function getGeneral(datum: FinancialDatum): General;
|
|
13
|
+
declare function getSeasonResult(datum: FinancialDatum): SeasonResult;
|
|
14
|
+
declare function getPL(datum: FinancialDatum): PL;
|
|
15
|
+
declare function getBS(datum: FinancialDatum): BS;
|
|
16
|
+
declare function getRevenue(datum: FinancialDatum): Revenue;
|
|
17
|
+
declare function getExpense(datum: FinancialDatum): Expense;
|
|
18
|
+
declare function getAttd(datum: FinancialDatum): Attd;
|
|
12
19
|
//#endregion
|
|
13
|
-
export { allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, plFields, revenueFields };
|
|
20
|
+
export { allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, getAttd, getBS, getExpense, getGeneral, getPL, getRevenue, getSeasonResult, plFields, revenueFields };
|
|
14
21
|
//# sourceMappingURL=all-fields.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-fields.d.cts","names":[],"sources":["../src/all-fields.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"all-fields.d.cts","names":[],"sources":["../src/all-fields.ts"],"sourcesContent":[],"mappings":";;;cAYa,sBAAsB,gBAAgB;cAStC,iBAAiB;AATjB,cAuBA,QAhBZ,EAPkC,CAAA,MAuBL,EAvBqB,CAAA,EAAA;AAStC,cA0BA,aA1BmB,EAAA,CAAA,MA0BG,OA1BH,CAAA,EAAA;AAcnB,cAwBA,aAxBmB,EAAA,CAAA,MAwBG,OAxBH,CAAA,EAAA;AAYnB,cA0BA,UA1BsB,EAAA,CAAA,MA0BH,IA1BU,CAAA,EAAA;AAY7B,cA+BA,iBA/BsB,EA+BH,YA/BU,EAAA;AAc7B,cAwBA,SAxBmB,EAAA,CAAI,MAwBL,cAxBK,CAAA,EAAA;AAiBvB,iBAYG,UAAA,CAZgB,KAAA,EAYE,cAZU,CAAA,EAYO,OAZP;AAO/B,iBAUG,eAAA,CAVe,KAAc,EAUN,cAVM,CAAA,EAUW,YAVX;AAK7B,iBAUA,KAAA,CAVkB,KAAA,EAUL,cAVsB,CAAO,EAUZ,EAVY;AAK1C,iBAoCA,KAAA,CApCe,KAAQ,EAoCV,cApC2B,CAAA,EAoCV,EApCU;AAKxC,iBA4DA,UAAA,CA5Da,KAAiB,EA4DZ,cA5Dc,CAAA,EA4DG,OA5DH;AA+BhC,iBA4DA,UAAA,CA5Da,KAAiB,EA4DZ,cA5Dc,CAAA,EA4DG,OA5DH;AA6BhC,iBAkEA,OAAA,CAlEkB,KAAA,EAkEH,cAlE2B,CAAA,EAkEV,IAlEU"}
|
package/dist/all-fields.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as FinancialDatum, c as Revenue, l as SeasonResult, n as BS, o as General, r as Expense, s as PL, t as Attd, u as SortalbeKeys } from "./data-CEME1ilU.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/all-fields.d.ts
|
|
4
4
|
declare const generalFields: (keyof General | keyof SeasonResult)[];
|
|
@@ -7,8 +7,15 @@ declare const bsFields: (keyof BS)[];
|
|
|
7
7
|
declare const revenueFields: (keyof Revenue)[];
|
|
8
8
|
declare const expenseFields: (keyof Expense)[];
|
|
9
9
|
declare const attdFields: (keyof Attd)[];
|
|
10
|
-
declare const allSortableFields:
|
|
10
|
+
declare const allSortableFields: SortalbeKeys[];
|
|
11
11
|
declare const allFields: (keyof FinancialDatum)[];
|
|
12
|
+
declare function getGeneral(datum: FinancialDatum): General;
|
|
13
|
+
declare function getSeasonResult(datum: FinancialDatum): SeasonResult;
|
|
14
|
+
declare function getPL(datum: FinancialDatum): PL;
|
|
15
|
+
declare function getBS(datum: FinancialDatum): BS;
|
|
16
|
+
declare function getRevenue(datum: FinancialDatum): Revenue;
|
|
17
|
+
declare function getExpense(datum: FinancialDatum): Expense;
|
|
18
|
+
declare function getAttd(datum: FinancialDatum): Attd;
|
|
12
19
|
//#endregion
|
|
13
|
-
export { allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, plFields, revenueFields };
|
|
20
|
+
export { allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, getAttd, getBS, getExpense, getGeneral, getPL, getRevenue, getSeasonResult, plFields, revenueFields };
|
|
14
21
|
//# sourceMappingURL=all-fields.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-fields.d.mts","names":[],"sources":["../src/all-fields.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"all-fields.d.mts","names":[],"sources":["../src/all-fields.ts"],"sourcesContent":[],"mappings":";;;cAYa,sBAAsB,gBAAgB;cAStC,iBAAiB;AATjB,cAuBA,QAhBZ,EAAA,CAPkC,MAuBL,EAvBK,CAAgB,EAAA;AAStC,cA0BA,aA1BmB,EAAA,CAAA,MA0BG,OA1BH,CAAA,EAAA;AAcnB,cAwBA,aAxBmB,EAAA,CAAA,MAwBG,OAxBH,CAAA,EAAA;AAYnB,cA0BA,UAfZ,EAXkC,CAAA,MA0BH,IA1BU,CAAA,EAAA;AAY7B,cA+BA,iBA/BsB,EA+BH,YA/BU,EAAA;AAc7B,cAwBA,SAxBmB,EAAA,CAAA,MAwBD,cAxBK,CAAA,EAAA;AAiBvB,iBAYG,UAAA,CANf,KAN+B,EAYE,cAZU,CAAA,EAYO,OAZP;AAO/B,iBAUG,eAAA,CAVe,KAAc,EAUN,cAVM,CAAA,EAUW,YAVX;AAK7B,iBAUA,KAAA,CAVkB,KAAA,EAUL,cAVsB,CAAA,EAUL,EAVY;AAK1C,iBAoCA,KAAA,CApCe,KAAQ,EAoCV,cApC2B,CAAA,EAoCV,EApCU;AAKxC,iBA4DA,UAAA,CA5Da,KAAiB,EA4DZ,cA5Dc,CAAA,EA4DG,OA5DH;AA+BhC,iBA4DA,UAAA,CA5Da,KAAiB,EA4DZ,cA5Dc,CAAA,EA4DG,OA5DH;AA6BhC,iBAkEA,OAAA,CAlEkB,KAAA,EAkEH,cAlE2B,CAAA,EAkEV,IAlEU"}
|
package/dist/all-fields.mjs
CHANGED
|
@@ -83,7 +83,117 @@ const allSortableFields = [
|
|
|
83
83
|
...attdFields
|
|
84
84
|
];
|
|
85
85
|
const allFields = [...generalFields, ...allSortableFields];
|
|
86
|
+
function getGeneral(datum) {
|
|
87
|
+
const { id, name, slug, fullname, year, license, category } = datum;
|
|
88
|
+
return {
|
|
89
|
+
id,
|
|
90
|
+
name,
|
|
91
|
+
slug,
|
|
92
|
+
fullname,
|
|
93
|
+
year,
|
|
94
|
+
license,
|
|
95
|
+
category
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function getSeasonResult(datum) {
|
|
99
|
+
const { rank, points, ppg, elevation } = datum;
|
|
100
|
+
return {
|
|
101
|
+
rank,
|
|
102
|
+
points,
|
|
103
|
+
ppg,
|
|
104
|
+
elevation
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function getPL(datum) {
|
|
108
|
+
const { revenue, expense, op_profit, no_rev, no_exp, ordinary_profit, sp_rev, sp_exp, profit_before_tax, tax, profit, related_revenue } = datum;
|
|
109
|
+
return {
|
|
110
|
+
revenue,
|
|
111
|
+
expense,
|
|
112
|
+
op_profit,
|
|
113
|
+
no_rev,
|
|
114
|
+
no_exp,
|
|
115
|
+
ordinary_profit,
|
|
116
|
+
sp_rev,
|
|
117
|
+
sp_exp,
|
|
118
|
+
profit_before_tax,
|
|
119
|
+
tax,
|
|
120
|
+
profit,
|
|
121
|
+
related_revenue
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
function getBS(datum) {
|
|
125
|
+
const { assets, curr_assets, fixed_assets, liabilities, curr_liabilities, fixed_liabilities, net_worth, capital_stock, capital_surplus, retained_earnings, profit } = datum;
|
|
126
|
+
return {
|
|
127
|
+
assets,
|
|
128
|
+
curr_assets,
|
|
129
|
+
fixed_assets,
|
|
130
|
+
liabilities,
|
|
131
|
+
curr_liabilities,
|
|
132
|
+
fixed_liabilities,
|
|
133
|
+
net_worth,
|
|
134
|
+
capital_stock,
|
|
135
|
+
capital_surplus,
|
|
136
|
+
retained_earnings,
|
|
137
|
+
profit
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
function getRevenue(datum) {
|
|
141
|
+
const { revenue, sponsor, ticket, broadcast, academy_rev, women_rev, goods_rev, transfer_rev, transfer_int_rev, transfer_dom_rev, other_revs, related_revenue } = datum;
|
|
142
|
+
return {
|
|
143
|
+
revenue,
|
|
144
|
+
sponsor,
|
|
145
|
+
ticket,
|
|
146
|
+
broadcast,
|
|
147
|
+
academy_rev,
|
|
148
|
+
women_rev,
|
|
149
|
+
goods_rev,
|
|
150
|
+
transfer_rev,
|
|
151
|
+
transfer_int_rev,
|
|
152
|
+
transfer_dom_rev,
|
|
153
|
+
other_revs,
|
|
154
|
+
related_revenue
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
function getExpense(datum) {
|
|
158
|
+
const { expense, general_exp, salary, transfer_exp, transfer_int_exp, transfer_dom_exp, game_exp, team_exp, academy_exp, women_exp, goods_exp, other_cost, manage_exp, sga } = datum;
|
|
159
|
+
return {
|
|
160
|
+
expense,
|
|
161
|
+
general_exp,
|
|
162
|
+
salary,
|
|
163
|
+
transfer_exp,
|
|
164
|
+
transfer_int_exp,
|
|
165
|
+
transfer_dom_exp,
|
|
166
|
+
game_exp,
|
|
167
|
+
team_exp,
|
|
168
|
+
academy_exp,
|
|
169
|
+
women_exp,
|
|
170
|
+
goods_exp,
|
|
171
|
+
other_cost,
|
|
172
|
+
manage_exp,
|
|
173
|
+
sga
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
function getAttd(datum) {
|
|
177
|
+
const { 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, ticket } = datum;
|
|
178
|
+
return {
|
|
179
|
+
all_attd,
|
|
180
|
+
all_games,
|
|
181
|
+
average_attd,
|
|
182
|
+
unit_price,
|
|
183
|
+
league_attd,
|
|
184
|
+
league_games,
|
|
185
|
+
leaguecup_attd,
|
|
186
|
+
leaguecup_games,
|
|
187
|
+
po_attd,
|
|
188
|
+
po_games,
|
|
189
|
+
acl_attd,
|
|
190
|
+
acl_games,
|
|
191
|
+
second_attd,
|
|
192
|
+
second_games,
|
|
193
|
+
ticket
|
|
194
|
+
};
|
|
195
|
+
}
|
|
86
196
|
|
|
87
197
|
//#endregion
|
|
88
|
-
export { allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, plFields, revenueFields };
|
|
198
|
+
export { allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, getAttd, getBS, getExpense, getGeneral, getPL, getRevenue, getSeasonResult, plFields, revenueFields };
|
|
89
199
|
//# sourceMappingURL=all-fields.mjs.map
|
package/dist/all-fields.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-fields.mjs","names":["generalFields: (keyof General | keyof SeasonResult)[]","plFields: (keyof PL)[]","bsFields: (keyof BS)[]","revenueFields: (keyof Revenue)[]","expenseFields: (keyof Expense)[]","attdFields: (keyof Attd)[]","allFields: (keyof FinancialDatum)[]"],"sources":["../src/all-fields.ts"],"sourcesContent":["import type {\n General,\n SeasonResult,\n PL,\n BS,\n Revenue,\n Expense,\n Attd,\n FinancialDatum,\n} from \"./types/data\";\n\nexport const generalFields: (keyof General | keyof SeasonResult)[] = [\n \"fullname\",\n \"license\",\n \"rank\",\n \"points\",\n \"ppg\",\n \"elevation\",\n];\n\nexport const plFields: (keyof PL)[] = [\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];\nexport const bsFields: (keyof BS)[] = [\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];\nexport const revenueFields: (keyof 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];\nexport const expenseFields: (keyof Expense)[] = [\n \"salary\",\n \"transfer_exp\",\n \"transfer_int_exp\",\n \"transfer_dom_exp\",\n \"game_exp\",\n \"team_exp\",\n \"academy_exp\",\n \"women_exp\",\n \"goods_exp\",\n \"other_cost\",\n \"manage_exp\",\n \"sga\",\n];\nexport const attdFields: (keyof Attd)[] = [\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];\n\nexport const allSortableFields = [\n ...plFields,\n ...bsFields,\n ...revenueFields,\n ...expenseFields,\n ...attdFields,\n];\nexport const allFields: (keyof FinancialDatum)[] = [\n ...generalFields,\n ...allSortableFields,\n];\n"],"mappings":";
|
|
1
|
+
{"version":3,"file":"all-fields.mjs","names":["generalFields: (keyof General | keyof SeasonResult)[]","plFields: (keyof PL)[]","bsFields: (keyof BS)[]","revenueFields: (keyof Revenue)[]","expenseFields: (keyof Expense)[]","attdFields: (keyof Attd)[]","allSortableFields: SortalbeKeys[]","allFields: (keyof FinancialDatum)[]"],"sources":["../src/all-fields.ts"],"sourcesContent":["import type {\n General,\n SeasonResult,\n PL,\n BS,\n Revenue,\n Expense,\n Attd,\n FinancialDatum,\n SortalbeKeys,\n} from \"./types/data\";\n\nexport const generalFields: (keyof General | keyof SeasonResult)[] = [\n \"fullname\",\n \"license\",\n \"rank\",\n \"points\",\n \"ppg\",\n \"elevation\",\n];\n\nexport const plFields: (keyof PL)[] = [\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];\nexport const bsFields: (keyof BS)[] = [\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];\nexport const revenueFields: (keyof 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];\nexport const expenseFields: (keyof Expense)[] = [\n \"salary\",\n \"transfer_exp\",\n \"transfer_int_exp\",\n \"transfer_dom_exp\",\n \"game_exp\",\n \"team_exp\",\n \"academy_exp\",\n \"women_exp\",\n \"goods_exp\",\n \"other_cost\",\n \"manage_exp\",\n \"sga\",\n];\nexport const attdFields: (keyof Attd)[] = [\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];\n\nexport const allSortableFields: SortalbeKeys[] = [\n ...plFields,\n ...bsFields,\n ...revenueFields,\n ...expenseFields,\n ...attdFields,\n];\nexport const allFields: (keyof FinancialDatum)[] = [\n ...generalFields,\n ...allSortableFields,\n];\n\nexport function getGeneral(datum: FinancialDatum): General {\n const { id, name, slug, fullname, year, license, category } = datum;\n return { id, name, slug, fullname, year, license, category };\n}\n\nexport function getSeasonResult(datum: FinancialDatum): SeasonResult {\n const { rank, points, ppg, elevation } = datum;\n return { rank, points, ppg, elevation };\n}\n\nexport function getPL(datum: FinancialDatum): PL {\n const {\n revenue,\n expense,\n op_profit,\n no_rev,\n no_exp,\n ordinary_profit,\n sp_rev,\n sp_exp,\n profit_before_tax,\n tax,\n profit,\n related_revenue,\n } = datum;\n return {\n revenue,\n expense,\n op_profit,\n no_rev,\n no_exp,\n ordinary_profit,\n sp_rev,\n sp_exp,\n profit_before_tax,\n tax,\n profit,\n related_revenue,\n };\n}\n\nexport function getBS(datum: FinancialDatum): BS {\n const {\n assets,\n curr_assets,\n fixed_assets,\n liabilities,\n curr_liabilities,\n fixed_liabilities,\n net_worth,\n capital_stock,\n capital_surplus,\n retained_earnings,\n profit,\n } = datum;\n return {\n assets,\n curr_assets,\n fixed_assets,\n liabilities,\n curr_liabilities,\n fixed_liabilities,\n net_worth,\n capital_stock,\n capital_surplus,\n retained_earnings,\n profit,\n };\n}\n\nexport function getRevenue(datum: FinancialDatum): Revenue {\n const {\n revenue,\n sponsor,\n ticket,\n broadcast,\n academy_rev,\n women_rev,\n goods_rev,\n transfer_rev,\n transfer_int_rev,\n transfer_dom_rev,\n other_revs,\n related_revenue,\n } = datum;\n return {\n revenue,\n sponsor,\n ticket,\n broadcast,\n academy_rev,\n women_rev,\n goods_rev,\n transfer_rev,\n transfer_int_rev,\n transfer_dom_rev,\n other_revs,\n related_revenue,\n };\n}\n\nexport function getExpense(datum: FinancialDatum): Expense {\n const {\n expense,\n general_exp,\n salary,\n transfer_exp,\n transfer_int_exp,\n transfer_dom_exp,\n game_exp,\n team_exp,\n academy_exp,\n women_exp,\n goods_exp,\n other_cost,\n manage_exp,\n sga,\n } = datum;\n return {\n expense,\n general_exp,\n salary,\n transfer_exp,\n transfer_int_exp,\n transfer_dom_exp,\n game_exp,\n team_exp,\n academy_exp,\n women_exp,\n goods_exp,\n other_cost,\n manage_exp,\n sga,\n };\n}\n\nexport function getAttd(datum: FinancialDatum): Attd {\n const {\n all_attd,\n all_games,\n average_attd,\n unit_price,\n league_attd,\n league_games,\n leaguecup_attd,\n leaguecup_games,\n po_attd,\n po_games,\n acl_attd,\n acl_games,\n second_attd,\n second_games,\n ticket,\n } = datum;\n return {\n all_attd,\n all_games,\n average_attd,\n unit_price,\n league_attd,\n league_games,\n leaguecup_attd,\n leaguecup_games,\n po_attd,\n po_games,\n acl_attd,\n acl_games,\n second_attd,\n second_games,\n ticket,\n };\n}\n"],"mappings":";AAYA,MAAaA,gBAAwD;CACnE;CACA;CACA;CACA;CACA;CACA;CACD;AAED,MAAaC,WAAyB;CACpC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AACD,MAAaC,WAAyB;CACpC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AACD,MAAaC,gBAAmC;CAC9C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AACD,MAAaC,gBAAmC;CAC9C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AACD,MAAaC,aAA6B;CACxC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAED,MAAaC,oBAAoC;CAC/C,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACJ;AACD,MAAaC,YAAsC,CACjD,GAAG,eACH,GAAG,kBACJ;AAED,SAAgB,WAAW,OAAgC;CACzD,MAAM,EAAE,IAAI,MAAM,MAAM,UAAU,MAAM,SAAS,aAAa;AAC9D,QAAO;EAAE;EAAI;EAAM;EAAM;EAAU;EAAM;EAAS;EAAU;;AAG9D,SAAgB,gBAAgB,OAAqC;CACnE,MAAM,EAAE,MAAM,QAAQ,KAAK,cAAc;AACzC,QAAO;EAAE;EAAM;EAAQ;EAAK;EAAW;;AAGzC,SAAgB,MAAM,OAA2B;CAC/C,MAAM,EACJ,SACA,SACA,WACA,QACA,QACA,iBACA,QACA,QACA,mBACA,KACA,QACA,oBACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;;AAGH,SAAgB,MAAM,OAA2B;CAC/C,MAAM,EACJ,QACA,aACA,cACA,aACA,kBACA,mBACA,WACA,eACA,iBACA,mBACA,WACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;;AAGH,SAAgB,WAAW,OAAgC;CACzD,MAAM,EACJ,SACA,SACA,QACA,WACA,aACA,WACA,WACA,cACA,kBACA,kBACA,YACA,oBACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;;AAGH,SAAgB,WAAW,OAAgC;CACzD,MAAM,EACJ,SACA,aACA,QACA,cACA,kBACA,kBACA,UACA,UACA,aACA,WACA,WACA,YACA,YACA,QACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;;AAGH,SAAgB,QAAQ,OAA6B;CACnD,MAAM,EACJ,UACA,WACA,cACA,YACA,aACA,cACA,gBACA,iBACA,SACA,UACA,UACA,WACA,aACA,cACA,WACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"club-CauHQ_x1.d.mts","names":[],"sources":["../src/types/club.ts"],"sourcesContent":[],"mappings":";KAAY,QAAA;EAAA,EAAA,EAAA,MAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"club-CmkWZe16.d.cts","names":[],"sources":["../src/types/club.ts"],"sourcesContent":[],"mappings":";KAAY,QAAA;EAAA,EAAA,EAAA,MAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clubs-
|
|
1
|
+
{"version":3,"file":"clubs-BitYeQ3W.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 return clubs 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;AAC5B,QAAOA;;AAGT,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"}
|
package/dist/clubs.d.cts
CHANGED
package/dist/clubs.d.mts
CHANGED
package/dist/clubs.mjs
CHANGED
|
@@ -153,6 +153,11 @@ type Attd = {
|
|
|
153
153
|
unit_price: number | null;
|
|
154
154
|
};
|
|
155
155
|
type FinancialDatum = General & SeasonResult & PL & BS & Revenue & Expense & Attd;
|
|
156
|
+
type SortalbeKeys = keyof PL | keyof BS | keyof Revenue | keyof Expense | keyof Attd;
|
|
157
|
+
type ExtendedFinancialDatum = General & SeasonResult & Record<SortalbeKeys, {
|
|
158
|
+
value: number | null;
|
|
159
|
+
growth: number | null;
|
|
160
|
+
}>;
|
|
156
161
|
//#endregion
|
|
157
|
-
export {
|
|
158
|
-
//# sourceMappingURL=data-
|
|
162
|
+
export { FinancialDatum as a, Revenue as c, ExtendedFinancialDatum as i, SeasonResult as l, BS as n, General as o, Expense as r, PL as s, Attd as t, SortalbeKeys as u };
|
|
163
|
+
//# sourceMappingURL=data-CEME1ilU.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-CEME1ilU.d.mts","names":[],"sources":["../src/types/data.ts"],"sourcesContent":[],"mappings":";KAAY,OAAA;EAAA,EAAA,EAAA,MAAO;EASP,IAAA,EAAA,MAAA;EAMA,IAAA,EAAE,MAAA;EA0BF,QAAE,EAAA,MAAA;EAwBF,IAAA,EAAA,MAAO;EA0BP,QAAA,EAAO,MAAA;EA8BP,OAAI,EAAA,MAAA,GAAA,IAAA;AAiChB,CAAA;AAA6B,KAjJjB,YAAA,GAiJiB;EAC3B,IAAA,EAAA,MAAA;EACA,MAAA,EAAA,MAAA;EACA,GAAA,EAAA,MAAA;EACA,SAAA,EAAA,IAAA,GAAA,IAAA,GAAA,IAAA;CACA;AACA,KAjJU,EAAA,GAiJV;EAAI;EAEM,OAAA,EAAA,MAAY;EACd;EACA,OAAA,EAAA,MAAA;EACA;EACA,SAAA,EAAA,MAAA;EACA;EAAI,MAAA,EAAA,MAAA,GAAA,IAAA;EAEF;EAAyB,MAAA,EAAA,MAAA,GAAA,IAAA;EACnC;EACO,eAAA,EAAA,MAAA;EAAP;EAAM,MAAA,EAAA,MAAA,GAAA,IAAA;;;;;;;;;;;;KAlII,EAAA;;;;;;;;;;;;;;;;;;;;;;;;KAwBA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;KA0BA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8BA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiCA,cAAA,GAAiB,UAC3B,eACA,KACA,KACA,UACA,UACA;KAEU,YAAA,SACF,WACA,WACA,gBACA,gBACA;KAEE,sBAAA,GAAyB,UACnC,eACA,OAAO"}
|
|
@@ -153,6 +153,11 @@ type Attd = {
|
|
|
153
153
|
unit_price: number | null;
|
|
154
154
|
};
|
|
155
155
|
type FinancialDatum = General & SeasonResult & PL & BS & Revenue & Expense & Attd;
|
|
156
|
+
type SortalbeKeys = keyof PL | keyof BS | keyof Revenue | keyof Expense | keyof Attd;
|
|
157
|
+
type ExtendedFinancialDatum = General & SeasonResult & Record<SortalbeKeys, {
|
|
158
|
+
value: number | null;
|
|
159
|
+
growth: number | null;
|
|
160
|
+
}>;
|
|
156
161
|
//#endregion
|
|
157
|
-
export {
|
|
158
|
-
//# sourceMappingURL=data-
|
|
162
|
+
export { FinancialDatum as a, Revenue as c, ExtendedFinancialDatum as i, SeasonResult as l, BS as n, General as o, Expense as r, PL as s, Attd as t, SortalbeKeys as u };
|
|
163
|
+
//# sourceMappingURL=data-Dr1RQuDQ.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-Dr1RQuDQ.d.cts","names":[],"sources":["../src/types/data.ts"],"sourcesContent":[],"mappings":";KAAY,OAAA;EAAA,EAAA,EAAA,MAAO;EASP,IAAA,EAAA,MAAA;EAMA,IAAA,EAAE,MAAA;EA0BF,QAAE,EAAA,MAAA;EAwBF,IAAA,EAAA,MAAO;EA0BP,QAAA,EAAO,MAAA;EA8BP,OAAI,EAAA,MAAA,GAAA,IAAA;AAiChB,CAAA;AAA6B,KAjJjB,YAAA,GAiJiB;EAC3B,IAAA,EAAA,MAAA;EACA,MAAA,EAAA,MAAA;EACA,GAAA,EAAA,MAAA;EACA,SAAA,EAAA,IAAA,GAAA,IAAA,GAAA,IAAA;CACA;AACA,KAjJU,EAAA,GAiJV;EAAI;EAEM,OAAA,EAAA,MAAY;EACd;EACA,OAAA,EAAA,MAAA;EACA;EACA,SAAA,EAAA,MAAA;EACA;EAAI,MAAA,EAAA,MAAA,GAAA,IAAA;EAEF;EAAyB,MAAA,EAAA,MAAA,GAAA,IAAA;EACnC;EACO,eAAA,EAAA,MAAA;EAAP;EAAM,MAAA,EAAA,MAAA,GAAA,IAAA;;;;;;;;;;;;KAlII,EAAA;;;;;;;;;;;;;;;;;;;;;;;;KAwBA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;KA0BA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8BA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiCA,cAAA,GAAiB,UAC3B,eACA,KACA,KACA,UACA,UACA;KAEU,YAAA,SACF,WACA,WACA,gBACA,gBACA;KAEE,sBAAA,GAAyB,UACnC,eACA,OAAO"}
|
package/dist/data.cjs
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const require_all_fields = require('./all-fields.cjs');
|
|
2
|
+
|
|
3
|
+
//#region src/data.ts
|
|
4
|
+
function processDatum(datum, prev) {
|
|
5
|
+
const general = require_all_fields.getGeneral(datum);
|
|
6
|
+
const seasonResult = require_all_fields.getSeasonResult(datum);
|
|
7
|
+
const obj = {
|
|
8
|
+
...general,
|
|
9
|
+
...seasonResult
|
|
10
|
+
};
|
|
11
|
+
for (const key of require_all_fields.allSortableFields) {
|
|
12
|
+
const value = datum[key];
|
|
13
|
+
obj[key] = {
|
|
14
|
+
value,
|
|
15
|
+
growth: value && prev?.[key] ? value - prev[key] : null
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
return obj;
|
|
19
|
+
}
|
|
20
|
+
function extendClubData(data) {
|
|
21
|
+
return [...data].sort((a, b) => a.year - b.year).map((d, index, arr) => {
|
|
22
|
+
return processDatum(d, index === 0 ? null : arr[index - 1]);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function extendYearData(data, prevData) {
|
|
26
|
+
return data.map((datum) => {
|
|
27
|
+
const prev = prevData?.find(({ slug }) => slug === datum.slug);
|
|
28
|
+
return processDatum(datum, prev);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
exports.extendClubData = extendClubData;
|
|
34
|
+
exports.extendYearData = extendYearData;
|
package/dist/data.d.cts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { a as FinancialDatum, i as ExtendedFinancialDatum } from "./data-Dr1RQuDQ.cjs";
|
|
2
|
+
import "./types/index.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/data.d.ts
|
|
5
|
+
declare function extendClubData(data: FinancialDatum[]): ExtendedFinancialDatum[];
|
|
6
|
+
declare function extendYearData(data: FinancialDatum[], prevData: FinancialDatum[] | null): ExtendedFinancialDatum[];
|
|
7
|
+
//#endregion
|
|
8
|
+
export { extendClubData, extendYearData };
|
|
9
|
+
//# sourceMappingURL=data.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.d.cts","names":[],"sources":["../src/data.ts"],"sourcesContent":[],"mappings":";;;;iBAqBgB,cAAA,OACR,mBACL;iBASa,cAAA,OACR,4BACI,0BACT"}
|
package/dist/data.d.mts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { a as FinancialDatum, i as ExtendedFinancialDatum } from "./data-CEME1ilU.mjs";
|
|
2
|
+
import "./types/index.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/data.d.ts
|
|
5
|
+
declare function extendClubData(data: FinancialDatum[]): ExtendedFinancialDatum[];
|
|
6
|
+
declare function extendYearData(data: FinancialDatum[], prevData: FinancialDatum[] | null): ExtendedFinancialDatum[];
|
|
7
|
+
//#endregion
|
|
8
|
+
export { extendClubData, extendYearData };
|
|
9
|
+
//# sourceMappingURL=data.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.d.mts","names":[],"sources":["../src/data.ts"],"sourcesContent":[],"mappings":";;;;iBAqBgB,cAAA,OACR,mBACL;iBASa,cAAA,OACR,4BACI,0BACT"}
|
package/dist/data.mjs
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { allSortableFields, getGeneral, getSeasonResult } from "./all-fields.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/data.ts
|
|
4
|
+
function processDatum(datum, prev) {
|
|
5
|
+
const general = getGeneral(datum);
|
|
6
|
+
const seasonResult = getSeasonResult(datum);
|
|
7
|
+
const obj = {
|
|
8
|
+
...general,
|
|
9
|
+
...seasonResult
|
|
10
|
+
};
|
|
11
|
+
for (const key of allSortableFields) {
|
|
12
|
+
const value = datum[key];
|
|
13
|
+
obj[key] = {
|
|
14
|
+
value,
|
|
15
|
+
growth: value && prev?.[key] ? value - prev[key] : null
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
return obj;
|
|
19
|
+
}
|
|
20
|
+
function extendClubData(data) {
|
|
21
|
+
return [...data].sort((a, b) => a.year - b.year).map((d, index, arr) => {
|
|
22
|
+
return processDatum(d, index === 0 ? null : arr[index - 1]);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function extendYearData(data, prevData) {
|
|
26
|
+
return data.map((datum) => {
|
|
27
|
+
const prev = prevData?.find(({ slug }) => slug === datum.slug);
|
|
28
|
+
return processDatum(datum, prev);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
export { extendClubData, extendYearData };
|
|
34
|
+
//# sourceMappingURL=data.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.mjs","names":["obj: ExtendedFinancialDatum"],"sources":["../src/data.ts"],"sourcesContent":["import { allSortableFields, getGeneral, getSeasonResult } from \"./all-fields\";\nimport type { FinancialDatum, ExtendedFinancialDatum } from \"./types\";\n\nfunction processDatum(datum: FinancialDatum, prev?: FinancialDatum | null) {\n const general = getGeneral(datum);\n const seasonResult = getSeasonResult(datum);\n const obj: ExtendedFinancialDatum = {\n ...general,\n ...seasonResult,\n } as any;\n\n for (const key of allSortableFields) {\n const value = datum[key];\n obj[key] = {\n value,\n growth: value && prev?.[key] ? value - prev[key] : null,\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":";;;AAGA,SAAS,aAAa,OAAuB,MAA8B;CACzE,MAAM,UAAU,WAAW,MAAM;CACjC,MAAM,eAAe,gBAAgB,MAAM;CAC3C,MAAMA,MAA8B;EAClC,GAAG;EACH,GAAG;EACJ;AAED,MAAK,MAAM,OAAO,mBAAmB;EACnC,MAAM,QAAQ,MAAM;AACpB,MAAI,OAAO;GACT;GACA,QAAQ,SAAS,OAAO,OAAO,QAAQ,KAAK,OAAO;GACpD;;AAEH,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary-
|
|
1
|
+
{"version":3,"file":"dictionary-C5g3hCzq.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"}
|
package/dist/dictionary.d.cts
CHANGED
package/dist/dictionary.d.mts
CHANGED
package/dist/dictionary.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const require_all_fields = require('./all-fields.cjs');
|
|
2
2
|
const require_clubs = require('./clubs-B6WFNimH.cjs');
|
|
3
|
+
const require_data = require('./data.cjs');
|
|
3
4
|
const require_dictionary = require('./dictionary-BzN32kPK.cjs');
|
|
4
5
|
const require_years = require('./years-DRN0nquf.cjs');
|
|
5
6
|
require('./types/index.cjs');
|
|
@@ -9,12 +10,21 @@ exports.allSortableFields = require_all_fields.allSortableFields;
|
|
|
9
10
|
exports.attdFields = require_all_fields.attdFields;
|
|
10
11
|
exports.bsFields = require_all_fields.bsFields;
|
|
11
12
|
exports.expenseFields = require_all_fields.expenseFields;
|
|
13
|
+
exports.extendClubData = require_data.extendClubData;
|
|
14
|
+
exports.extendYearData = require_data.extendYearData;
|
|
12
15
|
exports.generalFields = require_all_fields.generalFields;
|
|
13
16
|
exports.getAllClubs = require_clubs.getAllClubs;
|
|
14
17
|
exports.getAllYears = require_years.getAllYears;
|
|
18
|
+
exports.getAttd = require_all_fields.getAttd;
|
|
19
|
+
exports.getBS = require_all_fields.getBS;
|
|
15
20
|
exports.getClubBySlug = require_clubs.getClubBySlug;
|
|
16
21
|
exports.getClubsByCategory = require_clubs.getClubsByCategory;
|
|
22
|
+
exports.getExpense = require_all_fields.getExpense;
|
|
23
|
+
exports.getGeneral = require_all_fields.getGeneral;
|
|
17
24
|
exports.getLabel = require_dictionary.getLabel;
|
|
18
25
|
exports.getLabelWithOptions = require_dictionary.getLabelWithOptions;
|
|
26
|
+
exports.getPL = require_all_fields.getPL;
|
|
27
|
+
exports.getRevenue = require_all_fields.getRevenue;
|
|
28
|
+
exports.getSeasonResult = require_all_fields.getSeasonResult;
|
|
19
29
|
exports.plFields = require_all_fields.plFields;
|
|
20
30
|
exports.revenueFields = require_all_fields.revenueFields;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, plFields, revenueFields } from "./all-fields.cjs";
|
|
3
|
-
import { t as ClubInfo } from "./club-
|
|
4
|
-
import { t as YearInfo } from "./year-
|
|
1
|
+
import { a as FinancialDatum, c as Revenue, i as ExtendedFinancialDatum, l as SeasonResult, n as BS, o as General, r as Expense, s as PL, t as Attd, u as SortalbeKeys } from "./data-Dr1RQuDQ.cjs";
|
|
2
|
+
import { allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, getAttd, getBS, getExpense, getGeneral, getPL, getRevenue, getSeasonResult, plFields, revenueFields } from "./all-fields.cjs";
|
|
3
|
+
import { t as ClubInfo } from "./club-CmkWZe16.cjs";
|
|
4
|
+
import { t as YearInfo } from "./year-uMcmlIjv.cjs";
|
|
5
5
|
import "./types/index.cjs";
|
|
6
6
|
import { getAllClubs, getClubBySlug, getClubsByCategory } from "./clubs.cjs";
|
|
7
|
+
import { extendClubData, extendYearData } from "./data.cjs";
|
|
7
8
|
import { getLabel, getLabelWithOptions } from "./dictionary.cjs";
|
|
8
9
|
import { getAllYears } from "./years.cjs";
|
|
9
|
-
export { Attd, BS, ClubInfo, Expense, FinancialDatum, General, PL, Revenue, SeasonResult, YearInfo, allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, getAllClubs, getAllYears, getClubBySlug, getClubsByCategory, getLabel, getLabelWithOptions, plFields, revenueFields };
|
|
10
|
+
export { Attd, BS, ClubInfo, Expense, ExtendedFinancialDatum, FinancialDatum, General, PL, Revenue, SeasonResult, SortalbeKeys, YearInfo, allFields, allSortableFields, attdFields, bsFields, expenseFields, extendClubData, extendYearData, generalFields, getAllClubs, getAllYears, getAttd, getBS, getClubBySlug, getClubsByCategory, getExpense, getGeneral, getLabel, getLabelWithOptions, getPL, getRevenue, getSeasonResult, plFields, revenueFields };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, plFields, revenueFields } from "./all-fields.mjs";
|
|
3
|
-
import { t as ClubInfo } from "./club-
|
|
4
|
-
import { t as YearInfo } from "./year-
|
|
1
|
+
import { a as FinancialDatum, c as Revenue, i as ExtendedFinancialDatum, l as SeasonResult, n as BS, o as General, r as Expense, s as PL, t as Attd, u as SortalbeKeys } from "./data-CEME1ilU.mjs";
|
|
2
|
+
import { allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, getAttd, getBS, getExpense, getGeneral, getPL, getRevenue, getSeasonResult, plFields, revenueFields } from "./all-fields.mjs";
|
|
3
|
+
import { t as ClubInfo } from "./club-CauHQ_x1.mjs";
|
|
4
|
+
import { t as YearInfo } from "./year-YIR3AeyZ.mjs";
|
|
5
5
|
import "./types/index.mjs";
|
|
6
6
|
import { getAllClubs, getClubBySlug, getClubsByCategory } from "./clubs.mjs";
|
|
7
|
+
import { extendClubData, extendYearData } from "./data.mjs";
|
|
7
8
|
import { getLabel, getLabelWithOptions } from "./dictionary.mjs";
|
|
8
9
|
import { getAllYears } from "./years.mjs";
|
|
9
|
-
export { Attd, BS, ClubInfo, Expense, FinancialDatum, General, PL, Revenue, SeasonResult, YearInfo, allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, getAllClubs, getAllYears, getClubBySlug, getClubsByCategory, getLabel, getLabelWithOptions, plFields, revenueFields };
|
|
10
|
+
export { Attd, BS, ClubInfo, Expense, ExtendedFinancialDatum, FinancialDatum, General, PL, Revenue, SeasonResult, SortalbeKeys, YearInfo, allFields, allSortableFields, attdFields, bsFields, expenseFields, extendClubData, extendYearData, generalFields, getAllClubs, getAllYears, getAttd, getBS, getClubBySlug, getClubsByCategory, getExpense, getGeneral, getLabel, getLabelWithOptions, getPL, getRevenue, getSeasonResult, plFields, revenueFields };
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, plFields, revenueFields } from "./all-fields.mjs";
|
|
2
|
-
import { n as getClubBySlug, r as getClubsByCategory, t as getAllClubs } from "./clubs-
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
1
|
+
import { allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, getAttd, getBS, getExpense, getGeneral, getPL, getRevenue, getSeasonResult, plFields, revenueFields } from "./all-fields.mjs";
|
|
2
|
+
import { n as getClubBySlug, r as getClubsByCategory, t as getAllClubs } from "./clubs-BitYeQ3W.mjs";
|
|
3
|
+
import { extendClubData, extendYearData } from "./data.mjs";
|
|
4
|
+
import { n as getLabelWithOptions, t as getLabel } from "./dictionary-C5g3hCzq.mjs";
|
|
5
|
+
import { t as getAllYears } from "./years-BwmUZcK_.mjs";
|
|
5
6
|
import "./types/index.mjs";
|
|
6
7
|
|
|
7
|
-
export { allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, getAllClubs, getAllYears, getClubBySlug, getClubsByCategory, getLabel, getLabelWithOptions, plFields, revenueFields };
|
|
8
|
+
export { allFields, allSortableFields, attdFields, bsFields, expenseFields, extendClubData, extendYearData, generalFields, getAllClubs, getAllYears, getAttd, getBS, getClubBySlug, getClubsByCategory, getExpense, getGeneral, getLabel, getLabelWithOptions, getPL, getRevenue, getSeasonResult, plFields, revenueFields };
|
package/dist/types/club.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ClubInfo } from "../club-
|
|
1
|
+
import { t as ClubInfo } from "../club-CmkWZe16.cjs";
|
|
2
2
|
export { ClubInfo };
|
package/dist/types/club.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ClubInfo } from "../club-
|
|
1
|
+
import { t as ClubInfo } from "../club-CauHQ_x1.mjs";
|
|
2
2
|
export { ClubInfo };
|
package/dist/types/data.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { Attd, BS, Expense, FinancialDatum, General, PL, Revenue, SeasonResult };
|
|
1
|
+
import { a as FinancialDatum, c as Revenue, i as ExtendedFinancialDatum, l as SeasonResult, n as BS, o as General, r as Expense, s as PL, t as Attd, u as SortalbeKeys } from "../data-Dr1RQuDQ.cjs";
|
|
2
|
+
export { Attd, BS, Expense, ExtendedFinancialDatum, FinancialDatum, General, PL, Revenue, SeasonResult, SortalbeKeys };
|
package/dist/types/data.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { Attd, BS, Expense, FinancialDatum, General, PL, Revenue, SeasonResult };
|
|
1
|
+
import { a as FinancialDatum, c as Revenue, i as ExtendedFinancialDatum, l as SeasonResult, n as BS, o as General, r as Expense, s as PL, t as Attd, u as SortalbeKeys } from "../data-CEME1ilU.mjs";
|
|
2
|
+
export { Attd, BS, Expense, ExtendedFinancialDatum, FinancialDatum, General, PL, Revenue, SeasonResult, SortalbeKeys };
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { t as ClubInfo } from "../club-
|
|
3
|
-
import { t as YearInfo } from "../year-
|
|
4
|
-
export { Attd, BS, ClubInfo, Expense, FinancialDatum, General, PL, Revenue, SeasonResult, YearInfo };
|
|
1
|
+
import { a as FinancialDatum, c as Revenue, i as ExtendedFinancialDatum, l as SeasonResult, n as BS, o as General, r as Expense, s as PL, t as Attd, u as SortalbeKeys } from "../data-Dr1RQuDQ.cjs";
|
|
2
|
+
import { t as ClubInfo } from "../club-CmkWZe16.cjs";
|
|
3
|
+
import { t as YearInfo } from "../year-uMcmlIjv.cjs";
|
|
4
|
+
export { Attd, BS, ClubInfo, Expense, ExtendedFinancialDatum, FinancialDatum, General, PL, Revenue, SeasonResult, SortalbeKeys, YearInfo };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { t as ClubInfo } from "../club-
|
|
3
|
-
import { t as YearInfo } from "../year-
|
|
4
|
-
export { Attd, BS, ClubInfo, Expense, FinancialDatum, General, PL, Revenue, SeasonResult, YearInfo };
|
|
1
|
+
import { a as FinancialDatum, c as Revenue, i as ExtendedFinancialDatum, l as SeasonResult, n as BS, o as General, r as Expense, s as PL, t as Attd, u as SortalbeKeys } from "../data-CEME1ilU.mjs";
|
|
2
|
+
import { t as ClubInfo } from "../club-CauHQ_x1.mjs";
|
|
3
|
+
import { t as YearInfo } from "../year-YIR3AeyZ.mjs";
|
|
4
|
+
export { Attd, BS, ClubInfo, Expense, ExtendedFinancialDatum, FinancialDatum, General, PL, Revenue, SeasonResult, SortalbeKeys, YearInfo };
|
package/dist/types/year.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as YearInfo } from "../year-
|
|
1
|
+
import { t as YearInfo } from "../year-uMcmlIjv.cjs";
|
|
2
2
|
export { YearInfo };
|
package/dist/types/year.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as YearInfo } from "../year-
|
|
1
|
+
import { t as YearInfo } from "../year-YIR3AeyZ.mjs";
|
|
2
2
|
export { YearInfo };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"year-YIR3AeyZ.d.mts","names":[],"sources":["../src/types/year.ts"],"sourcesContent":[],"mappings":";KAAY,QAAA;EAAA,EAAA,EAAA,MAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"year-uMcmlIjv.d.cts","names":[],"sources":["../src/types/year.ts"],"sourcesContent":[],"mappings":";KAAY,QAAA;EAAA,EAAA,EAAA,MAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"years-
|
|
1
|
+
{"version":3,"file":"years-BwmUZcK_.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 return years as YearInfo[];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACGA,SAAgB,cAAc;AAC5B,QAAOA"}
|
package/dist/years.d.cts
CHANGED
package/dist/years.d.mts
CHANGED
package/dist/years.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cieloazul310/jclub-financial-utils",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://github.com/cieloazul310/jclub-financial-table",
|
|
6
6
|
"author": {
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"dev": "npm run build -- --watch"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@repo/eslint-config": "^0.0.1-alpha.
|
|
56
|
-
"@repo/typescript-config": "^0.0.1-alpha.
|
|
55
|
+
"@repo/eslint-config": "^0.0.1-alpha.3",
|
|
56
|
+
"@repo/typescript-config": "^0.0.1-alpha.3",
|
|
57
57
|
"@types/node": "^24.9.1",
|
|
58
58
|
"eslint": "^9.34.0",
|
|
59
59
|
"tsdown": "^0.18.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"club-CcV6Gouv.d.mts","names":[],"sources":["../src/types/club.ts"],"sourcesContent":[],"mappings":";KAAY,QAAA;EAAA,EAAA,EAAA,MAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"club-DConAzRZ.d.cts","names":[],"sources":["../src/types/club.ts"],"sourcesContent":[],"mappings":";KAAY,QAAA;EAAA,EAAA,EAAA,MAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data-Bs9dSa_0.d.cts","names":[],"sources":["../src/types/data.ts"],"sourcesContent":[],"mappings":";KAAY,OAAA;EAAA,EAAA,EAAA,MAAO;EASP,IAAA,EAAA,MAAA;EAMA,IAAA,EAAE,MAAA;EA0BF,QAAE,EAAA,MAAA;EAwBF,IAAA,EAAA,MAAO;EA0BP,QAAA,EAAO,MAAA;EA8BP,OAAI,EAAA,MAAA,GAAA,IAAA;AAiChB,CAAA;AAA6B,KAjJjB,YAAA,GAiJiB;EAC3B,IAAA,EAAA,MAAA;EACA,MAAA,EAAA,MAAA;EACA,GAAA,EAAA,MAAA;EACA,SAAA,EAAA,IAAA,GAAA,IAAA,GAAA,IAAA;CACA;AACA,KAjJU,EAAA,GAiJV;EAAI;;;;;;;;;;;;;;;;;;;;;;;;;KAvHM,EAAA;;;;;;;;;;;;;;;;;;;;;;;;KAwBA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;KA0BA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8BA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiCA,cAAA,GAAiB,UAC3B,eACA,KACA,KACA,UACA,UACA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data-c1kTjXyV.d.mts","names":[],"sources":["../src/types/data.ts"],"sourcesContent":[],"mappings":";KAAY,OAAA;EAAA,EAAA,EAAA,MAAO;EASP,IAAA,EAAA,MAAA;EAMA,IAAA,EAAE,MAAA;EA0BF,QAAE,EAAA,MAAA;EAwBF,IAAA,EAAA,MAAO;EA0BP,QAAA,EAAO,MAAA;EA8BP,OAAI,EAAA,MAAA,GAAA,IAAA;AAiChB,CAAA;AAA6B,KAjJjB,YAAA,GAiJiB;EAC3B,IAAA,EAAA,MAAA;EACA,MAAA,EAAA,MAAA;EACA,GAAA,EAAA,MAAA;EACA,SAAA,EAAA,IAAA,GAAA,IAAA,GAAA,IAAA;CACA;AACA,KAjJU,EAAA,GAiJV;EAAI;;;;;;;;;;;;;;;;;;;;;;;;;KAvHM,EAAA;;;;;;;;;;;;;;;;;;;;;;;;KAwBA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;KA0BA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8BA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiCA,cAAA,GAAiB,UAC3B,eACA,KACA,KACA,UACA,UACA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"year-C02MQex_.d.mts","names":[],"sources":["../src/types/year.ts"],"sourcesContent":[],"mappings":";KAAY,QAAA;EAAA,EAAA,EAAA,MAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"year-CSrJssAF.d.cts","names":[],"sources":["../src/types/year.ts"],"sourcesContent":[],"mappings":";KAAY,QAAA;EAAA,EAAA,EAAA,MAAA"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|