@hed-hog/finance 0.0.338 → 0.0.349

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.
@@ -0,0 +1,50 @@
1
+ resource: bank-account
2
+ base_url: /finance/bank-accounts
3
+ roles: [admin, admin-finance]
4
+
5
+ endpoints:
6
+ - method: GET
7
+ path: /
8
+ description: List bank accounts with pagination
9
+ pagination: true
10
+ response:
11
+ schema: bank_account
12
+ paginated: true
13
+
14
+ - method: POST
15
+ path: /
16
+ description: Create a new bank account
17
+ body:
18
+ bank: string
19
+ branch: string?
20
+ account: string?
21
+ type: string
22
+ description: string?
23
+ logo_file_id: int?
24
+ currency_id: int?
25
+ initial_balance:
26
+ type: number?
27
+ min: 0
28
+ start_date: date?
29
+
30
+ - method: PATCH
31
+ path: /:id
32
+ description: Update a bank account
33
+ params:
34
+ id: int
35
+ body:
36
+ bank: string?
37
+ branch: string?
38
+ account: string?
39
+ type: string?
40
+ description: string?
41
+ logo_file_id: int?
42
+ currency_id: int?
43
+ status: enum[active,inactive]?
44
+ start_date: date?
45
+
46
+ - method: DELETE
47
+ path: /:id
48
+ description: Delete a bank account
49
+ params:
50
+ id: int
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hed-hog/finance",
3
- "version": "0.0.338",
3
+ "version": "0.0.349",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "dependencies": {
@@ -10,13 +10,13 @@
10
10
  "@nestjs/jwt": "^11",
11
11
  "@nestjs/mapped-types": "*",
12
12
  "@hed-hog/api": "0.0.8",
13
- "@hed-hog/api-prisma": "0.0.6",
14
13
  "@hed-hog/api-pagination": "0.0.7",
15
- "@hed-hog/api-locale": "0.0.14",
16
- "@hed-hog/contact": "0.0.338",
17
14
  "@hed-hog/api-types": "0.0.1",
18
- "@hed-hog/core": "0.0.338",
19
- "@hed-hog/tag": "0.0.338"
15
+ "@hed-hog/api-prisma": "0.0.6",
16
+ "@hed-hog/core": "0.0.349",
17
+ "@hed-hog/tag": "0.0.349",
18
+ "@hed-hog/api-locale": "0.0.14",
19
+ "@hed-hog/contact": "0.0.349"
20
20
  },
21
21
  "exports": {
22
22
  ".": {