@cieloazul310/jclub-financial-data 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 (190) hide show
  1. package/dist/albirex/index.cjs +5 -0
  2. package/dist/albirex/index.d.ts +3 -2
  3. package/dist/albirex/index.mjs +5 -1
  4. package/dist/antlers/index.cjs +5 -0
  5. package/dist/antlers/index.d.ts +3 -2
  6. package/dist/antlers/index.mjs +5 -1
  7. package/dist/ardija/index.cjs +5 -0
  8. package/dist/ardija/index.d.ts +3 -2
  9. package/dist/ardija/index.mjs +5 -1
  10. package/dist/avispa/index.cjs +5 -0
  11. package/dist/avispa/index.d.ts +3 -2
  12. package/dist/avispa/index.mjs +5 -1
  13. package/dist/azulclaro/index.cjs +5 -0
  14. package/dist/azulclaro/index.d.ts +3 -2
  15. package/dist/azulclaro/index.mjs +5 -1
  16. package/dist/bellmare/index.cjs +5 -0
  17. package/dist/bellmare/index.d.ts +3 -2
  18. package/dist/bellmare/index.mjs +5 -1
  19. package/dist/blaublitz/index.cjs +5 -0
  20. package/dist/blaublitz/index.d.ts +3 -2
  21. package/dist/blaublitz/index.mjs +5 -1
  22. package/dist/cerezo/index.cjs +5 -0
  23. package/dist/cerezo/index.d.ts +3 -2
  24. package/dist/cerezo/index.mjs +5 -1
  25. package/dist/consadole/index.cjs +5 -0
  26. package/dist/consadole/index.d.ts +3 -2
  27. package/dist/consadole/index.mjs +5 -1
  28. package/dist/ehimefc/index.cjs +5 -0
  29. package/dist/ehimefc/index.d.ts +3 -2
  30. package/dist/ehimefc/index.mjs +5 -1
  31. package/dist/fagiano/index.cjs +5 -0
  32. package/dist/fagiano/index.d.ts +3 -2
  33. package/dist/fagiano/index.mjs +5 -1
  34. package/dist/fcgifu/index.cjs +5 -0
  35. package/dist/fcgifu/index.d.ts +3 -2
  36. package/dist/fcgifu/index.mjs +5 -1
  37. package/dist/fcimabari/index.cjs +5 -0
  38. package/dist/fcimabari/index.d.ts +3 -2
  39. package/dist/fcimabari/index.mjs +5 -1
  40. package/dist/fcosaka/index.cjs +5 -0
  41. package/dist/fcosaka/index.d.ts +3 -2
  42. package/dist/fcosaka/index.mjs +5 -1
  43. package/dist/fcryukyu/index.cjs +5 -0
  44. package/dist/fcryukyu/index.d.ts +3 -2
  45. package/dist/fcryukyu/index.mjs +5 -1
  46. package/dist/fctokyo/index.cjs +5 -0
  47. package/dist/fctokyo/index.d.ts +3 -2
  48. package/dist/fctokyo/index.mjs +5 -1
  49. package/dist/fmarinos/index.cjs +5 -0
  50. package/dist/fmarinos/index.d.ts +3 -2
  51. package/dist/fmarinos/index.mjs +5 -1
  52. package/dist/fufc/index.cjs +5 -0
  53. package/dist/fufc/index.d.ts +3 -2
  54. package/dist/fufc/index.mjs +5 -1
  55. package/dist/gainare/index.cjs +5 -0
  56. package/dist/gainare/index.d.ts +3 -2
  57. package/dist/gainare/index.mjs +5 -1
  58. package/dist/gamba/index.cjs +5 -0
  59. package/dist/gamba/index.d.ts +3 -2
  60. package/dist/gamba/index.mjs +5 -1
  61. package/dist/giravanz/index.cjs +5 -0
  62. package/dist/giravanz/index.d.ts +3 -2
  63. package/dist/giravanz/index.mjs +5 -1
  64. package/dist/gurulla/index.cjs +5 -0
  65. package/dist/gurulla/index.d.ts +3 -2
  66. package/dist/gurulla/index.mjs +5 -1
  67. package/dist/index.cjs +12 -3
  68. package/dist/index.d.ts +4 -2
  69. package/dist/index.mjs +10 -3
  70. package/dist/iwakifc/index.cjs +5 -0
  71. package/dist/iwakifc/index.d.ts +3 -2
  72. package/dist/iwakifc/index.mjs +5 -1
  73. package/dist/jefunited/index.cjs +5 -0
  74. package/dist/jefunited/index.d.ts +3 -2
  75. package/dist/jefunited/index.mjs +5 -1
  76. package/dist/jubilo/index.cjs +5 -0
  77. package/dist/jubilo/index.d.ts +3 -2
  78. package/dist/jubilo/index.mjs +5 -1
  79. package/dist/kamatamare/index.cjs +5 -0
  80. package/dist/kamatamare/index.d.ts +3 -2
  81. package/dist/kamatamare/index.mjs +5 -1
  82. package/dist/kataller/index.cjs +5 -0
  83. package/dist/kataller/index.d.ts +3 -2
  84. package/dist/kataller/index.mjs +5 -1
  85. package/dist/kawasaki/index.cjs +5 -0
  86. package/dist/kawasaki/index.d.ts +3 -2
  87. package/dist/kawasaki/index.mjs +5 -1
  88. package/dist/kochi/index.cjs +5 -0
  89. package/dist/kochi/index.d.ts +3 -2
  90. package/dist/kochi/index.mjs +5 -1
  91. package/dist/kufc/index.cjs +5 -0
  92. package/dist/kufc/index.d.ts +3 -2
  93. package/dist/kufc/index.mjs +5 -1
  94. package/dist/mitohollyhock/index.cjs +5 -0
  95. package/dist/mitohollyhock/index.d.ts +3 -2
  96. package/dist/mitohollyhock/index.mjs +5 -1
  97. package/dist/montedio/index.cjs +5 -0
  98. package/dist/montedio/index.d.ts +3 -2
  99. package/dist/montedio/index.mjs +5 -1
  100. package/dist/myfc/index.cjs +5 -0
  101. package/dist/myfc/index.d.ts +3 -2
  102. package/dist/myfc/index.mjs +5 -1
  103. package/dist/nagoya/index.cjs +5 -0
  104. package/dist/nagoya/index.d.ts +3 -2
  105. package/dist/nagoya/index.mjs +5 -1
  106. package/dist/naraclub/index.cjs +5 -0
  107. package/dist/naraclub/index.d.ts +3 -2
  108. package/dist/naraclub/index.mjs +5 -1
  109. package/dist/parceiro/index.cjs +5 -0
  110. package/dist/parceiro/index.d.ts +3 -2
  111. package/dist/parceiro/index.mjs +5 -1
  112. package/dist/renofa/index.cjs +5 -0
  113. package/dist/renofa/index.d.ts +3 -2
  114. package/dist/renofa/index.mjs +5 -1
  115. package/dist/reysol/index.cjs +5 -0
  116. package/dist/reysol/index.d.ts +3 -2
  117. package/dist/reysol/index.mjs +5 -1
  118. package/dist/roasso/index.cjs +5 -0
  119. package/dist/roasso/index.d.ts +3 -2
  120. package/dist/roasso/index.mjs +5 -1
  121. package/dist/sagan/index.cjs +5 -0
  122. package/dist/sagan/index.d.ts +3 -2
  123. package/dist/sagan/index.mjs +5 -1
  124. package/dist/sanfrecce/index.cjs +5 -0
  125. package/dist/sanfrecce/index.d.ts +3 -2
  126. package/dist/sanfrecce/index.mjs +5 -1
  127. package/dist/sanga/index.cjs +5 -0
  128. package/dist/sanga/index.d.ts +3 -2
  129. package/dist/sanga/index.mjs +5 -1
  130. package/dist/scsagamihara/index.cjs +5 -0
  131. package/dist/scsagamihara/index.d.ts +3 -2
  132. package/dist/scsagamihara/index.mjs +5 -1
  133. package/dist/shimizu/index.cjs +5 -0
  134. package/dist/shimizu/index.d.ts +3 -2
  135. package/dist/shimizu/index.mjs +5 -1
  136. package/dist/tegevajaro/index.cjs +5 -0
  137. package/dist/tegevajaro/index.d.ts +3 -2
  138. package/dist/tegevajaro/index.mjs +5 -1
  139. package/dist/thespa/index.cjs +5 -0
  140. package/dist/thespa/index.d.ts +3 -2
  141. package/dist/thespa/index.mjs +5 -1
  142. package/dist/tochigicity/index.cjs +5 -0
  143. package/dist/tochigicity/index.d.ts +3 -2
  144. package/dist/tochigicity/index.mjs +5 -1
  145. package/dist/tochigisc/index.cjs +5 -0
  146. package/dist/tochigisc/index.d.ts +3 -2
  147. package/dist/tochigisc/index.mjs +5 -1
  148. package/dist/trinita/index.cjs +5 -0
  149. package/dist/trinita/index.d.ts +3 -2
  150. package/dist/trinita/index.mjs +5 -1
  151. package/dist/urawa/index.cjs +5 -0
  152. package/dist/urawa/index.d.ts +3 -2
  153. package/dist/urawa/index.mjs +5 -1
  154. package/dist/vanraure/index.cjs +5 -0
  155. package/dist/vanraure/index.d.ts +3 -2
  156. package/dist/vanraure/index.mjs +5 -1
  157. package/dist/vegalta/index.cjs +5 -0
  158. package/dist/vegalta/index.d.ts +3 -2
  159. package/dist/vegalta/index.mjs +5 -1
  160. package/dist/ventforet/index.cjs +5 -0
  161. package/dist/ventforet/index.d.ts +3 -2
  162. package/dist/ventforet/index.mjs +5 -1
  163. package/dist/verdy/index.cjs +5 -0
  164. package/dist/verdy/index.d.ts +3 -2
  165. package/dist/verdy/index.mjs +5 -1
  166. package/dist/vissel/index.cjs +5 -0
  167. package/dist/vissel/index.d.ts +3 -2
  168. package/dist/vissel/index.mjs +5 -1
  169. package/dist/vortis/index.cjs +5 -0
  170. package/dist/vortis/index.d.ts +3 -2
  171. package/dist/vortis/index.mjs +5 -1
  172. package/dist/vvaren/index.cjs +5 -0
  173. package/dist/vvaren/index.d.ts +3 -2
  174. package/dist/vvaren/index.mjs +5 -1
  175. package/dist/yamaga/index.cjs +5 -0
  176. package/dist/yamaga/index.d.ts +3 -2
  177. package/dist/yamaga/index.mjs +5 -1
  178. package/dist/yokohamafc/index.cjs +5 -0
  179. package/dist/yokohamafc/index.d.ts +3 -2
  180. package/dist/yokohamafc/index.mjs +5 -1
  181. package/dist/yscc/index.cjs +5 -0
  182. package/dist/yscc/index.d.ts +3 -2
  183. package/dist/yscc/index.mjs +5 -1
  184. package/dist/zelvia/index.cjs +5 -0
  185. package/dist/zelvia/index.d.ts +3 -2
  186. package/dist/zelvia/index.mjs +5 -1
  187. package/dist/zweigen/index.cjs +5 -0
  188. package/dist/zweigen/index.d.ts +3 -2
  189. package/dist/zweigen/index.mjs +5 -1
  190. package/package.json +4 -4
