@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.
Files changed (63) hide show
  1. package/dist/all-fields.cjs +117 -0
  2. package/dist/all-fields.d.cts +10 -3
  3. package/dist/all-fields.d.cts.map +1 -1
  4. package/dist/all-fields.d.mts +10 -3
  5. package/dist/all-fields.d.mts.map +1 -1
  6. package/dist/all-fields.mjs +111 -1
  7. package/dist/all-fields.mjs.map +1 -1
  8. package/dist/{club-CcV6Gouv.d.mts → club-CauHQ_x1.d.mts} +1 -1
  9. package/dist/club-CauHQ_x1.d.mts.map +1 -0
  10. package/dist/{club-DConAzRZ.d.cts → club-CmkWZe16.d.cts} +1 -1
  11. package/dist/club-CmkWZe16.d.cts.map +1 -0
  12. package/dist/{clubs-BF9Y0ITz.mjs → clubs-BitYeQ3W.mjs} +1 -1
  13. package/dist/{clubs-BF9Y0ITz.mjs.map → clubs-BitYeQ3W.mjs.map} +1 -1
  14. package/dist/clubs.d.cts +1 -1
  15. package/dist/clubs.d.mts +1 -1
  16. package/dist/clubs.mjs +1 -1
  17. package/dist/{data-Bs9dSa_0.d.cts → data-CEME1ilU.d.mts} +7 -2
  18. package/dist/data-CEME1ilU.d.mts.map +1 -0
  19. package/dist/{data-c1kTjXyV.d.mts → data-Dr1RQuDQ.d.cts} +7 -2
  20. package/dist/data-Dr1RQuDQ.d.cts.map +1 -0
  21. package/dist/data.cjs +34 -0
  22. package/dist/data.d.cts +9 -0
  23. package/dist/data.d.cts.map +1 -0
  24. package/dist/data.d.mts +9 -0
  25. package/dist/data.d.mts.map +1 -0
  26. package/dist/data.mjs +34 -0
  27. package/dist/data.mjs.map +1 -0
  28. package/dist/{dictionary-LXXa4AIA.mjs → dictionary-C5g3hCzq.mjs} +1 -1
  29. package/dist/{dictionary-LXXa4AIA.mjs.map → dictionary-C5g3hCzq.mjs.map} +1 -1
  30. package/dist/dictionary.d.cts +1 -1
  31. package/dist/dictionary.d.mts +1 -1
  32. package/dist/dictionary.mjs +1 -1
  33. package/dist/index.cjs +10 -0
  34. package/dist/index.d.cts +6 -5
  35. package/dist/index.d.mts +6 -5
  36. package/dist/index.mjs +6 -5
  37. package/dist/types/club.d.cts +1 -1
  38. package/dist/types/club.d.mts +1 -1
  39. package/dist/types/data.d.cts +2 -2
  40. package/dist/types/data.d.mts +2 -2
  41. package/dist/types/index.d.cts +4 -4
  42. package/dist/types/index.d.mts +4 -4
  43. package/dist/types/year.d.cts +1 -1
  44. package/dist/types/year.d.mts +1 -1
  45. package/dist/{year-C02MQex_.d.mts → year-YIR3AeyZ.d.mts} +1 -1
  46. package/dist/year-YIR3AeyZ.d.mts.map +1 -0
  47. package/dist/{year-CSrJssAF.d.cts → year-uMcmlIjv.d.cts} +1 -1
  48. package/dist/year-uMcmlIjv.d.cts.map +1 -0
  49. package/dist/{years-6Ii8ZNVQ.mjs → years-BwmUZcK_.mjs} +1 -1
  50. package/dist/{years-6Ii8ZNVQ.mjs.map → years-BwmUZcK_.mjs.map} +1 -1
  51. package/dist/years.d.cts +1 -1
  52. package/dist/years.d.mts +1 -1
  53. package/dist/years.mjs +1 -1
  54. package/package.json +3 -3
  55. package/dist/club-CcV6Gouv.d.mts.map +0 -1
  56. package/dist/club-DConAzRZ.d.cts.map +0 -1
  57. package/dist/data-Bs9dSa_0.d.cts.map +0 -1
  58. package/dist/data-c1kTjXyV.d.mts.map +0 -1
  59. package/dist/year-C02MQex_.d.mts.map +0 -1
  60. package/dist/year-CSrJssAF.d.cts.map +0 -1
  61. /package/dist/{club-CCls7mTR.mjs → club-Dyqgxvkt.mjs} +0 -0
  62. /package/dist/{data-BI1o8Mn-.mjs → data-vII377kw.mjs} +0 -0
  63. /package/dist/{year-0HxxyYb_.mjs → year-D3WZVmTU.mjs} +0 -0
