@mergeapi/merge-node-client 4.0.0-alpha.0 → 4.0.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.
Files changed (236) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/accounting/resources/expenses/client/Client.d.ts +8 -26
  3. package/api/resources/accounting/resources/expenses/client/Client.js +18 -67
  4. package/api/resources/accounting/resources/expenses/client/requests/ExpenseBulkRequest.d.ts +0 -6
  5. package/api/resources/accounting/resources/expenses/client/requests/index.d.ts +0 -1
  6. package/api/resources/accounting/resources/expenses/types/index.d.ts +0 -1
  7. package/api/resources/accounting/resources/expenses/types/index.js +0 -1
  8. package/api/resources/accounting/resources/invoices/client/Client.d.ts +8 -34
  9. package/api/resources/accounting/resources/invoices/client/Client.js +18 -89
  10. package/api/resources/accounting/resources/invoices/client/requests/InvoiceBulkRequest.d.ts +0 -6
  11. package/api/resources/accounting/resources/invoices/client/requests/index.d.ts +0 -1
  12. package/api/resources/accounting/resources/invoices/types/index.d.ts +0 -3
  13. package/api/resources/accounting/resources/invoices/types/index.js +0 -3
  14. package/api/resources/accounting/resources/itemFulfillments/client/Client.d.ts +8 -20
  15. package/api/resources/accounting/resources/itemFulfillments/client/Client.js +18 -55
  16. package/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentBulkRequest.d.ts +0 -6
  17. package/api/resources/accounting/resources/itemFulfillments/client/requests/index.d.ts +0 -1
  18. package/api/resources/accounting/resources/itemFulfillments/types/index.d.ts +0 -1
  19. package/api/resources/accounting/resources/itemFulfillments/types/index.js +0 -1
  20. package/api/resources/accounting/resources/salesOrders/client/Client.d.ts +8 -28
  21. package/api/resources/accounting/resources/salesOrders/client/Client.js +20 -71
  22. package/api/resources/accounting/resources/salesOrders/client/requests/SalesOrderBulkRequest.d.ts +0 -6
  23. package/api/resources/accounting/resources/salesOrders/client/requests/index.d.ts +0 -1
  24. package/api/resources/accounting/resources/salesOrders/types/index.d.ts +0 -1
  25. package/api/resources/accounting/resources/salesOrders/types/index.js +0 -1
  26. package/api/resources/accounting/types/AsyncBulkCreateResponse.d.ts +4 -0
  27. package/api/resources/accounting/types/BankFeedTransactionRequestRequestBankFeedAccount.d.ts +1 -1
  28. package/api/resources/accounting/types/BatchObject.d.ts +15 -1
  29. package/api/resources/accounting/types/BatchObjectItemResponse.d.ts +3 -0
  30. package/api/resources/accounting/types/BatchObjectStatus.d.ts +13 -0
  31. package/api/resources/accounting/types/BatchObjectStatusEnum.d.ts +15 -0
  32. package/api/resources/accounting/types/BatchObjectStatusEnum.js +18 -0
  33. package/api/resources/accounting/types/BatchObjectsResponse.d.ts +23 -1
  34. package/api/resources/accounting/types/BatchObjectsResponseStatus.d.ts +19 -0
  35. package/api/resources/accounting/types/BatchObjectsResponseStatusEnum.d.ts +24 -0
  36. package/api/resources/accounting/types/BatchObjectsResponseStatusEnum.js +27 -0
  37. package/api/resources/accounting/types/ContactRequestAddressesItem.d.ts +1 -1
  38. package/api/resources/accounting/types/ContactRequestPhoneNumbersItem.d.ts +1 -1
  39. package/api/resources/accounting/types/CreditNoteApplyLineForCreditNoteRequestInvoice.d.ts +1 -1
  40. package/api/resources/accounting/types/CreditNoteLineItemRequestContact.d.ts +1 -1
  41. package/api/resources/accounting/types/CreditNoteRequestAppliedPaymentsItem.d.ts +1 -1
  42. package/api/resources/accounting/types/CreditNoteRequestContact.d.ts +1 -1
  43. package/api/resources/accounting/types/CreditNoteRequestLineItemsItem.d.ts +1 -1
  44. package/api/resources/accounting/types/CreditNoteRequestPaymentsItem.d.ts +1 -1
  45. package/api/resources/accounting/types/DataPassthroughRequest.d.ts +2 -2
  46. package/api/resources/accounting/types/ErrorValidationProblem.d.ts +2 -0
  47. package/api/resources/accounting/types/ExpenseLineRequestAccount.d.ts +1 -1
  48. package/api/resources/accounting/types/ExpenseLineRequestContact.d.ts +1 -1
  49. package/api/resources/accounting/types/ExpenseReportLineRequestAccount.d.ts +1 -1
  50. package/api/resources/accounting/types/ExpenseReportLineRequestContact.d.ts +1 -1
  51. package/api/resources/accounting/types/ExpenseRequestAccount.d.ts +1 -1
  52. package/api/resources/accounting/types/ExpenseRequestContact.d.ts +1 -1
  53. package/api/resources/accounting/types/InvoiceLineItemRequestAccount.d.ts +1 -1
  54. package/api/resources/accounting/types/InvoiceLineItemRequestContact.d.ts +1 -1
  55. package/api/resources/accounting/types/InvoiceRequestContact.d.ts +1 -1
  56. package/api/resources/accounting/types/InvoiceRequestPaymentsItem.d.ts +1 -1
  57. package/api/resources/accounting/types/InvoiceRequestPurchaseOrdersItem.d.ts +1 -1
  58. package/api/resources/accounting/types/ItemFulfillmentLineRequestSalesOrderLine.d.ts +1 -1
  59. package/api/resources/accounting/types/ItemFulfillmentRequestRequestCustomer.d.ts +1 -1
  60. package/api/resources/accounting/types/ItemRequestRequestPurchaseAccount.d.ts +1 -1
  61. package/api/resources/accounting/types/ItemRequestRequestSalesAccount.d.ts +1 -1
  62. package/api/resources/accounting/types/JournalEntryRequestLinesItem.d.ts +1 -1
  63. package/api/resources/accounting/types/JournalEntryRequestPaymentsItem.d.ts +1 -1
  64. package/api/resources/accounting/types/JournalLineRequestAccount.d.ts +1 -1
  65. package/api/resources/accounting/types/PaymentRequestAccount.d.ts +1 -1
  66. package/api/resources/accounting/types/PaymentRequestAppliedToLinesItem.d.ts +1 -1
  67. package/api/resources/accounting/types/PaymentRequestContact.d.ts +1 -1
  68. package/api/resources/accounting/types/PurchaseOrderRequestDeliveryAddress.d.ts +1 -1
  69. package/api/resources/accounting/types/PurchaseOrderRequestLineItemsItem.d.ts +1 -1
  70. package/api/resources/accounting/types/PurchaseOrderRequestVendor.d.ts +1 -1
  71. package/api/resources/accounting/types/RemoteFieldApi.d.ts +1 -1
  72. package/api/resources/accounting/types/SalesOrderRequestRequestCustomer.d.ts +1 -1
  73. package/api/resources/accounting/types/SalesOrderRequestRequestShippingAddress.d.ts +1 -1
  74. package/api/resources/accounting/types/VendorCreditApplyLineForVendorCreditRequestInvoice.d.ts +1 -1
  75. package/api/resources/accounting/types/VendorCreditLineRequestAccount.d.ts +1 -1
  76. package/api/resources/accounting/types/VendorCreditLineRequestContact.d.ts +1 -1
  77. package/api/resources/accounting/types/VendorCreditRequestVendor.d.ts +1 -1
  78. package/api/resources/accounting/types/WarningValidationProblem.d.ts +2 -0
  79. package/api/resources/accounting/types/index.d.ts +4 -3
  80. package/api/resources/accounting/types/index.js +4 -3
  81. package/package.json +1 -1
  82. package/reference.md +24 -128
  83. package/serialization/resources/accounting/resources/expenses/client/requests/ExpenseBulkRequest.d.ts +1 -1
  84. package/serialization/resources/accounting/resources/expenses/types/index.d.ts +0 -1
  85. package/serialization/resources/accounting/resources/expenses/types/index.js +0 -1
  86. package/serialization/resources/accounting/resources/invoices/client/requests/InvoiceBulkRequest.d.ts +1 -1
  87. package/serialization/resources/accounting/resources/invoices/types/index.d.ts +0 -3
  88. package/serialization/resources/accounting/resources/invoices/types/index.js +0 -3
  89. package/serialization/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentBulkRequest.d.ts +1 -1
  90. package/serialization/resources/accounting/resources/itemFulfillments/types/index.d.ts +0 -1
  91. package/serialization/resources/accounting/resources/itemFulfillments/types/index.js +0 -1
  92. package/serialization/resources/accounting/resources/salesOrders/client/requests/SalesOrderBulkRequest.d.ts +1 -1
  93. package/serialization/resources/accounting/resources/salesOrders/types/index.d.ts +0 -1
  94. package/serialization/resources/accounting/resources/salesOrders/types/index.js +0 -1
  95. package/serialization/resources/accounting/types/BankFeedTransactionRequestRequestBankFeedAccount.d.ts +2 -2
  96. package/serialization/resources/accounting/types/BankFeedTransactionRequestRequestBankFeedAccount.js +2 -2
  97. package/serialization/resources/accounting/types/BatchObject.d.ts +2 -1
  98. package/serialization/resources/accounting/types/BatchObject.js +2 -1
  99. package/serialization/resources/accounting/types/BatchObjectStatus.d.ts +8 -0
  100. package/serialization/resources/accounting/types/{RemoteFieldApiAdvancedMetadata.js → BatchObjectStatus.js} +3 -3
  101. package/serialization/resources/accounting/types/BatchObjectStatusEnum.d.ts +7 -0
  102. package/serialization/resources/accounting/types/{DataPassthroughRequestMethod.js → BatchObjectStatusEnum.js} +2 -3
  103. package/serialization/resources/accounting/types/BatchObjectsResponse.d.ts +2 -1
  104. package/serialization/resources/accounting/types/BatchObjectsResponse.js +2 -1
  105. package/serialization/resources/accounting/types/BatchObjectsResponseStatus.d.ts +8 -0
  106. package/serialization/resources/accounting/types/{DataPassthroughRequestRequestFormat.js → BatchObjectsResponseStatus.js} +3 -3
  107. package/serialization/resources/accounting/types/BatchObjectsResponseStatusEnum.d.ts +7 -0
  108. package/serialization/resources/accounting/{resources/invoices/types/InvoicesBatchObjectsListRequestType.js → types/BatchObjectsResponseStatusEnum.js} +3 -3
  109. package/serialization/resources/accounting/types/ContactRequestAddressesItem.d.ts +2 -2
  110. package/serialization/resources/accounting/types/ContactRequestAddressesItem.js +2 -2
  111. package/serialization/resources/accounting/types/ContactRequestPhoneNumbersItem.d.ts +2 -2
  112. package/serialization/resources/accounting/types/ContactRequestPhoneNumbersItem.js +2 -2
  113. package/serialization/resources/accounting/types/CreditNoteApplyLineForCreditNoteRequestInvoice.d.ts +2 -3
  114. package/serialization/resources/accounting/types/CreditNoteApplyLineForCreditNoteRequestInvoice.js +5 -2
  115. package/serialization/resources/accounting/types/CreditNoteLineItemRequestContact.d.ts +2 -2
  116. package/serialization/resources/accounting/types/CreditNoteLineItemRequestContact.js +2 -2
  117. package/serialization/resources/accounting/types/CreditNoteRequestAppliedPaymentsItem.d.ts +2 -2
  118. package/serialization/resources/accounting/types/CreditNoteRequestAppliedPaymentsItem.js +2 -2
  119. package/serialization/resources/accounting/types/CreditNoteRequestContact.d.ts +2 -2
  120. package/serialization/resources/accounting/types/CreditNoteRequestContact.js +2 -2
  121. package/serialization/resources/accounting/types/CreditNoteRequestLineItemsItem.d.ts +2 -2
  122. package/serialization/resources/accounting/types/CreditNoteRequestLineItemsItem.js +2 -2
  123. package/serialization/resources/accounting/types/CreditNoteRequestPaymentsItem.d.ts +2 -2
  124. package/serialization/resources/accounting/types/CreditNoteRequestPaymentsItem.js +2 -2
  125. package/serialization/resources/accounting/types/DataPassthroughRequest.d.ts +4 -4
  126. package/serialization/resources/accounting/types/DataPassthroughRequest.js +4 -4
  127. package/serialization/resources/accounting/types/ErrorValidationProblem.d.ts +2 -0
  128. package/serialization/resources/accounting/types/ErrorValidationProblem.js +2 -0
  129. package/serialization/resources/accounting/types/ExpenseLineRequestAccount.d.ts +2 -2
  130. package/serialization/resources/accounting/types/ExpenseLineRequestAccount.js +2 -2
  131. package/serialization/resources/accounting/types/ExpenseLineRequestContact.d.ts +2 -2
  132. package/serialization/resources/accounting/types/ExpenseLineRequestContact.js +2 -2
  133. package/serialization/resources/accounting/types/ExpenseReportLineRequestAccount.d.ts +2 -2
  134. package/serialization/resources/accounting/types/ExpenseReportLineRequestAccount.js +2 -2
  135. package/serialization/resources/accounting/types/ExpenseReportLineRequestContact.d.ts +2 -2
  136. package/serialization/resources/accounting/types/ExpenseReportLineRequestContact.js +2 -2
  137. package/serialization/resources/accounting/types/ExpenseRequestAccount.d.ts +2 -2
  138. package/serialization/resources/accounting/types/ExpenseRequestAccount.js +2 -2
  139. package/serialization/resources/accounting/types/ExpenseRequestContact.d.ts +2 -2
  140. package/serialization/resources/accounting/types/ExpenseRequestContact.js +2 -2
  141. package/serialization/resources/accounting/types/InvoiceLineItemRequestAccount.d.ts +2 -2
  142. package/serialization/resources/accounting/types/InvoiceLineItemRequestAccount.js +2 -2
  143. package/serialization/resources/accounting/types/InvoiceLineItemRequestContact.d.ts +2 -2
  144. package/serialization/resources/accounting/types/InvoiceLineItemRequestContact.js +2 -2
  145. package/serialization/resources/accounting/types/InvoiceRequestContact.d.ts +2 -2
  146. package/serialization/resources/accounting/types/InvoiceRequestContact.js +2 -2
  147. package/serialization/resources/accounting/types/InvoiceRequestPaymentsItem.d.ts +2 -2
  148. package/serialization/resources/accounting/types/InvoiceRequestPaymentsItem.js +2 -2
  149. package/serialization/resources/accounting/types/InvoiceRequestPurchaseOrdersItem.d.ts +2 -2
  150. package/serialization/resources/accounting/types/InvoiceRequestPurchaseOrdersItem.js +2 -2
  151. package/serialization/resources/accounting/types/ItemFulfillmentLineRequestSalesOrderLine.d.ts +2 -2
  152. package/serialization/resources/accounting/types/ItemFulfillmentLineRequestSalesOrderLine.js +2 -2
  153. package/serialization/resources/accounting/types/ItemFulfillmentRequestRequestCustomer.d.ts +2 -2
  154. package/serialization/resources/accounting/types/ItemFulfillmentRequestRequestCustomer.js +2 -2
  155. package/serialization/resources/accounting/types/ItemRequestRequestPurchaseAccount.d.ts +2 -2
  156. package/serialization/resources/accounting/types/ItemRequestRequestPurchaseAccount.js +2 -2
  157. package/serialization/resources/accounting/types/ItemRequestRequestSalesAccount.d.ts +2 -2
  158. package/serialization/resources/accounting/types/ItemRequestRequestSalesAccount.js +2 -2
  159. package/serialization/resources/accounting/types/JournalEntryRequestLinesItem.d.ts +2 -2
  160. package/serialization/resources/accounting/types/JournalEntryRequestLinesItem.js +2 -2
  161. package/serialization/resources/accounting/types/JournalEntryRequestPaymentsItem.d.ts +2 -2
  162. package/serialization/resources/accounting/types/JournalEntryRequestPaymentsItem.js +2 -2
  163. package/serialization/resources/accounting/types/JournalLineRequestAccount.d.ts +2 -2
  164. package/serialization/resources/accounting/types/JournalLineRequestAccount.js +2 -2
  165. package/serialization/resources/accounting/types/PaymentRequestAccount.d.ts +2 -2
  166. package/serialization/resources/accounting/types/PaymentRequestAccount.js +2 -2
  167. package/serialization/resources/accounting/types/PaymentRequestAppliedToLinesItem.d.ts +2 -2
  168. package/serialization/resources/accounting/types/PaymentRequestAppliedToLinesItem.js +2 -2
  169. package/serialization/resources/accounting/types/PaymentRequestContact.d.ts +2 -2
  170. package/serialization/resources/accounting/types/PaymentRequestContact.js +2 -2
  171. package/serialization/resources/accounting/types/PurchaseOrderRequestDeliveryAddress.d.ts +2 -2
  172. package/serialization/resources/accounting/types/PurchaseOrderRequestDeliveryAddress.js +2 -2
  173. package/serialization/resources/accounting/types/PurchaseOrderRequestLineItemsItem.d.ts +2 -2
  174. package/serialization/resources/accounting/types/PurchaseOrderRequestLineItemsItem.js +2 -2
  175. package/serialization/resources/accounting/types/PurchaseOrderRequestVendor.d.ts +2 -2
  176. package/serialization/resources/accounting/types/PurchaseOrderRequestVendor.js +2 -2
  177. package/serialization/resources/accounting/types/RemoteFieldApi.d.ts +2 -2
  178. package/serialization/resources/accounting/types/RemoteFieldApi.js +2 -2
  179. package/serialization/resources/accounting/types/SalesOrderRequestRequestCustomer.d.ts +2 -2
  180. package/serialization/resources/accounting/types/SalesOrderRequestRequestCustomer.js +2 -2
  181. package/serialization/resources/accounting/types/SalesOrderRequestRequestShippingAddress.d.ts +2 -2
  182. package/serialization/resources/accounting/types/SalesOrderRequestRequestShippingAddress.js +2 -2
  183. package/serialization/resources/accounting/types/VendorCreditApplyLineForVendorCreditRequestInvoice.d.ts +2 -3
  184. package/serialization/resources/accounting/types/VendorCreditApplyLineForVendorCreditRequestInvoice.js +5 -2
  185. package/serialization/resources/accounting/types/VendorCreditLineRequestAccount.d.ts +2 -2
  186. package/serialization/resources/accounting/types/VendorCreditLineRequestAccount.js +2 -2
  187. package/serialization/resources/accounting/types/VendorCreditLineRequestContact.d.ts +2 -2
  188. package/serialization/resources/accounting/types/VendorCreditLineRequestContact.js +2 -2
  189. package/serialization/resources/accounting/types/VendorCreditRequestVendor.d.ts +2 -2
  190. package/serialization/resources/accounting/types/VendorCreditRequestVendor.js +2 -2
  191. package/serialization/resources/accounting/types/WarningValidationProblem.d.ts +2 -0
  192. package/serialization/resources/accounting/types/WarningValidationProblem.js +2 -0
  193. package/serialization/resources/accounting/types/index.d.ts +4 -3
  194. package/serialization/resources/accounting/types/index.js +4 -3
  195. package/version.d.ts +1 -1
  196. package/version.js +1 -1
  197. package/api/resources/accounting/resources/expenses/client/requests/ExpensesBatchObjectsListRequest.d.ts +0 -52
  198. package/api/resources/accounting/resources/expenses/types/ExpensesBatchObjectsListRequestExpandItem.d.ts +0 -9
  199. package/api/resources/accounting/resources/expenses/types/ExpensesBatchObjectsListRequestExpandItem.js +0 -12
  200. package/api/resources/accounting/resources/invoices/client/requests/InvoicesBatchObjectsListRequest.d.ts +0 -84
  201. package/api/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestExpandItem.d.ts +0 -16
  202. package/api/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestExpandItem.js +0 -19
  203. package/api/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestStatus.d.ts +0 -9
  204. package/api/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestStatus.js +0 -12
  205. package/api/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestType.d.ts +0 -5
  206. package/api/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestType.js +0 -8
  207. package/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentsBatchObjectsListRequest.d.ts +0 -34
  208. package/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentsBatchObjectsListRequest.js +0 -3
  209. package/api/resources/accounting/resources/itemFulfillments/types/ItemFulfillmentsBatchObjectsListRequestExpandItem.d.ts +0 -7
  210. package/api/resources/accounting/resources/itemFulfillments/types/ItemFulfillmentsBatchObjectsListRequestExpandItem.js +0 -10
  211. package/api/resources/accounting/resources/salesOrders/client/requests/SalesOrdersBatchObjectsListRequest.d.ts +0 -58
  212. package/api/resources/accounting/resources/salesOrders/client/requests/SalesOrdersBatchObjectsListRequest.js +0 -3
  213. package/api/resources/accounting/resources/salesOrders/types/SalesOrdersBatchObjectsListRequestExpandItem.d.ts +0 -9
  214. package/api/resources/accounting/resources/salesOrders/types/SalesOrdersBatchObjectsListRequestExpandItem.js +0 -12
  215. package/api/resources/accounting/types/DataPassthroughRequestMethod.d.ts +0 -2
  216. package/api/resources/accounting/types/DataPassthroughRequestMethod.js +0 -3
  217. package/api/resources/accounting/types/DataPassthroughRequestRequestFormat.d.ts +0 -2
  218. package/api/resources/accounting/types/DataPassthroughRequestRequestFormat.js +0 -3
  219. package/api/resources/accounting/types/RemoteFieldApiAdvancedMetadata.d.ts +0 -2
  220. package/api/resources/accounting/types/RemoteFieldApiAdvancedMetadata.js +0 -3
  221. package/serialization/resources/accounting/resources/expenses/types/ExpensesBatchObjectsListRequestExpandItem.d.ts +0 -7
  222. package/serialization/resources/accounting/resources/expenses/types/ExpensesBatchObjectsListRequestExpandItem.js +0 -39
  223. package/serialization/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestExpandItem.d.ts +0 -7
  224. package/serialization/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestExpandItem.js +0 -53
  225. package/serialization/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestStatus.d.ts +0 -7
  226. package/serialization/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestStatus.js +0 -39
  227. package/serialization/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestType.d.ts +0 -7
  228. package/serialization/resources/accounting/resources/itemFulfillments/types/ItemFulfillmentsBatchObjectsListRequestExpandItem.d.ts +0 -7
  229. package/serialization/resources/accounting/resources/itemFulfillments/types/ItemFulfillmentsBatchObjectsListRequestExpandItem.js +0 -39
  230. package/serialization/resources/accounting/resources/salesOrders/types/SalesOrdersBatchObjectsListRequestExpandItem.d.ts +0 -7
  231. package/serialization/resources/accounting/resources/salesOrders/types/SalesOrdersBatchObjectsListRequestExpandItem.js +0 -46
  232. package/serialization/resources/accounting/types/DataPassthroughRequestMethod.d.ts +0 -8
  233. package/serialization/resources/accounting/types/DataPassthroughRequestRequestFormat.d.ts +0 -8
  234. package/serialization/resources/accounting/types/RemoteFieldApiAdvancedMetadata.d.ts +0 -8
  235. /package/api/resources/accounting/{resources/expenses/client/requests/ExpensesBatchObjectsListRequest.js → types/BatchObjectStatus.js} +0 -0
  236. /package/api/resources/accounting/{resources/invoices/client/requests/InvoicesBatchObjectsListRequest.js → types/BatchObjectsResponseStatus.js} +0 -0
