@rowbind/sdk 0.1.0-alpha.1 → 0.1.0-canary.130
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 +101 -1
- package/dist/generated/http.d.ts +380 -2
- package/dist/generated/http.js +195 -2
- package/dist/generated/validators.d.ts +413 -3
- package/dist/generated/validators.js +355 -2
- package/dist/http-request.js +2 -1
- package/dist/index.d.ts +58 -2
- package/dist/index.js +35 -1
- package/dist/invoice-custom-fields.d.ts +42 -0
- package/dist/invoice-custom-fields.js +105 -0
- package/dist/transport.d.ts +11 -1
- package/dist/transport.js +132 -1
- package/dist/wire.d.ts +1 -1
- package/dist/wire.js +1 -1
- package/package.json +60 -78
|
@@ -72,7 +72,87 @@ export declare const LinkCatalogResponse: zod.ZodObject<{
|
|
|
72
72
|
nativeId: zod.ZodString;
|
|
73
73
|
}, zod.z.core.$strip>;
|
|
74
74
|
/**
|
|
75
|
-
* Requires
|
|
75
|
+
* Requires inventory:read and the book's native-read consent. Supply the native ID of an item in this book. Sandbox QuickBooks Desktop stock is grouped by site. Sandbox NetSuite exposes a book total. For a requested site, only a verified site-level observation can succeed. On-hand quantity is reported as an exact decimal string. This is not a reservation or available-to-promise amount. Enrolled connectors require a native inventory reader.
|
|
76
|
+
* @summary Read the observed stock levels for one native item
|
|
77
|
+
*/
|
|
78
|
+
export declare const listInventoryLevelsPathIdMin = 1;
|
|
79
|
+
export declare const listInventoryLevelsPathIdMax = 255;
|
|
80
|
+
export declare const listInventoryLevelsPathIdRegExp: RegExp;
|
|
81
|
+
export declare const ListInventoryLevelsParams: zod.ZodObject<{
|
|
82
|
+
id: zod.ZodString;
|
|
83
|
+
}, zod.z.core.$strip>;
|
|
84
|
+
export declare const listInventoryLevelsQueryItemIdMin = 1;
|
|
85
|
+
export declare const listInventoryLevelsQueryItemIdMax = 255;
|
|
86
|
+
export declare const listInventoryLevelsQueryItemIdRegExp: RegExp;
|
|
87
|
+
export declare const listInventoryLevelsQuerySiteIdMin = 1;
|
|
88
|
+
export declare const listInventoryLevelsQuerySiteIdMax = 255;
|
|
89
|
+
export declare const listInventoryLevelsQuerySiteIdRegExp: RegExp;
|
|
90
|
+
export declare const ListInventoryLevelsQueryParams: zod.ZodObject<{
|
|
91
|
+
itemId: zod.ZodString;
|
|
92
|
+
siteId: zod.ZodExactOptional<zod.ZodString>;
|
|
93
|
+
}, zod.z.core.$strict>;
|
|
94
|
+
export declare const listInventoryLevelsResponseOneOneConnectionIdMin = 1;
|
|
95
|
+
export declare const listInventoryLevelsResponseOneOneConnectionIdMax = 255;
|
|
96
|
+
export declare const listInventoryLevelsResponseOneOneConnectionIdRegExp: RegExp;
|
|
97
|
+
export declare const listInventoryLevelsResponseOneOneItemIdMin = 1;
|
|
98
|
+
export declare const listInventoryLevelsResponseOneOneItemIdMax = 255;
|
|
99
|
+
export declare const listInventoryLevelsResponseOneOneItemIdRegExp: RegExp;
|
|
100
|
+
export declare const listInventoryLevelsResponseOneOneUnitMin = 1;
|
|
101
|
+
export declare const listInventoryLevelsResponseOneTwoOnHandRegExp: RegExp;
|
|
102
|
+
export declare const listInventoryLevelsResponseTwoOneConnectionIdMin = 1;
|
|
103
|
+
export declare const listInventoryLevelsResponseTwoOneConnectionIdMax = 255;
|
|
104
|
+
export declare const listInventoryLevelsResponseTwoOneConnectionIdRegExp: RegExp;
|
|
105
|
+
export declare const listInventoryLevelsResponseTwoOneItemIdMin = 1;
|
|
106
|
+
export declare const listInventoryLevelsResponseTwoOneItemIdMax = 255;
|
|
107
|
+
export declare const listInventoryLevelsResponseTwoOneItemIdRegExp: RegExp;
|
|
108
|
+
export declare const listInventoryLevelsResponseTwoOneUnitMin = 1;
|
|
109
|
+
export declare const listInventoryLevelsResponseTwoTwoLevelsItemSiteIdMin = 1;
|
|
110
|
+
export declare const listInventoryLevelsResponseTwoTwoLevelsItemSiteIdMax = 255;
|
|
111
|
+
export declare const listInventoryLevelsResponseTwoTwoLevelsItemSiteIdRegExp: RegExp;
|
|
112
|
+
export declare const listInventoryLevelsResponseTwoTwoLevelsItemOnHandRegExp: RegExp;
|
|
113
|
+
export declare const listInventoryLevelsResponseTwoTwoLevelsMin = 1;
|
|
114
|
+
export declare const ListInventoryLevelsResponse: zod.ZodUnion<readonly [zod.ZodIntersection<zod.ZodObject<{
|
|
115
|
+
connectionId: zod.ZodString;
|
|
116
|
+
provider: zod.ZodEnum<{
|
|
117
|
+
quickbooksDesktop: "quickbooksDesktop";
|
|
118
|
+
netsuite: "netsuite";
|
|
119
|
+
}>;
|
|
120
|
+
itemId: zod.ZodString;
|
|
121
|
+
source: zod.ZodEnum<{
|
|
122
|
+
sandbox: "sandbox";
|
|
123
|
+
erp: "erp";
|
|
124
|
+
}>;
|
|
125
|
+
unit: zod.ZodString;
|
|
126
|
+
observedAt: zod.z.ZodISODateTime;
|
|
127
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
128
|
+
granularity: zod.ZodEnum<{
|
|
129
|
+
book: "book";
|
|
130
|
+
}>;
|
|
131
|
+
onHand: zod.ZodString;
|
|
132
|
+
}, zod.z.core.$strip>>, zod.ZodIntersection<zod.ZodObject<{
|
|
133
|
+
connectionId: zod.ZodString;
|
|
134
|
+
provider: zod.ZodEnum<{
|
|
135
|
+
quickbooksDesktop: "quickbooksDesktop";
|
|
136
|
+
netsuite: "netsuite";
|
|
137
|
+
}>;
|
|
138
|
+
itemId: zod.ZodString;
|
|
139
|
+
source: zod.ZodEnum<{
|
|
140
|
+
sandbox: "sandbox";
|
|
141
|
+
erp: "erp";
|
|
142
|
+
}>;
|
|
143
|
+
unit: zod.ZodString;
|
|
144
|
+
observedAt: zod.z.ZodISODateTime;
|
|
145
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
146
|
+
granularity: zod.ZodEnum<{
|
|
147
|
+
site: "site";
|
|
148
|
+
}>;
|
|
149
|
+
levels: zod.ZodArray<zod.ZodObject<{
|
|
150
|
+
siteId: zod.ZodString;
|
|
151
|
+
onHand: zod.ZodString;
|
|
152
|
+
}, zod.z.core.$strip>>;
|
|
153
|
+
}, zod.z.core.$strip>>]>;
|
|
154
|
+
/**
|
|
155
|
+
* Requires raw:query and the book's native-query consent. In QuickBooks Desktop submit JSON with provider quickbooksDesktop and qbxml containing one read-only XML fragment. The enrolled QuickBooks Web Connector pilot accepts a single read without iterator attributes within a bounded wait. Simulated books reproduce specific fixtures. For NetSuite send a SuiteQL SELECT with q and optional limit and offset. The response is native XML or a page of SuiteQL rows.
|
|
76
156
|
* @summary Query an authorized book in its native language
|
|
77
157
|
*/
|
|
78
158
|
export declare const queryRawPathIdMin = 1;
|
|
@@ -124,7 +204,7 @@ export declare const QueryRawResponse: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
|
124
204
|
}, zod.z.core.$loose>;
|
|
125
205
|
}, zod.z.core.$strip>]>;
|
|
126
206
|
/**
|
|
127
|
-
* Requires raw:read.
|
|
207
|
+
* Requires raw:read. Simulated books accept one qbXML InvoiceQueryRq fragment containing a single TxnID, or a SuiteTalk GET on /services/rest/record/v1/invoice/{nativeId}. A configured connector without a native snapshot reader returns 503. Successful calls include a fresh X-Request-Id header.
|
|
128
208
|
* @summary Read a native invoice from a consenting sandbox book
|
|
129
209
|
*/
|
|
130
210
|
export declare const readRawPathIdMin = 1;
|
|
@@ -162,6 +242,157 @@ export declare const ReadRawResponse: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
|
162
242
|
id: zod.ZodString;
|
|
163
243
|
}, zod.z.core.$loose>;
|
|
164
244
|
}, zod.z.core.$strip>]>;
|
|
245
|
+
/**
|
|
246
|
+
* Requires raw:query, native-query consent, and an enrolled QuickBooks Desktop pilot connector. Returns the current name, revision, and account number.
|
|
247
|
+
* @summary Read a native QuickBooks Desktop vendor by ListID
|
|
248
|
+
*/
|
|
249
|
+
export declare const retrieveQuickBooksVendorPathIdMin = 1;
|
|
250
|
+
export declare const retrieveQuickBooksVendorPathListIdMin = 1;
|
|
251
|
+
export declare const retrieveQuickBooksVendorPathListIdMax = 36;
|
|
252
|
+
export declare const RetrieveQuickBooksVendorParams: zod.ZodObject<{
|
|
253
|
+
id: zod.ZodString;
|
|
254
|
+
listId: zod.ZodString;
|
|
255
|
+
}, zod.z.core.$strip>;
|
|
256
|
+
export declare const RetrieveQuickBooksVendorResponse: zod.ZodObject<{
|
|
257
|
+
listId: zod.ZodString;
|
|
258
|
+
name: zod.ZodString;
|
|
259
|
+
editSequence: zod.ZodString;
|
|
260
|
+
accountNumber: zod.ZodNullable<zod.ZodString>;
|
|
261
|
+
}, zod.z.core.$strip>;
|
|
262
|
+
/**
|
|
263
|
+
* Requires raw:query, native-query consent, and an enrolled QuickBooks Desktop pilot connector. Returns the current revision, class, terms and an exact decimal balance when QuickBooks supplies it.
|
|
264
|
+
* @summary Read native QuickBooks Desktop invoice details by TxnID
|
|
265
|
+
*/
|
|
266
|
+
export declare const retrieveQuickBooksInvoicePathIdMin = 1;
|
|
267
|
+
export declare const retrieveQuickBooksInvoicePathTxnIdMin = 1;
|
|
268
|
+
export declare const retrieveQuickBooksInvoicePathTxnIdMax = 36;
|
|
269
|
+
export declare const RetrieveQuickBooksInvoiceParams: zod.ZodObject<{
|
|
270
|
+
id: zod.ZodString;
|
|
271
|
+
txnId: zod.ZodString;
|
|
272
|
+
}, zod.z.core.$strip>;
|
|
273
|
+
export declare const RetrieveQuickBooksInvoiceResponse: zod.ZodObject<{
|
|
274
|
+
txnId: zod.ZodString;
|
|
275
|
+
editSequence: zod.ZodString;
|
|
276
|
+
reference: zod.ZodNullable<zod.ZodString>;
|
|
277
|
+
transactionDate: zod.z.ZodISODate;
|
|
278
|
+
classId: zod.ZodNullable<zod.ZodString>;
|
|
279
|
+
termsId: zod.ZodNullable<zod.ZodString>;
|
|
280
|
+
balanceDue: zod.ZodNullable<zod.ZodString>;
|
|
281
|
+
}, zod.z.core.$strip>;
|
|
282
|
+
/**
|
|
283
|
+
* Requires raw:query, native-query consent, and an enrolled QuickBooks Desktop pilot connector. Pass both dates or omit both to use QuickBooks' default period. Cells preserve native text and missing values.
|
|
284
|
+
* @summary Read a native QuickBooks Desktop trial balance
|
|
285
|
+
*/
|
|
286
|
+
export declare const getQuickBooksTrialBalancePathIdMin = 1;
|
|
287
|
+
export declare const GetQuickBooksTrialBalanceParams: zod.ZodObject<{
|
|
288
|
+
id: zod.ZodString;
|
|
289
|
+
}, zod.z.core.$strip>;
|
|
290
|
+
export declare const GetQuickBooksTrialBalanceQueryParams: zod.ZodObject<{
|
|
291
|
+
from: zod.ZodExactOptional<zod.z.ZodISODate>;
|
|
292
|
+
to: zod.ZodExactOptional<zod.z.ZodISODate>;
|
|
293
|
+
basis: zod.ZodExactOptional<zod.ZodEnum<{
|
|
294
|
+
accrual: "accrual";
|
|
295
|
+
cash: "cash";
|
|
296
|
+
}>>;
|
|
297
|
+
}, zod.z.core.$strict>;
|
|
298
|
+
export declare const getQuickBooksTrialBalanceResponseRowsItemNumberMin = 1;
|
|
299
|
+
export declare const GetQuickBooksTrialBalanceResponse: zod.ZodObject<{
|
|
300
|
+
title: zod.ZodString;
|
|
301
|
+
basis: zod.ZodNullable<zod.ZodString>;
|
|
302
|
+
columns: zod.ZodArray<zod.ZodObject<{
|
|
303
|
+
id: zod.ZodString;
|
|
304
|
+
type: zod.ZodString;
|
|
305
|
+
titles: zod.ZodArray<zod.ZodString>;
|
|
306
|
+
}, zod.z.core.$strip>>;
|
|
307
|
+
rows: zod.ZodArray<zod.ZodObject<{
|
|
308
|
+
number: zod.ZodInt;
|
|
309
|
+
kind: zod.ZodEnum<{
|
|
310
|
+
DataRow: "DataRow";
|
|
311
|
+
TextRow: "TextRow";
|
|
312
|
+
SubtotalRow: "SubtotalRow";
|
|
313
|
+
TotalRow: "TotalRow";
|
|
314
|
+
}>;
|
|
315
|
+
label: zod.ZodNullable<zod.ZodString>;
|
|
316
|
+
cells: zod.ZodArray<zod.ZodObject<{
|
|
317
|
+
columnId: zod.ZodString;
|
|
318
|
+
value: zod.ZodNullable<zod.ZodString>;
|
|
319
|
+
}, zod.z.core.$strip>>;
|
|
320
|
+
}, zod.z.core.$strip>>;
|
|
321
|
+
}, zod.z.core.$strip>;
|
|
322
|
+
/**
|
|
323
|
+
* Sandbox pilot only. Requires raw:write and a book explicitly enrolled for a test vendor edit. Submit one VendorModRq containing ListID, the current EditSequence, and the new AccountNumber. Repeating the same key and XML returns the same operation. Retrieve its result before attempting further changes.
|
|
324
|
+
* @summary Admit a native QuickBooks Desktop test vendor edit
|
|
325
|
+
*/
|
|
326
|
+
export declare const admitRawWritePathIdMin = 1;
|
|
327
|
+
export declare const AdmitRawWriteParams: zod.ZodObject<{
|
|
328
|
+
id: zod.ZodString;
|
|
329
|
+
}, zod.z.core.$strip>;
|
|
330
|
+
export declare const admitRawWriteBodyQbxmlMin = 1;
|
|
331
|
+
export declare const admitRawWriteBodyQbxmlMax = 4096;
|
|
332
|
+
export declare const AdmitRawWriteBody: zod.ZodObject<{
|
|
333
|
+
qbxml: zod.ZodString;
|
|
334
|
+
}, zod.z.core.$strict>;
|
|
335
|
+
export declare const admitRawWriteResponseIdRegExp: RegExp;
|
|
336
|
+
export declare const AdmitRawWriteResponse: zod.ZodObject<{
|
|
337
|
+
id: zod.ZodString;
|
|
338
|
+
}, zod.z.core.$strip>;
|
|
339
|
+
/**
|
|
340
|
+
* Requires raw:write. Read the operation using its original QuickBooks connection. The bridge verifies by reading the same vendor in the original book. A lost acknowledgment can yield pending or a verified observation. Retrieving the operation never resends the write.
|
|
341
|
+
* @summary Retrieve a native vendor edit outcome
|
|
342
|
+
*/
|
|
343
|
+
export declare const retrieveRawWritePathIdMin = 1;
|
|
344
|
+
export declare const retrieveRawWritePathOperationIdRegExp: RegExp;
|
|
345
|
+
export declare const RetrieveRawWriteParams: zod.ZodObject<{
|
|
346
|
+
id: zod.ZodString;
|
|
347
|
+
operationId: zod.ZodString;
|
|
348
|
+
}, zod.z.core.$strip>;
|
|
349
|
+
export declare const retrieveRawWriteResponseOneIdRegExp: RegExp;
|
|
350
|
+
export declare const retrieveRawWriteResponseOneNativeStatusCodeRegExp: RegExp;
|
|
351
|
+
export declare const retrieveRawWriteResponseTwoIdRegExp: RegExp;
|
|
352
|
+
export declare const retrieveRawWriteResponseTwoNativeStatusCodeRegExp: RegExp;
|
|
353
|
+
export declare const retrieveRawWriteResponseThreeIdRegExp: RegExp;
|
|
354
|
+
export declare const retrieveRawWriteResponseThreeRecordListIdMin = 1;
|
|
355
|
+
export declare const retrieveRawWriteResponseThreeRecordEditSequenceMin = 1;
|
|
356
|
+
export declare const retrieveRawWriteResponseThreeRecordAccountNumberMin = 1;
|
|
357
|
+
export declare const retrieveRawWriteResponseThreeRecordQbxmlMin = 1;
|
|
358
|
+
export declare const retrieveRawWriteResponseThreeRecordQbxmlMax = 1048576;
|
|
359
|
+
export declare const retrieveRawWriteResponseThreeNativeStatusCodeRegExp: RegExp;
|
|
360
|
+
export declare const RetrieveRawWriteResponse: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
361
|
+
id: zod.ZodString;
|
|
362
|
+
status: zod.ZodEnum<{
|
|
363
|
+
pending: "pending";
|
|
364
|
+
}>;
|
|
365
|
+
diagnosis: zod.ZodEnum<{
|
|
366
|
+
awaiting_preflight: "awaiting_preflight";
|
|
367
|
+
awaiting_verification: "awaiting_verification";
|
|
368
|
+
effect_unconfirmed: "effect_unconfirmed";
|
|
369
|
+
}>;
|
|
370
|
+
nativeStatusCode: zod.ZodExactOptional<zod.ZodString>;
|
|
371
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
372
|
+
id: zod.ZodString;
|
|
373
|
+
status: zod.ZodEnum<{
|
|
374
|
+
rejected: "rejected";
|
|
375
|
+
}>;
|
|
376
|
+
diagnosis: zod.ZodEnum<{
|
|
377
|
+
edit_sequence_mismatch: "edit_sequence_mismatch";
|
|
378
|
+
value_already_set: "value_already_set";
|
|
379
|
+
native_rejected: "native_rejected";
|
|
380
|
+
}>;
|
|
381
|
+
nativeStatusCode: zod.ZodExactOptional<zod.ZodString>;
|
|
382
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
383
|
+
id: zod.ZodString;
|
|
384
|
+
status: zod.ZodEnum<{
|
|
385
|
+
verified: "verified";
|
|
386
|
+
}>;
|
|
387
|
+
diagnosis: zod.ZodNullable<zod.ZodLiteral<null>>;
|
|
388
|
+
record: zod.ZodObject<{
|
|
389
|
+
listId: zod.ZodString;
|
|
390
|
+
editSequence: zod.ZodString;
|
|
391
|
+
accountNumber: zod.ZodString;
|
|
392
|
+
qbxml: zod.ZodString;
|
|
393
|
+
}, zod.z.core.$strip>;
|
|
394
|
+
nativeStatusCode: zod.ZodExactOptional<zod.ZodString>;
|
|
395
|
+
}, zod.z.core.$strip>]>;
|
|
165
396
|
/**
|
|
166
397
|
* 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
398
|
* @summary Record a received payment applied to an invoice
|
|
@@ -999,6 +1230,185 @@ export declare const ListSyncedInvoicesResponse: zod.ZodObject<{
|
|
|
999
1230
|
}, zod.z.core.$strip>>;
|
|
1000
1231
|
nextCursor: zod.ZodNullable<zod.ZodString>;
|
|
1001
1232
|
}, zod.z.core.$strip>;
|
|
1233
|
+
/**
|
|
1234
|
+
* Requires custom-fields:read and the book's read consent. Returns current invoice header definitions visible in this sandbox book. A configured standalone pilot can expose supported native definitions as read-only. Field IDs and select values are native to this book. Store the schema revision when generating types.
|
|
1235
|
+
* @summary Discover the authorized invoice fields in one book
|
|
1236
|
+
*/
|
|
1237
|
+
export declare const discoverInvoiceCustomFieldsPathIdMin = 1;
|
|
1238
|
+
export declare const DiscoverInvoiceCustomFieldsParams: zod.ZodObject<{
|
|
1239
|
+
id: zod.ZodString;
|
|
1240
|
+
}, zod.z.core.$strip>;
|
|
1241
|
+
export declare const discoverInvoiceCustomFieldsResponseConnectionIdMin = 1;
|
|
1242
|
+
export declare const discoverInvoiceCustomFieldsResponseRevisionMin = 1;
|
|
1243
|
+
export declare const discoverInvoiceCustomFieldsResponseFieldsItemIdMin = 1;
|
|
1244
|
+
export declare const discoverInvoiceCustomFieldsResponseFieldsItemLabelMin = 1;
|
|
1245
|
+
export declare const discoverInvoiceCustomFieldsResponseFieldsItemOptionsItemIdMin = 1;
|
|
1246
|
+
export declare const discoverInvoiceCustomFieldsResponseFieldsItemOptionsItemLabelMin = 1;
|
|
1247
|
+
export declare const discoverInvoiceCustomFieldsResponseFieldsItemMaxLengthMin = 1;
|
|
1248
|
+
export declare const DiscoverInvoiceCustomFieldsResponse: zod.ZodObject<{
|
|
1249
|
+
connectionId: zod.ZodString;
|
|
1250
|
+
provider: zod.ZodEnum<{
|
|
1251
|
+
quickbooksDesktop: "quickbooksDesktop";
|
|
1252
|
+
netsuite: "netsuite";
|
|
1253
|
+
}>;
|
|
1254
|
+
revision: zod.ZodString;
|
|
1255
|
+
fields: zod.ZodArray<zod.ZodObject<{
|
|
1256
|
+
id: zod.ZodString;
|
|
1257
|
+
label: zod.ZodString;
|
|
1258
|
+
type: zod.ZodEnum<{
|
|
1259
|
+
boolean: "boolean";
|
|
1260
|
+
date: "date";
|
|
1261
|
+
text: "text";
|
|
1262
|
+
decimal: "decimal";
|
|
1263
|
+
select: "select";
|
|
1264
|
+
}>;
|
|
1265
|
+
writable: zod.ZodBoolean;
|
|
1266
|
+
nullable: zod.ZodBoolean;
|
|
1267
|
+
options: zod.ZodExactOptional<zod.ZodArray<zod.ZodObject<{
|
|
1268
|
+
id: zod.ZodString;
|
|
1269
|
+
label: zod.ZodString;
|
|
1270
|
+
}, zod.z.core.$strip>>>;
|
|
1271
|
+
maxLength: zod.ZodExactOptional<zod.ZodInt>;
|
|
1272
|
+
}, zod.z.core.$strip>>;
|
|
1273
|
+
}, zod.z.core.$strip>;
|
|
1274
|
+
/**
|
|
1275
|
+
* Requires custom-fields:read and the book's read consent. Reads current invoice header values from the authorized sandbox book. Omitted values have not been set or no longer fit the visible current schema. In the sandbox, null marks an explicitly cleared value. A configured standalone pilot can read supported values directly. Reuse the schema and value revisions in an update.
|
|
1276
|
+
* @summary Read custom field values on one invoice
|
|
1277
|
+
*/
|
|
1278
|
+
export declare const readInvoiceCustomFieldsPathIdMin = 1;
|
|
1279
|
+
export declare const readInvoiceCustomFieldsPathNativeIdMin = 1;
|
|
1280
|
+
export declare const readInvoiceCustomFieldsPathNativeIdRegExp: RegExp;
|
|
1281
|
+
export declare const ReadInvoiceCustomFieldsParams: zod.ZodObject<{
|
|
1282
|
+
id: zod.ZodString;
|
|
1283
|
+
nativeId: zod.ZodString;
|
|
1284
|
+
}, zod.z.core.$strip>;
|
|
1285
|
+
export declare const readInvoiceCustomFieldsResponseConnectionIdMin = 1;
|
|
1286
|
+
export declare const readInvoiceCustomFieldsResponseInvoiceIdMin = 1;
|
|
1287
|
+
export declare const readInvoiceCustomFieldsResponseSchemaRevisionMin = 1;
|
|
1288
|
+
export declare const readInvoiceCustomFieldsResponseRevisionMin = 1;
|
|
1289
|
+
export declare const ReadInvoiceCustomFieldsResponse: zod.ZodObject<{
|
|
1290
|
+
connectionId: zod.ZodString;
|
|
1291
|
+
provider: zod.ZodEnum<{
|
|
1292
|
+
quickbooksDesktop: "quickbooksDesktop";
|
|
1293
|
+
netsuite: "netsuite";
|
|
1294
|
+
}>;
|
|
1295
|
+
invoiceId: zod.ZodString;
|
|
1296
|
+
schemaRevision: zod.ZodString;
|
|
1297
|
+
revision: zod.ZodString;
|
|
1298
|
+
values: zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodNullable<zod.ZodString>, zod.ZodBoolean]>>;
|
|
1299
|
+
}, zod.z.core.$strip>;
|
|
1300
|
+
/**
|
|
1301
|
+
* Requires custom-fields:read and custom-fields:write, plus the book's consent. The sandbox validates every included field and compares both revisions before applying the patch atomically. Send at most 50 fields and a body of at most 16 KiB. Omission preserves a value. Null clears a nullable field. Retrying with the same Idempotency-Key and identical intent returns the original result while its fields remain visible and valid under the current schema. A change to field access or compatibility can require discovery again. Reusing the key with a different intent conflicts. Use a fresh GET for current values.
|
|
1302
|
+
* @summary Update selected custom fields on one invoice
|
|
1303
|
+
*/
|
|
1304
|
+
export declare const updateInvoiceCustomFieldsPathIdMin = 1;
|
|
1305
|
+
export declare const updateInvoiceCustomFieldsPathNativeIdMin = 1;
|
|
1306
|
+
export declare const updateInvoiceCustomFieldsPathNativeIdRegExp: RegExp;
|
|
1307
|
+
export declare const UpdateInvoiceCustomFieldsParams: zod.ZodObject<{
|
|
1308
|
+
id: zod.ZodString;
|
|
1309
|
+
nativeId: zod.ZodString;
|
|
1310
|
+
}, zod.z.core.$strip>;
|
|
1311
|
+
export declare const updateInvoiceCustomFieldsBodySchemaRevisionMin = 1;
|
|
1312
|
+
export declare const updateInvoiceCustomFieldsBodyRevisionMin = 1;
|
|
1313
|
+
export declare const UpdateInvoiceCustomFieldsBody: zod.ZodObject<{
|
|
1314
|
+
schemaRevision: zod.ZodString;
|
|
1315
|
+
revision: zod.ZodString;
|
|
1316
|
+
values: zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodNullable<zod.ZodString>, zod.ZodBoolean]>>;
|
|
1317
|
+
}, zod.z.core.$strict>;
|
|
1318
|
+
export declare const updateInvoiceCustomFieldsResponseConnectionIdMin = 1;
|
|
1319
|
+
export declare const updateInvoiceCustomFieldsResponseInvoiceIdMin = 1;
|
|
1320
|
+
export declare const updateInvoiceCustomFieldsResponseSchemaRevisionMin = 1;
|
|
1321
|
+
export declare const updateInvoiceCustomFieldsResponseRevisionMin = 1;
|
|
1322
|
+
export declare const UpdateInvoiceCustomFieldsResponse: zod.ZodObject<{
|
|
1323
|
+
connectionId: zod.ZodString;
|
|
1324
|
+
provider: zod.ZodEnum<{
|
|
1325
|
+
quickbooksDesktop: "quickbooksDesktop";
|
|
1326
|
+
netsuite: "netsuite";
|
|
1327
|
+
}>;
|
|
1328
|
+
invoiceId: zod.ZodString;
|
|
1329
|
+
schemaRevision: zod.ZodString;
|
|
1330
|
+
revision: zod.ZodString;
|
|
1331
|
+
values: zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodNullable<zod.ZodString>, zod.ZodBoolean]>>;
|
|
1332
|
+
}, zod.z.core.$strip>;
|
|
1333
|
+
/**
|
|
1334
|
+
* Requires invoices:read. Reads the invoice from the selected book without enabling Managed Sync or requiring an operation ID. The result contains the provider-specific fields actually returned by the book. Sandbox connections read the simulated book. The standalone pilot can read a configured ERP. The supported invoice profile currently includes item lines with usable amounts and quantity. An unavailable source produces an error instead of returning a historical receipt or synced copy.
|
|
1335
|
+
* @summary Read an invoice by its native ID in a connected book
|
|
1336
|
+
*/
|
|
1337
|
+
export declare const retrieveInvoicePathIdMin = 1;
|
|
1338
|
+
export declare const retrieveInvoicePathIdRegExp: RegExp;
|
|
1339
|
+
export declare const retrieveInvoicePathNativeIdMin = 1;
|
|
1340
|
+
export declare const retrieveInvoicePathNativeIdRegExp: RegExp;
|
|
1341
|
+
export declare const RetrieveInvoiceParams: zod.ZodObject<{
|
|
1342
|
+
id: zod.ZodString;
|
|
1343
|
+
nativeId: zod.ZodString;
|
|
1344
|
+
}, zod.z.core.$strip>;
|
|
1345
|
+
export declare const retrieveInvoiceResponseOneOneIdMin = 1;
|
|
1346
|
+
export declare const retrieveInvoiceResponseOneOneConnectionIdMin = 1;
|
|
1347
|
+
export declare const retrieveInvoiceResponseOneOneCustomerIdMin = 1;
|
|
1348
|
+
export declare const retrieveInvoiceResponseOneOneExternalReferenceMin = 1;
|
|
1349
|
+
export declare const retrieveInvoiceResponseOneOneCurrencyRegExp: RegExp;
|
|
1350
|
+
export declare const retrieveInvoiceResponseOneOneLinesItemItemIdMin = 1;
|
|
1351
|
+
export declare const retrieveInvoiceResponseOneOneLinesItemUnitPriceMin = 1;
|
|
1352
|
+
export declare const retrieveInvoiceResponseOneOneTotalRegExp: RegExp;
|
|
1353
|
+
export declare const retrieveInvoiceResponseOneOneBalanceDueRegExp: RegExp;
|
|
1354
|
+
export declare const retrieveInvoiceResponseOneTwoClassIdMin = 1;
|
|
1355
|
+
export declare const retrieveInvoiceResponseOneTwoTermsIdMin = 1;
|
|
1356
|
+
export declare const retrieveInvoiceResponseTwoOneIdMin = 1;
|
|
1357
|
+
export declare const retrieveInvoiceResponseTwoOneConnectionIdMin = 1;
|
|
1358
|
+
export declare const retrieveInvoiceResponseTwoOneCustomerIdMin = 1;
|
|
1359
|
+
export declare const retrieveInvoiceResponseTwoOneExternalReferenceMin = 1;
|
|
1360
|
+
export declare const retrieveInvoiceResponseTwoOneCurrencyRegExp: RegExp;
|
|
1361
|
+
export declare const retrieveInvoiceResponseTwoOneLinesItemItemIdMin = 1;
|
|
1362
|
+
export declare const retrieveInvoiceResponseTwoOneLinesItemUnitPriceMin = 1;
|
|
1363
|
+
export declare const retrieveInvoiceResponseTwoOneTotalRegExp: RegExp;
|
|
1364
|
+
export declare const retrieveInvoiceResponseTwoOneBalanceDueRegExp: RegExp;
|
|
1365
|
+
export declare const retrieveInvoiceResponseTwoTwoSubsidiaryIdMin = 1;
|
|
1366
|
+
export declare const retrieveInvoiceResponseTwoTwoDepartmentIdRegExp: RegExp;
|
|
1367
|
+
export declare const RetrieveInvoiceResponse: zod.ZodUnion<readonly [zod.ZodIntersection<zod.ZodObject<{
|
|
1368
|
+
id: zod.ZodString;
|
|
1369
|
+
connectionId: zod.ZodString;
|
|
1370
|
+
customerId: zod.ZodString;
|
|
1371
|
+
externalReference: zod.ZodExactOptional<zod.ZodString>;
|
|
1372
|
+
transactionDate: zod.ZodExactOptional<zod.z.ZodISODate>;
|
|
1373
|
+
currency: zod.ZodString;
|
|
1374
|
+
lines: zod.ZodArray<zod.ZodObject<{
|
|
1375
|
+
itemId: zod.ZodString;
|
|
1376
|
+
quantity: zod.ZodNumber;
|
|
1377
|
+
unitPrice: zod.ZodString;
|
|
1378
|
+
description: zod.ZodExactOptional<zod.ZodString>;
|
|
1379
|
+
}, zod.z.core.$strip>>;
|
|
1380
|
+
total: zod.ZodString;
|
|
1381
|
+
balanceDue: zod.ZodString;
|
|
1382
|
+
observedAt: zod.z.ZodISODateTime;
|
|
1383
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
1384
|
+
provider: zod.ZodEnum<{
|
|
1385
|
+
quickbooksDesktop: "quickbooksDesktop";
|
|
1386
|
+
}>;
|
|
1387
|
+
classId: zod.ZodExactOptional<zod.ZodString>;
|
|
1388
|
+
termsId: zod.ZodExactOptional<zod.ZodString>;
|
|
1389
|
+
}, zod.z.core.$strip>>, zod.ZodIntersection<zod.ZodObject<{
|
|
1390
|
+
id: zod.ZodString;
|
|
1391
|
+
connectionId: zod.ZodString;
|
|
1392
|
+
customerId: zod.ZodString;
|
|
1393
|
+
externalReference: zod.ZodExactOptional<zod.ZodString>;
|
|
1394
|
+
transactionDate: zod.ZodExactOptional<zod.z.ZodISODate>;
|
|
1395
|
+
currency: zod.ZodString;
|
|
1396
|
+
lines: zod.ZodArray<zod.ZodObject<{
|
|
1397
|
+
itemId: zod.ZodString;
|
|
1398
|
+
quantity: zod.ZodNumber;
|
|
1399
|
+
unitPrice: zod.ZodString;
|
|
1400
|
+
description: zod.ZodExactOptional<zod.ZodString>;
|
|
1401
|
+
}, zod.z.core.$strip>>;
|
|
1402
|
+
total: zod.ZodString;
|
|
1403
|
+
balanceDue: zod.ZodString;
|
|
1404
|
+
observedAt: zod.z.ZodISODateTime;
|
|
1405
|
+
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
1406
|
+
provider: zod.ZodEnum<{
|
|
1407
|
+
netsuite: "netsuite";
|
|
1408
|
+
}>;
|
|
1409
|
+
subsidiaryId: zod.ZodString;
|
|
1410
|
+
departmentId: zod.ZodExactOptional<zod.ZodString>;
|
|
1411
|
+
}, zod.z.core.$strip>>]>;
|
|
1002
1412
|
/**
|
|
1003
1413
|
* Requires sync:read. Use nextCursor as after for the next page. Each cursor is an observation ID from this connection.
|
|
1004
1414
|
* @summary List received payments observed in a sandbox book
|
|
@@ -1160,10 +1570,10 @@ export declare const ListInvoiceTracesResponse: zod.ZodObject<{
|
|
|
1160
1570
|
operationId: zod.ZodNullable<zod.ZodString>;
|
|
1161
1571
|
connectionId: zod.ZodNullable<zod.ZodString>;
|
|
1162
1572
|
outcome: zod.ZodEnum<{
|
|
1573
|
+
rejected: "rejected";
|
|
1163
1574
|
admitted: "admitted";
|
|
1164
1575
|
replayed: "replayed";
|
|
1165
1576
|
conflict: "conflict";
|
|
1166
|
-
rejected: "rejected";
|
|
1167
1577
|
}>;
|
|
1168
1578
|
httpStatus: zod.ZodInt;
|
|
1169
1579
|
errorCode: zod.ZodNullable<zod.ZodString>;
|