@@ -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;
@@ -1,4 +1,4 @@
1
- import { a as General, c as SeasonResult, i as FinancialDatum, n as BS, o as PL, r as Expense, s as Revenue, t as Attd } from "./data-Bs9dSa_0.cjs";
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: ("revenue" | "expense" | "op_profit" | "no_rev" | "no_exp" | "ordinary_profit" | "sp_rev" | "sp_exp" | "profit_before_tax" | "tax" | "profit" | "related_revenue" | "curr_assets" | "fixed_assets" | "assets" | "curr_liabilities" | "fixed_liabilities" | "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" | "league_attd" | "league_games" | "leaguecup_attd" | "leaguecup_games" | "po_attd" | "po_games" | "acl_attd" | "acl_games" | "second_attd" | "second_games" | "all_attd" | "all_games" | "average_attd" | "unit_price")[];
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":";;;cAWa,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,EAAO,CAAA,SAAA,GAAA,SAAA,GAAA,WAAA,GAAA,QAAA,GAAA,QAAA,GAAA,iBAAA,GAAA,QAAA,GAAA,QAAA,GAAA,mBAAA,GAAA,KAAA,GAAA,QAAA,GAAA,iBAAA,GAAA,aAAA,GAAA,cAAA,GAAA,QAAA,GAAA,kBAAA,GAAA,mBAAA,GAAA,aAAA,GAAA,WAAA,GAAA,eAAA,GAAA,iBAAA,GAAA,mBAAA,GAAA,SAAA,GAAA,QAAA,GAAA,WAAA,GAAA,aAAA,GAAA,WAAA,GAAA,WAAA,GAAA,cAAA,GAAA,kBAAA,GAAA,kBAAA,GAAA,YAAA,GAAA,QAAA,GAAA,cAAA,GAAA,kBAAA,GAAA,kBAAA,GAAA,YAAA,GAAA,aAAA,GAAA,UAAA,GAAA,UAAA,GAAA,aAAA,GAAA,WAAA,GAAA,WAAA,GAAA,YAAA,GAAA,KAAA,GAAA,aAAA,GAAA,cAAA,GAAA,gBAAA,GAAA,iBAAA,GAAA,SAAA,GAAA,UAAA,GAAA,UAAA,GAAA,WAAA,GAAA,aAAA,GAAA,cAAA,GAAA,UAAA,GAAA,WAAA,GAAA,cAAA,GAAA,YAAA,CAAA,EAAA;AAc7B,cAwBA,SAxBmB,EAAA,CAAA,MAwBD,cAxBK,CAAA,EAAA"}
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"}
@@ -1,4 +1,4 @@
1
- import { a as General, c as SeasonResult, i as FinancialDatum, n as BS, o as PL, r as Expense, s as Revenue, t as Attd } from "./data-c1kTjXyV.mjs";
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: ("revenue" | "expense" | "op_profit" | "no_rev" | "no_exp" | "ordinary_profit" | "sp_rev" | "sp_exp" | "profit_before_tax" | "tax" | "profit" | "related_revenue" | "curr_assets" | "fixed_assets" | "assets" | "curr_liabilities" | "fixed_liabilities" | "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" | "league_attd" | "league_games" | "leaguecup_attd" | "leaguecup_games" | "po_attd" | "po_games" | "acl_attd" | "acl_games" | "second_attd" | "second_games" | "all_attd" | "all_games" | "average_attd" | "unit_price")[];
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":";;;cAWa,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,EAAO,CAAA,SAAA,GAAA,SAAA,GAAA,WAAA,GAAA,QAAA,GAAA,QAAA,GAAA,iBAAA,GAAA,QAAA,GAAA,QAAA,GAAA,mBAAA,GAAA,KAAA,GAAA,QAAA,GAAA,iBAAA,GAAA,aAAA,GAAA,cAAA,GAAA,QAAA,GAAA,kBAAA,GAAA,mBAAA,GAAA,aAAA,GAAA,WAAA,GAAA,eAAA,GAAA,iBAAA,GAAA,mBAAA,GAAA,SAAA,GAAA,QAAA,GAAA,WAAA,GAAA,aAAA,GAAA,WAAA,GAAA,WAAA,GAAA,cAAA,GAAA,kBAAA,GAAA,kBAAA,GAAA,YAAA,GAAA,QAAA,GAAA,cAAA,GAAA,kBAAA,GAAA,kBAAA,GAAA,YAAA,GAAA,aAAA,GAAA,UAAA,GAAA,UAAA,GAAA,aAAA,GAAA,WAAA,GAAA,WAAA,GAAA,YAAA,GAAA,KAAA,GAAA,aAAA,GAAA,cAAA,GAAA,gBAAA,GAAA,iBAAA,GAAA,SAAA,GAAA,UAAA,GAAA,UAAA,GAAA,WAAA,GAAA,aAAA,GAAA,cAAA,GAAA,UAAA,GAAA,WAAA,GAAA,cAAA,GAAA,YAAA,CAAA,EAAA;AAc7B,cAwBA,SAxBmB,EAAA,CAAI,MAwBL,cAxBK,CAAA,EAAA"}
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"}
@@ -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
@@ -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":";AAWA,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,MAAa,oBAAoB;CAC/B,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACJ;AACD,MAAaC,YAAsC,CACjD,GAAG,eACH,GAAG,kBACJ"}
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"}
@@ -17,4 +17,4 @@ type ClubInfo = {
17
17
  };