@@ -295,42 +295,35 @@ class ItemFulfillmentsClient {
295
295
  });
296
296
  }
297
297
  /**
298
- * Creates an `ItemFulfillment` object with the given values.
298
+ * Creates multiple `ItemFulfillment` objects with the given values.
299
299
  *
300
300
  * @param {Merge.accounting.ItemFulfillmentBulkRequest} request
301
301
  * @param {ItemFulfillmentsClient.RequestOptions} requestOptions - Request-specific configuration.
302
302
  *
303
303
  * @example
304
- * await client.accounting.itemFulfillments.asyncBulkCreate({
305
- * isDebugMode: true,
306
- * runAsync: true,
304
+ * await client.accounting.itemFulfillments.bulkCreate({
307
305
  * batchItems: [{
308
306
  * itemId: "item_id",
309
307
  * payload: {}
310
308
  * }]
311
309
  * })
312
310
  */
313
- asyncBulkCreate(request, requestOptions) {
314
- return core.HttpResponsePromise.fromPromise(this.__asyncBulkCreate(request, requestOptions));
311
+ bulkCreate(request, requestOptions) {
312
+ return core.HttpResponsePromise.fromPromise(this.__bulkCreate(request, requestOptions));
315
313
  }
316
- __asyncBulkCreate(request, requestOptions) {
314
+ __bulkCreate(request, requestOptions) {
317
315
  return __awaiter(this, void 0, void 0, function* () {
318
316
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
319
- const { isDebugMode, runAsync } = request, _body = __rest(request, ["isDebugMode", "runAsync"]);
320
- const _queryParams = {
321
- is_debug_mode: isDebugMode,
322
- run_async: runAsync,
323
- };
324
317
  const _authRequest = yield this._options.authProvider.getAuthRequest();
325
318
  const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "X-Account-Token": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.accountToken) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.accountToken }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
326
319
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
327
- url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.MergeEnvironment.Production, "accounting/v1/item-fulfillments/async/bulk"),
320
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.MergeEnvironment.Production, "accounting/v1/item-fulfillments/bulk"),
328
321
  method: "POST",
329
322
  headers: _headers,
330
323
  contentType: "application/json",
331
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
324
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
332
325
  requestType: "json",
333
- body: serializers.accounting.ItemFulfillmentBulkRequest.jsonOrThrow(_body, {
326
+ body: serializers.accounting.ItemFulfillmentBulkRequest.jsonOrThrow(request, {
334
327
  unrecognizedObjectKeys: "strip",
335
328
  }),
336
329
  timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
@@ -358,61 +351,31 @@ class ItemFulfillmentsClient {
358
351
  rawResponse: _response.rawResponse,
359
352
  });
360
353
  }
361
- return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/accounting/v1/item-fulfillments/async/bulk");
354
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/accounting/v1/item-fulfillments/bulk");
362
355
  });
