@accounty/e-accounting 0.1.0 → 0.1.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/CHANGELOG.md +21 -0
- package/package.json +2 -2
- package/src/e-accounting.d.ts +1 -0
- package/src/e-accounting.interface.d.ts +12 -138
- package/src/e-accounting.js +20 -8
- package/src/e-accounting.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
|
|
2
|
+
## [0.1.2](https://github.com/PalmTreeCoding/Accounty/compare/packages-e-accounting-0.1.1...packages-e-accounting-0.1.2) (2025-12-12)
|
|
3
|
+
|
|
4
|
+
### Dependency Updates
|
|
5
|
+
|
|
6
|
+
* `packages-oauth` updated to version `1.0.9`
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* Refactor `get` method for better file download support across modules ([7c78bed](https://github.com/PalmTreeCoding/Accounty/commit/7c78bedc4e32064751a9835c565463ece70ffb95))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.1.1](https://github.com/PalmTreeCoding/Accounty/compare/packages-e-accounting-0.1.0...packages-e-accounting-0.1.1) (2025-12-12)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **e-accounting:** Simplify invoice interface and enhance invoice filtering ([d00b1c4](https://github.com/PalmTreeCoding/Accounty/commit/d00b1c49b5b38399a20f51176b02e28ce2a44c11))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
2
23
|
# 0.1.0 (2025-12-11)
|
|
3
24
|
|
|
4
25
|
### Dependency Updates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@accounty/e-accounting",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"axios": "^1.13.2",
|
|
6
6
|
"bignumber.js": "^9.3.1",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"libphonenumber-js": "^1.12.31",
|
|
10
10
|
"validator": "^13.15.23",
|
|
11
11
|
"@accounty/core": "1.3.1",
|
|
12
|
-
"@accounty/oauth": "1.0.
|
|
12
|
+
"@accounty/oauth": "1.0.9",
|
|
13
13
|
"tslib": "2.8.1"
|
|
14
14
|
},
|
|
15
15
|
"packageManager": "yarn@4.10.3",
|
package/src/e-accounting.d.ts
CHANGED
|
@@ -22,5 +22,6 @@ export default class EAccounting extends AccountyOauthProvider<OauthCredentials>
|
|
|
22
22
|
fetchInvoices(options?: FetchInvoicesOptions): Promise<FetchResponse<Array<SalesInvoice<EAccountingCustomerInvoice>>>>;
|
|
23
23
|
fetchInvoicesWithCompany(options?: FetchInvoicesOptions): Promise<FetchResponse<Array<SalesInvoiceWithCompany>>>;
|
|
24
24
|
private getJson;
|
|
25
|
+
private getFile;
|
|
25
26
|
private get;
|
|
26
27
|
}
|
|
@@ -10,148 +10,22 @@ export interface EAccountingResponse<Response> {
|
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
export interface EAccountingCustomerInvoice extends RemoteDataJson {
|
|
13
|
-
'
|
|
14
|
-
'
|
|
15
|
-
'
|
|
16
|
-
'currencyCode': null;
|
|
17
|
-
'currencyRate': null;
|
|
18
|
-
'createdByUserId': null;
|
|
19
|
-
'totalAmount': 1;
|
|
20
|
-
'totalVatAmount': 1;
|
|
21
|
-
'totalRoundings': 1;
|
|
22
|
-
'totalAmountInvoiceCurrency': 1;
|
|
23
|
-
'totalVatAmountInvoiceCurrency': 1;
|
|
24
|
-
'setOffAmountInvoiceCurrency': 1;
|
|
13
|
+
'currencyCode': 'string';
|
|
14
|
+
'currencyRate': 1;
|
|
15
|
+
'currencyRateUnit': 1;
|
|
25
16
|
'customerId': '123e4567-e89b-12d3-a456-426614174000';
|
|
26
|
-
'
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
'articleNumber': null;
|
|
30
|
-
'articleId': null;
|
|
31
|
-
'isServiceArticle': true;
|
|
32
|
-
'amountNoVat': 1;
|
|
33
|
-
'vatRate': null;
|
|
34
|
-
'lineNumber': 1;
|
|
35
|
-
'isTextRow': true;
|
|
36
|
-
'text': null;
|
|
37
|
-
}
|
|
38
|
-
];
|
|
39
|
-
'vatSpecification': [
|
|
40
|
-
{
|
|
41
|
-
'amountInvoiceCurrency': 1;
|
|
42
|
-
'vatAmountInvoiceCurrency': 1;
|
|
43
|
-
'vatPercent': 1;
|
|
44
|
-
}
|
|
45
|
-
];
|
|
46
|
-
'invoiceDate': null;
|
|
47
|
-
'dueDate': null;
|
|
48
|
-
'deliveryDate': null;
|
|
49
|
-
'rotReducedInvoicingType': 0;
|
|
50
|
-
'maxAllowedTaxReductionAmount': 1;
|
|
51
|
-
'rotReducedInvoicingAmount': null;
|
|
52
|
-
'rotReducedInvoicingPercent': 1;
|
|
53
|
-
'rotReducedInvoicingPropertyName': null;
|
|
54
|
-
'rotReducedInvoicingOrgNumber': null;
|
|
55
|
-
'persons': [
|
|
56
|
-
{
|
|
57
|
-
'id': '123e4567-e89b-12d3-a456-426614174000';
|
|
58
|
-
'ssn': null;
|
|
59
|
-
'amount': 1;
|
|
60
|
-
}
|
|
61
|
-
];
|
|
62
|
-
'rotReducedInvoicingAutomaticDistribution': true;
|
|
63
|
-
'electronicReference': null;
|
|
64
|
-
'subscriptionNumber': null;
|
|
65
|
-
'contractNumber': null;
|
|
66
|
-
'electronicAddress': null;
|
|
67
|
-
'ediServiceDelivererId': null;
|
|
68
|
-
'ourReference': null;
|
|
69
|
-
'yourReference': null;
|
|
70
|
-
'buyersOrderReference': null;
|
|
71
|
-
'invoiceCustomerName': null;
|
|
72
|
-
'invoiceAddress1': null;
|
|
73
|
-
'invoiceAddress2': null;
|
|
74
|
-
'invoicePostalCode': null;
|
|
75
|
-
'invoiceCity': null;
|
|
76
|
-
'invoiceCountryCode': null;
|
|
77
|
-
'deliveryCustomerName': null;
|
|
78
|
-
'deliveryAddress1': null;
|
|
79
|
-
'deliveryAddress2': null;
|
|
80
|
-
'deliveryPostalCode': null;
|
|
81
|
-
'deliveryCity': null;
|
|
82
|
-
'deliveryCountryCode': null;
|
|
83
|
-
'deliveryMethodName': null;
|
|
84
|
-
'deliveryTermName': null;
|
|
85
|
-
'deliveryMethodCode': null;
|
|
86
|
-
'deliveryTermCode': null;
|
|
87
|
-
'customerIsPrivatePerson': true;
|
|
88
|
-
'termsOfPaymentId': '123e4567-e89b-12d3-a456-426614174000';
|
|
89
|
-
'customerEmail': null;
|
|
17
|
+
'dueDate': '2025-12-12T14:09:50.034Z';
|
|
18
|
+
'id': '123e4567-e89b-12d3-a456-426614174000';
|
|
19
|
+
'invoiceDate': '2025-12-12T14:09:50.034Z';
|
|
90
20
|
'invoiceNumber': 1;
|
|
91
|
-
'
|
|
92
|
-
'
|
|
21
|
+
'isCreditInvoice': true;
|
|
22
|
+
'modifiedUtc': '2025-12-12T14:09:50.034Z';
|
|
93
23
|
'paymentReferenceNumber': null;
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
'messageThreads': [
|
|
99
|
-
'123e4567-e89b-12d3-a456-426614174000'
|
|
100
|
-
];
|
|
101
|
-
'notes': [
|
|
102
|
-
'123e4567-e89b-12d3-a456-426614174000'
|
|
103
|
-
];
|
|
104
|
-
'hasAutoInvoiceError': true;
|
|
105
|
-
'isNotDelivered': true;
|
|
106
|
-
'reverseChargeOnConstructionServices': true;
|
|
107
|
-
'workHouseOtherCosts': null;
|
|
108
|
-
'remainingAmount': 1;
|
|
109
|
-
'remainingAmountInvoiceCurrency': 1;
|
|
110
|
-
'referringInvoiceId': null;
|
|
111
|
-
'createdFromOrderId': null;
|
|
112
|
-
'createdFromQuoteId': null;
|
|
113
|
-
'createdFromDraftId': null;
|
|
114
|
-
'voucherNumber': null;
|
|
24
|
+
'remainingAmountInvoiceCurrency': -99999999.99;
|
|
25
|
+
'roundingsAmountInvoiceCurrency': 1;
|
|
26
|
+
'totalAmountInvoiceCurrency': -99999999.99;
|
|
27
|
+
'vatAmountInvoiceCurrency': 1;
|
|
115
28
|
'voucherId': '123e4567-e89b-12d3-a456-426614174000';
|
|
116
|
-
'createdUtc': null;
|
|
117
|
-
'modifiedUtc': null;
|
|
118
|
-
'reversedConstructionVatInvoicing': true;
|
|
119
|
-
'includesVat': true;
|
|
120
|
-
'sendType': 0;
|
|
121
|
-
'paymentReminderIssued': true;
|
|
122
|
-
'paymentRemindersCount': 1;
|
|
123
|
-
'lastPaymentReminderSentDate': null;
|
|
124
|
-
'usesGreenTechnology': true;
|
|
125
|
-
'isSold': true;
|
|
126
|
-
'factoringInvoiceStatus': 0;
|
|
127
|
-
'paymentDate': null;
|
|
128
|
-
'paymentStatus': 0;
|
|
129
|
-
'creditedBy': [
|
|
130
|
-
{
|
|
131
|
-
'creditInvoiceId': '123e4567-e89b-12d3-a456-426614174000';
|
|
132
|
-
}
|
|
133
|
-
];
|
|
134
|
-
'contributionMargin': {
|
|
135
|
-
'amount': null;
|
|
136
|
-
'percentage': null;
|
|
137
|
-
};
|
|
138
|
-
'isDirectDebit': null;
|
|
139
|
-
'isQuickInvoice': true;
|
|
140
|
-
'isCollectiveInvoice': true;
|
|
141
|
-
'collectiveCustomerInvoiceRowsRelationToOrders': [
|
|
142
|
-
{
|
|
143
|
-
'orderId': '123e4567-e89b-12d3-a456-426614174000';
|
|
144
|
-
'orderNumber': null;
|
|
145
|
-
'orderReference': null;
|
|
146
|
-
'deliveryDate': null;
|
|
147
|
-
'relatedInvoiceRows': [
|
|
148
|
-
1
|
|
149
|
-
];
|
|
150
|
-
}
|
|
151
|
-
];
|
|
152
|
-
'replaceUnitPriceWhenZero': true;
|
|
153
|
-
'taxDeductionStatus': 0;
|
|
154
|
-
'backgroundId': null;
|
|
155
29
|
}
|
|
156
30
|
export interface EAccountingCustomer extends RemoteDataJson {
|
|
157
31
|
'id': '123e4567-e89b-12d3-a456-426614174000';
|
package/src/e-accounting.js
CHANGED
|
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const core_1 = require("@accounty/core");
|
|
5
5
|
const oauth_1 = tslib_1.__importDefault(require("@accounty/oauth"));
|
|
6
6
|
const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
7
|
+
const format_1 = require("date-fns/format");
|
|
7
8
|
const debug_1 = tslib_1.__importDefault(require("debug"));
|
|
8
9
|
/**
|
|
9
10
|
* Used docs
|
|
@@ -27,14 +28,15 @@ class EAccounting extends oauth_1.default {
|
|
|
27
28
|
return super.getAuthorizeURL(state, redirectUri, {
|
|
28
29
|
...additionalParams,
|
|
29
30
|
prompt: 'select_account',
|
|
30
|
-
scope: 'ea:sales_readonly'
|
|
31
|
+
scope: 'ea:api+ea:sales_readonly',
|
|
32
|
+
acr_values: 'service:44643EB1-3F76-4C1C-A672-402AE8085934'
|
|
31
33
|
});
|
|
32
34
|
}
|
|
33
35
|
async testCredentials() {
|
|
34
36
|
return Boolean(await this.get('/customerinvoices'));
|
|
35
37
|
}
|
|
36
38
|
async downloadInvoice(remoteId) {
|
|
37
|
-
return this.
|
|
39
|
+
return this.getFile(`/customerinvoices/${remoteId}/print`);
|
|
38
40
|
}
|
|
39
41
|
async fetchCompanies() {
|
|
40
42
|
const customers = await this.getJson('/customers');
|
|
@@ -75,13 +77,17 @@ class EAccounting extends oauth_1.default {
|
|
|
75
77
|
};
|
|
76
78
|
}
|
|
77
79
|
async fetchInvoices(options) {
|
|
78
|
-
const invoices = await this.getJson('/customerinvoices', {
|
|
79
|
-
|
|
80
|
+
const invoices = await this.getJson('/customerinvoices', {
|
|
81
|
+
$filter: [
|
|
82
|
+
options.state === 'open' && 'RemainingAmountInvoiceCurrency gt 0',
|
|
83
|
+
options.state === 'overdue' && `DueDate ge DateTime'${(0, format_1.format)(new Date(), 'yyyy-MM-dd')}'`
|
|
84
|
+
].filter(Boolean).join(' and ')
|
|
85
|
+
});
|
|
80
86
|
return {
|
|
81
87
|
version: undefined,
|
|
82
88
|
data: invoices.map((invoice) => {
|
|
83
|
-
const centAmount = core_1.utils.toCentAmount(invoice.
|
|
84
|
-
const centAmountOpen = core_1.utils.toCentAmount(invoice.
|
|
89
|
+
const centAmount = core_1.utils.toCentAmount(invoice.totalAmountInvoiceCurrency);
|
|
90
|
+
const centAmountOpen = core_1.utils.toCentAmount(invoice.remainingAmountInvoiceCurrency);
|
|
85
91
|
return {
|
|
86
92
|
remoteId: invoice.id,
|
|
87
93
|
companyId: invoice.customerId,
|
|
@@ -122,12 +128,18 @@ class EAccounting extends oauth_1.default {
|
|
|
122
128
|
}
|
|
123
129
|
return data || [];
|
|
124
130
|
}
|
|
125
|
-
|
|
131
|
+
getFile(url, params = {}) {
|
|
132
|
+
return this.get(url, params, {
|
|
133
|
+
responseType: 'arraybuffer'
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
async get(url, params = {}, config = {}) {
|
|
126
137
|
await this.rateLimiter.waitForRateLimit();
|
|
127
138
|
const response = await this.client.get(url, {
|
|
128
139
|
headers: this.getOauthHeaders(),
|
|
129
140
|
validateStatus: this.validateRequestStatus,
|
|
130
|
-
params
|
|
141
|
+
params,
|
|
142
|
+
...config
|
|
131
143
|
});
|
|
132
144
|
this.throwIfRevoked(response);
|
|
133
145
|
return response.data;
|
package/src/e-accounting.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-accounting.js","sourceRoot":"","sources":["../../../../packages/e-accounting/src/e-accounting.ts"],"names":[],"mappings":";;;AAAA,yCAQuB;AACvB,oEAAuF;AACvF,
|
|
1
|
+
{"version":3,"file":"e-accounting.js","sourceRoot":"","sources":["../../../../packages/e-accounting/src/e-accounting.ts"],"names":[],"mappings":";;;AAAA,yCAQuB;AACvB,oEAAuF;AACvF,0DAAyB;AACzB,4CAAwC;AACxC,0DAAyB;AAKzB;;;;GAIG;AACH,MAAqB,WAAY,SAAQ,eAA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