@maesn/typescript-sdk 0.4.0 → 0.5.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/FUNCTIONS.md +4 -2
- package/README.md +103 -10
- package/esm/funcs/accounting-create-account.d.ts.map +1 -1
- package/esm/funcs/accounting-create-account.js +2 -1
- package/esm/funcs/accounting-create-account.js.map +1 -1
- package/esm/funcs/accounting-create-bank-account.d.ts.map +1 -1
- package/esm/funcs/accounting-create-bank-account.js +2 -1
- package/esm/funcs/accounting-create-bank-account.js.map +1 -1
- package/esm/funcs/accounting-create-bill-line-item.d.ts.map +1 -1
- package/esm/funcs/accounting-create-bill-line-item.js +2 -1
- package/esm/funcs/accounting-create-bill-line-item.js.map +1 -1
- package/esm/funcs/accounting-create-bill.d.ts.map +1 -1
- package/esm/funcs/accounting-create-bill.js +2 -1
- package/esm/funcs/accounting-create-bill.js.map +1 -1
- package/esm/funcs/accounting-create-booking-proposal.d.ts.map +1 -1
- package/esm/funcs/accounting-create-booking-proposal.js +6 -4
- package/esm/funcs/accounting-create-booking-proposal.js.map +1 -1
- package/esm/funcs/accounting-create-contact.d.ts.map +1 -1
- package/esm/funcs/accounting-create-contact.js +2 -1
- package/esm/funcs/accounting-create-contact.js.map +1 -1
- package/esm/funcs/accounting-create-contacts-v1.d.ts +11 -0
- package/esm/funcs/accounting-create-contacts-v1.d.ts.map +1 -0
- package/esm/funcs/accounting-create-contacts-v1.js +77 -0
- package/esm/funcs/accounting-create-contacts-v1.js.map +1 -0
- package/esm/funcs/accounting-create-contacts.d.ts.map +1 -1
- package/esm/funcs/accounting-create-contacts.js +2 -1
- package/esm/funcs/accounting-create-contacts.js.map +1 -1
- package/esm/funcs/accounting-create-customer.d.ts.map +1 -1
- package/esm/funcs/accounting-create-customer.js +2 -1
- package/esm/funcs/accounting-create-customer.js.map +1 -1
- package/esm/funcs/accounting-create-event-subscriptions.d.ts +12 -0
- package/esm/funcs/accounting-create-event-subscriptions.d.ts.map +1 -0
- package/esm/funcs/accounting-create-event-subscriptions.js +78 -0
- package/esm/funcs/accounting-create-event-subscriptions.js.map +1 -0
- package/esm/funcs/accounting-create-expense.d.ts.map +1 -1
- package/esm/funcs/accounting-create-expense.js +6 -4
- package/esm/funcs/accounting-create-expense.js.map +1 -1
- package/esm/funcs/accounting-create-invoice.d.ts.map +1 -1
- package/esm/funcs/accounting-create-invoice.js +2 -1
- package/esm/funcs/accounting-create-invoice.js.map +1 -1
- package/esm/funcs/accounting-create-item.d.ts.map +1 -1
- package/esm/funcs/accounting-create-item.js +2 -1
- package/esm/funcs/accounting-create-item.js.map +1 -1
- package/esm/funcs/accounting-create-journal-entries.d.ts.map +1 -1
- package/esm/funcs/accounting-create-journal-entries.js +2 -1
- package/esm/funcs/accounting-create-journal-entries.js.map +1 -1
- package/esm/funcs/accounting-create-journal-entry-attachments.d.ts.map +1 -1
- package/esm/funcs/accounting-create-journal-entry-attachments.js +6 -4
- package/esm/funcs/accounting-create-journal-entry-attachments.js.map +1 -1
- package/esm/funcs/accounting-create-journal-entry.d.ts.map +1 -1
- package/esm/funcs/accounting-create-journal-entry.js +6 -4
- package/esm/funcs/accounting-create-journal-entry.js.map +1 -1
- package/esm/funcs/accounting-create-line-item.d.ts.map +1 -1
- package/esm/funcs/accounting-create-line-item.js +2 -1
- package/esm/funcs/accounting-create-line-item.js.map +1 -1
- package/esm/funcs/accounting-create-offer.d.ts.map +1 -1
- package/esm/funcs/accounting-create-offer.js +2 -1
- package/esm/funcs/accounting-create-offer.js.map +1 -1
- package/esm/funcs/accounting-create-pass-through-request.d.ts.map +1 -1
- package/esm/funcs/accounting-create-pass-through-request.js +2 -1
- package/esm/funcs/accounting-create-pass-through-request.js.map +1 -1
- package/esm/funcs/accounting-create-payment-term.d.ts.map +1 -1
- package/esm/funcs/accounting-create-payment-term.js +2 -1
- package/esm/funcs/accounting-create-payment-term.js.map +1 -1
- package/esm/funcs/accounting-create-payment.d.ts.map +1 -1
- package/esm/funcs/accounting-create-payment.js +2 -1
- package/esm/funcs/accounting-create-payment.js.map +1 -1
- package/esm/funcs/accounting-create-project.d.ts.map +1 -1
- package/esm/funcs/accounting-create-project.js +2 -1
- package/esm/funcs/accounting-create-project.js.map +1 -1
- package/esm/funcs/accounting-create-sales-order.d.ts.map +1 -1
- package/esm/funcs/accounting-create-sales-order.js +2 -1
- package/esm/funcs/accounting-create-sales-order.js.map +1 -1
- package/esm/funcs/accounting-create-supplier.d.ts.map +1 -1
- package/esm/funcs/accounting-create-supplier.js +2 -1
- package/esm/funcs/accounting-create-supplier.js.map +1 -1
- package/esm/funcs/accounting-create-transaction.d.ts.map +1 -1
- package/esm/funcs/accounting-create-transaction.js +6 -4
- package/esm/funcs/accounting-create-transaction.js.map +1 -1
- package/esm/funcs/accounting-create-vendor-credit.d.ts.map +1 -1
- package/esm/funcs/accounting-create-vendor-credit.js +2 -1
- package/esm/funcs/accounting-create-vendor-credit.js.map +1 -1
- package/esm/funcs/accounting-delete-bill.d.ts.map +1 -1
- package/esm/funcs/accounting-delete-bill.js +2 -1
- package/esm/funcs/accounting-delete-bill.js.map +1 -1
- package/esm/funcs/accounting-delete-event-subscriptions.d.ts +12 -0
- package/esm/funcs/accounting-delete-event-subscriptions.d.ts.map +1 -0
- package/esm/funcs/accounting-delete-event-subscriptions.js +80 -0
- package/esm/funcs/accounting-delete-event-subscriptions.js.map +1 -0
- package/esm/funcs/accounting-delete-payment.d.ts.map +1 -1
- package/esm/funcs/accounting-delete-payment.js +2 -1
- package/esm/funcs/accounting-delete-payment.js.map +1 -1
- package/esm/funcs/accounting-delete-vendor-credit.d.ts.map +1 -1
- package/esm/funcs/accounting-delete-vendor-credit.js +2 -1
- package/esm/funcs/accounting-delete-vendor-credit.js.map +1 -1
- package/esm/funcs/accounting-get-account.d.ts.map +1 -1
- package/esm/funcs/accounting-get-account.js +2 -1
- package/esm/funcs/accounting-get-account.js.map +1 -1
- package/esm/funcs/accounting-get-accounts.d.ts.map +1 -1
- package/esm/funcs/accounting-get-accounts.js +2 -1
- package/esm/funcs/accounting-get-accounts.js.map +1 -1
- package/esm/funcs/accounting-get-async-task-info.d.ts.map +1 -1
- package/esm/funcs/accounting-get-async-task-info.js +2 -1
- package/esm/funcs/accounting-get-async-task-info.js.map +1 -1
- package/esm/funcs/accounting-get-bank-account.d.ts.map +1 -1
- package/esm/funcs/accounting-get-bank-account.js +2 -1
- package/esm/funcs/accounting-get-bank-account.js.map +1 -1
- package/esm/funcs/accounting-get-bank-accounts.d.ts.map +1 -1
- package/esm/funcs/accounting-get-bank-accounts.js +2 -1
- package/esm/funcs/accounting-get-bank-accounts.js.map +1 -1
- package/esm/funcs/accounting-get-bill-document.d.ts.map +1 -1
- package/esm/funcs/accounting-get-bill-document.js +2 -1
- package/esm/funcs/accounting-get-bill-document.js.map +1 -1
- package/esm/funcs/accounting-get-bill-line-items.d.ts.map +1 -1
- package/esm/funcs/accounting-get-bill-line-items.js +2 -1
- package/esm/funcs/accounting-get-bill-line-items.js.map +1 -1
- package/esm/funcs/accounting-get-bill.d.ts.map +1 -1
- package/esm/funcs/accounting-get-bill.js +2 -1
- package/esm/funcs/accounting-get-bill.js.map +1 -1
- package/esm/funcs/accounting-get-bills.d.ts.map +1 -1
- package/esm/funcs/accounting-get-bills.js +2 -1
- package/esm/funcs/accounting-get-bills.js.map +1 -1
- package/esm/funcs/accounting-get-booking-proposal-document.d.ts.map +1 -1
- package/esm/funcs/accounting-get-booking-proposal-document.js +2 -1
- package/esm/funcs/accounting-get-booking-proposal-document.js.map +1 -1
- package/esm/funcs/accounting-get-booking-proposal.d.ts.map +1 -1
- package/esm/funcs/accounting-get-booking-proposal.js +2 -1
- package/esm/funcs/accounting-get-booking-proposal.js.map +1 -1
- package/esm/funcs/accounting-get-booking-proposals.d.ts.map +1 -1
- package/esm/funcs/accounting-get-booking-proposals.js +2 -1
- package/esm/funcs/accounting-get-booking-proposals.js.map +1 -1
- package/esm/funcs/accounting-get-contact.d.ts.map +1 -1
- package/esm/funcs/accounting-get-contact.js +2 -1
- package/esm/funcs/accounting-get-contact.js.map +1 -1
- package/esm/funcs/accounting-get-contacts.d.ts.map +1 -1
- package/esm/funcs/accounting-get-contacts.js +2 -1
- package/esm/funcs/accounting-get-contacts.js.map +1 -1
- package/esm/funcs/accounting-get-credit-note.d.ts.map +1 -1
- package/esm/funcs/accounting-get-credit-note.js +2 -1
- package/esm/funcs/accounting-get-credit-note.js.map +1 -1
- package/esm/funcs/accounting-get-credit-notes.d.ts.map +1 -1
- package/esm/funcs/accounting-get-credit-notes.js +2 -1
- package/esm/funcs/accounting-get-credit-notes.js.map +1 -1
- package/esm/funcs/accounting-get-customer.d.ts.map +1 -1
- package/esm/funcs/accounting-get-customer.js +2 -1
- package/esm/funcs/accounting-get-customer.js.map +1 -1
- package/esm/funcs/accounting-get-customers.d.ts.map +1 -1
- package/esm/funcs/accounting-get-customers.js +2 -1
- package/esm/funcs/accounting-get-customers.js.map +1 -1
- package/esm/funcs/accounting-get-dimensions.d.ts.map +1 -1
- package/esm/funcs/accounting-get-dimensions.js +2 -1
- package/esm/funcs/accounting-get-dimensions.js.map +1 -1
- package/esm/funcs/accounting-get-document-extensions.d.ts.map +1 -1
- package/esm/funcs/accounting-get-document-extensions.js +2 -1
- package/esm/funcs/accounting-get-document-extensions.js.map +1 -1
- package/esm/funcs/accounting-get-document-types.d.ts.map +1 -1
- package/esm/funcs/accounting-get-document-types.js +2 -1
- package/esm/funcs/accounting-get-document-types.js.map +1 -1
- package/esm/funcs/accounting-get-expense.d.ts.map +1 -1
- package/esm/funcs/accounting-get-expense.js +2 -1
- package/esm/funcs/accounting-get-expense.js.map +1 -1
- package/esm/funcs/accounting-get-expenses.d.ts.map +1 -1
- package/esm/funcs/accounting-get-expenses.js +2 -1
- package/esm/funcs/accounting-get-expenses.js.map +1 -1
- package/esm/funcs/accounting-get-fiscal-year.d.ts.map +1 -1
- package/esm/funcs/accounting-get-fiscal-year.js +2 -1
- package/esm/funcs/accounting-get-fiscal-year.js.map +1 -1
- package/esm/funcs/accounting-get-fiscal-years.d.ts.map +1 -1
- package/esm/funcs/accounting-get-fiscal-years.js +2 -1
- package/esm/funcs/accounting-get-fiscal-years.js.map +1 -1
- package/esm/funcs/accounting-get-goods-receipt-line-item.d.ts.map +1 -1
- package/esm/funcs/accounting-get-goods-receipt-line-item.js +2 -1
- package/esm/funcs/accounting-get-goods-receipt-line-item.js.map +1 -1
- package/esm/funcs/accounting-get-goods-receipt-line-items.d.ts.map +1 -1
- package/esm/funcs/accounting-get-goods-receipt-line-items.js +2 -1
- package/esm/funcs/accounting-get-goods-receipt-line-items.js.map +1 -1
- package/esm/funcs/accounting-get-goods-receipt.d.ts.map +1 -1
- package/esm/funcs/accounting-get-goods-receipt.js +2 -1
- package/esm/funcs/accounting-get-goods-receipt.js.map +1 -1
- package/esm/funcs/accounting-get-goods-receipts.d.ts.map +1 -1
- package/esm/funcs/accounting-get-goods-receipts.js +2 -1
- package/esm/funcs/accounting-get-goods-receipts.js.map +1 -1
- package/esm/funcs/accounting-get-invoice-document.d.ts.map +1 -1
- package/esm/funcs/accounting-get-invoice-document.js +2 -1
- package/esm/funcs/accounting-get-invoice-document.js.map +1 -1
- package/esm/funcs/accounting-get-invoice.d.ts.map +1 -1
- package/esm/funcs/accounting-get-invoice.js +2 -1
- package/esm/funcs/accounting-get-invoice.js.map +1 -1
- package/esm/funcs/accounting-get-invoices.d.ts.map +1 -1
- package/esm/funcs/accounting-get-invoices.js +2 -1
- package/esm/funcs/accounting-get-invoices.js.map +1 -1
- package/esm/funcs/accounting-get-item.d.ts.map +1 -1
- package/esm/funcs/accounting-get-item.js +2 -1
- package/esm/funcs/accounting-get-item.js.map +1 -1
- package/esm/funcs/accounting-get-items.d.ts.map +1 -1
- package/esm/funcs/accounting-get-items.js +2 -1
- package/esm/funcs/accounting-get-items.js.map +1 -1
- package/esm/funcs/accounting-get-journal-entries.d.ts.map +1 -1
- package/esm/funcs/accounting-get-journal-entries.js +2 -1
- package/esm/funcs/accounting-get-journal-entries.js.map +1 -1
- package/esm/funcs/accounting-get-journal-entry-attachment-by-id.d.ts.map +1 -1
- package/esm/funcs/accounting-get-journal-entry-attachment-by-id.js +2 -1
- package/esm/funcs/accounting-get-journal-entry-attachment-by-id.js.map +1 -1
- package/esm/funcs/accounting-get-journal-entry-attachments.d.ts.map +1 -1
- package/esm/funcs/accounting-get-journal-entry-attachments.js +2 -1
- package/esm/funcs/accounting-get-journal-entry-attachments.js.map +1 -1
- package/esm/funcs/accounting-get-journal-entry.d.ts.map +1 -1
- package/esm/funcs/accounting-get-journal-entry.js +2 -1
- package/esm/funcs/accounting-get-journal-entry.js.map +1 -1
- package/esm/funcs/accounting-get-journals.d.ts.map +1 -1
- package/esm/funcs/accounting-get-journals.js +2 -1
- package/esm/funcs/accounting-get-journals.js.map +1 -1
- package/esm/funcs/accounting-get-line-item.d.ts.map +1 -1
- package/esm/funcs/accounting-get-line-item.js +2 -1
- package/esm/funcs/accounting-get-line-item.js.map +1 -1
- package/esm/funcs/accounting-get-line-items.d.ts.map +1 -1
- package/esm/funcs/accounting-get-line-items.js +2 -1
- package/esm/funcs/accounting-get-line-items.js.map +1 -1
- package/esm/funcs/accounting-get-offer-document.d.ts.map +1 -1
- package/esm/funcs/accounting-get-offer-document.js +2 -1
- package/esm/funcs/accounting-get-offer-document.js.map +1 -1
- package/esm/funcs/accounting-get-offer-line-item.d.ts.map +1 -1
- package/esm/funcs/accounting-get-offer-line-item.js +2 -1
- package/esm/funcs/accounting-get-offer-line-item.js.map +1 -1
- package/esm/funcs/accounting-get-offer-line-items.d.ts.map +1 -1
- package/esm/funcs/accounting-get-offer-line-items.js +2 -1
- package/esm/funcs/accounting-get-offer-line-items.js.map +1 -1
- package/esm/funcs/accounting-get-offer.d.ts.map +1 -1
- package/esm/funcs/accounting-get-offer.js +2 -1
- package/esm/funcs/accounting-get-offer.js.map +1 -1
- package/esm/funcs/accounting-get-offers.d.ts.map +1 -1
- package/esm/funcs/accounting-get-offers.js +2 -1
- package/esm/funcs/accounting-get-offers.js.map +1 -1
- package/esm/funcs/accounting-get-open-items.d.ts.map +1 -1
- package/esm/funcs/accounting-get-open-items.js +2 -1
- package/esm/funcs/accounting-get-open-items.js.map +1 -1
- package/esm/funcs/accounting-get-payment-term.d.ts.map +1 -1
- package/esm/funcs/accounting-get-payment-term.js +2 -1
- package/esm/funcs/accounting-get-payment-term.js.map +1 -1
- package/esm/funcs/accounting-get-payment-terms.d.ts.map +1 -1
- package/esm/funcs/accounting-get-payment-terms.js +2 -1
- package/esm/funcs/accounting-get-payment-terms.js.map +1 -1
- package/esm/funcs/accounting-get-payment.d.ts.map +1 -1
- package/esm/funcs/accounting-get-payment.js +2 -1
- package/esm/funcs/accounting-get-payment.js.map +1 -1
- package/esm/funcs/accounting-get-payments.d.ts.map +1 -1
- package/esm/funcs/accounting-get-payments.js +2 -1
- package/esm/funcs/accounting-get-payments.js.map +1 -1
- package/esm/funcs/accounting-get-profile.d.ts +11 -0
- package/esm/funcs/accounting-get-profile.d.ts.map +1 -0
- package/esm/funcs/accounting-get-profile.js +72 -0
- package/esm/funcs/accounting-get-profile.js.map +1 -0
- package/esm/funcs/accounting-get-project.d.ts.map +1 -1
- package/esm/funcs/accounting-get-project.js +2 -1
- package/esm/funcs/accounting-get-project.js.map +1 -1
- package/esm/funcs/accounting-get-projects.d.ts.map +1 -1
- package/esm/funcs/accounting-get-projects.js +2 -1
- package/esm/funcs/accounting-get-projects.js.map +1 -1
- package/esm/funcs/accounting-get-purchase-order-line-item.d.ts.map +1 -1
- package/esm/funcs/accounting-get-purchase-order-line-item.js +2 -1
- package/esm/funcs/accounting-get-purchase-order-line-item.js.map +1 -1
- package/esm/funcs/accounting-get-purchase-order-line-items.d.ts.map +1 -1
- package/esm/funcs/accounting-get-purchase-order-line-items.js +2 -1
- package/esm/funcs/accounting-get-purchase-order-line-items.js.map +1 -1
- package/esm/funcs/accounting-get-purchase-order.d.ts.map +1 -1
- package/esm/funcs/accounting-get-purchase-order.js +2 -1
- package/esm/funcs/accounting-get-purchase-order.js.map +1 -1
- package/esm/funcs/accounting-get-purchase-orders.d.ts.map +1 -1
- package/esm/funcs/accounting-get-purchase-orders.js +2 -1
- package/esm/funcs/accounting-get-purchase-orders.js.map +1 -1
- package/esm/funcs/accounting-get-sales-order-lines.d.ts.map +1 -1
- package/esm/funcs/accounting-get-sales-order-lines.js +2 -1
- package/esm/funcs/accounting-get-sales-order-lines.js.map +1 -1
- package/esm/funcs/accounting-get-sales-order.d.ts.map +1 -1
- package/esm/funcs/accounting-get-sales-order.js +2 -1
- package/esm/funcs/accounting-get-sales-order.js.map +1 -1
- package/esm/funcs/accounting-get-sales-orders.d.ts.map +1 -1
- package/esm/funcs/accounting-get-sales-orders.js +2 -1
- package/esm/funcs/accounting-get-sales-orders.js.map +1 -1
- package/esm/funcs/accounting-get-supplier.d.ts.map +1 -1
- package/esm/funcs/accounting-get-supplier.js +2 -1
- package/esm/funcs/accounting-get-supplier.js.map +1 -1
- package/esm/funcs/accounting-get-suppliers.d.ts.map +1 -1
- package/esm/funcs/accounting-get-suppliers.js +2 -1
- package/esm/funcs/accounting-get-suppliers.js.map +1 -1
- package/esm/funcs/accounting-get-tax-rate.d.ts.map +1 -1
- package/esm/funcs/accounting-get-tax-rate.js +2 -1
- package/esm/funcs/accounting-get-tax-rate.js.map +1 -1
- package/esm/funcs/accounting-get-tax-rates.d.ts.map +1 -1
- package/esm/funcs/accounting-get-tax-rates.js +2 -1
- package/esm/funcs/accounting-get-tax-rates.js.map +1 -1
- package/esm/funcs/accounting-get-trial-balance.d.ts.map +1 -1
- package/esm/funcs/accounting-get-trial-balance.js +2 -1
- package/esm/funcs/accounting-get-trial-balance.js.map +1 -1
- package/esm/funcs/accounting-get-units.d.ts.map +1 -1
- package/esm/funcs/accounting-get-units.js +2 -1
- package/esm/funcs/accounting-get-units.js.map +1 -1
- package/esm/funcs/accounting-get-vendor-credits.d.ts.map +1 -1
- package/esm/funcs/accounting-get-vendor-credits.js +2 -1
- package/esm/funcs/accounting-get-vendor-credits.js.map +1 -1
- package/esm/funcs/accounting-patch-contact.d.ts.map +1 -1
- package/esm/funcs/accounting-patch-contact.js +2 -1
- package/esm/funcs/accounting-patch-contact.js.map +1 -1
- package/esm/funcs/accounting-patch-customers.d.ts.map +1 -1
- package/esm/funcs/accounting-patch-customers.js +2 -1
- package/esm/funcs/accounting-patch-customers.js.map +1 -1
- package/esm/funcs/accounting-patch-invoice.d.ts.map +1 -1
- package/esm/funcs/accounting-patch-invoice.js +2 -1
- package/esm/funcs/accounting-patch-invoice.js.map +1 -1
- package/esm/funcs/accounting-patch-item.d.ts.map +1 -1
- package/esm/funcs/accounting-patch-item.js +2 -1
- package/esm/funcs/accounting-patch-item.js.map +1 -1
- package/esm/funcs/accounting-patch-line-item.d.ts +11 -0
- package/esm/funcs/accounting-patch-line-item.d.ts.map +1 -0
- package/esm/funcs/accounting-patch-line-item.js +88 -0
- package/esm/funcs/accounting-patch-line-item.js.map +1 -0
- package/esm/funcs/accounting-patch-supplier.d.ts.map +1 -1
- package/esm/funcs/accounting-patch-supplier.js +2 -1
- package/esm/funcs/accounting-patch-supplier.js.map +1 -1
- package/esm/funcs/accounting-post-file.d.ts.map +1 -1
- package/esm/funcs/accounting-post-file.js +6 -4
- package/esm/funcs/accounting-post-file.js.map +1 -1
- package/esm/funcs/accounting-put-contact.d.ts.map +1 -1
- package/esm/funcs/accounting-put-contact.js +2 -1
- package/esm/funcs/accounting-put-contact.js.map +1 -1
- package/esm/funcs/accounting-update-bill-line-item.d.ts.map +1 -1
- package/esm/funcs/accounting-update-bill-line-item.js +2 -1
- package/esm/funcs/accounting-update-bill-line-item.js.map +1 -1
- package/esm/funcs/accounting-update-bill.d.ts.map +1 -1
- package/esm/funcs/accounting-update-bill.js +2 -1
- package/esm/funcs/accounting-update-bill.js.map +1 -1
- package/esm/funcs/accounting-update-customer.d.ts.map +1 -1
- package/esm/funcs/accounting-update-customer.js +2 -1
- package/esm/funcs/accounting-update-customer.js.map +1 -1
- package/esm/funcs/accounting-update-supplier.d.ts.map +1 -1
- package/esm/funcs/accounting-update-supplier.js +2 -1
- package/esm/funcs/accounting-update-supplier.js.map +1 -1
- package/esm/funcs/accounting-update-vendor-credit.d.ts.map +1 -1
- package/esm/funcs/accounting-update-vendor-credit.js +2 -1
- package/esm/funcs/accounting-update-vendor-credit.js.map +1 -1
- package/esm/funcs/accounting-v2-create-booking-proposal-v2.d.ts.map +1 -1
- package/esm/funcs/accounting-v2-create-booking-proposal-v2.js +6 -4
- package/esm/funcs/accounting-v2-create-booking-proposal-v2.js.map +1 -1
- package/esm/funcs/accounting-v2-create-contact-v2.d.ts.map +1 -1
- package/esm/funcs/accounting-v2-create-contact-v2.js +2 -1
- package/esm/funcs/accounting-v2-create-contact-v2.js.map +1 -1
- package/esm/funcs/accounting-v2-get-contact-v2.d.ts.map +1 -1
- package/esm/funcs/accounting-v2-get-contact-v2.js +2 -1
- package/esm/funcs/accounting-v2-get-contact-v2.js.map +1 -1
- package/esm/funcs/accounting-v2-get-contacts-v2.d.ts.map +1 -1
- package/esm/funcs/accounting-v2-get-contacts-v2.js +2 -1
- package/esm/funcs/accounting-v2-get-contacts-v2.js.map +1 -1
- package/esm/funcs/accounting-v2-get-dimensions-by-dimension.d.ts.map +1 -1
- package/esm/funcs/accounting-v2-get-dimensions-by-dimension.js +2 -1
- package/esm/funcs/accounting-v2-get-dimensions-by-dimension.js.map +1 -1
- package/esm/funcs/accounting-v2-get-dimensions-v2.d.ts.map +1 -1
- package/esm/funcs/accounting-v2-get-dimensions-v2.js +2 -1
- package/esm/funcs/accounting-v2-get-dimensions-v2.js.map +1 -1
- package/esm/funcs/accounting-v2-patch-contact-v2.d.ts.map +1 -1
- package/esm/funcs/accounting-v2-patch-contact-v2.js +2 -1
- package/esm/funcs/accounting-v2-patch-contact-v2.js.map +1 -1
- package/esm/funcs/accounting-v2-put-contact-v2.d.ts.map +1 -1
- package/esm/funcs/accounting-v2-put-contact-v2.js +2 -1
- package/esm/funcs/accounting-v2-put-contact-v2.js.map +1 -1
- package/esm/funcs/auth-create-end-user-account.d.ts.map +1 -1
- package/esm/funcs/auth-create-end-user-account.js +3 -2
- package/esm/funcs/auth-create-end-user-account.js.map +1 -1
- package/esm/funcs/auth-get-companies.d.ts.map +1 -1
- package/esm/funcs/auth-get-companies.js +3 -2
- package/esm/funcs/auth-get-companies.js.map +1 -1
- package/esm/funcs/auth-get-environments.d.ts.map +1 -1
- package/esm/funcs/auth-get-environments.js +3 -2
- package/esm/funcs/auth-get-environments.js.map +1 -1
- package/esm/funcs/auth-system-login-url.d.ts.map +1 -1
- package/esm/funcs/auth-system-login-url.js +3 -2
- package/esm/funcs/auth-system-login-url.js.map +1 -1
- package/esm/funcs/events-get-code.d.ts +11 -0
- package/esm/funcs/events-get-code.d.ts.map +1 -0
- package/esm/funcs/events-get-code.js +78 -0
- package/esm/funcs/events-get-code.js.map +1 -0
- package/esm/funcs/events-handle-callback.d.ts +11 -0
- package/esm/funcs/events-handle-callback.d.ts.map +1 -0
- package/esm/funcs/events-handle-callback.js +78 -0
- package/esm/funcs/events-handle-callback.js.map +1 -0
- package/esm/funcs/events-handle-configuration-callback.d.ts +11 -0
- package/esm/funcs/events-handle-configuration-callback.d.ts.map +1 -0
- package/esm/funcs/events-handle-configuration-callback.js +78 -0
- package/esm/funcs/events-handle-configuration-callback.js.map +1 -0
- package/esm/funcs/health-check.d.ts +17 -0
- package/esm/funcs/health-check.d.ts.map +1 -0
- package/esm/funcs/health-check.js +78 -0
- package/esm/funcs/health-check.js.map +1 -0
- package/esm/funcs/tenants-add-callback-url.d.ts.map +1 -1
- package/esm/funcs/tenants-add-callback-url.js +3 -2
- package/esm/funcs/tenants-add-callback-url.js.map +1 -1
- package/esm/funcs/tenants-count-end-users-by-system.d.ts +11 -0
- package/esm/funcs/tenants-count-end-users-by-system.d.ts.map +1 -0
- package/esm/funcs/tenants-count-end-users-by-system.js +72 -0
- package/esm/funcs/tenants-count-end-users-by-system.js.map +1 -0
- package/esm/funcs/tenants-delete-end-user.d.ts.map +1 -1
- package/esm/funcs/tenants-delete-end-user.js +3 -2
- package/esm/funcs/tenants-delete-end-user.js.map +1 -1
- package/esm/funcs/tenants-delete-registered-system.d.ts +11 -0
- package/esm/funcs/tenants-delete-registered-system.d.ts.map +1 -0
- package/esm/funcs/tenants-delete-registered-system.js +79 -0
- package/esm/funcs/tenants-delete-registered-system.js.map +1 -0
- package/esm/funcs/tenants-get-callback-url.d.ts +11 -0
- package/esm/funcs/tenants-get-callback-url.d.ts.map +1 -0
- package/esm/funcs/tenants-get-callback-url.js +72 -0
- package/esm/funcs/tenants-get-callback-url.js.map +1 -0
- package/esm/funcs/tenants-get-end-user-list.d.ts.map +1 -1
- package/esm/funcs/tenants-get-end-user-list.js +3 -2
- package/esm/funcs/tenants-get-end-user-list.js.map +1 -1
- package/esm/funcs/tenants-get-registered-systems-masked.d.ts +11 -0
- package/esm/funcs/tenants-get-registered-systems-masked.d.ts.map +1 -0
- package/esm/funcs/tenants-get-registered-systems-masked.js +72 -0
- package/esm/funcs/tenants-get-registered-systems-masked.js.map +1 -0
- package/esm/funcs/tenants-get-registered-systems.d.ts +11 -0
- package/esm/funcs/tenants-get-registered-systems.d.ts.map +1 -0
- package/esm/funcs/tenants-get-registered-systems.js +72 -0
- package/esm/funcs/tenants-get-registered-systems.js.map +1 -0
- package/esm/funcs/tenants-get-submission-page-style-by-key.d.ts +11 -0
- package/esm/funcs/tenants-get-submission-page-style-by-key.d.ts.map +1 -0
- package/esm/funcs/tenants-get-submission-page-style-by-key.js +72 -0
- package/esm/funcs/tenants-get-submission-page-style-by-key.js.map +1 -0
- package/esm/funcs/tenants-get-submission-page-style.d.ts +11 -0
- package/esm/funcs/tenants-get-submission-page-style.d.ts.map +1 -0
- package/esm/funcs/tenants-get-submission-page-style.js +86 -0
- package/esm/funcs/tenants-get-submission-page-style.js.map +1 -0
- package/esm/funcs/tenants-get-target-system-requirements.d.ts +11 -0
- package/esm/funcs/tenants-get-target-system-requirements.d.ts.map +1 -0
- package/esm/funcs/tenants-get-target-system-requirements.js +72 -0
- package/esm/funcs/tenants-get-target-system-requirements.js.map +1 -0
- package/esm/funcs/tenants-get-target-system-values.d.ts +11 -0
- package/esm/funcs/tenants-get-target-system-values.d.ts.map +1 -0
- package/esm/funcs/tenants-get-target-system-values.js +72 -0
- package/esm/funcs/tenants-get-target-system-values.js.map +1 -0
- package/esm/funcs/tenants-system-registration.d.ts.map +1 -1
- package/esm/funcs/tenants-system-registration.js +3 -2
- package/esm/funcs/tenants-system-registration.js.map +1 -1
- package/esm/funcs/tenants-update-submission-page-style.d.ts +12 -0
- package/esm/funcs/tenants-update-submission-page-style.d.ts.map +1 -0
- package/esm/funcs/tenants-update-submission-page-style.js +74 -0
- package/esm/funcs/tenants-update-submission-page-style.js.map +1 -0
- package/esm/funcs/user-get-user-info.d.ts.map +1 -1
- package/esm/funcs/user-get-user-info.js +2 -1
- package/esm/funcs/user-get-user-info.js.map +1 -1
- package/esm/funcs/webhooks-create-webhook-end-user.d.ts +11 -0
- package/esm/funcs/webhooks-create-webhook-end-user.d.ts.map +1 -0
- package/esm/funcs/webhooks-create-webhook-end-user.js +78 -0
- package/esm/funcs/webhooks-create-webhook-end-user.js.map +1 -0
- package/esm/funcs/webhooks-create-webhook.d.ts.map +1 -1
- package/esm/funcs/webhooks-create-webhook.js +3 -2
- package/esm/funcs/webhooks-create-webhook.js.map +1 -1
- package/esm/funcs/webhooks-delete-webhook-end-user.d.ts +11 -0
- package/esm/funcs/webhooks-delete-webhook-end-user.d.ts.map +1 -0
- package/esm/funcs/webhooks-delete-webhook-end-user.js +83 -0
- package/esm/funcs/webhooks-delete-webhook-end-user.js.map +1 -0
- package/esm/funcs/webhooks-delete-webhook.d.ts.map +1 -1
- package/esm/funcs/webhooks-delete-webhook.js +3 -2
- package/esm/funcs/webhooks-delete-webhook.js.map +1 -1
- package/esm/funcs/webhooks-get-webhooks.d.ts.map +1 -1
- package/esm/funcs/webhooks-get-webhooks.js +3 -2
- package/esm/funcs/webhooks-get-webhooks.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/encodings.d.ts +1 -0
- package/esm/lib/encodings.d.ts.map +1 -1
- package/esm/lib/encodings.js +6 -0
- package/esm/lib/encodings.js.map +1 -1
- package/esm/lib/sdks.d.ts +1 -1
- package/esm/lib/sdks.d.ts.map +1 -1
- package/esm/lib/sdks.js +3 -3
- package/esm/lib/sdks.js.map +1 -1
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/lib/security.js +9 -2
- package/esm/lib/security.js.map +1 -1
- package/esm/models/create-event-subscription-request-dto.d.ts +14 -0
- package/esm/models/create-event-subscription-request-dto.d.ts.map +1 -0
- package/esm/models/create-event-subscription-request-dto.js +13 -0
- package/esm/models/create-event-subscription-request-dto.js.map +1 -0
- package/esm/models/index.d.ts +3 -0
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +3 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/operations/check.d.ts +11 -0
- package/esm/models/operations/check.d.ts.map +1 -0
- package/esm/models/operations/check.js +11 -0
- package/esm/models/operations/check.js.map +1 -0
- package/esm/models/operations/create-contacts-v1.d.ts +56 -0
- package/esm/models/operations/create-contacts-v1.d.ts.map +1 -0
- package/esm/models/operations/create-contacts-v1.js +54 -0
- package/esm/models/operations/create-contacts-v1.js.map +1 -0
- package/esm/models/operations/create-event-subscriptions.d.ts +18 -0
- package/esm/models/operations/create-event-subscriptions.d.ts.map +1 -0
- package/esm/models/operations/create-event-subscriptions.js +14 -0
- package/esm/models/operations/create-event-subscriptions.js.map +1 -0
- package/esm/models/operations/create-webhook-end-user.d.ts +61 -0
- package/esm/models/operations/create-webhook-end-user.d.ts.map +1 -0
- package/esm/models/operations/create-webhook-end-user.js +55 -0
- package/esm/models/operations/create-webhook-end-user.js.map +1 -0
- package/esm/models/operations/delete-event-subscriptions.d.ts +17 -0
- package/esm/models/operations/delete-event-subscriptions.d.ts.map +1 -0
- package/esm/models/operations/delete-event-subscriptions.js +13 -0
- package/esm/models/operations/delete-event-subscriptions.js.map +1 -0
- package/esm/models/operations/delete-registered-system.d.ts +12 -0
- package/esm/models/operations/delete-registered-system.d.ts.map +1 -0
- package/esm/models/operations/delete-registered-system.js +12 -0
- package/esm/models/operations/delete-registered-system.js.map +1 -0
- package/esm/models/operations/delete-webhook-end-user.d.ts +31 -0
- package/esm/models/operations/delete-webhook-end-user.d.ts.map +1 -0
- package/esm/models/operations/delete-webhook-end-user.js +20 -0
- package/esm/models/operations/delete-webhook-end-user.js.map +1 -0
- package/esm/models/operations/get-code.d.ts +21 -0
- package/esm/models/operations/get-code.d.ts.map +1 -0
- package/esm/models/operations/get-code.js +18 -0
- package/esm/models/operations/get-code.js.map +1 -0
- package/esm/models/operations/get-submission-page-style-by-key.d.ts +11 -0
- package/esm/models/operations/get-submission-page-style-by-key.d.ts.map +1 -0
- package/esm/models/operations/get-submission-page-style-by-key.js +11 -0
- package/esm/models/operations/get-submission-page-style-by-key.js.map +1 -0
- package/esm/models/operations/get-submission-page-style.d.ts +24 -0
- package/esm/models/operations/get-submission-page-style.d.ts.map +1 -0
- package/esm/models/operations/get-submission-page-style.js +18 -0
- package/esm/models/operations/get-submission-page-style.js.map +1 -0
- package/esm/models/operations/handle-callback.d.ts +21 -0
- package/esm/models/operations/handle-callback.d.ts.map +1 -0
- package/esm/models/operations/handle-callback.js +18 -0
- package/esm/models/operations/handle-callback.js.map +1 -0
- package/esm/models/operations/handle-configuration-callback.d.ts +21 -0
- package/esm/models/operations/handle-configuration-callback.d.ts.map +1 -0
- package/esm/models/operations/handle-configuration-callback.js +18 -0
- package/esm/models/operations/handle-configuration-callback.js.map +1 -0
- package/esm/models/operations/index.d.ts +14 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +14 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/patch-line-item.d.ts +65 -0
- package/esm/models/operations/patch-line-item.d.ts.map +1 -0
- package/esm/models/operations/patch-line-item.js +57 -0
- package/esm/models/operations/patch-line-item.js.map +1 -0
- package/esm/models/operations/update-submission-page-style.d.ts +11 -0
- package/esm/models/operations/update-submission-page-style.d.ts.map +1 -0
- package/esm/models/operations/update-submission-page-style.js +11 -0
- package/esm/models/operations/update-submission-page-style.js.map +1 -0
- package/esm/models/patch-line-item-request-dto.d.ts +46 -0
- package/esm/models/patch-line-item-request-dto.d.ts.map +1 -0
- package/esm/models/patch-line-item-request-dto.js +32 -0
- package/esm/models/patch-line-item-request-dto.js.map +1 -0
- package/esm/models/security.d.ts +26 -4
- package/esm/models/security.d.ts.map +1 -1
- package/esm/models/security.js +24 -3
- package/esm/models/security.js.map +1 -1
- package/esm/models/submission-page-style-dto.d.ts +28 -0
- package/esm/models/submission-page-style-dto.d.ts.map +1 -0
- package/esm/models/submission-page-style-dto.js +20 -0
- package/esm/models/submission-page-style-dto.js.map +1 -0
- package/esm/sdk/accounting.d.ts +6 -0
- package/esm/sdk/accounting.d.ts.map +1 -1
- package/esm/sdk/accounting.js +20 -0
- package/esm/sdk/accounting.js.map +1 -1
- package/esm/sdk/events.d.ts +8 -0
- package/esm/sdk/events.d.ts.map +1 -0
- package/esm/sdk/events.js +20 -0
- package/esm/sdk/events.js.map +1 -0
- package/esm/sdk/health.d.ts +12 -0
- package/esm/sdk/health.d.ts.map +1 -0
- package/esm/sdk/health.js +18 -0
- package/esm/sdk/health.js.map +1 -0
- package/esm/sdk/sdk.d.ts +8 -2
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +13 -3
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/tenants.d.ts +10 -0
- package/esm/sdk/tenants.d.ts.map +1 -1
- package/esm/sdk/tenants.js +40 -0
- package/esm/sdk/tenants.js.map +1 -1
- package/esm/sdk/webhooks.d.ts +2 -0
- package/esm/sdk/webhooks.d.ts.map +1 -1
- package/esm/sdk/webhooks.js +8 -0
- package/esm/sdk/webhooks.js.map +1 -1
- package/examples/accountingGetAccount.example.ts +4 -2
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/funcs/accounting-create-account.ts +3 -1
- package/src/funcs/accounting-create-bank-account.ts +3 -1
- package/src/funcs/accounting-create-bill-line-item.ts +3 -1
- package/src/funcs/accounting-create-bill.ts +3 -1
- package/src/funcs/accounting-create-booking-proposal.ts +12 -4
- package/src/funcs/accounting-create-contact.ts +3 -1
- package/src/funcs/accounting-create-contacts-v1.ts +162 -0
- package/src/funcs/accounting-create-contacts.ts +3 -1
- package/src/funcs/accounting-create-customer.ts +3 -1
- package/src/funcs/accounting-create-event-subscriptions.ts +163 -0
- package/src/funcs/accounting-create-expense.ts +12 -4
- package/src/funcs/accounting-create-invoice.ts +3 -1
- package/src/funcs/accounting-create-item.ts +3 -1
- package/src/funcs/accounting-create-journal-entries.ts +3 -1
- package/src/funcs/accounting-create-journal-entry-attachments.ts +7 -4
- package/src/funcs/accounting-create-journal-entry.ts +12 -4
- package/src/funcs/accounting-create-line-item.ts +3 -1
- package/src/funcs/accounting-create-offer.ts +3 -1
- package/src/funcs/accounting-create-pass-through-request.ts +3 -1
- package/src/funcs/accounting-create-payment-term.ts +3 -1
- package/src/funcs/accounting-create-payment.ts +3 -1
- package/src/funcs/accounting-create-project.ts +3 -1
- package/src/funcs/accounting-create-sales-order.ts +3 -1
- package/src/funcs/accounting-create-supplier.ts +3 -1
- package/src/funcs/accounting-create-transaction.ts +12 -4
- package/src/funcs/accounting-create-vendor-credit.ts +3 -1
- package/src/funcs/accounting-delete-bill.ts +3 -1
- package/src/funcs/accounting-delete-event-subscriptions.ts +171 -0
- package/src/funcs/accounting-delete-payment.ts +3 -1
- package/src/funcs/accounting-delete-vendor-credit.ts +3 -1
- package/src/funcs/accounting-get-account.ts +3 -1
- package/src/funcs/accounting-get-accounts.ts +3 -1
- package/src/funcs/accounting-get-async-task-info.ts +3 -1
- package/src/funcs/accounting-get-bank-account.ts +3 -1
- package/src/funcs/accounting-get-bank-accounts.ts +3 -1
- package/src/funcs/accounting-get-bill-document.ts +3 -1
- package/src/funcs/accounting-get-bill-line-items.ts +3 -1
- package/src/funcs/accounting-get-bill.ts +3 -1
- package/src/funcs/accounting-get-bills.ts +3 -1
- package/src/funcs/accounting-get-booking-proposal-document.ts +3 -1
- package/src/funcs/accounting-get-booking-proposal.ts +3 -1
- package/src/funcs/accounting-get-booking-proposals.ts +3 -1
- package/src/funcs/accounting-get-contact.ts +3 -1
- package/src/funcs/accounting-get-contacts.ts +3 -1
- package/src/funcs/accounting-get-credit-note.ts +3 -1
- package/src/funcs/accounting-get-credit-notes.ts +3 -1
- package/src/funcs/accounting-get-customer.ts +3 -1
- package/src/funcs/accounting-get-customers.ts +3 -1
- package/src/funcs/accounting-get-dimensions.ts +3 -1
- package/src/funcs/accounting-get-document-extensions.ts +3 -1
- package/src/funcs/accounting-get-document-types.ts +3 -1
- package/src/funcs/accounting-get-expense.ts +3 -1
- package/src/funcs/accounting-get-expenses.ts +3 -1
- package/src/funcs/accounting-get-fiscal-year.ts +3 -1
- package/src/funcs/accounting-get-fiscal-years.ts +3 -1
- package/src/funcs/accounting-get-goods-receipt-line-item.ts +3 -1
- package/src/funcs/accounting-get-goods-receipt-line-items.ts +3 -1
- package/src/funcs/accounting-get-goods-receipt.ts +3 -1
- package/src/funcs/accounting-get-goods-receipts.ts +3 -1
- package/src/funcs/accounting-get-invoice-document.ts +3 -1
- package/src/funcs/accounting-get-invoice.ts +3 -1
- package/src/funcs/accounting-get-invoices.ts +3 -1
- package/src/funcs/accounting-get-item.ts +3 -1
- package/src/funcs/accounting-get-items.ts +3 -1
- package/src/funcs/accounting-get-journal-entries.ts +3 -1
- package/src/funcs/accounting-get-journal-entry-attachment-by-id.ts +3 -1
- package/src/funcs/accounting-get-journal-entry-attachments.ts +3 -1
- package/src/funcs/accounting-get-journal-entry.ts +3 -1
- package/src/funcs/accounting-get-journals.ts +3 -1
- package/src/funcs/accounting-get-line-item.ts +3 -1
- package/src/funcs/accounting-get-line-items.ts +3 -1
- package/src/funcs/accounting-get-offer-document.ts +3 -1
- package/src/funcs/accounting-get-offer-line-item.ts +3 -1
- package/src/funcs/accounting-get-offer-line-items.ts +3 -1
- package/src/funcs/accounting-get-offer.ts +3 -1
- package/src/funcs/accounting-get-offers.ts +3 -1
- package/src/funcs/accounting-get-open-items.ts +3 -1
- package/src/funcs/accounting-get-payment-term.ts +3 -1
- package/src/funcs/accounting-get-payment-terms.ts +3 -1
- package/src/funcs/accounting-get-payment.ts +3 -1
- package/src/funcs/accounting-get-payments.ts +3 -1
- package/src/funcs/accounting-get-profile.ts +147 -0
- package/src/funcs/accounting-get-project.ts +3 -1
- package/src/funcs/accounting-get-projects.ts +3 -1
- package/src/funcs/accounting-get-purchase-order-line-item.ts +3 -1
- package/src/funcs/accounting-get-purchase-order-line-items.ts +3 -1
- package/src/funcs/accounting-get-purchase-order.ts +3 -1
- package/src/funcs/accounting-get-purchase-orders.ts +3 -1
- package/src/funcs/accounting-get-sales-order-lines.ts +3 -1
- package/src/funcs/accounting-get-sales-order.ts +3 -1
- package/src/funcs/accounting-get-sales-orders.ts +3 -1
- package/src/funcs/accounting-get-supplier.ts +3 -1
- package/src/funcs/accounting-get-suppliers.ts +3 -1
- package/src/funcs/accounting-get-tax-rate.ts +3 -1
- package/src/funcs/accounting-get-tax-rates.ts +3 -1
- package/src/funcs/accounting-get-trial-balance.ts +3 -1
- package/src/funcs/accounting-get-units.ts +3 -1
- package/src/funcs/accounting-get-vendor-credits.ts +3 -1
- package/src/funcs/accounting-patch-contact.ts +3 -1
- package/src/funcs/accounting-patch-customers.ts +3 -1
- package/src/funcs/accounting-patch-invoice.ts +3 -1
- package/src/funcs/accounting-patch-item.ts +3 -1
- package/src/funcs/accounting-patch-line-item.ts +174 -0
- package/src/funcs/accounting-patch-supplier.ts +3 -1
- package/src/funcs/accounting-post-file.ts +11 -4
- package/src/funcs/accounting-put-contact.ts +3 -1
- package/src/funcs/accounting-update-bill-line-item.ts +3 -1
- package/src/funcs/accounting-update-bill.ts +3 -1
- package/src/funcs/accounting-update-customer.ts +3 -1
- package/src/funcs/accounting-update-supplier.ts +3 -1
- package/src/funcs/accounting-update-vendor-credit.ts +3 -1
- package/src/funcs/accounting-v2-create-booking-proposal-v2.ts +12 -4
- package/src/funcs/accounting-v2-create-contact-v2.ts +3 -1
- package/src/funcs/accounting-v2-get-contact-v2.ts +3 -1
- package/src/funcs/accounting-v2-get-contacts-v2.ts +3 -1
- package/src/funcs/accounting-v2-get-dimensions-by-dimension.ts +3 -1
- package/src/funcs/accounting-v2-get-dimensions-v2.ts +3 -1
- package/src/funcs/accounting-v2-patch-contact-v2.ts +3 -1
- package/src/funcs/accounting-v2-put-contact-v2.ts +3 -1
- package/src/funcs/auth-create-end-user-account.ts +4 -2
- package/src/funcs/auth-get-companies.ts +4 -2
- package/src/funcs/auth-get-environments.ts +4 -2
- package/src/funcs/auth-system-login-url.ts +4 -2
- package/src/funcs/events-get-code.ts +161 -0
- package/src/funcs/events-handle-callback.ts +161 -0
- package/src/funcs/events-handle-configuration-callback.ts +165 -0
- package/src/funcs/health-check.ts +153 -0
- package/src/funcs/tenants-add-callback-url.ts +4 -2
- package/src/funcs/tenants-count-end-users-by-system.ts +147 -0
- package/src/funcs/tenants-delete-end-user.ts +4 -2
- package/src/funcs/tenants-delete-registered-system.ts +165 -0
- package/src/funcs/tenants-get-callback-url.ts +147 -0
- package/src/funcs/tenants-get-end-user-list.ts +4 -2
- package/src/funcs/tenants-get-registered-systems-masked.ts +147 -0
- package/src/funcs/tenants-get-registered-systems.ts +147 -0
- package/src/funcs/tenants-get-submission-page-style-by-key.ts +147 -0
- package/src/funcs/tenants-get-submission-page-style.ts +171 -0
- package/src/funcs/tenants-get-target-system-requirements.ts +147 -0
- package/src/funcs/tenants-get-target-system-values.ts +147 -0
- package/src/funcs/tenants-system-registration.ts +4 -2
- package/src/funcs/tenants-update-submission-page-style.ts +157 -0
- package/src/funcs/user-get-user-info.ts +3 -1
- package/src/funcs/webhooks-create-webhook-end-user.ts +163 -0
- package/src/funcs/webhooks-create-webhook.ts +4 -2
- package/src/funcs/webhooks-delete-webhook-end-user.ts +168 -0
- package/src/funcs/webhooks-delete-webhook.ts +4 -2
- package/src/funcs/webhooks-get-webhooks.ts +4 -2
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +9 -0
- package/src/lib/sdks.ts +3 -4
- package/src/lib/security.ts +9 -2
- package/src/models/create-event-subscription-request-dto.ts +35 -0
- package/src/models/index.ts +3 -0
- package/src/models/operations/check.ts +29 -0
- package/src/models/operations/create-contacts-v1.ts +164 -0
- package/src/models/operations/create-event-subscriptions.ts +39 -0
- package/src/models/operations/create-webhook-end-user.ts +176 -0
- package/src/models/operations/delete-event-subscriptions.ts +38 -0
- package/src/models/operations/delete-registered-system.ts +32 -0
- package/src/models/operations/delete-webhook-end-user.ts +68 -0
- package/src/models/operations/get-code.ts +50 -0
- package/src/models/operations/get-submission-page-style-by-key.ts +30 -0
- package/src/models/operations/get-submission-page-style.ts +59 -0
- package/src/models/operations/handle-callback.ts +54 -0
- package/src/models/operations/handle-configuration-callback.ts +57 -0
- package/src/models/operations/index.ts +14 -0
- package/src/models/operations/patch-line-item.ts +174 -0
- package/src/models/operations/update-submission-page-style.ts +29 -0
- package/src/models/patch-line-item-request-dto.ts +82 -0
- package/src/models/security.ts +66 -8
- package/src/models/submission-page-style-dto.ts +54 -0
- package/src/sdk/accounting.ts +59 -0
- package/src/sdk/events.ts +45 -0
- package/src/sdk/health.ts +25 -0
- package/src/sdk/sdk.ts +15 -3
- package/src/sdk/tenants.ts +106 -0
- package/src/sdk/webhooks.ts +24 -0
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { MaesnCore } from "../core.js";
|
|
7
7
|
import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -133,7 +134,8 @@ async function $do(
|
|
|
133
134
|
|
|
134
135
|
const doResult = await client._do(req, {
|
|
135
136
|
context,
|
|
136
|
-
|
|
137
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
138
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
137
139
|
retryConfig: context.retryConfig,
|
|
138
140
|
retryCodes: context.retryCodes,
|
|
139
141
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { MaesnCore } from "../core.js";
|
|
7
7
|
import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -133,7 +134,8 @@ async function $do(
|
|
|
133
134
|
|
|
134
135
|
const doResult = await client._do(req, {
|
|
135
136
|
context,
|
|
136
|
-
|
|
137
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
138
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
137
139
|
retryConfig: context.retryConfig,
|
|
138
140
|
retryCodes: context.retryCodes,
|
|
139
141
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { MaesnCore } from "../core.js";
|
|
7
7
|
import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -137,7 +138,8 @@ async function $do(
|
|
|
137
138
|
|
|
138
139
|
const doResult = await client._do(req, {
|
|
139
140
|
context,
|
|
140
|
-
|
|
141
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
142
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
141
143
|
retryConfig: context.retryConfig,
|
|
142
144
|
retryCodes: context.retryCodes,
|
|
143
145
|
});
|
|
@@ -4,12 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { MaesnCore } from "../core.js";
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
appendForm,
|
|
9
|
+
encodeFormQuery,
|
|
10
|
+
encodeJSON,
|
|
11
|
+
normalizeBlob,
|
|
12
|
+
} from "../lib/encodings.js";
|
|
8
13
|
import {
|
|
9
14
|
bytesToBlob,
|
|
10
15
|
getContentTypeFromFileName,
|
|
11
16
|
readableStreamToArrayBuffer,
|
|
12
17
|
} from "../lib/files.js";
|
|
18
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
13
19
|
import * as M from "../lib/matchers.js";
|
|
14
20
|
import { compactMap } from "../lib/primitives.js";
|
|
15
21
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -103,8 +109,9 @@ async function $do(
|
|
|
103
109
|
if (payload.body.files !== undefined) {
|
|
104
110
|
for (const fileItem of payload.body.files ?? []) {
|
|
105
111
|
if (isBlobLike(fileItem)) {
|
|
106
|
-
const
|
|
107
|
-
const
|
|
112
|
+
const file = fileItem;
|
|
113
|
+
const blob = await normalizeBlob(file);
|
|
114
|
+
const name = "name" in file ? (file.name as string) : undefined;
|
|
108
115
|
appendForm(body, "files", blob, name);
|
|
109
116
|
} else if (isReadableStream(fileItem.content)) {
|
|
110
117
|
const buffer = await readableStreamToArrayBuffer(fileItem.content);
|
|
@@ -184,7 +191,8 @@ async function $do(
|
|
|
184
191
|
|
|
185
192
|
const doResult = await client._do(req, {
|
|
186
193
|
context,
|
|
187
|
-
|
|
194
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
195
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
188
196
|
retryConfig: context.retryConfig,
|
|
189
197
|
retryCodes: context.retryCodes,
|
|
190
198
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { MaesnCore } from "../core.js";
|
|
7
7
|
import { encodeFormQuery, encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -128,7 +129,8 @@ async function $do(
|
|
|
128
129
|
|
|
129
130
|
const doResult = await client._do(req, {
|
|
130
131
|
context,
|
|
131
|
-
|
|
132
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
133
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
132
134
|
retryConfig: context.retryConfig,
|
|
133
135
|
retryCodes: context.retryCodes,
|
|
134
136
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { MaesnCore } from "../core.js";
|
|
7
7
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -144,7 +145,8 @@ async function $do(
|
|
|
144
145
|
|
|
145
146
|
const doResult = await client._do(req, {
|
|
146
147
|
context,
|
|
147
|
-
|
|
148
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
149
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
148
150
|
retryConfig: context.retryConfig,
|
|
149
151
|
retryCodes: context.retryCodes,
|
|
150
152
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { MaesnCore } from "../core.js";
|
|
7
7
|
import { encodeFormQuery } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -145,7 +146,8 @@ async function $do(
|
|
|
145
146
|
|
|
146
147
|
const doResult = await client._do(req, {
|
|
147
148
|
context,
|
|
148
|
-
|
|
149
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
150
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
149
151
|
retryConfig: context.retryConfig,
|
|
150
152
|
retryCodes: context.retryCodes,
|
|
151
153
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { MaesnCore } from "../core.js";
|
|
7
7
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -148,7 +149,8 @@ async function $do(
|
|
|
148
149
|
|
|
149
150
|
const doResult = await client._do(req, {
|
|
150
151
|
context,
|
|
151
|
-
|
|
152
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
153
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
152
154
|
retryConfig: context.retryConfig,
|
|
153
155
|
retryCodes: context.retryCodes,
|
|
154
156
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { MaesnCore } from "../core.js";
|
|
7
7
|
import { encodeFormQuery } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -143,7 +144,8 @@ async function $do(
|
|
|
143
144
|
|
|
144
145
|
const doResult = await client._do(req, {
|
|
145
146
|
context,
|
|
146
|
-
|
|
147
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
148
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
147
149
|
retryConfig: context.retryConfig,
|
|
148
150
|
retryCodes: context.retryCodes,
|
|
149
151
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { MaesnCore } from "../core.js";
|
|
7
7
|
import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -134,7 +135,8 @@ async function $do(
|
|
|
134
135
|
|
|
135
136
|
const doResult = await client._do(req, {
|
|
136
137
|
context,
|
|
137
|
-
|
|
138
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
139
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
138
140
|
retryConfig: context.retryConfig,
|
|
139
141
|
retryCodes: context.retryCodes,
|
|
140
142
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { MaesnCore } from "../core.js";
|
|
7
7
|
import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -134,7 +135,8 @@ async function $do(
|
|
|
134
135
|
|
|
135
136
|
const doResult = await client._do(req, {
|
|
136
137
|
context,
|
|
137
|
-
|
|
138
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
139
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
138
140
|
retryConfig: context.retryConfig,
|
|
139
141
|
retryCodes: context.retryCodes,
|
|
140
142
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { MaesnCore } from "../core.js";
|
|
7
7
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -87,7 +88,7 @@ async function $do(
|
|
|
87
88
|
charEncoding: "percent",
|
|
88
89
|
}),
|
|
89
90
|
};
|
|
90
|
-
const path = pathToFunc("/accounts/{TARGET_SYSTEM}")(pathParams);
|
|
91
|
+
const path = pathToFunc("/auth/accounts/{TARGET_SYSTEM}")(pathParams);
|
|
91
92
|
|
|
92
93
|
const headers = new Headers(compactMap({
|
|
93
94
|
"Content-Type": "application/json",
|
|
@@ -129,7 +130,8 @@ async function $do(
|
|
|
129
130
|
|
|
130
131
|
const doResult = await client._do(req, {
|
|
131
132
|
context,
|
|
132
|
-
|
|
133
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
134
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
133
135
|
retryConfig: context.retryConfig,
|
|
134
136
|
retryCodes: context.retryCodes,
|
|
135
137
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { MaesnCore } from "../core.js";
|
|
7
7
|
import { encodeFormQuery } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -81,7 +82,7 @@ async function $do(
|
|
|
81
82
|
const payload = parsed.value;
|
|
82
83
|
const body = null;
|
|
83
84
|
|
|
84
|
-
const path = pathToFunc("/companies")();
|
|
85
|
+
const path = pathToFunc("/auth/companies")();
|
|
85
86
|
|
|
86
87
|
const query = encodeFormQuery({
|
|
87
88
|
"environmentName": payload?.environmentName,
|
|
@@ -137,7 +138,8 @@ async function $do(
|
|
|
137
138
|
|
|
138
139
|
const doResult = await client._do(req, {
|
|
139
140
|
context,
|
|
140
|
-
|
|
141
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
142
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
141
143
|
retryConfig: context.retryConfig,
|
|
142
144
|
retryCodes: context.retryCodes,
|
|
143
145
|
});
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { MaesnCore } from "../core.js";
|
|
6
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
6
7
|
import * as M from "../lib/matchers.js";
|
|
7
8
|
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
@@ -63,7 +64,7 @@ async function $do(
|
|
|
63
64
|
APICall,
|
|
64
65
|
]
|
|
65
66
|
> {
|
|
66
|
-
const path = pathToFunc("/environments")();
|
|
67
|
+
const path = pathToFunc("/auth/environments")();
|
|
67
68
|
|
|
68
69
|
const headers = new Headers(compactMap({
|
|
69
70
|
Accept: "application/json",
|
|
@@ -113,7 +114,8 @@ async function $do(
|
|
|
113
114
|
|
|
114
115
|
const doResult = await client._do(req, {
|
|
115
116
|
context,
|
|
116
|
-
|
|
117
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
118
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
117
119
|
retryConfig: context.retryConfig,
|
|
118
120
|
retryCodes: context.retryCodes,
|
|
119
121
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { MaesnCore } from "../core.js";
|
|
7
7
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
9
|
import * as M from "../lib/matchers.js";
|
|
9
10
|
import { compactMap } from "../lib/primitives.js";
|
|
10
11
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -87,7 +88,7 @@ async function $do(
|
|
|
87
88
|
charEncoding: "percent",
|
|
88
89
|
}),
|
|
89
90
|
};
|
|
90
|
-
const path = pathToFunc("/{TARGET_SYSTEM}")(pathParams);
|
|
91
|
+
const path = pathToFunc("/auth/{TARGET_SYSTEM}")(pathParams);
|
|
91
92
|
|
|
92
93
|
const query = encodeFormQuery({
|
|
93
94
|
"baseUrl": payload.baseUrl,
|
|
@@ -148,7 +149,8 @@ async function $do(
|
|
|
148
149
|
|
|
149
150
|
const doResult = await client._do(req, {
|
|
150
151
|
context,
|
|
151
|
-
|
|
152
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
153
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
152
154
|
retryConfig: context.retryConfig,
|
|
153
155
|
retryCodes: context.retryCodes,
|
|
154
156
|
});
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { MaesnCore } from "../core.js";
|
|
7
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
+
import * as M from "../lib/matchers.js";
|
|
10
|
+
import { compactMap } from "../lib/primitives.js";
|
|
11
|
+
import { safeParse } from "../lib/schemas.js";
|
|
12
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
|
+
import { pathToFunc } from "../lib/url.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/http-client-errors.js";
|
|
22
|
+
import { MaesnError } from "../models/errors/maesn-error.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
export function eventsGetCode(
|
|
30
|
+
client: MaesnCore,
|
|
31
|
+
request: operations.GetCodeRequest,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<
|
|
34
|
+
Result<
|
|
35
|
+
operations.GetCodeResponse,
|
|
36
|
+
| MaesnError
|
|
37
|
+
| ResponseValidationError
|
|
38
|
+
| ConnectionError
|
|
39
|
+
| RequestAbortedError
|
|
40
|
+
| RequestTimeoutError
|
|
41
|
+
| InvalidRequestError
|
|
42
|
+
| UnexpectedClientError
|
|
43
|
+
| SDKValidationError
|
|
44
|
+
>
|
|
45
|
+
> {
|
|
46
|
+
return new APIPromise($do(
|
|
47
|
+
client,
|
|
48
|
+
request,
|
|
49
|
+
options,
|
|
50
|
+
));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
async function $do(
|
|
54
|
+
client: MaesnCore,
|
|
55
|
+
request: operations.GetCodeRequest,
|
|
56
|
+
options?: RequestOptions,
|
|
57
|
+
): Promise<
|
|
58
|
+
[
|
|
59
|
+
Result<
|
|
60
|
+
operations.GetCodeResponse,
|
|
61
|
+
| MaesnError
|
|
62
|
+
| ResponseValidationError
|
|
63
|
+
| ConnectionError
|
|
64
|
+
| RequestAbortedError
|
|
65
|
+
| RequestTimeoutError
|
|
66
|
+
| InvalidRequestError
|
|
67
|
+
| UnexpectedClientError
|
|
68
|
+
| SDKValidationError
|
|
69
|
+
>,
|
|
70
|
+
APICall,
|
|
71
|
+
]
|
|
72
|
+
> {
|
|
73
|
+
const parsed = safeParse(
|
|
74
|
+
request,
|
|
75
|
+
(value) => z.parse(operations.GetCodeRequest$outboundSchema, value),
|
|
76
|
+
"Input validation failed",
|
|
77
|
+
);
|
|
78
|
+
if (!parsed.ok) {
|
|
79
|
+
return [parsed, { status: "invalid" }];
|
|
80
|
+
}
|
|
81
|
+
const payload = parsed.value;
|
|
82
|
+
const body = null;
|
|
83
|
+
|
|
84
|
+
const pathParams = {
|
|
85
|
+
code: encodeSimple("code", payload.code, {
|
|
86
|
+
explode: false,
|
|
87
|
+
charEncoding: "percent",
|
|
88
|
+
}),
|
|
89
|
+
};
|
|
90
|
+
const path = pathToFunc("/events/key/{code}")(pathParams);
|
|
91
|
+
|
|
92
|
+
const headers = new Headers(compactMap({
|
|
93
|
+
Accept: "application/json",
|
|
94
|
+
}));
|
|
95
|
+
|
|
96
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
97
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
98
|
+
|
|
99
|
+
const context = {
|
|
100
|
+
options: client._options,
|
|
101
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
102
|
+
operationID: "getCode",
|
|
103
|
+
oAuth2Scopes: null,
|
|
104
|
+
|
|
105
|
+
resolvedSecurity: requestSecurity,
|
|
106
|
+
|
|
107
|
+
securitySource: client._options.security,
|
|
108
|
+
retryConfig: options?.retries
|
|
109
|
+
|| client._options.retryConfig
|
|
110
|
+
|| { strategy: "none" },
|
|
111
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
const requestRes = client._createRequest(context, {
|
|
115
|
+
security: requestSecurity,
|
|
116
|
+
method: "POST",
|
|
117
|
+
baseURL: options?.serverURL,
|
|
118
|
+
path: path,
|
|
119
|
+
headers: headers,
|
|
120
|
+
body: body,
|
|
121
|
+
userAgent: client._options.userAgent,
|
|
122
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
123
|
+
}, options);
|
|
124
|
+
if (!requestRes.ok) {
|
|
125
|
+
return [requestRes, { status: "invalid" }];
|
|
126
|
+
}
|
|
127
|
+
const req = requestRes.value;
|
|
128
|
+
|
|
129
|
+
const doResult = await client._do(req, {
|
|
130
|
+
context,
|
|
131
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
132
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
133
|
+
retryConfig: context.retryConfig,
|
|
134
|
+
retryCodes: context.retryCodes,
|
|
135
|
+
});
|
|
136
|
+
if (!doResult.ok) {
|
|
137
|
+
return [doResult, { status: "request-error", request: req }];
|
|
138
|
+
}
|
|
139
|
+
const response = doResult.value;
|
|
140
|
+
|
|
141
|
+
const [result] = await M.match<
|
|
142
|
+
operations.GetCodeResponse,
|
|
143
|
+
| MaesnError
|
|
144
|
+
| ResponseValidationError
|
|
145
|
+
| ConnectionError
|
|
146
|
+
| RequestAbortedError
|
|
147
|
+
| RequestTimeoutError
|
|
148
|
+
| InvalidRequestError
|
|
149
|
+
| UnexpectedClientError
|
|
150
|
+
| SDKValidationError
|
|
151
|
+
>(
|
|
152
|
+
M.json(201, operations.GetCodeResponse$inboundSchema),
|
|
153
|
+
M.fail("4XX"),
|
|
154
|
+
M.fail("5XX"),
|
|
155
|
+
)(response, req);
|
|
156
|
+
if (!result.ok) {
|
|
157
|
+
return [result, { status: "complete", request: req, response }];
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
return [result, { status: "complete", request: req, response }];
|
|
161
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { MaesnCore } from "../core.js";
|
|
7
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
+
import * as M from "../lib/matchers.js";
|
|
10
|
+
import { compactMap } from "../lib/primitives.js";
|
|
11
|
+
import { safeParse } from "../lib/schemas.js";
|
|
12
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
|
+
import { pathToFunc } from "../lib/url.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/http-client-errors.js";
|
|
22
|
+
import { MaesnError } from "../models/errors/maesn-error.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
export function eventsHandleCallback(
|
|
30
|
+
client: MaesnCore,
|
|
31
|
+
request: operations.HandleCallbackRequest,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<
|
|
34
|
+
Result<
|
|
35
|
+
operations.HandleCallbackResponse,
|
|
36
|
+
| MaesnError
|
|
37
|
+
| ResponseValidationError
|
|
38
|
+
| ConnectionError
|
|
39
|
+
| RequestAbortedError
|
|
40
|
+
| RequestTimeoutError
|
|
41
|
+
| InvalidRequestError
|
|
42
|
+
| UnexpectedClientError
|
|
43
|
+
| SDKValidationError
|
|
44
|
+
>
|
|
45
|
+
> {
|
|
46
|
+
return new APIPromise($do(
|
|
47
|
+
client,
|
|
48
|
+
request,
|
|
49
|
+
options,
|
|
50
|
+
));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
async function $do(
|
|
54
|
+
client: MaesnCore,
|
|
55
|
+
request: operations.HandleCallbackRequest,
|
|
56
|
+
options?: RequestOptions,
|
|
57
|
+
): Promise<
|
|
58
|
+
[
|
|
59
|
+
Result<
|
|
60
|
+
operations.HandleCallbackResponse,
|
|
61
|
+
| MaesnError
|
|
62
|
+
| ResponseValidationError
|
|
63
|
+
| ConnectionError
|
|
64
|
+
| RequestAbortedError
|
|
65
|
+
| RequestTimeoutError
|
|
66
|
+
| InvalidRequestError
|
|
67
|
+
| UnexpectedClientError
|
|
68
|
+
| SDKValidationError
|
|
69
|
+
>,
|
|
70
|
+
APICall,
|
|
71
|
+
]
|
|
72
|
+
> {
|
|
73
|
+
const parsed = safeParse(
|
|
74
|
+
request,
|
|
75
|
+
(value) => z.parse(operations.HandleCallbackRequest$outboundSchema, value),
|
|
76
|
+
"Input validation failed",
|
|
77
|
+
);
|
|
78
|
+
if (!parsed.ok) {
|
|
79
|
+
return [parsed, { status: "invalid" }];
|
|
80
|
+
}
|
|
81
|
+
const payload = parsed.value;
|
|
82
|
+
const body = null;
|
|
83
|
+
|
|
84
|
+
const pathParams = {
|
|
85
|
+
code: encodeSimple("code", payload.code, {
|
|
86
|
+
explode: false,
|
|
87
|
+
charEncoding: "percent",
|
|
88
|
+
}),
|
|
89
|
+
};
|
|
90
|
+
const path = pathToFunc("/events/callback/{code}")(pathParams);
|
|
91
|
+
|
|
92
|
+
const headers = new Headers(compactMap({
|
|
93
|
+
Accept: "application/json",
|
|
94
|
+
}));
|
|
95
|
+
|
|
96
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
97
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
98
|
+
|
|
99
|
+
const context = {
|
|
100
|
+
options: client._options,
|
|
101
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
102
|
+
operationID: "handleCallback",
|
|
103
|
+
oAuth2Scopes: null,
|
|
104
|
+
|
|
105
|
+
resolvedSecurity: requestSecurity,
|
|
106
|
+
|
|
107
|
+
securitySource: client._options.security,
|
|
108
|
+
retryConfig: options?.retries
|
|
109
|
+
|| client._options.retryConfig
|
|
110
|
+
|| { strategy: "none" },
|
|
111
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
const requestRes = client._createRequest(context, {
|
|
115
|
+
security: requestSecurity,
|
|
116
|
+
method: "POST",
|
|
117
|
+
baseURL: options?.serverURL,
|
|
118
|
+
path: path,
|
|
119
|
+
headers: headers,
|
|
120
|
+
body: body,
|
|
121
|
+
userAgent: client._options.userAgent,
|
|
122
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
123
|
+
}, options);
|
|
124
|
+
if (!requestRes.ok) {
|
|
125
|
+
return [requestRes, { status: "invalid" }];
|
|
126
|
+
}
|
|
127
|
+
const req = requestRes.value;
|
|
128
|
+
|
|
129
|
+
const doResult = await client._do(req, {
|
|
130
|
+
context,
|
|
131
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
132
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
133
|
+
retryConfig: context.retryConfig,
|
|
134
|
+
retryCodes: context.retryCodes,
|
|
135
|
+
});
|
|
136
|
+
if (!doResult.ok) {
|
|
137
|
+
return [doResult, { status: "request-error", request: req }];
|
|
138
|
+
}
|
|
139
|
+
const response = doResult.value;
|
|
140
|
+
|
|
141
|
+
const [result] = await M.match<
|
|
142
|
+
operations.HandleCallbackResponse,
|
|
143
|
+
| MaesnError
|
|
144
|
+
| ResponseValidationError
|
|
145
|
+
| ConnectionError
|
|
146
|
+
| RequestAbortedError
|
|
147
|
+
| RequestTimeoutError
|
|
148
|
+
| InvalidRequestError
|
|
149
|
+
| UnexpectedClientError
|
|
150
|
+
| SDKValidationError
|
|
151
|
+
>(
|
|
152
|
+
M.json(202, operations.HandleCallbackResponse$inboundSchema),
|
|
153
|
+
M.fail("4XX"),
|
|
154
|
+
M.fail("5XX"),
|
|
155
|
+
)(response, req);
|
|
156
|
+
if (!result.ok) {
|
|
157
|
+
return [result, { status: "complete", request: req, response }];
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
return [result, { status: "complete", request: req, response }];
|
|
161
|
+
}
|