@rowbind/sdk 0.0.0-stage → 0.1.0-alpha.1
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 +537 -2
- package/dist/generated/catalog.d.ts +22 -0
- package/dist/generated/catalog.js +7 -0
- package/dist/generated/http.d.ts +1740 -0
- package/dist/generated/http.js +843 -0
- package/dist/generated/raw.d.ts +39 -0
- package/dist/generated/raw.js +14 -0
- package/dist/generated/validators.d.ts +1411 -0
- package/dist/generated/validators.js +993 -0
- package/dist/http-error.d.ts +5 -0
- package/dist/http-error.js +2 -0
- package/dist/http-request.d.ts +17 -0
- package/dist/http-request.js +73 -0
- package/dist/index.d.ts +622 -0
- package/dist/index.js +256 -0
- package/dist/inputs.d.ts +145 -0
- package/dist/inputs.js +46 -0
- package/dist/ledger.d.ts +98 -0
- package/dist/ledger.js +218 -0
- package/dist/raw-invoice-query.d.ts +2 -0
- package/dist/raw-invoice-query.js +10 -0
- package/dist/transport.d.ts +344 -0
- package/dist/transport.js +276 -0
- package/dist/wire.d.ts +16 -0
- package/dist/wire.js +8 -0
- package/examples/catalog-invoice.mts +30 -0
- package/examples/connection-health.mts +21 -0
- package/examples/department-quickbooks/example.mts +12 -0
- package/examples/department-quickbooks/tsconfig.json +4 -0
- package/examples/facturar.mts +34 -0
- package/examples/first-customer.mts +72 -0
- package/examples/invoice-balances.mts +60 -0
- package/examples/invoice-settlement.mts +86 -0
- package/examples/invoice-sync.mts +46 -0
- package/examples/invoice-traces.mts +65 -0
- package/examples/invoice.mts +27 -0
- package/examples/mixed-providers/example.mts +12 -0
- package/examples/mixed-providers/tsconfig.json +4 -0
- package/examples/native-query.mts +28 -0
- package/examples/native-quickstart.mts +46 -0
- package/examples/observed-payments.mts +29 -0
- package/examples/quickstart.mts +11 -0
- package/examples/reimbursement-batch.mts +36 -0
- package/examples/resume-invoice.mts +52 -0
- package/examples/tsconfig.editor.json +11 -0
- package/examples/webhook-receiver.mts +142 -0
- package/package.json +78 -4
|
@@ -0,0 +1,1411 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Rowbind Integration API
|
|
5
|
+
* Authenticate from the SaaS backend with its project key. The sandbox Worker supports companies, consent, invoices, received payments, credit memos, reimbursement batches, managed invoice and received-payment sync, payment matching, and signed notifications in simulated books. The standalone pilot supports connections, invoices and operation receipts.
|
|
6
|
+
* OpenAPI spec version: 0.2.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from 'zod';
|
|
9
|
+
/**
|
|
10
|
+
* Requires catalog:read. Search by a literal substring of the display name, item SKU or native ID. Enrolled books refresh active customers and sale items automatically. Each completed scan replaces the previous results for that record type. Up to 50 candidates are returned in native ID order. Identical names can identify different records. Continue with nextCursor and the same book, kind and query. Simulated books include sample records. For an enrolled connector the operator imports the catalog for its exact book and target fingerprint.
|
|
11
|
+
* @summary Find native customers or items in a connected sandbox book
|
|
12
|
+
*/
|
|
13
|
+
export declare const searchCatalogPathIdMin = 1;
|
|
14
|
+
export declare const SearchCatalogParams: zod.ZodObject<{
|
|
15
|
+
id: zod.ZodString;
|
|
16
|
+
kind: zod.ZodEnum<{
|
|
17
|
+
customer: "customer";
|
|
18
|
+
item: "item";
|
|
19
|
+
}>;
|
|
20
|
+
}, zod.z.core.$strip>;
|
|
21
|
+
export declare const searchCatalogQueryQueryMin = 1;
|
|
22
|
+
export declare const searchCatalogQueryQueryMax = 200;
|
|
23
|
+
export declare const searchCatalogQueryQueryRegExp: RegExp;
|
|
24
|
+
export declare const searchCatalogQueryAfterMin = 1;
|
|
25
|
+
export declare const SearchCatalogQueryParams: zod.ZodObject<{
|
|
26
|
+
query: zod.ZodString;
|
|
27
|
+
after: zod.ZodExactOptional<zod.ZodString>;
|
|
28
|
+
}, zod.z.core.$strict>;
|
|
29
|
+
export declare const searchCatalogResponseRecordsItemNativeIdMin = 1;
|
|
30
|
+
export declare const searchCatalogResponseRecordsItemDisplayNameMin = 1;
|
|
31
|
+
export declare const searchCatalogResponseRecordsItemSkuMin = 1;
|
|
32
|
+
export declare const searchCatalogResponseRecordsMax = 50;
|
|
33
|
+
export declare const searchCatalogResponseNextCursorMin = 1;
|
|
34
|
+
export declare const SearchCatalogResponse: zod.ZodObject<{
|
|
35
|
+
records: zod.ZodArray<zod.ZodObject<{
|
|
36
|
+
nativeId: zod.ZodString;
|
|
37
|
+
displayName: zod.ZodString;
|
|
38
|
+
sku: zod.ZodExactOptional<zod.ZodString>;
|
|
39
|
+
}, zod.z.core.$strip>>;
|
|
40
|
+
nextCursor: zod.ZodNullable<zod.ZodString>;
|
|
41
|
+
}, zod.z.core.$strip>;
|
|
42
|
+
/**
|
|
43
|
+
* Requires invoices:write. Select a native ID from the same book and catalog kind. An identical replay returns the original link. An existing link cannot be reassigned. Use the externalId as customerRef.externalId or itemRef.externalId on invoice creation. For an enrolled connector the selected native IDs are pinned at invoice admission and checked again on ERP readback.
|
|
44
|
+
* @summary Link a SaaS reference to a native customer or item
|
|
45
|
+
*/
|
|
46
|
+
export declare const linkCatalogPathIdMin = 1;
|
|
47
|
+
export declare const LinkCatalogParams: zod.ZodObject<{
|
|
48
|
+
id: zod.ZodString;
|
|
49
|
+
kind: zod.ZodEnum<{
|
|
50
|
+
customer: "customer";
|
|
51
|
+
item: "item";
|
|
52
|
+
}>;
|
|
53
|
+
}, zod.z.core.$strip>;
|
|
54
|
+
export declare const linkCatalogBodyExternalIdMin = 1;
|
|
55
|
+
export declare const linkCatalogBodyExternalIdMax = 200;
|
|
56
|
+
export declare const linkCatalogBodyExternalIdRegExp: RegExp;
|
|
57
|
+
export declare const linkCatalogBodyNativeIdMin = 1;
|
|
58
|
+
export declare const linkCatalogBodyNativeIdMax = 200;
|
|
59
|
+
export declare const linkCatalogBodyNativeIdRegExp: RegExp;
|
|
60
|
+
export declare const LinkCatalogBody: zod.ZodObject<{
|
|
61
|
+
externalId: zod.ZodString;
|
|
62
|
+
nativeId: zod.ZodString;
|
|
63
|
+
}, zod.z.core.$strict>;
|
|
64
|
+
export declare const linkCatalogResponseExternalIdMin = 1;
|
|
65
|
+
export declare const linkCatalogResponseNativeIdMin = 1;
|
|
66
|
+
export declare const LinkCatalogResponse: zod.ZodObject<{
|
|
67
|
+
kind: zod.ZodEnum<{
|
|
68
|
+
customer: "customer";
|
|
69
|
+
item: "item";
|
|
70
|
+
}>;
|
|
71
|
+
externalId: zod.ZodString;
|
|
72
|
+
nativeId: zod.ZodString;
|
|
73
|
+
}, zod.z.core.$strip>;
|
|
74
|
+
/**
|
|
75
|
+
* Requires raw:query. Submit a read-only qbXML query fragment or SuiteQL query for the selected provider. Supported queries depend on the connector. Returns one native XML response or a page of SuiteQL rows. Request the next page explicitly using the same query and limit.
|
|
76
|
+
* @summary Query an authorized book in its native language
|
|
77
|
+
*/
|
|
78
|
+
export declare const queryRawPathIdMin = 1;
|
|
79
|
+
export declare const QueryRawParams: zod.ZodObject<{
|
|
80
|
+
id: zod.ZodString;
|
|
81
|
+
}, zod.z.core.$strip>;
|
|
82
|
+
export declare const queryRawBodyOneQbxmlMin = 1;
|
|
83
|
+
export declare const queryRawBodyOneQbxmlMax = 4096;
|
|
84
|
+
export declare const queryRawBodyTwoQMin = 1;
|
|
85
|
+
export declare const queryRawBodyTwoQMax = 4096;
|
|
86
|
+
export declare const queryRawBodyTwoLimitMin = 1;
|
|
87
|
+
export declare const queryRawBodyTwoLimitMax = 100;
|
|
88
|
+
export declare const queryRawBodyTwoOffsetMin = 0;
|
|
89
|
+
export declare const queryRawBodyTwoOffsetMax = 1000000;
|
|
90
|
+
export declare const QueryRawBody: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
91
|
+
provider: zod.ZodEnum<{
|
|
92
|
+
quickbooksDesktop: "quickbooksDesktop";
|
|
93
|
+
}>;
|
|
94
|
+
qbxml: zod.ZodString;
|
|
95
|
+
}, zod.z.core.$strict>, zod.ZodObject<{
|
|
96
|
+
provider: zod.ZodEnum<{
|
|
97
|
+
netsuite: "netsuite";
|
|
98
|
+
}>;
|
|
99
|
+
q: zod.ZodString;
|
|
100
|
+
limit: zod.ZodExactOptional<zod.ZodInt>;
|
|
101
|
+
offset: zod.ZodExactOptional<zod.ZodInt>;
|
|
102
|
+
}, zod.z.core.$strict>]>;
|
|
103
|
+
export declare const queryRawResponseOneQbxmlMin = 1;
|
|
104
|
+
export declare const queryRawResponseTwoPageItemsMax = 100;
|
|
105
|
+
export declare const queryRawResponseTwoPageCountMin = 0;
|
|
106
|
+
export declare const queryRawResponseTwoPageCountMax = 100;
|
|
107
|
+
export declare const queryRawResponseTwoPageOffsetMin = 0;
|
|
108
|
+
export declare const queryRawResponseTwoPageTotalResultsMin = 0;
|
|
109
|
+
export declare const QueryRawResponse: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
110
|
+
provider: zod.ZodEnum<{
|
|
111
|
+
quickbooksDesktop: "quickbooksDesktop";
|
|
112
|
+
}>;
|
|
113
|
+
qbxml: zod.ZodString;
|
|
114
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
115
|
+
provider: zod.ZodEnum<{
|
|
116
|
+
netsuite: "netsuite";
|
|
117
|
+
}>;
|
|
118
|
+
page: zod.ZodObject<{
|
|
119
|
+
items: zod.ZodArray<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
120
|
+
hasMore: zod.ZodBoolean;
|
|
121
|
+
count: zod.ZodInt;
|
|
122
|
+
offset: zod.ZodInt;
|
|
123
|
+
totalResults: zod.ZodExactOptional<zod.ZodInt>;
|
|
124
|
+
}, zod.z.core.$loose>;
|
|
125
|
+
}, zod.z.core.$strip>]>;
|
|
126
|
+
/**
|
|
127
|
+
* Requires raw:read. The sandbox accepts one qbXML InvoiceQueryRq fragment containing a single TxnID, or a SuiteTalk GET on /services/rest/record/v1/invoice/{nativeId}. It returns the simulated book's current native fields and a fresh X-Request-Id header. This operation cannot dispatch writes.
|
|
128
|
+
* @summary Read a native invoice from a consenting sandbox book
|
|
129
|
+
*/
|
|
130
|
+
export declare const readRawPathIdMin = 1;
|
|
131
|
+
export declare const ReadRawParams: zod.ZodObject<{
|
|
132
|
+
id: zod.ZodString;
|
|
133
|
+
}, zod.z.core.$strip>;
|
|
134
|
+
export declare const readRawBodyOneQbxmlMin = 1;
|
|
135
|
+
export declare const readRawBodyOneQbxmlMax = 4096;
|
|
136
|
+
export declare const readRawBodyTwoPathMin = 1;
|
|
137
|
+
export declare const readRawBodyTwoPathMax = 512;
|
|
138
|
+
export declare const ReadRawBody: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
139
|
+
provider: zod.ZodEnum<{
|
|
140
|
+
quickbooksDesktop: "quickbooksDesktop";
|
|
141
|
+
}>;
|
|
142
|
+
qbxml: zod.ZodString;
|
|
143
|
+
}, zod.z.core.$strict>, zod.ZodObject<{
|
|
144
|
+
provider: zod.ZodEnum<{
|
|
145
|
+
netsuite: "netsuite";
|
|
146
|
+
}>;
|
|
147
|
+
method: zod.ZodEnum<{
|
|
148
|
+
GET: "GET";
|
|
149
|
+
}>;
|
|
150
|
+
path: zod.ZodString;
|
|
151
|
+
}, zod.z.core.$strict>]>;
|
|
152
|
+
export declare const ReadRawResponse: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
153
|
+
provider: zod.ZodEnum<{
|
|
154
|
+
quickbooksDesktop: "quickbooksDesktop";
|
|
155
|
+
}>;
|
|
156
|
+
qbxml: zod.ZodString;
|
|
157
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
158
|
+
provider: zod.ZodEnum<{
|
|
159
|
+
netsuite: "netsuite";
|
|
160
|
+
}>;
|
|
161
|
+
record: zod.ZodObject<{
|
|
162
|
+
id: zod.ZodString;
|
|
163
|
+
}, zod.z.core.$loose>;
|
|
164
|
+
}, zod.z.core.$strip>]>;
|
|
165
|
+
/**
|
|
166
|
+
* Requires receivables:write. Record money already received from the mapped customer and apply it to their invoice in the selected sandbox book. Read the operation for the verified invoice balance.
|
|
167
|
+
* @summary Record a received payment applied to an invoice
|
|
168
|
+
*/
|
|
169
|
+
export declare const createReceivedPaymentBodyConnectionIdMin = 1;
|
|
170
|
+
export declare const createReceivedPaymentBodyCustomerRefExternalIdMin = 1;
|
|
171
|
+
export declare const createReceivedPaymentBodyAmountRegExp: RegExp;
|
|
172
|
+
export declare const createReceivedPaymentBodyInvoiceIdMin = 1;
|
|
173
|
+
export declare const CreateReceivedPaymentBody: zod.ZodObject<{
|
|
174
|
+
connectionId: zod.ZodString;
|
|
175
|
+
customerRef: zod.ZodObject<{
|
|
176
|
+
externalId: zod.ZodString;
|
|
177
|
+
}, zod.z.core.$strict>;
|
|
178
|
+
currency: zod.ZodEnum<{
|
|
179
|
+
USD: "USD";
|
|
180
|
+
}>;
|
|
181
|
+
amount: zod.ZodString;
|
|
182
|
+
invoiceId: zod.ZodString;
|
|
183
|
+
}, zod.z.core.$strict>;
|
|
184
|
+
export declare const createReceivedPaymentResponseIdMin = 1;
|
|
185
|
+
export declare const CreateReceivedPaymentResponse: zod.ZodObject<{
|
|
186
|
+
id: zod.ZodString;
|
|
187
|
+
}, zod.z.core.$strip>;
|
|
188
|
+
/**
|
|
189
|
+
* Requires receivables:write. Issue credit to the mapped customer. The credit remains available until explicitly applied to an invoice. Read the operation for its native credit memo ID.
|
|
190
|
+
* @summary Issue available credit to a customer
|
|
191
|
+
*/
|
|
192
|
+
export declare const createCreditMemoBodyConnectionIdMin = 1;
|
|
193
|
+
export declare const createCreditMemoBodyCustomerRefExternalIdMin = 1;
|
|
194
|
+
export declare const createCreditMemoBodyAmountRegExp: RegExp;
|
|
195
|
+
export declare const CreateCreditMemoBody: zod.ZodObject<{
|
|
196
|
+
connectionId: zod.ZodString;
|
|
197
|
+
customerRef: zod.ZodObject<{
|
|
198
|
+
externalId: zod.ZodString;
|
|
199
|
+
}, zod.z.core.$strict>;
|
|
200
|
+
currency: zod.ZodEnum<{
|
|
201
|
+
USD: "USD";
|
|
202
|
+
}>;
|
|
203
|
+
amount: zod.ZodString;
|
|
204
|
+
}, zod.z.core.$strict>;
|
|
205
|
+
export declare const createCreditMemoResponseIdMin = 1;
|
|
206
|
+
export declare const CreateCreditMemoResponse: zod.ZodObject<{
|
|
207
|
+
id: zod.ZodString;
|
|
208
|
+
}, zod.z.core.$strip>;
|
|
209
|
+
/**
|
|
210
|
+
* Requires receivables:write. Use the native credit memo ID and an invoice belonging to the same customer, currency and book. The application receipt includes the remaining credit and invoice balance.
|
|
211
|
+
* @summary Apply existing credit to an invoice
|
|
212
|
+
*/
|
|
213
|
+
export declare const applyCreditMemoPathIdMin = 1;
|
|
214
|
+
export declare const ApplyCreditMemoParams: zod.ZodObject<{
|
|
215
|
+
id: zod.ZodString;
|
|
216
|
+
}, zod.z.core.$strip>;
|
|
217
|
+
export declare const applyCreditMemoBodyConnectionIdMin = 1;
|
|
218
|
+
export declare const applyCreditMemoBodyInvoiceIdMin = 1;
|
|
219
|
+
export declare const applyCreditMemoBodyAmountRegExp: RegExp;
|
|
220
|
+
export declare const ApplyCreditMemoBody: zod.ZodObject<{
|
|
221
|
+
connectionId: zod.ZodString;
|
|
222
|
+
invoiceId: zod.ZodString;
|
|
223
|
+
currency: zod.ZodEnum<{
|
|
224
|
+
USD: "USD";
|
|
225
|
+
}>;
|
|
226
|
+
amount: zod.ZodString;
|
|
227
|
+
}, zod.z.core.$strict>;
|
|
228
|
+
export declare const applyCreditMemoResponseIdMin = 1;
|
|
229
|
+
export declare const ApplyCreditMemoResponse: zod.ZodObject<{
|
|
230
|
+
id: zod.ZodString;
|
|
231
|
+
}, zod.z.core.$strip>;
|
|
232
|
+
/**
|
|
233
|
+
* Sandbox. Requires batches:write and a stable Idempotency-Key for this connection. Use the employee-clearing vendor and USD. Supply 1 to 25 positive vendor bills followed by one payment whose dependsOn names every bill key exactly once. All row keys must be distinct. The Worker processes the admitted rows asynchronously.
|
|
234
|
+
* @summary Admit a batch of employee reimbursements
|
|
235
|
+
*/
|
|
236
|
+
export declare const createBatchBodyConnectionIdMin = 1;
|
|
237
|
+
export declare const createBatchBodyVendorRefMin = 1;
|
|
238
|
+
export declare const createBatchBodyRowsItemOneKeyMin = 1;
|
|
239
|
+
export declare const createBatchBodyRowsItemOneKeyMax = 64;
|
|
240
|
+
export declare const createBatchBodyRowsItemOneKeyRegExp: RegExp;
|
|
241
|
+
export declare const createBatchBodyRowsItemOneAmountRegExp: RegExp;
|
|
242
|
+
export declare const createBatchBodyRowsItemTwoKeyMin = 1;
|
|
243
|
+
export declare const createBatchBodyRowsItemTwoKeyMax = 64;
|
|
244
|
+
export declare const createBatchBodyRowsItemTwoKeyRegExp: RegExp;
|
|
245
|
+
export declare const createBatchBodyRowsItemTwoDependsOnItemMin = 1;
|
|
246
|
+
export declare const createBatchBodyRowsItemTwoDependsOnItemMax = 64;
|
|
247
|
+
export declare const createBatchBodyRowsItemTwoDependsOnItemRegExp: RegExp;
|
|
248
|
+
export declare const createBatchBodyRowsItemTwoDependsOnMin = 1;
|
|
249
|
+
export declare const createBatchBodyRowsItemTwoDependsOnMax = 25;
|
|
250
|
+
export declare const createBatchBodyRowsMin = 2;
|
|
251
|
+
export declare const createBatchBodyRowsMax = 26;
|
|
252
|
+
export declare const CreateBatchBody: zod.ZodObject<{
|
|
253
|
+
connectionId: zod.ZodString;
|
|
254
|
+
currency: zod.ZodEnum<{
|
|
255
|
+
USD: "USD";
|
|
256
|
+
}>;
|
|
257
|
+
vendorRef: zod.ZodString;
|
|
258
|
+
rows: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
259
|
+
key: zod.ZodString;
|
|
260
|
+
kind: zod.ZodEnum<{
|
|
261
|
+
vendor_bill: "vendor_bill";
|
|
262
|
+
}>;
|
|
263
|
+
amount: zod.ZodString;
|
|
264
|
+
}, zod.z.core.$strict>, zod.ZodObject<{
|
|
265
|
+
key: zod.ZodString;
|
|
266
|
+
kind: zod.ZodEnum<{
|
|
267
|
+
bill_payment: "bill_payment";
|
|
268
|
+
}>;
|
|
269
|
+
dependsOn: zod.ZodArray<zod.ZodString>;
|
|
270
|
+
}, zod.z.core.$strict>]>>;
|
|
271
|
+
}, zod.z.core.$strict>;
|
|
272
|
+
export declare const createBatchResponseIdMin = 1;
|
|
273
|
+
export declare const CreateBatchResponse: zod.ZodObject<{
|
|
274
|
+
id: zod.ZodString;
|
|
275
|
+
}, zod.z.core.$strip>;
|
|
276
|
+
/**
|
|
277
|
+
* Requires batches:read. Read the saved batch ID after a restart. Each verified bill exposes its native ID and the last confirmed balance. The payment waits for its bills.
|
|
278
|
+
* @summary Read the status of a batch and each row
|
|
279
|
+
*/
|
|
280
|
+
export declare const retrieveBatchPathIdMin = 1;
|
|
281
|
+
export declare const RetrieveBatchParams: zod.ZodObject<{
|
|
282
|
+
id: zod.ZodString;
|
|
283
|
+
}, zod.z.core.$strip>;
|
|
284
|
+
export declare const retrieveBatchResponseIdMin = 1;
|
|
285
|
+
export declare const retrieveBatchResponseConnectionIdMin = 1;
|
|
286
|
+
export declare const retrieveBatchResponseRowsItemKeyMin = 1;
|
|
287
|
+
export declare const retrieveBatchResponseRowsItemKeyMax = 64;
|
|
288
|
+
export declare const retrieveBatchResponseRowsItemKeyRegExp: RegExp;
|
|
289
|
+
export declare const retrieveBatchResponseRowsItemAmountRegExp: RegExp;
|
|
290
|
+
export declare const retrieveBatchResponseRowsItemDependsOnItemMin = 1;
|
|
291
|
+
export declare const retrieveBatchResponseRowsItemDependsOnItemMax = 64;
|
|
292
|
+
export declare const retrieveBatchResponseRowsItemDependsOnItemRegExp: RegExp;
|
|
293
|
+
export declare const retrieveBatchResponseRowsItemNativeIdMin = 1;
|
|
294
|
+
export declare const retrieveBatchResponseRowsItemBalanceDueRegExp: RegExp;
|
|
295
|
+
export declare const retrieveBatchResponseRowsItemDiagnosisBlockingRowKeysItemMin = 1;
|
|
296
|
+
export declare const retrieveBatchResponseRowsItemDiagnosisBlockingRowKeysItemMax = 64;
|
|
297
|
+
export declare const retrieveBatchResponseRowsItemDiagnosisBlockingRowKeysItemRegExp: RegExp;
|
|
298
|
+
export declare const retrieveBatchResponseRowsItemDiagnosisBlockingRowKeysMax = 25;
|
|
299
|
+
export declare const retrieveBatchResponseRowsItemHistoryItemBlockingRowKeysItemMin = 1;
|
|
300
|
+
export declare const retrieveBatchResponseRowsItemHistoryItemBlockingRowKeysItemMax = 64;
|
|
301
|
+
export declare const retrieveBatchResponseRowsItemHistoryItemBlockingRowKeysItemRegExp: RegExp;
|
|
302
|
+
export declare const retrieveBatchResponseRowsItemHistoryItemBlockingRowKeysMax = 25;
|
|
303
|
+
export declare const retrieveBatchResponseRowsItemHistoryMin = 1;
|
|
304
|
+
export declare const retrieveBatchResponseRowsItemHistoryMax = 5;
|
|
305
|
+
export declare const retrieveBatchResponseRowsMin = 2;
|
|
306
|
+
export declare const retrieveBatchResponseRowsMax = 26;
|
|
307
|
+
export declare const RetrieveBatchResponse: zod.ZodObject<{
|
|
308
|
+
id: zod.ZodString;
|
|
309
|
+
connectionId: zod.ZodString;
|
|
310
|
+
status: zod.ZodEnum<{
|
|
311
|
+
pending: "pending";
|
|
312
|
+
verified: "verified";
|
|
313
|
+
}>;
|
|
314
|
+
rows: zod.ZodArray<zod.ZodObject<{
|
|
315
|
+
key: zod.ZodString;
|
|
316
|
+
kind: zod.ZodEnum<{
|
|
317
|
+
vendor_bill: "vendor_bill";
|
|
318
|
+
bill_payment: "bill_payment";
|
|
319
|
+
}>;
|
|
320
|
+
status: zod.ZodEnum<{
|
|
321
|
+
pending: "pending";
|
|
322
|
+
verified: "verified";
|
|
323
|
+
blocked: "blocked";
|
|
324
|
+
}>;
|
|
325
|
+
amount: zod.ZodString;
|
|
326
|
+
dependsOn: zod.ZodArray<zod.ZodString>;
|
|
327
|
+
nativeId: zod.ZodExactOptional<zod.ZodString>;
|
|
328
|
+
balanceDue: zod.ZodExactOptional<zod.ZodString>;
|
|
329
|
+
diagnosis: zod.ZodExactOptional<zod.ZodObject<{
|
|
330
|
+
code: zod.ZodEnum<{
|
|
331
|
+
queued: "queued";
|
|
332
|
+
awaiting_bills: "awaiting_bills";
|
|
333
|
+
dispatch_claimed: "dispatch_claimed";
|
|
334
|
+
source_offline: "source_offline";
|
|
335
|
+
wrong_book: "wrong_book";
|
|
336
|
+
book_diverged: "book_diverged";
|
|
337
|
+
source_record_missing: "source_record_missing";
|
|
338
|
+
source_record_mismatch: "source_record_mismatch";
|
|
339
|
+
bills_changed: "bills_changed";
|
|
340
|
+
storage_error: "storage_error";
|
|
341
|
+
internal_error: "internal_error";
|
|
342
|
+
record_verified: "record_verified";
|
|
343
|
+
}>;
|
|
344
|
+
certainty: zod.ZodEnum<{
|
|
345
|
+
unknown: "unknown";
|
|
346
|
+
verified: "verified";
|
|
347
|
+
not_sent: "not_sent";
|
|
348
|
+
}>;
|
|
349
|
+
nextAction: zod.ZodEnum<{
|
|
350
|
+
dispatch_once: "dispatch_once";
|
|
351
|
+
wait_for_bills: "wait_for_bills";
|
|
352
|
+
verify_original_book: "verify_original_book";
|
|
353
|
+
restore_connection: "restore_connection";
|
|
354
|
+
open_authorized_book: "open_authorized_book";
|
|
355
|
+
reconcile_book: "reconcile_book";
|
|
356
|
+
review_mismatch: "review_mismatch";
|
|
357
|
+
review_bills: "review_bills";
|
|
358
|
+
resume_operation: "resume_operation";
|
|
359
|
+
none: "none";
|
|
360
|
+
}>;
|
|
361
|
+
owner: zod.ZodEnum<{
|
|
362
|
+
none: "none";
|
|
363
|
+
rowbind: "rowbind";
|
|
364
|
+
erp_admin: "erp_admin";
|
|
365
|
+
saas: "saas";
|
|
366
|
+
}>;
|
|
367
|
+
requiredEvidence: zod.ZodEnum<{
|
|
368
|
+
none: "none";
|
|
369
|
+
verified_dependencies: "verified_dependencies";
|
|
370
|
+
authorized_book: "authorized_book";
|
|
371
|
+
consistent_book: "consistent_book";
|
|
372
|
+
open_bills: "open_bills";
|
|
373
|
+
native_bill: "native_bill";
|
|
374
|
+
native_payment_and_applications: "native_payment_and_applications";
|
|
375
|
+
}>;
|
|
376
|
+
blockingRowKeys: zod.ZodArray<zod.ZodString>;
|
|
377
|
+
observedAt: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
378
|
+
}, zod.z.core.$strip>>;
|
|
379
|
+
history: zod.ZodExactOptional<zod.ZodArray<zod.ZodObject<{
|
|
380
|
+
code: zod.ZodEnum<{
|
|
381
|
+
queued: "queued";
|
|
382
|
+
awaiting_bills: "awaiting_bills";
|
|
383
|
+
dispatch_claimed: "dispatch_claimed";
|
|
384
|
+
source_offline: "source_offline";
|
|
385
|
+
wrong_book: "wrong_book";
|
|
386
|
+
book_diverged: "book_diverged";
|
|
387
|
+
source_record_missing: "source_record_missing";
|
|
388
|
+
source_record_mismatch: "source_record_mismatch";
|
|
389
|
+
bills_changed: "bills_changed";
|
|
390
|
+
storage_error: "storage_error";
|
|
391
|
+
internal_error: "internal_error";
|
|
392
|
+
record_verified: "record_verified";
|
|
393
|
+
}>;
|
|
394
|
+
certainty: zod.ZodEnum<{
|
|
395
|
+
unknown: "unknown";
|
|
396
|
+
verified: "verified";
|
|
397
|
+
not_sent: "not_sent";
|
|
398
|
+
}>;
|
|
399
|
+
nextAction: zod.ZodEnum<{
|
|
400
|
+
dispatch_once: "dispatch_once";
|
|
401
|
+
wait_for_bills: "wait_for_bills";
|
|
402
|
+
verify_original_book: "verify_original_book";
|
|
403
|
+
restore_connection: "restore_connection";
|
|
404
|
+
open_authorized_book: "open_authorized_book";
|
|
405
|
+
reconcile_book: "reconcile_book";
|
|
406
|
+
review_mismatch: "review_mismatch";
|
|
407
|
+
review_bills: "review_bills";
|
|
408
|
+
resume_operation: "resume_operation";
|
|
409
|
+
none: "none";
|
|
410
|
+
}>;
|
|
411
|
+
owner: zod.ZodEnum<{
|
|
412
|
+
none: "none";
|
|
413
|
+
rowbind: "rowbind";
|
|
414
|
+
erp_admin: "erp_admin";
|
|
415
|
+
saas: "saas";
|
|
416
|
+
}>;
|
|
417
|
+
requiredEvidence: zod.ZodEnum<{
|
|
418
|
+
none: "none";
|
|
419
|
+
verified_dependencies: "verified_dependencies";
|
|
420
|
+
authorized_book: "authorized_book";
|
|
421
|
+
consistent_book: "consistent_book";
|
|
422
|
+
open_bills: "open_bills";
|
|
423
|
+
native_bill: "native_bill";
|
|
424
|
+
native_payment_and_applications: "native_payment_and_applications";
|
|
425
|
+
}>;
|
|
426
|
+
blockingRowKeys: zod.ZodArray<zod.ZodString>;
|
|
427
|
+
observedAt: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
428
|
+
}, zod.z.core.$strip>>>;
|
|
429
|
+
}, zod.z.core.$strip>>;
|
|
430
|
+
}, zod.z.core.$strip>;
|
|
431
|
+
/**
|
|
432
|
+
* Requires webhooks:manage. The sandbox operator configures a receiver alias and signing secret for this project. Omitting eventType selects operation.verified. Use invoice.created for new invoices, invoice.updated for edits, invoice.voided for confirmed voids, invoice.deleted for confirmed deletions, and payment.matched for confirmed payment matches. Sync publishes invoice events observed after its initial cutoff. Reusing an alias adds the selected event type to the same receiver. Repeating a subscription is idempotent.
|
|
433
|
+
* @summary Subscribe a sandbox receiver to an event type
|
|
434
|
+
*/
|
|
435
|
+
export declare const createWebhookEndpointBodyDestinationMin = 1;
|
|
436
|
+
export declare const CreateWebhookEndpointBody: zod.ZodObject<{
|
|
437
|
+
destination: zod.ZodString;
|
|
438
|
+
eventType: zod.ZodExactOptional<zod.ZodEnum<{
|
|
439
|
+
"operation.verified": "operation.verified";
|
|
440
|
+
"invoice.created": "invoice.created";
|
|
441
|
+
"invoice.updated": "invoice.updated";
|
|
442
|
+
"invoice.voided": "invoice.voided";
|
|
443
|
+
"invoice.deleted": "invoice.deleted";
|
|
444
|
+
"payment.matched": "payment.matched";
|
|
445
|
+
}>>;
|
|
446
|
+
}, zod.z.core.$strict>;
|
|
447
|
+
export declare const createWebhookEndpointResponseIdMin = 1;
|
|
448
|
+
export declare const createWebhookEndpointResponseDestinationMin = 1;
|
|
449
|
+
export declare const CreateWebhookEndpointResponse: zod.ZodObject<{
|
|
450
|
+
id: zod.ZodString;
|
|
451
|
+
destination: zod.ZodString;
|
|
452
|
+
eventType: zod.ZodEnum<{
|
|
453
|
+
"operation.verified": "operation.verified";
|
|
454
|
+
"invoice.created": "invoice.created";
|
|
455
|
+
"invoice.updated": "invoice.updated";
|
|
456
|
+
"invoice.voided": "invoice.voided";
|
|
457
|
+
"invoice.deleted": "invoice.deleted";
|
|
458
|
+
"payment.matched": "payment.matched";
|
|
459
|
+
}>;
|
|
460
|
+
}, zod.z.core.$strip>;
|
|
461
|
+
/**
|
|
462
|
+
* Requires webhooks:manage. Returns the most recent 50 deliveries and the last HTTP status when the receiver returned one.
|
|
463
|
+
* @summary Read recent deliveries to a sandbox receiver
|
|
464
|
+
*/
|
|
465
|
+
export declare const listWebhookDeliveriesPathIdMin = 1;
|
|
466
|
+
export declare const ListWebhookDeliveriesParams: zod.ZodObject<{
|
|
467
|
+
id: zod.ZodString;
|
|
468
|
+
}, zod.z.core.$strip>;
|
|
469
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemOneEventIdMin = 1;
|
|
470
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemOneOperationIdMin = 1;
|
|
471
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemOneAttemptsMin = 0;
|
|
472
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemTwoEventIdMin = 1;
|
|
473
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemTwoConnectionIdMin = 1;
|
|
474
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemTwoInvoiceIdMin = 1;
|
|
475
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemTwoRevisionMin = 1;
|
|
476
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemTwoAttemptsMin = 0;
|
|
477
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemThreeEventIdMin = 1;
|
|
478
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemThreeConnectionIdMin = 1;
|
|
479
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemThreeInvoiceIdMin = 1;
|
|
480
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemThreeRevisionMin = 1;
|
|
481
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemThreeAttemptsMin = 0;
|
|
482
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemFourEventIdMin = 1;
|
|
483
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemFourConnectionIdMin = 1;
|
|
484
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemFourInvoiceIdMin = 1;
|
|
485
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemFourRevisionMin = 1;
|
|
486
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemFourAttemptsMin = 0;
|
|
487
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemFiveEventIdMin = 1;
|
|
488
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemFiveConnectionIdMin = 1;
|
|
489
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemFiveInvoiceIdMin = 1;
|
|
490
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemFiveRevisionMin = 1;
|
|
491
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemFiveAttemptsMin = 0;
|
|
492
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemSixEventIdMin = 1;
|
|
493
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemSixConnectionIdMin = 1;
|
|
494
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemSixInvoiceIdMin = 1;
|
|
495
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemSixPaymentIdMin = 1;
|
|
496
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemSixObservationIdMin = 1;
|
|
497
|
+
export declare const listWebhookDeliveriesResponseDeliveriesItemSixAttemptsMin = 0;
|
|
498
|
+
export declare const listWebhookDeliveriesResponseDeliveriesMax = 50;
|
|
499
|
+
export declare const ListWebhookDeliveriesResponse: zod.ZodObject<{
|
|
500
|
+
deliveries: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
501
|
+
eventId: zod.ZodString;
|
|
502
|
+
operationId: zod.ZodString;
|
|
503
|
+
status: zod.ZodEnum<{
|
|
504
|
+
pending: "pending";
|
|
505
|
+
delivered: "delivered";
|
|
506
|
+
dead_letter: "dead_letter";
|
|
507
|
+
}>;
|
|
508
|
+
attempts: zod.ZodInt;
|
|
509
|
+
lastHttpStatus: zod.ZodNullable<zod.ZodInt>;
|
|
510
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
511
|
+
eventId: zod.ZodString;
|
|
512
|
+
eventType: zod.ZodEnum<{
|
|
513
|
+
"invoice.created": "invoice.created";
|
|
514
|
+
}>;
|
|
515
|
+
connectionId: zod.ZodString;
|
|
516
|
+
invoiceId: zod.ZodString;
|
|
517
|
+
revision: zod.ZodInt;
|
|
518
|
+
status: zod.ZodEnum<{
|
|
519
|
+
pending: "pending";
|
|
520
|
+
delivered: "delivered";
|
|
521
|
+
dead_letter: "dead_letter";
|
|
522
|
+
}>;
|
|
523
|
+
attempts: zod.ZodInt;
|
|
524
|
+
lastHttpStatus: zod.ZodNullable<zod.ZodInt>;
|
|
525
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
526
|
+
eventId: zod.ZodString;
|
|
527
|
+
eventType: zod.ZodEnum<{
|
|
528
|
+
"invoice.updated": "invoice.updated";
|
|
529
|
+
}>;
|
|
530
|
+
connectionId: zod.ZodString;
|
|
531
|
+
invoiceId: zod.ZodString;
|
|
532
|
+
revision: zod.ZodInt;
|
|
533
|
+
status: zod.ZodEnum<{
|
|
534
|
+
pending: "pending";
|
|
535
|
+
delivered: "delivered";
|
|
536
|
+
dead_letter: "dead_letter";
|
|
537
|
+
}>;
|
|
538
|
+
attempts: zod.ZodInt;
|
|
539
|
+
lastHttpStatus: zod.ZodNullable<zod.ZodInt>;
|
|
540
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
541
|
+
eventId: zod.ZodString;
|
|
542
|
+
eventType: zod.ZodEnum<{
|
|
543
|
+
"invoice.voided": "invoice.voided";
|
|
544
|
+
}>;
|
|
545
|
+
connectionId: zod.ZodString;
|
|
546
|
+
invoiceId: zod.ZodString;
|
|
547
|
+
revision: zod.ZodInt;
|
|
548
|
+
status: zod.ZodEnum<{
|
|
549
|
+
pending: "pending";
|
|
550
|
+
delivered: "delivered";
|
|
551
|
+
dead_letter: "dead_letter";
|
|
552
|
+
}>;
|
|
553
|
+
attempts: zod.ZodInt;
|
|
554
|
+
lastHttpStatus: zod.ZodNullable<zod.ZodInt>;
|
|
555
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
556
|
+
eventId: zod.ZodString;
|
|
557
|
+
eventType: zod.ZodEnum<{
|
|
558
|
+
"invoice.deleted": "invoice.deleted";
|
|
559
|
+
}>;
|
|
560
|
+
connectionId: zod.ZodString;
|
|
561
|
+
invoiceId: zod.ZodString;
|
|
562
|
+
revision: zod.ZodInt;
|
|
563
|
+
status: zod.ZodEnum<{
|
|
564
|
+
pending: "pending";
|
|
565
|
+
delivered: "delivered";
|
|
566
|
+
dead_letter: "dead_letter";
|
|
567
|
+
}>;
|
|
568
|
+
attempts: zod.ZodInt;
|
|
569
|
+
lastHttpStatus: zod.ZodNullable<zod.ZodInt>;
|
|
570
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
571
|
+
eventId: zod.ZodString;
|
|
572
|
+
eventType: zod.ZodEnum<{
|
|
573
|
+
"payment.matched": "payment.matched";
|
|
574
|
+
}>;
|
|
575
|
+
connectionId: zod.ZodString;
|
|
576
|
+
invoiceId: zod.ZodString;
|
|
577
|
+
paymentId: zod.ZodString;
|
|
578
|
+
observationId: zod.ZodString;
|
|
579
|
+
status: zod.ZodEnum<{
|
|
580
|
+
pending: "pending";
|
|
581
|
+
delivered: "delivered";
|
|
582
|
+
dead_letter: "dead_letter";
|
|
583
|
+
}>;
|
|
584
|
+
attempts: zod.ZodInt;
|
|
585
|
+
lastHttpStatus: zod.ZodNullable<zod.ZodInt>;
|
|
586
|
+
}, zod.z.core.$strip>]>>;
|
|
587
|
+
}, zod.z.core.$strip>;
|
|
588
|
+
/**
|
|
589
|
+
* Requires webhooks:manage. Enqueues the same event for this endpoint. If a delivery is pending or in flight the request coalesces with it.
|
|
590
|
+
* @summary Request another delivery of the same event
|
|
591
|
+
*/
|
|
592
|
+
export declare const replayWebhookDeliveryPathIdMin = 1;
|
|
593
|
+
export declare const replayWebhookDeliveryPathEventIdMin = 1;
|
|
594
|
+
export declare const ReplayWebhookDeliveryParams: zod.ZodObject<{
|
|
595
|
+
id: zod.ZodString;
|
|
596
|
+
eventId: zod.ZodString;
|
|
597
|
+
}, zod.z.core.$strip>;
|
|
598
|
+
export declare const replayWebhookDeliveryResponseEventIdMin = 1;
|
|
599
|
+
export declare const ReplayWebhookDeliveryResponse: zod.ZodObject<{
|
|
600
|
+
eventId: zod.ZodString;
|
|
601
|
+
}, zod.z.core.$strip>;
|
|
602
|
+
/**
|
|
603
|
+
* @summary Create or recover a customer by its external ID
|
|
604
|
+
*/
|
|
605
|
+
export declare const createCompanyBodyExternalIdMin = 1;
|
|
606
|
+
export declare const createCompanyBodyExternalIdMax = 255;
|
|
607
|
+
export declare const createCompanyBodyNameMin = 1;
|
|
608
|
+
export declare const createCompanyBodyNameMax = 255;
|
|
609
|
+
export declare const CreateCompanyBody: zod.ZodObject<{
|
|
610
|
+
externalId: zod.ZodString;
|
|
611
|
+
name: zod.ZodString;
|
|
612
|
+
}, zod.z.core.$strict>;
|
|
613
|
+
export declare const createCompanyResponseIdMin = 1;
|
|
614
|
+
export declare const createCompanyResponseExternalIdMin = 1;
|
|
615
|
+
export declare const createCompanyResponseExternalIdMax = 255;
|
|
616
|
+
export declare const createCompanyResponseNameMin = 1;
|
|
617
|
+
export declare const createCompanyResponseNameMax = 255;
|
|
618
|
+
export declare const CreateCompanyResponse: zod.ZodObject<{
|
|
619
|
+
id: zod.ZodString;
|
|
620
|
+
externalId: zod.ZodString;
|
|
621
|
+
name: zod.ZodString;
|
|
622
|
+
}, zod.z.core.$strip>;
|
|
623
|
+
/**
|
|
624
|
+
* @summary Create a sandbox consent link for the customer administrator
|
|
625
|
+
*/
|
|
626
|
+
export declare const createConnectSessionBodyCompanyIdMin = 1;
|
|
627
|
+
export declare const CreateConnectSessionBody: zod.ZodObject<{
|
|
628
|
+
companyId: zod.ZodString;
|
|
629
|
+
provider: zod.ZodEnum<{
|
|
630
|
+
quickbooksDesktop: "quickbooksDesktop";
|
|
631
|
+
netsuite: "netsuite";
|
|
632
|
+
}>;
|
|
633
|
+
allowNativeQueries: zod.ZodExactOptional<zod.ZodBoolean>;
|
|
634
|
+
}, zod.z.core.$strict>;
|
|
635
|
+
export declare const createConnectSessionResponseIdMin = 1;
|
|
636
|
+
export declare const createConnectSessionResponseCompanyIdMin = 1;
|
|
637
|
+
export declare const CreateConnectSessionResponse: zod.ZodObject<{
|
|
638
|
+
id: zod.ZodString;
|
|
639
|
+
companyId: zod.ZodString;
|
|
640
|
+
provider: zod.ZodEnum<{
|
|
641
|
+
quickbooksDesktop: "quickbooksDesktop";
|
|
642
|
+
netsuite: "netsuite";
|
|
643
|
+
}>;
|
|
644
|
+
expiresAt: zod.z.ZodISODateTime;
|
|
645
|
+
status: zod.ZodEnum<{
|
|
646
|
+
pending: "pending";
|
|
647
|
+
}>;
|
|
648
|
+
url: zod.ZodURL;
|
|
649
|
+
}, zod.z.core.$strip>;
|
|
650
|
+
/**
|
|
651
|
+
* @summary Check consent and retrieve the authorized connection ID
|
|
652
|
+
*/
|
|
653
|
+
export declare const retrieveConnectSessionPathIdMin = 1;
|
|
654
|
+
export declare const RetrieveConnectSessionParams: zod.ZodObject<{
|
|
655
|
+
id: zod.ZodString;
|
|
656
|
+
}, zod.z.core.$strip>;
|
|
657
|
+
export declare const retrieveConnectSessionResponseIdMin = 1;
|
|
658
|
+
export declare const retrieveConnectSessionResponseCompanyIdMin = 1;
|
|
659
|
+
export declare const retrieveConnectSessionResponseConnectionIdMin = 1;
|
|
660
|
+
export declare const RetrieveConnectSessionResponse: zod.ZodObject<{
|
|
661
|
+
id: zod.ZodString;
|
|
662
|
+
companyId: zod.ZodString;
|
|
663
|
+
provider: zod.ZodEnum<{
|
|
664
|
+
quickbooksDesktop: "quickbooksDesktop";
|
|
665
|
+
netsuite: "netsuite";
|
|
666
|
+
}>;
|
|
667
|
+
expiresAt: zod.z.ZodISODateTime;
|
|
668
|
+
status: zod.ZodEnum<{
|
|
669
|
+
pending: "pending";
|
|
670
|
+
connected: "connected";
|
|
671
|
+
expired: "expired";
|
|
672
|
+
}>;
|
|
673
|
+
connectionId: zod.ZodExactOptional<zod.ZodString>;
|
|
674
|
+
}, zod.z.core.$strip>;
|
|
675
|
+
/**
|
|
676
|
+
* @summary List the project's ERP connections
|
|
677
|
+
*/
|
|
678
|
+
export declare const listConnectionsResponseOneIdMin = 1;
|
|
679
|
+
export declare const listConnectionsResponseTwoIdMin = 1;
|
|
680
|
+
export declare const listConnectionsResponseTwoSubsidiaryIdMin = 1;
|
|
681
|
+
export declare const ListConnectionsResponseItem: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
682
|
+
id: zod.ZodString;
|
|
683
|
+
provider: zod.ZodEnum<{
|
|
684
|
+
quickbooksDesktop: "quickbooksDesktop";
|
|
685
|
+
}>;
|
|
686
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
687
|
+
id: zod.ZodString;
|
|
688
|
+
provider: zod.ZodEnum<{
|
|
689
|
+
netsuite: "netsuite";
|
|
690
|
+
}>;
|
|
691
|
+
subsidiaryId: zod.ZodString;
|
|
692
|
+
}, zod.z.core.$strip>]>;
|
|
693
|
+
export declare const ListConnectionsResponse: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
694
|
+
id: zod.ZodString;
|
|
695
|
+
provider: zod.ZodEnum<{
|
|
696
|
+
quickbooksDesktop: "quickbooksDesktop";
|
|
697
|
+
}>;
|
|
698
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
699
|
+
id: zod.ZodString;
|
|
700
|
+
provider: zod.ZodEnum<{
|
|
701
|
+
netsuite: "netsuite";
|
|
702
|
+
}>;
|
|
703
|
+
subsidiaryId: zod.ZodString;
|
|
704
|
+
}, zod.z.core.$strip>]>>;
|
|
705
|
+
/**
|
|
706
|
+
* @summary Retrieve an ERP connection
|
|
707
|
+
*/
|
|
708
|
+
export declare const retrieveConnectionPathIdMin = 1;
|
|
709
|
+
export declare const RetrieveConnectionParams: zod.ZodObject<{
|
|
710
|
+
id: zod.ZodString;
|
|
711
|
+
}, zod.z.core.$strip>;
|
|
712
|
+
export declare const retrieveConnectionResponseOneIdMin = 1;
|
|
713
|
+
export declare const retrieveConnectionResponseTwoIdMin = 1;
|
|
714
|
+
export declare const retrieveConnectionResponseTwoSubsidiaryIdMin = 1;
|
|
715
|
+
export declare const RetrieveConnectionResponse: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
716
|
+
id: zod.ZodString;
|
|
717
|
+
provider: zod.ZodEnum<{
|
|
718
|
+
quickbooksDesktop: "quickbooksDesktop";
|
|
719
|
+
}>;
|
|
720
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
721
|
+
id: zod.ZodString;
|
|
722
|
+
provider: zod.ZodEnum<{
|
|
723
|
+
netsuite: "netsuite";
|
|
724
|
+
}>;
|
|
725
|
+
subsidiaryId: zod.ZodString;
|
|
726
|
+
}, zod.z.core.$strip>]>;
|
|
727
|
+
/**
|
|
728
|
+
* Requires connections:read. Returns the latest stored evidence from an explicit check, an invoice readback or a managed invoice sync. Reading this endpoint never contacts the ERP.
|
|
729
|
+
* @summary Read the latest connection health observation
|
|
730
|
+
*/
|
|
731
|
+
export declare const retrieveConnectionHealthPathIdMin = 1;
|
|
732
|
+
export declare const RetrieveConnectionHealthParams: zod.ZodObject<{
|
|
733
|
+
id: zod.ZodString;
|
|
734
|
+
}, zod.z.core.$strip>;
|
|
735
|
+
export declare const retrieveConnectionHealthResponseConnectionIdMin = 1;
|
|
736
|
+
export declare const retrieveConnectionHealthResponseDivergenceOneOperationIdMin = 1;
|
|
737
|
+
export declare const retrieveConnectionHealthResponseDivergenceTwoRevisionMin = 1;
|
|
738
|
+
export declare const retrieveConnectionHealthResponseDivergenceTwoRevisionMax = 9007199254740991;
|
|
739
|
+
export declare const RetrieveConnectionHealthResponse: zod.ZodObject<{
|
|
740
|
+
connectionId: zod.ZodString;
|
|
741
|
+
provider: zod.ZodEnum<{
|
|
742
|
+
quickbooksDesktop: "quickbooksDesktop";
|
|
743
|
+
netsuite: "netsuite";
|
|
744
|
+
}>;
|
|
745
|
+
authorization: zod.ZodEnum<{
|
|
746
|
+
authorized: "authorized";
|
|
747
|
+
unrecorded: "unrecorded";
|
|
748
|
+
}>;
|
|
749
|
+
authorizedAt: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
750
|
+
status: zod.ZodEnum<{
|
|
751
|
+
verified: "verified";
|
|
752
|
+
wrong_book: "wrong_book";
|
|
753
|
+
book_diverged: "book_diverged";
|
|
754
|
+
unchecked: "unchecked";
|
|
755
|
+
offline: "offline";
|
|
756
|
+
permission_denied: "permission_denied";
|
|
757
|
+
}>;
|
|
758
|
+
checkedAt: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
759
|
+
lastVerifiedAt: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
760
|
+
capability: zod.ZodEnum<{
|
|
761
|
+
"invoices:read": "invoices:read";
|
|
762
|
+
}>;
|
|
763
|
+
nextAction: zod.ZodEnum<{
|
|
764
|
+
restore_connection: "restore_connection";
|
|
765
|
+
open_authorized_book: "open_authorized_book";
|
|
766
|
+
reconcile_book: "reconcile_book";
|
|
767
|
+
none: "none";
|
|
768
|
+
run_check: "run_check";
|
|
769
|
+
restore_permissions: "restore_permissions";
|
|
770
|
+
authorize_connection: "authorize_connection";
|
|
771
|
+
}>;
|
|
772
|
+
divergence: zod.ZodExactOptional<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
773
|
+
kind: zod.ZodEnum<{
|
|
774
|
+
invoice_receipt: "invoice_receipt";
|
|
775
|
+
}>;
|
|
776
|
+
operationId: zod.ZodString;
|
|
777
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
778
|
+
kind: zod.ZodEnum<{
|
|
779
|
+
invoice_checkpoint: "invoice_checkpoint";
|
|
780
|
+
payment_checkpoint: "payment_checkpoint";
|
|
781
|
+
}>;
|
|
782
|
+
revision: zod.ZodInt;
|
|
783
|
+
}, zod.z.core.$strip>]>>;
|
|
784
|
+
}, zod.z.core.$strip>;
|
|
785
|
+
/**
|
|
786
|
+
* Requires connections:read. Checks book identity, invoice read access and continuity with previously verified evidence. After book_diverged, reconcile the book and run this check to resume work. An unsuccessful check preserves the previous verified read time. An unrecorded authorization requires Connect before verification.
|
|
787
|
+
* @summary Check access to invoices in the authorized sandbox book
|
|
788
|
+
*/
|
|
789
|
+
export declare const checkConnectionHealthPathIdMin = 1;
|
|
790
|
+
export declare const CheckConnectionHealthParams: zod.ZodObject<{
|
|
791
|
+
id: zod.ZodString;
|
|
792
|
+
}, zod.z.core.$strip>;
|
|
793
|
+
export declare const checkConnectionHealthResponseConnectionIdMin = 1;
|
|
794
|
+
export declare const checkConnectionHealthResponseDivergenceOneOperationIdMin = 1;
|
|
795
|
+
export declare const checkConnectionHealthResponseDivergenceTwoRevisionMin = 1;
|
|
796
|
+
export declare const checkConnectionHealthResponseDivergenceTwoRevisionMax = 9007199254740991;
|
|
797
|
+
export declare const CheckConnectionHealthResponse: zod.ZodObject<{
|
|
798
|
+
connectionId: zod.ZodString;
|
|
799
|
+
provider: zod.ZodEnum<{
|
|
800
|
+
quickbooksDesktop: "quickbooksDesktop";
|
|
801
|
+
netsuite: "netsuite";
|
|
802
|
+
}>;
|
|
803
|
+
authorization: zod.ZodEnum<{
|
|
804
|
+
authorized: "authorized";
|
|
805
|
+
unrecorded: "unrecorded";
|
|
806
|
+
}>;
|
|
807
|
+
authorizedAt: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
808
|
+
status: zod.ZodEnum<{
|
|
809
|
+
verified: "verified";
|
|
810
|
+
wrong_book: "wrong_book";
|
|
811
|
+
book_diverged: "book_diverged";
|
|
812
|
+
unchecked: "unchecked";
|
|
813
|
+
offline: "offline";
|
|
814
|
+
permission_denied: "permission_denied";
|
|
815
|
+
}>;
|
|
816
|
+
checkedAt: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
817
|
+
lastVerifiedAt: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
818
|
+
capability: zod.ZodEnum<{
|
|
819
|
+
"invoices:read": "invoices:read";
|
|
820
|
+
}>;
|
|
821
|
+
nextAction: zod.ZodEnum<{
|
|
822
|
+
restore_connection: "restore_connection";
|
|
823
|
+
open_authorized_book: "open_authorized_book";
|
|
824
|
+
reconcile_book: "reconcile_book";
|
|
825
|
+
none: "none";
|
|
826
|
+
run_check: "run_check";
|
|
827
|
+
restore_permissions: "restore_permissions";
|
|
828
|
+
authorize_connection: "authorize_connection";
|
|
829
|
+
}>;
|
|
830
|
+
divergence: zod.ZodExactOptional<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
831
|
+
kind: zod.ZodEnum<{
|
|
832
|
+
invoice_receipt: "invoice_receipt";
|
|
833
|
+
}>;
|
|
834
|
+
operationId: zod.ZodString;
|
|
835
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
836
|
+
kind: zod.ZodEnum<{
|
|
837
|
+
invoice_checkpoint: "invoice_checkpoint";
|
|
838
|
+
payment_checkpoint: "payment_checkpoint";
|
|
839
|
+
}>;
|
|
840
|
+
revision: zod.ZodInt;
|
|
841
|
+
}, zod.z.core.$strip>]>>;
|
|
842
|
+
}, zod.z.core.$strip>;
|
|
843
|
+
/**
|
|
844
|
+
* Requires sync:write. Starts the initial scan. Repeating this call preserves the existing cursor and coverage.
|
|
845
|
+
* @summary Enable managed invoice sync for a sandbox book
|
|
846
|
+
*/
|
|
847
|
+
export declare const enableInvoiceSyncPathIdMin = 1;
|
|
848
|
+
export declare const EnableInvoiceSyncParams: zod.ZodObject<{
|
|
849
|
+
id: zod.ZodString;
|
|
850
|
+
}, zod.z.core.$strip>;
|
|
851
|
+
export declare const enableInvoiceSyncResponseConnectionIdMin = 1;
|
|
852
|
+
export declare const EnableInvoiceSyncResponse: zod.ZodObject<{
|
|
853
|
+
connectionId: zod.ZodString;
|
|
854
|
+
resource: zod.ZodEnum<{
|
|
855
|
+
invoices: "invoices";
|
|
856
|
+
}>;
|
|
857
|
+
status: zod.ZodEnum<{
|
|
858
|
+
initializing: "initializing";
|
|
859
|
+
syncing: "syncing";
|
|
860
|
+
current: "current";
|
|
861
|
+
unavailable: "unavailable";
|
|
862
|
+
}>;
|
|
863
|
+
coveredThrough: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
864
|
+
lastAttemptAt: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
865
|
+
lastFailure: zod.ZodExactOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"source_offline">, zod.ZodLiteral<"wrong_book">, zod.ZodLiteral<"permission_denied">, zod.ZodLiteral<"book_diverged">, zod.ZodLiteral<"storage_error">, zod.ZodLiteral<"source_history_gap">, zod.ZodLiteral<null>]>>>;
|
|
866
|
+
}, zod.z.core.$strip>;
|
|
867
|
+
/**
|
|
868
|
+
* Requires sync:read. Returns the latest committed coverage. Before the first complete scan coveredThrough is null. During an interruption it remains at the last completed scan.
|
|
869
|
+
* @summary Read invoice sync coverage for a sandbox book
|
|
870
|
+
*/
|
|
871
|
+
export declare const retrieveInvoiceSyncPathIdMin = 1;
|
|
872
|
+
export declare const RetrieveInvoiceSyncParams: zod.ZodObject<{
|
|
873
|
+
id: zod.ZodString;
|
|
874
|
+
}, zod.z.core.$strip>;
|
|
875
|
+
export declare const retrieveInvoiceSyncResponseConnectionIdMin = 1;
|
|
876
|
+
export declare const RetrieveInvoiceSyncResponse: zod.ZodObject<{
|
|
877
|
+
connectionId: zod.ZodString;
|
|
878
|
+
resource: zod.ZodEnum<{
|
|
879
|
+
invoices: "invoices";
|
|
880
|
+
}>;
|
|
881
|
+
status: zod.ZodEnum<{
|
|
882
|
+
initializing: "initializing";
|
|
883
|
+
syncing: "syncing";
|
|
884
|
+
current: "current";
|
|
885
|
+
unavailable: "unavailable";
|
|
886
|
+
}>;
|
|
887
|
+
coveredThrough: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
888
|
+
lastAttemptAt: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
889
|
+
lastFailure: zod.ZodExactOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"source_offline">, zod.ZodLiteral<"wrong_book">, zod.ZodLiteral<"permission_denied">, zod.ZodLiteral<"book_diverged">, zod.ZodLiteral<"storage_error">, zod.ZodLiteral<"source_history_gap">, zod.ZodLiteral<null>]>>>;
|
|
890
|
+
}, zod.z.core.$strip>;
|
|
891
|
+
/**
|
|
892
|
+
* Requires sync:write. Starts the initial scan. Repeating this call preserves the existing cursor and coverage.
|
|
893
|
+
* @summary Enable managed received-payment sync for a sandbox book
|
|
894
|
+
*/
|
|
895
|
+
export declare const enableReceivedPaymentSyncPathIdMin = 1;
|
|
896
|
+
export declare const EnableReceivedPaymentSyncParams: zod.ZodObject<{
|
|
897
|
+
id: zod.ZodString;
|
|
898
|
+
}, zod.z.core.$strip>;
|
|
899
|
+
export declare const enableReceivedPaymentSyncResponseConnectionIdMin = 1;
|
|
900
|
+
export declare const EnableReceivedPaymentSyncResponse: zod.ZodObject<{
|
|
901
|
+
connectionId: zod.ZodString;
|
|
902
|
+
resource: zod.ZodEnum<{
|
|
903
|
+
received_payments: "received_payments";
|
|
904
|
+
}>;
|
|
905
|
+
status: zod.ZodEnum<{
|
|
906
|
+
initializing: "initializing";
|
|
907
|
+
syncing: "syncing";
|
|
908
|
+
current: "current";
|
|
909
|
+
unavailable: "unavailable";
|
|
910
|
+
}>;
|
|
911
|
+
coveredThrough: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
912
|
+
lastAttemptAt: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
913
|
+
lastFailure: zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"source_offline">, zod.ZodLiteral<"wrong_book">, zod.ZodLiteral<"book_diverged">, zod.ZodLiteral<"page_lost">, zod.ZodLiteral<"storage_error">, zod.ZodLiteral<null>]>>;
|
|
914
|
+
}, zod.z.core.$strip>;
|
|
915
|
+
/**
|
|
916
|
+
* Requires sync:read. Returns the latest committed coverage. Before the first complete scan coveredThrough is null. During an interruption it remains at the last completed scan. A successful scan clears lastFailure.
|
|
917
|
+
* @summary Read received-payment sync coverage for a sandbox book
|
|
918
|
+
*/
|
|
919
|
+
export declare const retrieveReceivedPaymentSyncPathIdMin = 1;
|
|
920
|
+
export declare const RetrieveReceivedPaymentSyncParams: zod.ZodObject<{
|
|
921
|
+
id: zod.ZodString;
|
|
922
|
+
}, zod.z.core.$strip>;
|
|
923
|
+
export declare const retrieveReceivedPaymentSyncResponseConnectionIdMin = 1;
|
|
924
|
+
export declare const RetrieveReceivedPaymentSyncResponse: zod.ZodObject<{
|
|
925
|
+
connectionId: zod.ZodString;
|
|
926
|
+
resource: zod.ZodEnum<{
|
|
927
|
+
received_payments: "received_payments";
|
|
928
|
+
}>;
|
|
929
|
+
status: zod.ZodEnum<{
|
|
930
|
+
initializing: "initializing";
|
|
931
|
+
syncing: "syncing";
|
|
932
|
+
current: "current";
|
|
933
|
+
unavailable: "unavailable";
|
|
934
|
+
}>;
|
|
935
|
+
coveredThrough: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
936
|
+
lastAttemptAt: zod.ZodNullable<zod.z.ZodISODateTime>;
|
|
937
|
+
lastFailure: zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"source_offline">, zod.ZodLiteral<"wrong_book">, zod.ZodLiteral<"book_diverged">, zod.ZodLiteral<"page_lost">, zod.ZodLiteral<"storage_error">, zod.ZodLiteral<null>]>>;
|
|
938
|
+
}, zod.z.core.$strip>;
|
|
939
|
+
/**
|
|
940
|
+
* Requires sync:read. The first page pins the latest complete snapshot for this sandbox connection. Pass nextCursor as after to keep the same cutoff on subsequent pages. Subscribe to invoice.created, invoice.updated, invoice.voided, and invoice.deleted before starting the import. Voided invoices remain in the snapshot with status voided. A confirmed deletion removes the invoice from subsequent snapshots. After the import, apply the absolute balance and observed details as one invoice revision. Keep the latest revision per invoice so a late page or redelivery cannot overwrite a newer edit.
|
|
941
|
+
* @summary Page through invoices at a completed sync cutoff
|
|
942
|
+
*/
|
|
943
|
+
export declare const listSyncedInvoicesPathIdMin = 1;
|
|
944
|
+
export declare const ListSyncedInvoicesParams: zod.ZodObject<{
|
|
945
|
+
id: zod.ZodString;
|
|
946
|
+
}, zod.z.core.$strip>;
|
|
947
|
+
export declare const listSyncedInvoicesQueryAfterMin = 1;
|
|
948
|
+
export declare const listSyncedInvoicesQueryLimitMin = 1;
|
|
949
|
+
export declare const listSyncedInvoicesQueryLimitMax = 100;
|
|
950
|
+
export declare const ListSyncedInvoicesQueryParams: zod.ZodObject<{
|
|
951
|
+
after: zod.ZodExactOptional<zod.ZodString>;
|
|
952
|
+
limit: zod.ZodExactOptional<zod.ZodInt>;
|
|
953
|
+
}, zod.z.core.$strict>;
|
|
954
|
+
export declare const listSyncedInvoicesResponseConnectionIdMin = 1;
|
|
955
|
+
export declare const listSyncedInvoicesResponseSnapshotRevisionMin = 0;
|
|
956
|
+
export declare const listSyncedInvoicesResponseInvoicesItemInvoiceIdMin = 1;
|
|
957
|
+
export declare const listSyncedInvoicesResponseInvoicesItemRevisionMin = 1;
|
|
958
|
+
export declare const listSyncedInvoicesResponseInvoicesItemCurrencyMin = 1;
|
|
959
|
+
export declare const listSyncedInvoicesResponseInvoicesItemBalanceDueRegExp: RegExp;
|
|
960
|
+
export declare const listSyncedInvoicesResponseInvoicesItemDetailsCustomerIdMin = 1;
|
|
961
|
+
export declare const listSyncedInvoicesResponseInvoicesItemDetailsExternalReferenceMin = 1;
|
|
962
|
+
export declare const listSyncedInvoicesResponseInvoicesItemDetailsInvoiceNumberMin = 1;
|
|
963
|
+
export declare const listSyncedInvoicesResponseInvoicesItemDetailsIssueDateMin = 1;
|
|
964
|
+
export declare const listSyncedInvoicesResponseInvoicesItemDetailsDueDateMin = 1;
|
|
965
|
+
export declare const listSyncedInvoicesResponseInvoicesItemDetailsTotalMin = 1;
|
|
966
|
+
export declare const listSyncedInvoicesResponseInvoicesItemDetailsSubsidiaryIdMin = 1;
|
|
967
|
+
export declare const listSyncedInvoicesResponseInvoicesItemDetailsDepartmentIdMin = 1;
|
|
968
|
+
export declare const listSyncedInvoicesResponseInvoicesItemDetailsLinesItemItemIdMin = 1;
|
|
969
|
+
export declare const listSyncedInvoicesResponseInvoicesItemDetailsLinesItemUnitPriceMin = 1;
|
|
970
|
+
export declare const listSyncedInvoicesResponseNextCursorMin = 1;
|
|
971
|
+
export declare const ListSyncedInvoicesResponse: zod.ZodObject<{
|
|
972
|
+
connectionId: zod.ZodString;
|
|
973
|
+
snapshotRevision: zod.ZodInt;
|
|
974
|
+
coveredThrough: zod.z.ZodISODateTime;
|
|
975
|
+
invoices: zod.ZodArray<zod.ZodObject<{
|
|
976
|
+
invoiceId: zod.ZodString;
|
|
977
|
+
revision: zod.ZodInt;
|
|
978
|
+
currency: zod.ZodString;
|
|
979
|
+
balanceDue: zod.ZodString;
|
|
980
|
+
status: zod.ZodExactOptional<zod.ZodEnum<{
|
|
981
|
+
voided: "voided";
|
|
982
|
+
}>>;
|
|
983
|
+
details: zod.ZodExactOptional<zod.ZodObject<{
|
|
984
|
+
customerId: zod.ZodExactOptional<zod.ZodString>;
|
|
985
|
+
externalReference: zod.ZodExactOptional<zod.ZodString>;
|
|
986
|
+
invoiceNumber: zod.ZodExactOptional<zod.ZodString>;
|
|
987
|
+
issueDate: zod.ZodExactOptional<zod.ZodString>;
|
|
988
|
+
dueDate: zod.ZodExactOptional<zod.ZodString>;
|
|
989
|
+
total: zod.ZodExactOptional<zod.ZodString>;
|
|
990
|
+
subsidiaryId: zod.ZodExactOptional<zod.ZodString>;
|
|
991
|
+
departmentId: zod.ZodExactOptional<zod.ZodString>;
|
|
992
|
+
lines: zod.ZodExactOptional<zod.ZodArray<zod.ZodObject<{
|
|
993
|
+
itemId: zod.ZodString;
|
|
994
|
+
quantity: zod.ZodNumber;
|
|
995
|
+
unitPrice: zod.ZodString;
|
|
996
|
+
description: zod.ZodExactOptional<zod.ZodString>;
|
|
997
|
+
}, zod.z.core.$strip>>>;
|
|
998
|
+
}, zod.z.core.$strip>>;
|
|
999
|
+
}, zod.z.core.$strip>>;
|
|
1000
|
+
nextCursor: zod.ZodNullable<zod.ZodString>;
|
|
1001
|
+
}, zod.z.core.$strip>;
|
|
1002
|
+
/**
|
|
1003
|
+
* Requires sync:read. Use nextCursor as after for the next page. Each cursor is an observation ID from this connection.
|
|
1004
|
+
* @summary List received payments observed in a sandbox book
|
|
1005
|
+
*/
|
|
1006
|
+
export declare const listObservedPaymentsPathIdMin = 1;
|
|
1007
|
+
export declare const ListObservedPaymentsParams: zod.ZodObject<{
|
|
1008
|
+
id: zod.ZodString;
|
|
1009
|
+
}, zod.z.core.$strip>;
|
|
1010
|
+
export declare const listObservedPaymentsQueryAfterMin = 1;
|
|
1011
|
+
export declare const ListObservedPaymentsQueryParams: zod.ZodObject<{
|
|
1012
|
+
status: zod.ZodExactOptional<zod.ZodEnum<{
|
|
1013
|
+
pending_match: "pending_match";
|
|
1014
|
+
matched: "matched";
|
|
1015
|
+
}>>;
|
|
1016
|
+
after: zod.ZodExactOptional<zod.ZodString>;
|
|
1017
|
+
}, zod.z.core.$strict>;
|
|
1018
|
+
export declare const listObservedPaymentsResponseObservationsItemIdMin = 1;
|
|
1019
|
+
export declare const listObservedPaymentsResponseObservationsItemConnectionIdMin = 1;
|
|
1020
|
+
export declare const listObservedPaymentsResponseObservationsItemPaymentIdMin = 1;
|
|
1021
|
+
export declare const listObservedPaymentsResponseObservationsItemInvoiceIdMin = 1;
|
|
1022
|
+
export declare const listObservedPaymentsResponseObservationsItemAmountRegExp: RegExp;
|
|
1023
|
+
export declare const listObservedPaymentsResponseObservationsItemBalanceDueRegExp: RegExp;
|
|
1024
|
+
export declare const listObservedPaymentsResponseObservationsItemExternalInvoiceIdMin = 1;
|
|
1025
|
+
export declare const listObservedPaymentsResponseNextCursorMin = 1;
|
|
1026
|
+
export declare const ListObservedPaymentsResponse: zod.ZodObject<{
|
|
1027
|
+
observations: zod.ZodArray<zod.ZodObject<{
|
|
1028
|
+
id: zod.ZodString;
|
|
1029
|
+
connectionId: zod.ZodString;
|
|
1030
|
+
provider: zod.ZodEnum<{
|
|
1031
|
+
quickbooksDesktop: "quickbooksDesktop";
|
|
1032
|
+
netsuite: "netsuite";
|
|
1033
|
+
}>;
|
|
1034
|
+
paymentId: zod.ZodString;
|
|
1035
|
+
invoiceId: zod.ZodString;
|
|
1036
|
+
amount: zod.ZodString;
|
|
1037
|
+
currency: zod.ZodEnum<{
|
|
1038
|
+
USD: "USD";
|
|
1039
|
+
}>;
|
|
1040
|
+
balanceDue: zod.ZodString;
|
|
1041
|
+
modifiedAt: zod.z.ZodISODateTime;
|
|
1042
|
+
observedAt: zod.z.ZodISODateTime;
|
|
1043
|
+
status: zod.ZodEnum<{
|
|
1044
|
+
pending_match: "pending_match";
|
|
1045
|
+
matched: "matched";
|
|
1046
|
+
}>;
|
|
1047
|
+
externalInvoiceId: zod.ZodNullable<zod.ZodString>;
|
|
1048
|
+
}, zod.z.core.$strip>>;
|
|
1049
|
+
nextCursor: zod.ZodNullable<zod.ZodString>;
|
|
1050
|
+
}, zod.z.core.$strip>;
|
|
1051
|
+
/**
|
|
1052
|
+
* Requires receivables:match. Use the externalReference of the verified invoice in the original book. Confirming the same association again returns the matched observation. This operation associates existing cash with the SaaS invoice.
|
|
1053
|
+
* @summary Confirm the SaaS invoice for an observed payment
|
|
1054
|
+
*/
|
|
1055
|
+
export declare const matchObservedPaymentPathIdMin = 1;
|
|
1056
|
+
export declare const MatchObservedPaymentParams: zod.ZodObject<{
|
|
1057
|
+
id: zod.ZodString;
|
|
1058
|
+
}, zod.z.core.$strip>;
|
|
1059
|
+
export declare const matchObservedPaymentBodyExternalInvoiceIdMin = 1;
|
|
1060
|
+
export declare const MatchObservedPaymentBody: zod.ZodObject<{
|
|
1061
|
+
externalInvoiceId: zod.ZodString;
|
|
1062
|
+
}, zod.z.core.$strict>;
|
|
1063
|
+
export declare const matchObservedPaymentResponseIdMin = 1;
|
|
1064
|
+
export declare const matchObservedPaymentResponseConnectionIdMin = 1;
|
|
1065
|
+
export declare const matchObservedPaymentResponsePaymentIdMin = 1;
|
|
1066
|
+
export declare const matchObservedPaymentResponseInvoiceIdMin = 1;
|
|
1067
|
+
export declare const matchObservedPaymentResponseAmountRegExp: RegExp;
|
|
1068
|
+
export declare const matchObservedPaymentResponseBalanceDueRegExp: RegExp;
|
|
1069
|
+
export declare const matchObservedPaymentResponseExternalInvoiceIdMin = 1;
|
|
1070
|
+
export declare const MatchObservedPaymentResponse: zod.ZodObject<{
|
|
1071
|
+
id: zod.ZodString;
|
|
1072
|
+
connectionId: zod.ZodString;
|
|
1073
|
+
provider: zod.ZodEnum<{
|
|
1074
|
+
quickbooksDesktop: "quickbooksDesktop";
|
|
1075
|
+
netsuite: "netsuite";
|
|
1076
|
+
}>;
|
|
1077
|
+
paymentId: zod.ZodString;
|
|
1078
|
+
invoiceId: zod.ZodString;
|
|
1079
|
+
amount: zod.ZodString;
|
|
1080
|
+
currency: zod.ZodEnum<{
|
|
1081
|
+
USD: "USD";
|
|
1082
|
+
}>;
|
|
1083
|
+
balanceDue: zod.ZodString;
|
|
1084
|
+
modifiedAt: zod.z.ZodISODateTime;
|
|
1085
|
+
observedAt: zod.z.ZodISODateTime;
|
|
1086
|
+
status: zod.ZodEnum<{
|
|
1087
|
+
pending_match: "pending_match";
|
|
1088
|
+
matched: "matched";
|
|
1089
|
+
}>;
|
|
1090
|
+
externalInvoiceId: zod.ZodNullable<zod.ZodString>;
|
|
1091
|
+
}, zod.z.core.$strip>;
|
|
1092
|
+
/**
|
|
1093
|
+
* The service persists an operation before acknowledging it. Replay the same key and payload on the same connection and book configuration to recover the original operation ID. Poll that operation for the ERP readback. The JSON body is limited to 65536 bytes.
|
|
1094
|
+
* @summary Admit one invoice intent for one connection
|
|
1095
|
+
*/
|
|
1096
|
+
export declare const createInvoiceBodyConnectionIdMin = 1;
|
|
1097
|
+
export declare const createInvoiceBodyCustomerRefExternalIdMin = 1;
|
|
1098
|
+
export declare const createInvoiceBodyExternalReferenceMin = 1;
|
|
1099
|
+
export declare const createInvoiceBodyLinesItemItemRefExternalIdMin = 1;
|
|
1100
|
+
export declare const createInvoiceBodyLinesItemQuantityMin = 1;
|
|
1101
|
+
export declare const createInvoiceBodyLinesItemQuantityMax = 9007199254740991;
|
|
1102
|
+
export declare const createInvoiceBodyLinesItemUnitPriceRegExp: RegExp;
|
|
1103
|
+
export declare const createInvoiceBodyLinesMin = 1;
|
|
1104
|
+
export declare const createInvoiceBodyProviderOptionsNetsuiteSubsidiaryIdMin = 1;
|
|
1105
|
+
export declare const createInvoiceBodyProviderOptionsNetsuiteDepartmentIdRegExp: RegExp;
|
|
1106
|
+
export declare const CreateInvoiceBody: zod.ZodObject<{
|
|
1107
|
+
connectionId: zod.ZodString;
|
|
1108
|
+
customerRef: zod.ZodObject<{
|
|
1109
|
+
externalId: zod.ZodString;
|
|
1110
|
+
}, zod.z.core.$strict>;
|
|
1111
|
+
externalReference: zod.ZodString;
|
|
1112
|
+
currency: zod.ZodEnum<{
|
|
1113
|
+
USD: "USD";
|
|
1114
|
+
}>;
|
|
1115
|
+
lines: zod.ZodArray<zod.ZodObject<{
|
|
1116
|
+
itemRef: zod.ZodObject<{
|
|
1117
|
+
externalId: zod.ZodString;
|
|
1118
|
+
}, zod.z.core.$strict>;
|
|
1119
|
+
quantity: zod.ZodInt;
|
|
1120
|
+
unitPrice: zod.ZodString;
|
|
1121
|
+
}, zod.z.core.$strict>>;
|
|
1122
|
+
providerOptions: zod.ZodExactOptional<zod.ZodObject<{
|
|
1123
|
+
netsuite: zod.ZodObject<{
|
|
1124
|
+
subsidiaryId: zod.ZodString;
|
|
1125
|
+
departmentId: zod.ZodExactOptional<zod.ZodString>;
|
|
1126
|
+
}, zod.z.core.$strict>;
|
|
1127
|
+
}, zod.z.core.$strict>>;
|
|
1128
|
+
}, zod.z.core.$strict>;
|
|
1129
|
+
export declare const createInvoiceResponseIdMin = 1;
|
|
1130
|
+
export declare const CreateInvoiceResponse: zod.ZodObject<{
|
|
1131
|
+
id: zod.ZodString;
|
|
1132
|
+
}, zod.z.core.$strip>;
|
|
1133
|
+
/**
|
|
1134
|
+
* Requires operations:read. Supply exactly one of requestId, reference or operationId. Search is exact within the authenticated project and environment. A reference searches the original admitted operation; different operations can have the same reference. Rejections without an operation are searchable by request ID. Returns up to 50 recorded requests in increasing recording order. Earlier requests without recorded traces have no entries. An unknown selector or cursor returns an empty page.
|
|
1135
|
+
* @summary Find requests to create an invoice
|
|
1136
|
+
*/
|
|
1137
|
+
export declare const listInvoiceTracesQueryRequestIdMin = 1;
|
|
1138
|
+
export declare const listInvoiceTracesQueryReferenceMin = 1;
|
|
1139
|
+
export declare const listInvoiceTracesQueryOperationIdMin = 1;
|
|
1140
|
+
export declare const listInvoiceTracesQueryConnectionIdMin = 1;
|
|
1141
|
+
export declare const listInvoiceTracesQueryAfterMin = 1;
|
|
1142
|
+
export declare const ListInvoiceTracesQueryParams: zod.ZodObject<{
|
|
1143
|
+
requestId: zod.ZodExactOptional<zod.ZodString>;
|
|
1144
|
+
reference: zod.ZodExactOptional<zod.ZodString>;
|
|
1145
|
+
operationId: zod.ZodExactOptional<zod.ZodString>;
|
|
1146
|
+
connectionId: zod.ZodExactOptional<zod.ZodString>;
|
|
1147
|
+
after: zod.ZodExactOptional<zod.ZodString>;
|
|
1148
|
+
}, zod.z.core.$strict>;
|
|
1149
|
+
export declare const listInvoiceTracesResponseRequestsItemRequestIdMin = 1;
|
|
1150
|
+
export declare const listInvoiceTracesResponseRequestsItemOperationIdMin = 1;
|
|
1151
|
+
export declare const listInvoiceTracesResponseRequestsItemConnectionIdMin = 1;
|
|
1152
|
+
export declare const listInvoiceTracesResponseRequestsItemHttpStatusMin = 100;
|
|
1153
|
+
export declare const listInvoiceTracesResponseRequestsItemHttpStatusMax = 599;
|
|
1154
|
+
export declare const listInvoiceTracesResponseRequestsItemErrorCodeMin = 1;
|
|
1155
|
+
export declare const listInvoiceTracesResponseRequestsMax = 50;
|
|
1156
|
+
export declare const listInvoiceTracesResponseNextCursorMin = 1;
|
|
1157
|
+
export declare const ListInvoiceTracesResponse: zod.ZodObject<{
|
|
1158
|
+
requests: zod.ZodArray<zod.ZodObject<{
|
|
1159
|
+
requestId: zod.ZodString;
|
|
1160
|
+
operationId: zod.ZodNullable<zod.ZodString>;
|
|
1161
|
+
connectionId: zod.ZodNullable<zod.ZodString>;
|
|
1162
|
+
outcome: zod.ZodEnum<{
|
|
1163
|
+
admitted: "admitted";
|
|
1164
|
+
replayed: "replayed";
|
|
1165
|
+
conflict: "conflict";
|
|
1166
|
+
rejected: "rejected";
|
|
1167
|
+
}>;
|
|
1168
|
+
httpStatus: zod.ZodInt;
|
|
1169
|
+
errorCode: zod.ZodNullable<zod.ZodString>;
|
|
1170
|
+
occurredAt: zod.z.ZodISODateTime;
|
|
1171
|
+
}, zod.z.core.$strip>>;
|
|
1172
|
+
nextCursor: zod.ZodNullable<zod.ZodString>;
|
|
1173
|
+
}, zod.z.core.$strip>;
|
|
1174
|
+
/**
|
|
1175
|
+
* Requires operations:read. Returns up to 50 entries in increasing sequence order. Pass nextCursor as after to continue. Historical invoices may have no recorded entries. Reading this endpoint never sends a command to the book.
|
|
1176
|
+
* @summary Read the durable recovery history of a sandbox invoice
|
|
1177
|
+
*/
|
|
1178
|
+
export declare const retrieveInvoiceRecoveryPathIdMin = 1;
|
|
1179
|
+
export declare const RetrieveInvoiceRecoveryParams: zod.ZodObject<{
|
|
1180
|
+
id: zod.ZodString;
|
|
1181
|
+
}, zod.z.core.$strip>;
|
|
1182
|
+
export declare const retrieveInvoiceRecoveryQueryAfterMin = 1;
|
|
1183
|
+
export declare const retrieveInvoiceRecoveryQueryAfterMax = 9007199254740991;
|
|
1184
|
+
export declare const RetrieveInvoiceRecoveryQueryParams: zod.ZodObject<{
|
|
1185
|
+
after: zod.ZodExactOptional<zod.ZodInt>;
|
|
1186
|
+
}, zod.z.core.$strict>;
|
|
1187
|
+
export declare const retrieveInvoiceRecoveryResponseOperationIdMin = 1;
|
|
1188
|
+
export declare const retrieveInvoiceRecoveryResponseEntriesItemSequenceMin = 1;
|
|
1189
|
+
export declare const retrieveInvoiceRecoveryResponseEntriesItemSequenceMax = 9007199254740991;
|
|
1190
|
+
export declare const retrieveInvoiceRecoveryResponseEntriesMax = 50;
|
|
1191
|
+
export declare const retrieveInvoiceRecoveryResponseNextCursorMin = 1;
|
|
1192
|
+
export declare const retrieveInvoiceRecoveryResponseNextCursorMax = 9007199254740991;
|
|
1193
|
+
export declare const RetrieveInvoiceRecoveryResponse: zod.ZodObject<{
|
|
1194
|
+
operationId: zod.ZodString;
|
|
1195
|
+
entries: zod.ZodArray<zod.ZodObject<{
|
|
1196
|
+
sequence: zod.ZodInt;
|
|
1197
|
+
code: zod.ZodEnum<{
|
|
1198
|
+
dispatch_claimed: "dispatch_claimed";
|
|
1199
|
+
book_diverged: "book_diverged";
|
|
1200
|
+
storage_error: "storage_error";
|
|
1201
|
+
internal_error: "internal_error";
|
|
1202
|
+
record_verified: "record_verified";
|
|
1203
|
+
intent_accepted: "intent_accepted";
|
|
1204
|
+
book_unavailable: "book_unavailable";
|
|
1205
|
+
no_candidate: "no_candidate";
|
|
1206
|
+
multiple_candidates: "multiple_candidates";
|
|
1207
|
+
readback_changed: "readback_changed";
|
|
1208
|
+
record_mismatch: "record_mismatch";
|
|
1209
|
+
}>;
|
|
1210
|
+
phase: zod.ZodEnum<{
|
|
1211
|
+
admission: "admission";
|
|
1212
|
+
dispatch: "dispatch";
|
|
1213
|
+
verification: "verification";
|
|
1214
|
+
}>;
|
|
1215
|
+
certainty: zod.ZodEnum<{
|
|
1216
|
+
unknown: "unknown";
|
|
1217
|
+
verified: "verified";
|
|
1218
|
+
not_sent: "not_sent";
|
|
1219
|
+
mismatch: "mismatch";
|
|
1220
|
+
}>;
|
|
1221
|
+
owner: zod.ZodEnum<{
|
|
1222
|
+
none: "none";
|
|
1223
|
+
rowbind: "rowbind";
|
|
1224
|
+
erp_admin: "erp_admin";
|
|
1225
|
+
saas: "saas";
|
|
1226
|
+
}>;
|
|
1227
|
+
nextAction: zod.ZodEnum<{
|
|
1228
|
+
dispatch_once: "dispatch_once";
|
|
1229
|
+
verify_original_book: "verify_original_book";
|
|
1230
|
+
reconcile_book: "reconcile_book";
|
|
1231
|
+
review_mismatch: "review_mismatch";
|
|
1232
|
+
resume_operation: "resume_operation";
|
|
1233
|
+
none: "none";
|
|
1234
|
+
restore_original_book: "restore_original_book";
|
|
1235
|
+
review_candidates: "review_candidates";
|
|
1236
|
+
}>;
|
|
1237
|
+
occurredAt: zod.z.ZodISODateTime;
|
|
1238
|
+
}, zod.z.core.$strip>>;
|
|
1239
|
+
nextCursor: zod.ZodNullable<zod.ZodInt>;
|
|
1240
|
+
}, zod.z.core.$strip>;
|
|
1241
|
+
/**
|
|
1242
|
+
* Requires operations:read. The Worker returns the stored receipt for this project. The invoice pilot can request another reconciliation read against the original book.
|
|
1243
|
+
* @summary Read the operation and its accounting verification result
|
|
1244
|
+
*/
|
|
1245
|
+
export declare const retrieveOperationPathIdMin = 1;
|
|
1246
|
+
export declare const RetrieveOperationParams: zod.ZodObject<{
|
|
1247
|
+
id: zod.ZodString;
|
|
1248
|
+
}, zod.z.core.$strip>;
|
|
1249
|
+
export declare const retrieveOperationResponseOneIdMin = 1;
|
|
1250
|
+
export declare const retrieveOperationResponseOneDiagnosisSequenceMin = 1;
|
|
1251
|
+
export declare const retrieveOperationResponseOneDiagnosisSequenceMax = 9007199254740991;
|
|
1252
|
+
export declare const retrieveOperationResponseTwoIdMin = 1;
|
|
1253
|
+
export declare const retrieveOperationResponseTwoRecordOneIdMin = 1;
|
|
1254
|
+
export declare const retrieveOperationResponseTwoRecordOneConnectionIdMin = 1;
|
|
1255
|
+
export declare const retrieveOperationResponseTwoRecordOneCustomerIdMin = 1;
|
|
1256
|
+
export declare const retrieveOperationResponseTwoRecordOneExternalReferenceMin = 1;
|
|
1257
|
+
export declare const retrieveOperationResponseTwoRecordOneLinesItemItemIdMin = 1;
|
|
1258
|
+
export declare const retrieveOperationResponseTwoRecordOneLinesItemUnitPriceMin = 1;
|
|
1259
|
+
export declare const retrieveOperationResponseTwoRecordOneLinesMin = 1;
|
|
1260
|
+
export declare const retrieveOperationResponseTwoRecordOneTotalMin = 1;
|
|
1261
|
+
export declare const retrieveOperationResponseTwoRecordOneBalanceDueMin = 1;
|
|
1262
|
+
export declare const retrieveOperationResponseTwoRecordOneSubsidiaryIdMin = 1;
|
|
1263
|
+
export declare const retrieveOperationResponseTwoRecordOneDepartmentIdRegExp: RegExp;
|
|
1264
|
+
export declare const retrieveOperationResponseTwoRecordTwoIdMin = 1;
|
|
1265
|
+
export declare const retrieveOperationResponseTwoRecordTwoConnectionIdMin = 1;
|
|
1266
|
+
export declare const retrieveOperationResponseTwoRecordTwoCustomerIdMin = 1;
|
|
1267
|
+
export declare const retrieveOperationResponseTwoRecordTwoAmountRegExp: RegExp;
|
|
1268
|
+
export declare const retrieveOperationResponseTwoRecordTwoInvoiceIdMin = 1;
|
|
1269
|
+
export declare const retrieveOperationResponseTwoRecordTwoBalanceDueRegExp: RegExp;
|
|
1270
|
+
export declare const retrieveOperationResponseTwoRecordThreeIdMin = 1;
|
|
1271
|
+
export declare const retrieveOperationResponseTwoRecordThreeConnectionIdMin = 1;
|
|
1272
|
+
export declare const retrieveOperationResponseTwoRecordThreeCustomerIdMin = 1;
|
|
1273
|
+
export declare const retrieveOperationResponseTwoRecordThreeAmountRegExp: RegExp;
|
|
1274
|
+
export declare const retrieveOperationResponseTwoRecordThreeRemainingCreditRegExp: RegExp;
|
|
1275
|
+
export declare const retrieveOperationResponseTwoRecordFourIdMin = 1;
|
|
1276
|
+
export declare const retrieveOperationResponseTwoRecordFourConnectionIdMin = 1;
|
|
1277
|
+
export declare const retrieveOperationResponseTwoRecordFourCustomerIdMin = 1;
|
|
1278
|
+
export declare const retrieveOperationResponseTwoRecordFourAmountRegExp: RegExp;
|
|
1279
|
+
export declare const retrieveOperationResponseTwoRecordFourInvoiceIdMin = 1;
|
|
1280
|
+
export declare const retrieveOperationResponseTwoRecordFourCreditMemoIdMin = 1;
|
|
1281
|
+
export declare const retrieveOperationResponseTwoRecordFourBalanceDueRegExp: RegExp;
|
|
1282
|
+
export declare const retrieveOperationResponseTwoRecordFourRemainingCreditRegExp: RegExp;
|
|
1283
|
+
export declare const retrieveOperationResponseThreeIdMin = 1;
|
|
1284
|
+
export declare const retrieveOperationResponseThreeCodeMin = 1;
|
|
1285
|
+
export declare const retrieveOperationResponseThreeMessageMin = 1;
|
|
1286
|
+
export declare const RetrieveOperationResponse: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
1287
|
+
id: zod.ZodString;
|
|
1288
|
+
status: zod.ZodEnum<{
|
|
1289
|
+
pending: "pending";
|
|
1290
|
+
}>;
|
|
1291
|
+
detail: zod.ZodExactOptional<zod.ZodString>;
|
|
1292
|
+
diagnosis: zod.ZodExactOptional<zod.ZodObject<{
|
|
1293
|
+
sequence: zod.ZodInt;
|
|
1294
|
+
code: zod.ZodEnum<{
|
|
1295
|
+
dispatch_claimed: "dispatch_claimed";
|
|
1296
|
+
book_diverged: "book_diverged";
|
|
1297
|
+
storage_error: "storage_error";
|
|
1298
|
+
internal_error: "internal_error";
|
|
1299
|
+
record_verified: "record_verified";
|
|
1300
|
+
intent_accepted: "intent_accepted";
|
|
1301
|
+
book_unavailable: "book_unavailable";
|
|
1302
|
+
no_candidate: "no_candidate";
|
|
1303
|
+
multiple_candidates: "multiple_candidates";
|
|
1304
|
+
readback_changed: "readback_changed";
|
|
1305
|
+
record_mismatch: "record_mismatch";
|
|
1306
|
+
}>;
|
|
1307
|
+
phase: zod.ZodEnum<{
|
|
1308
|
+
admission: "admission";
|
|
1309
|
+
dispatch: "dispatch";
|
|
1310
|
+
verification: "verification";
|
|
1311
|
+
}>;
|
|
1312
|
+
certainty: zod.ZodEnum<{
|
|
1313
|
+
unknown: "unknown";
|
|
1314
|
+
verified: "verified";
|
|
1315
|
+
not_sent: "not_sent";
|
|
1316
|
+
mismatch: "mismatch";
|
|
1317
|
+
}>;
|
|
1318
|
+
owner: zod.ZodEnum<{
|
|
1319
|
+
none: "none";
|
|
1320
|
+
rowbind: "rowbind";
|
|
1321
|
+
erp_admin: "erp_admin";
|
|
1322
|
+
saas: "saas";
|
|
1323
|
+
}>;
|
|
1324
|
+
nextAction: zod.ZodEnum<{
|
|
1325
|
+
dispatch_once: "dispatch_once";
|
|
1326
|
+
verify_original_book: "verify_original_book";
|
|
1327
|
+
reconcile_book: "reconcile_book";
|
|
1328
|
+
review_mismatch: "review_mismatch";
|
|
1329
|
+
resume_operation: "resume_operation";
|
|
1330
|
+
none: "none";
|
|
1331
|
+
restore_original_book: "restore_original_book";
|
|
1332
|
+
review_candidates: "review_candidates";
|
|
1333
|
+
}>;
|
|
1334
|
+
occurredAt: zod.z.ZodISODateTime;
|
|
1335
|
+
}, zod.z.core.$strip>>;
|
|
1336
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
1337
|
+
id: zod.ZodString;
|
|
1338
|
+
status: zod.ZodEnum<{
|
|
1339
|
+
verified: "verified";
|
|
1340
|
+
}>;
|
|
1341
|
+
record: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
1342
|
+
kind: zod.ZodEnum<{
|
|
1343
|
+
invoice: "invoice";
|
|
1344
|
+
}>;
|
|
1345
|
+
id: zod.ZodString;
|
|
1346
|
+
connectionId: zod.ZodString;
|
|
1347
|
+
customerId: zod.ZodString;
|
|
1348
|
+
externalReference: zod.ZodString;
|
|
1349
|
+
currency: zod.ZodEnum<{
|
|
1350
|
+
USD: "USD";
|
|
1351
|
+
}>;
|
|
1352
|
+
lines: zod.ZodArray<zod.ZodObject<{
|
|
1353
|
+
itemId: zod.ZodString;
|
|
1354
|
+
quantity: zod.ZodNumber;
|
|
1355
|
+
unitPrice: zod.ZodString;
|
|
1356
|
+
description: zod.ZodExactOptional<zod.ZodString>;
|
|
1357
|
+
}, zod.z.core.$strip>>;
|
|
1358
|
+
total: zod.ZodString;
|
|
1359
|
+
balanceDue: zod.ZodString;
|
|
1360
|
+
subsidiaryId: zod.ZodExactOptional<zod.ZodString>;
|
|
1361
|
+
departmentId: zod.ZodExactOptional<zod.ZodString>;
|
|
1362
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
1363
|
+
kind: zod.ZodEnum<{
|
|
1364
|
+
received_payment: "received_payment";
|
|
1365
|
+
}>;
|
|
1366
|
+
id: zod.ZodString;
|
|
1367
|
+
connectionId: zod.ZodString;
|
|
1368
|
+
customerId: zod.ZodString;
|
|
1369
|
+
currency: zod.ZodEnum<{
|
|
1370
|
+
USD: "USD";
|
|
1371
|
+
}>;
|
|
1372
|
+
amount: zod.ZodString;
|
|
1373
|
+
invoiceId: zod.ZodString;
|
|
1374
|
+
balanceDue: zod.ZodString;
|
|
1375
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
1376
|
+
kind: zod.ZodEnum<{
|
|
1377
|
+
credit_memo: "credit_memo";
|
|
1378
|
+
}>;
|
|
1379
|
+
id: zod.ZodString;
|
|
1380
|
+
connectionId: zod.ZodString;
|
|
1381
|
+
customerId: zod.ZodString;
|
|
1382
|
+
currency: zod.ZodEnum<{
|
|
1383
|
+
USD: "USD";
|
|
1384
|
+
}>;
|
|
1385
|
+
amount: zod.ZodString;
|
|
1386
|
+
remainingCredit: zod.ZodString;
|
|
1387
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
1388
|
+
kind: zod.ZodEnum<{
|
|
1389
|
+
credit_application: "credit_application";
|
|
1390
|
+
}>;
|
|
1391
|
+
id: zod.ZodString;
|
|
1392
|
+
connectionId: zod.ZodString;
|
|
1393
|
+
customerId: zod.ZodString;
|
|
1394
|
+
currency: zod.ZodEnum<{
|
|
1395
|
+
USD: "USD";
|
|
1396
|
+
}>;
|
|
1397
|
+
amount: zod.ZodString;
|
|
1398
|
+
invoiceId: zod.ZodString;
|
|
1399
|
+
creditMemoId: zod.ZodString;
|
|
1400
|
+
balanceDue: zod.ZodString;
|
|
1401
|
+
remainingCredit: zod.ZodString;
|
|
1402
|
+
}, zod.z.core.$strip>]>;
|
|
1403
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
1404
|
+
id: zod.ZodString;
|
|
1405
|
+
status: zod.ZodEnum<{
|
|
1406
|
+
rejected: "rejected";
|
|
1407
|
+
verification_mismatch: "verification_mismatch";
|
|
1408
|
+
}>;
|
|
1409
|
+
code: zod.ZodString;
|
|
1410
|
+
message: zod.ZodString;
|
|
1411
|
+
}, zod.z.core.$strip>]>;
|