@clientcasa/sdk 0.1.3 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +6 -4
- package/README.md +215 -162
- package/esm/funcs/{catalog-items-create-catalog-item.d.ts → calendar-events-create.d.ts} +5 -4
- package/esm/funcs/calendar-events-create.d.ts.map +1 -0
- package/esm/funcs/{calendar-events-create-calendar-event.js → calendar-events-create.js} +12 -6
- package/esm/funcs/calendar-events-create.js.map +1 -0
- package/esm/funcs/{calendar-events-delete-calendar-event.d.ts → calendar-events-delete.d.ts} +3 -2
- package/esm/funcs/calendar-events-delete.d.ts.map +1 -0
- package/esm/funcs/{calendar-events-delete-calendar-event.js → calendar-events-delete.js} +19 -5
- package/esm/funcs/calendar-events-delete.js.map +1 -0
- package/esm/funcs/{calendar-events-get-calendar-event.d.ts → calendar-events-get.d.ts} +3 -2
- package/esm/funcs/calendar-events-get.d.ts.map +1 -0
- package/esm/funcs/{calendar-events-get-calendar-event.js → calendar-events-get.js} +18 -4
- package/esm/funcs/calendar-events-get.js.map +1 -0
- package/esm/funcs/{calendar-events-list-calendar-events.d.ts → calendar-events-list.d.ts} +6 -2
- package/esm/funcs/calendar-events-list.d.ts.map +1 -0
- package/esm/funcs/{calendar-events-list-calendar-events.js → calendar-events-list.js} +56 -9
- package/esm/funcs/calendar-events-list.js.map +1 -0
- package/esm/funcs/{calendar-events-update-calendar-event.d.ts → calendar-events-update.d.ts} +3 -2
- package/esm/funcs/calendar-events-update.d.ts.map +1 -0
- package/esm/funcs/{calendar-events-update-calendar-event.js → calendar-events-update.js} +18 -4
- package/esm/funcs/calendar-events-update.js.map +1 -0
- package/esm/funcs/{payments-list-payments.d.ts → catalog-items-create.d.ts} +8 -3
- package/esm/funcs/catalog-items-create.d.ts.map +1 -0
- package/esm/funcs/{catalog-items-create-catalog-item.js → catalog-items-create.js} +12 -6
- package/esm/funcs/catalog-items-create.js.map +1 -0
- package/esm/funcs/{catalog-items-list-catalog-items.d.ts → catalog-items-delete.d.ts} +4 -3
- package/esm/funcs/catalog-items-delete.d.ts.map +1 -0
- package/esm/funcs/{catalog-items-delete-catalog-item.js → catalog-items-delete.js} +19 -5
- package/esm/funcs/catalog-items-delete.js.map +1 -0
- package/esm/funcs/catalog-items-get.d.ts +16 -0
- package/esm/funcs/catalog-items-get.d.ts.map +1 -0
- package/esm/funcs/{catalog-items-get-catalog-item.js → catalog-items-get.js} +18 -4
- package/esm/funcs/catalog-items-get.js.map +1 -0
- package/esm/funcs/catalog-items-list.d.ts +18 -0
- package/esm/funcs/catalog-items-list.d.ts.map +1 -0
- package/esm/funcs/{catalog-items-list-catalog-items.js → catalog-items-list.js} +56 -9
- package/esm/funcs/catalog-items-list.js.map +1 -0
- package/esm/funcs/{contacts-list-contacts.d.ts → catalog-items-update.d.ts} +5 -3
- package/esm/funcs/catalog-items-update.d.ts.map +1 -0
- package/esm/funcs/{catalog-items-update-catalog-item.js → catalog-items-update.js} +18 -4
- package/esm/funcs/catalog-items-update.js.map +1 -0
- package/esm/funcs/{clients-create-client.d.ts → clients-create.d.ts} +3 -2
- package/esm/funcs/clients-create.d.ts.map +1 -0
- package/esm/funcs/clients-create.js +93 -0
- package/esm/funcs/clients-create.js.map +1 -0
- package/esm/funcs/{milestones-delete-milestone.d.ts → clients-delete.d.ts} +4 -3
- package/esm/funcs/clients-delete.d.ts.map +1 -0
- package/esm/funcs/{clients-delete-client.js → clients-delete.js} +19 -5
- package/esm/funcs/clients-delete.js.map +1 -0
- package/esm/funcs/{clients-get-client.d.ts → clients-get.d.ts} +3 -2
- package/esm/funcs/clients-get.d.ts.map +1 -0
- package/esm/funcs/{clients-get-client.js → clients-get.js} +18 -4
- package/esm/funcs/clients-get.js.map +1 -0
- package/esm/funcs/{clients-list-clients.d.ts → clients-list.d.ts} +6 -2
- package/esm/funcs/clients-list.d.ts.map +1 -0
- package/esm/funcs/{clients-list-clients.js → clients-list.js} +56 -9
- package/esm/funcs/clients-list.js.map +1 -0
- package/esm/funcs/{clients-update-client.d.ts → clients-update.d.ts} +3 -2
- package/esm/funcs/clients-update.d.ts.map +1 -0
- package/esm/funcs/{clients-update-client.js → clients-update.js} +18 -4
- package/esm/funcs/clients-update.js.map +1 -0
- package/esm/funcs/{transactions-get-transaction.d.ts → contacts-create.d.ts} +4 -3
- package/esm/funcs/contacts-create.d.ts.map +1 -0
- package/esm/funcs/contacts-create.js +93 -0
- package/esm/funcs/contacts-create.js.map +1 -0
- package/esm/funcs/{milestones-get-milestone.d.ts → contacts-delete.d.ts} +4 -4
- package/esm/funcs/contacts-delete.d.ts.map +1 -0
- package/esm/funcs/{contacts-delete-contact.js → contacts-delete.js} +19 -5
- package/esm/funcs/contacts-delete.js.map +1 -0
- package/esm/funcs/{contacts-get-contact.d.ts → contacts-get.d.ts} +3 -2
- package/esm/funcs/contacts-get.d.ts.map +1 -0
- package/esm/funcs/{contacts-get-contact.js → contacts-get.js} +18 -4
- package/esm/funcs/contacts-get.js.map +1 -0
- package/esm/funcs/{clients-delete-client.d.ts → contacts-list.d.ts} +7 -3
- package/esm/funcs/contacts-list.d.ts.map +1 -0
- package/esm/funcs/{contacts-list-contacts.js → contacts-list.js} +56 -9
- package/esm/funcs/contacts-list.js.map +1 -0
- package/esm/funcs/{catalog-items-get-catalog-item.d.ts → contacts-update.d.ts} +4 -3
- package/esm/funcs/contacts-update.d.ts.map +1 -0
- package/esm/funcs/{contacts-update-contact.js → contacts-update.js} +18 -4
- package/esm/funcs/contacts-update.js.map +1 -0
- package/esm/funcs/{contracts-create-contract.d.ts → contracts-create.d.ts} +3 -2
- package/esm/funcs/contracts-create.d.ts.map +1 -0
- package/esm/funcs/{contracts-create-contract.js → contracts-create.js} +12 -6
- package/esm/funcs/contracts-create.js.map +1 -0
- package/esm/funcs/{contracts-delete-contract.d.ts → contracts-delete.d.ts} +3 -2
- package/esm/funcs/contracts-delete.d.ts.map +1 -0
- package/esm/funcs/{contracts-delete-contract.js → contracts-delete.js} +19 -5
- package/esm/funcs/contracts-delete.js.map +1 -0
- package/esm/funcs/{catalog-items-delete-catalog-item.d.ts → contracts-get.d.ts} +5 -3
- package/esm/funcs/contracts-get.d.ts.map +1 -0
- package/esm/funcs/{contracts-get-contract.js → contracts-get.js} +18 -4
- package/esm/funcs/contracts-get.js.map +1 -0
- package/esm/funcs/{contacts-delete-contact.d.ts → contracts-list.d.ts} +7 -3
- package/esm/funcs/contracts-list.d.ts.map +1 -0
- package/esm/funcs/{contracts-list-contracts.js → contracts-list.js} +56 -9
- package/esm/funcs/contracts-list.js.map +1 -0
- package/esm/funcs/{contracts-update-contract.d.ts → contracts-update.d.ts} +3 -2
- package/esm/funcs/contracts-update.d.ts.map +1 -0
- package/esm/funcs/{contracts-update-contract.js → contracts-update.js} +18 -4
- package/esm/funcs/contracts-update.js.map +1 -0
- package/esm/funcs/{inquiries-create-inquiry.d.ts → inquiries-create.d.ts} +3 -2
- package/esm/funcs/inquiries-create.d.ts.map +1 -0
- package/esm/funcs/{inquiries-create-inquiry.js → inquiries-create.js} +12 -6
- package/esm/funcs/inquiries-create.js.map +1 -0
- package/esm/funcs/{inquiries-delete-inquiry.d.ts → inquiries-delete.d.ts} +3 -2
- package/esm/funcs/inquiries-delete.d.ts.map +1 -0
- package/esm/funcs/{inquiries-delete-inquiry.js → inquiries-delete.js} +19 -5
- package/esm/funcs/inquiries-delete.js.map +1 -0
- package/esm/funcs/{inquiries-get-inquiry.d.ts → inquiries-get.d.ts} +3 -2
- package/esm/funcs/inquiries-get.d.ts.map +1 -0
- package/esm/funcs/{inquiries-get-inquiry.js → inquiries-get.js} +18 -4
- package/esm/funcs/inquiries-get.js.map +1 -0
- package/esm/funcs/inquiries-list.d.ts +18 -0
- package/esm/funcs/inquiries-list.d.ts.map +1 -0
- package/esm/funcs/{inquiries-list-inquiries.js → inquiries-list.js} +56 -9
- package/esm/funcs/inquiries-list.js.map +1 -0
- package/esm/funcs/{inquiries-update-inquiry.d.ts → inquiries-update.d.ts} +3 -2
- package/esm/funcs/inquiries-update.d.ts.map +1 -0
- package/esm/funcs/{inquiries-update-inquiry.js → inquiries-update.js} +18 -4
- package/esm/funcs/inquiries-update.js.map +1 -0
- package/esm/funcs/{invoices-create-invoice.d.ts → invoices-create.d.ts} +3 -2
- package/esm/funcs/invoices-create.d.ts.map +1 -0
- package/esm/funcs/{invoices-create-invoice.js → invoices-create.js} +12 -6
- package/esm/funcs/invoices-create.js.map +1 -0
- package/esm/funcs/{invoices-delete-invoice.d.ts → invoices-delete.d.ts} +3 -2
- package/esm/funcs/invoices-delete.d.ts.map +1 -0
- package/esm/funcs/{invoices-delete-invoice.js → invoices-delete.js} +19 -5
- package/esm/funcs/invoices-delete.js.map +1 -0
- package/esm/funcs/{invoices-get-invoice.d.ts → invoices-get.d.ts} +3 -2
- package/esm/funcs/invoices-get.d.ts.map +1 -0
- package/esm/funcs/{invoices-get-invoice.js → invoices-get.js} +18 -4
- package/esm/funcs/invoices-get.js.map +1 -0
- package/esm/funcs/invoices-list.d.ts +18 -0
- package/esm/funcs/invoices-list.d.ts.map +1 -0
- package/esm/funcs/{invoices-list-invoices.js → invoices-list.js} +56 -9
- package/esm/funcs/invoices-list.js.map +1 -0
- package/esm/funcs/{invoices-update-invoice.d.ts → invoices-update.d.ts} +3 -2
- package/esm/funcs/invoices-update.d.ts.map +1 -0
- package/esm/funcs/{invoices-update-invoice.js → invoices-update.js} +18 -4
- package/esm/funcs/invoices-update.js.map +1 -0
- package/esm/funcs/{milestones-create-milestone.d.ts → milestones-create.d.ts} +3 -2
- package/esm/funcs/milestones-create.d.ts.map +1 -0
- package/esm/funcs/{milestones-create-milestone.js → milestones-create.js} +12 -6
- package/esm/funcs/milestones-create.js.map +1 -0
- package/esm/funcs/milestones-delete.d.ts +15 -0
- package/esm/funcs/milestones-delete.d.ts.map +1 -0
- package/esm/funcs/{milestones-delete-milestone.js → milestones-delete.js} +19 -5
- package/esm/funcs/milestones-delete.js.map +1 -0
- package/esm/funcs/{milestones-update-milestone.d.ts → milestones-get.d.ts} +4 -3
- package/esm/funcs/milestones-get.d.ts.map +1 -0
- package/esm/funcs/{milestones-get-milestone.js → milestones-get.js} +18 -4
- package/esm/funcs/milestones-get.js.map +1 -0
- package/esm/funcs/milestones-list.d.ts +18 -0
- package/esm/funcs/milestones-list.d.ts.map +1 -0
- package/esm/funcs/{milestones-list-milestones.js → milestones-list.js} +56 -9
- package/esm/funcs/milestones-list.js.map +1 -0
- package/esm/funcs/{calendar-events-create-calendar-event.d.ts → milestones-update.d.ts} +4 -6
- package/esm/funcs/milestones-update.d.ts.map +1 -0
- package/esm/funcs/{milestones-update-milestone.js → milestones-update.js} +18 -4
- package/esm/funcs/milestones-update.js.map +1 -0
- package/esm/funcs/{payments-create-payment.d.ts → payments-create.d.ts} +3 -2
- package/esm/funcs/payments-create.d.ts.map +1 -0
- package/esm/funcs/{payments-create-payment.js → payments-create.js} +12 -6
- package/esm/funcs/payments-create.js.map +1 -0
- package/esm/funcs/{payments-get-payment.d.ts → payments-get.d.ts} +3 -2
- package/esm/funcs/payments-get.d.ts.map +1 -0
- package/esm/funcs/{payments-get-payment.js → payments-get.js} +18 -4
- package/esm/funcs/payments-get.js.map +1 -0
- package/esm/funcs/payments-list.d.ts +18 -0
- package/esm/funcs/payments-list.d.ts.map +1 -0
- package/esm/funcs/{payments-list-payments.js → payments-list.js} +56 -9
- package/esm/funcs/payments-list.js.map +1 -0
- package/esm/funcs/{payments-update-payment.d.ts → payments-update.d.ts} +3 -2
- package/esm/funcs/payments-update.d.ts.map +1 -0
- package/esm/funcs/{payments-update-payment.js → payments-update.js} +18 -4
- package/esm/funcs/payments-update.js.map +1 -0
- package/esm/funcs/{payouts-get-payout.d.ts → payouts-get.d.ts} +3 -2
- package/esm/funcs/payouts-get.d.ts.map +1 -0
- package/esm/funcs/{payouts-get-payout.js → payouts-get.js} +18 -4
- package/esm/funcs/payouts-get.js.map +1 -0
- package/esm/funcs/{payouts-list-payouts.d.ts → payouts-list.d.ts} +6 -2
- package/esm/funcs/payouts-list.d.ts.map +1 -0
- package/esm/funcs/{payouts-list-payouts.js → payouts-list.js} +56 -9
- package/esm/funcs/payouts-list.js.map +1 -0
- package/esm/funcs/{projects-create-project.d.ts → projects-create.d.ts} +3 -2
- package/esm/funcs/projects-create.d.ts.map +1 -0
- package/esm/funcs/projects-create.js +93 -0
- package/esm/funcs/projects-create.js.map +1 -0
- package/esm/funcs/{projects-delete-project.d.ts → projects-delete.d.ts} +3 -2
- package/esm/funcs/projects-delete.d.ts.map +1 -0
- package/esm/funcs/{projects-delete-project.js → projects-delete.js} +19 -5
- package/esm/funcs/projects-delete.js.map +1 -0
- package/esm/funcs/{time-entries-get-time-entry.d.ts → projects-get.d.ts} +4 -3
- package/esm/funcs/projects-get.d.ts.map +1 -0
- package/esm/funcs/{projects-get-project.js → projects-get.js} +18 -4
- package/esm/funcs/projects-get.js.map +1 -0
- package/esm/funcs/projects-list.d.ts +18 -0
- package/esm/funcs/projects-list.d.ts.map +1 -0
- package/esm/funcs/{projects-list-projects.js → projects-list.js} +56 -9
- package/esm/funcs/projects-list.js.map +1 -0
- package/esm/funcs/{projects-update-project.d.ts → projects-update.d.ts} +3 -2
- package/esm/funcs/projects-update.d.ts.map +1 -0
- package/esm/funcs/{projects-update-project.js → projects-update.js} +18 -4
- package/esm/funcs/projects-update.js.map +1 -0
- package/esm/funcs/{proposals-create-proposal.d.ts → proposals-create.d.ts} +3 -2
- package/esm/funcs/proposals-create.d.ts.map +1 -0
- package/esm/funcs/{proposals-create-proposal.js → proposals-create.js} +12 -6
- package/esm/funcs/proposals-create.js.map +1 -0
- package/esm/funcs/{proposals-delete-proposal.d.ts → proposals-delete.d.ts} +3 -2
- package/esm/funcs/proposals-delete.d.ts.map +1 -0
- package/esm/funcs/{proposals-delete-proposal.js → proposals-delete.js} +19 -5
- package/esm/funcs/proposals-delete.js.map +1 -0
- package/esm/funcs/{transactions-delete-transaction.d.ts → proposals-get.d.ts} +5 -6
- package/esm/funcs/proposals-get.d.ts.map +1 -0
- package/esm/funcs/{proposals-get-proposal.js → proposals-get.js} +18 -4
- package/esm/funcs/proposals-get.js.map +1 -0
- package/esm/funcs/proposals-list.d.ts +18 -0
- package/esm/funcs/proposals-list.d.ts.map +1 -0
- package/esm/funcs/{proposals-list-proposals.js → proposals-list.js} +56 -9
- package/esm/funcs/proposals-list.js.map +1 -0
- package/esm/funcs/{proposals-update-proposal.d.ts → proposals-update.d.ts} +3 -2
- package/esm/funcs/proposals-update.d.ts.map +1 -0
- package/esm/funcs/{proposals-update-proposal.js → proposals-update.js} +18 -4
- package/esm/funcs/proposals-update.js.map +1 -0
- package/esm/funcs/{catalog-items-update-catalog-item.d.ts → time-entries-create.d.ts} +4 -3
- package/esm/funcs/time-entries-create.d.ts.map +1 -0
- package/esm/funcs/time-entries-create.js +93 -0
- package/esm/funcs/time-entries-create.js.map +1 -0
- package/esm/funcs/{time-entries-delete-time-entry.d.ts → time-entries-delete.d.ts} +3 -2
- package/esm/funcs/time-entries-delete.d.ts.map +1 -0
- package/esm/funcs/{time-entries-delete-time-entry.js → time-entries-delete.js} +19 -5
- package/esm/funcs/time-entries-delete.js.map +1 -0
- package/esm/funcs/time-entries-get.d.ts +16 -0
- package/esm/funcs/time-entries-get.d.ts.map +1 -0
- package/esm/funcs/{time-entries-get-time-entry.js → time-entries-get.js} +18 -4
- package/esm/funcs/time-entries-get.js.map +1 -0
- package/esm/funcs/{time-entries-list-time-entries.d.ts → time-entries-list.d.ts} +6 -2
- package/esm/funcs/time-entries-list.d.ts.map +1 -0
- package/esm/funcs/{time-entries-list-time-entries.js → time-entries-list.js} +56 -9
- package/esm/funcs/time-entries-list.js.map +1 -0
- package/esm/funcs/{transactions-update-transaction.d.ts → time-entries-update.d.ts} +5 -4
- package/esm/funcs/time-entries-update.d.ts.map +1 -0
- package/esm/funcs/{time-entries-update-time-entry.js → time-entries-update.js} +18 -4
- package/esm/funcs/time-entries-update.js.map +1 -0
- package/esm/funcs/{invoices-list-invoices.d.ts → transactions-create.d.ts} +5 -3
- package/esm/funcs/transactions-create.d.ts.map +1 -0
- package/esm/funcs/transactions-create.js +93 -0
- package/esm/funcs/transactions-create.js.map +1 -0
- package/esm/funcs/{webhooks-update-webhook.d.ts → transactions-delete.d.ts} +5 -5
- package/esm/funcs/transactions-delete.d.ts.map +1 -0
- package/esm/funcs/{transactions-delete-transaction.js → transactions-delete.js} +19 -5
- package/esm/funcs/transactions-delete.js.map +1 -0
- package/esm/funcs/transactions-get.d.ts +16 -0
- package/esm/funcs/transactions-get.d.ts.map +1 -0
- package/esm/funcs/{transactions-get-transaction.js → transactions-get.js} +18 -4
- package/esm/funcs/transactions-get.js.map +1 -0
- package/esm/funcs/{transactions-list-transactions.d.ts → transactions-list.d.ts} +6 -2
- package/esm/funcs/transactions-list.d.ts.map +1 -0
- package/esm/funcs/{transactions-list-transactions.js → transactions-list.js} +56 -9
- package/esm/funcs/transactions-list.js.map +1 -0
- package/esm/funcs/{projects-list-projects.d.ts → transactions-update.d.ts} +8 -3
- package/esm/funcs/transactions-update.d.ts.map +1 -0
- package/esm/funcs/{transactions-update-transaction.js → transactions-update.js} +18 -4
- package/esm/funcs/transactions-update.js.map +1 -0
- package/esm/funcs/{webhooks-create-webhook.d.ts → webhooks-create.d.ts} +3 -2
- package/esm/funcs/webhooks-create.d.ts.map +1 -0
- package/esm/funcs/{webhooks-create-webhook.js → webhooks-create.js} +12 -6
- package/esm/funcs/webhooks-create.js.map +1 -0
- package/esm/funcs/{webhooks-delete-webhook.d.ts → webhooks-delete.d.ts} +3 -2
- package/esm/funcs/webhooks-delete.d.ts.map +1 -0
- package/esm/funcs/{webhooks-delete-webhook.js → webhooks-delete.js} +19 -5
- package/esm/funcs/webhooks-delete.js.map +1 -0
- package/esm/funcs/{webhooks-get-webhook.d.ts → webhooks-get.d.ts} +3 -2
- package/esm/funcs/webhooks-get.d.ts.map +1 -0
- package/esm/funcs/{webhooks-get-webhook.js → webhooks-get.js} +18 -4
- package/esm/funcs/webhooks-get.js.map +1 -0
- package/esm/funcs/webhooks-list.d.ts +18 -0
- package/esm/funcs/webhooks-list.d.ts.map +1 -0
- package/esm/funcs/{webhooks-list-webhooks.js → webhooks-list.js} +56 -9
- package/esm/funcs/webhooks-list.js.map +1 -0
- package/esm/funcs/{time-entries-update-time-entry.d.ts → webhooks-update.d.ts} +5 -4
- package/esm/funcs/webhooks-update.d.ts.map +1 -0
- package/esm/funcs/{webhooks-update-webhook.js → webhooks-update.js} +18 -4
- package/esm/funcs/webhooks-update.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/api-error.d.ts +28 -0
- package/esm/models/api-error.d.ts.map +1 -0
- package/esm/models/api-error.js +30 -0
- package/esm/models/api-error.js.map +1 -0
- package/esm/models/calendar-event-list.d.ts +13 -0
- package/esm/models/calendar-event-list.d.ts.map +1 -0
- package/esm/models/calendar-event-list.js +16 -0
- package/esm/models/calendar-event-list.js.map +1 -0
- package/esm/models/catalog-item-list.d.ts +13 -0
- package/esm/models/catalog-item-list.d.ts.map +1 -0
- package/esm/models/catalog-item-list.js +16 -0
- package/esm/models/catalog-item-list.js.map +1 -0
- package/esm/models/client-list.d.ts +13 -0
- package/esm/models/client-list.d.ts.map +1 -0
- package/esm/models/client-list.js +17 -0
- package/esm/models/client-list.js.map +1 -0
- package/esm/models/contact-list.d.ts +13 -0
- package/esm/models/contact-list.d.ts.map +1 -0
- package/esm/models/contact-list.js +17 -0
- package/esm/models/contact-list.js.map +1 -0
- package/esm/models/contract-list.d.ts +13 -0
- package/esm/models/contract-list.d.ts.map +1 -0
- package/esm/models/contract-list.js +16 -0
- package/esm/models/contract-list.js.map +1 -0
- package/esm/models/errors/api-error.d.ts +19 -0
- package/esm/models/errors/api-error.d.ts.map +1 -0
- package/esm/models/errors/api-error.js +33 -0
- package/esm/models/errors/api-error.js.map +1 -0
- package/esm/models/errors/index.d.ts +1 -0
- package/esm/models/errors/index.d.ts.map +1 -1
- package/esm/models/errors/index.js +1 -0
- package/esm/models/errors/index.js.map +1 -1
- package/esm/models/index.d.ts +16 -0
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +16 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/inquiry-list.d.ts +13 -0
- package/esm/models/inquiry-list.d.ts.map +1 -0
- package/esm/models/inquiry-list.js +17 -0
- package/esm/models/inquiry-list.js.map +1 -0
- package/esm/models/invoice-list.d.ts +13 -0
- package/esm/models/invoice-list.d.ts.map +1 -0
- package/esm/models/invoice-list.js +17 -0
- package/esm/models/invoice-list.js.map +1 -0
- package/esm/models/milestone-list.d.ts +13 -0
- package/esm/models/milestone-list.d.ts.map +1 -0
- package/esm/models/milestone-list.js +16 -0
- package/esm/models/milestone-list.js.map +1 -0
- package/esm/models/operations/create-calendar-event.d.ts +16 -0
- package/esm/models/operations/create-calendar-event.d.ts.map +1 -1
- package/esm/models/operations/create-calendar-event.js +14 -0
- package/esm/models/operations/create-calendar-event.js.map +1 -1
- package/esm/models/operations/create-catalog-item.d.ts +16 -0
- package/esm/models/operations/create-catalog-item.d.ts.map +1 -1
- package/esm/models/operations/create-catalog-item.js +14 -0
- package/esm/models/operations/create-catalog-item.js.map +1 -1
- package/esm/models/operations/create-client.d.ts +16 -0
- package/esm/models/operations/create-client.d.ts.map +1 -1
- package/esm/models/operations/create-client.js +14 -0
- package/esm/models/operations/create-client.js.map +1 -1
- package/esm/models/operations/create-contact.d.ts +16 -0
- package/esm/models/operations/create-contact.d.ts.map +1 -1
- package/esm/models/operations/create-contact.js +14 -0
- package/esm/models/operations/create-contact.js.map +1 -1
- package/esm/models/operations/create-contract.d.ts +16 -0
- package/esm/models/operations/create-contract.d.ts.map +1 -1
- package/esm/models/operations/create-contract.js +14 -0
- package/esm/models/operations/create-contract.js.map +1 -1
- package/esm/models/operations/create-inquiry.d.ts +16 -0
- package/esm/models/operations/create-inquiry.d.ts.map +1 -1
- package/esm/models/operations/create-inquiry.js +14 -0
- package/esm/models/operations/create-inquiry.js.map +1 -1
- package/esm/models/operations/create-invoice.d.ts +16 -0
- package/esm/models/operations/create-invoice.d.ts.map +1 -1
- package/esm/models/operations/create-invoice.js +14 -0
- package/esm/models/operations/create-invoice.js.map +1 -1
- package/esm/models/operations/create-milestone.d.ts +16 -0
- package/esm/models/operations/create-milestone.d.ts.map +1 -1
- package/esm/models/operations/create-milestone.js +14 -0
- package/esm/models/operations/create-milestone.js.map +1 -1
- package/esm/models/operations/create-payment.d.ts +16 -0
- package/esm/models/operations/create-payment.d.ts.map +1 -1
- package/esm/models/operations/create-payment.js +14 -0
- package/esm/models/operations/create-payment.js.map +1 -1
- package/esm/models/operations/create-project.d.ts +16 -0
- package/esm/models/operations/create-project.d.ts.map +1 -1
- package/esm/models/operations/create-project.js +14 -0
- package/esm/models/operations/create-project.js.map +1 -1
- package/esm/models/operations/create-proposal.d.ts +16 -0
- package/esm/models/operations/create-proposal.d.ts.map +1 -1
- package/esm/models/operations/create-proposal.js +14 -0
- package/esm/models/operations/create-proposal.js.map +1 -1
- package/esm/models/operations/create-time-entry.d.ts +16 -0
- package/esm/models/operations/create-time-entry.d.ts.map +1 -1
- package/esm/models/operations/create-time-entry.js +14 -0
- package/esm/models/operations/create-time-entry.js.map +1 -1
- package/esm/models/operations/create-transaction.d.ts +16 -0
- package/esm/models/operations/create-transaction.d.ts.map +1 -1
- package/esm/models/operations/create-transaction.js +14 -0
- package/esm/models/operations/create-transaction.js.map +1 -1
- package/esm/models/operations/create-webhook.d.ts +16 -0
- package/esm/models/operations/create-webhook.d.ts.map +1 -1
- package/esm/models/operations/create-webhook.js +14 -0
- package/esm/models/operations/create-webhook.js.map +1 -1
- package/esm/models/operations/list-calendar-events.d.ts +1 -5
- package/esm/models/operations/list-calendar-events.d.ts.map +1 -1
- package/esm/models/operations/list-calendar-events.js +8 -4
- package/esm/models/operations/list-calendar-events.js.map +1 -1
- package/esm/models/operations/list-catalog-items.d.ts +1 -5
- package/esm/models/operations/list-catalog-items.d.ts.map +1 -1
- package/esm/models/operations/list-catalog-items.js +8 -4
- package/esm/models/operations/list-catalog-items.js.map +1 -1
- package/esm/models/operations/list-clients.d.ts +1 -5
- package/esm/models/operations/list-clients.d.ts.map +1 -1
- package/esm/models/operations/list-clients.js +8 -4
- package/esm/models/operations/list-clients.js.map +1 -1
- package/esm/models/operations/list-contacts.d.ts +1 -5
- package/esm/models/operations/list-contacts.d.ts.map +1 -1
- package/esm/models/operations/list-contacts.js +8 -4
- package/esm/models/operations/list-contacts.js.map +1 -1
- package/esm/models/operations/list-contracts.d.ts +1 -5
- package/esm/models/operations/list-contracts.d.ts.map +1 -1
- package/esm/models/operations/list-contracts.js +8 -4
- package/esm/models/operations/list-contracts.js.map +1 -1
- package/esm/models/operations/list-inquiries.d.ts +1 -5
- package/esm/models/operations/list-inquiries.d.ts.map +1 -1
- package/esm/models/operations/list-inquiries.js +8 -4
- package/esm/models/operations/list-inquiries.js.map +1 -1
- package/esm/models/operations/list-invoices.d.ts +1 -5
- package/esm/models/operations/list-invoices.d.ts.map +1 -1
- package/esm/models/operations/list-invoices.js +8 -4
- package/esm/models/operations/list-invoices.js.map +1 -1
- package/esm/models/operations/list-milestones.d.ts +1 -5
- package/esm/models/operations/list-milestones.d.ts.map +1 -1
- package/esm/models/operations/list-milestones.js +8 -4
- package/esm/models/operations/list-milestones.js.map +1 -1
- package/esm/models/operations/list-payments.d.ts +1 -5
- package/esm/models/operations/list-payments.d.ts.map +1 -1
- package/esm/models/operations/list-payments.js +8 -4
- package/esm/models/operations/list-payments.js.map +1 -1
- package/esm/models/operations/list-payouts.d.ts +1 -5
- package/esm/models/operations/list-payouts.d.ts.map +1 -1
- package/esm/models/operations/list-payouts.js +8 -4
- package/esm/models/operations/list-payouts.js.map +1 -1
- package/esm/models/operations/list-projects.d.ts +1 -5
- package/esm/models/operations/list-projects.d.ts.map +1 -1
- package/esm/models/operations/list-projects.js +8 -4
- package/esm/models/operations/list-projects.js.map +1 -1
- package/esm/models/operations/list-proposals.d.ts +1 -5
- package/esm/models/operations/list-proposals.d.ts.map +1 -1
- package/esm/models/operations/list-proposals.js +8 -4
- package/esm/models/operations/list-proposals.js.map +1 -1
- package/esm/models/operations/list-time-entries.d.ts +1 -5
- package/esm/models/operations/list-time-entries.d.ts.map +1 -1
- package/esm/models/operations/list-time-entries.js +8 -4
- package/esm/models/operations/list-time-entries.js.map +1 -1
- package/esm/models/operations/list-transactions.d.ts +1 -5
- package/esm/models/operations/list-transactions.d.ts.map +1 -1
- package/esm/models/operations/list-transactions.js +8 -4
- package/esm/models/operations/list-transactions.js.map +1 -1
- package/esm/models/operations/list-webhooks.d.ts +1 -5
- package/esm/models/operations/list-webhooks.d.ts.map +1 -1
- package/esm/models/operations/list-webhooks.js +8 -4
- package/esm/models/operations/list-webhooks.js.map +1 -1
- package/esm/models/payment-list.d.ts +13 -0
- package/esm/models/payment-list.d.ts.map +1 -0
- package/esm/models/payment-list.js +17 -0
- package/esm/models/payment-list.js.map +1 -0
- package/esm/models/payout-list.d.ts +13 -0
- package/esm/models/payout-list.d.ts.map +1 -0
- package/esm/models/payout-list.js +17 -0
- package/esm/models/payout-list.js.map +1 -0
- package/esm/models/project-list.d.ts +13 -0
- package/esm/models/project-list.d.ts.map +1 -0
- package/esm/models/project-list.js +17 -0
- package/esm/models/project-list.js.map +1 -0
- package/esm/models/proposal-list.d.ts +13 -0
- package/esm/models/proposal-list.d.ts.map +1 -0
- package/esm/models/proposal-list.js +16 -0
- package/esm/models/proposal-list.js.map +1 -0
- package/esm/models/time-entry-list.d.ts +13 -0
- package/esm/models/time-entry-list.d.ts.map +1 -0
- package/esm/models/time-entry-list.js +16 -0
- package/esm/models/time-entry-list.js.map +1 -0
- package/esm/models/transaction-list.d.ts +13 -0
- package/esm/models/transaction-list.d.ts.map +1 -0
- package/esm/models/transaction-list.js +16 -0
- package/esm/models/transaction-list.js.map +1 -0
- package/esm/models/webhook-list.d.ts +13 -0
- package/esm/models/webhook-list.d.ts.map +1 -0
- package/esm/models/webhook-list.js +17 -0
- package/esm/models/webhook-list.js.map +1 -0
- package/esm/sdk/calendar-events.d.ts +8 -5
- package/esm/sdk/calendar-events.d.ts.map +1 -1
- package/esm/sdk/calendar-events.js +16 -15
- package/esm/sdk/calendar-events.js.map +1 -1
- package/esm/sdk/catalog-items.d.ts +8 -5
- package/esm/sdk/catalog-items.d.ts.map +1 -1
- package/esm/sdk/catalog-items.js +16 -15
- package/esm/sdk/catalog-items.js.map +1 -1
- package/esm/sdk/clients.d.ts +8 -5
- package/esm/sdk/clients.d.ts.map +1 -1
- package/esm/sdk/clients.js +16 -15
- package/esm/sdk/clients.js.map +1 -1
- package/esm/sdk/contacts.d.ts +8 -5
- package/esm/sdk/contacts.d.ts.map +1 -1
- package/esm/sdk/contacts.js +16 -15
- package/esm/sdk/contacts.js.map +1 -1
- package/esm/sdk/contracts.d.ts +8 -5
- package/esm/sdk/contracts.d.ts.map +1 -1
- package/esm/sdk/contracts.js +16 -15
- package/esm/sdk/contracts.js.map +1 -1
- package/esm/sdk/inquiries.d.ts +8 -5
- package/esm/sdk/inquiries.d.ts.map +1 -1
- package/esm/sdk/inquiries.js +16 -15
- package/esm/sdk/inquiries.js.map +1 -1
- package/esm/sdk/invoices.d.ts +8 -5
- package/esm/sdk/invoices.d.ts.map +1 -1
- package/esm/sdk/invoices.js +16 -15
- package/esm/sdk/invoices.js.map +1 -1
- package/esm/sdk/milestones.d.ts +8 -5
- package/esm/sdk/milestones.d.ts.map +1 -1
- package/esm/sdk/milestones.js +16 -15
- package/esm/sdk/milestones.js.map +1 -1
- package/esm/sdk/payments.d.ts +7 -4
- package/esm/sdk/payments.d.ts.map +1 -1
- package/esm/sdk/payments.js +13 -12
- package/esm/sdk/payments.js.map +1 -1
- package/esm/sdk/payouts.d.ts +5 -2
- package/esm/sdk/payouts.d.ts.map +1 -1
- package/esm/sdk/payouts.js +7 -6
- package/esm/sdk/payouts.js.map +1 -1
- package/esm/sdk/projects.d.ts +8 -5
- package/esm/sdk/projects.d.ts.map +1 -1
- package/esm/sdk/projects.js +16 -15
- package/esm/sdk/projects.js.map +1 -1
- package/esm/sdk/proposals.d.ts +8 -5
- package/esm/sdk/proposals.d.ts.map +1 -1
- package/esm/sdk/proposals.js +16 -15
- package/esm/sdk/proposals.js.map +1 -1
- package/esm/sdk/time-entries.d.ts +8 -5
- package/esm/sdk/time-entries.d.ts.map +1 -1
- package/esm/sdk/time-entries.js +16 -15
- package/esm/sdk/time-entries.js.map +1 -1
- package/esm/sdk/transactions.d.ts +8 -5
- package/esm/sdk/transactions.d.ts.map +1 -1
- package/esm/sdk/transactions.js +16 -15
- package/esm/sdk/transactions.js.map +1 -1
- package/esm/sdk/webhooks.d.ts +8 -5
- package/esm/sdk/webhooks.d.ts.map +1 -1
- package/esm/sdk/webhooks.js +16 -15
- package/esm/sdk/webhooks.js.map +1 -1
- package/examples/{clientsListClients.example.ts → clientsList.example.ts} +5 -3
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/{calendar-events-create-calendar-event.ts → calendar-events-create.ts} +23 -7
- package/src/funcs/{calendar-events-delete-calendar-event.ts → calendar-events-delete.ts} +24 -4
- package/src/funcs/{calendar-events-get-calendar-event.ts → calendar-events-get.ts} +23 -3
- package/src/funcs/{calendar-events-list-calendar-events.ts → calendar-events-list.ts} +122 -30
- package/src/funcs/{calendar-events-update-calendar-event.ts → calendar-events-update.ts} +23 -3
- package/src/funcs/{catalog-items-create-catalog-item.ts → catalog-items-create.ts} +23 -7
- package/src/funcs/{catalog-items-delete-catalog-item.ts → catalog-items-delete.ts} +24 -4
- package/src/funcs/{catalog-items-get-catalog-item.ts → catalog-items-get.ts} +23 -3
- package/src/funcs/{catalog-items-list-catalog-items.ts → catalog-items-list.ts} +122 -30
- package/src/funcs/{catalog-items-update-catalog-item.ts → catalog-items-update.ts} +23 -3
- package/src/funcs/{clients-create-client.ts → clients-create.ts} +22 -7
- package/src/funcs/{clients-delete-client.ts → clients-delete.ts} +24 -4
- package/src/funcs/{clients-get-client.ts → clients-get.ts} +23 -3
- package/src/funcs/{clients-list-clients.ts → clients-list.ts} +122 -30
- package/src/funcs/{clients-update-client.ts → clients-update.ts} +23 -3
- package/src/funcs/{contacts-create-contact.ts → contacts-create.ts} +22 -7
- package/src/funcs/{contacts-delete-contact.ts → contacts-delete.ts} +24 -4
- package/src/funcs/{contacts-get-contact.ts → contacts-get.ts} +23 -3
- package/src/funcs/{contacts-list-contacts.ts → contacts-list.ts} +122 -30
- package/src/funcs/{contacts-update-contact.ts → contacts-update.ts} +23 -3
- package/src/funcs/{contracts-create-contract.ts → contracts-create.ts} +22 -7
- package/src/funcs/{contracts-delete-contract.ts → contracts-delete.ts} +24 -4
- package/src/funcs/{contracts-get-contract.ts → contracts-get.ts} +23 -3
- package/src/funcs/{contracts-list-contracts.ts → contracts-list.ts} +122 -30
- package/src/funcs/{contracts-update-contract.ts → contracts-update.ts} +23 -3
- package/src/funcs/{inquiries-create-inquiry.ts → inquiries-create.ts} +22 -7
- package/src/funcs/{inquiries-delete-inquiry.ts → inquiries-delete.ts} +24 -4
- package/src/funcs/{inquiries-get-inquiry.ts → inquiries-get.ts} +23 -3
- package/src/funcs/{inquiries-list-inquiries.ts → inquiries-list.ts} +122 -30
- package/src/funcs/{inquiries-update-inquiry.ts → inquiries-update.ts} +23 -3
- package/src/funcs/{invoices-create-invoice.ts → invoices-create.ts} +22 -7
- package/src/funcs/{invoices-delete-invoice.ts → invoices-delete.ts} +24 -4
- package/src/funcs/{invoices-get-invoice.ts → invoices-get.ts} +23 -3
- package/src/funcs/{invoices-list-invoices.ts → invoices-list.ts} +122 -30
- package/src/funcs/{invoices-update-invoice.ts → invoices-update.ts} +23 -3
- package/src/funcs/{milestones-create-milestone.ts → milestones-create.ts} +22 -7
- package/src/funcs/{milestones-delete-milestone.ts → milestones-delete.ts} +24 -4
- package/src/funcs/{milestones-get-milestone.ts → milestones-get.ts} +23 -3
- package/src/funcs/{milestones-list-milestones.ts → milestones-list.ts} +122 -30
- package/src/funcs/{milestones-update-milestone.ts → milestones-update.ts} +23 -3
- package/src/funcs/{payments-create-payment.ts → payments-create.ts} +22 -7
- package/src/funcs/{payments-get-payment.ts → payments-get.ts} +23 -3
- package/src/funcs/{payments-list-payments.ts → payments-list.ts} +122 -30
- package/src/funcs/{payments-update-payment.ts → payments-update.ts} +23 -3
- package/src/funcs/{payouts-get-payout.ts → payouts-get.ts} +23 -3
- package/src/funcs/{payouts-list-payouts.ts → payouts-list.ts} +122 -30
- package/src/funcs/{projects-create-project.ts → projects-create.ts} +22 -7
- package/src/funcs/{projects-delete-project.ts → projects-delete.ts} +24 -4
- package/src/funcs/{projects-get-project.ts → projects-get.ts} +23 -3
- package/src/funcs/{projects-list-projects.ts → projects-list.ts} +122 -30
- package/src/funcs/{projects-update-project.ts → projects-update.ts} +23 -3
- package/src/funcs/{proposals-create-proposal.ts → proposals-create.ts} +22 -7
- package/src/funcs/{proposals-delete-proposal.ts → proposals-delete.ts} +24 -4
- package/src/funcs/{proposals-get-proposal.ts → proposals-get.ts} +23 -3
- package/src/funcs/{proposals-list-proposals.ts → proposals-list.ts} +122 -30
- package/src/funcs/{proposals-update-proposal.ts → proposals-update.ts} +23 -3
- package/src/funcs/{time-entries-create-time-entry.ts → time-entries-create.ts} +22 -7
- package/src/funcs/{time-entries-delete-time-entry.ts → time-entries-delete.ts} +24 -4
- package/src/funcs/{time-entries-get-time-entry.ts → time-entries-get.ts} +23 -3
- package/src/funcs/{time-entries-list-time-entries.ts → time-entries-list.ts} +122 -30
- package/src/funcs/{time-entries-update-time-entry.ts → time-entries-update.ts} +23 -3
- package/src/funcs/{transactions-create-transaction.ts → transactions-create.ts} +23 -7
- package/src/funcs/{transactions-delete-transaction.ts → transactions-delete.ts} +24 -4
- package/src/funcs/{transactions-get-transaction.ts → transactions-get.ts} +23 -3
- package/src/funcs/{transactions-list-transactions.ts → transactions-list.ts} +122 -30
- package/src/funcs/{transactions-update-transaction.ts → transactions-update.ts} +23 -3
- package/src/funcs/{webhooks-create-webhook.ts → webhooks-create.ts} +22 -7
- package/src/funcs/{webhooks-delete-webhook.ts → webhooks-delete.ts} +24 -4
- package/src/funcs/{webhooks-get-webhook.ts → webhooks-get.ts} +23 -3
- package/src/funcs/{webhooks-list-webhooks.ts → webhooks-list.ts} +122 -30
- package/src/funcs/{webhooks-update-webhook.ts → webhooks-update.ts} +23 -3
- package/src/lib/config.ts +2 -2
- package/src/models/api-error.ts +51 -0
- package/src/models/calendar-event-list.ts +40 -0
- package/src/models/catalog-item-list.ts +37 -0
- package/src/models/client-list.ts +35 -0
- package/src/models/contact-list.ts +35 -0
- package/src/models/contract-list.ts +35 -0
- package/src/models/errors/api-error.ts +48 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/index.ts +16 -0
- package/src/models/inquiry-list.ts +35 -0
- package/src/models/invoice-list.ts +35 -0
- package/src/models/milestone-list.ts +37 -0
- package/src/models/operations/create-calendar-event.ts +40 -0
- package/src/models/operations/create-catalog-item.ts +40 -0
- package/src/models/operations/create-client.ts +40 -0
- package/src/models/operations/create-contact.ts +40 -0
- package/src/models/operations/create-contract.ts +40 -0
- package/src/models/operations/create-inquiry.ts +40 -0
- package/src/models/operations/create-invoice.ts +40 -0
- package/src/models/operations/create-milestone.ts +40 -0
- package/src/models/operations/create-payment.ts +40 -0
- package/src/models/operations/create-project.ts +40 -0
- package/src/models/operations/create-proposal.ts +40 -0
- package/src/models/operations/create-time-entry.ts +40 -0
- package/src/models/operations/create-transaction.ts +40 -0
- package/src/models/operations/create-webhook.ts +40 -0
- package/src/models/operations/list-calendar-events.ts +12 -9
- package/src/models/operations/list-catalog-items.ts +12 -9
- package/src/models/operations/list-clients.ts +12 -9
- package/src/models/operations/list-contacts.ts +12 -9
- package/src/models/operations/list-contracts.ts +12 -9
- package/src/models/operations/list-inquiries.ts +12 -9
- package/src/models/operations/list-invoices.ts +12 -9
- package/src/models/operations/list-milestones.ts +12 -9
- package/src/models/operations/list-payments.ts +12 -9
- package/src/models/operations/list-payouts.ts +12 -9
- package/src/models/operations/list-projects.ts +12 -9
- package/src/models/operations/list-proposals.ts +12 -9
- package/src/models/operations/list-time-entries.ts +12 -9
- package/src/models/operations/list-transactions.ts +12 -9
- package/src/models/operations/list-webhooks.ts +12 -9
- package/src/models/payment-list.ts +35 -0
- package/src/models/payout-list.ts +35 -0
- package/src/models/project-list.ts +35 -0
- package/src/models/proposal-list.ts +35 -0
- package/src/models/time-entry-list.ts +37 -0
- package/src/models/transaction-list.ts +37 -0
- package/src/models/webhook-list.ts +35 -0
- package/src/sdk/calendar-events.ts +20 -17
- package/src/sdk/catalog-items.ts +20 -17
- package/src/sdk/clients.ts +18 -17
- package/src/sdk/contacts.ts +18 -17
- package/src/sdk/contracts.ts +18 -17
- package/src/sdk/inquiries.ts +18 -17
- package/src/sdk/invoices.ts +18 -17
- package/src/sdk/milestones.ts +20 -17
- package/src/sdk/payments.ts +15 -14
- package/src/sdk/payouts.ts +8 -7
- package/src/sdk/projects.ts +18 -17
- package/src/sdk/proposals.ts +18 -17
- package/src/sdk/time-entries.ts +20 -17
- package/src/sdk/transactions.ts +20 -17
- package/src/sdk/webhooks.ts +18 -17
- package/esm/funcs/calendar-events-create-calendar-event.d.ts.map +0 -1
- package/esm/funcs/calendar-events-create-calendar-event.js.map +0 -1
- package/esm/funcs/calendar-events-delete-calendar-event.d.ts.map +0 -1
- package/esm/funcs/calendar-events-delete-calendar-event.js.map +0 -1
- package/esm/funcs/calendar-events-get-calendar-event.d.ts.map +0 -1
- package/esm/funcs/calendar-events-get-calendar-event.js.map +0 -1
- package/esm/funcs/calendar-events-list-calendar-events.d.ts.map +0 -1
- package/esm/funcs/calendar-events-list-calendar-events.js.map +0 -1
- package/esm/funcs/calendar-events-update-calendar-event.d.ts.map +0 -1
- package/esm/funcs/calendar-events-update-calendar-event.js.map +0 -1
- package/esm/funcs/catalog-items-create-catalog-item.d.ts.map +0 -1
- package/esm/funcs/catalog-items-create-catalog-item.js.map +0 -1
- package/esm/funcs/catalog-items-delete-catalog-item.d.ts.map +0 -1
- package/esm/funcs/catalog-items-delete-catalog-item.js.map +0 -1
- package/esm/funcs/catalog-items-get-catalog-item.d.ts.map +0 -1
- package/esm/funcs/catalog-items-get-catalog-item.js.map +0 -1
- package/esm/funcs/catalog-items-list-catalog-items.d.ts.map +0 -1
- package/esm/funcs/catalog-items-list-catalog-items.js.map +0 -1
- package/esm/funcs/catalog-items-update-catalog-item.d.ts.map +0 -1
- package/esm/funcs/catalog-items-update-catalog-item.js.map +0 -1
- package/esm/funcs/clients-create-client.d.ts.map +0 -1
- package/esm/funcs/clients-create-client.js +0 -87
- package/esm/funcs/clients-create-client.js.map +0 -1
- package/esm/funcs/clients-delete-client.d.ts.map +0 -1
- package/esm/funcs/clients-delete-client.js.map +0 -1
- package/esm/funcs/clients-get-client.d.ts.map +0 -1
- package/esm/funcs/clients-get-client.js.map +0 -1
- package/esm/funcs/clients-list-clients.d.ts.map +0 -1
- package/esm/funcs/clients-list-clients.js.map +0 -1
- package/esm/funcs/clients-update-client.d.ts.map +0 -1
- package/esm/funcs/clients-update-client.js.map +0 -1
- package/esm/funcs/contacts-create-contact.d.ts +0 -15
- package/esm/funcs/contacts-create-contact.d.ts.map +0 -1
- package/esm/funcs/contacts-create-contact.js +0 -87
- package/esm/funcs/contacts-create-contact.js.map +0 -1
- package/esm/funcs/contacts-delete-contact.d.ts.map +0 -1
- package/esm/funcs/contacts-delete-contact.js.map +0 -1
- package/esm/funcs/contacts-get-contact.d.ts.map +0 -1
- package/esm/funcs/contacts-get-contact.js.map +0 -1
- package/esm/funcs/contacts-list-contacts.d.ts.map +0 -1
- package/esm/funcs/contacts-list-contacts.js.map +0 -1
- package/esm/funcs/contacts-update-contact.d.ts +0 -15
- package/esm/funcs/contacts-update-contact.d.ts.map +0 -1
- package/esm/funcs/contacts-update-contact.js.map +0 -1
- package/esm/funcs/contracts-create-contract.d.ts.map +0 -1
- package/esm/funcs/contracts-create-contract.js.map +0 -1
- package/esm/funcs/contracts-delete-contract.d.ts.map +0 -1
- package/esm/funcs/contracts-delete-contract.js.map +0 -1
- package/esm/funcs/contracts-get-contract.d.ts +0 -15
- package/esm/funcs/contracts-get-contract.d.ts.map +0 -1
- package/esm/funcs/contracts-get-contract.js.map +0 -1
- package/esm/funcs/contracts-list-contracts.d.ts +0 -14
- package/esm/funcs/contracts-list-contracts.d.ts.map +0 -1
- package/esm/funcs/contracts-list-contracts.js.map +0 -1
- package/esm/funcs/contracts-update-contract.d.ts.map +0 -1
- package/esm/funcs/contracts-update-contract.js.map +0 -1
- package/esm/funcs/inquiries-create-inquiry.d.ts.map +0 -1
- package/esm/funcs/inquiries-create-inquiry.js.map +0 -1
- package/esm/funcs/inquiries-delete-inquiry.d.ts.map +0 -1
- package/esm/funcs/inquiries-delete-inquiry.js.map +0 -1
- package/esm/funcs/inquiries-get-inquiry.d.ts.map +0 -1
- package/esm/funcs/inquiries-get-inquiry.js.map +0 -1
- package/esm/funcs/inquiries-list-inquiries.d.ts +0 -14
- package/esm/funcs/inquiries-list-inquiries.d.ts.map +0 -1
- package/esm/funcs/inquiries-list-inquiries.js.map +0 -1
- package/esm/funcs/inquiries-update-inquiry.d.ts.map +0 -1
- package/esm/funcs/inquiries-update-inquiry.js.map +0 -1
- package/esm/funcs/invoices-create-invoice.d.ts.map +0 -1
- package/esm/funcs/invoices-create-invoice.js.map +0 -1
- package/esm/funcs/invoices-delete-invoice.d.ts.map +0 -1
- package/esm/funcs/invoices-delete-invoice.js.map +0 -1
- package/esm/funcs/invoices-get-invoice.d.ts.map +0 -1
- package/esm/funcs/invoices-get-invoice.js.map +0 -1
- package/esm/funcs/invoices-list-invoices.d.ts.map +0 -1
- package/esm/funcs/invoices-list-invoices.js.map +0 -1
- package/esm/funcs/invoices-update-invoice.d.ts.map +0 -1
- package/esm/funcs/invoices-update-invoice.js.map +0 -1
- package/esm/funcs/milestones-create-milestone.d.ts.map +0 -1
- package/esm/funcs/milestones-create-milestone.js.map +0 -1
- package/esm/funcs/milestones-delete-milestone.d.ts.map +0 -1
- package/esm/funcs/milestones-delete-milestone.js.map +0 -1
- package/esm/funcs/milestones-get-milestone.d.ts.map +0 -1
- package/esm/funcs/milestones-get-milestone.js.map +0 -1
- package/esm/funcs/milestones-list-milestones.d.ts +0 -14
- package/esm/funcs/milestones-list-milestones.d.ts.map +0 -1
- package/esm/funcs/milestones-list-milestones.js.map +0 -1
- package/esm/funcs/milestones-update-milestone.d.ts.map +0 -1
- package/esm/funcs/milestones-update-milestone.js.map +0 -1
- package/esm/funcs/payments-create-payment.d.ts.map +0 -1
- package/esm/funcs/payments-create-payment.js.map +0 -1
- package/esm/funcs/payments-get-payment.d.ts.map +0 -1
- package/esm/funcs/payments-get-payment.js.map +0 -1
- package/esm/funcs/payments-list-payments.d.ts.map +0 -1
- package/esm/funcs/payments-list-payments.js.map +0 -1
- package/esm/funcs/payments-update-payment.d.ts.map +0 -1
- package/esm/funcs/payments-update-payment.js.map +0 -1
- package/esm/funcs/payouts-get-payout.d.ts.map +0 -1
- package/esm/funcs/payouts-get-payout.js.map +0 -1
- package/esm/funcs/payouts-list-payouts.d.ts.map +0 -1
- package/esm/funcs/payouts-list-payouts.js.map +0 -1
- package/esm/funcs/projects-create-project.d.ts.map +0 -1
- package/esm/funcs/projects-create-project.js +0 -87
- package/esm/funcs/projects-create-project.js.map +0 -1
- package/esm/funcs/projects-delete-project.d.ts.map +0 -1
- package/esm/funcs/projects-delete-project.js.map +0 -1
- package/esm/funcs/projects-get-project.d.ts +0 -15
- package/esm/funcs/projects-get-project.d.ts.map +0 -1
- package/esm/funcs/projects-get-project.js.map +0 -1
- package/esm/funcs/projects-list-projects.d.ts.map +0 -1
- package/esm/funcs/projects-list-projects.js.map +0 -1
- package/esm/funcs/projects-update-project.d.ts.map +0 -1
- package/esm/funcs/projects-update-project.js.map +0 -1
- package/esm/funcs/proposals-create-proposal.d.ts.map +0 -1
- package/esm/funcs/proposals-create-proposal.js.map +0 -1
- package/esm/funcs/proposals-delete-proposal.d.ts.map +0 -1
- package/esm/funcs/proposals-delete-proposal.js.map +0 -1
- package/esm/funcs/proposals-get-proposal.d.ts +0 -15
- package/esm/funcs/proposals-get-proposal.d.ts.map +0 -1
- package/esm/funcs/proposals-get-proposal.js.map +0 -1
- package/esm/funcs/proposals-list-proposals.d.ts +0 -14
- package/esm/funcs/proposals-list-proposals.d.ts.map +0 -1
- package/esm/funcs/proposals-list-proposals.js.map +0 -1
- package/esm/funcs/proposals-update-proposal.d.ts.map +0 -1
- package/esm/funcs/proposals-update-proposal.js.map +0 -1
- package/esm/funcs/time-entries-create-time-entry.d.ts +0 -15
- package/esm/funcs/time-entries-create-time-entry.d.ts.map +0 -1
- package/esm/funcs/time-entries-create-time-entry.js +0 -87
- package/esm/funcs/time-entries-create-time-entry.js.map +0 -1
- package/esm/funcs/time-entries-delete-time-entry.d.ts.map +0 -1
- package/esm/funcs/time-entries-delete-time-entry.js.map +0 -1
- package/esm/funcs/time-entries-get-time-entry.d.ts.map +0 -1
- package/esm/funcs/time-entries-get-time-entry.js.map +0 -1
- package/esm/funcs/time-entries-list-time-entries.d.ts.map +0 -1
- package/esm/funcs/time-entries-list-time-entries.js.map +0 -1
- package/esm/funcs/time-entries-update-time-entry.d.ts.map +0 -1
- package/esm/funcs/time-entries-update-time-entry.js.map +0 -1
- package/esm/funcs/transactions-create-transaction.d.ts +0 -15
- package/esm/funcs/transactions-create-transaction.d.ts.map +0 -1
- package/esm/funcs/transactions-create-transaction.js +0 -87
- package/esm/funcs/transactions-create-transaction.js.map +0 -1
- package/esm/funcs/transactions-delete-transaction.d.ts.map +0 -1
- package/esm/funcs/transactions-delete-transaction.js.map +0 -1
- package/esm/funcs/transactions-get-transaction.d.ts.map +0 -1
- package/esm/funcs/transactions-get-transaction.js.map +0 -1
- package/esm/funcs/transactions-list-transactions.d.ts.map +0 -1
- package/esm/funcs/transactions-list-transactions.js.map +0 -1
- package/esm/funcs/transactions-update-transaction.d.ts.map +0 -1
- package/esm/funcs/transactions-update-transaction.js.map +0 -1
- package/esm/funcs/webhooks-create-webhook.d.ts.map +0 -1
- package/esm/funcs/webhooks-create-webhook.js.map +0 -1
- package/esm/funcs/webhooks-delete-webhook.d.ts.map +0 -1
- package/esm/funcs/webhooks-delete-webhook.js.map +0 -1
- package/esm/funcs/webhooks-get-webhook.d.ts.map +0 -1
- package/esm/funcs/webhooks-get-webhook.js.map +0 -1
- package/esm/funcs/webhooks-list-webhooks.d.ts +0 -14
- package/esm/funcs/webhooks-list-webhooks.d.ts.map +0 -1
- package/esm/funcs/webhooks-list-webhooks.js.map +0 -1
- package/esm/funcs/webhooks-update-webhook.d.ts.map +0 -1
- package/esm/funcs/webhooks-update-webhook.js.map +0 -1
package/esm/sdk/transactions.js
CHANGED
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { transactionsCreate } from "../funcs/transactions-create.js";
|
|
5
|
+
import { transactionsDelete } from "../funcs/transactions-delete.js";
|
|
6
|
+
import { transactionsGet } from "../funcs/transactions-get.js";
|
|
7
|
+
import { transactionsList } from "../funcs/transactions-list.js";
|
|
8
|
+
import { transactionsUpdate } from "../funcs/transactions-update.js";
|
|
9
9
|
import { ClientSDK } from "../lib/sdks.js";
|
|
10
10
|
import { unwrapAsync } from "../types/fp.js";
|
|
11
|
+
import { unwrapResultIterator } from "../types/operations.js";
|
|
11
12
|
export class Transactions extends ClientSDK {
|
|
12
13
|
/**
|
|
13
14
|
* List transactions
|
|
14
15
|
*/
|
|
15
|
-
async
|
|
16
|
-
return
|
|
16
|
+
async list(security, request, options) {
|
|
17
|
+
return unwrapResultIterator(transactionsList(this, security, request, options));
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
20
|
* Create a transaction (expense or charge)
|
|
20
21
|
*/
|
|
21
|
-
async
|
|
22
|
-
return unwrapAsync(
|
|
22
|
+
async create(security, request, options) {
|
|
23
|
+
return unwrapAsync(transactionsCreate(this, security, request, options));
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
26
|
* Get a transaction
|
|
26
27
|
*/
|
|
27
|
-
async
|
|
28
|
-
return unwrapAsync(
|
|
28
|
+
async get(security, request, options) {
|
|
29
|
+
return unwrapAsync(transactionsGet(this, security, request, options));
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
32
|
* Delete a transaction
|
|
@@ -33,8 +34,8 @@ export class Transactions extends ClientSDK {
|
|
|
33
34
|
* @remarks
|
|
34
35
|
* Transactions billed to a sent/paid invoice cannot be deleted.
|
|
35
36
|
*/
|
|
36
|
-
async
|
|
37
|
-
return unwrapAsync(
|
|
37
|
+
async delete(security, request, options) {
|
|
38
|
+
return unwrapAsync(transactionsDelete(this, security, request, options));
|
|
38
39
|
}
|
|
39
40
|
/**
|
|
40
41
|
* Update a transaction
|
|
@@ -42,8 +43,8 @@ export class Transactions extends ClientSDK {
|
|
|
42
43
|
* @remarks
|
|
43
44
|
* Transactions billed to a sent/paid invoice may be frozen — the server will return 409 if so.
|
|
44
45
|
*/
|
|
45
|
-
async
|
|
46
|
-
return unwrapAsync(
|
|
46
|
+
async update(security, request, options) {
|
|
47
|
+
return unwrapAsync(transactionsUpdate(this, security, request, options));
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
//# sourceMappingURL=transactions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.js","sourceRoot":"","sources":["../../src/sdk/transactions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"transactions.js","sourceRoot":"","sources":["../../src/sdk/transactions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAgB,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE5E,MAAM,OAAO,YAAa,SAAQ,SAAS;IACzC;;OAEG;IACH,KAAK,CAAC,IAAI,CACR,QAA6C,EAC7C,OAAwD,EACxD,OAAwB,EAGxB;QACA,OAAO,oBAAoB,CAAC,gBAAgB,CAC1C,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,QAA8C,EAC9C,OAA4C,EAC5C,OAAwB,EACK;QAC7B,OAAO,WAAW,CAAC,kBAAkB,CACnC,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,KAAK,CAAC,GAAG,CACP,QAA2C,EAC3C,OAAyC,EACzC,OAAwB,EACK;QAC7B,OAAO,WAAW,CAAC,eAAe,CAChC,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,QAA8C,EAC9C,OAA4C,EAC5C,OAAwB,EACT;QACf,OAAO,WAAW,CAAC,kBAAkB,CACnC,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,QAA8C,EAC9C,OAA4C,EAC5C,OAAwB,EACK;QAC7B,OAAO,WAAW,CAAC,kBAAkB,CACnC,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
|
package/esm/sdk/webhooks.d.ts
CHANGED
|
@@ -1,32 +1,35 @@
|
|
|
1
1
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
2
|
import * as models from "../models/index.js";
|
|
3
3
|
import * as operations from "../models/operations/index.js";
|
|
4
|
+
import { PageIterator } from "../types/operations.js";
|
|
4
5
|
export declare class Webhooks extends ClientSDK {
|
|
5
6
|
/**
|
|
6
7
|
* List webhook subscriptions
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
+
list(security: operations.ListWebhooksSecurity, request?: operations.ListWebhooksRequest | undefined, options?: RequestOptions): Promise<PageIterator<operations.ListWebhooksResponse, {
|
|
10
|
+
page: number;
|
|
11
|
+
}>>;
|
|
9
12
|
/**
|
|
10
13
|
* Subscribe to events
|
|
11
14
|
*
|
|
12
15
|
* @remarks
|
|
13
16
|
* Creates a webhook endpoint. URL must be HTTPS. If `secret` is provided, every delivery includes an `X-Signature: sha256=…` header computed over `${X-Webhook-Timestamp}.${body}`.
|
|
14
17
|
*/
|
|
15
|
-
|
|
18
|
+
create(security: operations.CreateWebhookSecurity, request: operations.CreateWebhookRequest, options?: RequestOptions): Promise<models.Webhook>;
|
|
16
19
|
/**
|
|
17
20
|
* Get a webhook
|
|
18
21
|
*/
|
|
19
|
-
|
|
22
|
+
get(security: operations.GetWebhookSecurity, request: operations.GetWebhookRequest, options?: RequestOptions): Promise<models.Webhook>;
|
|
20
23
|
/**
|
|
21
24
|
* Delete a webhook
|
|
22
25
|
*/
|
|
23
|
-
|
|
26
|
+
delete(security: operations.DeleteWebhookSecurity, request: operations.DeleteWebhookRequest, options?: RequestOptions): Promise<void>;
|
|
24
27
|
/**
|
|
25
28
|
* Update a webhook
|
|
26
29
|
*
|
|
27
30
|
* @remarks
|
|
28
31
|
* Pass `secret: null` to remove the signing secret. Pass a new string to rotate.
|
|
29
32
|
*/
|
|
30
|
-
|
|
33
|
+
update(security: operations.UpdateWebhookSecurity, request: operations.UpdateWebhookRequest, options?: RequestOptions): Promise<models.Webhook>;
|
|
31
34
|
}
|
|
32
35
|
//# sourceMappingURL=webhooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/sdk/webhooks.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/sdk/webhooks.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,qBAAa,QAAS,SAAQ,SAAS;IACrC;;OAEG;IACG,IAAI,CACR,QAAQ,EAAE,UAAU,CAAC,oBAAoB,EACzC,OAAO,CAAC,EAAE,UAAU,CAAC,mBAAmB,GAAG,SAAS,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,oBAAoB,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC,CAO1E;IAED;;;;;OAKG;IACG,MAAM,CACV,QAAQ,EAAE,UAAU,CAAC,qBAAqB,EAC1C,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAOzB;IAED;;OAEG;IACG,GAAG,CACP,QAAQ,EAAE,UAAU,CAAC,kBAAkB,EACvC,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAOzB;IAED;;OAEG;IACG,MAAM,CACV,QAAQ,EAAE,UAAU,CAAC,qBAAqB,EAC1C,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC,CAOf;IAED;;;;;OAKG;IACG,MAAM,CACV,QAAQ,EAAE,UAAU,CAAC,qBAAqB,EAC1C,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAOzB;CACF"}
|
package/esm/sdk/webhooks.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { webhooksCreate } from "../funcs/webhooks-create.js";
|
|
5
|
+
import { webhooksDelete } from "../funcs/webhooks-delete.js";
|
|
6
|
+
import { webhooksGet } from "../funcs/webhooks-get.js";
|
|
7
|
+
import { webhooksList } from "../funcs/webhooks-list.js";
|
|
8
|
+
import { webhooksUpdate } from "../funcs/webhooks-update.js";
|
|
9
9
|
import { ClientSDK } from "../lib/sdks.js";
|
|
10
10
|
import { unwrapAsync } from "../types/fp.js";
|
|
11
|
+
import { unwrapResultIterator } from "../types/operations.js";
|
|
11
12
|
export class Webhooks extends ClientSDK {
|
|
12
13
|
/**
|
|
13
14
|
* List webhook subscriptions
|
|
14
15
|
*/
|
|
15
|
-
async
|
|
16
|
-
return
|
|
16
|
+
async list(security, request, options) {
|
|
17
|
+
return unwrapResultIterator(webhooksList(this, security, request, options));
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
20
|
* Subscribe to events
|
|
@@ -21,20 +22,20 @@ export class Webhooks extends ClientSDK {
|
|
|
21
22
|
* @remarks
|
|
22
23
|
* Creates a webhook endpoint. URL must be HTTPS. If `secret` is provided, every delivery includes an `X-Signature: sha256=…` header computed over `${X-Webhook-Timestamp}.${body}`.
|
|
23
24
|
*/
|
|
24
|
-
async
|
|
25
|
-
return unwrapAsync(
|
|
25
|
+
async create(security, request, options) {
|
|
26
|
+
return unwrapAsync(webhooksCreate(this, security, request, options));
|
|
26
27
|
}
|
|
27
28
|
/**
|
|
28
29
|
* Get a webhook
|
|
29
30
|
*/
|
|
30
|
-
async
|
|
31
|
-
return unwrapAsync(
|
|
31
|
+
async get(security, request, options) {
|
|
32
|
+
return unwrapAsync(webhooksGet(this, security, request, options));
|
|
32
33
|
}
|
|
33
34
|
/**
|
|
34
35
|
* Delete a webhook
|
|
35
36
|
*/
|
|
36
|
-
async
|
|
37
|
-
return unwrapAsync(
|
|
37
|
+
async delete(security, request, options) {
|
|
38
|
+
return unwrapAsync(webhooksDelete(this, security, request, options));
|
|
38
39
|
}
|
|
39
40
|
/**
|
|
40
41
|
* Update a webhook
|
|
@@ -42,8 +43,8 @@ export class Webhooks extends ClientSDK {
|
|
|
42
43
|
* @remarks
|
|
43
44
|
* Pass `secret: null` to remove the signing secret. Pass a new string to rotate.
|
|
44
45
|
*/
|
|
45
|
-
async
|
|
46
|
-
return unwrapAsync(
|
|
46
|
+
async update(security, request, options) {
|
|
47
|
+
return unwrapAsync(webhooksUpdate(this, security, request, options));
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
//# sourceMappingURL=webhooks.js.map
|
package/esm/sdk/webhooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../src/sdk/webhooks.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../src/sdk/webhooks.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAgB,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE5E,MAAM,OAAO,QAAS,SAAQ,SAAS;IACrC;;OAEG;IACH,KAAK,CAAC,IAAI,CACR,QAAyC,EACzC,OAAoD,EACpD,OAAwB,EACkD;QAC1E,OAAO,oBAAoB,CAAC,YAAY,CACtC,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,QAA0C,EAC1C,OAAwC,EACxC,OAAwB,EACC;QACzB,OAAO,WAAW,CAAC,cAAc,CAC/B,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,KAAK,CAAC,GAAG,CACP,QAAuC,EACvC,OAAqC,EACrC,OAAwB,EACC;QACzB,OAAO,WAAW,CAAC,WAAW,CAC5B,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,QAA0C,EAC1C,OAAwC,EACxC,OAAwB,EACT;QACf,OAAO,WAAW,CAAC,cAAc,CAC/B,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,QAA0C,EAC1C,OAAwC,EACxC,OAAwB,EACC;QACzB,OAAO,WAAW,CAAC,cAAc,CAC/B,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
|
|
@@ -8,7 +8,7 @@ dotenv.config();
|
|
|
8
8
|
* Example usage of the @clientcasa/sdk SDK
|
|
9
9
|
*
|
|
10
10
|
* To run this example from the examples directory:
|
|
11
|
-
* npm run build && npx tsx
|
|
11
|
+
* npm run build && npx tsx clientsList.example.ts
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
import { ClientCasa } from "@clientcasa/sdk";
|
|
@@ -16,11 +16,13 @@ import { ClientCasa } from "@clientcasa/sdk";
|
|
|
16
16
|
const clientCasa = new ClientCasa();
|
|
17
17
|
|
|
18
18
|
async function main() {
|
|
19
|
-
const result = await clientCasa.clients.
|
|
19
|
+
const result = await clientCasa.clients.list({
|
|
20
20
|
apiKey: process.env["CLIENTCASA_API_KEY"] ?? "",
|
|
21
21
|
}, {});
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
for await (const page of result) {
|
|
24
|
+
console.log(page);
|
|
25
|
+
}
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
main().catch(console.error);
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { ClientCasaCore } from "../core.js";
|
|
7
|
-
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
8
8
|
import { matchStatusCode } from "../lib/http.js";
|
|
9
9
|
import * as M from "../lib/matchers.js";
|
|
10
10
|
import { compactMap } from "../lib/primitives.js";
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
RequestTimeoutError,
|
|
21
21
|
UnexpectedClientError,
|
|
22
22
|
} from "../models/errors/http-client-errors.js";
|
|
23
|
+
import * as errors from "../models/errors/index.js";
|
|
23
24
|
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
24
25
|
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
25
26
|
import * as models from "../models/index.js";
|
|
@@ -33,14 +34,15 @@ import { Result } from "../types/fp.js";
|
|
|
33
34
|
* @remarks
|
|
34
35
|
* Only manually-created events accepted via API; events synced from Google/Outlook/Apple are read-only.
|
|
35
36
|
*/
|
|
36
|
-
export function
|
|
37
|
+
export function calendarEventsCreate(
|
|
37
38
|
client: ClientCasaCore,
|
|
38
39
|
security: operations.CreateCalendarEventSecurity,
|
|
39
|
-
request:
|
|
40
|
+
request: operations.CreateCalendarEventRequest,
|
|
40
41
|
options?: RequestOptions,
|
|
41
42
|
): APIPromise<
|
|
42
43
|
Result<
|
|
43
44
|
models.CalendarEvent,
|
|
45
|
+
| errors.ApiError
|
|
44
46
|
| ClientCasaError
|
|
45
47
|
| ResponseValidationError
|
|
46
48
|
| ConnectionError
|
|
@@ -62,12 +64,13 @@ export function calendarEventsCreateCalendarEvent(
|
|
|
62
64
|
async function $do(
|
|
63
65
|
client: ClientCasaCore,
|
|
64
66
|
security: operations.CreateCalendarEventSecurity,
|
|
65
|
-
request:
|
|
67
|
+
request: operations.CreateCalendarEventRequest,
|
|
66
68
|
options?: RequestOptions,
|
|
67
69
|
): Promise<
|
|
68
70
|
[
|
|
69
71
|
Result<
|
|
70
72
|
models.CalendarEvent,
|
|
73
|
+
| errors.ApiError
|
|
71
74
|
| ClientCasaError
|
|
72
75
|
| ResponseValidationError
|
|
73
76
|
| ConnectionError
|
|
@@ -82,20 +85,26 @@ async function $do(
|
|
|
82
85
|
> {
|
|
83
86
|
const parsed = safeParse(
|
|
84
87
|
request,
|
|
85
|
-
(value) =>
|
|
88
|
+
(value) =>
|
|
89
|
+
z.parse(operations.CreateCalendarEventRequest$outboundSchema, value),
|
|
86
90
|
"Input validation failed",
|
|
87
91
|
);
|
|
88
92
|
if (!parsed.ok) {
|
|
89
93
|
return [parsed, { status: "invalid" }];
|
|
90
94
|
}
|
|
91
95
|
const payload = parsed.value;
|
|
92
|
-
const body = encodeJSON("body", payload, { explode: true });
|
|
96
|
+
const body = encodeJSON("body", payload.body, { explode: true });
|
|
93
97
|
|
|
94
98
|
const path = pathToFunc("/api/v1/calendar-events")();
|
|
95
99
|
|
|
96
100
|
const headers = new Headers(compactMap({
|
|
97
101
|
"Content-Type": "application/json",
|
|
98
102
|
Accept: "application/json",
|
|
103
|
+
"Idempotency-Key": encodeSimple(
|
|
104
|
+
"Idempotency-Key",
|
|
105
|
+
payload["Idempotency-Key"],
|
|
106
|
+
{ explode: false, charEncoding: "none" },
|
|
107
|
+
),
|
|
99
108
|
}));
|
|
100
109
|
|
|
101
110
|
const requestSecurity = resolveSecurity(
|
|
@@ -157,8 +166,13 @@ async function $do(
|
|
|
157
166
|
}
|
|
158
167
|
const response = doResult.value;
|
|
159
168
|
|
|
169
|
+
const responseFields = {
|
|
170
|
+
HttpMeta: { Response: response, Request: req },
|
|
171
|
+
};
|
|
172
|
+
|
|
160
173
|
const [result] = await M.match<
|
|
161
174
|
models.CalendarEvent,
|
|
175
|
+
| errors.ApiError
|
|
162
176
|
| ClientCasaError
|
|
163
177
|
| ResponseValidationError
|
|
164
178
|
| ConnectionError
|
|
@@ -169,9 +183,11 @@ async function $do(
|
|
|
169
183
|
| SDKValidationError
|
|
170
184
|
>(
|
|
171
185
|
M.json(201, models.CalendarEvent$inboundSchema),
|
|
186
|
+
M.jsonErr([400, 401, 403, 409, 429], errors.ApiError$inboundSchema),
|
|
187
|
+
M.jsonErr(500, errors.ApiError$inboundSchema),
|
|
172
188
|
M.fail("4XX"),
|
|
173
189
|
M.fail("5XX"),
|
|
174
|
-
)(response, req);
|
|
190
|
+
)(response, req, { extraFields: responseFields });
|
|
175
191
|
if (!result.ok) {
|
|
176
192
|
return [result, { status: "complete", request: req, response }];
|
|
177
193
|
}
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
RequestTimeoutError,
|
|
21
21
|
UnexpectedClientError,
|
|
22
22
|
} from "../models/errors/http-client-errors.js";
|
|
23
|
+
import * as errors from "../models/errors/index.js";
|
|
23
24
|
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
24
25
|
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
25
26
|
import * as operations from "../models/operations/index.js";
|
|
@@ -29,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
30
|
/**
|
|
30
31
|
* Delete a calendar event
|
|
31
32
|
*/
|
|
32
|
-
export function
|
|
33
|
+
export function calendarEventsDelete(
|
|
33
34
|
client: ClientCasaCore,
|
|
34
35
|
security: operations.DeleteCalendarEventSecurity,
|
|
35
36
|
request: operations.DeleteCalendarEventRequest,
|
|
@@ -37,6 +38,7 @@ export function calendarEventsDeleteCalendarEvent(
|
|
|
37
38
|
): APIPromise<
|
|
38
39
|
Result<
|
|
39
40
|
void,
|
|
41
|
+
| errors.ApiError
|
|
40
42
|
| ClientCasaError
|
|
41
43
|
| ResponseValidationError
|
|
42
44
|
| ConnectionError
|
|
@@ -64,6 +66,7 @@ async function $do(
|
|
|
64
66
|
[
|
|
65
67
|
Result<
|
|
66
68
|
void,
|
|
69
|
+
| errors.ApiError
|
|
67
70
|
| ClientCasaError
|
|
68
71
|
| ResponseValidationError
|
|
69
72
|
| ConnectionError
|
|
@@ -97,7 +100,7 @@ async function $do(
|
|
|
97
100
|
const path = pathToFunc("/api/v1/calendar-events/{id}")(pathParams);
|
|
98
101
|
|
|
99
102
|
const headers = new Headers(compactMap({
|
|
100
|
-
Accept: "
|
|
103
|
+
Accept: "application/json",
|
|
101
104
|
}));
|
|
102
105
|
|
|
103
106
|
const requestSecurity = resolveSecurity(
|
|
@@ -128,8 +131,18 @@ async function $do(
|
|
|
128
131
|
securitySource: security,
|
|
129
132
|
retryConfig: options?.retries
|
|
130
133
|
|| client._options.retryConfig
|
|
134
|
+
|| {
|
|
135
|
+
strategy: "backoff",
|
|
136
|
+
backoff: {
|
|
137
|
+
initialInterval: 500,
|
|
138
|
+
maxInterval: 30000,
|
|
139
|
+
exponent: 1.5,
|
|
140
|
+
maxElapsedTime: 30000,
|
|
141
|
+
},
|
|
142
|
+
retryConnectionErrors: true,
|
|
143
|
+
}
|
|
131
144
|
|| { strategy: "none" },
|
|
132
|
-
retryCodes: options?.retryCodes || ["429", "
|
|
145
|
+
retryCodes: options?.retryCodes || ["429", "5XX"],
|
|
133
146
|
};
|
|
134
147
|
|
|
135
148
|
const requestRes = client._createRequest(context, {
|
|
@@ -159,8 +172,13 @@ async function $do(
|
|
|
159
172
|
}
|
|
160
173
|
const response = doResult.value;
|
|
161
174
|
|
|
175
|
+
const responseFields = {
|
|
176
|
+
HttpMeta: { Response: response, Request: req },
|
|
177
|
+
};
|
|
178
|
+
|
|
162
179
|
const [result] = await M.match<
|
|
163
180
|
void,
|
|
181
|
+
| errors.ApiError
|
|
164
182
|
| ClientCasaError
|
|
165
183
|
| ResponseValidationError
|
|
166
184
|
| ConnectionError
|
|
@@ -171,9 +189,11 @@ async function $do(
|
|
|
171
189
|
| SDKValidationError
|
|
172
190
|
>(
|
|
173
191
|
M.nil(204, z.void()),
|
|
192
|
+
M.jsonErr([401, 403, 404, 429], errors.ApiError$inboundSchema),
|
|
193
|
+
M.jsonErr(500, errors.ApiError$inboundSchema),
|
|
174
194
|
M.fail("4XX"),
|
|
175
195
|
M.fail("5XX"),
|
|
176
|
-
)(response, req);
|
|
196
|
+
)(response, req, { extraFields: responseFields });
|
|
177
197
|
if (!result.ok) {
|
|
178
198
|
return [result, { status: "complete", request: req, response }];
|
|
179
199
|
}
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
RequestTimeoutError,
|
|
21
21
|
UnexpectedClientError,
|
|
22
22
|
} from "../models/errors/http-client-errors.js";
|
|
23
|
+
import * as errors from "../models/errors/index.js";
|
|
23
24
|
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
24
25
|
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
25
26
|
import * as models from "../models/index.js";
|
|
@@ -30,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
31
|
/**
|
|
31
32
|
* Get a calendar event
|
|
32
33
|
*/
|
|
33
|
-
export function
|
|
34
|
+
export function calendarEventsGet(
|
|
34
35
|
client: ClientCasaCore,
|
|
35
36
|
security: operations.GetCalendarEventSecurity,
|
|
36
37
|
request: operations.GetCalendarEventRequest,
|
|
@@ -38,6 +39,7 @@ export function calendarEventsGetCalendarEvent(
|
|
|
38
39
|
): APIPromise<
|
|
39
40
|
Result<
|
|
40
41
|
models.CalendarEvent,
|
|
42
|
+
| errors.ApiError
|
|
41
43
|
| ClientCasaError
|
|
42
44
|
| ResponseValidationError
|
|
43
45
|
| ConnectionError
|
|
@@ -65,6 +67,7 @@ async function $do(
|
|
|
65
67
|
[
|
|
66
68
|
Result<
|
|
67
69
|
models.CalendarEvent,
|
|
70
|
+
| errors.ApiError
|
|
68
71
|
| ClientCasaError
|
|
69
72
|
| ResponseValidationError
|
|
70
73
|
| ConnectionError
|
|
@@ -129,8 +132,18 @@ async function $do(
|
|
|
129
132
|
securitySource: security,
|
|
130
133
|
retryConfig: options?.retries
|
|
131
134
|
|| client._options.retryConfig
|
|
135
|
+
|| {
|
|
136
|
+
strategy: "backoff",
|
|
137
|
+
backoff: {
|
|
138
|
+
initialInterval: 500,
|
|
139
|
+
maxInterval: 30000,
|
|
140
|
+
exponent: 1.5,
|
|
141
|
+
maxElapsedTime: 30000,
|
|
142
|
+
},
|
|
143
|
+
retryConnectionErrors: true,
|
|
144
|
+
}
|
|
132
145
|
|| { strategy: "none" },
|
|
133
|
-
retryCodes: options?.retryCodes || ["429", "
|
|
146
|
+
retryCodes: options?.retryCodes || ["429", "5XX"],
|
|
134
147
|
};
|
|
135
148
|
|
|
136
149
|
const requestRes = client._createRequest(context, {
|
|
@@ -160,8 +173,13 @@ async function $do(
|
|
|
160
173
|
}
|
|
161
174
|
const response = doResult.value;
|
|
162
175
|
|
|
176
|
+
const responseFields = {
|
|
177
|
+
HttpMeta: { Response: response, Request: req },
|
|
178
|
+
};
|
|
179
|
+
|
|
163
180
|
const [result] = await M.match<
|
|
164
181
|
models.CalendarEvent,
|
|
182
|
+
| errors.ApiError
|
|
165
183
|
| ClientCasaError
|
|
166
184
|
| ResponseValidationError
|
|
167
185
|
| ConnectionError
|
|
@@ -172,9 +190,11 @@ async function $do(
|
|
|
172
190
|
| SDKValidationError
|
|
173
191
|
>(
|
|
174
192
|
M.json(200, models.CalendarEvent$inboundSchema),
|
|
193
|
+
M.jsonErr([401, 403, 404, 429], errors.ApiError$inboundSchema),
|
|
194
|
+
M.jsonErr(500, errors.ApiError$inboundSchema),
|
|
175
195
|
M.fail("4XX"),
|
|
176
196
|
M.fail("5XX"),
|
|
177
|
-
)(response, req);
|
|
197
|
+
)(response, req, { extraFields: responseFields });
|
|
178
198
|
if (!result.ok) {
|
|
179
199
|
return [result, { status: "complete", request: req, response }];
|
|
180
200
|
}
|