18
18
  //#endregion
19
19
  export { ClubInfo as t };
20
- //# sourceMappingURL=club-CcV6Gouv.d.mts.map
20
+ //# sourceMappingURL=club-CauHQ_x1.d.mts.map
@@ -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"}
@@ -17,4 +17,4 @@ type ClubInfo = {
17
17
  };
18
18
  //#endregion
19
19
  export { ClubInfo as t };
20
- //# sourceMappingURL=club-DConAzRZ.d.cts.map
20
+ //# sourceMappingURL=club-CmkWZe16.d.cts.map
@@ -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"}
@@ -890,4 +890,4 @@ function getClubsByCategory(category) {
890
890
 
891
891
  //#endregion
892
892
  export { getClubBySlug as n, getClubsByCategory as r, getAllClubs as t };
893
- //# sourceMappingURL=clubs-BF9Y0ITz.mjs.map
893
+ //# sourceMappingURL=clubs-BitYeQ3W.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"clubs-BF9Y0ITz.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"}
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
@@ -1,4 +1,4 @@
1
- import { t as ClubInfo } from "./club-DConAzRZ.cjs";
1
+ import { t as ClubInfo } from "./club-CmkWZe16.cjs";
2
2
  import "./types/index.cjs";
3
3
 
4
4
  //#region src/clubs.d.ts
package/dist/clubs.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as ClubInfo } from "./club-CcV6Gouv.mjs";
1
+ import { t as ClubInfo } from "./club-CauHQ_x1.mjs";
2
2
  import "./types/index.mjs";
3
3
 
4
4
  //#region src/clubs.d.ts
package/dist/clubs.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { n as getClubBySlug, r as getClubsByCategory, t as getAllClubs } from "./clubs-BF9Y0ITz.mjs";
1
+ import { n as getClubBySlug, r as getClubsByCategory, t as getAllClubs } from "./clubs-BitYeQ3W.mjs";
2
2
 
3
3
  export { getAllClubs, getClubBySlug, getClubsByCategory };