363
356
  }
364
357
  /**
365
- * Returns a list of `ItemFulfillment` objects.
358
+ * Returns the status and results of an `ItemFulfillment` bulk create batch.
366
359
  *
367
360
  * @param {string} batch_id
368
- * @param {Merge.accounting.ItemFulfillmentsBatchObjectsListRequest} request
369
361
  * @param {ItemFulfillmentsClient.RequestOptions} requestOptions - Request-specific configuration.
370
362
  *
371
363
  * @example
372
- * await client.accounting.itemFulfillments.batchObjectsList("batch_id", {
373
- * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
374
- * includeDeletedData: true,
375
- * includeRemoteData: true,
376
- * includeRemoteFields: true,
377
- * includeShellData: true,
378
- * pageSize: 1,
379
- * remoteFields: "status",
380
- * showEnumOrigins: "status"
381
- * })
364
+ * await client.accounting.itemFulfillments.bulkRetrieve("batch_id")
382
365
  */
383
- batchObjectsList(batch_id, request = {}, requestOptions) {
384
- return core.HttpResponsePromise.fromPromise(this.__batchObjectsList(batch_id, request, requestOptions));
366
+ bulkRetrieve(batch_id, requestOptions) {
367
+ return core.HttpResponsePromise.fromPromise(this.__bulkRetrieve(batch_id, requestOptions));
385
368
  }
386
- __batchObjectsList(batch_id_1) {
387
- return __awaiter(this, arguments, void 0, function* (batch_id, request = {}, requestOptions) {
369
+ __bulkRetrieve(batch_id, requestOptions) {
370
+ return __awaiter(this, void 0, void 0, function* () {
388
371
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
389
- const { cursor, expand, includeDeletedData, includeRemoteData, includeRemoteFields, includeShellData, pageSize, remoteFields, showEnumOrigins, } = request;
390
- const _queryParams = {
391
- cursor,
392
- expand: Array.isArray(expand)
393
- ? expand.map((item) => serializers.accounting.ItemFulfillmentsBatchObjectsListRequestExpandItem.jsonOrThrow(item, {
394
- unrecognizedObjectKeys: "strip",
395
- }))
396
- : expand != null
397
- ? serializers.accounting.ItemFulfillmentsBatchObjectsListRequestExpandItem.jsonOrThrow(expand, {
398
- unrecognizedObjectKeys: "strip",
399
- })
400
- : undefined,
401
- include_deleted_data: includeDeletedData,
402
- include_remote_data: includeRemoteData,
403
- include_remote_fields: includeRemoteFields,
404
- include_shell_data: includeShellData,
405
- page_size: pageSize,
406
- remote_fields: remoteFields != null ? remoteFields : undefined,
407
- show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined,
408
- };
409
372
  const _authRequest = yield this._options.authProvider.getAuthRequest();
410
373
  const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "X-Account-Token": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.accountToken) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.accountToken }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
411
374
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
412
- url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.MergeEnvironment.Production, `accounting/v1/item-fulfillments/batch/${core.url.encodePathParam(batch_id)}/objects`),
375
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.MergeEnvironment.Production, `accounting/v1/item-fulfillments/bulk/${core.url.encodePathParam(batch_id)}`),
413
376
  method: "GET",
414
377
  headers: _headers,
415
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
378
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
416
379
  timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
417
380
  maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
418
381
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -438,7 +401,7 @@ class ItemFulfillmentsClient {
438
401
  rawResponse: _response.rawResponse,
439
402
  });
440
403
  }
441
- return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/accounting/v1/item-fulfillments/batch/{batch_id}/objects");
404
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/accounting/v1/item-fulfillments/bulk/{batch_id}");
442
405
  });
