@goweekdays/core 2.15.2 → 2.15.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.
@@ -17,23 +17,22 @@ jobs:
17
17
  runs-on: ubuntu-latest
18
18
  steps:
19
19
  - uses: actions/checkout@v4
20
+ with:
21
+ fetch-depth: 0
20
22
 
21
23
  - uses: actions/setup-node@v4
22
24
  with:
23
25
  node-version: 20.x
24
- cache: "yarn" # Use yarn for caching
25
- cache-dependency-path: yarn.lock # Cache Yarn lockfile
26
-
27
- - run: yarn install --immutable # Install dependencies with immutable lockfile
26
+ cache: "yarn"
27
+ cache-dependency-path: yarn.lock
28
28
 
29
- - name: Create .npmrc for publishing
30
- run: |
31
- echo '//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}' > ~/.npmrc
29
+ - run: yarn install --immutable
32
30
 
33
31
  - name: Create Release Pull Request or Publish
34
32
  id: changesets
35
33
  uses: changesets/action@v1
36
34
  with:
37
- publish: yarn release # Use yarn for publishing
35
+ publish: yarn release
38
36
  env:
39
37
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @goweekdays/core
2
2
 
3
+ ## 2.15.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 1a7c3f8: Use support@goweekdays.com in mailer and bump utils
8
+
9
+ ## 2.15.3
10
+
11
+ ### Patch Changes
12
+
13
+ - 136c5b3: Add fiscalMonth and financial report endpoints
14
+
3
15
  ## 2.15.2
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1879,6 +1879,22 @@ declare function useChartOfAccountRepo(): {
1879
1879
  updateStatusById: (_id: string | ObjectId, status: string) => Promise<string>;
1880
1880
  countByPath: (path: string) => Promise<number>;
1881
1881
  updateChildrenCountById: (_id: string | ObjectId, increment: number, session?: ClientSession) => Promise<string>;
1882
+ getTrialBalance: (options: {
1883
+ org: string | ObjectId;
1884
+ fiscalYear: number;
1885
+ from?: number;
1886
+ to?: number;
1887
+ limit?: number;
1888
+ page?: number;
1889
+ }) => Promise<{}>;
1890
+ getBalanceSheet: (options: {
1891
+ org: string | ObjectId;
1892
+ fiscalYear: number;
1893
+ from?: number;
1894
+ to?: number;
1895
+ limit?: number;
1896
+ page?: number;
1897
+ }) => Promise<{}>;
1882
1898
  };
1883
1899
 
1884
1900
  declare function useChartOfAccountController(): {
@@ -1889,6 +1905,9 @@ declare function useChartOfAccountController(): {
1889
1905
  updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1890
1906
  deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1891
1907
  updateStatusById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1908
+ getTrialBalance: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1909
+ getBalanceSheet: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1910
+ getIncomeStatement: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1892
1911
  };
1893
1912
 
1894
1913
  type TAccountBalance = {
@@ -1898,7 +1917,9 @@ type TAccountBalance = {
1898
1917
  accountType: string;
1899
1918
  period: {
1900
1919
  fiscalYear: number;
1901
- month: string;
1920
+ fiscalMonth: number;
1921
+ year: number;
1922
+ month: number;
1902
1923
  };
1903
1924
  openingDebit: number;
1904
1925
  openingCredit: number;
@@ -1920,7 +1941,9 @@ declare function modelAccountBalance(value: TAccountBalance): {
1920
1941
  accountType: string;
1921
1942
  period: {
1922
1943
  fiscalYear: number;
1923
- month: string;
1944
+ fiscalMonth: number;
1945
+ year: number;
1946
+ month: number;
1924
1947
  };
1925
1948
  openingDebit: number;
1926
1949
  openingCredit: number;
@@ -1946,14 +1969,14 @@ declare function useAccountBalanceRepo(): {
1946
1969
  account: ObjectId | string;
1947
1970
  org: ObjectId | string;
1948
1971
  fiscalYear: number;
1949
- month: string;
1972
+ fiscalMonth: number;
1950
1973
  }) => Promise<TAccountBalance | null>;
1951
1974
  getYearBalancesByAccount: (options: {
1952
1975
  account: ObjectId | string;
1953
1976
  org: ObjectId | string;
1954
1977
  fiscalYear: number;
1955
1978
  }) => Promise<TAccountBalance[]>;
1956
- updateById: (account: string | ObjectId, org: string | ObjectId, fiscalYear: number, month: string, options: Partial<Pick<TAccountBalance, "openingDebit" | "openingCredit" | "movementDebit" | "movementCredit" | "closingDebit" | "closingCredit" | "netBalance">>, session?: ClientSession) => Promise<string>;
1979
+ updateById: (account: string | ObjectId, org: string | ObjectId, fiscalYear: number, fiscalMonth: number, options: Partial<Pick<TAccountBalance, "openingDebit" | "openingCredit" | "movementDebit" | "movementCredit" | "closingDebit" | "closingCredit" | "netBalance">>, session?: ClientSession) => Promise<string>;
1957
1980
  deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<string>;
1958
1981
  };
1959
1982