@cieloazul310/jclub-financial-utils 0.0.1-alpha.2 → 0.0.1-alpha.4
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 -92
- package/dist/all-fields.d.cts +9 -10
- package/dist/all-fields.d.cts.map +1 -1
- package/dist/all-fields.d.mts +9 -10
- package/dist/all-fields.d.mts.map +1 -1
- package/dist/all-fields.mjs +111 -85
- package/dist/all-fields.mjs.map +1 -1
- package/dist/{club-DConAzRZ.d.cts → club-CauHQ_x1.d.mts} +1 -1
- package/dist/club-CauHQ_x1.d.mts.map +1 -0
- package/dist/{club-CcV6Gouv.d.mts → 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-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 +43 -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 +43 -0
- package/dist/data.mjs.map +1 -0
- package/dist/{dictionary-BzN32kPK.cjs → dictionary-BZ_zUPSy.cjs} +1 -1
- package/dist/{dictionary-LXXa4AIA.mjs → dictionary-D9CmvgCW.mjs} +2 -2
- package/dist/{dictionary-LXXa4AIA.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 +21 -10
- package/dist/index.d.cts +6 -5
- package/dist/index.d.mts +6 -5
- package/dist/index.mjs +7 -5
- package/dist/types/club.d.cts +1 -1
- package/dist/types/club.d.mts +1 -1
- 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 +4 -4
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.mjs +3 -1
- 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-BD3YalWA.mjs} +1 -1
- package/dist/{years-6Ii8ZNVQ.mjs.map → years-BD3YalWA.mjs.map} +1 -1
- package/dist/years.cjs +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 +0 -158
- package/dist/data-Bs9dSa_0.d.cts.map +0 -1
- package/dist/data-c1kTjXyV.d.mts +0 -158
- package/dist/data-c1kTjXyV.d.mts.map +0 -1
- package/dist/year-0HxxyYb_.mjs +0 -1
- package/dist/year-C02MQex_.d.mts.map +0 -1
- package/dist/year-CSrJssAF.d.cts.map +0 -1
- package/dist/year-dUgWR1aM.cjs +0 -0
- /package/dist/{club-CCls7mTR.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-BI1o8Mn-.mjs → year-DlsIuRa9.mjs} +0 -0
- /package/dist/{years-DRN0nquf.cjs → years-BtLTGqsM.cjs} +0 -0
package/dist/data.cjs
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const require_data = require('./data-CGTGYuvt.cjs');
|
|
2
|
+
require('./types/index.cjs');
|
|
3
|
+
|
|
4
|
+
//#region src/data.ts
|
|
5
|
+
function isGeneralFields(key) {
|
|
6
|
+
return require_data.AllGeneralFields.some((str) => str === key);
|
|
7
|
+
}
|
|
8
|
+
function isSeasonResultFields(key) {
|
|
9
|
+
return require_data.AllSeasonResultFields.some((str) => str === key);
|
|
10
|
+
}
|
|
11
|
+
function processDatum(datum, prev) {
|
|
12
|
+
const obj = {};
|
|
13
|
+
for (const key of require_data.AllFields) {
|
|
14
|
+
const value = datum[key];
|
|
15
|
+
if (isGeneralFields(key) || isSeasonResultFields(key)) {
|
|
16
|
+
if (value) obj[key] = { value };
|
|
17
|
+
continue;
|
|
18
|
+
}
|
|
19
|
+
if (typeof value === "number") {
|
|
20
|
+
obj[key] = {
|
|
21
|
+
value,
|
|
22
|
+
delta: typeof prev?.[key] === "number" ? value - prev[key] : null
|
|
23
|
+
};
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return obj;
|
|
28
|
+
}
|
|
29
|
+
function extendClubData(data) {
|
|
30
|
+
return [...data].sort((a, b) => a.year - b.year).map((d, index, arr) => {
|
|
31
|
+
return processDatum(d, index === 0 ? null : arr[index - 1]);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function extendYearData(data, prevData) {
|
|
35
|
+
return data.map((datum) => {
|
|
36
|
+
const prev = prevData?.find(({ slug }) => slug === datum.slug);
|
|
37
|
+
return processDatum(datum, prev);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
exports.extendClubData = extendClubData;
|
|
43
|
+
exports.extendYearData = extendYearData;
|
package/dist/data.d.cts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { _ as ExtendedFinancialDatum, v as FinancialDatum } from "./data-BifrD3Hs.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":";;;;iBAuCgB,cAAA,OACR,mBACL;iBASa,cAAA,OACR,4BACI,0BACT"}
|
package/dist/data.d.mts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { _ as ExtendedFinancialDatum, v as FinancialDatum } from "./data-rDHl-GBR.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":";;;;iBAuCgB,cAAA,OACR,mBACL;iBASa,cAAA,OACR,4BACI,0BACT"}
|
package/dist/data.mjs
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { a as AllGeneralFields, c as AllSeasonResultFields, i as AllFields } from "./data-PJ-fpqmg.mjs";
|
|
2
|
+
import "./types/index.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/data.ts
|
|
5
|
+
function isGeneralFields(key) {
|
|
6
|
+
return AllGeneralFields.some((str) => str === key);
|
|
7
|
+
}
|
|
8
|
+
function isSeasonResultFields(key) {
|
|
9
|
+
return AllSeasonResultFields.some((str) => str === key);
|
|
10
|
+
}
|
|
11
|
+
function processDatum(datum, prev) {
|
|
12
|
+
const obj = {};
|
|
13
|
+
for (const key of AllFields) {
|
|
14
|
+
const value = datum[key];
|
|
15
|
+
if (isGeneralFields(key) || isSeasonResultFields(key)) {
|
|
16
|
+
if (value) obj[key] = { value };
|
|
17
|
+
continue;
|
|
18
|
+
}
|
|
19
|
+
if (typeof value === "number") {
|
|
20
|
+
obj[key] = {
|
|
21
|
+
value,
|
|
22
|
+
delta: typeof prev?.[key] === "number" ? value - prev[key] : null
|
|
23
|
+
};
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return obj;
|
|
28
|
+
}
|
|
29
|
+
function extendClubData(data) {
|
|
30
|
+
return [...data].sort((a, b) => a.year - b.year).map((d, index, arr) => {
|
|
31
|
+
return processDatum(d, index === 0 ? null : arr[index - 1]);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function extendYearData(data, prevData) {
|
|
35
|
+
return data.map((datum) => {
|
|
36
|
+
const prev = prevData?.find(({ slug }) => slug === datum.slug);
|
|
37
|
+
return processDatum(datum, prev);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
export { extendClubData, extendYearData };
|
|
43
|
+
//# sourceMappingURL=data.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.mjs","names":[],"sources":["../src/data.ts"],"sourcesContent":["import {\n AllFields,\n AllGeneralFields,\n AllSeasonResultFields,\n type GeneralFields,\n type FinancialDatum,\n type ExtendedFinancialDatum,\n type SeasonResultFields,\n} from \"./types\";\n\nfunction isGeneralFields(key: string): key is GeneralFields {\n return AllGeneralFields.some((str) => str === key);\n}\nfunction isSeasonResultFields(key: string): key is SeasonResultFields {\n return AllSeasonResultFields.some((str) => str === key);\n}\n\nfunction processDatum(datum: FinancialDatum, prev?: FinancialDatum | null) {\n const obj = {} as any;\n\n for (const key of AllFields) {\n const value = datum[key];\n if (isGeneralFields(key) || isSeasonResultFields(key)) {\n if (value) {\n obj[key] = { value };\n }\n continue;\n }\n if (typeof value === \"number\") {\n obj[key] = {\n value,\n delta: typeof prev?.[key] === \"number\" ? value - prev[key] : null,\n };\n continue;\n }\n }\n return obj;\n}\n\nexport function extendClubData(\n data: FinancialDatum[],\n): ExtendedFinancialDatum[] {\n const sorted = [...data].sort((a, b) => a.year - b.year);\n return sorted.map((d, index, arr) => {\n const prev = index === 0 ? null : arr[index - 1];\n\n return processDatum(d, prev);\n });\n}\n\nexport function extendYearData(\n data: FinancialDatum[],\n prevData: FinancialDatum[] | null,\n): ExtendedFinancialDatum[] {\n return data.map((datum) => {\n const prev = prevData?.find(({ slug }) => slug === datum.slug);\n\n return processDatum(datum, prev);\n });\n}\n"],"mappings":";;;;AAUA,SAAS,gBAAgB,KAAmC;AAC1D,QAAO,iBAAiB,MAAM,QAAQ,QAAQ,IAAI;;AAEpD,SAAS,qBAAqB,KAAwC;AACpE,QAAO,sBAAsB,MAAM,QAAQ,QAAQ,IAAI;;AAGzD,SAAS,aAAa,OAAuB,MAA8B;CACzE,MAAM,MAAM,EAAE;AAEd,MAAK,MAAM,OAAO,WAAW;EAC3B,MAAM,QAAQ,MAAM;AACpB,MAAI,gBAAgB,IAAI,IAAI,qBAAqB,IAAI,EAAE;AACrD,OAAI,MACF,KAAI,OAAO,EAAE,OAAO;AAEtB;;AAEF,MAAI,OAAO,UAAU,UAAU;AAC7B,OAAI,OAAO;IACT;IACA,OAAO,OAAO,OAAO,SAAS,WAAW,QAAQ,KAAK,OAAO;IAC9D;AACD;;;AAGJ,QAAO;;AAGT,SAAgB,eACd,MAC0B;AAE1B,QADe,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,EAAE,OAAO,EAAE,KAAK,CAC1C,KAAK,GAAG,OAAO,QAAQ;AAGnC,SAAO,aAAa,GAFP,UAAU,IAAI,OAAO,IAAI,QAAQ,GAElB;GAC5B;;AAGJ,SAAgB,eACd,MACA,UAC0B;AAC1B,QAAO,KAAK,KAAK,UAAU;EACzB,MAAM,OAAO,UAAU,MAAM,EAAE,WAAW,SAAS,MAAM,KAAK;AAE9D,SAAO,aAAa,OAAO,KAAK;GAChC"}
|
|
@@ -23,7 +23,7 @@ var dictionary_default = {
|
|
|
23
23
|
transfer_exp: "移籍関連費用",
|
|
24
24
|
transfer_int_exp: "国外クラブからの移籍に関する費用",
|
|
25
25
|
transfer_dom_exp: "国内クラブからの移籍に関する費用",
|
|
26
|
-
manage_exp: "事業費",
|
|
26
|
+
manage_exp: "事業費(チーム人件費を除く)",
|
|
27
27
|
general_exp: "総事業費",
|
|
28
28
|
game_exp: "試合関連経費",
|
|
29
29
|
team_exp: "トップチーム運営経費",
|
|
@@ -22,7 +22,7 @@ var dictionary_default = {
|
|
|
22
22
|
transfer_exp: "移籍関連費用",
|
|
23
23
|
transfer_int_exp: "国外クラブからの移籍に関する費用",
|
|
24
24
|
transfer_dom_exp: "国内クラブからの移籍に関する費用",
|
|
25
|
-
manage_exp: "事業費",
|
|
25
|
+
manage_exp: "事業費(チーム人件費を除く)",
|
|
26
26
|
general_exp: "総事業費",
|
|
27
27
|
game_exp: "試合関連経費",
|
|
28
28
|
team_exp: "トップチーム運営経費",
|
|
@@ -99,4 +99,4 @@ function getLabelWithOptions(key, options) {
|
|
|
99
99
|
|
|
100
100
|
//#endregion
|
|
101
101
|
export { getLabelWithOptions as n, getLabel as t };
|
|
102
|
-
//# sourceMappingURL=dictionary-
|
|
102
|
+
//# sourceMappingURL=dictionary-D9CmvgCW.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary-
|
|
1
|
+
{"version":3,"file":"dictionary-D9CmvgCW.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.cjs
CHANGED
package/dist/dictionary.d.cts
CHANGED
package/dist/dictionary.d.mts
CHANGED
package/dist/dictionary.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,20 +1,31 @@
|
|
|
1
1
|
const require_all_fields = require('./all-fields.cjs');
|
|
2
2
|
const require_clubs = require('./clubs-B6WFNimH.cjs');
|
|
3
|
-
const
|
|
4
|
-
const require_years = require('./years-DRN0nquf.cjs');
|
|
3
|
+
const require_data = require('./data-CGTGYuvt.cjs');
|
|
5
4
|
require('./types/index.cjs');
|
|
5
|
+
const require_data$1 = require('./data.cjs');
|
|
6
|
+
const require_dictionary = require('./dictionary-BZ_zUPSy.cjs');
|
|
7
|
+
const require_years = require('./years-BtLTGqsM.cjs');
|
|
6
8
|
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
9
|
+
exports.AllAttdFields = require_data.AllAttdFields;
|
|
10
|
+
exports.AllBSFields = require_data.AllBSFields;
|
|
11
|
+
exports.AllExpenseFields = require_data.AllExpenseFields;
|
|
12
|
+
exports.AllFields = require_data.AllFields;
|
|
13
|
+
exports.AllGeneralFields = require_data.AllGeneralFields;
|
|
14
|
+
exports.AllPLFields = require_data.AllPLFields;
|
|
15
|
+
exports.AllRevenueFields = require_data.AllRevenueFields;
|
|
16
|
+
exports.AllSeasonResultFields = require_data.AllSeasonResultFields;
|
|
17
|
+
exports.extendClubData = require_data$1.extendClubData;
|
|
18
|
+
exports.extendYearData = require_data$1.extendYearData;
|
|
13
19
|
exports.getAllClubs = require_clubs.getAllClubs;
|
|
14
20
|
exports.getAllYears = require_years.getAllYears;
|
|
21
|
+
exports.getAttd = require_all_fields.getAttd;
|
|
22
|
+
exports.getBS = require_all_fields.getBS;
|
|
15
23
|
exports.getClubBySlug = require_clubs.getClubBySlug;
|
|
16
24
|
exports.getClubsByCategory = require_clubs.getClubsByCategory;
|
|
25
|
+
exports.getExpense = require_all_fields.getExpense;
|
|
26
|
+
exports.getGeneral = require_all_fields.getGeneral;
|
|
17
27
|
exports.getLabel = require_dictionary.getLabel;
|
|
18
28
|
exports.getLabelWithOptions = require_dictionary.getLabelWithOptions;
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
29
|
+
exports.getPL = require_all_fields.getPL;
|
|
30
|
+
exports.getRevenue = require_all_fields.getRevenue;
|
|
31
|
+
exports.getSeasonResult = require_all_fields.getSeasonResult;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import {
|
|
3
|
-
import { t as ClubInfo } from "./club-
|
|
4
|
-
import { t as YearInfo } from "./year-
|
|
1
|
+
import { C as Revenue, D as SortableKeys, E as SeasonResultFields, S as PLFields, T as SeasonResult, _ as ExtendedFinancialDatum, a as AllGeneralFields, b as GeneralFields, c as AllSeasonResultFields, d as BS, f as BSFields, g as ExtendedDataLike, h as Extended, i as AllFields, l as Attd, m as ExpenseFields, n as AllBSFields, o as AllPLFields, p as Expense, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields, u as AttdFields, v as FinancialDatum, w as RevenueFields, x as PL, y as General } from "./data-BifrD3Hs.cjs";
|
|
2
|
+
import { getAttd, getBS, getExpense, getGeneral, getPL, getRevenue, getSeasonResult } 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,
|
|
10
|
+
export { AllAttdFields, AllBSFields, AllExpenseFields, AllFields, AllGeneralFields, AllPLFields, AllRevenueFields, AllSeasonResultFields, Attd, AttdFields, BS, BSFields, ClubInfo, Expense, ExpenseFields, Extended, ExtendedDataLike, ExtendedFinancialDatum, FinancialDatum, General, GeneralFields, PL, PLFields, Revenue, RevenueFields, SeasonResult, SeasonResultFields, SortableKeys, YearInfo, extendClubData, extendYearData, getAllClubs, getAllYears, getAttd, getBS, getClubBySlug, getClubsByCategory, getExpense, getGeneral, getLabel, getLabelWithOptions, getPL, getRevenue, getSeasonResult };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import {
|
|
3
|
-
import { t as ClubInfo } from "./club-
|
|
4
|
-
import { t as YearInfo } from "./year-
|
|
1
|
+
import { C as Revenue, D as SortableKeys, E as SeasonResultFields, S as PLFields, T as SeasonResult, _ as ExtendedFinancialDatum, a as AllGeneralFields, b as GeneralFields, c as AllSeasonResultFields, d as BS, f as BSFields, g as ExtendedDataLike, h as Extended, i as AllFields, l as Attd, m as ExpenseFields, n as AllBSFields, o as AllPLFields, p as Expense, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields, u as AttdFields, v as FinancialDatum, w as RevenueFields, x as PL, y as General } from "./data-rDHl-GBR.mjs";
|
|
2
|
+
import { getAttd, getBS, getExpense, getGeneral, getPL, getRevenue, getSeasonResult } 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,
|
|
10
|
+
export { AllAttdFields, AllBSFields, AllExpenseFields, AllFields, AllGeneralFields, AllPLFields, AllRevenueFields, AllSeasonResultFields, Attd, AttdFields, BS, BSFields, ClubInfo, Expense, ExpenseFields, Extended, ExtendedDataLike, ExtendedFinancialDatum, FinancialDatum, General, GeneralFields, PL, PLFields, Revenue, RevenueFields, SeasonResult, SeasonResultFields, SortableKeys, YearInfo, extendClubData, extendYearData, getAllClubs, getAllYears, getAttd, getBS, getClubBySlug, getClubsByCategory, getExpense, getGeneral, getLabel, getLabelWithOptions, getPL, getRevenue, getSeasonResult };
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as getClubBySlug, r as getClubsByCategory, t as getAllClubs } from "./clubs-
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as getAllYears } from "./years-6Ii8ZNVQ.mjs";
|
|
1
|
+
import { getAttd, getBS, getExpense, getGeneral, getPL, getRevenue, getSeasonResult } from "./all-fields.mjs";
|
|
2
|
+
import { n as getClubBySlug, r as getClubsByCategory, t as getAllClubs } from "./clubs-BitYeQ3W.mjs";
|
|
3
|
+
import { a as AllGeneralFields, c as AllSeasonResultFields, i as AllFields, n as AllBSFields, o as AllPLFields, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields } from "./data-PJ-fpqmg.mjs";
|
|
5
4
|
import "./types/index.mjs";
|
|
5
|
+
import { extendClubData, extendYearData } from "./data.mjs";
|
|
6
|
+
import { n as getLabelWithOptions, t as getLabel } from "./dictionary-D9CmvgCW.mjs";
|
|
7
|
+
import { t as getAllYears } from "./years-BD3YalWA.mjs";
|
|
6
8
|
|
|
7
|
-
export {
|
|
9
|
+
export { AllAttdFields, AllBSFields, AllExpenseFields, AllFields, AllGeneralFields, AllPLFields, AllRevenueFields, AllSeasonResultFields, extendClubData, extendYearData, getAllClubs, getAllYears, getAttd, getBS, getClubBySlug, getClubsByCategory, getExpense, getGeneral, getLabel, getLabelWithOptions, getPL, getRevenue, getSeasonResult };
|
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.cjs
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const require_data = require('../data-CGTGYuvt.cjs');
|
|
2
|
+
|
|
3
|
+
exports.AllAttdFields = require_data.AllAttdFields;
|
|
4
|
+
exports.AllBSFields = require_data.AllBSFields;
|
|
5
|
+
exports.AllExpenseFields = require_data.AllExpenseFields;
|
|
6
|
+
exports.AllFields = require_data.AllFields;
|
|
7
|
+
exports.AllGeneralFields = require_data.AllGeneralFields;
|
|
8
|
+
exports.AllPLFields = require_data.AllPLFields;
|
|
9
|
+
exports.AllRevenueFields = require_data.AllRevenueFields;
|
|
10
|
+
exports.AllSeasonResultFields = require_data.AllSeasonResultFields;
|
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 { C as Revenue, D as SortableKeys, E as SeasonResultFields, S as PLFields, T as SeasonResult, _ as ExtendedFinancialDatum, a as AllGeneralFields, b as GeneralFields, c as AllSeasonResultFields, d as BS, f as BSFields, g as ExtendedDataLike, h as Extended, i as AllFields, l as Attd, m as ExpenseFields, n as AllBSFields, o as AllPLFields, p as Expense, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields, u as AttdFields, v as FinancialDatum, w as RevenueFields, x as PL, y as General } from "../data-BifrD3Hs.cjs";
|
|
2
|
+
export { AllAttdFields, AllBSFields, AllExpenseFields, AllFields, AllGeneralFields, AllPLFields, AllRevenueFields, AllSeasonResultFields, Attd, AttdFields, BS, BSFields, Expense, ExpenseFields, Extended, ExtendedDataLike, ExtendedFinancialDatum, FinancialDatum, General, GeneralFields, PL, PLFields, Revenue, RevenueFields, SeasonResult, SeasonResultFields, SortableKeys };
|
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 { C as Revenue, D as SortableKeys, E as SeasonResultFields, S as PLFields, T as SeasonResult, _ as ExtendedFinancialDatum, a as AllGeneralFields, b as GeneralFields, c as AllSeasonResultFields, d as BS, f as BSFields, g as ExtendedDataLike, h as Extended, i as AllFields, l as Attd, m as ExpenseFields, n as AllBSFields, o as AllPLFields, p as Expense, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields, u as AttdFields, v as FinancialDatum, w as RevenueFields, x as PL, y as General } from "../data-rDHl-GBR.mjs";
|
|
2
|
+
export { AllAttdFields, AllBSFields, AllExpenseFields, AllFields, AllGeneralFields, AllPLFields, AllRevenueFields, AllSeasonResultFields, Attd, AttdFields, BS, BSFields, Expense, ExpenseFields, Extended, ExtendedDataLike, ExtendedFinancialDatum, FinancialDatum, General, GeneralFields, PL, PLFields, Revenue, RevenueFields, SeasonResult, SeasonResultFields, SortableKeys };
|
package/dist/types/data.mjs
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { a as AllGeneralFields, c as AllSeasonResultFields, i as AllFields, n as AllBSFields, o as AllPLFields, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields } from "../data-PJ-fpqmg.mjs";
|
|
2
|
+
|
|
3
|
+
export { AllAttdFields, AllBSFields, AllExpenseFields, AllFields, AllGeneralFields, AllPLFields, AllRevenueFields, AllSeasonResultFields };
|
package/dist/types/index.cjs
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const require_data = require('../data-CGTGYuvt.cjs');
|
|
2
|
+
|
|
3
|
+
exports.AllAttdFields = require_data.AllAttdFields;
|
|
4
|
+
exports.AllBSFields = require_data.AllBSFields;
|
|
5
|
+
exports.AllExpenseFields = require_data.AllExpenseFields;
|
|
6
|
+
exports.AllFields = require_data.AllFields;
|
|
7
|
+
exports.AllGeneralFields = require_data.AllGeneralFields;
|
|
8
|
+
exports.AllPLFields = require_data.AllPLFields;
|
|
9
|
+
exports.AllRevenueFields = require_data.AllRevenueFields;
|
|
10
|
+
exports.AllSeasonResultFields = require_data.AllSeasonResultFields;
|
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 { C as Revenue, D as SortableKeys, E as SeasonResultFields, S as PLFields, T as SeasonResult, _ as ExtendedFinancialDatum, a as AllGeneralFields, b as GeneralFields, c as AllSeasonResultFields, d as BS, f as BSFields, g as ExtendedDataLike, h as Extended, i as AllFields, l as Attd, m as ExpenseFields, n as AllBSFields, o as AllPLFields, p as Expense, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields, u as AttdFields, v as FinancialDatum, w as RevenueFields, x as PL, y as General } from "../data-BifrD3Hs.cjs";
|
|
2
|
+
import { t as ClubInfo } from "../club-CmkWZe16.cjs";
|
|
3
|
+
import { t as YearInfo } from "../year-uMcmlIjv.cjs";
|
|
4
|
+
export { AllAttdFields, AllBSFields, AllExpenseFields, AllFields, AllGeneralFields, AllPLFields, AllRevenueFields, AllSeasonResultFields, Attd, AttdFields, BS, BSFields, ClubInfo, Expense, ExpenseFields, Extended, ExtendedDataLike, ExtendedFinancialDatum, FinancialDatum, General, GeneralFields, PL, PLFields, Revenue, RevenueFields, SeasonResult, SeasonResultFields, SortableKeys, 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 { C as Revenue, D as SortableKeys, E as SeasonResultFields, S as PLFields, T as SeasonResult, _ as ExtendedFinancialDatum, a as AllGeneralFields, b as GeneralFields, c as AllSeasonResultFields, d as BS, f as BSFields, g as ExtendedDataLike, h as Extended, i as AllFields, l as Attd, m as ExpenseFields, n as AllBSFields, o as AllPLFields, p as Expense, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields, u as AttdFields, v as FinancialDatum, w as RevenueFields, x as PL, y as General } from "../data-rDHl-GBR.mjs";
|
|
2
|
+
import { t as ClubInfo } from "../club-CauHQ_x1.mjs";
|
|
3
|
+
import { t as YearInfo } from "../year-YIR3AeyZ.mjs";
|
|
4
|
+
export { AllAttdFields, AllBSFields, AllExpenseFields, AllFields, AllGeneralFields, AllPLFields, AllRevenueFields, AllSeasonResultFields, Attd, AttdFields, BS, BSFields, ClubInfo, Expense, ExpenseFields, Extended, ExtendedDataLike, ExtendedFinancialDatum, FinancialDatum, General, GeneralFields, PL, PLFields, Revenue, RevenueFields, SeasonResult, SeasonResultFields, SortableKeys, YearInfo };
|
package/dist/types/index.mjs
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { a as AllGeneralFields, c as AllSeasonResultFields, i as AllFields, n as AllBSFields, o as AllPLFields, r as AllExpenseFields, s as AllRevenueFields, t as AllAttdFields } from "../data-PJ-fpqmg.mjs";
|
|
2
|
+
|
|
3
|
+
export { AllAttdFields, AllBSFields, AllExpenseFields, AllFields, AllGeneralFields, AllPLFields, AllRevenueFields, AllSeasonResultFields };
|
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-BD3YalWA.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.cjs
CHANGED
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.4",
|
|
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.4",
|
|
56
|
+
"@repo/typescript-config": "^0.0.1-alpha.4",
|
|
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"}
|