443
406
  }
444
407
  /**
@@ -2,8 +2,6 @@ import type * as Merge from "../../../../../../index";
2
2
  /**
3
3
  * @example
4
4
  * {
5
- * isDebugMode: true,
6
- * runAsync: true,
7
5
  * batchItems: [{
8
6
  * itemId: "item_id",
9
7
  * payload: {}
@@ -11,9 +9,5 @@ import type * as Merge from "../../../../../../index";
11
9
  * }
12
10
  */
13
11
  export interface ItemFulfillmentBulkRequest {
14
- /** Whether to include debug fields (such as log file links) in the response. */
15
- isDebugMode?: boolean;
16
- /** Whether or not third-party updates should be run asynchronously. */
17
- runAsync?: boolean;
18
12
  batchItems: Merge.accounting.ItemFulfillmentBatchItemRequest[];
19
13
  }
@@ -1,6 +1,5 @@
1
1
  export type { ItemFulfillmentBulkRequest } from "./ItemFulfillmentBulkRequest";
2
2
  export type { ItemFulfillmentEndpointRequest } from "./ItemFulfillmentEndpointRequest";
3
- export type { ItemFulfillmentsBatchObjectsListRequest } from "./ItemFulfillmentsBatchObjectsListRequest";
4
3
  export type { ItemFulfillmentsLinesRemoteFieldClassesListRequest } from "./ItemFulfillmentsLinesRemoteFieldClassesListRequest";
