@clientcasa/sdk 0.1.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 +87 -0
- package/LICENSE +21 -0
- package/README.md +739 -0
- package/RUNTIMES.md +48 -0
- package/esm/core.d.ts +10 -0
- package/esm/core.d.ts.map +1 -0
- package/esm/core.js +13 -0
- package/esm/core.js.map +1 -0
- package/esm/funcs/calendar-events-create-calendar-event.d.ts +18 -0
- package/esm/funcs/calendar-events-create-calendar-event.d.ts.map +1 -0
- package/esm/funcs/calendar-events-create-calendar-event.js +90 -0
- package/esm/funcs/calendar-events-create-calendar-event.js.map +1 -0
- package/esm/funcs/calendar-events-delete-calendar-event.d.ts +14 -0
- package/esm/funcs/calendar-events-delete-calendar-event.d.ts.map +1 -0
- package/esm/funcs/calendar-events-delete-calendar-event.js +92 -0
- package/esm/funcs/calendar-events-delete-calendar-event.js.map +1 -0
- package/esm/funcs/calendar-events-get-calendar-event.d.ts +15 -0
- package/esm/funcs/calendar-events-get-calendar-event.d.ts.map +1 -0
- package/esm/funcs/calendar-events-get-calendar-event.js +93 -0
- package/esm/funcs/calendar-events-get-calendar-event.js.map +1 -0
- package/esm/funcs/calendar-events-list-calendar-events.d.ts +14 -0
- package/esm/funcs/calendar-events-list-calendar-events.d.ts.map +1 -0
- package/esm/funcs/calendar-events-list-calendar-events.js +95 -0
- package/esm/funcs/calendar-events-list-calendar-events.js.map +1 -0
- package/esm/funcs/calendar-events-update-calendar-event.d.ts +18 -0
- package/esm/funcs/calendar-events-update-calendar-event.d.ts.map +1 -0
- package/esm/funcs/calendar-events-update-calendar-event.js +97 -0
- package/esm/funcs/calendar-events-update-calendar-event.js.map +1 -0
- package/esm/funcs/catalog-items-create-catalog-item.d.ts +18 -0
- package/esm/funcs/catalog-items-create-catalog-item.d.ts.map +1 -0
- package/esm/funcs/catalog-items-create-catalog-item.js +90 -0
- package/esm/funcs/catalog-items-create-catalog-item.js.map +1 -0
- package/esm/funcs/catalog-items-delete-catalog-item.d.ts +14 -0
- package/esm/funcs/catalog-items-delete-catalog-item.d.ts.map +1 -0
- package/esm/funcs/catalog-items-delete-catalog-item.js +92 -0
- package/esm/funcs/catalog-items-delete-catalog-item.js.map +1 -0
- package/esm/funcs/catalog-items-get-catalog-item.d.ts +15 -0
- package/esm/funcs/catalog-items-get-catalog-item.d.ts.map +1 -0
- package/esm/funcs/catalog-items-get-catalog-item.js +93 -0
- package/esm/funcs/catalog-items-get-catalog-item.js.map +1 -0
- package/esm/funcs/catalog-items-list-catalog-items.d.ts +14 -0
- package/esm/funcs/catalog-items-list-catalog-items.d.ts.map +1 -0
- package/esm/funcs/catalog-items-list-catalog-items.js +94 -0
- package/esm/funcs/catalog-items-list-catalog-items.js.map +1 -0
- package/esm/funcs/catalog-items-update-catalog-item.d.ts +15 -0
- package/esm/funcs/catalog-items-update-catalog-item.d.ts.map +1 -0
- package/esm/funcs/catalog-items-update-catalog-item.js +94 -0
- package/esm/funcs/catalog-items-update-catalog-item.js.map +1 -0
- package/esm/funcs/clients-create-client.d.ts +15 -0
- package/esm/funcs/clients-create-client.d.ts.map +1 -0
- package/esm/funcs/clients-create-client.js +87 -0
- package/esm/funcs/clients-create-client.js.map +1 -0
- package/esm/funcs/clients-delete-client.d.ts +14 -0
- package/esm/funcs/clients-delete-client.d.ts.map +1 -0
- package/esm/funcs/clients-delete-client.js +92 -0
- package/esm/funcs/clients-delete-client.js.map +1 -0
- package/esm/funcs/clients-get-client.d.ts +15 -0
- package/esm/funcs/clients-get-client.d.ts.map +1 -0
- package/esm/funcs/clients-get-client.js +93 -0
- package/esm/funcs/clients-get-client.js.map +1 -0
- package/esm/funcs/clients-list-clients.d.ts +14 -0
- package/esm/funcs/clients-list-clients.d.ts.map +1 -0
- package/esm/funcs/clients-list-clients.js +92 -0
- package/esm/funcs/clients-list-clients.js.map +1 -0
- package/esm/funcs/clients-update-client.d.ts +15 -0
- package/esm/funcs/clients-update-client.d.ts.map +1 -0
- package/esm/funcs/clients-update-client.js +94 -0
- package/esm/funcs/clients-update-client.js.map +1 -0
- package/esm/funcs/contacts-create-contact.d.ts +15 -0
- package/esm/funcs/contacts-create-contact.d.ts.map +1 -0
- package/esm/funcs/contacts-create-contact.js +87 -0
- package/esm/funcs/contacts-create-contact.js.map +1 -0
- package/esm/funcs/contacts-delete-contact.d.ts +14 -0
- package/esm/funcs/contacts-delete-contact.d.ts.map +1 -0
- package/esm/funcs/contacts-delete-contact.js +92 -0
- package/esm/funcs/contacts-delete-contact.js.map +1 -0
- package/esm/funcs/contacts-get-contact.d.ts +15 -0
- package/esm/funcs/contacts-get-contact.d.ts.map +1 -0
- package/esm/funcs/contacts-get-contact.js +93 -0
- package/esm/funcs/contacts-get-contact.js.map +1 -0
- package/esm/funcs/contacts-list-contacts.d.ts +14 -0
- package/esm/funcs/contacts-list-contacts.d.ts.map +1 -0
- package/esm/funcs/contacts-list-contacts.js +93 -0
- package/esm/funcs/contacts-list-contacts.js.map +1 -0
- package/esm/funcs/contacts-update-contact.d.ts +15 -0
- package/esm/funcs/contacts-update-contact.d.ts.map +1 -0
- package/esm/funcs/contacts-update-contact.js +94 -0
- package/esm/funcs/contacts-update-contact.js.map +1 -0
- package/esm/funcs/contracts-create-contract.d.ts +18 -0
- package/esm/funcs/contracts-create-contract.d.ts.map +1 -0
- package/esm/funcs/contracts-create-contract.js +90 -0
- package/esm/funcs/contracts-create-contract.js.map +1 -0
- package/esm/funcs/contracts-delete-contract.d.ts +14 -0
- package/esm/funcs/contracts-delete-contract.d.ts.map +1 -0
- package/esm/funcs/contracts-delete-contract.js +92 -0
- package/esm/funcs/contracts-delete-contract.js.map +1 -0
- package/esm/funcs/contracts-get-contract.d.ts +15 -0
- package/esm/funcs/contracts-get-contract.d.ts.map +1 -0
- package/esm/funcs/contracts-get-contract.js +93 -0
- package/esm/funcs/contracts-get-contract.js.map +1 -0
- package/esm/funcs/contracts-list-contracts.d.ts +14 -0
- package/esm/funcs/contracts-list-contracts.d.ts.map +1 -0
- package/esm/funcs/contracts-list-contracts.js +93 -0
- package/esm/funcs/contracts-list-contracts.js.map +1 -0
- package/esm/funcs/contracts-update-contract.d.ts +18 -0
- package/esm/funcs/contracts-update-contract.d.ts.map +1 -0
- package/esm/funcs/contracts-update-contract.js +97 -0
- package/esm/funcs/contracts-update-contract.js.map +1 -0
- package/esm/funcs/inquiries-create-inquiry.d.ts +18 -0
- package/esm/funcs/inquiries-create-inquiry.d.ts.map +1 -0
- package/esm/funcs/inquiries-create-inquiry.js +90 -0
- package/esm/funcs/inquiries-create-inquiry.js.map +1 -0
- package/esm/funcs/inquiries-delete-inquiry.d.ts +14 -0
- package/esm/funcs/inquiries-delete-inquiry.d.ts.map +1 -0
- package/esm/funcs/inquiries-delete-inquiry.js +92 -0
- package/esm/funcs/inquiries-delete-inquiry.js.map +1 -0
- package/esm/funcs/inquiries-get-inquiry.d.ts +15 -0
- package/esm/funcs/inquiries-get-inquiry.d.ts.map +1 -0
- package/esm/funcs/inquiries-get-inquiry.js +93 -0
- package/esm/funcs/inquiries-get-inquiry.js.map +1 -0
- package/esm/funcs/inquiries-list-inquiries.d.ts +14 -0
- package/esm/funcs/inquiries-list-inquiries.d.ts.map +1 -0
- package/esm/funcs/inquiries-list-inquiries.js +93 -0
- package/esm/funcs/inquiries-list-inquiries.js.map +1 -0
- package/esm/funcs/inquiries-update-inquiry.d.ts +18 -0
- package/esm/funcs/inquiries-update-inquiry.d.ts.map +1 -0
- package/esm/funcs/inquiries-update-inquiry.js +97 -0
- package/esm/funcs/inquiries-update-inquiry.js.map +1 -0
- package/esm/funcs/invoices-create-invoice.d.ts +18 -0
- package/esm/funcs/invoices-create-invoice.d.ts.map +1 -0
- package/esm/funcs/invoices-create-invoice.js +90 -0
- package/esm/funcs/invoices-create-invoice.js.map +1 -0
- package/esm/funcs/invoices-delete-invoice.d.ts +14 -0
- package/esm/funcs/invoices-delete-invoice.d.ts.map +1 -0
- package/esm/funcs/invoices-delete-invoice.js +92 -0
- package/esm/funcs/invoices-delete-invoice.js.map +1 -0
- package/esm/funcs/invoices-get-invoice.d.ts +15 -0
- package/esm/funcs/invoices-get-invoice.d.ts.map +1 -0
- package/esm/funcs/invoices-get-invoice.js +93 -0
- package/esm/funcs/invoices-get-invoice.js.map +1 -0
- package/esm/funcs/invoices-list-invoices.d.ts +14 -0
- package/esm/funcs/invoices-list-invoices.d.ts.map +1 -0
- package/esm/funcs/invoices-list-invoices.js +93 -0
- package/esm/funcs/invoices-list-invoices.js.map +1 -0
- package/esm/funcs/invoices-update-invoice.d.ts +15 -0
- package/esm/funcs/invoices-update-invoice.d.ts.map +1 -0
- package/esm/funcs/invoices-update-invoice.js +94 -0
- package/esm/funcs/invoices-update-invoice.js.map +1 -0
- package/esm/funcs/milestones-create-milestone.d.ts +18 -0
- package/esm/funcs/milestones-create-milestone.d.ts.map +1 -0
- package/esm/funcs/milestones-create-milestone.js +90 -0
- package/esm/funcs/milestones-create-milestone.js.map +1 -0
- package/esm/funcs/milestones-delete-milestone.d.ts +14 -0
- package/esm/funcs/milestones-delete-milestone.d.ts.map +1 -0
- package/esm/funcs/milestones-delete-milestone.js +92 -0
- package/esm/funcs/milestones-delete-milestone.js.map +1 -0
- package/esm/funcs/milestones-get-milestone.d.ts +15 -0
- package/esm/funcs/milestones-get-milestone.d.ts.map +1 -0
- package/esm/funcs/milestones-get-milestone.js +93 -0
- package/esm/funcs/milestones-get-milestone.js.map +1 -0
- package/esm/funcs/milestones-list-milestones.d.ts +14 -0
- package/esm/funcs/milestones-list-milestones.d.ts.map +1 -0
- package/esm/funcs/milestones-list-milestones.js +94 -0
- package/esm/funcs/milestones-list-milestones.js.map +1 -0
- package/esm/funcs/milestones-update-milestone.d.ts +15 -0
- package/esm/funcs/milestones-update-milestone.d.ts.map +1 -0
- package/esm/funcs/milestones-update-milestone.js +94 -0
- package/esm/funcs/milestones-update-milestone.js.map +1 -0
- package/esm/funcs/payments-create-payment.d.ts +18 -0
- package/esm/funcs/payments-create-payment.d.ts.map +1 -0
- package/esm/funcs/payments-create-payment.js +90 -0
- package/esm/funcs/payments-create-payment.js.map +1 -0
- package/esm/funcs/payments-get-payment.d.ts +15 -0
- package/esm/funcs/payments-get-payment.d.ts.map +1 -0
- package/esm/funcs/payments-get-payment.js +93 -0
- package/esm/funcs/payments-get-payment.js.map +1 -0
- package/esm/funcs/payments-list-payments.d.ts +14 -0
- package/esm/funcs/payments-list-payments.d.ts.map +1 -0
- package/esm/funcs/payments-list-payments.js +95 -0
- package/esm/funcs/payments-list-payments.js.map +1 -0
- package/esm/funcs/payments-update-payment.d.ts +15 -0
- package/esm/funcs/payments-update-payment.d.ts.map +1 -0
- package/esm/funcs/payments-update-payment.js +94 -0
- package/esm/funcs/payments-update-payment.js.map +1 -0
- package/esm/funcs/payouts-get-payout.d.ts +15 -0
- package/esm/funcs/payouts-get-payout.d.ts.map +1 -0
- package/esm/funcs/payouts-get-payout.js +93 -0
- package/esm/funcs/payouts-get-payout.js.map +1 -0
- package/esm/funcs/payouts-list-payouts.d.ts +14 -0
- package/esm/funcs/payouts-list-payouts.d.ts.map +1 -0
- package/esm/funcs/payouts-list-payouts.js +94 -0
- package/esm/funcs/payouts-list-payouts.js.map +1 -0
- package/esm/funcs/projects-create-project.d.ts +15 -0
- package/esm/funcs/projects-create-project.d.ts.map +1 -0
- package/esm/funcs/projects-create-project.js +87 -0
- package/esm/funcs/projects-create-project.js.map +1 -0
- package/esm/funcs/projects-delete-project.d.ts +14 -0
- package/esm/funcs/projects-delete-project.d.ts.map +1 -0
- package/esm/funcs/projects-delete-project.js +92 -0
- package/esm/funcs/projects-delete-project.js.map +1 -0
- package/esm/funcs/projects-get-project.d.ts +15 -0
- package/esm/funcs/projects-get-project.d.ts.map +1 -0
- package/esm/funcs/projects-get-project.js +93 -0
- package/esm/funcs/projects-get-project.js.map +1 -0
- package/esm/funcs/projects-list-projects.d.ts +14 -0
- package/esm/funcs/projects-list-projects.d.ts.map +1 -0
- package/esm/funcs/projects-list-projects.js +93 -0
- package/esm/funcs/projects-list-projects.js.map +1 -0
- package/esm/funcs/projects-update-project.d.ts +15 -0
- package/esm/funcs/projects-update-project.d.ts.map +1 -0
- package/esm/funcs/projects-update-project.js +94 -0
- package/esm/funcs/projects-update-project.js.map +1 -0
- package/esm/funcs/proposals-create-proposal.d.ts +18 -0
- package/esm/funcs/proposals-create-proposal.d.ts.map +1 -0
- package/esm/funcs/proposals-create-proposal.js +90 -0
- package/esm/funcs/proposals-create-proposal.js.map +1 -0
- package/esm/funcs/proposals-delete-proposal.d.ts +14 -0
- package/esm/funcs/proposals-delete-proposal.d.ts.map +1 -0
- package/esm/funcs/proposals-delete-proposal.js +92 -0
- package/esm/funcs/proposals-delete-proposal.js.map +1 -0
- package/esm/funcs/proposals-get-proposal.d.ts +15 -0
- package/esm/funcs/proposals-get-proposal.d.ts.map +1 -0
- package/esm/funcs/proposals-get-proposal.js +93 -0
- package/esm/funcs/proposals-get-proposal.js.map +1 -0
- package/esm/funcs/proposals-list-proposals.d.ts +14 -0
- package/esm/funcs/proposals-list-proposals.d.ts.map +1 -0
- package/esm/funcs/proposals-list-proposals.js +94 -0
- package/esm/funcs/proposals-list-proposals.js.map +1 -0
- package/esm/funcs/proposals-update-proposal.d.ts +18 -0
- package/esm/funcs/proposals-update-proposal.d.ts.map +1 -0
- package/esm/funcs/proposals-update-proposal.js +97 -0
- package/esm/funcs/proposals-update-proposal.js.map +1 -0
- package/esm/funcs/time-entries-create-time-entry.d.ts +15 -0
- package/esm/funcs/time-entries-create-time-entry.d.ts.map +1 -0
- package/esm/funcs/time-entries-create-time-entry.js +87 -0
- package/esm/funcs/time-entries-create-time-entry.js.map +1 -0
- package/esm/funcs/time-entries-delete-time-entry.d.ts +17 -0
- package/esm/funcs/time-entries-delete-time-entry.d.ts.map +1 -0
- package/esm/funcs/time-entries-delete-time-entry.js +95 -0
- package/esm/funcs/time-entries-delete-time-entry.js.map +1 -0
- package/esm/funcs/time-entries-get-time-entry.d.ts +15 -0
- package/esm/funcs/time-entries-get-time-entry.d.ts.map +1 -0
- package/esm/funcs/time-entries-get-time-entry.js +93 -0
- package/esm/funcs/time-entries-get-time-entry.js.map +1 -0
- package/esm/funcs/time-entries-list-time-entries.d.ts +14 -0
- package/esm/funcs/time-entries-list-time-entries.d.ts.map +1 -0
- package/esm/funcs/time-entries-list-time-entries.js +97 -0
- package/esm/funcs/time-entries-list-time-entries.js.map +1 -0
- package/esm/funcs/time-entries-update-time-entry.d.ts +18 -0
- package/esm/funcs/time-entries-update-time-entry.d.ts.map +1 -0
- package/esm/funcs/time-entries-update-time-entry.js +97 -0
- package/esm/funcs/time-entries-update-time-entry.js.map +1 -0
- package/esm/funcs/transactions-create-transaction.d.ts +15 -0
- package/esm/funcs/transactions-create-transaction.d.ts.map +1 -0
- package/esm/funcs/transactions-create-transaction.js +87 -0
- package/esm/funcs/transactions-create-transaction.js.map +1 -0
- package/esm/funcs/transactions-delete-transaction.d.ts +17 -0
- package/esm/funcs/transactions-delete-transaction.d.ts.map +1 -0
- package/esm/funcs/transactions-delete-transaction.js +95 -0
- package/esm/funcs/transactions-delete-transaction.js.map +1 -0
- package/esm/funcs/transactions-get-transaction.d.ts +15 -0
- package/esm/funcs/transactions-get-transaction.d.ts.map +1 -0
- package/esm/funcs/transactions-get-transaction.js +93 -0
- package/esm/funcs/transactions-get-transaction.js.map +1 -0
- package/esm/funcs/transactions-list-transactions.d.ts +14 -0
- package/esm/funcs/transactions-list-transactions.d.ts.map +1 -0
- package/esm/funcs/transactions-list-transactions.js +94 -0
- package/esm/funcs/transactions-list-transactions.js.map +1 -0
- package/esm/funcs/transactions-update-transaction.d.ts +18 -0
- package/esm/funcs/transactions-update-transaction.d.ts.map +1 -0
- package/esm/funcs/transactions-update-transaction.js +97 -0
- package/esm/funcs/transactions-update-transaction.js.map +1 -0
- package/esm/funcs/webhooks-create-webhook.d.ts +18 -0
- package/esm/funcs/webhooks-create-webhook.d.ts.map +1 -0
- package/esm/funcs/webhooks-create-webhook.js +90 -0
- package/esm/funcs/webhooks-create-webhook.js.map +1 -0
- package/esm/funcs/webhooks-delete-webhook.d.ts +14 -0
- package/esm/funcs/webhooks-delete-webhook.d.ts.map +1 -0
- package/esm/funcs/webhooks-delete-webhook.js +92 -0
- package/esm/funcs/webhooks-delete-webhook.js.map +1 -0
- package/esm/funcs/webhooks-get-webhook.d.ts +15 -0
- package/esm/funcs/webhooks-get-webhook.d.ts.map +1 -0
- package/esm/funcs/webhooks-get-webhook.js +93 -0
- package/esm/funcs/webhooks-get-webhook.js.map +1 -0
- package/esm/funcs/webhooks-list-webhooks.d.ts +14 -0
- package/esm/funcs/webhooks-list-webhooks.d.ts.map +1 -0
- package/esm/funcs/webhooks-list-webhooks.js +93 -0
- package/esm/funcs/webhooks-list-webhooks.js.map +1 -0
- package/esm/funcs/webhooks-update-webhook.d.ts +18 -0
- package/esm/funcs/webhooks-update-webhook.d.ts.map +1 -0
- package/esm/funcs/webhooks-update-webhook.js +97 -0
- package/esm/funcs/webhooks-update-webhook.js.map +1 -0
- package/esm/hooks/hooks.d.ts +25 -0
- package/esm/hooks/hooks.d.ts.map +1 -0
- package/esm/hooks/hooks.js +80 -0
- package/esm/hooks/hooks.js.map +1 -0
- package/esm/hooks/index.d.ts +3 -0
- package/esm/hooks/index.d.ts.map +1 -0
- package/esm/hooks/index.js +6 -0
- package/esm/hooks/index.js.map +1 -0
- package/esm/hooks/types.d.ts +76 -0
- package/esm/hooks/types.d.ts.map +1 -0
- package/esm/hooks/types.js +5 -0
- package/esm/hooks/types.js.map +1 -0
- package/esm/index.d.ts +6 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +8 -0
- package/esm/index.js.map +1 -0
- package/esm/lib/base64.d.ts +10 -0
- package/esm/lib/base64.d.ts.map +1 -0
- package/esm/lib/base64.js +31 -0
- package/esm/lib/base64.js.map +1 -0
- package/esm/lib/config.d.ts +38 -0
- package/esm/lib/config.d.ts.map +1 -0
- package/esm/lib/config.js +34 -0
- package/esm/lib/config.js.map +1 -0
- package/esm/lib/dlv.d.ts +14 -0
- package/esm/lib/dlv.d.ts.map +1 -0
- package/esm/lib/dlv.js +46 -0
- package/esm/lib/dlv.js.map +1 -0
- package/esm/lib/encodings.d.ts +54 -0
- package/esm/lib/encodings.d.ts.map +1 -0
- package/esm/lib/encodings.js +391 -0
- package/esm/lib/encodings.js.map +1 -0
- package/esm/lib/env.d.ts +15 -0
- package/esm/lib/env.d.ts.map +1 -0
- package/esm/lib/env.js +44 -0
- package/esm/lib/env.js.map +1 -0
- package/esm/lib/files.d.ts +26 -0
- package/esm/lib/files.d.ts.map +1 -0
- package/esm/lib/files.js +91 -0
- package/esm/lib/files.js.map +1 -0
- package/esm/lib/http.d.ts +67 -0
- package/esm/lib/http.d.ts.map +1 -0
- package/esm/lib/http.js +209 -0
- package/esm/lib/http.js.map +1 -0
- package/esm/lib/is-plain-object.d.ts +2 -0
- package/esm/lib/is-plain-object.d.ts.map +1 -0
- package/esm/lib/is-plain-object.js +38 -0
- package/esm/lib/is-plain-object.js.map +1 -0
- package/esm/lib/logger.d.ts +6 -0
- package/esm/lib/logger.d.ts.map +1 -0
- package/esm/lib/logger.js +5 -0
- package/esm/lib/logger.js.map +1 -0
- package/esm/lib/matchers.d.ts +59 -0
- package/esm/lib/matchers.d.ts.map +1 -0
- package/esm/lib/matchers.js +202 -0
- package/esm/lib/matchers.js.map +1 -0
- package/esm/lib/primitives.d.ts +26 -0
- package/esm/lib/primitives.d.ts.map +1 -0
- package/esm/lib/primitives.js +103 -0
- package/esm/lib/primitives.js.map +1 -0
- package/esm/lib/retries.d.ts +38 -0
- package/esm/lib/retries.d.ts.map +1 -0
- package/esm/lib/retries.js +150 -0
- package/esm/lib/retries.js.map +1 -0
- package/esm/lib/schemas.d.ts +21 -0
- package/esm/lib/schemas.d.ts.map +1 -0
- package/esm/lib/schemas.js +57 -0
- package/esm/lib/schemas.js.map +1 -0
- package/esm/lib/sdks.d.ts +63 -0
- package/esm/lib/sdks.d.ts.map +1 -0
- package/esm/lib/sdks.js +260 -0
- package/esm/lib/sdks.js.map +1 -0
- package/esm/lib/security.d.ts +83 -0
- package/esm/lib/security.d.ts.map +1 -0
- package/esm/lib/security.js +149 -0
- package/esm/lib/security.js.map +1 -0
- package/esm/lib/url.d.ts +5 -0
- package/esm/lib/url.d.ts.map +1 -0
- package/esm/lib/url.js +24 -0
- package/esm/lib/url.js.map +1 -0
- package/esm/models/calendar-event-create.d.ts +47 -0
- package/esm/models/calendar-event-create.d.ts.map +1 -0
- package/esm/models/calendar-event-create.js +22 -0
- package/esm/models/calendar-event-create.js.map +1 -0
- package/esm/models/calendar-event-update.d.ts +52 -0
- package/esm/models/calendar-event-update.d.ts.map +1 -0
- package/esm/models/calendar-event-update.js +23 -0
- package/esm/models/calendar-event-update.js.map +1 -0
- package/esm/models/calendar-event.d.ts +63 -0
- package/esm/models/calendar-event.d.ts.map +1 -0
- package/esm/models/calendar-event.js +39 -0
- package/esm/models/calendar-event.js.map +1 -0
- package/esm/models/catalog-item-create.d.ts +71 -0
- package/esm/models/catalog-item-create.d.ts.map +1 -0
- package/esm/models/catalog-item-create.js +50 -0
- package/esm/models/catalog-item-create.js.map +1 -0
- package/esm/models/catalog-item-update.d.ts +71 -0
- package/esm/models/catalog-item-update.d.ts.map +1 -0
- package/esm/models/catalog-item-update.js +50 -0
- package/esm/models/catalog-item-update.js.map +1 -0
- package/esm/models/catalog-item.d.ts +71 -0
- package/esm/models/catalog-item.d.ts.map +1 -0
- package/esm/models/catalog-item.js +57 -0
- package/esm/models/catalog-item.js.map +1 -0
- package/esm/models/client-create.d.ts +25 -0
- package/esm/models/client-create.d.ts.map +1 -0
- package/esm/models/client-create.js +21 -0
- package/esm/models/client-create.js.map +1 -0
- package/esm/models/client-update.d.ts +25 -0
- package/esm/models/client-update.d.ts.map +1 -0
- package/esm/models/client-update.js +21 -0
- package/esm/models/client-update.js.map +1 -0
- package/esm/models/client.d.ts +33 -0
- package/esm/models/client.d.ts.map +1 -0
- package/esm/models/client.js +27 -0
- package/esm/models/client.js.map +1 -0
- package/esm/models/contact-create.d.ts +36 -0
- package/esm/models/contact-create.d.ts.map +1 -0
- package/esm/models/contact-create.js +25 -0
- package/esm/models/contact-create.js.map +1 -0
- package/esm/models/contact-update.d.ts +36 -0
- package/esm/models/contact-update.d.ts.map +1 -0
- package/esm/models/contact-update.js +25 -0
- package/esm/models/contact-update.js.map +1 -0
- package/esm/models/contact.d.ts +44 -0
- package/esm/models/contact.d.ts.map +1 -0
- package/esm/models/contact.js +32 -0
- package/esm/models/contact.js.map +1 -0
- package/esm/models/contract-create.d.ts +45 -0
- package/esm/models/contract-create.d.ts.map +1 -0
- package/esm/models/contract-create.js +21 -0
- package/esm/models/contract-create.js.map +1 -0
- package/esm/models/contract-update.d.ts +18 -0
- package/esm/models/contract-update.d.ts.map +1 -0
- package/esm/models/contract-update.js +15 -0
- package/esm/models/contract-update.js.map +1 -0
- package/esm/models/contract.d.ts +113 -0
- package/esm/models/contract.d.ts.map +1 -0
- package/esm/models/contract.js +87 -0
- package/esm/models/contract.js.map +1 -0
- package/esm/models/errors/client-casa-default-error.d.ts +10 -0
- package/esm/models/errors/client-casa-default-error.d.ts.map +1 -0
- package/esm/models/errors/client-casa-default-error.js +30 -0
- package/esm/models/errors/client-casa-default-error.js.map +1 -0
- package/esm/models/errors/client-casa-error.d.ts +19 -0
- package/esm/models/errors/client-casa-error.d.ts.map +1 -0
- package/esm/models/errors/client-casa-error.js +26 -0
- package/esm/models/errors/client-casa-error.js.map +1 -0
- package/esm/models/errors/http-client-errors.d.ts +44 -0
- package/esm/models/errors/http-client-errors.d.ts.map +1 -0
- package/esm/models/errors/http-client-errors.js +56 -0
- package/esm/models/errors/http-client-errors.js.map +1 -0
- package/esm/models/errors/index.d.ts +6 -0
- package/esm/models/errors/index.d.ts.map +1 -0
- package/esm/models/errors/index.js +9 -0
- package/esm/models/errors/index.js.map +1 -0
- package/esm/models/errors/response-validation-error.d.ts +26 -0
- package/esm/models/errors/response-validation-error.d.ts.map +1 -0
- package/esm/models/errors/response-validation-error.js +37 -0
- package/esm/models/errors/response-validation-error.js.map +1 -0
- package/esm/models/errors/sdk-validation-error.d.ts +21 -0
- package/esm/models/errors/sdk-validation-error.d.ts.map +1 -0
- package/esm/models/errors/sdk-validation-error.js +52 -0
- package/esm/models/errors/sdk-validation-error.js.map +1 -0
- package/esm/models/index.d.ts +47 -0
- package/esm/models/index.d.ts.map +1 -0
- package/esm/models/index.js +50 -0
- package/esm/models/index.js.map +1 -0
- package/esm/models/inquiry-create.d.ts +45 -0
- package/esm/models/inquiry-create.d.ts.map +1 -0
- package/esm/models/inquiry-create.js +28 -0
- package/esm/models/inquiry-create.js.map +1 -0
- package/esm/models/inquiry-update.d.ts +45 -0
- package/esm/models/inquiry-update.d.ts.map +1 -0
- package/esm/models/inquiry-update.js +29 -0
- package/esm/models/inquiry-update.js.map +1 -0
- package/esm/models/inquiry.d.ts +78 -0
- package/esm/models/inquiry.d.ts.map +1 -0
- package/esm/models/inquiry.js +51 -0
- package/esm/models/inquiry.js.map +1 -0
- package/esm/models/invoice-create.d.ts +63 -0
- package/esm/models/invoice-create.d.ts.map +1 -0
- package/esm/models/invoice-create.js +39 -0
- package/esm/models/invoice-create.js.map +1 -0
- package/esm/models/invoice-line-item.d.ts +19 -0
- package/esm/models/invoice-line-item.d.ts.map +1 -0
- package/esm/models/invoice-line-item.js +20 -0
- package/esm/models/invoice-line-item.js.map +1 -0
- package/esm/models/invoice-update.d.ts +38 -0
- package/esm/models/invoice-update.d.ts.map +1 -0
- package/esm/models/invoice-update.js +26 -0
- package/esm/models/invoice-update.js.map +1 -0
- package/esm/models/invoice.d.ts +62 -0
- package/esm/models/invoice.d.ts.map +1 -0
- package/esm/models/invoice.js +47 -0
- package/esm/models/invoice.js.map +1 -0
- package/esm/models/milestone-create.d.ts +55 -0
- package/esm/models/milestone-create.d.ts.map +1 -0
- package/esm/models/milestone-create.js +34 -0
- package/esm/models/milestone-create.js.map +1 -0
- package/esm/models/milestone-update.d.ts +41 -0
- package/esm/models/milestone-update.d.ts.map +1 -0
- package/esm/models/milestone-update.js +26 -0
- package/esm/models/milestone-update.js.map +1 -0
- package/esm/models/milestone.d.ts +60 -0
- package/esm/models/milestone.d.ts.map +1 -0
- package/esm/models/milestone.js +42 -0
- package/esm/models/milestone.js.map +1 -0
- package/esm/models/operations/create-calendar-event.d.ts +14 -0
- package/esm/models/operations/create-calendar-event.d.ts.map +1 -0
- package/esm/models/operations/create-calendar-event.js +13 -0
- package/esm/models/operations/create-calendar-event.js.map +1 -0
- package/esm/models/operations/create-catalog-item.d.ts +14 -0
- package/esm/models/operations/create-catalog-item.d.ts.map +1 -0
- package/esm/models/operations/create-catalog-item.js +13 -0
- package/esm/models/operations/create-catalog-item.js.map +1 -0
- package/esm/models/operations/create-client.d.ts +14 -0
- package/esm/models/operations/create-client.d.ts.map +1 -0
- package/esm/models/operations/create-client.js +13 -0
- package/esm/models/operations/create-client.js.map +1 -0
- package/esm/models/operations/create-contact.d.ts +14 -0
- package/esm/models/operations/create-contact.d.ts.map +1 -0
- package/esm/models/operations/create-contact.js +13 -0
- package/esm/models/operations/create-contact.js.map +1 -0
- package/esm/models/operations/create-contract.d.ts +14 -0
- package/esm/models/operations/create-contract.d.ts.map +1 -0
- package/esm/models/operations/create-contract.js +13 -0
- package/esm/models/operations/create-contract.js.map +1 -0
- package/esm/models/operations/create-inquiry.d.ts +14 -0
- package/esm/models/operations/create-inquiry.d.ts.map +1 -0
- package/esm/models/operations/create-inquiry.js +13 -0
- package/esm/models/operations/create-inquiry.js.map +1 -0
- package/esm/models/operations/create-invoice.d.ts +14 -0
- package/esm/models/operations/create-invoice.d.ts.map +1 -0
- package/esm/models/operations/create-invoice.js +13 -0
- package/esm/models/operations/create-invoice.js.map +1 -0
- package/esm/models/operations/create-milestone.d.ts +14 -0
- package/esm/models/operations/create-milestone.d.ts.map +1 -0
- package/esm/models/operations/create-milestone.js +13 -0
- package/esm/models/operations/create-milestone.js.map +1 -0
- package/esm/models/operations/create-payment.d.ts +14 -0
- package/esm/models/operations/create-payment.d.ts.map +1 -0
- package/esm/models/operations/create-payment.js +13 -0
- package/esm/models/operations/create-payment.js.map +1 -0
- package/esm/models/operations/create-project.d.ts +14 -0
- package/esm/models/operations/create-project.d.ts.map +1 -0
- package/esm/models/operations/create-project.js +13 -0
- package/esm/models/operations/create-project.js.map +1 -0
- package/esm/models/operations/create-proposal.d.ts +14 -0
- package/esm/models/operations/create-proposal.d.ts.map +1 -0
- package/esm/models/operations/create-proposal.js +13 -0
- package/esm/models/operations/create-proposal.js.map +1 -0
- package/esm/models/operations/create-time-entry.d.ts +14 -0
- package/esm/models/operations/create-time-entry.d.ts.map +1 -0
- package/esm/models/operations/create-time-entry.js +13 -0
- package/esm/models/operations/create-time-entry.js.map +1 -0
- package/esm/models/operations/create-transaction.d.ts +14 -0
- package/esm/models/operations/create-transaction.d.ts.map +1 -0
- package/esm/models/operations/create-transaction.js +13 -0
- package/esm/models/operations/create-transaction.js.map +1 -0
- package/esm/models/operations/create-webhook.d.ts +14 -0
- package/esm/models/operations/create-webhook.d.ts.map +1 -0
- package/esm/models/operations/create-webhook.js +13 -0
- package/esm/models/operations/create-webhook.js.map +1 -0
- package/esm/models/operations/delete-calendar-event.d.ts +27 -0
- package/esm/models/operations/delete-calendar-event.d.ts.map +1 -0
- package/esm/models/operations/delete-calendar-event.js +20 -0
- package/esm/models/operations/delete-calendar-event.js.map +1 -0
- package/esm/models/operations/delete-catalog-item.d.ts +27 -0
- package/esm/models/operations/delete-catalog-item.d.ts.map +1 -0
- package/esm/models/operations/delete-catalog-item.js +20 -0
- package/esm/models/operations/delete-catalog-item.js.map +1 -0
- package/esm/models/operations/delete-client.d.ts +27 -0
- package/esm/models/operations/delete-client.d.ts.map +1 -0
- package/esm/models/operations/delete-client.js +20 -0
- package/esm/models/operations/delete-client.js.map +1 -0
- package/esm/models/operations/delete-contact.d.ts +27 -0
- package/esm/models/operations/delete-contact.d.ts.map +1 -0
- package/esm/models/operations/delete-contact.js +20 -0
- package/esm/models/operations/delete-contact.js.map +1 -0
- package/esm/models/operations/delete-contract.d.ts +27 -0
- package/esm/models/operations/delete-contract.d.ts.map +1 -0
- package/esm/models/operations/delete-contract.js +20 -0
- package/esm/models/operations/delete-contract.js.map +1 -0
- package/esm/models/operations/delete-inquiry.d.ts +27 -0
- package/esm/models/operations/delete-inquiry.d.ts.map +1 -0
- package/esm/models/operations/delete-inquiry.js +20 -0
- package/esm/models/operations/delete-inquiry.js.map +1 -0
- package/esm/models/operations/delete-invoice.d.ts +27 -0
- package/esm/models/operations/delete-invoice.d.ts.map +1 -0
- package/esm/models/operations/delete-invoice.js +20 -0
- package/esm/models/operations/delete-invoice.js.map +1 -0
- package/esm/models/operations/delete-milestone.d.ts +27 -0
- package/esm/models/operations/delete-milestone.d.ts.map +1 -0
- package/esm/models/operations/delete-milestone.js +20 -0
- package/esm/models/operations/delete-milestone.js.map +1 -0
- package/esm/models/operations/delete-project.d.ts +27 -0
- package/esm/models/operations/delete-project.d.ts.map +1 -0
- package/esm/models/operations/delete-project.js +20 -0
- package/esm/models/operations/delete-project.js.map +1 -0
- package/esm/models/operations/delete-proposal.d.ts +27 -0
- package/esm/models/operations/delete-proposal.d.ts.map +1 -0
- package/esm/models/operations/delete-proposal.js +20 -0
- package/esm/models/operations/delete-proposal.js.map +1 -0
- package/esm/models/operations/delete-time-entry.d.ts +27 -0
- package/esm/models/operations/delete-time-entry.d.ts.map +1 -0
- package/esm/models/operations/delete-time-entry.js +20 -0
- package/esm/models/operations/delete-time-entry.js.map +1 -0
- package/esm/models/operations/delete-transaction.d.ts +27 -0
- package/esm/models/operations/delete-transaction.d.ts.map +1 -0
- package/esm/models/operations/delete-transaction.js +20 -0
- package/esm/models/operations/delete-transaction.js.map +1 -0
- package/esm/models/operations/delete-webhook.d.ts +27 -0
- package/esm/models/operations/delete-webhook.d.ts.map +1 -0
- package/esm/models/operations/delete-webhook.js +20 -0
- package/esm/models/operations/delete-webhook.js.map +1 -0
- package/esm/models/operations/get-calendar-event.d.ts +27 -0
- package/esm/models/operations/get-calendar-event.d.ts.map +1 -0
- package/esm/models/operations/get-calendar-event.js +20 -0
- package/esm/models/operations/get-calendar-event.js.map +1 -0
- package/esm/models/operations/get-catalog-item.d.ts +27 -0
- package/esm/models/operations/get-catalog-item.d.ts.map +1 -0
- package/esm/models/operations/get-catalog-item.js +20 -0
- package/esm/models/operations/get-catalog-item.js.map +1 -0
- package/esm/models/operations/get-client.d.ts +27 -0
- package/esm/models/operations/get-client.d.ts.map +1 -0
- package/esm/models/operations/get-client.js +20 -0
- package/esm/models/operations/get-client.js.map +1 -0
- package/esm/models/operations/get-contact.d.ts +27 -0
- package/esm/models/operations/get-contact.d.ts.map +1 -0
- package/esm/models/operations/get-contact.js +20 -0
- package/esm/models/operations/get-contact.js.map +1 -0
- package/esm/models/operations/get-contract.d.ts +27 -0
- package/esm/models/operations/get-contract.d.ts.map +1 -0
- package/esm/models/operations/get-contract.js +20 -0
- package/esm/models/operations/get-contract.js.map +1 -0
- package/esm/models/operations/get-inquiry.d.ts +27 -0
- package/esm/models/operations/get-inquiry.d.ts.map +1 -0
- package/esm/models/operations/get-inquiry.js +20 -0
- package/esm/models/operations/get-inquiry.js.map +1 -0
- package/esm/models/operations/get-invoice.d.ts +27 -0
- package/esm/models/operations/get-invoice.d.ts.map +1 -0
- package/esm/models/operations/get-invoice.js +20 -0
- package/esm/models/operations/get-invoice.js.map +1 -0
- package/esm/models/operations/get-milestone.d.ts +27 -0
- package/esm/models/operations/get-milestone.d.ts.map +1 -0
- package/esm/models/operations/get-milestone.js +20 -0
- package/esm/models/operations/get-milestone.js.map +1 -0
- package/esm/models/operations/get-payment.d.ts +27 -0
- package/esm/models/operations/get-payment.d.ts.map +1 -0
- package/esm/models/operations/get-payment.js +20 -0
- package/esm/models/operations/get-payment.js.map +1 -0
- package/esm/models/operations/get-payout.d.ts +27 -0
- package/esm/models/operations/get-payout.d.ts.map +1 -0
- package/esm/models/operations/get-payout.js +20 -0
- package/esm/models/operations/get-payout.js.map +1 -0
- package/esm/models/operations/get-project.d.ts +27 -0
- package/esm/models/operations/get-project.d.ts.map +1 -0
- package/esm/models/operations/get-project.js +20 -0
- package/esm/models/operations/get-project.js.map +1 -0
- package/esm/models/operations/get-proposal.d.ts +27 -0
- package/esm/models/operations/get-proposal.d.ts.map +1 -0
- package/esm/models/operations/get-proposal.js +20 -0
- package/esm/models/operations/get-proposal.js.map +1 -0
- package/esm/models/operations/get-time-entry.d.ts +27 -0
- package/esm/models/operations/get-time-entry.d.ts.map +1 -0
- package/esm/models/operations/get-time-entry.js +20 -0
- package/esm/models/operations/get-time-entry.js.map +1 -0
- package/esm/models/operations/get-transaction.d.ts +27 -0
- package/esm/models/operations/get-transaction.d.ts.map +1 -0
- package/esm/models/operations/get-transaction.js +20 -0
- package/esm/models/operations/get-transaction.js.map +1 -0
- package/esm/models/operations/get-webhook.d.ts +27 -0
- package/esm/models/operations/get-webhook.d.ts.map +1 -0
- package/esm/models/operations/get-webhook.js +20 -0
- package/esm/models/operations/get-webhook.js.map +1 -0
- package/esm/models/operations/index.d.ts +72 -0
- package/esm/models/operations/index.d.ts.map +1 -0
- package/esm/models/operations/index.js +75 -0
- package/esm/models/operations/index.js.map +1 -0
- package/esm/models/operations/list-calendar-events.d.ts +59 -0
- package/esm/models/operations/list-calendar-events.d.ts.map +1 -0
- package/esm/models/operations/list-calendar-events.js +35 -0
- package/esm/models/operations/list-calendar-events.js.map +1 -0
- package/esm/models/operations/list-catalog-items.d.ts +64 -0
- package/esm/models/operations/list-catalog-items.d.ts.map +1 -0
- package/esm/models/operations/list-catalog-items.js +47 -0
- package/esm/models/operations/list-catalog-items.js.map +1 -0
- package/esm/models/operations/list-clients.d.ts +50 -0
- package/esm/models/operations/list-clients.d.ts.map +1 -0
- package/esm/models/operations/list-clients.js +39 -0
- package/esm/models/operations/list-clients.js.map +1 -0
- package/esm/models/operations/list-contacts.d.ts +55 -0
- package/esm/models/operations/list-contacts.d.ts.map +1 -0
- package/esm/models/operations/list-contacts.js +40 -0
- package/esm/models/operations/list-contacts.js.map +1 -0
- package/esm/models/operations/list-contracts.d.ts +59 -0
- package/esm/models/operations/list-contracts.d.ts.map +1 -0
- package/esm/models/operations/list-contracts.js +44 -0
- package/esm/models/operations/list-contracts.js.map +1 -0
- package/esm/models/operations/list-inquiries.d.ts +64 -0
- package/esm/models/operations/list-inquiries.d.ts.map +1 -0
- package/esm/models/operations/list-inquiries.js +51 -0
- package/esm/models/operations/list-inquiries.js.map +1 -0
- package/esm/models/operations/list-invoices.d.ts +58 -0
- package/esm/models/operations/list-invoices.d.ts.map +1 -0
- package/esm/models/operations/list-invoices.js +43 -0
- package/esm/models/operations/list-invoices.js.map +1 -0
- package/esm/models/operations/list-milestones.d.ts +64 -0
- package/esm/models/operations/list-milestones.d.ts.map +1 -0
- package/esm/models/operations/list-milestones.js +48 -0
- package/esm/models/operations/list-milestones.js.map +1 -0
- package/esm/models/operations/list-payments.d.ts +73 -0
- package/esm/models/operations/list-payments.d.ts.map +1 -0
- package/esm/models/operations/list-payments.js +52 -0
- package/esm/models/operations/list-payments.js.map +1 -0
- package/esm/models/operations/list-payouts.d.ts +56 -0
- package/esm/models/operations/list-payouts.d.ts.map +1 -0
- package/esm/models/operations/list-payouts.js +43 -0
- package/esm/models/operations/list-payouts.js.map +1 -0
- package/esm/models/operations/list-projects.d.ts +55 -0
- package/esm/models/operations/list-projects.d.ts.map +1 -0
- package/esm/models/operations/list-projects.js +40 -0
- package/esm/models/operations/list-projects.js.map +1 -0
- package/esm/models/operations/list-proposals.d.ts +60 -0
- package/esm/models/operations/list-proposals.d.ts.map +1 -0
- package/esm/models/operations/list-proposals.js +44 -0
- package/esm/models/operations/list-proposals.js.map +1 -0
- package/esm/models/operations/list-time-entries.d.ts +60 -0
- package/esm/models/operations/list-time-entries.d.ts.map +1 -0
- package/esm/models/operations/list-time-entries.js +37 -0
- package/esm/models/operations/list-time-entries.js.map +1 -0
- package/esm/models/operations/list-transactions.d.ts +70 -0
- package/esm/models/operations/list-transactions.d.ts.map +1 -0
- package/esm/models/operations/list-transactions.js +55 -0
- package/esm/models/operations/list-transactions.js.map +1 -0
- package/esm/models/operations/list-webhooks.d.ts +101 -0
- package/esm/models/operations/list-webhooks.d.ts.map +1 -0
- package/esm/models/operations/list-webhooks.js +89 -0
- package/esm/models/operations/list-webhooks.js.map +1 -0
- package/esm/models/operations/update-calendar-event.d.ts +30 -0
- package/esm/models/operations/update-calendar-event.d.ts.map +1 -0
- package/esm/models/operations/update-calendar-event.js +22 -0
- package/esm/models/operations/update-calendar-event.js.map +1 -0
- package/esm/models/operations/update-catalog-item.d.ts +30 -0
- package/esm/models/operations/update-catalog-item.d.ts.map +1 -0
- package/esm/models/operations/update-catalog-item.js +22 -0
- package/esm/models/operations/update-catalog-item.js.map +1 -0
- package/esm/models/operations/update-client.d.ts +30 -0
- package/esm/models/operations/update-client.d.ts.map +1 -0
- package/esm/models/operations/update-client.js +22 -0
- package/esm/models/operations/update-client.js.map +1 -0
- package/esm/models/operations/update-contact.d.ts +30 -0
- package/esm/models/operations/update-contact.d.ts.map +1 -0
- package/esm/models/operations/update-contact.js +22 -0
- package/esm/models/operations/update-contact.js.map +1 -0
- package/esm/models/operations/update-contract.d.ts +30 -0
- package/esm/models/operations/update-contract.d.ts.map +1 -0
- package/esm/models/operations/update-contract.js +22 -0
- package/esm/models/operations/update-contract.js.map +1 -0
- package/esm/models/operations/update-inquiry.d.ts +30 -0
- package/esm/models/operations/update-inquiry.d.ts.map +1 -0
- package/esm/models/operations/update-inquiry.js +22 -0
- package/esm/models/operations/update-inquiry.js.map +1 -0
- package/esm/models/operations/update-invoice.d.ts +30 -0
- package/esm/models/operations/update-invoice.d.ts.map +1 -0
- package/esm/models/operations/update-invoice.js +22 -0
- package/esm/models/operations/update-invoice.js.map +1 -0
- package/esm/models/operations/update-milestone.d.ts +30 -0
- package/esm/models/operations/update-milestone.d.ts.map +1 -0
- package/esm/models/operations/update-milestone.js +22 -0
- package/esm/models/operations/update-milestone.js.map +1 -0
- package/esm/models/operations/update-payment.d.ts +30 -0
- package/esm/models/operations/update-payment.d.ts.map +1 -0
- package/esm/models/operations/update-payment.js +22 -0
- package/esm/models/operations/update-payment.js.map +1 -0
- package/esm/models/operations/update-project.d.ts +30 -0
- package/esm/models/operations/update-project.d.ts.map +1 -0
- package/esm/models/operations/update-project.js +22 -0
- package/esm/models/operations/update-project.js.map +1 -0
- package/esm/models/operations/update-proposal.d.ts +30 -0
- package/esm/models/operations/update-proposal.d.ts.map +1 -0
- package/esm/models/operations/update-proposal.js +22 -0
- package/esm/models/operations/update-proposal.js.map +1 -0
- package/esm/models/operations/update-time-entry.d.ts +30 -0
- package/esm/models/operations/update-time-entry.d.ts.map +1 -0
- package/esm/models/operations/update-time-entry.js +22 -0
- package/esm/models/operations/update-time-entry.js.map +1 -0
- package/esm/models/operations/update-transaction.d.ts +30 -0
- package/esm/models/operations/update-transaction.d.ts.map +1 -0
- package/esm/models/operations/update-transaction.js +22 -0
- package/esm/models/operations/update-transaction.js.map +1 -0
- package/esm/models/operations/update-webhook.d.ts +30 -0
- package/esm/models/operations/update-webhook.d.ts.map +1 -0
- package/esm/models/operations/update-webhook.js +22 -0
- package/esm/models/operations/update-webhook.js.map +1 -0
- package/esm/models/pagination-meta.d.ts +14 -0
- package/esm/models/pagination-meta.d.ts.map +1 -0
- package/esm/models/pagination-meta.js +18 -0
- package/esm/models/pagination-meta.js.map +1 -0
- package/esm/models/payment-create.d.ts +61 -0
- package/esm/models/payment-create.d.ts.map +1 -0
- package/esm/models/payment-create.js +40 -0
- package/esm/models/payment-create.js.map +1 -0
- package/esm/models/payment-update.d.ts +14 -0
- package/esm/models/payment-update.d.ts.map +1 -0
- package/esm/models/payment-update.js +13 -0
- package/esm/models/payment-update.js.map +1 -0
- package/esm/models/payment.d.ts +80 -0
- package/esm/models/payment.d.ts.map +1 -0
- package/esm/models/payment.js +60 -0
- package/esm/models/payment.js.map +1 -0
- package/esm/models/payout.d.ts +48 -0
- package/esm/models/payout.d.ts.map +1 -0
- package/esm/models/payout.js +42 -0
- package/esm/models/payout.js.map +1 -0
- package/esm/models/project-create.d.ts +41 -0
- package/esm/models/project-create.d.ts.map +1 -0
- package/esm/models/project-create.js +26 -0
- package/esm/models/project-create.js.map +1 -0
- package/esm/models/project-update.d.ts +41 -0
- package/esm/models/project-update.d.ts.map +1 -0
- package/esm/models/project-update.js +26 -0
- package/esm/models/project-update.js.map +1 -0
- package/esm/models/project.d.ts +44 -0
- package/esm/models/project.d.ts.map +1 -0
- package/esm/models/project.js +32 -0
- package/esm/models/project.js.map +1 -0
- package/esm/models/proposal-create.d.ts +45 -0
- package/esm/models/proposal-create.d.ts.map +1 -0
- package/esm/models/proposal-create.js +26 -0
- package/esm/models/proposal-create.js.map +1 -0
- package/esm/models/proposal-update.d.ts +43 -0
- package/esm/models/proposal-update.d.ts.map +1 -0
- package/esm/models/proposal-update.js +27 -0
- package/esm/models/proposal-update.js.map +1 -0
- package/esm/models/proposal.d.ts +70 -0
- package/esm/models/proposal.d.ts.map +1 -0
- package/esm/models/proposal.js +52 -0
- package/esm/models/proposal.js.map +1 -0
- package/esm/models/security.d.ts +12 -0
- package/esm/models/security.d.ts.map +1 -0
- package/esm/models/security.js +12 -0
- package/esm/models/security.js.map +1 -0
- package/esm/models/time-entry-create.d.ts +53 -0
- package/esm/models/time-entry-create.d.ts.map +1 -0
- package/esm/models/time-entry-create.js +31 -0
- package/esm/models/time-entry-create.js.map +1 -0
- package/esm/models/time-entry-update.d.ts +53 -0
- package/esm/models/time-entry-update.d.ts.map +1 -0
- package/esm/models/time-entry-update.js +31 -0
- package/esm/models/time-entry-update.js.map +1 -0
- package/esm/models/time-entry.d.ts +57 -0
- package/esm/models/time-entry.d.ts.map +1 -0
- package/esm/models/time-entry.js +40 -0
- package/esm/models/time-entry.js.map +1 -0
- package/esm/models/transaction-create.d.ts +113 -0
- package/esm/models/transaction-create.d.ts.map +1 -0
- package/esm/models/transaction-create.js +70 -0
- package/esm/models/transaction-create.js.map +1 -0
- package/esm/models/transaction-update.d.ts +113 -0
- package/esm/models/transaction-update.d.ts.map +1 -0
- package/esm/models/transaction-update.js +70 -0
- package/esm/models/transaction-update.js.map +1 -0
- package/esm/models/transaction.d.ts +98 -0
- package/esm/models/transaction.d.ts.map +1 -0
- package/esm/models/transaction.js +79 -0
- package/esm/models/transaction.js.map +1 -0
- package/esm/models/webhook-create.d.ts +78 -0
- package/esm/models/webhook-create.d.ts.map +1 -0
- package/esm/models/webhook-create.js +72 -0
- package/esm/models/webhook-create.js.map +1 -0
- package/esm/models/webhook-update.d.ts +78 -0
- package/esm/models/webhook-update.d.ts.map +1 -0
- package/esm/models/webhook-update.js +72 -0
- package/esm/models/webhook-update.js.map +1 -0
- package/esm/models/webhook.d.ts +100 -0
- package/esm/models/webhook.d.ts.map +1 -0
- package/esm/models/webhook.js +90 -0
- package/esm/models/webhook.js.map +1 -0
- package/esm/sdk/calendar-events.d.ts +32 -0
- package/esm/sdk/calendar-events.d.ts.map +1 -0
- package/esm/sdk/calendar-events.js +49 -0
- package/esm/sdk/calendar-events.js.map +1 -0
- package/esm/sdk/catalog-items.d.ts +29 -0
- package/esm/sdk/catalog-items.d.ts.map +1 -0
- package/esm/sdk/catalog-items.js +46 -0
- package/esm/sdk/catalog-items.js.map +1 -0
- package/esm/sdk/clients.d.ts +26 -0
- package/esm/sdk/clients.d.ts.map +1 -0
- package/esm/sdk/clients.js +43 -0
- package/esm/sdk/clients.js.map +1 -0
- package/esm/sdk/contacts.d.ts +26 -0
- package/esm/sdk/contacts.d.ts.map +1 -0
- package/esm/sdk/contacts.js +43 -0
- package/esm/sdk/contacts.js.map +1 -0
- package/esm/sdk/contracts.d.ts +32 -0
- package/esm/sdk/contracts.d.ts.map +1 -0
- package/esm/sdk/contracts.js +49 -0
- package/esm/sdk/contracts.js.map +1 -0
- package/esm/sdk/index.d.ts +2 -0
- package/esm/sdk/index.d.ts.map +1 -0
- package/esm/sdk/index.js +5 -0
- package/esm/sdk/index.js.map +1 -0
- package/esm/sdk/inquiries.d.ts +32 -0
- package/esm/sdk/inquiries.d.ts.map +1 -0
- package/esm/sdk/inquiries.js +49 -0
- package/esm/sdk/inquiries.js.map +1 -0
- package/esm/sdk/invoices.d.ts +29 -0
- package/esm/sdk/invoices.d.ts.map +1 -0
- package/esm/sdk/invoices.js +46 -0
- package/esm/sdk/invoices.js.map +1 -0
- package/esm/sdk/milestones.d.ts +29 -0
- package/esm/sdk/milestones.d.ts.map +1 -0
- package/esm/sdk/milestones.js +46 -0
- package/esm/sdk/milestones.js.map +1 -0
- package/esm/sdk/payments.d.ts +25 -0
- package/esm/sdk/payments.d.ts.map +1 -0
- package/esm/sdk/payments.js +39 -0
- package/esm/sdk/payments.js.map +1 -0
- package/esm/sdk/payouts.d.ts +14 -0
- package/esm/sdk/payouts.d.ts.map +1 -0
- package/esm/sdk/payouts.js +22 -0
- package/esm/sdk/payouts.js.map +1 -0
- package/esm/sdk/projects.d.ts +26 -0
- package/esm/sdk/projects.d.ts.map +1 -0
- package/esm/sdk/projects.js +43 -0
- package/esm/sdk/projects.js.map +1 -0
- package/esm/sdk/proposals.d.ts +32 -0
- package/esm/sdk/proposals.d.ts.map +1 -0
- package/esm/sdk/proposals.js +49 -0
- package/esm/sdk/proposals.js.map +1 -0
- package/esm/sdk/sdk.d.ts +49 -0
- package/esm/sdk/sdk.d.ts.map +1 -0
- package/esm/sdk/sdk.js +82 -0
- package/esm/sdk/sdk.js.map +1 -0
- package/esm/sdk/time-entries.d.ts +32 -0
- package/esm/sdk/time-entries.d.ts.map +1 -0
- package/esm/sdk/time-entries.js +49 -0
- package/esm/sdk/time-entries.js.map +1 -0
- package/esm/sdk/transactions.d.ts +32 -0
- package/esm/sdk/transactions.d.ts.map +1 -0
- package/esm/sdk/transactions.js +49 -0
- package/esm/sdk/transactions.js.map +1 -0
- package/esm/sdk/webhooks.d.ts +32 -0
- package/esm/sdk/webhooks.d.ts.map +1 -0
- package/esm/sdk/webhooks.js +49 -0
- package/esm/sdk/webhooks.js.map +1 -0
- package/esm/types/async.d.ts +23 -0
- package/esm/types/async.d.ts.map +1 -0
- package/esm/types/async.js +28 -0
- package/esm/types/async.js.map +1 -0
- package/esm/types/blobs.d.ts +4 -0
- package/esm/types/blobs.d.ts.map +1 -0
- package/esm/types/blobs.js +25 -0
- package/esm/types/blobs.js.map +1 -0
- package/esm/types/const-date-time.d.ts +3 -0
- package/esm/types/const-date-time.d.ts.map +1 -0
- package/esm/types/const-date-time.js +10 -0
- package/esm/types/const-date-time.js.map +1 -0
- package/esm/types/default-to-zero-value.d.ts +12 -0
- package/esm/types/default-to-zero-value.d.ts.map +1 -0
- package/esm/types/default-to-zero-value.js +31 -0
- package/esm/types/default-to-zero-value.js.map +1 -0
- package/esm/types/enums.d.ts +9 -0
- package/esm/types/enums.d.ts.map +1 -0
- package/esm/types/enums.js +27 -0
- package/esm/types/enums.js.map +1 -0
- package/esm/types/fp.d.ts +31 -0
- package/esm/types/fp.d.ts.map +1 -0
- package/esm/types/fp.js +31 -0
- package/esm/types/fp.js.map +1 -0
- package/esm/types/index.d.ts +10 -0
- package/esm/types/index.d.ts.map +1 -0
- package/esm/types/index.js +10 -0
- package/esm/types/index.js.map +1 -0
- package/esm/types/operations.d.ts +27 -0
- package/esm/types/operations.d.ts.map +1 -0
- package/esm/types/operations.js +77 -0
- package/esm/types/operations.js.map +1 -0
- package/esm/types/primitives.d.ts +11 -0
- package/esm/types/primitives.d.ts.map +1 -0
- package/esm/types/primitives.js +131 -0
- package/esm/types/primitives.js.map +1 -0
- package/esm/types/rfcdate.d.ts +21 -0
- package/esm/types/rfcdate.d.ts.map +1 -0
- package/esm/types/rfcdate.js +43 -0
- package/esm/types/rfcdate.js.map +1 -0
- package/esm/types/smart-union.d.ts +7 -0
- package/esm/types/smart-union.d.ts.map +1 -0
- package/esm/types/smart-union.js +117 -0
- package/esm/types/smart-union.js.map +1 -0
- package/esm/types/streams.d.ts +2 -0
- package/esm/types/streams.d.ts.map +1 -0
- package/esm/types/streams.js +15 -0
- package/esm/types/streams.js.map +1 -0
- package/esm/types/unrecognized.d.ts +16 -0
- package/esm/types/unrecognized.d.ts.map +1 -0
- package/esm/types/unrecognized.js +31 -0
- package/esm/types/unrecognized.js.map +1 -0
- package/examples/clientsListClients.example.ts +26 -0
- package/jsr.json +27 -0
- package/package.json +84 -0
- package/src/core.ts +13 -0
- package/src/funcs/calendar-events-create-calendar-event.ts +180 -0
- package/src/funcs/calendar-events-delete-calendar-event.ts +182 -0
- package/src/funcs/calendar-events-get-calendar-event.ts +183 -0
- package/src/funcs/calendar-events-list-calendar-events.ts +189 -0
- package/src/funcs/calendar-events-update-calendar-event.ts +187 -0
- package/src/funcs/catalog-items-create-catalog-item.ts +180 -0
- package/src/funcs/catalog-items-delete-catalog-item.ts +182 -0
- package/src/funcs/catalog-items-get-catalog-item.ts +182 -0
- package/src/funcs/catalog-items-list-catalog-items.ts +188 -0
- package/src/funcs/catalog-items-update-catalog-item.ts +184 -0
- package/src/funcs/clients-create-client.ts +177 -0
- package/src/funcs/clients-delete-client.ts +181 -0
- package/src/funcs/clients-get-client.ts +182 -0
- package/src/funcs/clients-list-clients.ts +183 -0
- package/src/funcs/clients-update-client.ts +183 -0
- package/src/funcs/contacts-create-contact.ts +177 -0
- package/src/funcs/contacts-delete-contact.ts +181 -0
- package/src/funcs/contacts-get-contact.ts +182 -0
- package/src/funcs/contacts-list-contacts.ts +184 -0
- package/src/funcs/contacts-update-contact.ts +183 -0
- package/src/funcs/contracts-create-contract.ts +180 -0
- package/src/funcs/contracts-delete-contract.ts +181 -0
- package/src/funcs/contracts-get-contract.ts +182 -0
- package/src/funcs/contracts-list-contracts.ts +187 -0
- package/src/funcs/contracts-update-contract.ts +186 -0
- package/src/funcs/inquiries-create-inquiry.ts +180 -0
- package/src/funcs/inquiries-delete-inquiry.ts +181 -0
- package/src/funcs/inquiries-get-inquiry.ts +182 -0
- package/src/funcs/inquiries-list-inquiries.ts +187 -0
- package/src/funcs/inquiries-update-inquiry.ts +186 -0
- package/src/funcs/invoices-create-invoice.ts +180 -0
- package/src/funcs/invoices-delete-invoice.ts +181 -0
- package/src/funcs/invoices-get-invoice.ts +182 -0
- package/src/funcs/invoices-list-invoices.ts +184 -0
- package/src/funcs/invoices-update-invoice.ts +183 -0
- package/src/funcs/milestones-create-milestone.ts +180 -0
- package/src/funcs/milestones-delete-milestone.ts +181 -0
- package/src/funcs/milestones-get-milestone.ts +182 -0
- package/src/funcs/milestones-list-milestones.ts +188 -0
- package/src/funcs/milestones-update-milestone.ts +183 -0
- package/src/funcs/payments-create-payment.ts +180 -0
- package/src/funcs/payments-get-payment.ts +182 -0
- package/src/funcs/payments-list-payments.ts +186 -0
- package/src/funcs/payments-update-payment.ts +183 -0
- package/src/funcs/payouts-get-payout.ts +182 -0
- package/src/funcs/payouts-list-payouts.ts +185 -0
- package/src/funcs/projects-create-project.ts +177 -0
- package/src/funcs/projects-delete-project.ts +181 -0
- package/src/funcs/projects-get-project.ts +182 -0
- package/src/funcs/projects-list-projects.ts +184 -0
- package/src/funcs/projects-update-project.ts +183 -0
- package/src/funcs/proposals-create-proposal.ts +180 -0
- package/src/funcs/proposals-delete-proposal.ts +181 -0
- package/src/funcs/proposals-get-proposal.ts +182 -0
- package/src/funcs/proposals-list-proposals.ts +188 -0
- package/src/funcs/proposals-update-proposal.ts +186 -0
- package/src/funcs/time-entries-create-time-entry.ts +177 -0
- package/src/funcs/time-entries-delete-time-entry.ts +184 -0
- package/src/funcs/time-entries-get-time-entry.ts +182 -0
- package/src/funcs/time-entries-list-time-entries.ts +191 -0
- package/src/funcs/time-entries-update-time-entry.ts +186 -0
- package/src/funcs/transactions-create-transaction.ts +177 -0
- package/src/funcs/transactions-delete-transaction.ts +185 -0
- package/src/funcs/transactions-get-transaction.ts +182 -0
- package/src/funcs/transactions-list-transactions.ts +188 -0
- package/src/funcs/transactions-update-transaction.ts +187 -0
- package/src/funcs/webhooks-create-webhook.ts +180 -0
- package/src/funcs/webhooks-delete-webhook.ts +181 -0
- package/src/funcs/webhooks-get-webhook.ts +182 -0
- package/src/funcs/webhooks-list-webhooks.ts +184 -0
- package/src/funcs/webhooks-update-webhook.ts +186 -0
- package/src/hooks/hooks.ts +129 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/types.ts +107 -0
- package/src/index.ts +9 -0
- package/src/lib/base64.ts +39 -0
- package/src/lib/config.ts +67 -0
- package/src/lib/dlv.ts +53 -0
- package/src/lib/encodings.ts +529 -0
- package/src/lib/env.ts +57 -0
- package/src/lib/files.ts +104 -0
- package/src/lib/http.ts +323 -0
- package/src/lib/is-plain-object.ts +43 -0
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +353 -0
- package/src/lib/primitives.ts +150 -0
- package/src/lib/retries.ts +218 -0
- package/src/lib/schemas.ts +94 -0
- package/src/lib/sdks.ts +405 -0
- package/src/lib/security.ts +275 -0
- package/src/lib/url.ts +35 -0
- package/src/models/calendar-event-create.ts +77 -0
- package/src/models/calendar-event-update.ts +87 -0
- package/src/models/calendar-event.ts +106 -0
- package/src/models/catalog-item-create.ts +122 -0
- package/src/models/catalog-item-update.ts +122 -0
- package/src/models/catalog-item.ts +126 -0
- package/src/models/client-create.ts +45 -0
- package/src/models/client-update.ts +45 -0
- package/src/models/client.ts +60 -0
- package/src/models/contact-create.ts +60 -0
- package/src/models/contact-update.ts +60 -0
- package/src/models/contact.ts +76 -0
- package/src/models/contract-create.ts +83 -0
- package/src/models/contract-update.ts +45 -0
- package/src/models/contract.ts +202 -0
- package/src/models/errors/client-casa-default-error.ts +40 -0
- package/src/models/errors/client-casa-error.ts +35 -0
- package/src/models/errors/http-client-errors.ts +62 -0
- package/src/models/errors/index.ts +9 -0
- package/src/models/errors/response-validation-error.ts +50 -0
- package/src/models/errors/sdk-validation-error.ts +54 -0
- package/src/models/index.ts +50 -0
- package/src/models/inquiry-create.ts +72 -0
- package/src/models/inquiry-update.ts +80 -0
- package/src/models/inquiry.ts +123 -0
- package/src/models/invoice-create.ts +115 -0
- package/src/models/invoice-line-item.ts +46 -0
- package/src/models/invoice-update.ts +73 -0
- package/src/models/invoice.ts +110 -0
- package/src/models/milestone-create.ts +93 -0
- package/src/models/milestone-update.ts +73 -0
- package/src/models/milestone.ts +103 -0
- package/src/models/operations/create-calendar-event.ts +35 -0
- package/src/models/operations/create-catalog-item.ts +33 -0
- package/src/models/operations/create-client.ts +33 -0
- package/src/models/operations/create-contact.ts +33 -0
- package/src/models/operations/create-contract.ts +33 -0
- package/src/models/operations/create-inquiry.ts +33 -0
- package/src/models/operations/create-invoice.ts +33 -0
- package/src/models/operations/create-milestone.ts +33 -0
- package/src/models/operations/create-payment.ts +33 -0
- package/src/models/operations/create-project.ts +33 -0
- package/src/models/operations/create-proposal.ts +33 -0
- package/src/models/operations/create-time-entry.ts +33 -0
- package/src/models/operations/create-transaction.ts +33 -0
- package/src/models/operations/create-webhook.ts +33 -0
- package/src/models/operations/delete-calendar-event.ts +63 -0
- package/src/models/operations/delete-catalog-item.ts +61 -0
- package/src/models/operations/delete-client.ts +61 -0
- package/src/models/operations/delete-contact.ts +61 -0
- package/src/models/operations/delete-contract.ts +61 -0
- package/src/models/operations/delete-inquiry.ts +61 -0
- package/src/models/operations/delete-invoice.ts +61 -0
- package/src/models/operations/delete-milestone.ts +61 -0
- package/src/models/operations/delete-project.ts +61 -0
- package/src/models/operations/delete-proposal.ts +61 -0
- package/src/models/operations/delete-time-entry.ts +61 -0
- package/src/models/operations/delete-transaction.ts +61 -0
- package/src/models/operations/delete-webhook.ts +61 -0
- package/src/models/operations/get-calendar-event.ts +61 -0
- package/src/models/operations/get-catalog-item.ts +61 -0
- package/src/models/operations/get-client.ts +61 -0
- package/src/models/operations/get-contact.ts +61 -0
- package/src/models/operations/get-contract.ts +61 -0
- package/src/models/operations/get-inquiry.ts +61 -0
- package/src/models/operations/get-invoice.ts +61 -0
- package/src/models/operations/get-milestone.ts +61 -0
- package/src/models/operations/get-payment.ts +61 -0
- package/src/models/operations/get-payout.ts +61 -0
- package/src/models/operations/get-project.ts +61 -0
- package/src/models/operations/get-proposal.ts +61 -0
- package/src/models/operations/get-time-entry.ts +61 -0
- package/src/models/operations/get-transaction.ts +61 -0
- package/src/models/operations/get-webhook.ts +61 -0
- package/src/models/operations/index.ts +75 -0
- package/src/models/operations/list-calendar-events.ts +116 -0
- package/src/models/operations/list-catalog-items.ts +126 -0
- package/src/models/operations/list-clients.ts +108 -0
- package/src/models/operations/list-contacts.ts +112 -0
- package/src/models/operations/list-contracts.ts +118 -0
- package/src/models/operations/list-inquiries.ts +127 -0
- package/src/models/operations/list-invoices.ts +117 -0
- package/src/models/operations/list-milestones.ts +127 -0
- package/src/models/operations/list-payments.ts +136 -0
- package/src/models/operations/list-payouts.ts +126 -0
- package/src/models/operations/list-projects.ts +114 -0
- package/src/models/operations/list-proposals.ts +120 -0
- package/src/models/operations/list-time-entries.ts +129 -0
- package/src/models/operations/list-transactions.ts +138 -0
- package/src/models/operations/list-webhooks.ts +158 -0
- package/src/models/operations/update-calendar-event.ts +67 -0
- package/src/models/operations/update-catalog-item.ts +65 -0
- package/src/models/operations/update-client.ts +65 -0
- package/src/models/operations/update-contact.ts +65 -0
- package/src/models/operations/update-contract.ts +65 -0
- package/src/models/operations/update-inquiry.ts +65 -0
- package/src/models/operations/update-invoice.ts +65 -0
- package/src/models/operations/update-milestone.ts +65 -0
- package/src/models/operations/update-payment.ts +65 -0
- package/src/models/operations/update-project.ts +65 -0
- package/src/models/operations/update-proposal.ts +65 -0
- package/src/models/operations/update-time-entry.ts +65 -0
- package/src/models/operations/update-transaction.ts +65 -0
- package/src/models/operations/update-webhook.ts +65 -0
- package/src/models/pagination-meta.ts +39 -0
- package/src/models/payment-create.ts +95 -0
- package/src/models/payment-update.ts +29 -0
- package/src/models/payment.ts +127 -0
- package/src/models/payout.ts +88 -0
- package/src/models/project-create.ts +81 -0
- package/src/models/project-update.ts +81 -0
- package/src/models/project.ts +78 -0
- package/src/models/proposal-create.ts +86 -0
- package/src/models/proposal-update.ts +84 -0
- package/src/models/proposal.ts +120 -0
- package/src/models/security.ts +26 -0
- package/src/models/time-entry-create.ts +89 -0
- package/src/models/time-entry-update.ts +91 -0
- package/src/models/time-entry.ts +98 -0
- package/src/models/transaction-create.ts +215 -0
- package/src/models/transaction-update.ts +215 -0
- package/src/models/transaction.ts +182 -0
- package/src/models/webhook-create.ts +100 -0
- package/src/models/webhook-update.ts +100 -0
- package/src/models/webhook.ts +138 -0
- package/src/sdk/calendar-events.ts +101 -0
- package/src/sdk/catalog-items.ts +98 -0
- package/src/sdk/clients.ts +95 -0
- package/src/sdk/contacts.ts +95 -0
- package/src/sdk/contracts.ts +101 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/inquiries.ts +101 -0
- package/src/sdk/invoices.ts +98 -0
- package/src/sdk/milestones.ts +98 -0
- package/src/sdk/payments.ts +81 -0
- package/src/sdk/payouts.ts +44 -0
- package/src/sdk/projects.ts +95 -0
- package/src/sdk/proposals.ts +101 -0
- package/src/sdk/sdk.ts +97 -0
- package/src/sdk/time-entries.ts +101 -0
- package/src/sdk/transactions.ts +101 -0
- package/src/sdk/webhooks.ts +101 -0
- package/src/types/async.ts +68 -0
- package/src/types/blobs.ts +33 -0
- package/src/types/const-date-time.ts +15 -0
- package/src/types/default-to-zero-value.ts +33 -0
- package/src/types/enums.ts +45 -0
- package/src/types/fp.ts +50 -0
- package/src/types/index.ts +13 -0
- package/src/types/operations.ts +105 -0
- package/src/types/primitives.ts +166 -0
- package/src/types/rfcdate.ts +54 -0
- package/src/types/smart-union.ts +153 -0
- package/src/types/streams.ts +21 -0
- package/src/types/unrecognized.ts +35 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { ClientCasaCore } from "../core.js";
|
|
7
|
+
import { encodeFormQuery } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
+
import * as M from "../lib/matchers.js";
|
|
10
|
+
import { compactMap } from "../lib/primitives.js";
|
|
11
|
+
import { safeParse } from "../lib/schemas.js";
|
|
12
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
+
import { resolveSecurity } from "../lib/security.js";
|
|
14
|
+
import { pathToFunc } from "../lib/url.js";
|
|
15
|
+
import { ClientCasaError } from "../models/errors/client-casa-error.js";
|
|
16
|
+
import {
|
|
17
|
+
ConnectionError,
|
|
18
|
+
InvalidRequestError,
|
|
19
|
+
RequestAbortedError,
|
|
20
|
+
RequestTimeoutError,
|
|
21
|
+
UnexpectedClientError,
|
|
22
|
+
} from "../models/errors/http-client-errors.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* List contacts
|
|
31
|
+
*/
|
|
32
|
+
export function contactsListContacts(
|
|
33
|
+
client: ClientCasaCore,
|
|
34
|
+
security: operations.ListContactsSecurity,
|
|
35
|
+
request?: operations.ListContactsRequest | undefined,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): APIPromise<
|
|
38
|
+
Result<
|
|
39
|
+
operations.ListContactsResponse,
|
|
40
|
+
| ClientCasaError
|
|
41
|
+
| ResponseValidationError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
| RequestAbortedError
|
|
44
|
+
| RequestTimeoutError
|
|
45
|
+
| InvalidRequestError
|
|
46
|
+
| UnexpectedClientError
|
|
47
|
+
| SDKValidationError
|
|
48
|
+
>
|
|
49
|
+
> {
|
|
50
|
+
return new APIPromise($do(
|
|
51
|
+
client,
|
|
52
|
+
security,
|
|
53
|
+
request,
|
|
54
|
+
options,
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async function $do(
|
|
59
|
+
client: ClientCasaCore,
|
|
60
|
+
security: operations.ListContactsSecurity,
|
|
61
|
+
request?: operations.ListContactsRequest | undefined,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): Promise<
|
|
64
|
+
[
|
|
65
|
+
Result<
|
|
66
|
+
operations.ListContactsResponse,
|
|
67
|
+
| ClientCasaError
|
|
68
|
+
| ResponseValidationError
|
|
69
|
+
| ConnectionError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| InvalidRequestError
|
|
73
|
+
| UnexpectedClientError
|
|
74
|
+
| SDKValidationError
|
|
75
|
+
>,
|
|
76
|
+
APICall,
|
|
77
|
+
]
|
|
78
|
+
> {
|
|
79
|
+
const parsed = safeParse(
|
|
80
|
+
request,
|
|
81
|
+
(value) =>
|
|
82
|
+
z.parse(z.optional(operations.ListContactsRequest$outboundSchema), value),
|
|
83
|
+
"Input validation failed",
|
|
84
|
+
);
|
|
85
|
+
if (!parsed.ok) {
|
|
86
|
+
return [parsed, { status: "invalid" }];
|
|
87
|
+
}
|
|
88
|
+
const payload = parsed.value;
|
|
89
|
+
const body = null;
|
|
90
|
+
|
|
91
|
+
const path = pathToFunc("/api/v1/contacts")();
|
|
92
|
+
|
|
93
|
+
const query = encodeFormQuery({
|
|
94
|
+
"clientId": payload?.clientId,
|
|
95
|
+
"page": payload?.page,
|
|
96
|
+
"pageSize": payload?.pageSize,
|
|
97
|
+
"role": payload?.role,
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
const headers = new Headers(compactMap({
|
|
101
|
+
Accept: "application/json",
|
|
102
|
+
}));
|
|
103
|
+
|
|
104
|
+
const requestSecurity = resolveSecurity(
|
|
105
|
+
[
|
|
106
|
+
{
|
|
107
|
+
fieldName: "x-api-key",
|
|
108
|
+
type: "apiKey:header",
|
|
109
|
+
value: security?.apiKey,
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
[
|
|
113
|
+
{
|
|
114
|
+
fieldName: "Authorization",
|
|
115
|
+
type: "http:bearer",
|
|
116
|
+
value: security?.bearer,
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
const context = {
|
|
122
|
+
options: client._options,
|
|
123
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
124
|
+
operationID: "listContacts",
|
|
125
|
+
oAuth2Scopes: null,
|
|
126
|
+
|
|
127
|
+
resolvedSecurity: requestSecurity,
|
|
128
|
+
|
|
129
|
+
securitySource: security,
|
|
130
|
+
retryConfig: options?.retries
|
|
131
|
+
|| client._options.retryConfig
|
|
132
|
+
|| { strategy: "none" },
|
|
133
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
const requestRes = client._createRequest(context, {
|
|
137
|
+
security: requestSecurity,
|
|
138
|
+
method: "GET",
|
|
139
|
+
baseURL: options?.serverURL,
|
|
140
|
+
path: path,
|
|
141
|
+
headers: headers,
|
|
142
|
+
query: query,
|
|
143
|
+
body: body,
|
|
144
|
+
userAgent: client._options.userAgent,
|
|
145
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
146
|
+
}, options);
|
|
147
|
+
if (!requestRes.ok) {
|
|
148
|
+
return [requestRes, { status: "invalid" }];
|
|
149
|
+
}
|
|
150
|
+
const req = requestRes.value;
|
|
151
|
+
|
|
152
|
+
const doResult = await client._do(req, {
|
|
153
|
+
context,
|
|
154
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
155
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
156
|
+
retryConfig: context.retryConfig,
|
|
157
|
+
retryCodes: context.retryCodes,
|
|
158
|
+
});
|
|
159
|
+
if (!doResult.ok) {
|
|
160
|
+
return [doResult, { status: "request-error", request: req }];
|
|
161
|
+
}
|
|
162
|
+
const response = doResult.value;
|
|
163
|
+
|
|
164
|
+
const [result] = await M.match<
|
|
165
|
+
operations.ListContactsResponse,
|
|
166
|
+
| ClientCasaError
|
|
167
|
+
| ResponseValidationError
|
|
168
|
+
| ConnectionError
|
|
169
|
+
| RequestAbortedError
|
|
170
|
+
| RequestTimeoutError
|
|
171
|
+
| InvalidRequestError
|
|
172
|
+
| UnexpectedClientError
|
|
173
|
+
| SDKValidationError
|
|
174
|
+
>(
|
|
175
|
+
M.json(200, operations.ListContactsResponse$inboundSchema),
|
|
176
|
+
M.fail("4XX"),
|
|
177
|
+
M.fail("5XX"),
|
|
178
|
+
)(response, req);
|
|
179
|
+
if (!result.ok) {
|
|
180
|
+
return [result, { status: "complete", request: req, response }];
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
return [result, { status: "complete", request: req, response }];
|
|
184
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { ClientCasaCore } from "../core.js";
|
|
7
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
+
import * as M from "../lib/matchers.js";
|
|
10
|
+
import { compactMap } from "../lib/primitives.js";
|
|
11
|
+
import { safeParse } from "../lib/schemas.js";
|
|
12
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
+
import { resolveSecurity } from "../lib/security.js";
|
|
14
|
+
import { pathToFunc } from "../lib/url.js";
|
|
15
|
+
import { ClientCasaError } from "../models/errors/client-casa-error.js";
|
|
16
|
+
import {
|
|
17
|
+
ConnectionError,
|
|
18
|
+
InvalidRequestError,
|
|
19
|
+
RequestAbortedError,
|
|
20
|
+
RequestTimeoutError,
|
|
21
|
+
UnexpectedClientError,
|
|
22
|
+
} from "../models/errors/http-client-errors.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
25
|
+
import * as models from "../models/index.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
+
import { Result } from "../types/fp.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Update a contact
|
|
32
|
+
*/
|
|
33
|
+
export function contactsUpdateContact(
|
|
34
|
+
client: ClientCasaCore,
|
|
35
|
+
security: operations.UpdateContactSecurity,
|
|
36
|
+
request: operations.UpdateContactRequest,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): APIPromise<
|
|
39
|
+
Result<
|
|
40
|
+
models.Contact,
|
|
41
|
+
| ClientCasaError
|
|
42
|
+
| ResponseValidationError
|
|
43
|
+
| ConnectionError
|
|
44
|
+
| RequestAbortedError
|
|
45
|
+
| RequestTimeoutError
|
|
46
|
+
| InvalidRequestError
|
|
47
|
+
| UnexpectedClientError
|
|
48
|
+
| SDKValidationError
|
|
49
|
+
>
|
|
50
|
+
> {
|
|
51
|
+
return new APIPromise($do(
|
|
52
|
+
client,
|
|
53
|
+
security,
|
|
54
|
+
request,
|
|
55
|
+
options,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async function $do(
|
|
60
|
+
client: ClientCasaCore,
|
|
61
|
+
security: operations.UpdateContactSecurity,
|
|
62
|
+
request: operations.UpdateContactRequest,
|
|
63
|
+
options?: RequestOptions,
|
|
64
|
+
): Promise<
|
|
65
|
+
[
|
|
66
|
+
Result<
|
|
67
|
+
models.Contact,
|
|
68
|
+
| ClientCasaError
|
|
69
|
+
| ResponseValidationError
|
|
70
|
+
| ConnectionError
|
|
71
|
+
| RequestAbortedError
|
|
72
|
+
| RequestTimeoutError
|
|
73
|
+
| InvalidRequestError
|
|
74
|
+
| UnexpectedClientError
|
|
75
|
+
| SDKValidationError
|
|
76
|
+
>,
|
|
77
|
+
APICall,
|
|
78
|
+
]
|
|
79
|
+
> {
|
|
80
|
+
const parsed = safeParse(
|
|
81
|
+
request,
|
|
82
|
+
(value) => z.parse(operations.UpdateContactRequest$outboundSchema, value),
|
|
83
|
+
"Input validation failed",
|
|
84
|
+
);
|
|
85
|
+
if (!parsed.ok) {
|
|
86
|
+
return [parsed, { status: "invalid" }];
|
|
87
|
+
}
|
|
88
|
+
const payload = parsed.value;
|
|
89
|
+
const body = encodeJSON("body", payload.body, { explode: true });
|
|
90
|
+
|
|
91
|
+
const pathParams = {
|
|
92
|
+
id: encodeSimple("id", payload.id, {
|
|
93
|
+
explode: false,
|
|
94
|
+
charEncoding: "percent",
|
|
95
|
+
}),
|
|
96
|
+
};
|
|
97
|
+
const path = pathToFunc("/api/v1/contacts/{id}")(pathParams);
|
|
98
|
+
|
|
99
|
+
const headers = new Headers(compactMap({
|
|
100
|
+
"Content-Type": "application/json",
|
|
101
|
+
Accept: "application/json",
|
|
102
|
+
}));
|
|
103
|
+
|
|
104
|
+
const requestSecurity = resolveSecurity(
|
|
105
|
+
[
|
|
106
|
+
{
|
|
107
|
+
fieldName: "x-api-key",
|
|
108
|
+
type: "apiKey:header",
|
|
109
|
+
value: security?.apiKey,
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
[
|
|
113
|
+
{
|
|
114
|
+
fieldName: "Authorization",
|
|
115
|
+
type: "http:bearer",
|
|
116
|
+
value: security?.bearer,
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
const context = {
|
|
122
|
+
options: client._options,
|
|
123
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
124
|
+
operationID: "updateContact",
|
|
125
|
+
oAuth2Scopes: null,
|
|
126
|
+
|
|
127
|
+
resolvedSecurity: requestSecurity,
|
|
128
|
+
|
|
129
|
+
securitySource: security,
|
|
130
|
+
retryConfig: options?.retries
|
|
131
|
+
|| client._options.retryConfig
|
|
132
|
+
|| { strategy: "none" },
|
|
133
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
const requestRes = client._createRequest(context, {
|
|
137
|
+
security: requestSecurity,
|
|
138
|
+
method: "PATCH",
|
|
139
|
+
baseURL: options?.serverURL,
|
|
140
|
+
path: path,
|
|
141
|
+
headers: headers,
|
|
142
|
+
body: body,
|
|
143
|
+
userAgent: client._options.userAgent,
|
|
144
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
145
|
+
}, options);
|
|
146
|
+
if (!requestRes.ok) {
|
|
147
|
+
return [requestRes, { status: "invalid" }];
|
|
148
|
+
}
|
|
149
|
+
const req = requestRes.value;
|
|
150
|
+
|
|
151
|
+
const doResult = await client._do(req, {
|
|
152
|
+
context,
|
|
153
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
154
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
155
|
+
retryConfig: context.retryConfig,
|
|
156
|
+
retryCodes: context.retryCodes,
|
|
157
|
+
});
|
|
158
|
+
if (!doResult.ok) {
|
|
159
|
+
return [doResult, { status: "request-error", request: req }];
|
|
160
|
+
}
|
|
161
|
+
const response = doResult.value;
|
|
162
|
+
|
|
163
|
+
const [result] = await M.match<
|
|
164
|
+
models.Contact,
|
|
165
|
+
| ClientCasaError
|
|
166
|
+
| ResponseValidationError
|
|
167
|
+
| ConnectionError
|
|
168
|
+
| RequestAbortedError
|
|
169
|
+
| RequestTimeoutError
|
|
170
|
+
| InvalidRequestError
|
|
171
|
+
| UnexpectedClientError
|
|
172
|
+
| SDKValidationError
|
|
173
|
+
>(
|
|
174
|
+
M.json(200, models.Contact$inboundSchema),
|
|
175
|
+
M.fail("4XX"),
|
|
176
|
+
M.fail("5XX"),
|
|
177
|
+
)(response, req);
|
|
178
|
+
if (!result.ok) {
|
|
179
|
+
return [result, { status: "complete", request: req, response }];
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
return [result, { status: "complete", request: req, response }];
|
|
183
|
+
}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { ClientCasaCore } from "../core.js";
|
|
7
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
+
import * as M from "../lib/matchers.js";
|
|
10
|
+
import { compactMap } from "../lib/primitives.js";
|
|
11
|
+
import { safeParse } from "../lib/schemas.js";
|
|
12
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
+
import { resolveSecurity } from "../lib/security.js";
|
|
14
|
+
import { pathToFunc } from "../lib/url.js";
|
|
15
|
+
import { ClientCasaError } from "../models/errors/client-casa-error.js";
|
|
16
|
+
import {
|
|
17
|
+
ConnectionError,
|
|
18
|
+
InvalidRequestError,
|
|
19
|
+
RequestAbortedError,
|
|
20
|
+
RequestTimeoutError,
|
|
21
|
+
UnexpectedClientError,
|
|
22
|
+
} from "../models/errors/http-client-errors.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
25
|
+
import * as models from "../models/index.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
+
import { Result } from "../types/fp.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Create a draft contract
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Creates a draft contract. Signing flow, signer assignment, and Tiptap content are dashboard-managed.
|
|
35
|
+
*/
|
|
36
|
+
export function contractsCreateContract(
|
|
37
|
+
client: ClientCasaCore,
|
|
38
|
+
security: operations.CreateContractSecurity,
|
|
39
|
+
request: models.ContractCreate,
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): APIPromise<
|
|
42
|
+
Result<
|
|
43
|
+
models.Contract,
|
|
44
|
+
| ClientCasaError
|
|
45
|
+
| ResponseValidationError
|
|
46
|
+
| ConnectionError
|
|
47
|
+
| RequestAbortedError
|
|
48
|
+
| RequestTimeoutError
|
|
49
|
+
| InvalidRequestError
|
|
50
|
+
| UnexpectedClientError
|
|
51
|
+
| SDKValidationError
|
|
52
|
+
>
|
|
53
|
+
> {
|
|
54
|
+
return new APIPromise($do(
|
|
55
|
+
client,
|
|
56
|
+
security,
|
|
57
|
+
request,
|
|
58
|
+
options,
|
|
59
|
+
));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
async function $do(
|
|
63
|
+
client: ClientCasaCore,
|
|
64
|
+
security: operations.CreateContractSecurity,
|
|
65
|
+
request: models.ContractCreate,
|
|
66
|
+
options?: RequestOptions,
|
|
67
|
+
): Promise<
|
|
68
|
+
[
|
|
69
|
+
Result<
|
|
70
|
+
models.Contract,
|
|
71
|
+
| ClientCasaError
|
|
72
|
+
| ResponseValidationError
|
|
73
|
+
| ConnectionError
|
|
74
|
+
| RequestAbortedError
|
|
75
|
+
| RequestTimeoutError
|
|
76
|
+
| InvalidRequestError
|
|
77
|
+
| UnexpectedClientError
|
|
78
|
+
| SDKValidationError
|
|
79
|
+
>,
|
|
80
|
+
APICall,
|
|
81
|
+
]
|
|
82
|
+
> {
|
|
83
|
+
const parsed = safeParse(
|
|
84
|
+
request,
|
|
85
|
+
(value) => z.parse(models.ContractCreate$outboundSchema, value),
|
|
86
|
+
"Input validation failed",
|
|
87
|
+
);
|
|
88
|
+
if (!parsed.ok) {
|
|
89
|
+
return [parsed, { status: "invalid" }];
|
|
90
|
+
}
|
|
91
|
+
const payload = parsed.value;
|
|
92
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
93
|
+
|
|
94
|
+
const path = pathToFunc("/api/v1/contracts")();
|
|
95
|
+
|
|
96
|
+
const headers = new Headers(compactMap({
|
|
97
|
+
"Content-Type": "application/json",
|
|
98
|
+
Accept: "application/json",
|
|
99
|
+
}));
|
|
100
|
+
|
|
101
|
+
const requestSecurity = resolveSecurity(
|
|
102
|
+
[
|
|
103
|
+
{
|
|
104
|
+
fieldName: "x-api-key",
|
|
105
|
+
type: "apiKey:header",
|
|
106
|
+
value: security?.apiKey,
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
[
|
|
110
|
+
{
|
|
111
|
+
fieldName: "Authorization",
|
|
112
|
+
type: "http:bearer",
|
|
113
|
+
value: security?.bearer,
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
);
|
|
117
|
+
|
|
118
|
+
const context = {
|
|
119
|
+
options: client._options,
|
|
120
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
121
|
+
operationID: "createContract",
|
|
122
|
+
oAuth2Scopes: null,
|
|
123
|
+
|
|
124
|
+
resolvedSecurity: requestSecurity,
|
|
125
|
+
|
|
126
|
+
securitySource: security,
|
|
127
|
+
retryConfig: options?.retries
|
|
128
|
+
|| client._options.retryConfig
|
|
129
|
+
|| { strategy: "none" },
|
|
130
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
const requestRes = client._createRequest(context, {
|
|
134
|
+
security: requestSecurity,
|
|
135
|
+
method: "POST",
|
|
136
|
+
baseURL: options?.serverURL,
|
|
137
|
+
path: path,
|
|
138
|
+
headers: headers,
|
|
139
|
+
body: body,
|
|
140
|
+
userAgent: client._options.userAgent,
|
|
141
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
142
|
+
}, options);
|
|
143
|
+
if (!requestRes.ok) {
|
|
144
|
+
return [requestRes, { status: "invalid" }];
|
|
145
|
+
}
|
|
146
|
+
const req = requestRes.value;
|
|
147
|
+
|
|
148
|
+
const doResult = await client._do(req, {
|
|
149
|
+
context,
|
|
150
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
151
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
152
|
+
retryConfig: context.retryConfig,
|
|
153
|
+
retryCodes: context.retryCodes,
|
|
154
|
+
});
|
|
155
|
+
if (!doResult.ok) {
|
|
156
|
+
return [doResult, { status: "request-error", request: req }];
|
|
157
|
+
}
|
|
158
|
+
const response = doResult.value;
|
|
159
|
+
|
|
160
|
+
const [result] = await M.match<
|
|
161
|
+
models.Contract,
|
|
162
|
+
| ClientCasaError
|
|
163
|
+
| ResponseValidationError
|
|
164
|
+
| ConnectionError
|
|
165
|
+
| RequestAbortedError
|
|
166
|
+
| RequestTimeoutError
|
|
167
|
+
| InvalidRequestError
|
|
168
|
+
| UnexpectedClientError
|
|
169
|
+
| SDKValidationError
|
|
170
|
+
>(
|
|
171
|
+
M.json(201, models.Contract$inboundSchema),
|
|
172
|
+
M.fail("4XX"),
|
|
173
|
+
M.fail("5XX"),
|
|
174
|
+
)(response, req);
|
|
175
|
+
if (!result.ok) {
|
|
176
|
+
return [result, { status: "complete", request: req, response }];
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
return [result, { status: "complete", request: req, response }];
|
|
180
|
+
}
|