@cieloazul310/jclub-financial-utils 0.0.1-alpha.3 → 0.0.1-alpha.5
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 +1 -93
- package/dist/all-fields.d.cts +9 -17
- package/dist/all-fields.d.cts.map +1 -1
- package/dist/all-fields.d.mts +9 -17
- package/dist/all-fields.d.mts.map +1 -1
- package/dist/all-fields.mjs +1 -85
- package/dist/all-fields.mjs.map +1 -1
- package/dist/{clubs-B6WFNimH.cjs → clubs-B9ZOclEl.cjs} +180 -167
- package/dist/{clubs-BitYeQ3W.mjs → clubs-ECnq3cfm.mjs} +181 -168
- package/dist/{clubs-BitYeQ3W.mjs.map → clubs-ECnq3cfm.mjs.map} +1 -1
- package/dist/clubs.cjs +1 -1
- package/dist/clubs.mjs +1 -1
- package/dist/data-BifrD3Hs.d.cts +180 -0
- package/dist/data-BifrD3Hs.d.cts.map +1 -0
- package/dist/data-CGTGYuvt.cjs +151 -0
- package/dist/data-PJ-fpqmg.mjs +104 -0
- package/dist/data-PJ-fpqmg.mjs.map +1 -0
- package/dist/data-rDHl-GBR.d.mts +180 -0
- package/dist/data-rDHl-GBR.d.mts.map +1 -0
- package/dist/data.cjs +21 -12
- package/dist/data.d.cts +1 -1
- package/dist/data.d.cts.map +1 -1
- package/dist/data.d.mts +1 -1
- package/dist/data.d.mts.map +1 -1
- package/dist/data.mjs +21 -12
- package/dist/data.mjs.map +1 -1
- package/dist/{dictionary-BzN32kPK.cjs → dictionary-BZ_zUPSy.cjs} +1 -1
- package/dist/{dictionary-C5g3hCzq.mjs → dictionary-D9CmvgCW.mjs} +2 -2
- package/dist/{dictionary-C5g3hCzq.mjs.map → dictionary-D9CmvgCW.mjs.map} +1 -1
- package/dist/dictionary.cjs +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 +16 -15
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +7 -6
- package/dist/types/data.cjs +10 -0
- package/dist/types/data.d.cts +2 -2
- package/dist/types/data.d.mts +2 -2
- package/dist/types/data.mjs +3 -1
- package/dist/types/index.cjs +10 -0
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.mjs +3 -1
- package/dist/{years-BwmUZcK_.mjs → years-BD3YalWA.mjs} +1 -1
- package/dist/{years-BwmUZcK_.mjs.map → years-BD3YalWA.mjs.map} +1 -1
- package/dist/years.cjs +1 -1
- package/dist/years.mjs +1 -1
- package/package.json +7 -7
- package/dist/data-CEME1ilU.d.mts +0 -163
- package/dist/data-CEME1ilU.d.mts.map +0 -1
- package/dist/data-Dr1RQuDQ.d.cts +0 -163
- package/dist/data-Dr1RQuDQ.d.cts.map +0 -1
- package/dist/year-D3WZVmTU.mjs +0 -1
- package/dist/year-dUgWR1aM.cjs +0 -0
- /package/dist/{club-Dyqgxvkt.mjs → club-DMPe0Tct.mjs} +0 -0
- /package/dist/{club-CYJ2Any-.cjs → club-DtKevGOY.cjs} +0 -0
- /package/dist/{data-B_nPtYBn.cjs → year-C8iQUfNS.cjs} +0 -0
- /package/dist/{data-vII377kw.mjs → year-DlsIuRa9.mjs} +0 -0
- /package/dist/{years-DRN0nquf.cjs → years-BtLTGqsM.cjs} +0 -0
package/dist/all-fields.cjs
CHANGED
|
@@ -1,89 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/all-fields.ts
|
|
3
|
-
const generalFields = [
|
|
4
|
-
"fullname",
|
|
5
|
-
"license",
|
|
6
|
-
"rank",
|
|
7
|
-
"points",
|
|
8
|
-
"ppg",
|
|
9
|
-
"elevation"
|
|
10
|
-
];
|
|
11
|
-
const plFields = [
|
|
12
|
-
"revenue",
|
|
13
|
-
"expense",
|
|
14
|
-
"op_profit",
|
|
15
|
-
"no_rev",
|
|
16
|
-
"no_exp",
|
|
17
|
-
"ordinary_profit",
|
|
18
|
-
"sp_rev",
|
|
19
|
-
"sp_exp",
|
|
20
|
-
"profit_before_tax",
|
|
21
|
-
"tax",
|
|
22
|
-
"profit",
|
|
23
|
-
"related_revenue"
|
|
24
|
-
];
|
|
25
|
-
const bsFields = [
|
|
26
|
-
"assets",
|
|
27
|
-
"curr_assets",
|
|
28
|
-
"fixed_assets",
|
|
29
|
-
"liabilities",
|
|
30
|
-
"curr_liabilities",
|
|
31
|
-
"fixed_liabilities",
|
|
32
|
-
"net_worth",
|
|
33
|
-
"capital_stock",
|
|
34
|
-
"capital_surplus",
|
|
35
|
-
"retained_earnings"
|
|
36
|
-
];
|
|
37
|
-
const revenueFields = [
|
|
38
|
-
"sponsor",
|
|
39
|
-
"ticket",
|
|
40
|
-
"broadcast",
|
|
41
|
-
"academy_rev",
|
|
42
|
-
"women_rev",
|
|
43
|
-
"goods_rev",
|
|
44
|
-
"transfer_rev",
|
|
45
|
-
"transfer_int_rev",
|
|
46
|
-
"transfer_dom_rev",
|
|
47
|
-
"other_revs"
|
|
48
|
-
];
|
|
49
|
-
const expenseFields = [
|
|
50
|
-
"salary",
|
|
51
|
-
"transfer_exp",
|
|
52
|
-
"transfer_int_exp",
|
|
53
|
-
"transfer_dom_exp",
|
|
54
|
-
"game_exp",
|
|
55
|
-
"team_exp",
|
|
56
|
-
"academy_exp",
|
|
57
|
-
"women_exp",
|
|
58
|
-
"goods_exp",
|
|
59
|
-
"other_cost",
|
|
60
|
-
"manage_exp",
|
|
61
|
-
"sga"
|
|
62
|
-
];
|
|
63
|
-
const attdFields = [
|
|
64
|
-
"all_attd",
|
|
65
|
-
"all_games",
|
|
66
|
-
"average_attd",
|
|
67
|
-
"unit_price",
|
|
68
|
-
"league_attd",
|
|
69
|
-
"league_games",
|
|
70
|
-
"leaguecup_attd",
|
|
71
|
-
"leaguecup_games",
|
|
72
|
-
"po_attd",
|
|
73
|
-
"po_games",
|
|
74
|
-
"acl_attd",
|
|
75
|
-
"acl_games",
|
|
76
|
-
"second_attd",
|
|
77
|
-
"second_games"
|
|
78
|
-
];
|
|
79
|
-
const allSortableFields = [
|
|
80
|
-
...plFields,
|
|
81
|
-
...bsFields,
|
|
82
|
-
...revenueFields,
|
|
83
|
-
...expenseFields,
|
|
84
|
-
...attdFields
|
|
85
|
-
];
|
|
86
|
-
const allFields = [...generalFields, ...allSortableFields];
|
|
87
3
|
function getGeneral(datum) {
|
|
88
4
|
const { id, name, slug, fullname, year, license, category } = datum;
|
|
89
5
|
return {
|
|
@@ -196,18 +112,10 @@ function getAttd(datum) {
|
|
|
196
112
|
}
|
|
197
113
|
|
|
198
114
|
//#endregion
|
|
199
|
-
exports.allFields = allFields;
|
|
200
|
-
exports.allSortableFields = allSortableFields;
|
|
201
|
-
exports.attdFields = attdFields;
|
|
202
|
-
exports.bsFields = bsFields;
|
|
203
|
-
exports.expenseFields = expenseFields;
|
|
204
|
-
exports.generalFields = generalFields;
|
|
205
115
|
exports.getAttd = getAttd;
|
|
206
116
|
exports.getBS = getBS;
|
|
207
117
|
exports.getExpense = getExpense;
|
|
208
118
|
exports.getGeneral = getGeneral;
|
|
209
119
|
exports.getPL = getPL;
|
|
210
120
|
exports.getRevenue = getRevenue;
|
|
211
|
-
exports.getSeasonResult = getSeasonResult;
|
|
212
|
-
exports.plFields = plFields;
|
|
213
|
-
exports.revenueFields = revenueFields;
|
|
121
|
+
exports.getSeasonResult = getSeasonResult;
|
package/dist/all-fields.d.cts
CHANGED
|
@@ -1,21 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as SeasonResultFields, S as PLFields, _ as ExtendedFinancialDatum, b as GeneralFields, f as BSFields, m as ExpenseFields, u as AttdFields, v as FinancialDatum, w as RevenueFields } from "./data-BifrD3Hs.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/all-fields.d.ts
|
|
4
|
-
declare
|
|
5
|
-
declare
|
|
6
|
-
declare
|
|
7
|
-
declare
|
|
8
|
-
declare
|
|
9
|
-
declare
|
|
10
|
-
declare
|
|
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;
|
|
4
|
+
declare function getGeneral<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in GeneralFields]: T[key] };
|
|
5
|
+
declare function getSeasonResult<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in SeasonResultFields]: T[key] };
|
|
6
|
+
declare function getPL<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in PLFields]: T[key] };
|
|
7
|
+
declare function getBS<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in BSFields]: T[key] };
|
|
8
|
+
declare function getRevenue<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in RevenueFields]: T[key] };
|
|
9
|
+
declare function getExpense<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in ExpenseFields]: T[key] };
|
|
10
|
+
declare function getAttd<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in AttdFields]: T[key] };
|
|
19
11
|
//#endregion
|
|
20
|
-
export {
|
|
12
|
+
export { getAttd, getBS, getExpense, getGeneral, getPL, getRevenue, getSeasonResult };
|
|
21
13
|
//# 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":";;;iBAYgB,qBAAqB,iBAAiB,+BAC7C,cAEC,gBAAgB,EAAE,MAH5B;AAAqC,iBASrB,eATqB,CAAA,UAUzB,cAVyB,GAUR,sBAVQ,CAAA,CAAA,KAAA,EAY5B,CAZ4B,CAAA,EAAA,UAc3B,kBAd4C,GAcvB,CAduB,CAcrB,GAdqB,CAAA,EAC7C;AAEC,iBAiBM,KAjBN,CAAA,UAiBsB,cAjBtB,GAiBuC,sBAjBvC,CAAA,CAAA,KAAA,EAkBD,CAlBC,CAAA,EAAA,UAoBA,QApBgB,GAoBL,CApBK,CAoBH,GApBG,CAAA,EAAE;AAAG,iBAoDf,KApDe,CAAA,UAoDC,cApDD,GAoDkB,sBApDlB,CAAA,CAAA,KAAA,EAqDtB,CArDsB,CAAA,EAAA,UAuDrB,QAjDM,GAiDK,CAjDU,CAiDR,GAjDQ,CAAA,EACnB;AAAiB,iBA8Eb,UA9Ea,CAAA,UA8EQ,cA9ER,GA8EyB,sBA9EzB,CAAA,CAAA,KAAA,EA+EpB,CA/EoB,CAAA,EAAA,UAiFnB,aA/ED,GA+EiB,CA/EjB,CA+EmB,GA/EnB,CAAA,EAEC;AAAqB,iBA6Gf,UA7Ge,CAAA,UA6GM,cA7GN,GA6GuB,sBA7GvB,CAAA,CAAA,KAAA,EA8GtB,CA9GsB,CAAA,EAAA,UAgHrB,aAhHuB,GAgHP,CAhHO,CAgHL,GAhHK,CAAA,EAAG;AAMpB,iBA8IA,OA9IK,CAAA,UA8Ia,cA9Ib,GA8I8B,sBA9I9B,CAAA,CAAA,KAAA,EA+IZ,CA/IY,CAAA,EAAA,UAiJX,UAjJsB,GAiJT,CAjJS,CAiJP,GAjJO,CAAA,EAAiB"}
|
package/dist/all-fields.d.mts
CHANGED
|
@@ -1,21 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as SeasonResultFields, S as PLFields, _ as ExtendedFinancialDatum, b as GeneralFields, f as BSFields, m as ExpenseFields, u as AttdFields, v as FinancialDatum, w as RevenueFields } from "./data-rDHl-GBR.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/all-fields.d.ts
|
|
4
|
-
declare
|
|
5
|
-
declare
|
|
6
|
-
declare
|
|
7
|
-
declare
|
|
8
|
-
declare
|
|
9
|
-
declare
|
|
10
|
-
declare
|
|
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;
|
|
4
|
+
declare function getGeneral<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in GeneralFields]: T[key] };
|
|
5
|
+
declare function getSeasonResult<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in SeasonResultFields]: T[key] };
|
|
6
|
+
declare function getPL<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in PLFields]: T[key] };
|
|
7
|
+
declare function getBS<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in BSFields]: T[key] };
|
|
8
|
+
declare function getRevenue<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in RevenueFields]: T[key] };
|
|
9
|
+
declare function getExpense<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in ExpenseFields]: T[key] };
|
|
10
|
+
declare function getAttd<T extends FinancialDatum | ExtendedFinancialDatum>(datum: T): { [key in AttdFields]: T[key] };
|
|
19
11
|
//#endregion
|
|
20
|
-
export {
|
|
12
|
+
export { getAttd, getBS, getExpense, getGeneral, getPL, getRevenue, getSeasonResult };
|
|
21
13
|
//# 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":";;;iBAYgB,qBAAqB,iBAAiB,+BAC7C,cAEC,gBAAgB,EAAE,MAH5B;AAAqC,iBASrB,eATqB,CAAA,UAUzB,cAVyB,GAUR,sBAVQ,CAAA,CAAA,KAAA,EAY5B,CAZ4B,CAAA,EAAA,UAc3B,kBAd4C,GAcvB,CAduB,CAcrB,GAdqB,CAAA,EAC7C;AAEC,iBAiBM,KAjBN,CAAA,UAiBsB,cAjBtB,GAiBuC,sBAjBvC,CAAA,CAAA,KAAA,EAkBD,CAlBC,CAAA,EAAA,UAoBA,QApBgB,GAoBL,CApBK,CAoBH,GApBG,CAAA,EAAE;AAAG,iBAoDf,KApDe,CAAA,UAoDC,cApDD,GAoDkB,sBApDlB,CAAA,CAAA,KAAA,EAqDtB,CArDsB,CAAA,EAAA,UAuDrB,QAjDM,GAiDK,CAjDU,CAiDR,GAjDQ,CAAA,EACnB;AAAiB,iBA8Eb,UA9Ea,CAAA,UA8EQ,cA9ER,GA8EyB,sBA9EzB,CAAA,CAAA,KAAA,EA+EpB,CA/EoB,CAAA,EAAA,UAiFnB,aA/ED,GA+EiB,CA/EjB,CA+EmB,GA/EnB,CAAA,EAEC;AAAqB,iBA6Gf,UA7Ge,CAAA,UA6GM,cA7GN,GA6GuB,sBA7GvB,CAAA,CAAA,KAAA,EA8GtB,CA9GsB,CAAA,EAAA,UAgHrB,aAhHuB,GAgHP,CAhHO,CAgHL,GAhHK,CAAA,EAAG;AAMpB,iBA8IA,OA9IK,CAAA,UA8Ia,cA9Ib,GA8I8B,sBA9I9B,CAAA,CAAA,KAAA,EA+IZ,CA/IY,CAAA,EAAA,UAiJX,UAjJsB,GAiJT,CAjJS,CAiJP,GAjJO,CAAA,EAAiB"}
|
package/dist/all-fields.mjs
CHANGED
|
@@ -1,88 +1,4 @@
|
|
|
1
1
|
//#region src/all-fields.ts
|
|
2
|
-
const generalFields = [
|
|
3
|
-
"fullname",
|
|
4
|
-
"license",
|
|
5
|
-
"rank",
|
|
6
|
-
"points",
|
|
7
|
-
"ppg",
|
|
8
|
-
"elevation"
|
|
9
|
-
];
|
|
10
|
-
const plFields = [
|
|
11
|
-
"revenue",
|
|
12
|
-
"expense",
|
|
13
|
-
"op_profit",
|
|
14
|
-
"no_rev",
|
|
15
|
-
"no_exp",
|
|
16
|
-
"ordinary_profit",
|
|
17
|
-
"sp_rev",
|
|
18
|
-
"sp_exp",
|
|
19
|
-
"profit_before_tax",
|
|
20
|
-
"tax",
|
|
21
|
-
"profit",
|
|
22
|
-
"related_revenue"
|
|
23
|
-
];
|
|
24
|
-
const bsFields = [
|
|
25
|
-
"assets",
|
|
26
|
-
"curr_assets",
|
|
27
|
-
"fixed_assets",
|
|
28
|
-
"liabilities",
|
|
29
|
-
"curr_liabilities",
|
|
30
|
-
"fixed_liabilities",
|
|
31
|
-
"net_worth",
|
|
32
|
-
"capital_stock",
|
|
33
|
-
"capital_surplus",
|
|
34
|
-
"retained_earnings"
|
|
35
|
-
];
|
|
36
|
-
const revenueFields = [
|
|
37
|
-
"sponsor",
|
|
38
|
-
"ticket",
|
|
39
|
-
"broadcast",
|
|
40
|
-
"academy_rev",
|
|
41
|
-
"women_rev",
|
|
42
|
-
"goods_rev",
|
|
43
|
-
"transfer_rev",
|
|
44
|
-
"transfer_int_rev",
|
|
45
|
-
"transfer_dom_rev",
|
|
46
|
-
"other_revs"
|
|
47
|
-
];
|
|
48
|
-
const expenseFields = [
|
|
49
|
-
"salary",
|
|
50
|
-
"transfer_exp",
|
|
51
|
-
"transfer_int_exp",
|
|
52
|
-
"transfer_dom_exp",
|
|
53
|
-
"game_exp",
|
|
54
|
-
"team_exp",
|
|
55
|
-
"academy_exp",
|
|
56
|
-
"women_exp",
|
|
57
|
-
"goods_exp",
|
|
58
|
-
"other_cost",
|
|
59
|
-
"manage_exp",
|
|
60
|
-
"sga"
|
|
61
|
-
];
|
|
62
|
-
const attdFields = [
|
|
63
|
-
"all_attd",
|
|
64
|
-
"all_games",
|
|
65
|
-
"average_attd",
|
|
66
|
-
"unit_price",
|
|
67
|
-
"league_attd",
|
|
68
|
-
"league_games",
|
|
69
|
-
"leaguecup_attd",
|
|
70
|
-
"leaguecup_games",
|
|
71
|
-
"po_attd",
|
|
72
|
-
"po_games",
|
|
73
|
-
"acl_attd",
|
|
74
|
-
"acl_games",
|
|
75
|
-
"second_attd",
|
|
76
|
-
"second_games"
|
|
77
|
-
];
|
|
78
|
-
const allSortableFields = [
|
|
79
|
-
...plFields,
|
|
80
|
-
...bsFields,
|
|
81
|
-
...revenueFields,
|
|
82
|
-
...expenseFields,
|
|
83
|
-
...attdFields
|
|
84
|
-
];
|
|
85
|
-
const allFields = [...generalFields, ...allSortableFields];
|
|
86
2
|
function getGeneral(datum) {
|
|
87
3
|
const { id, name, slug, fullname, year, license, category } = datum;
|
|
88
4
|
return {
|
|
@@ -195,5 +111,5 @@ function getAttd(datum) {
|
|
|
195
111
|
}
|
|
196
112
|
|
|
197
113
|
//#endregion
|
|
198
|
-
export {
|
|
114
|
+
export { getAttd, getBS, getExpense, getGeneral, getPL, getRevenue, getSeasonResult };
|
|
199
115
|
//# sourceMappingURL=all-fields.mjs.map
|
package/dist/all-fields.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-fields.mjs","names":[
|
|
1
|
+
{"version":3,"file":"all-fields.mjs","names":[],"sources":["../src/all-fields.ts"],"sourcesContent":["import type {\n FinancialDatum,\n ExtendedFinancialDatum,\n GeneralFields,\n SeasonResultFields,\n PLFields,\n BSFields,\n RevenueFields,\n ExpenseFields,\n AttdFields,\n} from \"./types/data\";\n\nexport function getGeneral<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in GeneralFields]: T[key];\n} {\n const { id, name, slug, fullname, year, license, category } = datum;\n return { id, name, slug, fullname, year, license, category };\n}\n\nexport function getSeasonResult<\n T extends FinancialDatum | ExtendedFinancialDatum,\n>(\n datum: T,\n): {\n [key in SeasonResultFields]: T[key];\n} {\n const { rank, points, ppg, elevation } = datum;\n return { rank, points, ppg, elevation };\n}\n\nexport function getPL<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in PLFields]: T[key];\n} {\n const {\n revenue,\n expense,\n op_profit,\n no_rev,\n no_exp,\n ordinary_profit,\n sp_rev,\n sp_exp,\n profit_before_tax,\n tax,\n profit,\n related_revenue,\n } = datum;\n return {\n revenue,\n expense,\n op_profit,\n no_rev,\n no_exp,\n ordinary_profit,\n sp_rev,\n sp_exp,\n profit_before_tax,\n tax,\n profit,\n related_revenue,\n };\n}\n\nexport function getBS<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in BSFields]: T[key];\n} {\n const {\n assets,\n curr_assets,\n fixed_assets,\n liabilities,\n curr_liabilities,\n fixed_liabilities,\n net_worth,\n capital_stock,\n capital_surplus,\n retained_earnings,\n profit,\n } = datum;\n return {\n assets,\n curr_assets,\n fixed_assets,\n liabilities,\n curr_liabilities,\n fixed_liabilities,\n net_worth,\n capital_stock,\n capital_surplus,\n retained_earnings,\n profit,\n };\n}\n\nexport function getRevenue<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in RevenueFields]: T[key];\n} {\n const {\n revenue,\n sponsor,\n ticket,\n broadcast,\n academy_rev,\n women_rev,\n goods_rev,\n transfer_rev,\n transfer_int_rev,\n transfer_dom_rev,\n other_revs,\n related_revenue,\n } = datum;\n return {\n revenue,\n sponsor,\n ticket,\n broadcast,\n academy_rev,\n women_rev,\n goods_rev,\n transfer_rev,\n transfer_int_rev,\n transfer_dom_rev,\n other_revs,\n related_revenue,\n };\n}\n\nexport function getExpense<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in ExpenseFields]: T[key];\n} {\n const {\n expense,\n general_exp,\n salary,\n transfer_exp,\n transfer_int_exp,\n transfer_dom_exp,\n game_exp,\n team_exp,\n academy_exp,\n women_exp,\n goods_exp,\n other_cost,\n manage_exp,\n sga,\n } = datum;\n return {\n expense,\n general_exp,\n salary,\n transfer_exp,\n transfer_int_exp,\n transfer_dom_exp,\n game_exp,\n team_exp,\n academy_exp,\n women_exp,\n goods_exp,\n other_cost,\n manage_exp,\n sga,\n };\n}\n\nexport function getAttd<T extends FinancialDatum | ExtendedFinancialDatum>(\n datum: T,\n): {\n [key in AttdFields]: T[key];\n} {\n const {\n all_attd,\n all_games,\n average_attd,\n unit_price,\n league_attd,\n league_games,\n leaguecup_attd,\n leaguecup_games,\n po_attd,\n po_games,\n acl_attd,\n acl_games,\n second_attd,\n second_games,\n ticket,\n } = datum;\n return {\n all_attd,\n all_games,\n average_attd,\n unit_price,\n league_attd,\n league_games,\n leaguecup_attd,\n leaguecup_games,\n po_attd,\n po_games,\n acl_attd,\n acl_games,\n second_attd,\n second_games,\n ticket,\n };\n}\n"],"mappings":";AAYA,SAAgB,WACd,OAGA;CACA,MAAM,EAAE,IAAI,MAAM,MAAM,UAAU,MAAM,SAAS,aAAa;AAC9D,QAAO;EAAE;EAAI;EAAM;EAAM;EAAU;EAAM;EAAS;EAAU;;AAG9D,SAAgB,gBAGd,OAGA;CACA,MAAM,EAAE,MAAM,QAAQ,KAAK,cAAc;AACzC,QAAO;EAAE;EAAM;EAAQ;EAAK;EAAW;;AAGzC,SAAgB,MACd,OAGA;CACA,MAAM,EACJ,SACA,SACA,WACA,QACA,QACA,iBACA,QACA,QACA,mBACA,KACA,QACA,oBACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;;AAGH,SAAgB,MACd,OAGA;CACA,MAAM,EACJ,QACA,aACA,cACA,aACA,kBACA,mBACA,WACA,eACA,iBACA,mBACA,WACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;;AAGH,SAAgB,WACd,OAGA;CACA,MAAM,EACJ,SACA,SACA,QACA,WACA,aACA,WACA,WACA,cACA,kBACA,kBACA,YACA,oBACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;;AAGH,SAAgB,WACd,OAGA;CACA,MAAM,EACJ,SACA,aACA,QACA,cACA,kBACA,kBACA,UACA,UACA,aACA,WACA,WACA,YACA,YACA,QACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;;AAGH,SAAgB,QACd,OAGA;CACA,MAAM,EACJ,UACA,WACA,cACA,YACA,aACA,cACA,gBACA,iBACA,SACA,UACA,UACA,WACA,aACA,cACA,WACE;AACJ,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD"}
|