5
4
  export type { ItemFulfillmentsListRequest } from "./ItemFulfillmentsListRequest";
6
5
  export type { ItemFulfillmentsRemoteFieldClassesListRequest } from "./ItemFulfillmentsRemoteFieldClassesListRequest";
@@ -1,3 +1,2 @@
1
- export * from "./ItemFulfillmentsBatchObjectsListRequestExpandItem";
2
1
  export * from "./ItemFulfillmentsListRequestExpandItem";
3
2
  export * from "./ItemFulfillmentsRetrieveRequestExpandItem";
@@ -14,6 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./ItemFulfillmentsBatchObjectsListRequestExpandItem"), exports);
18
17
  __exportStar(require("./ItemFulfillmentsListRequestExpandItem"), exports);
19
18
  __exportStar(require("./ItemFulfillmentsRetrieveRequestExpandItem"), exports);
@@ -71,52 +71,32 @@ export declare class SalesOrdersClient {
71
71
  retrieve(id: string, request?: Merge.accounting.SalesOrdersRetrieveRequest, requestOptions?: SalesOrdersClient.RequestOptions): core.HttpResponsePromise<Merge.accounting.SalesOrder>;
72
72
  private __retrieve;
73
73
  /**
74
- * Creates a `SalesOrder` object with the given values.
74
+ * Creates multiple `SalesOrder` objects with the given values.
75
75
  *
76
76
  * @param {Merge.accounting.SalesOrderBulkRequest} request
77
77
  * @param {SalesOrdersClient.RequestOptions} requestOptions - Request-specific configuration.
78
78
  *
79
79
  * @example
80
- * await client.accounting.salesOrders.asyncBulkCreate({
81
- * isDebugMode: true,
82
- * runAsync: true,
80
+ * await client.accounting.salesOrders.bulkCreate({
83
81
  * batchItems: [{
84
82
  * itemId: "item_id",
85
83
  * payload: {}
86
84
  * }]
87
85
  * })
88
86
  */
89
- asyncBulkCreate(request: Merge.accounting.SalesOrderBulkRequest, requestOptions?: SalesOrdersClient.RequestOptions): core.HttpResponsePromise<Merge.accounting.AsyncBulkCreateResponse>;
90
- private __asyncBulkCreate;
87
+ bulkCreate(request: Merge.accounting.SalesOrderBulkRequest, requestOptions?: SalesOrdersClient.RequestOptions): core.HttpResponsePromise<Merge.accounting.AsyncBulkCreateResponse>;
88
+ private __bulkCreate;
91
89
  /**
92
- * Returns a list of `SalesOrder` objects.
90
+ * Returns the status and results of a `SalesOrder` bulk create batch.
93
91
  *
94
92
  * @param {string} batch_id
95
- * @param {Merge.accounting.SalesOrdersBatchObjectsListRequest} request
96
93
  * @param {SalesOrdersClient.RequestOptions} requestOptions - Request-specific configuration.
97
94
  *
98
95
  * @example
99
- * await client.accounting.salesOrders.batchObjectsList("batch_id", {
100
- * companyId: "company_id",
101
- * createdAfter: new Date("2024-01-15T09:30:00.000Z"),
102
- * createdBefore: new Date("2024-01-15T09:30:00.000Z"),
103
- * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
104
- * includeDeletedData: true,
105
- * includeRemoteData: true,
106
- * includeRemoteFields: true,
107
- * includeShellData: true,
108
- * issueDateAfter: new Date("2024-01-15T09:30:00.000Z"),
109
- * issueDateBefore: new Date("2024-01-15T09:30:00.000Z"),
110
- * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"),
111
- * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"),
112
- * pageSize: 1,
113
- * remoteFields: "status",
114
- * remoteId: "remote_id",
115
- * showEnumOrigins: "status"
116
- * })
96
+ * await client.accounting.salesOrders.bulkRetrieve("batch_id")
117
97
  */
118
- batchObjectsList(batch_id: string, request?: Merge.accounting.SalesOrdersBatchObjectsListRequest, requestOptions?: SalesOrdersClient.RequestOptions): core.HttpResponsePromise<Merge.accounting.BatchObjectsResponse>;
119
- private __batchObjectsList;
98
+ bulkRetrieve(batch_id: string, requestOptions?: SalesOrdersClient.RequestOptions): core.HttpResponsePromise<Merge.accounting.BatchObjectsResponse>;
99
+ private __bulkRetrieve;
120
100
  /**
121
101
  * Returns a list of `RemoteFieldClass` objects.
122
102
  *
@@ -311,42 +311,37 @@ class SalesOrdersClient {
311
311
  });
312
312
  }
313
313
  /**
314
- * Creates a `SalesOrder` object with the given values.
314
+ * Creates multiple `SalesOrder` objects with the given values.
315
315
  *
316
316
  * @param {Merge.accounting.SalesOrderBulkRequest} request
317
317
  * @param {SalesOrdersClient.RequestOptions} requestOptions - Request-specific configuration.
318
318
  *
319
319
  * @example
320
- * await client.accounting.salesOrders.asyncBulkCreate({
321
- * isDebugMode: true,
322
- * runAsync: true,
320
+ * await client.accounting.salesOrders.bulkCreate({
323
321
  * batchItems: [{
324
322
  * itemId: "item_id",
325
323
  * payload: {}
326
324
  * }]
327
325
  * })
328
326
  */
329
- asyncBulkCreate(request, requestOptions) {
330
- return core.HttpResponsePromise.fromPromise(this.__asyncBulkCreate(request, requestOptions));
327
+ bulkCreate(request, requestOptions) {
328
+ return core.HttpResponsePromise.fromPromise(this.__bulkCreate(request, requestOptions));
331
329
  }
332
- __asyncBulkCreate(request, requestOptions) {
330
+ __bulkCreate(request, requestOptions) {
333
331
  return __awaiter(this, void 0, void 0, function* () {
334
332
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
335
- const { isDebugMode, runAsync } = request, _body = __rest(request, ["isDebugMode", "runAsync"]);
336
- const _queryParams = {
337
- is_debug_mode: isDebugMode,
338
- run_async: runAsync,
339
- };
340
333
  const _authRequest = yield this._options.authProvider.getAuthRequest();
341
334
  const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "X-Account-Token": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.accountToken) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.accountToken }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
342
335
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
343
- url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.MergeEnvironment.Production, "accounting/v1/sales-orders/async/bulk"),
336
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.MergeEnvironment.Production, "accounting/v1/sales-orders/bulk"),
344
337
  method: "POST",
345
338
  headers: _headers,
346
339
  contentType: "application/json",
347
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
340
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
348
341
  requestType: "json",
349
- body: serializers.accounting.SalesOrderBulkRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
342
+ body: serializers.accounting.SalesOrderBulkRequest.jsonOrThrow(request, {
343
+ unrecognizedObjectKeys: "strip",
344
+ }),
350
345
  timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
351
346
  maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
352
347
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -372,77 +367,31 @@ class SalesOrdersClient {
372
367
  rawResponse: _response.rawResponse,
373
368
  });
374
369
  }