@@ -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 { General as a, SeasonResult as c, FinancialDatum as i, BS as n, PL as o, Expense as r, Revenue as s, Attd as t };
158
- //# sourceMappingURL=data-Bs9dSa_0.d.cts.map
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 { General as a, SeasonResult as c, FinancialDatum as i, BS as n, PL as o, Expense as r, Revenue as s, Attd as t };
158
- //# sourceMappingURL=data-c1kTjXyV.d.mts.map
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;
@@ -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"}
@@ -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"}
@@ -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-LXXa4AIA.mjs.map
102
+ //# sourceMappingURL=dictionary-C5g3hCzq.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"dictionary-LXXa4AIA.mjs","names":["dictionary"],"sources":["../src/data/dictionary.json","../src/dictionary.ts"],"sourcesContent":["","import type { FinancialDatum } from \"./types\";\nimport dictionary from \"./data/dictionary.json\";\n\nconst has = Object.prototype.hasOwnProperty;\n\nfunction isDirectoryKey(\n key: string,\n): key is keyof Omit<FinancialDatum, \"slug\"> {\n return has.call(dictionary, key);\n}\n\n/**\n * プロパティ名から日本語ラベルを取得する\n * @param key FinancialDatum のプロパティ名\n * @returns 日本語ラベル。未定義のキーの場合はキー名をそのまま返す\n */\nexport function getLabel(key: string): string {\n if (isDirectoryKey(key)) return dictionary[key];\n return key;\n}\n\n/**\n * プロパティ名から日本語ラベルを取得する(オプションつき)\n * @param key FinancialDatum のプロパティ名\n * @param options fallback や後処理のオプション\n * @returns 日本語ラベル\n */\nexport function getLabelWithOptions(\n key: keyof Omit<FinancialDatum, \"slug\">,\n options?: {\n /** キーが未定義の場合のフォールバック。省略時はキー名を返す */\n fallback?: string;\n /** ラベルに対する後処理 */\n transform?: (label: string) => string;\n },\n): string {\n const label = dictionary[key] ?? options?.fallback ?? key;\n return options?.transform ? options.transform(label) : label;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACGA,MAAM,MAAM,OAAO,UAAU;AAE7B,SAAS,eACP,KAC2C;AAC3C,QAAO,IAAI,KAAKA,oBAAY,IAAI;;;;;;;AAQlC,SAAgB,SAAS,KAAqB;AAC5C,KAAI,eAAe,IAAI,CAAE,QAAOA,mBAAW;AAC3C,QAAO;;;;;;;;AAST,SAAgB,oBACd,KACA,SAMQ;CACR,MAAM,QAAQA,mBAAW,QAAQ,SAAS,YAAY;AACtD,QAAO,SAAS,YAAY,QAAQ,UAAU,MAAM,GAAG"}
1
+ {"version":3,"file":"dictionary-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"}
@@ -1,4 +1,4 @@
1
- import { i as FinancialDatum } from "./data-Bs9dSa_0.cjs";
1
+ import { a as FinancialDatum } from "./data-Dr1RQuDQ.cjs";
2
2
  import "./types/index.cjs";
3
3
 
4
4
  //#region src/dictionary.d.ts
@@ -1,4 +1,4 @@
1
- import { i as FinancialDatum } from "./data-c1kTjXyV.mjs";
1
+ import { a as FinancialDatum } from "./data-CEME1ilU.mjs";
2
2
  import "./types/index.mjs";
3
3
 
4
4
  //#region src/dictionary.d.ts
@@ -1,3 +1,3 @@
1
- import { n as getLabelWithOptions, t as getLabel } from "./dictionary-LXXa4AIA.mjs";
1
+ import { n as getLabelWithOptions, t as getLabel } from "./dictionary-C5g3hCzq.mjs";
2
2
 
3
3
  export { getLabel, getLabelWithOptions };
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 General, c as SeasonResult, i as FinancialDatum, n as BS, o as PL, r as Expense, s as Revenue, t as Attd } from "./data-Bs9dSa_0.cjs";
2
- import { allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, plFields, revenueFields } from "./all-fields.cjs";
3
- import { t as ClubInfo } from "./club-DConAzRZ.cjs";
4
- import { t as YearInfo } from "./year-CSrJssAF.cjs";
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 General, c as SeasonResult, i as FinancialDatum, n as BS, o as PL, r as Expense, s as Revenue, t as Attd } from "./data-c1kTjXyV.mjs";
2
- import { allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, plFields, revenueFields } from "./all-fields.mjs";
3
- import { t as ClubInfo } from "./club-CcV6Gouv.mjs";
4
- import { t as YearInfo } from "./year-C02MQex_.mjs";
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-BF9Y0ITz.mjs";
3
- import { n as getLabelWithOptions, t as getLabel } from "./dictionary-LXXa4AIA.mjs";
4
- import { t as getAllYears } from "./years-6Ii8ZNVQ.mjs";
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 };
@@ -1,2 +1,2 @@
1
- import { t as ClubInfo } from "../club-DConAzRZ.cjs";
1
+ import { t as ClubInfo } from "../club-CmkWZe16.cjs";
2
2
  export { ClubInfo };
