@invoiceleaf/integration-sdk 1.6.0 → 2.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/dist/context/IntegrationContext.d.ts +362 -24
- package/dist/context/IntegrationContext.d.ts.map +1 -1
- package/dist/context/types.d.ts +98 -25
- package/dist/context/types.d.ts.map +1 -1
- package/dist/helpers/createAttachmentFingerprint.d.ts +3 -0
- package/dist/helpers/createAttachmentFingerprint.d.ts.map +1 -1
- package/dist/helpers/createAttachmentFingerprint.js +5 -2
- package/dist/helpers/createAttachmentFingerprint.js.map +1 -1
- package/dist/helpers/defineHandler.d.ts +120 -5
- package/dist/helpers/defineHandler.d.ts.map +1 -1
- package/dist/helpers/defineHandler.js +5 -5
- package/dist/helpers/defineHandler.js.map +1 -1
- package/dist/helpers/firstFinite.d.ts +13 -0
- package/dist/helpers/firstFinite.d.ts.map +1 -0
- package/dist/helpers/firstFinite.js +20 -0
- package/dist/helpers/firstFinite.js.map +1 -0
- package/dist/helpers/httpRetry.d.ts +70 -0
- package/dist/helpers/httpRetry.d.ts.map +1 -0
- package/dist/helpers/httpRetry.js +166 -0
- package/dist/helpers/httpRetry.js.map +1 -0
- package/dist/helpers/sha256.d.ts +9 -0
- package/dist/helpers/sha256.d.ts.map +1 -0
- package/dist/helpers/sha256.js +118 -0
- package/dist/helpers/sha256.js.map +1 -0
- package/dist/helpers/toBoundedInt.d.ts +14 -0
- package/dist/helpers/toBoundedInt.d.ts.map +1 -0
- package/dist/helpers/toBoundedInt.js +26 -0
- package/dist/helpers/toBoundedInt.js.map +1 -0
- package/dist/helpers/toDateOnly.d.ts +22 -0
- package/dist/helpers/toDateOnly.d.ts.map +1 -0
- package/dist/helpers/toDateOnly.js +40 -0
- package/dist/helpers/toDateOnly.js.map +1 -0
- package/dist/helpers/toErrorMessage.d.ts +14 -0
- package/dist/helpers/toErrorMessage.d.ts.map +1 -0
- package/dist/helpers/toErrorMessage.js +19 -0
- package/dist/helpers/toErrorMessage.js.map +1 -0
- package/dist/helpers/toFiniteNumber.d.ts +12 -0
- package/dist/helpers/toFiniteNumber.d.ts.map +1 -0
- package/dist/helpers/toFiniteNumber.js +17 -0
- package/dist/helpers/toFiniteNumber.js.map +1 -0
- package/dist/helpers/trimToUndefined.d.ts +12 -0
- package/dist/helpers/trimToUndefined.d.ts.map +1 -0
- package/dist/helpers/trimToUndefined.js +18 -0
- package/dist/helpers/trimToUndefined.js.map +1 -0
- package/dist/index.d.ts +10 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/types/actions.d.ts +2 -0
- package/dist/types/actions.d.ts.map +1 -1
- package/dist/types/invocation.d.ts +1 -1
- package/dist/types/invocation.d.ts.map +1 -1
- package/dist/types/manifest.d.ts +37 -3
- package/dist/types/manifest.d.ts.map +1 -1
- package/dist/types/triggers.d.ts +3 -2
- package/dist/types/triggers.d.ts.map +1 -1
- package/dist/types/triggers.js +1 -1
- package/dist/types/triggers.js.map +1 -1
- package/package.json +16 -9
package/dist/context/types.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export interface Document {
|
|
|
15
15
|
category?: Category;
|
|
16
16
|
/** Tags associated with the document */
|
|
17
17
|
tags?: Tag[];
|
|
18
|
+
/** Space member who owns/uploaded the document */
|
|
19
|
+
member?: DocumentMember;
|
|
18
20
|
/** Description/notes */
|
|
19
21
|
description?: string;
|
|
20
22
|
/** Supplier/vendor company */
|
|
@@ -93,6 +95,8 @@ export interface Document {
|
|
|
93
95
|
errorType?: number;
|
|
94
96
|
/** Error message */
|
|
95
97
|
errorMessage?: string;
|
|
98
|
+
/** Processing/activity log */
|
|
99
|
+
log?: string;
|
|
96
100
|
/** Payment date (ISO string) */
|
|
97
101
|
paymentDate?: string;
|
|
98
102
|
/** Payment method */
|
|
@@ -101,6 +105,8 @@ export interface Document {
|
|
|
101
105
|
paymentStatus?: PaymentStatus;
|
|
102
106
|
/** Invoice series ID */
|
|
103
107
|
invoiceSeriesId?: string;
|
|
108
|
+
/** Template ID used for generating this document */
|
|
109
|
+
templateId?: string;
|
|
104
110
|
/** Tax treatment classification */
|
|
105
111
|
taxTreatment?: string;
|
|
106
112
|
/** Tax system (EU_VAT, US_SALES_TAX) */
|
|
@@ -115,10 +121,18 @@ export interface Document {
|
|
|
115
121
|
taxExemptionReason?: string;
|
|
116
122
|
/** Tax determination status */
|
|
117
123
|
taxDeterminationStatus?: string;
|
|
124
|
+
/** Tax determination trace */
|
|
125
|
+
taxDeterminationTrace?: string;
|
|
118
126
|
/** Line items */
|
|
119
127
|
lineItems?: DocumentLineItem[];
|
|
120
128
|
/** Tax breakdown items */
|
|
121
129
|
taxItems?: DocumentTaxItem[];
|
|
130
|
+
/** Barcodes detected on the document */
|
|
131
|
+
barcodes?: DocumentBarcode[];
|
|
132
|
+
/** ID of the next document in sequence */
|
|
133
|
+
next?: string;
|
|
134
|
+
/** ID of the previous document in sequence */
|
|
135
|
+
previous?: string;
|
|
122
136
|
/** Display name (computed) */
|
|
123
137
|
displayName?: string;
|
|
124
138
|
}
|
|
@@ -135,6 +149,8 @@ export interface Currency {
|
|
|
135
149
|
code: string;
|
|
136
150
|
symbol?: string;
|
|
137
151
|
name?: string;
|
|
152
|
+
/** Number of decimal places (ISO 4217 minor units, e.g. 2 for EUR, 0 for JPY) */
|
|
153
|
+
minorUnits?: number;
|
|
138
154
|
}
|
|
139
155
|
export interface PaymentMethod {
|
|
140
156
|
id: string;
|
|
@@ -142,40 +158,95 @@ export interface PaymentMethod {
|
|
|
142
158
|
}
|
|
143
159
|
export interface DocumentLineItem {
|
|
144
160
|
id?: string;
|
|
145
|
-
|
|
161
|
+
name?: string;
|
|
162
|
+
lineIdentifier?: string;
|
|
163
|
+
itemSellerIdentifier?: string;
|
|
164
|
+
unitCode?: string;
|
|
146
165
|
quantity?: number;
|
|
147
|
-
|
|
166
|
+
/** Tax rate as a percentage in range 0–100 (e.g. 19 for 19% VAT) */
|
|
167
|
+
taxPercentage?: number;
|
|
168
|
+
/** Price per unit (before tax) */
|
|
169
|
+
unitAmount?: number;
|
|
170
|
+
/** Line net amount before tax: quantity * unitAmount */
|
|
148
171
|
netAmount?: number;
|
|
172
|
+
/** Tax amount for this line: netAmount * (taxPercentage / 100) */
|
|
149
173
|
taxAmount?: number;
|
|
174
|
+
/** Line total including tax: netAmount + taxAmount */
|
|
150
175
|
totalAmount?: number;
|
|
176
|
+
lineDiscount?: number;
|
|
177
|
+
lineDiscountReason?: string;
|
|
151
178
|
}
|
|
152
179
|
export interface DocumentTaxItem {
|
|
153
180
|
id?: string;
|
|
154
|
-
|
|
155
|
-
|
|
181
|
+
/** Display name of the tax (e.g. "VAT", "GST 10%") */
|
|
182
|
+
name?: string;
|
|
183
|
+
/** Tax rate as a percentage in range 0–100 (e.g. 19 for 19% VAT) */
|
|
184
|
+
taxPercentage?: number;
|
|
185
|
+
/** Taxable base amount before tax (i.e. the net/subtotal this tax applies to) */
|
|
186
|
+
netAmount?: number;
|
|
187
|
+
/** Computed tax amount: netAmount * (taxPercentage / 100) */
|
|
156
188
|
taxAmount?: number;
|
|
157
|
-
|
|
189
|
+
/** Total tax collected across all line items for this tax rate (may differ from taxAmount for multi-line documents) */
|
|
190
|
+
totalTax?: number;
|
|
191
|
+
/** Tax role in accounting (e.g. "INVOICE_TAX", "SELF_ASSESSED_PAYABLE", "SELF_ASSESSED_RECOVERABLE", "IMPORT_TAX", "USE_TAX", "WITHHOLDING") */
|
|
192
|
+
taxRole?: string;
|
|
193
|
+
/** Reference to the tax jurisdiction/registration this tax applies to */
|
|
194
|
+
taxJurisdictionId?: string;
|
|
195
|
+
/** Source of the tax rate (e.g. "MANUAL", "PROVIDER", "RULESET", "AUTHORITY", "DOCUMENT", "UNKNOWN") */
|
|
196
|
+
rateSource?: string;
|
|
197
|
+
}
|
|
198
|
+
export interface DocumentBarcode {
|
|
199
|
+
/** Barcode category identifier for internal classification */
|
|
200
|
+
code?: string;
|
|
201
|
+
type?: string;
|
|
202
|
+
rawCode?: string;
|
|
203
|
+
}
|
|
204
|
+
export interface DocumentMember {
|
|
205
|
+
uid?: string;
|
|
206
|
+
firstname?: string;
|
|
207
|
+
lastname?: string;
|
|
208
|
+
email?: string;
|
|
209
|
+
imageUrl?: string;
|
|
210
|
+
deleted?: boolean;
|
|
211
|
+
/** Computed display name */
|
|
212
|
+
displayName?: string;
|
|
213
|
+
/** Computed initials */
|
|
214
|
+
initials?: string;
|
|
158
215
|
}
|
|
159
216
|
export interface Company {
|
|
160
217
|
id: string;
|
|
161
|
-
|
|
218
|
+
space?: {
|
|
219
|
+
id: string;
|
|
220
|
+
};
|
|
221
|
+
userId?: string;
|
|
222
|
+
deleted?: boolean;
|
|
223
|
+
lastUpdate: number;
|
|
224
|
+
created: number;
|
|
162
225
|
name: string;
|
|
163
226
|
displayName?: string;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
phone?: string;
|
|
167
|
-
website?: string;
|
|
168
|
-
address?: Address;
|
|
169
|
-
metadata?: Record<string, unknown>;
|
|
170
|
-
createdAt: string;
|
|
171
|
-
updatedAt: string;
|
|
172
|
-
}
|
|
173
|
-
export interface Address {
|
|
227
|
+
country?: string;
|
|
228
|
+
countryIso?: string;
|
|
174
229
|
street?: string;
|
|
175
|
-
|
|
230
|
+
addressLine2?: string;
|
|
176
231
|
state?: string;
|
|
177
|
-
|
|
178
|
-
|
|
232
|
+
zip?: string;
|
|
233
|
+
city?: string;
|
|
234
|
+
contactPerson?: string;
|
|
235
|
+
email?: string;
|
|
236
|
+
phone?: string;
|
|
237
|
+
fax?: string;
|
|
238
|
+
taxNumber?: string;
|
|
239
|
+
vatId?: string;
|
|
240
|
+
commercialRegister?: string;
|
|
241
|
+
electronicAddress?: string;
|
|
242
|
+
electronicAddressScheme?: string;
|
|
243
|
+
iban?: string;
|
|
244
|
+
bic?: string;
|
|
245
|
+
url?: string;
|
|
246
|
+
icon?: string;
|
|
247
|
+
billingAddress?: boolean;
|
|
248
|
+
supplier?: number;
|
|
249
|
+
receiver?: number;
|
|
179
250
|
}
|
|
180
251
|
export interface Category {
|
|
181
252
|
id: string;
|
|
@@ -183,7 +254,7 @@ export interface Category {
|
|
|
183
254
|
name: string;
|
|
184
255
|
color?: string;
|
|
185
256
|
icon?: string;
|
|
186
|
-
parentId?: string;
|
|
257
|
+
parentId?: string | null;
|
|
187
258
|
documentCount?: number;
|
|
188
259
|
createdAt: string;
|
|
189
260
|
updatedAt: string;
|
|
@@ -193,7 +264,6 @@ export interface Tag {
|
|
|
193
264
|
spaceId: string;
|
|
194
265
|
name: string;
|
|
195
266
|
color?: string;
|
|
196
|
-
documentCount?: number;
|
|
197
267
|
createdAt: string;
|
|
198
268
|
updatedAt: string;
|
|
199
269
|
}
|
|
@@ -215,24 +285,27 @@ export interface ListParams {
|
|
|
215
285
|
/** Filter by specific IDs */
|
|
216
286
|
ids?: string[];
|
|
217
287
|
page?: number;
|
|
218
|
-
|
|
288
|
+
/** Items per page (backend parameter name) */
|
|
289
|
+
limit?: number;
|
|
219
290
|
sortBy?: string;
|
|
220
291
|
sortDirection?: 'asc' | 'desc';
|
|
292
|
+
/** Search/filter query (e.g. company name search) */
|
|
293
|
+
query?: string;
|
|
221
294
|
}
|
|
222
295
|
export interface DocumentListParams extends ListParams {
|
|
223
296
|
status?: DocumentStatus;
|
|
224
297
|
companyId?: string;
|
|
225
298
|
categoryId?: string;
|
|
226
299
|
tagIds?: string[];
|
|
227
|
-
|
|
228
|
-
|
|
300
|
+
startDate?: number;
|
|
301
|
+
endDate?: number;
|
|
229
302
|
search?: string;
|
|
230
303
|
}
|
|
231
304
|
export interface ListResult<T> {
|
|
232
305
|
items: T[];
|
|
233
306
|
total: number;
|
|
234
307
|
page: number;
|
|
235
|
-
|
|
308
|
+
limit: number;
|
|
236
309
|
hasMore: boolean;
|
|
237
310
|
}
|
|
238
311
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.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ACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC/B,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACpD,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;CAClB"}
|
|
@@ -6,6 +6,9 @@ export interface AttachmentFingerprintInput {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Builds a deterministic fingerprint used for dedupe/checkpoint keys.
|
|
9
|
+
*
|
|
10
|
+
* Uses a pure-JS SHA-256 so this module stays loadable in plugin isolates,
|
|
11
|
+
* which have no Node builtins (`node:crypto` would break the neutral bundle).
|
|
9
12
|
*/
|
|
10
13
|
export declare function createAttachmentFingerprint(input: AttachmentFingerprintInput): string;
|
|
11
14
|
//# sourceMappingURL=createAttachmentFingerprint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAttachmentFingerprint.d.ts","sourceRoot":"","sources":["../../src/helpers/createAttachmentFingerprint.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,0BAA0B;IACzC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED
|
|
1
|
+
{"version":3,"file":"createAttachmentFingerprint.d.ts","sourceRoot":"","sources":["../../src/helpers/createAttachmentFingerprint.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,0BAA0B;IACzC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,0BAA0B,GAAG,MAAM,CASrF"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { sha256Hex } from './sha256.js';
|
|
2
2
|
/**
|
|
3
3
|
* Builds a deterministic fingerprint used for dedupe/checkpoint keys.
|
|
4
|
+
*
|
|
5
|
+
* Uses a pure-JS SHA-256 so this module stays loadable in plugin isolates,
|
|
6
|
+
* which have no Node builtins (`node:crypto` would break the neutral bundle).
|
|
4
7
|
*/
|
|
5
8
|
export function createAttachmentFingerprint(input) {
|
|
6
9
|
const material = [
|
|
@@ -9,6 +12,6 @@ export function createAttachmentFingerprint(input) {
|
|
|
9
12
|
input.size != null ? String(input.size) : '',
|
|
10
13
|
input.sha256 || '',
|
|
11
14
|
].join(':');
|
|
12
|
-
return
|
|
15
|
+
return sha256Hex(material);
|
|
13
16
|
}
|
|
14
17
|
//# sourceMappingURL=createAttachmentFingerprint.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAttachmentFingerprint.js","sourceRoot":"","sources":["../../src/helpers/createAttachmentFingerprint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"createAttachmentFingerprint.js","sourceRoot":"","sources":["../../src/helpers/createAttachmentFingerprint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AASxC;;;;;GAKG;AACH,MAAM,UAAU,2BAA2B,CAAC,KAAiC;IAC3E,MAAM,QAAQ,GAAG;QACf,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC;QACjB,KAAK,CAAC,QAAQ;QACd,KAAK,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE;QAC5C,KAAK,CAAC,MAAM,IAAI,EAAE;KACnB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAEZ,OAAO,SAAS,CAAC,QAAQ,CAAC,CAAC;AAC7B,CAAC"}
|
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
import type { IntegrationContext } from '../context/IntegrationContext.js';
|
|
2
|
+
/**
|
|
3
|
+
* Standard base result shape that all integration handlers should return.
|
|
4
|
+
*
|
|
5
|
+
* Integrations are free to extend this interface with domain-specific fields
|
|
6
|
+
* (e.g. `documentId`, `synced`, `failures`), but every handler result should
|
|
7
|
+
* at minimum include `success` so the runtime can determine outcome without
|
|
8
|
+
* inspecting opaque payloads.
|
|
9
|
+
*/
|
|
10
|
+
export interface HandlerResult {
|
|
11
|
+
/** Whether the handler completed successfully. */
|
|
12
|
+
success: boolean;
|
|
13
|
+
/** Human-readable summary (present on success or failure). */
|
|
14
|
+
message?: string;
|
|
15
|
+
/** Error description when `success` is false. */
|
|
16
|
+
error?: string;
|
|
17
|
+
/** If true the handler intentionally did no work (e.g. notification disabled). */
|
|
18
|
+
skipped?: boolean;
|
|
19
|
+
/** Machine-readable reason code when `skipped` is true. */
|
|
20
|
+
reason?: string;
|
|
21
|
+
/** Arbitrary structured details the caller may inspect. */
|
|
22
|
+
details?: Record<string, unknown>;
|
|
23
|
+
}
|
|
2
24
|
/**
|
|
3
25
|
* Handler function type.
|
|
4
26
|
*/
|
|
@@ -28,8 +50,8 @@ export type IntegrationHandler<TInput = unknown, TOutput = unknown, TConfig = Re
|
|
|
28
50
|
* @example
|
|
29
51
|
* ```typescript
|
|
30
52
|
* interface ExportInput {
|
|
31
|
-
*
|
|
32
|
-
*
|
|
53
|
+
* startDate: number;
|
|
54
|
+
* endDate: number;
|
|
33
55
|
* format: 'csv' | 'xml';
|
|
34
56
|
* }
|
|
35
57
|
*
|
|
@@ -40,11 +62,11 @@ export type IntegrationHandler<TInput = unknown, TOutput = unknown, TConfig = Re
|
|
|
40
62
|
*
|
|
41
63
|
* export const exportToDATEV = defineHandler<ExportInput, ExportOutput>(
|
|
42
64
|
* async (input, context) => {
|
|
43
|
-
* context.logger.info('Starting export', {
|
|
65
|
+
* context.logger.info('Starting export', { startDate: input.startDate });
|
|
44
66
|
*
|
|
45
67
|
* const documents = await context.data.listDocuments({
|
|
46
|
-
*
|
|
47
|
-
*
|
|
68
|
+
* startDate: input.startDate,
|
|
69
|
+
* endDate: input.endDate,
|
|
48
70
|
* });
|
|
49
71
|
*
|
|
50
72
|
* const exportResult = await context.data.createExport({
|
|
@@ -63,6 +85,10 @@ export type IntegrationHandler<TInput = unknown, TOutput = unknown, TConfig = Re
|
|
|
63
85
|
export declare function defineHandler<TInput = unknown, TOutput = unknown, TConfig = Record<string, unknown>>(handler: HandlerFunction<TInput, TOutput, TConfig>): HandlerFunction<TInput, TOutput, TConfig>;
|
|
64
86
|
/**
|
|
65
87
|
* Event handler input types for built-in events.
|
|
88
|
+
*
|
|
89
|
+
* Each input shape matches the normalized payload produced by the backend
|
|
90
|
+
* IntegrationEventDispatcher.normalizeEventPayload(). All event payloads
|
|
91
|
+
* include a `spaceId` field identifying the workspace where the event occurred.
|
|
66
92
|
*/
|
|
67
93
|
export interface DocumentCreatedInput {
|
|
68
94
|
documentId: string;
|
|
@@ -73,6 +99,7 @@ export interface DocumentCreatedInput {
|
|
|
73
99
|
companyId?: string;
|
|
74
100
|
categoryId?: string;
|
|
75
101
|
};
|
|
102
|
+
spaceId: string;
|
|
76
103
|
}
|
|
77
104
|
export interface DocumentUpdatedInput {
|
|
78
105
|
documentId: string;
|
|
@@ -82,6 +109,7 @@ export interface DocumentUpdatedInput {
|
|
|
82
109
|
status: string;
|
|
83
110
|
};
|
|
84
111
|
changes: string[];
|
|
112
|
+
spaceId: string;
|
|
85
113
|
}
|
|
86
114
|
export interface DocumentProcessedInput {
|
|
87
115
|
documentId: string;
|
|
@@ -93,9 +121,23 @@ export interface DocumentProcessedInput {
|
|
|
93
121
|
totalAmount?: number;
|
|
94
122
|
currency?: string;
|
|
95
123
|
};
|
|
124
|
+
spaceId: string;
|
|
96
125
|
}
|
|
97
126
|
export interface DocumentDeletedInput {
|
|
98
127
|
documentId: string;
|
|
128
|
+
spaceId: string;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Generic document event input for sync-on-event handlers.
|
|
132
|
+
* Supports both direct invocation (`documentId` at top level)
|
|
133
|
+
* and event payload shape (`document.id` nested).
|
|
134
|
+
*/
|
|
135
|
+
export interface DocumentEventInput {
|
|
136
|
+
documentId?: string;
|
|
137
|
+
document?: {
|
|
138
|
+
id?: string;
|
|
139
|
+
};
|
|
140
|
+
spaceId?: string;
|
|
99
141
|
}
|
|
100
142
|
export interface CompanyCreatedInput {
|
|
101
143
|
companyId: string;
|
|
@@ -104,6 +146,60 @@ export interface CompanyCreatedInput {
|
|
|
104
146
|
name: string;
|
|
105
147
|
taxId?: string;
|
|
106
148
|
};
|
|
149
|
+
spaceId: string;
|
|
150
|
+
}
|
|
151
|
+
export interface CompanyUpdatedInput {
|
|
152
|
+
companyId: string;
|
|
153
|
+
company: {
|
|
154
|
+
id: string;
|
|
155
|
+
name: string;
|
|
156
|
+
taxId?: string;
|
|
157
|
+
};
|
|
158
|
+
spaceId: string;
|
|
159
|
+
}
|
|
160
|
+
export interface CompanyDeletedInput {
|
|
161
|
+
companyId: string;
|
|
162
|
+
spaceId: string;
|
|
163
|
+
}
|
|
164
|
+
export interface TagCreatedInput {
|
|
165
|
+
tagId: string;
|
|
166
|
+
tag: {
|
|
167
|
+
id: string;
|
|
168
|
+
name: string;
|
|
169
|
+
};
|
|
170
|
+
spaceId: string;
|
|
171
|
+
}
|
|
172
|
+
export interface TagUpdatedInput {
|
|
173
|
+
tagId: string;
|
|
174
|
+
tag: {
|
|
175
|
+
id: string;
|
|
176
|
+
name: string;
|
|
177
|
+
};
|
|
178
|
+
spaceId: string;
|
|
179
|
+
}
|
|
180
|
+
export interface TagDeletedInput {
|
|
181
|
+
tagId: string;
|
|
182
|
+
spaceId: string;
|
|
183
|
+
}
|
|
184
|
+
export interface CategoryCreatedInput {
|
|
185
|
+
categoryId: string;
|
|
186
|
+
category: {
|
|
187
|
+
id: string;
|
|
188
|
+
name: string;
|
|
189
|
+
};
|
|
190
|
+
spaceId: string;
|
|
191
|
+
}
|
|
192
|
+
export interface CategoryUpdatedInput {
|
|
193
|
+
categoryId: string;
|
|
194
|
+
category: {
|
|
195
|
+
id: string;
|
|
196
|
+
name: string;
|
|
197
|
+
};
|
|
198
|
+
spaceId: string;
|
|
199
|
+
}
|
|
200
|
+
export interface CategoryDeletedInput {
|
|
201
|
+
categoryId: string;
|
|
202
|
+
spaceId: string;
|
|
107
203
|
}
|
|
108
204
|
export interface ExportCompletedInput {
|
|
109
205
|
exportId: string;
|
|
@@ -114,6 +210,7 @@ export interface ExportCompletedInput {
|
|
|
114
210
|
downloadUrl?: string;
|
|
115
211
|
documentCount?: number;
|
|
116
212
|
};
|
|
213
|
+
spaceId: string;
|
|
117
214
|
}
|
|
118
215
|
export interface ReminderTriggeredInput {
|
|
119
216
|
reminderId: string;
|
|
@@ -129,6 +226,24 @@ export interface ReminderTriggeredInput {
|
|
|
129
226
|
aiMode?: 'off' | 'light_rewrite' | 'tool_enabled' | string;
|
|
130
227
|
};
|
|
131
228
|
}
|
|
229
|
+
export interface SpaceMemberAddedInput {
|
|
230
|
+
memberId: string;
|
|
231
|
+
member: {
|
|
232
|
+
id: string;
|
|
233
|
+
userId?: string;
|
|
234
|
+
role?: string;
|
|
235
|
+
};
|
|
236
|
+
spaceId: string;
|
|
237
|
+
}
|
|
238
|
+
export interface SpaceMemberRemovedInput {
|
|
239
|
+
memberId: string;
|
|
240
|
+
member: {
|
|
241
|
+
id: string;
|
|
242
|
+
userId?: string;
|
|
243
|
+
role?: string;
|
|
244
|
+
};
|
|
245
|
+
spaceId: string;
|
|
246
|
+
}
|
|
132
247
|
export interface WebhookInput {
|
|
133
248
|
headers: Record<string, string>;
|
|
134
249
|
body: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defineHandler.d.ts","sourceRoot":"","sources":["../../src/helpers/defineHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"defineHandler.d.ts","sourceRoot":"","sources":["../../src/helpers/defineHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAM3E;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B,kDAAkD;IAClD,OAAO,EAAE,OAAO,CAAC;IACjB,8DAA8D;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kFAAkF;IAClF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2DAA2D;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAMD;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,MAAM,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CACpG,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,kBAAkB,CAAC,OAAO,CAAC,KACjC,OAAO,CAAC,OAAO,CAAC,C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
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* startDate: number;
|
|
8
|
+
* endDate: number;
|
|
9
9
|
* format: 'csv' | 'xml';
|
|
10
10
|
* }
|
|
11
11
|
*
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
*
|
|
17
17
|
* export const exportToDATEV = defineHandler<ExportInput, ExportOutput>(
|
|
18
18
|
* async (input, context) => {
|
|
19
|
-
* context.logger.info('Starting export', {
|
|
19
|
+
* context.logger.info('Starting export', { startDate: input.startDate });
|
|
20
20
|
*
|
|
21
21
|
* const documents = await context.data.listDocuments({
|
|
22
|
-
*
|
|
23
|
-
*
|
|
22
|
+
* startDate: input.startDate,
|
|
23
|
+
* endDate: input.endDate,
|
|
24
24
|
* });
|
|
25
25
|
*
|
|
26
26
|
* const exportResult = await context.data.createExport({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defineHandler.js","sourceRoot":"","sources":["../../src/helpers/defineHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"defineHandler.js","sourceRoot":"","sources":["../../src/helpers/defineHandler.ts"],"names":[],"mappings":"AAgEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,UAAU,aAAa,CAC3B,OAAkD;IAElD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the first finite number from the provided values, or `undefined` if none are finite.
|
|
3
|
+
*
|
|
4
|
+
* Useful for picking the best available numeric value from multiple optional sources
|
|
5
|
+
* (e.g. totalAmount, netAmount, amountDue).
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* firstFinite(item.totalAmount, item.netAmount, 0); // => first finite value
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare function firstFinite(...values: Array<number | undefined>): number | undefined;
|
|
13
|
+
//# sourceMappingURL=firstFinite.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firstFinite.d.ts","sourceRoot":"","sources":["../../src/helpers/firstFinite.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,GAAG,MAAM,GAAG,SAAS,CAOpF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the first finite number from the provided values, or `undefined` if none are finite.
|
|
3
|
+
*
|
|
4
|
+
* Useful for picking the best available numeric value from multiple optional sources
|
|
5
|
+
* (e.g. totalAmount, netAmount, amountDue).
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* firstFinite(item.totalAmount, item.netAmount, 0); // => first finite value
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export function firstFinite(...values) {
|
|
13
|
+
for (const value of values) {
|
|
14
|
+
if (Number.isFinite(value)) {
|
|
15
|
+
return value;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=firstFinite.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firstFinite.js","sourceRoot":"","sources":["../../src/helpers/firstFinite.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,UAAU,WAAW,CAAC,GAAG,MAAiC;IAC9D,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3B,OAAO,KAAe,CAAC;QACzB,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared HTTP retry logic for integration API clients.
|
|
3
|
+
*
|
|
4
|
+
* All integration clients share identical retry semantics:
|
|
5
|
+
* - GET requests retry on 429 / 500 / 502 / 503 / 504 and network errors.
|
|
6
|
+
* - Mutating requests (POST / PUT / DELETE) only retry on 429 (rate-limit).
|
|
7
|
+
* - Exponential backoff capped at 2 000 ms, up to 3 attempts.
|
|
8
|
+
* - Per-request timeout with AbortController.
|
|
9
|
+
*/
|
|
10
|
+
/** Status codes safe to retry for idempotent (GET) requests. */
|
|
11
|
+
export declare const RETRYABLE_STATUSES: Set<number>;
|
|
12
|
+
/** Status codes safe to retry for mutating (POST/PUT/DELETE) requests. */
|
|
13
|
+
export declare const SAFE_RETRY_STATUSES_FOR_MUTATING: Set<number>;
|
|
14
|
+
/** Default maximum number of request attempts. */
|
|
15
|
+
export declare const DEFAULT_MAX_REQUEST_ATTEMPTS = 3;
|
|
16
|
+
/** Default per-request timeout in milliseconds. */
|
|
17
|
+
export declare const DEFAULT_REQUEST_TIMEOUT_MS = 30000;
|
|
18
|
+
/**
|
|
19
|
+
* Returns exponential-backoff delay for the given attempt, capped at 2 000 ms.
|
|
20
|
+
*
|
|
21
|
+
* Attempt 1 → 250 ms, attempt 2 → 500 ms, attempt 3+ → 2 000 ms.
|
|
22
|
+
*/
|
|
23
|
+
export declare function backoffMs(attempt: number): number;
|
|
24
|
+
/** Promise-based sleep. */
|
|
25
|
+
export declare function sleep(ms: number): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Options for {@link requestWithRetry} and {@link requestResponseWithRetry}.
|
|
28
|
+
*/
|
|
29
|
+
export interface RequestWithRetryOptions {
|
|
30
|
+
/** HTTP method — determines whether the request is treated as idempotent. */
|
|
31
|
+
method?: string;
|
|
32
|
+
/** Maximum number of attempts (default: 3). */
|
|
33
|
+
maxAttempts?: number;
|
|
34
|
+
/** Per-request timeout in milliseconds (default: 30 000). */
|
|
35
|
+
timeoutMs?: number;
|
|
36
|
+
/** Whether to include the response body in thrown errors (default: true). */
|
|
37
|
+
includeBodyInError?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Factory that turns a failed HTTP response into an error instance.
|
|
40
|
+
* If not provided, a generic `Error` is thrown.
|
|
41
|
+
*/
|
|
42
|
+
createError?: (message: string, status: number, responseBody: string) => Error & {
|
|
43
|
+
status: number;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Whether the request is semantically idempotent, regardless of HTTP method.
|
|
47
|
+
* Overrides the default GET-based heuristic. Useful for APIs like Dropbox
|
|
48
|
+
* that use POST for read operations.
|
|
49
|
+
*/
|
|
50
|
+
idempotent?: boolean;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Executes an HTTP request with retry, backoff, and timeout.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const data = await requestWithRetry<MyResponse>(url, init, {
|
|
58
|
+
* method: 'POST',
|
|
59
|
+
* createError: (msg, status, body) => new MyApiError(msg, status, body),
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
export declare function requestWithRetry<T>(url: string, init: RequestInit, options?: RequestWithRetryOptions): Promise<T>;
|
|
64
|
+
/**
|
|
65
|
+
* Like {@link requestWithRetry}, but returns the raw `Response` instead of
|
|
66
|
+
* parsing JSON. Useful for binary downloads where the caller needs to read
|
|
67
|
+
* headers or stream the body.
|
|
68
|
+
*/
|
|
69
|
+
export declare function requestResponseWithRetry(url: string, init: RequestInit, options?: RequestWithRetryOptions): Promise<Response>;
|
|
70
|
+
//# sourceMappingURL=httpRetry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpRetry.d.ts","sourceRoot":"","sources":["../../src/helpers/httpRetry.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,gEAAgE;AAChE,eAAO,MAAM,kBAAkB,aAAqC,CAAC;AAErE,0EAA0E;AAC1E,eAAO,MAAM,gCAAgC,aAAiB,CAAC;AAE/D,kDAAkD;AAClD,e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