375
- return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/accounting/v1/sales-orders/async/bulk");
370
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/accounting/v1/sales-orders/bulk");
376
371
  });
377
372
  }
378
373
  /**
379
- * Returns a list of `SalesOrder` objects.
374
+ * Returns the status and results of a `SalesOrder` bulk create batch.
380
375
  *
381
376
  * @param {string} batch_id
382
- * @param {Merge.accounting.SalesOrdersBatchObjectsListRequest} request
383
377
  * @param {SalesOrdersClient.RequestOptions} requestOptions - Request-specific configuration.
384
378
  *
385
379
  * @example
386
- * await client.accounting.salesOrders.batchObjectsList("batch_id", {
387
- * companyId: "company_id",
388
- * createdAfter: new Date("2024-01-15T09:30:00.000Z"),
389
- * createdBefore: new Date("2024-01-15T09:30:00.000Z"),
390
- * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
391
- * includeDeletedData: true,
392
- * includeRemoteData: true,
393
- * includeRemoteFields: true,
394
- * includeShellData: true,
395
- * issueDateAfter: new Date("2024-01-15T09:30:00.000Z"),
396
- * issueDateBefore: new Date("2024-01-15T09:30:00.000Z"),
397
- * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"),
398
- * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"),
399
- * pageSize: 1,
400
- * remoteFields: "status",
401
- * remoteId: "remote_id",
402
- * showEnumOrigins: "status"
403
- * })
380
+ * await client.accounting.salesOrders.bulkRetrieve("batch_id")
404
381
  */