package/dist/index.cjs CHANGED
@@ -1,5 +1,6 @@
1
1
  let fs_promises = require("fs/promises");
2
2
  let path = require("path");
3
+ let _cieloazul310_jclub_financial_utils = require("@cieloazul310/jclub-financial-utils");
3
4
 
4
5
  //#region src/index.ts
5
6
  const base = (0, path.resolve)(__dirname);
@@ -10,7 +11,7 @@ async function loadJsonSync(file) {
10
11
  return null;
11
12
  }
12
13
  }
13
- const clubs = ["antlers","urawa","reysol","fctokyo","verdy","zelvia","kawasaki","fmarinos","yokohamafc","bellmare","albirex","shimizu","nagoya","sanga","gamba","cerezo","vissel","fagiano","sanfrecce","avispa","consadole","vegalta","blaublitz","montedio","iwakifc","mitohollyhock","ardija","jefunited","ventforet","kataller","jubilo","myfc","renofa","vortis","ehimefc","fcimabari","sagan","vvaren","roasso","trinita","vanraure","fufc","tochigisc","tochigicity","thespa","scsagamihara","yamaga","parceiro","zweigen","azulclaro","fcgifu","fcosaka","naraclub","gainare","kamatamare","kochi","giravanz","tegevajaro","kufc","fcryukyu","gurulla","yscc"];
14
+ const clubs = (0, _cieloazul310_jclub_financial_utils.getAllClubs)().map(({ slug }) => slug);
14
15
  async function getDataByClub(club) {
15
16
  const dir = (0, path.join)(base, club);
16
17
  try {
@@ -21,14 +22,20 @@ async function getDataByClub(club) {
21
22
  return [];
22
23
  }
23
24
  }
25
+ async function getExtendedDataByClub(club) {
26
+ return (0, _cieloazul310_jclub_financial_utils.extendClubData)(await getDataByClub(club));
27
+ }
24
28
  async function getDataByYear(year) {
25
29
  const output = [];
26
- for (const club of ["antlers","urawa","reysol","fctokyo","verdy","zelvia","kawasaki","fmarinos","yokohamafc","bellmare","albirex","shimizu","nagoya","sanga","gamba","cerezo","vissel","fagiano","sanfrecce","avispa","consadole","vegalta","blaublitz","montedio","iwakifc","mitohollyhock","ardija","jefunited","ventforet","kataller","jubilo","myfc","renofa","vortis","ehimefc","fcimabari","sagan","vvaren","roasso","trinita","vanraure","fufc","tochigisc","tochigicity","thespa","scsagamihara","yamaga","parceiro","zweigen","azulclaro","fcgifu","fcosaka","naraclub","gainare","kamatamare","kochi","giravanz","tegevajaro","kufc","fcryukyu","gurulla","yscc"]) {
30
+ for (const club of clubs) {
27
31
  const item = await loadJsonSync((0, path.join)(base, club, String(year) + ".json"));
28
32
  if (item) output.push(item);
29
33
  }
30
34
  return output;
31
35
  }
36
+ async function getExtendedDataByYear(year) {
37
+ return (0, _cieloazul310_jclub_financial_utils.extendYearData)(await getDataByYear(year), await getDataByYear(year - 1));
38
+ }
32
39
  async function getDatum(club, year) {
33
40
  return await loadJsonSync((0, path.join)(base, club, String(year) + ".json"));
34
41
  }
@@ -37,4 +44,6 @@ async function getDatum(club, year) {
37
44
  exports.clubs = clubs;
38
45
  exports.getDataByClub = getDataByClub;
39
46
  exports.getDataByYear = getDataByYear;
40
- exports.getDatum = getDatum;
47
+ exports.getDatum = getDatum;
48
+ exports.getExtendedDataByClub = getExtendedDataByClub;
49
+ exports.getExtendedDataByYear = getExtendedDataByYear;
package/dist/index.d.ts CHANGED
@@ -1,10 +1,12 @@
1
- import { FinancialDatum } from "@cieloazul310/jclub-financial-utils/types";
1
+ import { ExtendedFinancialDatum, FinancialDatum } from "@cieloazul310/jclub-financial-utils/types";
2
2
 
3
3
  //#region src/index.d.ts
4
4
  declare const clubs: string[];
5
5
  declare function getDataByClub(club: string): Promise<FinancialDatum[]>;
6
+ declare function getExtendedDataByClub(club: string): Promise<ExtendedFinancialDatum[]>;
6
7
  declare function getDataByYear(year: number): Promise<FinancialDatum[]>;
8
+ declare function getExtendedDataByYear(year: number): Promise<ExtendedFinancialDatum[]>;
7
9
  declare function getDatum(club: string, year: number): Promise<FinancialDatum | null>;
8
10
  //#endregion
9
- export { clubs, getDataByClub, getDataByYear, getDatum };
11
+ export { clubs, getDataByClub, getDataByYear, getDatum, getExtendedDataByClub, getExtendedDataByYear };
10
12
  //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -2,6 +2,7 @@ import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
3
  import { readFile, readdir } from "fs/promises";
4
4
  import { join, resolve } from "path";
5
+ import { extendClubData, extendYearData, getAllClubs } from "@cieloazul310/jclub-financial-utils";
5
6
 
6
7
  //#region ../../node_modules/tsdown/esm-shims.js
7
8
  const getFilename = () => fileURLToPath(import.meta.url);
@@ -18,7 +19,7 @@ async function loadJsonSync(file) {
18
19
  return null;
19
20
  }
20
21
  }
21
- const clubs = ["antlers","urawa","reysol","fctokyo","verdy","zelvia","kawasaki","fmarinos","yokohamafc","bellmare","albirex","shimizu","nagoya","sanga","gamba","cerezo","vissel","fagiano","sanfrecce","avispa","consadole","vegalta","blaublitz","montedio","iwakifc","mitohollyhock","ardija","jefunited","ventforet","kataller","jubilo","myfc","renofa","vortis","ehimefc","fcimabari","sagan","vvaren","roasso","trinita","vanraure","fufc","tochigisc","tochigicity","thespa","scsagamihara","yamaga","parceiro","zweigen","azulclaro","fcgifu","fcosaka","naraclub","gainare","kamatamare","kochi","giravanz","tegevajaro","kufc","fcryukyu","gurulla","yscc"];
22
+ const clubs = getAllClubs().map(({ slug }) => slug);
22
23
  async function getDataByClub(club) {
23
24
  const dir = join(base, club);
24
25
  try {
@@ -29,18 +30,24 @@ async function getDataByClub(club) {
29
30
  return [];
30
31
  }
31
32
  }
33
+ async function getExtendedDataByClub(club) {
34
+ return extendClubData(await getDataByClub(club));
35
+ }
32
36
  async function getDataByYear(year) {
33
37
  const output = [];
34
- for (const club of ["antlers","urawa","reysol","fctokyo","verdy","zelvia","kawasaki","fmarinos","yokohamafc","bellmare","albirex","shimizu","nagoya","sanga","gamba","cerezo","vissel","fagiano","sanfrecce","avispa","consadole","vegalta","blaublitz","montedio","iwakifc","mitohollyhock","ardija","jefunited","ventforet","kataller","jubilo","myfc","renofa","vortis","ehimefc","fcimabari","sagan","vvaren","roasso","trinita","vanraure","fufc","tochigisc","tochigicity","thespa","scsagamihara","yamaga","parceiro","zweigen","azulclaro","fcgifu","fcosaka","naraclub","gainare","kamatamare","kochi","giravanz","tegevajaro","kufc","fcryukyu","gurulla","yscc"]) {
38
+ for (const club of clubs) {
35
39
  const item = await loadJsonSync(join(base, club, String(year) + ".json"));
36
40
  if (item) output.push(item);
37
41
  }
38
42
  return output;
39
43
  }
44
+ async function getExtendedDataByYear(year) {
45
+ return extendYearData(await getDataByYear(year), await getDataByYear(year - 1));
46
+ }
40
47
  async function getDatum(club, year) {
41
48
  return await loadJsonSync(join(base, club, String(year) + ".json"));
42
49
  }
43
50
 
44
51
  //#endregion
45
- export { clubs, getDataByClub, getDataByYear, getDatum };
52
+ export { clubs, getDataByClub, getDataByYear, getDatum, getExtendedDataByClub, getExtendedDataByYear };
46
53
  //# sourceMappingURL=index.mjs.map
@@ -1,6 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  let fs_promises = require("fs/promises");
3
3
  let path = require("path");
4
+ let _cieloazul310_jclub_financial_utils = require("@cieloazul310/jclub-financial-utils");
4
5
 
5
6
  //#region src/index-for-clubs.ts
6
7
  async function getData(from = -Infinity, to = Infinity) {
@@ -17,9 +18,13 @@ async function getData(from = -Infinity, to = Infinity) {
17
18
  return (await Promise.all(imports)).filter((r) => r !== null);
18
19
  }
19
20
  const years = [2024,2023,2022,2021];
21
+ async function getExtendedData(from = -Infinity, to = Infinity) {
22
+ return (0, _cieloazul310_jclub_financial_utils.extendClubData)(await getData()).filter(({ year }) => year.value >= from && year.value <= to);
23
+ }
20
24
  var index_for_clubs_default = getData;
21
25
 
22
26
  //#endregion
23
27
  exports.default = index_for_clubs_default;
24
28
  exports.getData = getData;
29
+ exports.getExtendedData = getExtendedData;
25
30
  exports.years = years;
@@ -1,8 +1,9 @@
1
- import { FinancialDatum } from "@cieloazul310/jclub-financial-utils/types";
1
+ import { ExtendedFinancialDatum, FinancialDatum } from "@cieloazul310/jclub-financial-utils/types";
2
2
 
3
3
  //#region src/index-for-clubs.d.ts
4
4
  declare function getData(from?: number, to?: number): Promise<FinancialDatum[]>;
5
5
  declare const years: number[];
6
+ declare function getExtendedData(from?: number, to?: number): Promise<ExtendedFinancialDatum[]>;
6
7
  //#endregion
7
- export { getData as default, getData, years };
8
+ export { getData as default, getData, getExtendedData, years };
8
9
  //# sourceMappingURL=index-for-clubs.d.mts.map
@@ -2,6 +2,7 @@ import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
3
  import { readFile } from "fs/promises";
4
4
  import { resolve } from "path";
5
+ import { extendClubData } from "@cieloazul310/jclub-financial-utils";
5
6
 
6
7
  //#region ../../node_modules/tsdown/esm-shims.js
7
8
  const getFilename = () => fileURLToPath(import.meta.url);
@@ -24,8 +25,11 @@ async function getData(from = -Infinity, to = Infinity) {
24
25
  return (await Promise.all(imports)).filter((r) => r !== null);
25
26
  }
26
27
  const years = [2024,2023,2022,2021];
28
+ async function getExtendedData(from = -Infinity, to = Infinity) {
29
+ return extendClubData(await getData()).filter(({ year }) => year.value >= from && year.value <= to);
30
+ }
27
31
  var index_for_clubs_default = getData;
28
32
 
29
33
  //#endregion
30
- export { index_for_clubs_default as default, getData, years };
34
+ export { index_for_clubs_default as default, getData, getExtendedData, years };
31
35
  //# sourceMappingURL=index-for-clubs.mjs.map
@@ -1,6 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  let fs_promises = require("fs/promises");
3
3
  let path = require("path");
4
+ let _cieloazul310_jclub_financial_utils = require("@cieloazul310/jclub-financial-utils");
4
5
 
5
6
  //#region src/index-for-clubs.ts
6
7
  async function getData(from = -Infinity, to = Infinity) {
@@ -17,9 +18,13 @@ async function getData(from = -Infinity, to = Infinity) {
17
18
  return (await Promise.all(imports)).filter((r) => r !== null);
18
19
  }
19
20
  const years = [2024,2023,2022,2021,2020,2019,2018,2017,2016,2015,2014,2013,2012,2011,2010,2009,2008,2007,2006,2005];
21
+ async function getExtendedData(from = -Infinity, to = Infinity) {
22
+ return (0, _cieloazul310_jclub_financial_utils.extendClubData)(await getData()).filter(({ year }) => year.value >= from && year.value <= to);
23
+ }
20
24
  var index_for_clubs_default = getData;
21
25
 
22
26
  //#endregion
23
27
  exports.default = index_for_clubs_default;
24
28
  exports.getData = getData;
29
+ exports.getExtendedData = getExtendedData;
25
30
  exports.years = years;
@@ -1,8 +1,9 @@
1
- import { FinancialDatum } from "@cieloazul310/jclub-financial-utils/types";
1
+ import { ExtendedFinancialDatum, FinancialDatum } from "@cieloazul310/jclub-financial-utils/types";
2
2
 
3
3
  //#region src/index-for-clubs.d.ts
4
4
  declare function getData(from?: number, to?: number): Promise<FinancialDatum[]>;
5
5
  declare const years: number[];
6
+ declare function getExtendedData(from?: number, to?: number): Promise<ExtendedFinancialDatum[]>;
6
7
  //#endregion
7
- export { getData as default, getData, years };
8
+ export { getData as default, getData, getExtendedData, years };
8
9
  //# sourceMappingURL=index-for-clubs.d.mts.map
@@ -2,6 +2,7 @@ import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
3
  import { readFile } from "fs/promises";
4
4
  import { resolve } from "path";
5
+ import { extendClubData } from "@cieloazul310/jclub-financial-utils";
5
6
 
6
7
  //#region ../../node_modules/tsdown/esm-shims.js
7
8
  const getFilename = () => fileURLToPath(import.meta.url);
@@ -24,8 +25,11 @@ async function getData(from = -Infinity, to = Infinity) {
24
25
  return (await Promise.all(imports)).filter((r) => r !== null);
25
26
  }
26
27
  const years = [2024,2023,2022,2021,2020,2019,2018,2017,2016,2015,2014,2013,2012,2011,2010,2009,2008,2007,2006,2005];
28
+ async function getExtendedData(from = -Infinity, to = Infinity) {
29
+ return extendClubData(await getData()).filter(({ year }) => year.value >= from && year.value <= to);
30
+ }
27
31
  var index_for_clubs_default = getData;
28
32
 
29
33
  //#endregion
30
- export { index_for_clubs_default as default, getData, years };
34
+ export { index_for_clubs_default as default, getData, getExtendedData, years };
31
35
  //# sourceMappingURL=index-for-clubs.mjs.map
@@ -1,6 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  let fs_promises = require("fs/promises");
3
3
  let path = require("path");
4
+ let _cieloazul310_jclub_financial_utils = require("@cieloazul310/jclub-financial-utils");
4
5
 
5
6
  //#region src/index-for-clubs.ts
6
7
  async function getData(from = -Infinity, to = Infinity) {
@@ -17,9 +18,13 @@ async function getData(from = -Infinity, to = Infinity) {
17
18
  return (await Promise.all(imports)).filter((r) => r !== null);
18
19
  }
19
20
  const years = [2024,2023,2022,2021,2020,2019,2018,2017,2016,2015,2014,2013,2012,2011,2010,2009,2008,2007,2006,2005];
21
+ async function getExtendedData(from = -Infinity, to = Infinity) {
22
+ return (0, _cieloazul310_jclub_financial_utils.extendClubData)(await getData()).filter(({ year }) => year.value >= from && year.value <= to);
23
+ }
20
24
  var index_for_clubs_default = getData;
21
25
 
22
26
  //#endregion
23
27
  exports.default = index_for_clubs_default;
24
28
  exports.getData = getData;
29
+ exports.getExtendedData = getExtendedData;
25
30
  exports.years = years;
@@ -1,8 +1,9 @@
1
- import { FinancialDatum } from "@cieloazul310/jclub-financial-utils/types";
1
+ import { ExtendedFinancialDatum, FinancialDatum } from "@cieloazul310/jclub-financial-utils/types";
2
2
 
3
3
  //#region src/index-for-clubs.d.ts
4
4
  declare function getData(from?: number, to?: number): Promise<FinancialDatum[]>;
5
5
  declare const years: number[];
6
+ declare function getExtendedData(from?: number, to?: number): Promise<ExtendedFinancialDatum[]>;
6
7
  //#endregion
7
- export { getData as default, getData, years };
8
+ export { getData as default, getData, getExtendedData, years };
8
9
  //# sourceMappingURL=index-for-clubs.d.mts.map
@@ -2,6 +2,7 @@ import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
3
  import { readFile } from "fs/promises";
4
4
  import { resolve } from "path";
5
+ import { extendClubData } from "@cieloazul310/jclub-financial-utils";
5
6
 
6
7
  //#region ../../node_modules/tsdown/esm-shims.js
7
8
  const getFilename = () => fileURLToPath(import.meta.url);
@@ -24,8 +25,11 @@ async function getData(from = -Infinity, to = Infinity) {
24
25
  return (await Promise.all(imports)).filter((r) => r !== null);
25
26
  }
26
27
  const years = [2024,2023,2022,2021,2020,2019,2018,2017,2016,2015,2014,2013,2012,2011,2010,2009,2008,2007,2006,2005];
28
+ async function getExtendedData(from = -Infinity, to = Infinity) {
29
+ return extendClubData(await getData()).filter(({ year }) => year.value >= from && year.value <= to);
30
+ }
27
31
  var index_for_clubs_default = getData;
28
32
 
29
33
  //#endregion
30
- export { index_for_clubs_default as default, getData, years };
34
+ export { index_for_clubs_default as default, getData, getExtendedData, years };
31
35
  //# sourceMappingURL=index-for-clubs.mjs.map
@@ -1,6 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  let fs_promises = require("fs/promises");
3
3
  let path = require("path");
4
+ let _cieloazul310_jclub_financial_utils = require("@cieloazul310/jclub-financial-utils");
4
5
 
5
6
  //#region src/index-for-clubs.ts
6
7
  async function getData(from = -Infinity, to = Infinity) {
@@ -17,9 +18,13 @@ async function getData(from = -Infinity, to = Infinity) {
17
18
  return (await Promise.all(imports)).filter((r) => r !== null);
18
19
  }
19
20
  const years = [2024,2023,2022,2021,2020,2019,2018,2017,2016,2015,2014,2013];
21
+ async function getExtendedData(from = -Infinity, to = Infinity) {
22
+ return (0, _cieloazul310_jclub_financial_utils.extendClubData)(await getData()).filter(({ year }) => year.value >= from && year.value <= to);
23
+ }
20
24
  var index_for_clubs_default = getData;
21
25
 
22
26
  //#endregion
23
27
  exports.default = index_for_clubs_default;
24
28
  exports.getData = getData;
29
+ exports.getExtendedData = getExtendedData;
25
30
  exports.years = years;
@@ -1,8 +1,9 @@
1
- import { FinancialDatum } from "@cieloazul310/jclub-financial-utils/types";
1
+ import { ExtendedFinancialDatum, FinancialDatum } from "@cieloazul310/jclub-financial-utils/types";
2
2
 
3
3
  //#region src/index-for-clubs.d.ts
4
4
  declare function getData(from?: number, to?: number): Promise<FinancialDatum[]>;
5
5
  declare const years: number[];
6
+ declare function getExtendedData(from?: number, to?: number): Promise<ExtendedFinancialDatum[]>;
6
7
  //#endregion
7
- export { getData as default, getData, years };
8
+ export { getData as default, getData, getExtendedData, years };
8
9
  //# sourceMappingURL=index-for-clubs.d.mts.map
@@ -2,6 +2,7 @@ import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
3
  import { readFile } from "fs/promises";
4
4
  import { resolve } from "path";
5
+ import { extendClubData } from "@cieloazul310/jclub-financial-utils";
5
6
 
6
7
  //#region ../../node_modules/tsdown/esm-shims.js
7
8
  const getFilename = () => fileURLToPath(import.meta.url);
@@ -24,8 +25,11 @@ async function getData(from = -Infinity, to = Infinity) {
24
25
  return (await Promise.all(imports)).filter((r) => r !== null);
25
26
  }
26
27
  const years = [2024,2023,2022,2021,2020,2019,2018,2017,2016,2015,2014,2013];
28
+ async function getExtendedData(from = -Infinity, to = Infinity) {
29
+ return extendClubData(await getData()).filter(({ year }) => year.value >= from && year.value <= to);
30
+ }
27
31
  var index_for_clubs_default = getData;
28
32
 
29
33
  //#endregion
30
- export { index_for_clubs_default as default, getData, years };
34
+ export { index_for_clubs_default as default, getData, getExtendedData, years };
31
35
  //# sourceMappingURL=index-for-clubs.mjs.map
@@ -1,6 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  let fs_promises = require("fs/promises");
3
3
  let path = require("path");
4
+ let _cieloazul310_jclub_financial_utils = require("@cieloazul310/jclub-financial-utils");
4
5
 
5
6
  //#region src/index-for-clubs.ts
6
7
  async function getData(from = -Infinity, to = Infinity) {
@@ -17,9 +18,13 @@ async function getData(from = -Infinity, to = Infinity) {
17
18
  return (await Promise.all(imports)).filter((r) => r !== null);
18
19
  }
19
20
  const years = [2024,2023,2022,2021,2020,2019,2018,2017,2016,2015,2014,2013,2012,2011,2010,2009];
21
+ async function getExtendedData(from = -Infinity, to = Infinity) {
22
+ return (0, _cieloazul310_jclub_financial_utils.extendClubData)(await getData()).filter(({ year }) => year.value >= from && year.value <= to);
23
+ }
20
24
  var index_for_clubs_default = getData;
21
25
 
22
26
  //#endregion
23
27
  exports.default = index_for_clubs_default;
24
28
  exports.getData = getData;
29
+ exports.getExtendedData = getExtendedData;
25
30
  exports.years = years;
@@ -1,8 +1,9 @@
1
- import { FinancialDatum } from "@cieloazul310/jclub-financial-utils/types";
1
+ import { ExtendedFinancialDatum, FinancialDatum } from "@cieloazul310/jclub-financial-utils/types";
2
2
 
3
3
  //#region src/index-for-clubs.d.ts
4
4
  declare function getData(from?: number, to?: number): Promise<FinancialDatum[]>;
5
5
  declare const years: number[];
6
+ declare function getExtendedData(from?: number, to?: number): Promise<ExtendedFinancialDatum[]>;
6
7
  //#endregion
7
- export { getData as default, getData, years };
8
+ export { getData as default, getData, getExtendedData, years };
8
9
  //# sourceMappingURL=index-for-clubs.d.mts.map
@@ -2,6 +2,7 @@ import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
3
  import { readFile } from "fs/promises";
4
4
  import { resolve } from "path";
5
+ import { extendClubData } from "@cieloazul310/jclub-financial-utils";
5
6
 
6
7
  //#region ../../node_modules/tsdown/esm-shims.js
7
8
  const getFilename = () => fileURLToPath(import.meta.url);
@@ -24,8 +25,11 @@ async function getData(from = -Infinity, to = Infinity) {
24
25
  return (await Promise.all(imports)).filter((r) => r !== null);
25
26
  }
26
27
  const years = [2024,2023,2022,2021,2020,2019,2018,2017,2016,2015,2014,2013,2012,2011,2010,2009];
28
+ async function getExtendedData(from = -Infinity, to = Infinity) {
29
+ return extendClubData(await getData()).filter(({ year }) => year.value >= from && year.value <= to);
30
+ }
27
31
  var index_for_clubs_default = getData;
28
32
 
29
33
  //#endregion
30
- export { index_for_clubs_default as default, getData, years };
34
+ export { index_for_clubs_default as default, getData, getExtendedData, years };
31
35
  //# sourceMappingURL=index-for-clubs.mjs.map
@@ -1,6 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  let fs_promises = require("fs/promises");
3
3
  let path = require("path");
4
+ let _cieloazul310_jclub_financial_utils = require("@cieloazul310/jclub-financial-utils");
4
5
 
5
6
  //#region src/index-for-clubs.ts
6
7
  async function getData(from = -Infinity, to = Infinity) {
@@ -17,9 +18,13 @@ async function getData(from = -Infinity, to = Infinity) {
17
18
  return (await Promise.all(imports)).filter((r) => r !== null);
18
19
  }
19
20
  const years = [2024,2023,2022,2021,2020,2019,2018,2017,2016,2015,2014,2013,2012,2011,2010,2009,2008,2007,2006,2005];
21
+ async function getExtendedData(from = -Infinity, to = Infinity) {
22
+ return (0, _cieloazul310_jclub_financial_utils.extendClubData)(await getData()).filter(({ year }) => year.value >= from && year.value <= to);
23
+ }
20
24
  var index_for_clubs_default = getData;
21
25
 
22
26
  //#endregion
23
27
  exports.default = index_for_clubs_default;
24
28
  exports.getData = getData;
29
+ exports.getExtendedData = getExtendedData;
25
30
  exports.years = years;
@@ -1,8 +1,9 @@
1
- import { FinancialDatum } from "@cieloazul310/jclub-financial-utils/types";
1
+ import { ExtendedFinancialDatum, FinancialDatum } from "@cieloazul310/jclub-financial-utils/types";
2
2
 
3
3
  //#region src/index-for-clubs.d.ts
4
4
  declare function getData(from?: number, to?: number): Promise<FinancialDatum[]>;
5
5
  declare const years: number[];
6
+ declare function getExtendedData(from?: number, to?: number): Promise<ExtendedFinancialDatum[]>;
6
7
  //#endregion
7
- export { getData as default, getData, years };
8
+ export { getData as default, getData, getExtendedData, years };
8
9
  //# sourceMappingURL=index-for-clubs.d.mts.map
@@ -2,6 +2,7 @@ import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
3
  import { readFile } from "fs/promises";
4
4
  import { resolve } from "path";
5
+ import { extendClubData } from "@cieloazul310/jclub-financial-utils";
5
6
 
6
7
  //#region ../../node_modules/tsdown/esm-shims.js
7
8
  const getFilename = () => fileURLToPath(import.meta.url);
@@ -24,8 +25,11 @@ async function getData(from = -Infinity, to = Infinity) {
24
25
  return (await Promise.all(imports)).filter((r) => r !== null);
25
26
  }
26
27
  const years = [2024,2023,2022,2021,2020,2019,2018,2017,2016,2015,2014,2013,2012,2011,2010,2009,2008,2007,2006,2005];
28
+ async function getExtendedData(from = -Infinity, to = Infinity) {
29
+ return extendClubData(await getData()).filter(({ year }) => year.value >= from && year.value <= to);
30
+ }
27
31
  var index_for_clubs_default = getData;
28
32
 
29
33
  //#endregion
30
- export { index_for_clubs_default as default, getData, years };
34
+ export { index_for_clubs_default as default, getData, getExtendedData, years };
31
35
  //# sourceMappingURL=index-for-clubs.mjs.map
@@ -1,6 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  let fs_promises = require("fs/promises");
3
3
  let path = require("path");
4
+ let _cieloazul310_jclub_financial_utils = require("@cieloazul310/jclub-financial-utils");
4
5
 
5
6
  //#region src/index-for-clubs.ts
6
7
  async function getData(from = -Infinity, to = Infinity) {
@@ -17,9 +18,13 @@ async function getData(from = -Infinity, to = Infinity) {
17
18
  return (await Promise.all(imports)).filter((r) => r !== null);
18
19
  }
19
20
  const years = [2024];
21
+ async function getExtendedData(from = -Infinity, to = Infinity) {
22
+ return (0, _cieloazul310_jclub_financial_utils.extendClubData)(await getData()).filter(({ year }) => year.value >= from && year.value <= to);
23
+ }
20
24
  var index_for_clubs_default = getData;
21
25
 
22
26
  //#endregion
23
27
  exports.default = index_for_clubs_default;
24
28
  exports.getData = getData;
29
+ exports.getExtendedData = getExtendedData;
25
30
  exports.years = years;
@@ -1,8 +1,9 @@
1
- import { FinancialDatum } from "@cieloazul310/jclub-financial-utils/types";
1
+ import { ExtendedFinancialDatum, FinancialDatum } from "@cieloazul310/jclub-financial-utils/types";
2
2
 
3
3
  //#region src/index-for-clubs.d.ts
4
4
  declare function getData(from?: number, to?: number): Promise<FinancialDatum[]>;
5
5
  declare const years: number[];
6
+ declare function getExtendedData(from?: number, to?: number): Promise<ExtendedFinancialDatum[]>;
6
7
  //#endregion
7
- export { getData as default, getData, years };
8
+ export { getData as default, getData, getExtendedData, years };
8
9
  //# sourceMappingURL=index-for-clubs.d.mts.map
@@ -2,6 +2,7 @@ import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
3
  import { readFile } from "fs/promises";
4
4
  import { resolve } from "path";
5
+ import { extendClubData } from "@cieloazul310/jclub-financial-utils";
5
6
 
6
7
  //#region ../../node_modules/tsdown/esm-shims.js
7
8
  const getFilename = () => fileURLToPath(import.meta.url);
@@ -24,8 +25,11 @@ async function getData(from = -Infinity, to = Infinity) {
24
25
  return (await Promise.all(imports)).filter((r) => r !== null);
25
26
  }
26
27
  const years = [2024];
28
+ async function getExtendedData(from = -Infinity, to = Infinity) {
29
+ return extendClubData(await getData()).filter(({ year }) => year.value >= from && year.value <= to);
30
+ }
27
31
  var index_for_clubs_default = getData;
28
32
 
29
33
  //#endregion
30
- export { index_for_clubs_default as default, getData, years };
34
+ export { index_for_clubs_default as default, getData, getExtendedData, years };
31
35
  //# sourceMappingURL=index-for-clubs.mjs.map
@@ -1,6 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  let fs_promises = require("fs/promises");
3
3
  let path = require("path");
4
+ let _cieloazul310_jclub_financial_utils = require("@cieloazul310/jclub-financial-utils");
4
5
 
5
6
  //#region src/index-for-clubs.ts
6
7
  async function getData(from = -Infinity, to = Infinity) {
@@ -17,9 +18,13 @@ async function getData(from = -Infinity, to = Infinity) {
17
18
  return (await Promise.all(imports)).filter((r) => r !== null);
18
19
  }
19
20
  const years = [2024,2023,2022,2021,2020,2019,2018,2017,2016,2015];
21
+ async function getExtendedData(from = -Infinity, to = Infinity) {
22
+ return (0, _cieloazul310_jclub_financial_utils.extendClubData)(await getData()).filter(({ year }) => year.value >= from && year.value <= to);
23
+ }
20
24
  var index_for_clubs_default = getData;
21
25
 
22
26
  //#endregion
23
27
  exports.default = index_for_clubs_default;
24
28
  exports.getData = getData;
29
+ exports.getExtendedData = getExtendedData;
25
30
  exports.years = years;
@@ -1,8 +1,9 @@
1
- import { FinancialDatum } from "@cieloazul310/jclub-financial-utils/types";
1
+ import { ExtendedFinancialDatum, FinancialDatum } from "@cieloazul310/jclub-financial-utils/types";
2
2
 
3
3
  //#region src/index-for-clubs.d.ts
4
4
  declare function getData(from?: number, to?: number): Promise<FinancialDatum[]>;
5
5
  declare const years: number[];
6
+ declare function getExtendedData(from?: number, to?: number): Promise<ExtendedFinancialDatum[]>;
6
7
  //#endregion
7
- export { getData as default, getData, years };
8
+ export { getData as default, getData, getExtendedData, years };
8
9
  //# sourceMappingURL=index-for-clubs.d.mts.map
@@ -2,6 +2,7 @@ import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
3
  import { readFile } from "fs/promises";
4
4
  import { resolve } from "path";
5
+ import { extendClubData } from "@cieloazul310/jclub-financial-utils";
5
6
 
6
7
  //#region ../../node_modules/tsdown/esm-shims.js
7
8
  const getFilename = () => fileURLToPath(import.meta.url);
@@ -24,8 +25,11 @@ async function getData(from = -Infinity, to = Infinity) {
24
25
  return (await Promise.all(imports)).filter((r) => r !== null);
25
26
  }
26
27
  const years = [2024,2023,2022,2021,2020,2019,2018,2017,2016,2015];
28
+ async function getExtendedData(from = -Infinity, to = Infinity) {
29
+ return extendClubData(await getData()).filter(({ year }) => year.value >= from && year.value <= to);
30
+ }
27
31
  var index_for_clubs_default = getData;
28
32
 
29
33
  //#endregion
30
- export { index_for_clubs_default as default, getData, years };
34
+ export { index_for_clubs_default as default, getData, getExtendedData, years };
31
35
  //# sourceMappingURL=index-for-clubs.mjs.map
@@ -1,6 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  let fs_promises = require("fs/promises");
3
3
  let path = require("path");
4
+ let _cieloazul310_jclub_financial_utils = require("@cieloazul310/jclub-financial-utils");
4
5
 
5
6
  //#region src/index-for-clubs.ts
6
7
  async function getData(from = -Infinity, to = Infinity) {
@@ -17,9 +18,13 @@ async function getData(from = -Infinity, to = Infinity) {
17
18
  return (await Promise.all(imports)).filter((r) => r !== null);
18
19
  }
19
20
  const years = [2024,2023,2022,2021,2020,2019,2018,2017,2016,2015,2014,2013,2012,2011,2010,2009,2008,2007,2006,2005];
21
+ async function getExtendedData(from = -Infinity, to = Infinity) {
22
+ return (0, _cieloazul310_jclub_financial_utils.extendClubData)(await getData()).filter(({ year }) => year.value >= from && year.value <= to);
23
+ }
20
24
  var index_for_clubs_default = getData;
21
25
 
22
26
  //#endregion
23
27
  exports.default = index_for_clubs_default;
24
28
  exports.getData = getData;
29
+ exports.getExtendedData = getExtendedData;
25
30
  exports.years = years;
@@ -1,8 +1,9 @@
1
- import { FinancialDatum } from "@cieloazul310/jclub-financial-utils/types";
1
+ import { ExtendedFinancialDatum, FinancialDatum } from "@cieloazul310/jclub-financial-utils/types";
2
2
 
3
3
  //#region src/index-for-clubs.d.ts
4
4
  declare function getData(from?: number, to?: number): Promise<FinancialDatum[]>;
5
5
  declare const years: number[];
6
+ declare function getExtendedData(from?: number, to?: number): Promise<ExtendedFinancialDatum[]>;
6
7
  //#endregion
7
- export { getData as default, getData, years };
8
+ export { getData as default, getData, getExtendedData, years };
8
9
  //# sourceMappingURL=index-for-clubs.d.mts.map
@@ -2,6 +2,7 @@ import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
3
  import { readFile } from "fs/promises";
4
4
  import { resolve } from "path";
5
+ import { extendClubData } from "@cieloazul310/jclub-financial-utils";
5
6
 
6
7
  //#region ../../node_modules/tsdown/esm-shims.js
7
8
  const getFilename = () => fileURLToPath(import.meta.url);
@@ -24,8 +25,11 @@ async function getData(from = -Infinity, to = Infinity) {
24
25
  return (await Promise.all(imports)).filter((r) => r !== null);
25
26
  }
26
27
  const years = [2024,2023,2022,2021,2020,2019,2018,2017,2016,2015,2014,2013,2012,2011,2010,2009,2008,2007,2006,2005];
28
+ async function getExtendedData(from = -Infinity, to = Infinity) {
29
+ return extendClubData(await getData()).filter(({ year }) => year.value >= from && year.value <= to);
30
+ }
27
31
  var index_for_clubs_default = getData;
28
32
 
29
33
  //#endregion
30
- export { index_for_clubs_default as default, getData, years };
34
+ export { index_for_clubs_default as default, getData, getExtendedData, years };
31
35
  //# sourceMappingURL=index-for-clubs.mjs.map