degroshi 1.0.0-beta.0 → 1.0.0-beta.1
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/CHANGELOG.md +13 -0
- package/README.md +2 -0
- package/dist/generated/types.gen.d.ts +32 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
Versions follow semver; the major version follows the API's (v1). The API part of each entry comes from comparing the
|
|
4
4
|
public spec with the last release (oasdiff); the SDK part lists SDK-only changes.
|
|
5
5
|
|
|
6
|
+
## 1.0.0-beta.1 (2026-11-13)
|
|
7
|
+
|
|
8
|
+
### API
|
|
9
|
+
|
|
10
|
+
- `GET /v1/transactions` takes the new optional filters `types`, `statuses`, `category_ids` and
|
|
11
|
+
`treatment_classes`.
|
|
12
|
+
- `GET /v1/transactions/day-totals` takes the new optional filters `types`, `statuses` and `category_ids`.
|
|
13
|
+
|
|
14
|
+
### SDK
|
|
15
|
+
|
|
16
|
+
- `require("degroshi")` works on Node 20.19+ and 22.12+: the package exports a `default` condition next to
|
|
17
|
+
`import`. It stays an ES module.
|
|
18
|
+
|
|
6
19
|
## 1.0.0-beta.0 (2026-11-12)
|
|
7
20
|
|
|
8
21
|
### API
|
package/README.md
CHANGED
|
@@ -15,6 +15,8 @@ browsers and edge runtimes.
|
|
|
15
15
|
npm i degroshi
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
+
The package is an ES module. Use `import`; on Node 20.19+ and 22.12+, `require("degroshi")` works too.
|
|
19
|
+
|
|
18
20
|
## Authenticate
|
|
19
21
|
|
|
20
22
|
Create a personal access token in Degroshi under "Settings" › "For developers", and keep it on a server: anyone who
|
|
@@ -3955,11 +3955,15 @@ export type ListTransactionsData = {
|
|
|
3955
3955
|
*/
|
|
3956
3956
|
category_id?: string;
|
|
3957
3957
|
/**
|
|
3958
|
-
*
|
|
3958
|
+
* Categories (any of them, together with category_id): repeat the parameter or send comma separated ids
|
|
3959
|
+
*/
|
|
3960
|
+
category_ids?: Array<string>;
|
|
3961
|
+
/**
|
|
3962
|
+
* With category_id or category_ids: also match their subcategories (each whole subtree)
|
|
3959
3963
|
*/
|
|
3960
3964
|
include_subcategories?: boolean;
|
|
3961
3965
|
/**
|
|
3962
|
-
*
|
|
3966
|
+
* Transactions without a category (what the analytics report as uncategorized). With category_ids: the rows in any of those categories or without one; a category_id alone takes precedence over it
|
|
3963
3967
|
*/
|
|
3964
3968
|
uncategorized?: boolean;
|
|
3965
3969
|
/**
|
|
@@ -3970,10 +3974,18 @@ export type ListTransactionsData = {
|
|
|
3970
3974
|
* Filter by type: income, expense, transfer
|
|
3971
3975
|
*/
|
|
3972
3976
|
type?: string;
|
|
3977
|
+
/**
|
|
3978
|
+
* Types (any of them, together with type): income, expense, transfer; repeat the parameter or send them comma separated
|
|
3979
|
+
*/
|
|
3980
|
+
types?: Array<string>;
|
|
3973
3981
|
/**
|
|
3974
3982
|
* Filter by status
|
|
3975
3983
|
*/
|
|
3976
3984
|
status?: string;
|
|
3985
|
+
/**
|
|
3986
|
+
* Statuses (any of them, together with status): completed, pending, cancelled; repeat the parameter or send them comma separated
|
|
3987
|
+
*/
|
|
3988
|
+
statuses?: Array<string>;
|
|
3977
3989
|
/**
|
|
3978
3990
|
* First local day (YYYY-MM-DD) in the user's zone
|
|
3979
3991
|
*/
|
|
@@ -4034,6 +4046,10 @@ export type ListTransactionsData = {
|
|
|
4034
4046
|
* Business space: keep rows with this tax class (revenue, own_transfer_in, owner_draw…)
|
|
4035
4047
|
*/
|
|
4036
4048
|
treatment_class?: string;
|
|
4049
|
+
/**
|
|
4050
|
+
* Business space: keep rows with any of these tax classes (together with treatment_class); repeat the parameter or send them comma separated
|
|
4051
|
+
*/
|
|
4052
|
+
treatment_classes?: Array<string>;
|
|
4037
4053
|
/**
|
|
4038
4054
|
* Also list the transfers between the space's portfolio accounts (a wallet and an exchange) as read-only rows of kind portfolio_transfer, ordered, filtered and paged with the transactions; rows no pair can match (category, tag, counterparty, project, tax filters, another type) leave them out
|
|
4039
4055
|
*/
|
|
@@ -4143,11 +4159,15 @@ export type GetTransactionDayTotalsData = {
|
|
|
4143
4159
|
*/
|
|
4144
4160
|
category_id?: string;
|
|
4145
4161
|
/**
|
|
4146
|
-
*
|
|
4162
|
+
* Categories (any of them, together with category_id): repeat the parameter or send comma separated ids
|
|
4163
|
+
*/
|
|
4164
|
+
category_ids?: Array<string>;
|
|
4165
|
+
/**
|
|
4166
|
+
* With category_id or category_ids: also match their subcategories (each whole subtree)
|
|
4147
4167
|
*/
|
|
4148
4168
|
include_subcategories?: boolean;
|
|
4149
4169
|
/**
|
|
4150
|
-
*
|
|
4170
|
+
* Transactions without a category. With category_ids: the rows in any of those categories or without one; a category_id alone takes precedence over it
|
|
4151
4171
|
*/
|
|
4152
4172
|
uncategorized?: boolean;
|
|
4153
4173
|
/**
|
|
@@ -4158,10 +4178,18 @@ export type GetTransactionDayTotalsData = {
|
|
|
4158
4178
|
* Filter by type: income, expense, transfer
|
|
4159
4179
|
*/
|
|
4160
4180
|
type?: string;
|
|
4181
|
+
/**
|
|
4182
|
+
* Types (any of them, together with type): income, expense, transfer; repeat the parameter or send them comma separated
|
|
4183
|
+
*/
|
|
4184
|
+
types?: Array<string>;
|
|
4161
4185
|
/**
|
|
4162
4186
|
* Filter by status
|
|
4163
4187
|
*/
|
|
4164
4188
|
status?: string;
|
|
4189
|
+
/**
|
|
4190
|
+
* Statuses (any of them, together with status): completed, pending, cancelled; repeat the parameter or send them comma separated
|
|
4191
|
+
*/
|
|
4192
|
+
statuses?: Array<string>;
|
|
4165
4193
|
/**
|
|
4166
4194
|
* First local day (YYYY-MM-DD) in the user's zone
|
|
4167
4195
|
*/
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.0-beta.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.0-beta.1";
|
|
2
2
|
export declare const API_VERSION = "1.0";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "degroshi",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
4
|
"description": "The official TypeScript and JavaScript SDK for the Degroshi API",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Degroshi",
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|
|
25
25
|
"types": "./dist/index.d.ts",
|
|
26
|
-
"import": "./dist/index.js"
|
|
26
|
+
"import": "./dist/index.js",
|
|
27
|
+
"default": "./dist/index.js"
|
|
27
28
|
}
|
|
28
29
|
},
|
|
29
30
|
"files": [
|