@qontoctl/core 0.0.0 → 0.1.0
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/LICENSE +661 -0
- package/README.md +93 -0
- package/dist/api-types.d.ts +38 -0
- package/dist/api-types.d.ts.map +1 -0
- package/dist/api-types.js +4 -0
- package/dist/api-types.js.map +1 -0
- package/dist/auth/api-key.d.ts +16 -0
- package/dist/auth/api-key.d.ts.map +1 -0
- package/dist/auth/api-key.js +28 -0
- package/dist/auth/api-key.js.map +1 -0
- package/dist/auth/index.d.ts +2 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +4 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/config/env.d.ts +17 -0
- package/dist/config/env.d.ts.map +1 -0
- package/dist/config/env.js +52 -0
- package/dist/config/env.js.map +1 -0
- package/dist/config/index.d.ts +8 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +7 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/loader.d.ts +18 -0
- package/dist/config/loader.d.ts.map +1 -0
- package/dist/config/loader.js +49 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/resolve.d.ts +19 -0
- package/dist/config/resolve.d.ts.map +1 -0
- package/dist/config/resolve.js +84 -0
- package/dist/config/resolve.js.map +1 -0
- package/dist/config/types.d.ts +38 -0
- package/dist/config/types.d.ts.map +1 -0
- package/dist/config/types.js +4 -0
- package/dist/config/types.js.map +1 -0
- package/dist/config/validate.d.ts +22 -0
- package/dist/config/validate.d.ts.map +1 -0
- package/dist/config/validate.js +99 -0
- package/dist/config/validate.js.map +1 -0
- package/dist/constants.d.ts +7 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +9 -0
- package/dist/constants.js.map +1 -0
- package/dist/http-client.d.ts +100 -0
- package/dist/http-client.d.ts.map +1 -0
- package/dist/http-client.js +210 -0
- package/dist/http-client.js.map +1 -0
- package/dist/index.d.ts +12 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/services/bank-accounts.d.ts +18 -0
- package/dist/services/bank-accounts.d.ts.map +1 -0
- package/dist/services/bank-accounts.js +23 -0
- package/dist/services/bank-accounts.js.map +1 -0
- package/dist/services/index.d.ts +3 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +5 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/organization.d.ts +10 -0
- package/dist/services/organization.d.ts.map +1 -0
- package/dist/services/organization.js +13 -0
- package/dist/services/organization.js.map +1 -0
- package/dist/statements/index.d.ts +2 -0
- package/dist/statements/index.d.ts.map +1 -0
- package/dist/statements/index.js +4 -0
- package/dist/statements/index.js.map +1 -0
- package/dist/statements/types.d.ts +19 -0
- package/dist/statements/types.d.ts.map +1 -0
- package/dist/statements/types.js +4 -0
- package/dist/statements/types.js.map +1 -0
- package/dist/testing/index.d.ts +2 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +4 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/json-response.d.ts +6 -0
- package/dist/testing/json-response.d.ts.map +1 -0
- package/dist/testing/json-response.js +14 -0
- package/dist/testing/json-response.js.map +1 -0
- package/dist/transactions/index.d.ts +3 -0
- package/dist/transactions/index.d.ts.map +1 -0
- package/dist/transactions/index.js +4 -0
- package/dist/transactions/index.js.map +1 -0
- package/dist/transactions/service.d.ts +13 -0
- package/dist/transactions/service.d.ts.map +1 -0
- package/dist/transactions/service.js +65 -0
- package/dist/transactions/service.js.map +1 -0
- package/dist/transactions/types.d.ts +70 -0
- package/dist/transactions/types.d.ts.map +1 -0
- package/dist/transactions/types.js +4 -0
- package/dist/transactions/types.js.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +4 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/label.d.ts +10 -0
- package/dist/types/label.d.ts.map +1 -0
- package/dist/types/label.js +4 -0
- package/dist/types/label.js.map +1 -0
- package/dist/types/membership.d.ts +17 -0
- package/dist/types/membership.d.ts.map +1 -0
- package/dist/types/membership.js +4 -0
- package/dist/types/membership.js.map +1 -0
- package/package.json +32 -11
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/statements/types.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;CAC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/statements/types.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,oCAAoC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,oCAAoC;AAEpC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-response.d.ts","sourceRoot":"","sources":["../../src/testing/json-response.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,CAQlF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-only
|
|
2
|
+
// Copyright (C) 2026 Oleksii PELYKH
|
|
3
|
+
/**
|
|
4
|
+
* Create a resolved Promise<Response> with JSON body.
|
|
5
|
+
* Useful for mocking `fetch()` in tests.
|
|
6
|
+
*/
|
|
7
|
+
export function jsonResponse(body, init) {
|
|
8
|
+
return Promise.resolve(new Response(JSON.stringify(body), {
|
|
9
|
+
status: 200,
|
|
10
|
+
headers: { "Content-Type": "application/json" },
|
|
11
|
+
...init,
|
|
12
|
+
}));
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=json-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-response.js","sourceRoot":"","sources":["../../src/testing/json-response.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,oCAAoC;AAEpC;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,IAAa,EAAE,IAAmB;IAC7D,OAAO,OAAO,CAAC,OAAO,CACpB,IAAI,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;QACjC,MAAM,EAAE,GAAG;QACX,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,GAAG,IAAI;KACR,CAAC,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transactions/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,2BAA2B,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE3E,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/transactions/index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,oCAAoC;AAEpC,OAAO,EAAE,2BAA2B,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { HttpClient, QueryParams } from "../http-client.js";
|
|
2
|
+
import type { ListTransactionsParams, Transaction } from "./types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Build query parameter record from typed list parameters.
|
|
5
|
+
*
|
|
6
|
+
* Array parameters use the `key[]` convention expected by the Qonto API.
|
|
7
|
+
*/
|
|
8
|
+
export declare function buildTransactionQueryParams(params: ListTransactionsParams): QueryParams;
|
|
9
|
+
/**
|
|
10
|
+
* Fetch a single transaction by ID.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getTransaction(client: HttpClient, id: string, includes?: readonly string[]): Promise<Transaction>;
|
|
13
|
+
//# sourceMappingURL=service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/transactions/service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEtE;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,sBAAsB,GAAG,WAAW,CA+CvF;AAED;;GAEG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,UAAU,EAClB,EAAE,EAAE,MAAM,EACV,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,GAC3B,OAAO,CAAC,WAAW,CAAC,CAWtB"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-only
|
|
2
|
+
// Copyright (C) 2026 Oleksii PELYKH
|
|
3
|
+
/**
|
|
4
|
+
* Build query parameter record from typed list parameters.
|
|
5
|
+
*
|
|
6
|
+
* Array parameters use the `key[]` convention expected by the Qonto API.
|
|
7
|
+
*/
|
|
8
|
+
export function buildTransactionQueryParams(params) {
|
|
9
|
+
const query = {};
|
|
10
|
+
if (params.bank_account_id !== undefined) {
|
|
11
|
+
query["bank_account_id"] = params.bank_account_id;
|
|
12
|
+
}
|
|
13
|
+
if (params.iban !== undefined) {
|
|
14
|
+
query["iban"] = params.iban;
|
|
15
|
+
}
|
|
16
|
+
if (params.status !== undefined && params.status.length > 0) {
|
|
17
|
+
query["status[]"] = params.status;
|
|
18
|
+
}
|
|
19
|
+
if (params.side !== undefined) {
|
|
20
|
+
query["side"] = params.side;
|
|
21
|
+
}
|
|
22
|
+
if (params.operation_type !== undefined && params.operation_type.length > 0) {
|
|
23
|
+
query["operation_type[]"] = params.operation_type;
|
|
24
|
+
}
|
|
25
|
+
if (params.settled_at_from !== undefined) {
|
|
26
|
+
query["settled_at_from"] = params.settled_at_from;
|
|
27
|
+
}
|
|
28
|
+
if (params.settled_at_to !== undefined) {
|
|
29
|
+
query["settled_at_to"] = params.settled_at_to;
|
|
30
|
+
}
|
|
31
|
+
if (params.emitted_at_from !== undefined) {
|
|
32
|
+
query["emitted_at_from"] = params.emitted_at_from;
|
|
33
|
+
}
|
|
34
|
+
if (params.emitted_at_to !== undefined) {
|
|
35
|
+
query["emitted_at_to"] = params.emitted_at_to;
|
|
36
|
+
}
|
|
37
|
+
if (params.updated_at_from !== undefined) {
|
|
38
|
+
query["updated_at_from"] = params.updated_at_from;
|
|
39
|
+
}
|
|
40
|
+
if (params.updated_at_to !== undefined) {
|
|
41
|
+
query["updated_at_to"] = params.updated_at_to;
|
|
42
|
+
}
|
|
43
|
+
if (params.with_attachments !== undefined) {
|
|
44
|
+
query["with_attachments"] = String(params.with_attachments);
|
|
45
|
+
}
|
|
46
|
+
if (params.includes !== undefined && params.includes.length > 0) {
|
|
47
|
+
query["includes[]"] = params.includes;
|
|
48
|
+
}
|
|
49
|
+
if (params.sort_by !== undefined) {
|
|
50
|
+
query["sort_by"] = params.sort_by;
|
|
51
|
+
}
|
|
52
|
+
return query;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Fetch a single transaction by ID.
|
|
56
|
+
*/
|
|
57
|
+
export async function getTransaction(client, id, includes) {
|
|
58
|
+
const params = {};
|
|
59
|
+
if (includes !== undefined && includes.length > 0) {
|
|
60
|
+
params["includes[]"] = includes;
|
|
61
|
+
}
|
|
62
|
+
const response = await client.get(`/v2/transactions/${encodeURIComponent(id)}`, Object.keys(params).length > 0 ? params : undefined);
|
|
63
|
+
return response.transaction;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../src/transactions/service.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,oCAAoC;AAKpC;;;;GAIG;AACH,MAAM,UAAU,2BAA2B,CAAC,MAA8B;IACxE,MAAM,KAAK,GAA+C,EAAE,CAAC;IAE7D,IAAI,MAAM,CAAC,eAAe,KAAK,SAAS,EAAE,CAAC;QACzC,KAAK,CAAC,iBAAiB,CAAC,GAAG,MAAM,CAAC,eAAe,CAAC;IACpD,CAAC;IACD,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC9B,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC;IAC9B,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC5D,KAAK,CAAC,UAAU,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC;IACpC,CAAC;IACD,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC9B,KAAK,CAAC,MAAM,CAA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AAC;QAChE,KAAK,CAAC,YAAY,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC;IACxC,CAAC;IACD,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;QACjC,KAAK,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC;IACpC,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,MAAkB,EAClB,EAAU,EACV,QAA4B;IAE5B,MAAM,MAAM,GAA+C,EAAE,CAAC;IAC9D,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAClD,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC;IAClC,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAC/B,oBAAoB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC5C,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CACpD,CAAC;IACF,OAAO,QAAQ,CAAC,WAAW,CAAC;AAC9B,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A transaction returned by the Qonto API.
|
|
3
|
+
*/
|
|
4
|
+
export interface Transaction {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly transaction_id: string;
|
|
7
|
+
readonly amount: number;
|
|
8
|
+
readonly amount_cents: number;
|
|
9
|
+
readonly settled_balance: number | null;
|
|
10
|
+
readonly settled_balance_cents: number | null;
|
|
11
|
+
readonly local_amount: number;
|
|
12
|
+
readonly local_amount_cents: number;
|
|
13
|
+
readonly side: "credit" | "debit";
|
|
14
|
+
readonly operation_type: string;
|
|
15
|
+
readonly currency: string;
|
|
16
|
+
readonly local_currency: string;
|
|
17
|
+
readonly label: string;
|
|
18
|
+
readonly clean_counterparty_name: string;
|
|
19
|
+
readonly settled_at: string | null;
|
|
20
|
+
readonly emitted_at: string;
|
|
21
|
+
readonly created_at: string;
|
|
22
|
+
readonly updated_at: string;
|
|
23
|
+
readonly status: "pending" | "declined" | "completed";
|
|
24
|
+
readonly note: string | null;
|
|
25
|
+
readonly reference: string | null;
|
|
26
|
+
readonly vat_amount: number | null;
|
|
27
|
+
readonly vat_amount_cents: number | null;
|
|
28
|
+
readonly vat_rate: number | null;
|
|
29
|
+
readonly initiator_id: string | null;
|
|
30
|
+
readonly label_ids: readonly string[];
|
|
31
|
+
readonly attachment_ids: readonly string[];
|
|
32
|
+
readonly attachment_lost: boolean;
|
|
33
|
+
readonly attachment_required: boolean;
|
|
34
|
+
readonly card_last_digits: string | null;
|
|
35
|
+
readonly category: string;
|
|
36
|
+
readonly subject_type: string;
|
|
37
|
+
readonly bank_account_id: string;
|
|
38
|
+
readonly is_external_transaction: boolean;
|
|
39
|
+
readonly attachments?: readonly unknown[];
|
|
40
|
+
readonly labels?: readonly TransactionLabel[];
|
|
41
|
+
readonly vat_details?: unknown;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* A label embedded within a transaction when using `includes[]=labels`.
|
|
45
|
+
*/
|
|
46
|
+
export interface TransactionLabel {
|
|
47
|
+
readonly id: string;
|
|
48
|
+
readonly name: string;
|
|
49
|
+
readonly parent_id: string | null;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Parameters for listing transactions.
|
|
53
|
+
*/
|
|
54
|
+
export interface ListTransactionsParams {
|
|
55
|
+
readonly bank_account_id?: string;
|
|
56
|
+
readonly iban?: string;
|
|
57
|
+
readonly status?: readonly string[];
|
|
58
|
+
readonly side?: string;
|
|
59
|
+
readonly operation_type?: readonly string[];
|
|
60
|
+
readonly settled_at_from?: string;
|
|
61
|
+
readonly settled_at_to?: string;
|
|
62
|
+
readonly emitted_at_from?: string;
|
|
63
|
+
readonly emitted_at_to?: string;
|
|
64
|
+
readonly updated_at_from?: string;
|
|
65
|
+
readonly updated_at_to?: string;
|
|
66
|
+
readonly with_attachments?: boolean;
|
|
67
|
+
readonly includes?: readonly string[];
|
|
68
|
+
readonly sort_by?: string;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/transactions/types.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,QAAQ,CAAC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;IAClC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,uBAAuB,EAAE,MAAM,CAAC;IACzC,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,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MAAM,CAAC;IAClC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5C,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IACpC,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/transactions/types.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,oCAAoC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,oCAAoC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A Qonto label used to categorize transactions.
|
|
3
|
+
* Labels support hierarchical relationships via `parent_id`.
|
|
4
|
+
*/
|
|
5
|
+
export interface Label {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly parent_id: string | null;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../src/types/label.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.js","sourceRoot":"","sources":["../../src/types/label.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,oCAAoC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A Qonto organization membership representing a team member.
|
|
3
|
+
*/
|
|
4
|
+
export interface Membership {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly first_name: string;
|
|
7
|
+
readonly last_name: string;
|
|
8
|
+
readonly role: "owner" | "admin" | "manager" | "reporting" | "employee";
|
|
9
|
+
readonly team_id: string;
|
|
10
|
+
readonly residence_country: string | null;
|
|
11
|
+
readonly birthdate: string | null;
|
|
12
|
+
readonly nationality: string | null;
|
|
13
|
+
readonly birth_country: string | null;
|
|
14
|
+
readonly ubo: boolean | null;
|
|
15
|
+
readonly status: string;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=membership.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"membership.d.ts","sourceRoot":"","sources":["../../src/types/membership.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IACxE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"membership.js","sourceRoot":"","sources":["../../src/types/membership.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,oCAAoC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qontoctl/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Core library for Qonto API integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"author": "Alexey Pelykh (https://github.com/alexey-pelykh)",
|
|
11
11
|
"homepage": "https://github.com/alexey-pelykh/qontoctl/tree/main/packages/core",
|
|
12
12
|
"bugs": "https://github.com/alexey-pelykh/qontoctl/issues",
|
|
13
|
+
"funding": "https://github.com/sponsors/alexey-pelykh",
|
|
13
14
|
"repository": {
|
|
14
15
|
"type": "git",
|
|
15
16
|
"url": "https://github.com/alexey-pelykh/qontoctl.git",
|
|
@@ -19,24 +20,44 @@
|
|
|
19
20
|
".": {
|
|
20
21
|
"types": "./dist/index.d.ts",
|
|
21
22
|
"import": "./dist/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./testing": {
|
|
25
|
+
"types": "./dist/testing/index.d.ts",
|
|
26
|
+
"import": "./dist/testing/index.js"
|
|
22
27
|
}
|
|
23
28
|
},
|
|
24
29
|
"files": [
|
|
25
30
|
"dist"
|
|
26
31
|
],
|
|
32
|
+
"keywords": [
|
|
33
|
+
"qonto",
|
|
34
|
+
"qonto-api",
|
|
35
|
+
"banking",
|
|
36
|
+
"banking-api",
|
|
37
|
+
"fintech",
|
|
38
|
+
"api-client",
|
|
39
|
+
"typescript"
|
|
40
|
+
],
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@types/node": "^24",
|
|
46
|
+
"eslint": "^9.39.2",
|
|
47
|
+
"typedoc": "^0.28.17",
|
|
48
|
+
"typescript": "^5.9.3",
|
|
49
|
+
"vitest": "^4.0.18"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"yaml": "^2.7.1"
|
|
53
|
+
},
|
|
27
54
|
"scripts": {
|
|
55
|
+
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|
|
28
56
|
"build": "tsc",
|
|
57
|
+
"typecheck": "tsc --noEmit",
|
|
29
58
|
"test": "vitest run --passWithNoTests",
|
|
30
59
|
"lint": "eslint src/",
|
|
60
|
+
"docs": "typedoc",
|
|
31
61
|
"dev": "tsc --watch"
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"@types/node": "catalog:",
|
|
35
|
-
"eslint": "catalog:",
|
|
36
|
-
"typescript": "catalog:",
|
|
37
|
-
"vitest": "catalog:"
|
|
38
|
-
},
|
|
39
|
-
"dependencies": {
|
|
40
|
-
"yaml": "catalog:"
|
|
41
62
|
}
|
|
42
|
-
}
|
|
63
|
+
}
|