@substrat-run/connector-fortnox 0.11.0 → 0.12.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/README.md +11 -7
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +6 -1
- package/dist/api.js.map +1 -1
- package/dist/call.d.ts +46 -0
- package/dist/call.d.ts.map +1 -0
- package/dist/call.js +88 -0
- package/dist/call.js.map +1 -0
- package/dist/connection.d.ts +56 -0
- package/dist/connection.d.ts.map +1 -0
- package/dist/connection.js +2 -0
- package/dist/connection.js.map +1 -0
- package/dist/consent.d.ts +15 -4
- package/dist/consent.d.ts.map +1 -1
- package/dist/consent.js +16 -5
- package/dist/consent.js.map +1 -1
- package/dist/index.d.ts +45 -29
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +213 -183
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { type ConnectionActivity, type ConnectionCredential, type ConnectionProbe, type ConnectionId } from '@substrat-run/contracts';
|
|
3
|
-
import type { FetchLike
|
|
3
|
+
import type { FetchLike } from '@substrat-run/kernel';
|
|
4
|
+
import type { FortnoxBindingDoor, FortnoxConnectionDoor, FortnoxConnectionState, FortnoxOpened } from './connection.js';
|
|
4
5
|
export { FortnoxApi, FortnoxApiError, fortnoxErrorCode, FORTNOX_API_BASE, FORTNOX_OAUTH_BASE, fortnoxConsentUrl, fortnoxSecret, type FortnoxCompany, type FortnoxFinancialYear, type FortnoxSecret, type FortnoxApiOptions, type FortnoxSupplierInvoice, type FortnoxSupplierInvoiceFile, } from './api.js';
|
|
5
6
|
export { parseSie4, splitSieLine, sieAmount, sieDate, type SieAccount, type SieDimension, type SieLedger, type SieObject, type SieTransaction, type SieVoucher, } from './sie4.js';
|
|
6
7
|
export { COST_CENTRE_DIMENSION, financialYearFor, summarizeLedger, type LedgerBalance, type LedgerSummary, } from './aggregate.js';
|
|
7
8
|
export { FortnoxMock, type FortnoxMockOptions, type FortnoxMockSupplierInvoice } from './mock.js';
|
|
8
9
|
export { completeFortnoxConsent, type FortnoxConsentCompletion } from './connect.js';
|
|
9
|
-
export { FORTNOX_CONSENT_SCOPES, FORTNOX_INVOICE_FILE_SCOPES, FORTNOX_INVOICE_SCOPES, FORTNOX_LEDGER_SCOPES, FortnoxConsentShortfall, readFortnoxConsent, } from './consent.js';
|
|
10
|
+
export { FORTNOX_CONSENT_SCOPES, FORTNOX_INVOICE_FILE_SCOPES, FORTNOX_INVOICE_SCOPES, FORTNOX_LEDGER_SCOPES, FortnoxConsentShortfall, FORTNOX_PROBE_WRITES, fortnoxConsentWrite, readFortnoxConsent, } from './consent.js';
|
|
11
|
+
export type { FortnoxBindingDoor, FortnoxConnectionDoor, FortnoxConnectionState, FortnoxOpened } from './connection.js';
|
|
12
|
+
export { FORTNOX_PROBE_TIMEOUT_MS, FORTNOX_SWEEP_TIMEOUT_MS, fortnoxCallOptionsOf, runFortnoxCall, type FortnoxCallDeps, } from './call.js';
|
|
10
13
|
/**
|
|
11
14
|
* The Fortnox connector — the INBOUND half of accounting integration.
|
|
12
15
|
*
|
|
@@ -18,9 +21,17 @@ export { FORTNOX_CONSENT_SCOPES, FORTNOX_INVOICE_FILE_SCOPES, FORTNOX_INVOICE_SC
|
|
|
18
21
|
* vertical does not *ask* for last month's bookkeeping the way it asks for a signature;
|
|
19
22
|
* the bookkeeping simply changes at Fortnox, and the platform finds out by looking.
|
|
20
23
|
*
|
|
21
|
-
* So there is no `registerFortnoxConnector`. `sweepFortnoxLedger` is
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
+
* So there is no `registerFortnoxConnector`. `sweepFortnoxLedger` is what the platform's
|
|
25
|
+
* sweeper calls for each connection, handed that one connection's door (#3377), and that is
|
|
26
|
+
* the whole trigger surface.
|
|
27
|
+
*
|
|
28
|
+
* ## One connection per call, and nothing past it (#3377)
|
|
29
|
+
*
|
|
30
|
+
* Every function here is handed one connection's worth of the platform ({@link FortnoxOpened},
|
|
31
|
+
* {@link FortnoxConnectionDoor}, {@link FortnoxBindingDoor}, or its state), never a `ScopeHost`
|
|
32
|
+
* or a `HostAdmin`. The probes are calls of the one connector call contract
|
|
33
|
+
* ({@link runFortnoxCall}); the bindings, the sweep and a poll on request are no role of it and
|
|
34
|
+
* are handed the connection's door, which the platform builds.
|
|
24
35
|
*
|
|
25
36
|
* ## Where the data lands, and why the connector does not decide
|
|
26
37
|
*
|
|
@@ -386,6 +397,11 @@ export declare const fortnoxInvoiceWritebackReceipt: z.ZodObject<{
|
|
|
386
397
|
export type FortnoxInvoiceWritebackReceipt = z.infer<typeof fortnoxInvoiceWritebackReceipt>;
|
|
387
398
|
/** How far back a binding's first pass reads when its declaration does not say. */
|
|
388
399
|
export declare const INVOICE_FIRST_LOOKBACK_DAYS = 90;
|
|
400
|
+
/**
|
|
401
|
+
* The options of a call handed an opened connection or its door: the connection brings its own
|
|
402
|
+
* `fetch`, bounded and recorded by the platform, so none is passed here.
|
|
403
|
+
*/
|
|
404
|
+
export type FortnoxPassOptions = Omit<FortnoxConnectorOptions, 'fetch' | 'timeoutMs'>;
|
|
389
405
|
export interface FortnoxConnectorOptions {
|
|
390
406
|
fetch: FetchLike;
|
|
391
407
|
apiBase?: string;
|
|
@@ -414,7 +430,7 @@ export interface FortnoxConnectorOptions {
|
|
|
414
430
|
* nobody is watching, with a provider round trip already spent. Here it fails in the
|
|
415
431
|
* operator's hands, naming the permission to grant.
|
|
416
432
|
*/
|
|
417
|
-
export declare function bindFortnoxScope(
|
|
433
|
+
export declare function bindFortnoxScope(door: FortnoxBindingDoor, input: {
|
|
418
434
|
connectionId: ConnectionId;
|
|
419
435
|
tenantId: string;
|
|
420
436
|
scopeId: string;
|
|
@@ -439,14 +455,14 @@ export declare function bindFortnoxScope(host: ScopeHost, input: {
|
|
|
439
455
|
now?: () => number;
|
|
440
456
|
}): Promise<FortnoxBinding>;
|
|
441
457
|
/** Every scope this connection syncs into. */
|
|
442
|
-
export declare function listFortnoxBindings(
|
|
458
|
+
export declare function listFortnoxBindings(state: Pick<FortnoxConnectionState, 'list'>): Promise<FortnoxBinding[]>;
|
|
443
459
|
/**
|
|
444
460
|
* Stop syncing one scope. The binding row is replaced with a tombstone rather than
|
|
445
461
|
* removed, because `putConnectorState` is the only verb this surface has — and an
|
|
446
462
|
* unbound scope that a later sweep silently re-adopts would be worse than a visible
|
|
447
463
|
* dead row.
|
|
448
464
|
*/
|
|
449
|
-
export declare function unbindFortnoxScope(
|
|
465
|
+
export declare function unbindFortnoxScope(state: Pick<FortnoxConnectionState, 'put'>, scopeId: string): Promise<void>;
|
|
450
466
|
/** What one scope's sync did. */
|
|
451
467
|
export interface FortnoxSyncResult {
|
|
452
468
|
scopeId: string;
|
|
@@ -467,7 +483,7 @@ export interface FortnoxSyncResult {
|
|
|
467
483
|
* and an unchanged hash returns `changed: false` without a single `invoke` — which
|
|
468
484
|
* matters because a sweep runs on a timer and most passes find books nobody has touched.
|
|
469
485
|
*/
|
|
470
|
-
export declare function syncFortnoxScope(
|
|
486
|
+
export declare function syncFortnoxScope(conn: FortnoxOpened, binding: FortnoxBinding, options: FortnoxPassOptions & {
|
|
471
487
|
period?: {
|
|
472
488
|
from: string;
|
|
473
489
|
to: string;
|
|
@@ -485,7 +501,7 @@ export declare function syncFortnoxScope(host: ScopeHost, connectionId: Connecti
|
|
|
485
501
|
* Each year is written to the binding right after it lands, so a failure on one costs only that one,
|
|
486
502
|
* and the years that did land are answered beside the ones that failed.
|
|
487
503
|
*/
|
|
488
|
-
export declare function syncFortnoxSieFiles(
|
|
504
|
+
export declare function syncFortnoxSieFiles(conn: FortnoxOpened, binding: FortnoxBinding, options: FortnoxPassOptions & {
|
|
489
505
|
period?: {
|
|
490
506
|
from: string;
|
|
491
507
|
to: string;
|
|
@@ -530,7 +546,7 @@ export interface FortnoxInvoiceSyncResult {
|
|
|
530
546
|
* Files come after the cursor, because a file that cannot be read says nothing about the invoice:
|
|
531
547
|
* the invoices keep landing, and the file stays queued and fails the scope's row by its number.
|
|
532
548
|
*/
|
|
533
|
-
export declare function syncFortnoxSupplierInvoices(
|
|
549
|
+
export declare function syncFortnoxSupplierInvoices(conn: FortnoxOpened, binding: FortnoxBinding, options: FortnoxPassOptions & {
|
|
534
550
|
budget?: {
|
|
535
551
|
details: number;
|
|
536
552
|
};
|
|
@@ -553,8 +569,8 @@ export interface FortnoxSweepResult {
|
|
|
553
569
|
busy: string[];
|
|
554
570
|
}
|
|
555
571
|
/**
|
|
556
|
-
* Poll Fortnox for every scope this connection is bound to — the
|
|
557
|
-
*
|
|
572
|
+
* Poll Fortnox for every scope this connection is bound to — what the platform's sweeper runs
|
|
573
|
+
* for each connection, handed its door (#3377). A ledger binding syncs its year of books
|
|
558
574
|
* ({@link syncFortnoxScope}); an invoice binding lands the supplier invoices changed since its
|
|
559
575
|
* cursor ({@link syncFortnoxSupplierInvoices}). The name predates invoices and is kept.
|
|
560
576
|
*
|
|
@@ -566,7 +582,7 @@ export interface FortnoxSweepResult {
|
|
|
566
582
|
* anything, and a failure on one scope is recorded and stepped over rather than sinking
|
|
567
583
|
* the pass — one vertical's missing grant must not stop another tenant's books syncing.
|
|
568
584
|
*/
|
|
569
|
-
export declare function sweepFortnoxLedger(
|
|
585
|
+
export declare function sweepFortnoxLedger(door: FortnoxConnectionDoor, options: FortnoxPassOptions & {
|
|
570
586
|
period?: {
|
|
571
587
|
from: string;
|
|
572
588
|
to: string;
|
|
@@ -589,7 +605,7 @@ export interface FortnoxScopePoll {
|
|
|
589
605
|
* Poll ONE scope's bindings now — {@link sweepFortnoxLedger} narrowed to the scope, so the same
|
|
590
606
|
* budget, deadline and rate window bound it as bound a pass.
|
|
591
607
|
*/
|
|
592
|
-
export declare function pollFortnoxScope(
|
|
608
|
+
export declare function pollFortnoxScope(door: FortnoxConnectionDoor, scopeId: string, options: FortnoxPassOptions): Promise<FortnoxScopePoll>;
|
|
593
609
|
/**
|
|
594
610
|
* Probe a credential that is not stored yet — the connect-time check (#605).
|
|
595
611
|
*
|
|
@@ -603,13 +619,18 @@ export declare function pollFortnoxScope(host: ScopeHost, connectionId: Connecti
|
|
|
603
619
|
* an operator is most likely to paste wrong.
|
|
604
620
|
*/
|
|
605
621
|
export declare function probeFortnoxSecret(secret: Record<string, string>, options: FortnoxConnectorOptions): Promise<ConnectionProbe>;
|
|
606
|
-
/**
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
622
|
+
/**
|
|
623
|
+
* Probe the credential a live connection already holds. Verifying is itself a use: `conn.fetch` is
|
|
624
|
+
* the platform's, bounded and recorded against the connection.
|
|
625
|
+
*
|
|
626
|
+
* The answer names what the consent covers (`consent`). A probe a person asked for is a fresh check,
|
|
627
|
+
* so the platform records it whenever there is one, rewriting what the console reads: over the call
|
|
628
|
+
* contract the probe answers it as a write of the connection's state ({@link runFortnoxCall}).
|
|
629
|
+
*/
|
|
630
|
+
export declare function probeFortnoxConnection(conn: {
|
|
631
|
+
secret: Readonly<Record<string, string>>;
|
|
632
|
+
fetch: FetchLike;
|
|
633
|
+
}, options: FortnoxPassOptions): Promise<ConnectionProbe>;
|
|
613
634
|
/**
|
|
614
635
|
* What this connection has been doing, for a console — one entry per bound scope.
|
|
615
636
|
*
|
|
@@ -617,7 +638,7 @@ export declare function probeFortnoxConnection(host: ScopeHost, connection: {
|
|
|
617
638
|
* synced", which is the question an operator asks when a figure looks stale, and it
|
|
618
639
|
* answers it without spending a provider round trip.
|
|
619
640
|
*/
|
|
620
|
-
export declare function fortnoxConnectionActivity(
|
|
641
|
+
export declare function fortnoxConnectionActivity(state: Pick<FortnoxConnectionState, 'get' | 'list'>): Promise<ConnectionActivity>;
|
|
621
642
|
/**
|
|
622
643
|
* The stored credential, REDUCED (#605) — identifiers whole, secrets masked.
|
|
623
644
|
*
|
|
@@ -625,10 +646,5 @@ export declare function fortnoxConnectionActivity(host: ScopeHost, connectionId:
|
|
|
625
646
|
* identifier, not a secret — and it is the field an operator most needs to read when a
|
|
626
647
|
* connection syncs the wrong company's books.
|
|
627
648
|
*/
|
|
628
|
-
export declare function fortnoxCredentialSummary(
|
|
629
|
-
tenantId: string;
|
|
630
|
-
vertical: string;
|
|
631
|
-
externalAccountRef?: string | null;
|
|
632
|
-
ownerScopeId?: string | null;
|
|
633
|
-
}): Promise<ConnectionCredential>;
|
|
649
|
+
export declare function fortnoxCredentialSummary(storedSecret: Readonly<Record<string, unknown>>): ConnectionCredential;
|
|
634
650
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAWL,KAAK,kBAAkB,EAEvB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,YAAY,EAElB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAWL,KAAK,kBAAkB,EAEvB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,YAAY,EAElB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAGV,SAAS,EACV,MAAM,sBAAsB,CAAC;AA4B9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQxH,OAAO,EACL,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,EACb,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KA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