@emilgroup/accounting-sdk-node 1.0.1-beta.0 → 1.0.1-beta.2
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/.openapi-generator/FILES +7 -0
- package/README.md +2 -2
- package/api/financial-accounts-api.ts +12 -6
- package/api/transactions-api.ts +192 -2
- package/dist/api/financial-accounts-api.d.ts +12 -9
- package/dist/api/transactions-api.d.ts +114 -3
- package/dist/api/transactions-api.js +129 -0
- package/dist/models/create-financial-account-response-class.d.ts +25 -0
- package/dist/models/create-financial-account-response-class.js +15 -0
- package/dist/models/create-transaction-response-class.d.ts +25 -0
- package/dist/models/create-transaction-response-class.js +15 -0
- package/dist/models/financial-account-class.d.ts +86 -0
- package/dist/models/financial-account-class.js +23 -0
- package/dist/models/get-financial-account-response-class.d.ts +25 -0
- package/dist/models/get-financial-account-response-class.js +15 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/models/list-financial-accounts-response-class.d.ts +31 -0
- package/dist/models/list-financial-accounts-response-class.js +15 -0
- package/dist/models/list-transactions-response-class.d.ts +31 -0
- package/dist/models/list-transactions-response-class.js +15 -0
- package/dist/models/transaction-class.d.ts +78 -0
- package/dist/models/transaction-class.js +15 -0
- package/models/create-financial-account-response-class.ts +31 -0
- package/models/create-transaction-response-class.ts +31 -0
- package/models/financial-account-class.ts +95 -0
- package/models/get-financial-account-response-class.ts +31 -0
- package/models/index.ts +7 -0
- package/models/list-financial-accounts-response-class.ts +37 -0
- package/models/list-transactions-response-class.ts +37 -0
- package/models/transaction-class.ts +84 -0
- package/package.json +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AccountingService
|
|
5
|
+
* The EMIL AccountingService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { TransactionClass } from './transaction-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CreateTransactionResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateTransactionResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The transactions response.
|
|
26
|
+
* @type {TransactionClass}
|
|
27
|
+
* @memberof CreateTransactionResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'transaction': TransactionClass;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AccountingService
|
|
5
|
+
* The EMIL AccountingService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface FinancialAccountClass
|
|
21
|
+
*/
|
|
22
|
+
export interface FinancialAccountClass {
|
|
23
|
+
/**
|
|
24
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof FinancialAccountClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier for the object.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof FinancialAccountClass
|
|
33
|
+
*/
|
|
34
|
+
'code': string;
|
|
35
|
+
/**
|
|
36
|
+
* The name of the account.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof FinancialAccountClass
|
|
39
|
+
*/
|
|
40
|
+
'name': string;
|
|
41
|
+
/**
|
|
42
|
+
* The financial account number.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof FinancialAccountClass
|
|
45
|
+
*/
|
|
46
|
+
'financialAccountNumber': string;
|
|
47
|
+
/**
|
|
48
|
+
* The ID of the parent account, if any.
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof FinancialAccountClass
|
|
51
|
+
*/
|
|
52
|
+
'parentId': number;
|
|
53
|
+
/**
|
|
54
|
+
* The entity code of the account (account code, bank account code, etc...).
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof FinancialAccountClass
|
|
57
|
+
*/
|
|
58
|
+
'entityCode': string;
|
|
59
|
+
/**
|
|
60
|
+
* The type of account, e.g. \"Asset\", \"Liability\", \"Equity\", \"Revenue\", \"Expense\".
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof FinancialAccountClass
|
|
63
|
+
*/
|
|
64
|
+
'type': FinancialAccountClassTypeEnum;
|
|
65
|
+
/**
|
|
66
|
+
* Metadata about the object.
|
|
67
|
+
* @type {object}
|
|
68
|
+
* @memberof FinancialAccountClass
|
|
69
|
+
*/
|
|
70
|
+
'metadata': object;
|
|
71
|
+
/**
|
|
72
|
+
* Time at which the object was created.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof FinancialAccountClass
|
|
75
|
+
*/
|
|
76
|
+
'createdAt': string;
|
|
77
|
+
/**
|
|
78
|
+
* Time at which the object was updated.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof FinancialAccountClass
|
|
81
|
+
*/
|
|
82
|
+
'updatedAt': string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export const FinancialAccountClassTypeEnum = {
|
|
86
|
+
Asset: 'Asset',
|
|
87
|
+
Liability: 'Liability',
|
|
88
|
+
Equity: 'Equity',
|
|
89
|
+
Revenue: 'Revenue',
|
|
90
|
+
Expense: 'Expense'
|
|
91
|
+
} as const;
|
|
92
|
+
|
|
93
|
+
export type FinancialAccountClassTypeEnum = typeof FinancialAccountClassTypeEnum[keyof typeof FinancialAccountClassTypeEnum];
|
|
94
|
+
|
|
95
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AccountingService
|
|
5
|
+
* The EMIL AccountingService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { FinancialAccountClass } from './financial-account-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface GetFinancialAccountResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface GetFinancialAccountResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The financial account response.
|
|
26
|
+
* @type {FinancialAccountClass}
|
|
27
|
+
* @memberof GetFinancialAccountResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'financialAccount': FinancialAccountClass;
|
|
30
|
+
}
|
|
31
|
+
|
package/models/index.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
export * from './create-financial-account-request-dto';
|
|
2
|
+
export * from './create-financial-account-response-class';
|
|
2
3
|
export * from './create-transaction-request-dto';
|
|
4
|
+
export * from './create-transaction-response-class';
|
|
3
5
|
export * from './entry-data-dto';
|
|
6
|
+
export * from './financial-account-class';
|
|
7
|
+
export * from './get-financial-account-response-class';
|
|
4
8
|
export * from './inline-response200';
|
|
5
9
|
export * from './inline-response503';
|
|
10
|
+
export * from './list-financial-accounts-response-class';
|
|
11
|
+
export * from './list-transactions-response-class';
|
|
12
|
+
export * from './transaction-class';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AccountingService
|
|
5
|
+
* The EMIL AccountingService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { FinancialAccountClass } from './financial-account-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ListFinancialAccountsResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface ListFinancialAccountsResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The list of financial accounts.
|
|
26
|
+
* @type {Array<FinancialAccountClass>}
|
|
27
|
+
* @memberof ListFinancialAccountsResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'items': Array<FinancialAccountClass>;
|
|
30
|
+
/**
|
|
31
|
+
* Next page token
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListFinancialAccountsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'nextPageToken': string;
|
|
36
|
+
}
|
|
37
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AccountingService
|
|
5
|
+
* The EMIL AccountingService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { TransactionClass } from './transaction-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ListTransactionsResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface ListTransactionsResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The list of transactionss.
|
|
26
|
+
* @type {Array<TransactionClass>}
|
|
27
|
+
* @memberof ListTransactionsResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'items': Array<TransactionClass>;
|
|
30
|
+
/**
|
|
31
|
+
* Next page token
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListTransactionsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'nextPageToken': string;
|
|
36
|
+
}
|
|
37
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AccountingService
|
|
5
|
+
* The EMIL AccountingService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface TransactionClass
|
|
21
|
+
*/
|
|
22
|
+
export interface TransactionClass {
|
|
23
|
+
/**
|
|
24
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof TransactionClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier for the object.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof TransactionClass
|
|
33
|
+
*/
|
|
34
|
+
'code': string;
|
|
35
|
+
/**
|
|
36
|
+
* The date of the transaction.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof TransactionClass
|
|
39
|
+
*/
|
|
40
|
+
'date': string;
|
|
41
|
+
/**
|
|
42
|
+
* The description of the transaction.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof TransactionClass
|
|
45
|
+
*/
|
|
46
|
+
'description': string;
|
|
47
|
+
/**
|
|
48
|
+
* The reference of the transaction.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof TransactionClass
|
|
51
|
+
*/
|
|
52
|
+
'reference': string;
|
|
53
|
+
/**
|
|
54
|
+
* The policy number of the transaction.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof TransactionClass
|
|
57
|
+
*/
|
|
58
|
+
'policyNumber': string;
|
|
59
|
+
/**
|
|
60
|
+
* The account number of the transaction.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof TransactionClass
|
|
63
|
+
*/
|
|
64
|
+
'accountNumber': string;
|
|
65
|
+
/**
|
|
66
|
+
* List of entries in the transaction.
|
|
67
|
+
* @type {Array<string>}
|
|
68
|
+
* @memberof TransactionClass
|
|
69
|
+
*/
|
|
70
|
+
'entries': Array<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Time at which the object was created.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof TransactionClass
|
|
75
|
+
*/
|
|
76
|
+
'createdAt': string;
|
|
77
|
+
/**
|
|
78
|
+
* Time at which the object was updated.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof TransactionClass
|
|
81
|
+
*/
|
|
82
|
+
'updatedAt': string;
|
|
83
|
+
}
|
|
84
|
+
|