@@ -1,2 +1,2 @@
1
- import { t as ClubInfo } from "../club-CcV6Gouv.mjs";
1
+ import { t as ClubInfo } from "../club-CauHQ_x1.mjs";
2
2
  export { ClubInfo };
@@ -1,2 +1,2 @@
1
- import { a as General, c as SeasonResult, i as FinancialDatum, n as BS, o as PL, r as Expense, s as Revenue, t as Attd } from "../data-Bs9dSa_0.cjs";
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 };
@@ -1,2 +1,2 @@
1
- import { a as General, c as SeasonResult, i as FinancialDatum, n as BS, o as PL, r as Expense, s as Revenue, t as Attd } from "../data-c1kTjXyV.mjs";
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 };
@@ -1,4 +1,4 @@
1
- import { a as General, c as SeasonResult, i as FinancialDatum, n as BS, o as PL, r as Expense, s as Revenue, t as Attd } from "../data-Bs9dSa_0.cjs";
2
- import { t as ClubInfo } from "../club-DConAzRZ.cjs";
3
- import { t as YearInfo } from "../year-CSrJssAF.cjs";
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 };
@@ -1,4 +1,4 @@
1
- import { a as General, c as SeasonResult, i as FinancialDatum, n as BS, o as PL, r as Expense, s as Revenue, t as Attd } from "../data-c1kTjXyV.mjs";
2
- import { t as ClubInfo } from "../club-CcV6Gouv.mjs";
3
- import { t as YearInfo } from "../year-C02MQex_.mjs";
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 };
@@ -1,2 +1,2 @@
1
- import { t as YearInfo } from "../year-CSrJssAF.cjs";
1
+ import { t as YearInfo } from "../year-uMcmlIjv.cjs";
2
2
  export { YearInfo };
@@ -1,2 +1,2 @@
1
- import { t as YearInfo } from "../year-C02MQex_.mjs";
1
+ import { t as YearInfo } from "../year-YIR3AeyZ.mjs";
2
2
  export { YearInfo };
@@ -6,4 +6,4 @@ type YearInfo = {
6
6
  };
7
7
  //#endregion
8
8
  export { YearInfo as t };
9
- //# sourceMappingURL=year-C02MQex_.d.mts.map
9
+ //# sourceMappingURL=year-YIR3AeyZ.d.mts.map
@@ -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"}
@@ -6,4 +6,4 @@ type YearInfo = {
6
6
  };
7
7
  //#endregion
8
8
  export { YearInfo as t };
9
- //# sourceMappingURL=year-CSrJssAF.d.cts.map
9
+ //# sourceMappingURL=year-uMcmlIjv.d.cts.map
@@ -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"}
@@ -154,4 +154,4 @@ function getAllYears() {
154
154
 
155
155
  //#endregion
156
156
  export { getAllYears as t };
157
- //# sourceMappingURL=years-6Ii8ZNVQ.mjs.map
157
+ //# sourceMappingURL=years-BwmUZcK_.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"years-6Ii8ZNVQ.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"}
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
@@ -1,4 +1,4 @@
1
- import { t as YearInfo } from "./year-CSrJssAF.cjs";
1
+ import { t as YearInfo } from "./year-uMcmlIjv.cjs";
2
2
  import "./types/index.cjs";
3
3
 
4
4
  //#region src/years.d.ts
package/dist/years.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as YearInfo } from "./year-C02MQex_.mjs";
1
+ import { t as YearInfo } from "./year-YIR3AeyZ.mjs";
2
2
  import "./types/index.mjs";
3
3
 
4
4
  //#region src/years.d.ts
package/dist/years.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { t as getAllYears } from "./years-6Ii8ZNVQ.mjs";
1
+ import { t as getAllYears } from "./years-BwmUZcK_.mjs";
2
2
 
3
3
  export { getAllYears };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cieloazul310/jclub-financial-utils",
3
- "version": "0.0.1-alpha.1",
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.1",
56
- "@repo/typescript-config": "^0.0.1-alpha.1",
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