405
- batchObjectsList(batch_id, request = {}, requestOptions) {
406
- return core.HttpResponsePromise.fromPromise(this.__batchObjectsList(batch_id, request, requestOptions));
382
+ bulkRetrieve(batch_id, requestOptions) {
383
+ return core.HttpResponsePromise.fromPromise(this.__bulkRetrieve(batch_id, requestOptions));
407
384
  }
408
- __batchObjectsList(batch_id_1) {
409
- return __awaiter(this, arguments, void 0, function* (batch_id, request = {}, requestOptions) {
385
+ __bulkRetrieve(batch_id, requestOptions) {
386
+ return __awaiter(this, void 0, void 0, function* () {
410
387
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
411
- const { companyId, createdAfter, createdBefore, cursor, expand, includeDeletedData, includeRemoteData, includeRemoteFields, includeShellData, issueDateAfter, issueDateBefore, modifiedAfter, modifiedBefore, pageSize, remoteFields, remoteId, showEnumOrigins, } = request;
412
- const _queryParams = {
413
- company_id: companyId,
414
- created_after: createdAfter === null || createdAfter === void 0 ? void 0 : createdAfter.toISOString(),
415
- created_before: createdBefore === null || createdBefore === void 0 ? void 0 : createdBefore.toISOString(),
416
- cursor,
417
- expand: Array.isArray(expand)
418
- ? expand.map((item) => serializers.accounting.SalesOrdersBatchObjectsListRequestExpandItem.jsonOrThrow(item, {
419
- unrecognizedObjectKeys: "strip",
420
- }))
421
- : expand != null
422
- ? serializers.accounting.SalesOrdersBatchObjectsListRequestExpandItem.jsonOrThrow(expand, {
423
- unrecognizedObjectKeys: "strip",
424
- })
425
- : undefined,
426
- include_deleted_data: includeDeletedData,
427
- include_remote_data: includeRemoteData,
428
- include_remote_fields: includeRemoteFields,
429
- include_shell_data: includeShellData,
430
- issue_date_after: issueDateAfter === null || issueDateAfter === void 0 ? void 0 : issueDateAfter.toISOString(),
431
- issue_date_before: issueDateBefore === null || issueDateBefore === void 0 ? void 0 : issueDateBefore.toISOString(),
432
- modified_after: modifiedAfter === null || modifiedAfter === void 0 ? void 0 : modifiedAfter.toISOString(),
433
- modified_before: modifiedBefore === null || modifiedBefore === void 0 ? void 0 : modifiedBefore.toISOString(),
434
- page_size: pageSize,
435
- remote_fields: remoteFields != null ? remoteFields : undefined,
436
- remote_id: remoteId,
437
- show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined,
438
- };
439
388
  const _authRequest = yield this._options.authProvider.getAuthRequest();
440
389
  const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "X-Account-Token": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.accountToken) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.accountToken }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
441
390
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
442
- url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.MergeEnvironment.Production, `accounting/v1/sales-orders/batch/${core.url.encodePathParam(batch_id)}/objects`),
391
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.MergeEnvironment.Production, `accounting/v1/sales-orders/bulk/${core.url.encodePathParam(batch_id)}`),
443
392
  method: "GET",
444
393
  headers: _headers,
445
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
394
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
446
395
  timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
447
396
  maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
448
397
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -468,7 +417,7 @@ class SalesOrdersClient {
468
417
  rawResponse: _response.rawResponse,
469
418
  });
470
419
  }
471
- return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/accounting/v1/sales-orders/batch/{batch_id}/objects");
420
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/accounting/v1/sales-orders/bulk/{batch_id}");
472
421
  });
473
422
  }
474
423
  /**
@@ -2,8 +2,6 @@ import type * as Merge from "../../../../../../index";
2
2
  /**
3
3
  * @example
4
4
  * {
5
- * isDebugMode: true,
6
- * runAsync: true,
7
5
  * batchItems: [{
8
6
  * itemId: "item_id",
9
7
  * payload: {}
@@ -11,9 +9,5 @@ import type * as Merge from "../../../../../../index";
11
9
  * }
12
10
  */
13
11
  export interface SalesOrderBulkRequest {
14
- /** Whether to include debug fields (such as log file links) in the response. */
15
- isDebugMode?: boolean;
16
- /** Whether or not third-party updates should be run asynchronously. */
17
- runAsync?: boolean;
18
12
  batchItems: Merge.accounting.SalesOrderBatchItemRequest[];
19
13
  }
@@ -1,6 +1,5 @@
1
1
  export type { SalesOrderBulkRequest } from "./SalesOrderBulkRequest";
2
2
  export type { SalesOrderEndpointRequest } from "./SalesOrderEndpointRequest";
3
- export type { SalesOrdersBatchObjectsListRequest } from "./SalesOrdersBatchObjectsListRequest";
4
3
  export type { SalesOrdersLinesRemoteFieldClassesListRequest } from "./SalesOrdersLinesRemoteFieldClassesListRequest";
5
4
  export type { SalesOrdersListRequest } from "./SalesOrdersListRequest";
6
5
  export type { SalesOrdersRemoteFieldClassesListRequest } from "./SalesOrdersRemoteFieldClassesListRequest";
@@ -1,3 +1,2 @@
1
- export * from "./SalesOrdersBatchObjectsListRequestExpandItem";
2
1
  export * from "./SalesOrdersListRequestExpandItem";
3
2
  export * from "./SalesOrdersRetrieveRequestExpandItem";
@@ -14,6 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./SalesOrdersBatchObjectsListRequestExpandItem"), exports);
18
17
  __exportStar(require("./SalesOrdersListRequestExpandItem"), exports);
19
18
  __exportStar(require("./SalesOrdersRetrieveRequestExpandItem"), exports);
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Response serializer for POST bulk create - returns only batch_id
3
+ */
1
4
  export interface AsyncBulkCreateResponse {
5
+ /** The ID of the batch. */
2
6
  batchId: string;
3
7
  }
@@ -2,4 +2,4 @@ import type * as Merge from "../../../index";
2
2
  /**
3
3
  * The bank feed account associated with the transaction.
4
4
  */
5
- export type BankFeedTransactionRequestRequestBankFeedAccount = string | Merge.accounting.BankFeedAccountRequest;
5
+ export type BankFeedTransactionRequestRequestBankFeedAccount = string | Merge.accounting.BankFeedAccount;
@@ -1,6 +1,20 @@
1
1
  import type * as Merge from "../../../index";
