@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.
Files changed (79) hide show
  1. package/dist/all-fields.cjs +117 -92
  2. package/dist/all-fields.d.cts +9 -10
  3. package/dist/all-fields.d.cts.map +1 -1
  4. package/dist/all-fields.d.mts +9 -10
  5. package/dist/all-fields.d.mts.map +1 -1
  6. package/dist/all-fields.mjs +111 -85
  7. package/dist/all-fields.mjs.map +1 -1
  8. package/dist/{club-DConAzRZ.d.cts → club-CauHQ_x1.d.mts} +1 -1
  9. package/dist/club-CauHQ_x1.d.mts.map +1 -0
  10. package/dist/{club-CcV6Gouv.d.mts → 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-BifrD3Hs.d.cts +180 -0
  18. package/dist/data-BifrD3Hs.d.cts.map +1 -0
  19. package/dist/data-CGTGYuvt.cjs +151 -0
  20. package/dist/data-PJ-fpqmg.mjs +104 -0
  21. package/dist/data-PJ-fpqmg.mjs.map +1 -0
  22. package/dist/data-rDHl-GBR.d.mts +180 -0
  23. package/dist/data-rDHl-GBR.d.mts.map +1 -0
  24. package/dist/data.cjs +43 -0
  25. package/dist/data.d.cts +9 -0
  26. package/dist/data.d.cts.map +1 -0
  27. package/dist/data.d.mts +9 -0
  28. package/dist/data.d.mts.map +1 -0
  29. package/dist/data.mjs +43 -0
  30. package/dist/data.mjs.map +1 -0
  31. package/dist/{dictionary-BzN32kPK.cjs → dictionary-BZ_zUPSy.cjs} +1 -1
  32. package/dist/{dictionary-LXXa4AIA.mjs → dictionary-D9CmvgCW.mjs} +2 -2
  33. package/dist/{dictionary-LXXa4AIA.mjs.map → dictionary-D9CmvgCW.mjs.map} +1 -1
  34. package/dist/dictionary.cjs +1 -1
  35. package/dist/dictionary.d.cts +1 -1
  36. package/dist/dictionary.d.mts +1 -1
  37. package/dist/dictionary.mjs +1 -1
  38. package/dist/index.cjs +21 -10
  39. package/dist/index.d.cts +6 -5
  40. package/dist/index.d.mts +6 -5
  41. package/dist/index.mjs +7 -5
  42. package/dist/types/club.d.cts +1 -1
  43. package/dist/types/club.d.mts +1 -1
  44. package/dist/types/data.cjs +10 -0
  45. package/dist/types/data.d.cts +2 -2
  46. package/dist/types/data.d.mts +2 -2
  47. package/dist/types/data.mjs +3 -1
  48. package/dist/types/index.cjs +10 -0
  49. package/dist/types/index.d.cts +4 -4
  50. package/dist/types/index.d.mts +4 -4
  51. package/dist/types/index.mjs +3 -1
  52. package/dist/types/year.d.cts +1 -1
  53. package/dist/types/year.d.mts +1 -1
  54. package/dist/{year-C02MQex_.d.mts → year-YIR3AeyZ.d.mts} +1 -1
  55. package/dist/year-YIR3AeyZ.d.mts.map +1 -0
  56. package/dist/{year-CSrJssAF.d.cts → year-uMcmlIjv.d.cts} +1 -1
  57. package/dist/year-uMcmlIjv.d.cts.map +1 -0
  58. package/dist/{years-6Ii8ZNVQ.mjs → years-BD3YalWA.mjs} +1 -1
  59. package/dist/{years-6Ii8ZNVQ.mjs.map → years-BD3YalWA.mjs.map} +1 -1
  60. package/dist/years.cjs +1 -1
  61. package/dist/years.d.cts +1 -1
  62. package/dist/years.d.mts +1 -1
  63. package/dist/years.mjs +1 -1
  64. package/package.json +3 -3
  65. package/dist/club-CcV6Gouv.d.mts.map +0 -1
  66. package/dist/club-DConAzRZ.d.cts.map +0 -1
  67. package/dist/data-Bs9dSa_0.d.cts +0 -158
  68. package/dist/data-Bs9dSa_0.d.cts.map +0 -1
  69. package/dist/data-c1kTjXyV.d.mts +0 -158
  70. package/dist/data-c1kTjXyV.d.mts.map +0 -1
  71. package/dist/year-0HxxyYb_.mjs +0 -1
  72. package/dist/year-C02MQex_.d.mts.map +0 -1
  73. package/dist/year-CSrJssAF.d.cts.map +0 -1
  74. package/dist/year-dUgWR1aM.cjs +0 -0
  75. /package/dist/{club-CCls7mTR.mjs → club-DMPe0Tct.mjs} +0 -0
  76. /package/dist/{club-CYJ2Any-.cjs → club-DtKevGOY.cjs} +0 -0
  77. /package/dist/{data-B_nPtYBn.cjs → year-C8iQUfNS.cjs} +0 -0
  78. /package/dist/{data-BI1o8Mn-.mjs → year-DlsIuRa9.mjs} +0 -0
  79. /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;
@@ -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"}
@@ -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-LXXa4AIA.mjs.map
102
+ //# sourceMappingURL=dictionary-D9CmvgCW.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-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"}
@@ -1,4 +1,4 @@
1
- const require_dictionary = require('./dictionary-BzN32kPK.cjs');
1
+ const require_dictionary = require('./dictionary-BZ_zUPSy.cjs');
2
2
 
3
3
  exports.getLabel = require_dictionary.getLabel;
4
4
  exports.getLabelWithOptions = require_dictionary.getLabelWithOptions;
@@ -1,4 +1,4 @@
1
- import { i as FinancialDatum } from "./data-Bs9dSa_0.cjs";
1
+ import { v as FinancialDatum } from "./data-BifrD3Hs.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 { v as FinancialDatum } from "./data-rDHl-GBR.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-D9CmvgCW.mjs";
2
2
 
3
3
  export { getLabel, getLabelWithOptions };
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 require_dictionary = require('./dictionary-BzN32kPK.cjs');
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.allFields = require_all_fields.allFields;
8
- exports.allSortableFields = require_all_fields.allSortableFields;
9
- exports.attdFields = require_all_fields.attdFields;
10
- exports.bsFields = require_all_fields.bsFields;
11
- exports.expenseFields = require_all_fields.expenseFields;
12
- exports.generalFields = require_all_fields.generalFields;
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.plFields = require_all_fields.plFields;
20
- exports.revenueFields = require_all_fields.revenueFields;
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 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 { 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, Revenue, SeasonResult, YearInfo, allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, getAllClubs, getAllYears, getClubBySlug, getClubsByCategory, getLabel, getLabelWithOptions, plFields, revenueFields };
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 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 { 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, Revenue, SeasonResult, YearInfo, allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, getAllClubs, getAllYears, getClubBySlug, getClubsByCategory, getLabel, getLabelWithOptions, plFields, revenueFields };
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 { 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 { 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 { allFields, allSortableFields, attdFields, bsFields, expenseFields, generalFields, getAllClubs, getAllYears, getClubBySlug, getClubsByCategory, getLabel, getLabelWithOptions, plFields, revenueFields };
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 };
@@ -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 };
@@ -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;
@@ -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 { 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 };
@@ -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 { 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 };
@@ -1 +1,3 @@
1
- export { };
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 };
@@ -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;
@@ -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 { 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 };
@@ -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 { 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 };
@@ -1 +1,3 @@
1
- export { };
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 };
@@ -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-BD3YalWA.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-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
@@ -1,3 +1,3 @@
1
- const require_years = require('./years-DRN0nquf.cjs');
1
+ const require_years = require('./years-BtLTGqsM.cjs');
2
2
 
3
3
  exports.getAllYears = require_years.getAllYears;
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-BD3YalWA.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.2",
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.2",
56
- "@repo/typescript-config": "^0.0.1-alpha.2",
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"}