@clientcasa/sdk 0.1.2 → 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 +303 -232
- 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 +3 -3
- package/esm/lib/config.js +3 -3
- 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-create.d.ts +10 -0
- package/esm/models/catalog-item-create.d.ts.map +1 -1
- package/esm/models/catalog-item-create.js +8 -0
- package/esm/models/catalog-item-create.js.map +1 -1
- 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/catalog-item-update.d.ts +10 -0
- package/esm/models/catalog-item-update.d.ts.map +1 -1
- package/esm/models/catalog-item-update.js +8 -0
- package/esm/models/catalog-item-update.js.map +1 -1
- package/esm/models/catalog-item.d.ts +9 -0
- package/esm/models/catalog-item.d.ts.map +1 -1
- package/esm/models/catalog-item.js +8 -0
- package/esm/models/catalog-item.js.map +1 -1
- 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-create.d.ts +0 -2
- package/esm/models/time-entry-create.d.ts.map +1 -1
- package/esm/models/time-entry-create.js +0 -1
- package/esm/models/time-entry-create.js.map +1 -1
- 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/time-entry-update.d.ts +0 -2
- package/esm/models/time-entry-update.d.ts.map +1 -1
- package/esm/models/time-entry-update.js +0 -1
- package/esm/models/time-entry-update.js.map +1 -1
- package/esm/models/time-entry.d.ts +0 -1
- package/esm/models/time-entry.d.ts.map +1 -1
- package/esm/models/time-entry.js +0 -1
- package/esm/models/time-entry.js.map +1 -1
- 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/transaction.d.ts +1 -1
- package/esm/models/transaction.d.ts.map +1 -1
- package/esm/models/transaction.js +1 -1
- package/esm/models/transaction.js.map +1 -1
- 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/esm/types/async.d.ts.map +1 -1
- package/esm/types/async.js +6 -6
- package/esm/types/async.js.map +1 -1
- package/esm/types/primitives.d.ts +0 -2
- package/esm/types/primitives.d.ts.map +1 -1
- package/esm/types/primitives.js +0 -22
- package/esm/types/primitives.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 +3 -3
- package/src/models/api-error.ts +51 -0
- package/src/models/calendar-event-list.ts +40 -0
- package/src/models/catalog-item-create.ts +17 -0
- package/src/models/catalog-item-list.ts +37 -0
- package/src/models/catalog-item-update.ts +17 -0
- package/src/models/catalog-item.ts +15 -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-create.ts +0 -3
- package/src/models/time-entry-list.ts +37 -0
- package/src/models/time-entry-update.ts +0 -3
- package/src/models/time-entry.ts +0 -2
- package/src/models/transaction-list.ts +37 -0
- package/src/models/transaction.ts +2 -2
- 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/src/types/async.ts +8 -7
- package/src/types/primitives.ts +0 -26
- 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
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { ClientCasaCore } from "../core.js";
|
|
7
|
+
import { dlv } from "../lib/dlv.js";
|
|
7
8
|
import { encodeFormQuery } from "../lib/encodings.js";
|
|
8
9
|
import { matchStatusCode } from "../lib/http.js";
|
|
9
10
|
import * as M from "../lib/matchers.js";
|
|
@@ -20,31 +21,42 @@ import {
|
|
|
20
21
|
RequestTimeoutError,
|
|
21
22
|
UnexpectedClientError,
|
|
22
23
|
} from "../models/errors/http-client-errors.js";
|
|
24
|
+
import * as errors from "../models/errors/index.js";
|
|
23
25
|
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
24
26
|
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
25
27
|
import * as operations from "../models/operations/index.js";
|
|
26
28
|
import { APICall, APIPromise } from "../types/async.js";
|
|
27
29
|
import { Result } from "../types/fp.js";
|
|
30
|
+
import {
|
|
31
|
+
createPageIterator,
|
|
32
|
+
haltIterator,
|
|
33
|
+
PageIterator,
|
|
34
|
+
Paginator,
|
|
35
|
+
} from "../types/operations.js";
|
|
28
36
|
|
|
29
37
|
/**
|
|
30
38
|
* List milestones
|
|
31
39
|
*/
|
|
32
|
-
export function
|
|
40
|
+
export function milestonesList(
|
|
33
41
|
client: ClientCasaCore,
|
|
34
42
|
security: operations.ListMilestonesSecurity,
|
|
35
43
|
request?: operations.ListMilestonesRequest | undefined,
|
|
36
44
|
options?: RequestOptions,
|
|
37
45
|
): APIPromise<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
PageIterator<
|
|
47
|
+
Result<
|
|
48
|
+
operations.ListMilestonesResponse,
|
|
49
|
+
| errors.ApiError
|
|
50
|
+
| ClientCasaError
|
|
51
|
+
| ResponseValidationError
|
|
52
|
+
| ConnectionError
|
|
53
|
+
| RequestAbortedError
|
|
54
|
+
| RequestTimeoutError
|
|
55
|
+
| InvalidRequestError
|
|
56
|
+
| UnexpectedClientError
|
|
57
|
+
| SDKValidationError
|
|
58
|
+
>,
|
|
59
|
+
{ page: number }
|
|
48
60
|
>
|
|
49
61
|
> {
|
|
50
62
|
return new APIPromise($do(
|
|
@@ -62,16 +74,20 @@ async function $do(
|
|
|
62
74
|
options?: RequestOptions,
|
|
63
75
|
): Promise<
|
|
64
76
|
[
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
77
|
+
PageIterator<
|
|
78
|
+
Result<
|
|
79
|
+
operations.ListMilestonesResponse,
|
|
80
|
+
| errors.ApiError
|
|
81
|
+
| ClientCasaError
|
|
82
|
+
| ResponseValidationError
|
|
83
|
+
| ConnectionError
|
|
84
|
+
| RequestAbortedError
|
|
85
|
+
| RequestTimeoutError
|
|
86
|
+
| InvalidRequestError
|
|
87
|
+
| UnexpectedClientError
|
|
88
|
+
| SDKValidationError
|
|
89
|
+
>,
|
|
90
|
+
{ page: number }
|
|
75
91
|
>,
|
|
76
92
|
APICall,
|
|
77
93
|
]
|
|
@@ -86,7 +102,7 @@ async function $do(
|
|
|
86
102
|
"Input validation failed",
|
|
87
103
|
);
|
|
88
104
|
if (!parsed.ok) {
|
|
89
|
-
return [parsed, { status: "invalid" }];
|
|
105
|
+
return [haltIterator(parsed), { status: "invalid" }];
|
|
90
106
|
}
|
|
91
107
|
const payload = parsed.value;
|
|
92
108
|
const body = null;
|
|
@@ -133,8 +149,18 @@ async function $do(
|
|
|
133
149
|
securitySource: security,
|
|
134
150
|
retryConfig: options?.retries
|
|
135
151
|
|| client._options.retryConfig
|
|
152
|
+
|| {
|
|
153
|
+
strategy: "backoff",
|
|
154
|
+
backoff: {
|
|
155
|
+
initialInterval: 500,
|
|
156
|
+
maxInterval: 30000,
|
|
157
|
+
exponent: 1.5,
|
|
158
|
+
maxElapsedTime: 30000,
|
|
159
|
+
},
|
|
160
|
+
retryConnectionErrors: true,
|
|
161
|
+
}
|
|
136
162
|
|| { strategy: "none" },
|
|
137
|
-
retryCodes: options?.retryCodes || ["429", "
|
|
163
|
+
retryCodes: options?.retryCodes || ["429", "5XX"],
|
|
138
164
|
};
|
|
139
165
|
|
|
140
166
|
const requestRes = client._createRequest(context, {
|
|
@@ -149,7 +175,7 @@ async function $do(
|
|
|
149
175
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
150
176
|
}, options);
|
|
151
177
|
if (!requestRes.ok) {
|
|
152
|
-
return [requestRes, { status: "invalid" }];
|
|
178
|
+
return [haltIterator(requestRes), { status: "invalid" }];
|
|
153
179
|
}
|
|
154
180
|
const req = requestRes.value;
|
|
155
181
|
|
|
@@ -161,12 +187,17 @@ async function $do(
|
|
|
161
187
|
retryCodes: context.retryCodes,
|
|
162
188
|
});
|
|
163
189
|
if (!doResult.ok) {
|
|
164
|
-
return [doResult, { status: "request-error", request: req }];
|
|
190
|
+
return [haltIterator(doResult), { status: "request-error", request: req }];
|
|
165
191
|
}
|
|
166
192
|
const response = doResult.value;
|
|
167
193
|
|
|
168
|
-
const
|
|
194
|
+
const responseFields = {
|
|
195
|
+
HttpMeta: { Response: response, Request: req },
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
const [result, raw] = await M.match<
|
|
169
199
|
operations.ListMilestonesResponse,
|
|
200
|
+
| errors.ApiError
|
|
170
201
|
| ClientCasaError
|
|
171
202
|
| ResponseValidationError
|
|
172
203
|
| ConnectionError
|
|
@@ -176,13 +207,74 @@ async function $do(
|
|
|
176
207
|
| UnexpectedClientError
|
|
177
208
|
| SDKValidationError
|
|
178
209
|
>(
|
|
179
|
-
M.json(200, operations.ListMilestonesResponse$inboundSchema
|
|
210
|
+
M.json(200, operations.ListMilestonesResponse$inboundSchema, {
|
|
211
|
+
key: "Result",
|
|
212
|
+
}),
|
|
213
|
+
M.jsonErr([400, 401, 403, 429], errors.ApiError$inboundSchema),
|
|
214
|
+
M.jsonErr(500, errors.ApiError$inboundSchema),
|
|
180
215
|
M.fail("4XX"),
|
|
181
216
|
M.fail("5XX"),
|
|
182
|
-
)(response, req);
|
|
217
|
+
)(response, req, { extraFields: responseFields });
|
|
183
218
|
if (!result.ok) {
|
|
184
|
-
return [result, {
|
|
219
|
+
return [haltIterator(result), {
|
|
220
|
+
status: "complete",
|
|
221
|
+
request: req,
|
|
222
|
+
response,
|
|
223
|
+
}];
|
|
185
224
|
}
|
|
186
225
|
|
|
187
|
-
|
|
226
|
+
const nextFunc = (
|
|
227
|
+
responseData: unknown,
|
|
228
|
+
): {
|
|
229
|
+
next: Paginator<
|
|
230
|
+
Result<
|
|
231
|
+
operations.ListMilestonesResponse,
|
|
232
|
+
| errors.ApiError
|
|
233
|
+
| ClientCasaError
|
|
234
|
+
| ResponseValidationError
|
|
235
|
+
| ConnectionError
|
|
236
|
+
| RequestAbortedError
|
|
237
|
+
| RequestTimeoutError
|
|
238
|
+
| InvalidRequestError
|
|
239
|
+
| UnexpectedClientError
|
|
240
|
+
| SDKValidationError
|
|
241
|
+
>
|
|
242
|
+
>;
|
|
243
|
+
"~next"?: { page: number };
|
|
244
|
+
} => {
|
|
245
|
+
const page = request?.page ?? 1;
|
|
246
|
+
const nextPage = page + 1;
|
|
247
|
+
|
|
248
|
+
if (!responseData) {
|
|
249
|
+
return { next: () => null };
|
|
250
|
+
}
|
|
251
|
+
const results = dlv(responseData, "data");
|
|
252
|
+
if (!Array.isArray(results) || !results.length) {
|
|
253
|
+
return { next: () => null };
|
|
254
|
+
}
|
|
255
|
+
const limit = request?.pageSize ?? 25;
|
|
256
|
+
if (results.length < limit) {
|
|
257
|
+
return { next: () => null };
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
const nextVal = () =>
|
|
261
|
+
milestonesList(
|
|
262
|
+
client,
|
|
263
|
+
security,
|
|
264
|
+
{
|
|
265
|
+
...request!,
|
|
266
|
+
page: nextPage,
|
|
267
|
+
},
|
|
268
|
+
options,
|
|
269
|
+
);
|
|
270
|
+
|
|
271
|
+
return { next: nextVal, "~next": { page: nextPage } };
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
const page = { ...result, ...nextFunc(raw) };
|
|
275
|
+
return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, {
|
|
276
|
+
status: "complete",
|
|
277
|
+
request: req,
|
|
278
|
+
response,
|
|
279
|
+
}];
|
|
188
280
|
}
|
|
@@ -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
|
* Update a milestone
|
|
32
33
|
*/
|
|
33
|
-
export function
|
|
34
|
+
export function milestonesUpdate(
|
|
34
35
|
client: ClientCasaCore,
|
|
35
36
|
security: operations.UpdateMilestoneSecurity,
|
|
36
37
|
request: operations.UpdateMilestoneRequest,
|
|
@@ -38,6 +39,7 @@ export function milestonesUpdateMilestone(
|
|
|
38
39
|
): APIPromise<
|
|
39
40
|
Result<
|
|
40
41
|
models.Milestone,
|
|
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.Milestone,
|
|
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.Milestone,
|
|
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.Milestone$inboundSchema),
|
|
193
|
+
M.jsonErr([400, 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
|
}
|
|
@@ -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
|
* Records a manually-collected payment (check, bank transfer, cash, etc.). Stripe payments are recorded automatically via webhooks and cannot be created here. Payments are immutable after creation except for `reference` and `notes`. To reverse a payment, record a refund (kind=refund, negative amount, refundOfId pointing at the original).
|
|
35
36
|
*/
|
|
36
|
-
export function
|
|
37
|
+
export function paymentsCreate(
|
|
37
38
|
client: ClientCasaCore,
|
|
38
39
|
security: operations.CreatePaymentSecurity,
|
|
39
|
-
request:
|
|
40
|
+
request: operations.CreatePaymentRequest,
|
|
40
41
|
options?: RequestOptions,
|
|
41
42
|
): APIPromise<
|
|
42
43
|
Result<
|
|
43
44
|
models.Payment,
|
|
45
|
+
| errors.ApiError
|
|
44
46
|
| ClientCasaError
|
|
45
47
|
| ResponseValidationError
|
|
46
48
|
| ConnectionError
|
|
@@ -62,12 +64,13 @@ export function paymentsCreatePayment(
|
|
|
62
64
|
async function $do(
|
|
63
65
|
client: ClientCasaCore,
|
|
64
66
|
security: operations.CreatePaymentSecurity,
|
|
65
|
-
request:
|
|
67
|
+
request: operations.CreatePaymentRequest,
|
|
66
68
|
options?: RequestOptions,
|
|
67
69
|
): Promise<
|
|
68
70
|
[
|
|
69
71
|
Result<
|
|
70
72
|
models.Payment,
|
|
73
|
+
| errors.ApiError
|
|
71
74
|
| ClientCasaError
|
|
72
75
|
| ResponseValidationError
|
|
73
76
|
| ConnectionError
|
|
@@ -82,20 +85,25 @@ async function $do(
|
|
|
82
85
|
> {
|
|
83
86
|
const parsed = safeParse(
|
|
84
87
|
request,
|
|
85
|
-
(value) => z.parse(
|
|
88
|
+
(value) => z.parse(operations.CreatePaymentRequest$outboundSchema, value),
|
|
86
89
|
"Input validation failed",
|
|
87
90
|
);
|
|
88
91
|
if (!parsed.ok) {
|
|
89
92
|
return [parsed, { status: "invalid" }];
|
|
90
93
|
}
|
|
91
94
|
const payload = parsed.value;
|
|
92
|
-
const body = encodeJSON("body", payload, { explode: true });
|
|
95
|
+
const body = encodeJSON("body", payload.body, { explode: true });
|
|
93
96
|
|
|
94
97
|
const path = pathToFunc("/api/v1/payments")();
|
|
95
98
|
|
|
96
99
|
const headers = new Headers(compactMap({
|
|
97
100
|
"Content-Type": "application/json",
|
|
98
101
|
Accept: "application/json",
|
|
102
|
+
"Idempotency-Key": encodeSimple(
|
|
103
|
+
"Idempotency-Key",
|
|
104
|
+
payload["Idempotency-Key"],
|
|
105
|
+
{ explode: false, charEncoding: "none" },
|
|
106
|
+
),
|
|
99
107
|
}));
|
|
100
108
|
|
|
101
109
|
const requestSecurity = resolveSecurity(
|
|
@@ -157,8 +165,13 @@ async function $do(
|
|
|
157
165
|
}
|
|
158
166
|
const response = doResult.value;
|
|
159
167
|
|
|
168
|
+
const responseFields = {
|
|
169
|
+
HttpMeta: { Response: response, Request: req },
|
|
170
|
+
};
|
|
171
|
+
|
|
160
172
|
const [result] = await M.match<
|
|
161
173
|
models.Payment,
|
|
174
|
+
| errors.ApiError
|
|
162
175
|
| ClientCasaError
|
|
163
176
|
| ResponseValidationError
|
|
164
177
|
| ConnectionError
|
|
@@ -169,9 +182,11 @@ async function $do(
|
|
|
169
182
|
| SDKValidationError
|
|
170
183
|
>(
|
|
171
184
|
M.json(201, models.Payment$inboundSchema),
|
|
185
|
+
M.jsonErr([400, 401, 403, 409, 429], errors.ApiError$inboundSchema),
|
|
186
|
+
M.jsonErr(500, errors.ApiError$inboundSchema),
|
|
172
187
|
M.fail("4XX"),
|
|
173
188
|
M.fail("5XX"),
|
|
174
|
-
)(response, req);
|
|
189
|
+
)(response, req, { extraFields: responseFields });
|
|
175
190
|
if (!result.ok) {
|
|
176
191
|
return [result, { status: "complete", request: req, response }];
|
|
177
192
|
}
|
|
@@ -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 payment
|
|
32
33
|
*/
|
|
33
|
-
export function
|
|
34
|
+
export function paymentsGet(
|
|
34
35
|
client: ClientCasaCore,
|
|
35
36
|
security: operations.GetPaymentSecurity,
|
|
36
37
|
request: operations.GetPaymentRequest,
|
|
@@ -38,6 +39,7 @@ export function paymentsGetPayment(
|
|
|
38
39
|
): APIPromise<
|
|
39
40
|
Result<
|
|
40
41
|
models.Payment,
|
|
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.Payment,
|
|
70
|
+
| errors.ApiError
|
|
68
71
|
| ClientCasaError
|
|
69
72
|
| ResponseValidationError
|
|
70
73
|
| ConnectionError
|
|
@@ -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
|
models.Payment,
|
|
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.json(200, models.Payment$inboundSchema),
|
|
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
|
}
|