2
+ /**
3
+ * Individual batch object with status
4
+ */
2
5
  export interface BatchObject {
3
6
  itemId: string;
4
- status: string;
7
+ /**
8
+ * Possible per-object statuses:
9
+ *
10
+ * * `PENDING` - This object has not been processed yet
11
+ * * `SUCCESS` - This object was successfully POSTed
12
+ * * `FAILURE` - This object was not successfully POSTed
13
+ *
14
+ * * `PENDING` - PENDING
15
+ * * `SUCCESS` - SUCCESS
16
+ * * `FAILURE` - FAILURE
17
+ */
18
+ status: Merge.accounting.BatchObjectStatus;
5
19
  response?: Merge.accounting.BatchObjectItemResponse;
6
20
  }
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Response for individual items within a batch
3
+ */
1
4
  export interface BatchObjectItemResponse {
2
5
  mergeCommonModelId?: string;
3
6
  errorMessage?: string;
@@ -0,0 +1,13 @@
1
+ import type * as Merge from "../../../index";
2
+ /**
3
+ * Possible per-object statuses:
4
+ *
5
+ * * `PENDING` - This object has not been processed yet
6
+ * * `SUCCESS` - This object was successfully POSTed
7
+ * * `FAILURE` - This object was not successfully POSTed
8
+ *
9
+ * * `PENDING` - PENDING
10
+ * * `SUCCESS` - SUCCESS
11
+ * * `FAILURE` - FAILURE
12
+ */
13
+ export type BatchObjectStatus = Merge.accounting.BatchObjectStatusEnum | string;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * * `PENDING` - This object has not been processed yet
3
+ * * `SUCCESS` - This object was successfully POSTed
4
+ * * `FAILURE` - This object was not successfully POSTed
5
+ *
6
+ * * `PENDING` - PENDING
7
+ * * `SUCCESS` - SUCCESS
8
+ * * `FAILURE` - FAILURE
9
+ */
10
+ export declare const BatchObjectStatusEnum: {
11
+ readonly Pending: "PENDING";
12
+ readonly Success: "SUCCESS";
13
+ readonly Failure: "FAILURE";
14
+ };
15
+ export type BatchObjectStatusEnum = (typeof BatchObjectStatusEnum)[keyof typeof BatchObjectStatusEnum];
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.BatchObjectStatusEnum = void 0;
5
+ /**
6
+ * * `PENDING` - This object has not been processed yet
7
+ * * `SUCCESS` - This object was successfully POSTed
8
+ * * `FAILURE` - This object was not successfully POSTed
9
+ *
10
+ * * `PENDING` - PENDING
11
+ * * `SUCCESS` - SUCCESS
12
+ * * `FAILURE` - FAILURE
13
+ */
14
+ exports.BatchObjectStatusEnum = {
15
+ Pending: "PENDING",
16
+ Success: "SUCCESS",
17
+ Failure: "FAILURE",
18
+ };
@@ -1,7 +1,29 @@
1
1
  import type * as Merge from "../../../index";
2
+ /**
3
+ * Response serializer for GET bulk/{batch_id} - returns batch status and objects
4
+ */
2
5
  export interface BatchObjectsResponse {
6
+ /** The ID of the batch. */
3
7
  batchId: string;
4
- status: string;
8
+ /**
9
+ * Possible overall statuses:
10
+ *
11
+ * * `ENQUEUED` - The request has been received and a task has been enqueued for processing
12
+ * * `IN_PROGRESS` - The enqueued task is being processed
13
+ * * `PARTIAL_SUCCESS` - The task has been processed, but not all objects were written successfully
14
+ * * `SUCCESS` - The task has been processed, and all objects were written successfully
15
+ * * `FAILED` - The task has been processed, but ran into an error while processing
16
+ * * `RATE_LIMITED` - The request was received but ran into rate limits while processing. The rate limited objects are being retried.
17
+ *
18
+ * * `ENQUEUED` - ENQUEUED
19
+ * * `IN_PROGRESS` - IN_PROGRESS
20
+ * * `PARTIAL_SUCCESS` - PARTIAL_SUCCESS
21
+ * * `SUCCESS` - SUCCESS
22
+ * * `FAILED` - FAILED
23
+ * * `RATE_LIMITED` - RATE_LIMITED
24
+ */
25
+ status: Merge.accounting.BatchObjectsResponseStatus;
26
+ /** The total number of objects in the batch. */
5
27
  totalCount: number;
6
28
  objects: Merge.accounting.BatchObject[];
7
29
  }
@@ -0,0 +1,19 @@
1
+ import type * as Merge from "../../../index";
2
+ /**
3
+ * Possible overall statuses:
4
+ *
5
+ * * `ENQUEUED` - The request has been received and a task has been enqueued for processing
6
+ * * `IN_PROGRESS` - The enqueued task is being processed
7
+ * * `PARTIAL_SUCCESS` - The task has been processed, but not all objects were written successfully
8
+ * * `SUCCESS` - The task has been processed, and all objects were written successfully
9
+ * * `FAILED` - The task has been processed, but ran into an error while processing
10
+ * * `RATE_LIMITED` - The request was received but ran into rate limits while processing. The rate limited objects are being retried.
11
+ *
12
+ * * `ENQUEUED` - ENQUEUED
13
+ * * `IN_PROGRESS` - IN_PROGRESS
14
+ * * `PARTIAL_SUCCESS` - PARTIAL_SUCCESS
15
+ * * `SUCCESS` - SUCCESS
16
+ * * `FAILED` - FAILED
17
+ * * `RATE_LIMITED` - RATE_LIMITED
18
+ */
19
+ export type BatchObjectsResponseStatus = Merge.accounting.BatchObjectsResponseStatusEnum | string;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * * `ENQUEUED` - The request has been received and a task has been enqueued for processing
3
+ * * `IN_PROGRESS` - The enqueued task is being processed
4
+ * * `PARTIAL_SUCCESS` - The task has been processed, but not all objects were written successfully
5
+ * * `SUCCESS` - The task has been processed, and all objects were written successfully
6
+ * * `FAILED` - The task has been processed, but ran into an error while processing
7
+ * * `RATE_LIMITED` - The request was received but ran into rate limits while processing. The rate limited objects are being retried.
8
+ *
9
+ * * `ENQUEUED` - ENQUEUED
10
+ * * `IN_PROGRESS` - IN_PROGRESS
11
+ * * `PARTIAL_SUCCESS` - PARTIAL_SUCCESS
12
+ * * `SUCCESS` - SUCCESS
13
+ * * `FAILED` - FAILED
14
+ * * `RATE_LIMITED` - RATE_LIMITED
15
+ */
16
+ export declare const BatchObjectsResponseStatusEnum: {
17
+ readonly Enqueued: "ENQUEUED";
18
+ readonly InProgress: "IN_PROGRESS";
19
+ readonly PartialSuccess: "PARTIAL_SUCCESS";
20
+ readonly Success: "SUCCESS";
21
+ readonly Failed: "FAILED";
22
+ readonly RateLimited: "RATE_LIMITED";
23
+ };
24
+ export type BatchObjectsResponseStatusEnum = (typeof BatchObjectsResponseStatusEnum)[keyof typeof BatchObjectsResponseStatusEnum];
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.BatchObjectsResponseStatusEnum = void 0;
5
+ /**
6
+ * * `ENQUEUED` - The request has been received and a task has been enqueued for processing
7
+ * * `IN_PROGRESS` - The enqueued task is being processed
8
+ * * `PARTIAL_SUCCESS` - The task has been processed, but not all objects were written successfully
9
+ * * `SUCCESS` - The task has been processed, and all objects were written successfully
10
+ * * `FAILED` - The task has been processed, but ran into an error while processing
11
+ * * `RATE_LIMITED` - The request was received but ran into rate limits while processing. The rate limited objects are being retried.
12
+ *
13
+ * * `ENQUEUED` - ENQUEUED
14
+ * * `IN_PROGRESS` - IN_PROGRESS
15
+ * * `PARTIAL_SUCCESS` - PARTIAL_SUCCESS
16
+ * * `SUCCESS` - SUCCESS
17
+ * * `FAILED` - FAILED
18
+ * * `RATE_LIMITED` - RATE_LIMITED
19
+ */
20
+ exports.BatchObjectsResponseStatusEnum = {
21
+ Enqueued: "ENQUEUED",
22
+ InProgress: "IN_PROGRESS",
23
+ PartialSuccess: "PARTIAL_SUCCESS",
24
+ Success: "SUCCESS",
25
+ Failed: "FAILED",
26
+ RateLimited: "RATE_LIMITED",
27
+ };