@clientcasa/sdk 0.3.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -24
- package/esm/funcs/catalog-items-list.js +1 -0
- package/esm/funcs/catalog-items-list.js.map +1 -1
- package/esm/funcs/{inquiries-get.d.ts → form-submissions-get.d.ts} +3 -3
- package/esm/funcs/form-submissions-get.d.ts.map +1 -0
- package/esm/funcs/{inquiries-delete.js → form-submissions-get.js} +9 -8
- package/esm/funcs/form-submissions-get.js.map +1 -0
- package/esm/funcs/form-submissions-list.d.ts +21 -0
- package/esm/funcs/form-submissions-list.d.ts.map +1 -0
- package/esm/funcs/{inquiries-list.js → form-submissions-list.js} +14 -9
- package/esm/funcs/form-submissions-list.js.map +1 -0
- package/esm/funcs/{proposals-get.d.ts → forms-and-agreements-get.d.ts} +2 -2
- package/esm/funcs/forms-and-agreements-get.d.ts.map +1 -0
- package/esm/funcs/{proposals-get.js → forms-and-agreements-get.js} +6 -6
- package/esm/funcs/forms-and-agreements-get.js.map +1 -0
- package/esm/funcs/{inquiries-delete.d.ts → forms-and-agreements-list.d.ts} +6 -3
- package/esm/funcs/forms-and-agreements-list.d.ts.map +1 -0
- package/esm/funcs/{proposals-list.js → forms-and-agreements-list.js} +8 -8
- package/esm/funcs/forms-and-agreements-list.js.map +1 -0
- package/esm/funcs/{proposals-list.d.ts → forms-get.d.ts} +4 -6
- package/esm/funcs/forms-get.d.ts.map +1 -0
- package/esm/funcs/{inquiries-get.js → forms-get.js} +7 -7
- package/esm/funcs/forms-get.js.map +1 -0
- package/esm/funcs/{inquiries-list.d.ts → forms-list.d.ts} +3 -3
- package/esm/funcs/forms-list.d.ts.map +1 -0
- package/esm/funcs/forms-list.js +138 -0
- package/esm/funcs/forms-list.js.map +1 -0
- package/esm/funcs/invoices-create.d.ts +1 -1
- package/esm/funcs/invoices-create.js +1 -1
- package/esm/funcs/invoices-list.js +1 -0
- package/esm/funcs/invoices-list.js.map +1 -1
- package/esm/funcs/milestones-create.d.ts +1 -1
- package/esm/funcs/milestones-create.js +1 -1
- package/esm/hooks/types.d.ts +1 -0
- package/esm/hooks/types.d.ts.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/sdks.d.ts.map +1 -1
- package/esm/lib/sdks.js +13 -4
- package/esm/lib/sdks.js.map +1 -1
- package/esm/models/api-error.d.ts +1 -0
- package/esm/models/api-error.d.ts.map +1 -1
- package/esm/models/api-error.js +1 -0
- package/esm/models/api-error.js.map +1 -1
- package/esm/models/catalog-item.d.ts +17 -0
- package/esm/models/catalog-item.d.ts.map +1 -1
- package/esm/models/catalog-item.js +15 -0
- package/esm/models/catalog-item.js.map +1 -1
- package/esm/models/client-create.d.ts +5 -1
- package/esm/models/client-create.d.ts.map +1 -1
- package/esm/models/client-create.js +5 -1
- package/esm/models/client-create.js.map +1 -1
- package/esm/models/client-document-list.d.ts +13 -0
- package/esm/models/client-document-list.d.ts.map +1 -0
- package/esm/models/client-document-list.js +16 -0
- package/esm/models/client-document-list.js.map +1 -0
- package/esm/models/client-document.d.ts +70 -0
- package/esm/models/client-document.d.ts.map +1 -0
- package/esm/models/client-document.js +45 -0
- package/esm/models/client-document.js.map +1 -0
- package/esm/models/client-update.d.ts +5 -1
- package/esm/models/client-update.d.ts.map +1 -1
- package/esm/models/client-update.js +5 -1
- package/esm/models/client-update.js.map +1 -1
- package/esm/models/client.d.ts +5 -1
- package/esm/models/client.d.ts.map +1 -1
- package/esm/models/client.js +5 -1
- package/esm/models/client.js.map +1 -1
- package/esm/models/contact.d.ts +1 -1
- package/esm/models/contact.d.ts.map +1 -1
- package/esm/models/contact.js +1 -1
- package/esm/models/contact.js.map +1 -1
- package/esm/models/contract-create.d.ts +0 -5
- package/esm/models/contract-create.d.ts.map +1 -1
- package/esm/models/contract-create.js +0 -1
- package/esm/models/contract-create.js.map +1 -1
- package/esm/models/contract.d.ts +0 -4
- package/esm/models/contract.d.ts.map +1 -1
- package/esm/models/contract.js +0 -1
- package/esm/models/contract.js.map +1 -1
- package/esm/models/form-list.d.ts +13 -0
- package/esm/models/form-list.d.ts.map +1 -0
- package/esm/models/form-list.js +17 -0
- package/esm/models/form-list.js.map +1 -0
- package/esm/models/form-submission-answer.d.ts +12 -0
- package/esm/models/form-submission-answer.d.ts.map +1 -0
- package/esm/models/form-submission-answer.js +16 -0
- package/esm/models/form-submission-answer.js.map +1 -0
- package/esm/models/form-submission-list.d.ts +13 -0
- package/esm/models/form-submission-list.d.ts.map +1 -0
- package/esm/models/form-submission-list.js +16 -0
- package/esm/models/form-submission-list.js.map +1 -0
- package/esm/models/form-submission.d.ts +54 -0
- package/esm/models/form-submission.d.ts.map +1 -0
- package/esm/models/form-submission.js +38 -0
- package/esm/models/form-submission.js.map +1 -0
- package/esm/models/form.d.ts +36 -0
- package/esm/models/form.d.ts.map +1 -0
- package/esm/models/form.js +30 -0
- package/esm/models/form.js.map +1 -0
- package/esm/models/index.d.ts +7 -8
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +7 -8
- package/esm/models/index.js.map +1 -1
- package/esm/models/invoice.d.ts +4 -1
- package/esm/models/invoice.d.ts.map +1 -1
- package/esm/models/invoice.js +1 -1
- package/esm/models/invoice.js.map +1 -1
- package/esm/models/milestone-create.d.ts +1 -1
- package/esm/models/milestone-create.js +1 -1
- package/esm/models/milestone-create.js.map +1 -1
- package/esm/models/milestone.d.ts +1 -1
- package/esm/models/milestone.js +1 -1
- package/esm/models/milestone.js.map +1 -1
- package/esm/models/operations/get-client-document.d.ts +27 -0
- package/esm/models/operations/get-client-document.d.ts.map +1 -0
- package/esm/models/operations/get-client-document.js +20 -0
- package/esm/models/operations/get-client-document.js.map +1 -0
- package/esm/models/operations/get-form-submission.d.ts +27 -0
- package/esm/models/operations/get-form-submission.d.ts.map +1 -0
- package/esm/models/operations/get-form-submission.js +20 -0
- package/esm/models/operations/get-form-submission.js.map +1 -0
- package/esm/models/operations/get-form.d.ts +27 -0
- package/esm/models/operations/get-form.d.ts.map +1 -0
- package/esm/models/operations/get-form.js +20 -0
- package/esm/models/operations/get-form.js.map +1 -0
- package/esm/models/operations/index.d.ts +6 -10
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +6 -10
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/list-catalog-items.d.ts +9 -0
- package/esm/models/operations/list-catalog-items.d.ts.map +1 -1
- package/esm/models/operations/list-catalog-items.js +8 -0
- package/esm/models/operations/list-catalog-items.js.map +1 -1
- package/esm/models/operations/list-client-documents.d.ts +61 -0
- package/esm/models/operations/list-client-documents.d.ts.map +1 -0
- package/esm/models/operations/list-client-documents.js +50 -0
- package/esm/models/operations/list-client-documents.js.map +1 -0
- package/esm/models/operations/list-clients.d.ts +5 -1
- package/esm/models/operations/list-clients.d.ts.map +1 -1
- package/esm/models/operations/list-clients.js +5 -1
- package/esm/models/operations/list-clients.js.map +1 -1
- package/esm/models/operations/list-form-submissions.d.ts +64 -0
- package/esm/models/operations/list-form-submissions.d.ts.map +1 -0
- package/esm/models/operations/list-form-submissions.js +51 -0
- package/esm/models/operations/list-form-submissions.js.map +1 -0
- package/esm/models/operations/list-forms.d.ts +47 -0
- package/esm/models/operations/list-forms.d.ts.map +1 -0
- package/esm/models/operations/list-forms.js +43 -0
- package/esm/models/operations/list-forms.js.map +1 -0
- package/esm/models/operations/list-invoices.d.ts +18 -1
- package/esm/models/operations/list-invoices.d.ts.map +1 -1
- package/esm/models/operations/list-invoices.js +10 -1
- package/esm/models/operations/list-invoices.js.map +1 -1
- package/esm/models/operations/list-milestones.d.ts +1 -1
- package/esm/models/operations/list-milestones.js +1 -1
- package/esm/models/operations/list-milestones.js.map +1 -1
- package/esm/models/operations/list-payments.d.ts +4 -4
- package/esm/models/operations/list-payments.d.ts.map +1 -1
- package/esm/models/operations/list-payments.js +3 -3
- package/esm/models/operations/list-payments.js.map +1 -1
- package/esm/models/operations/list-webhooks.d.ts +10 -11
- package/esm/models/operations/list-webhooks.d.ts.map +1 -1
- package/esm/models/operations/list-webhooks.js +10 -11
- package/esm/models/operations/list-webhooks.js.map +1 -1
- package/esm/models/webhook-create.d.ts +10 -11
- package/esm/models/webhook-create.d.ts.map +1 -1
- package/esm/models/webhook-create.js +10 -11
- package/esm/models/webhook-create.js.map +1 -1
- package/esm/models/webhook-update.d.ts +10 -11
- package/esm/models/webhook-update.d.ts.map +1 -1
- package/esm/models/webhook-update.js +10 -11
- package/esm/models/webhook-update.js.map +1 -1
- package/esm/models/webhook.d.ts +10 -11
- package/esm/models/webhook.d.ts.map +1 -1
- package/esm/models/webhook.js +10 -11
- package/esm/models/webhook.js.map +1 -1
- package/esm/sdk/form-submissions.d.ts +20 -0
- package/esm/sdk/form-submissions.d.ts.map +1 -0
- package/esm/sdk/form-submissions.js +26 -0
- package/esm/sdk/form-submissions.js.map +1 -0
- package/esm/sdk/forms-and-agreements.d.ts +17 -0
- package/esm/sdk/forms-and-agreements.d.ts.map +1 -0
- package/esm/sdk/forms-and-agreements.js +23 -0
- package/esm/sdk/forms-and-agreements.js.map +1 -0
- package/esm/sdk/forms.d.ts +17 -0
- package/esm/sdk/forms.d.ts.map +1 -0
- package/esm/sdk/forms.js +23 -0
- package/esm/sdk/forms.js.map +1 -0
- package/esm/sdk/invoices.d.ts +1 -1
- package/esm/sdk/invoices.js +1 -1
- package/esm/sdk/milestones.d.ts +1 -1
- package/esm/sdk/milestones.js +1 -1
- package/esm/sdk/sdk.d.ts +9 -6
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +15 -10
- package/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/catalog-items-list.ts +1 -0
- package/src/funcs/{proposals-delete.ts → form-submissions-get.ts} +16 -14
- package/src/funcs/form-submissions-list.ts +284 -0
- package/src/funcs/{proposals-get.ts → forms-and-agreements-get.ts} +13 -12
- package/src/funcs/{proposals-list.ts → forms-and-agreements-list.ts} +15 -15
- package/src/funcs/{inquiries-get.ts → forms-get.ts} +13 -13
- package/src/funcs/{inquiries-list.ts → forms-list.ts} +17 -22
- package/src/funcs/invoices-create.ts +1 -1
- package/src/funcs/invoices-list.ts +1 -0
- package/src/funcs/milestones-create.ts +1 -1
- package/src/hooks/types.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +13 -4
- package/src/models/api-error.ts +1 -0
- package/src/models/catalog-item.ts +28 -0
- package/src/models/client-create.ts +5 -1
- package/src/models/client-document-list.ts +40 -0
- package/src/models/client-document.ts +114 -0
- package/src/models/client-update.ts +5 -1
- package/src/models/client.ts +5 -1
- package/src/models/contact.ts +2 -2
- package/src/models/contract-create.ts +0 -6
- package/src/models/contract.ts +0 -5
- package/src/models/{inquiry-list.ts → form-list.ts} +9 -9
- package/src/models/form-submission-answer.ts +35 -0
- package/src/models/form-submission-list.ts +40 -0
- package/src/models/form-submission.ts +99 -0
- package/src/models/form.ts +67 -0
- package/src/models/index.ts +7 -8
- package/src/models/invoice.ts +5 -1
- package/src/models/milestone-create.ts +1 -1
- package/src/models/milestone.ts +1 -1
- package/src/models/operations/get-client-document.ts +61 -0
- package/src/models/operations/get-form-submission.ts +61 -0
- package/src/models/operations/get-form.ts +55 -0
- package/src/models/operations/index.ts +6 -10
- package/src/models/operations/list-catalog-items.ts +13 -0
- package/src/models/operations/list-client-documents.ts +132 -0
- package/src/models/operations/list-clients.ts +5 -1
- package/src/models/operations/list-form-submissions.ts +142 -0
- package/src/models/operations/list-forms.ts +112 -0
- package/src/models/operations/list-invoices.ts +23 -1
- package/src/models/operations/list-milestones.ts +1 -1
- package/src/models/operations/list-payments.ts +7 -5
- package/src/models/operations/list-webhooks.ts +10 -11
- package/src/models/webhook-create.ts +10 -11
- package/src/models/webhook-update.ts +10 -11
- package/src/models/webhook.ts +10 -11
- package/src/sdk/form-submissions.ts +50 -0
- package/src/sdk/forms-and-agreements.ts +47 -0
- package/src/sdk/forms.ts +45 -0
- package/src/sdk/invoices.ts +1 -1
- package/src/sdk/milestones.ts +1 -1
- package/src/sdk/sdk.ts +18 -12
- package/esm/funcs/inquiries-create.d.ts +0 -19
- package/esm/funcs/inquiries-create.d.ts.map +0 -1
- package/esm/funcs/inquiries-create.js +0 -96
- package/esm/funcs/inquiries-create.js.map +0 -1
- package/esm/funcs/inquiries-delete.d.ts.map +0 -1
- package/esm/funcs/inquiries-delete.js.map +0 -1
- package/esm/funcs/inquiries-get.d.ts.map +0 -1
- package/esm/funcs/inquiries-get.js.map +0 -1
- package/esm/funcs/inquiries-list.d.ts.map +0 -1
- package/esm/funcs/inquiries-list.js.map +0 -1
- package/esm/funcs/inquiries-update.d.ts +0 -19
- package/esm/funcs/inquiries-update.d.ts.map +0 -1
- package/esm/funcs/inquiries-update.js +0 -111
- package/esm/funcs/inquiries-update.js.map +0 -1
- package/esm/funcs/proposals-create.d.ts +0 -19
- package/esm/funcs/proposals-create.d.ts.map +0 -1
- package/esm/funcs/proposals-create.js +0 -96
- package/esm/funcs/proposals-create.js.map +0 -1
- package/esm/funcs/proposals-delete.d.ts +0 -15
- package/esm/funcs/proposals-delete.d.ts.map +0 -1
- package/esm/funcs/proposals-delete.js +0 -106
- package/esm/funcs/proposals-delete.js.map +0 -1
- package/esm/funcs/proposals-get.d.ts.map +0 -1
- package/esm/funcs/proposals-get.js.map +0 -1
- package/esm/funcs/proposals-list.d.ts.map +0 -1
- package/esm/funcs/proposals-list.js.map +0 -1
- package/esm/funcs/proposals-update.d.ts +0 -19
- package/esm/funcs/proposals-update.d.ts.map +0 -1
- package/esm/funcs/proposals-update.js +0 -111
- package/esm/funcs/proposals-update.js.map +0 -1
- package/esm/models/inquiry-create.d.ts +0 -45
- package/esm/models/inquiry-create.d.ts.map +0 -1
- package/esm/models/inquiry-create.js +0 -28
- package/esm/models/inquiry-create.js.map +0 -1
- package/esm/models/inquiry-list.d.ts +0 -13
- package/esm/models/inquiry-list.d.ts.map +0 -1
- package/esm/models/inquiry-list.js +0 -17
- package/esm/models/inquiry-list.js.map +0 -1
- package/esm/models/inquiry-update.d.ts +0 -45
- package/esm/models/inquiry-update.d.ts.map +0 -1
- package/esm/models/inquiry-update.js +0 -29
- package/esm/models/inquiry-update.js.map +0 -1
- package/esm/models/inquiry.d.ts +0 -78
- package/esm/models/inquiry.d.ts.map +0 -1
- package/esm/models/inquiry.js +0 -51
- package/esm/models/inquiry.js.map +0 -1
- package/esm/models/operations/create-inquiry.d.ts +0 -30
- package/esm/models/operations/create-inquiry.d.ts.map +0 -1
- package/esm/models/operations/create-inquiry.js +0 -27
- package/esm/models/operations/create-inquiry.js.map +0 -1
- package/esm/models/operations/create-proposal.d.ts +0 -30
- package/esm/models/operations/create-proposal.d.ts.map +0 -1
- package/esm/models/operations/create-proposal.js +0 -27
- package/esm/models/operations/create-proposal.js.map +0 -1
- package/esm/models/operations/delete-inquiry.d.ts +0 -27
- package/esm/models/operations/delete-inquiry.d.ts.map +0 -1
- package/esm/models/operations/delete-inquiry.js +0 -20
- package/esm/models/operations/delete-inquiry.js.map +0 -1
- package/esm/models/operations/delete-proposal.d.ts +0 -27
- package/esm/models/operations/delete-proposal.d.ts.map +0 -1
- package/esm/models/operations/delete-proposal.js +0 -20
- package/esm/models/operations/delete-proposal.js.map +0 -1
- package/esm/models/operations/get-inquiry.d.ts +0 -27
- package/esm/models/operations/get-inquiry.d.ts.map +0 -1
- package/esm/models/operations/get-inquiry.js +0 -20
- package/esm/models/operations/get-inquiry.js.map +0 -1
- package/esm/models/operations/get-proposal.d.ts +0 -27
- package/esm/models/operations/get-proposal.d.ts.map +0 -1
- package/esm/models/operations/get-proposal.js +0 -20
- package/esm/models/operations/get-proposal.js.map +0 -1
- package/esm/models/operations/list-inquiries.d.ts +0 -60
- package/esm/models/operations/list-inquiries.d.ts.map +0 -1
- package/esm/models/operations/list-inquiries.js +0 -55
- package/esm/models/operations/list-inquiries.js.map +0 -1
- package/esm/models/operations/list-proposals.d.ts +0 -56
- package/esm/models/operations/list-proposals.d.ts.map +0 -1
- package/esm/models/operations/list-proposals.js +0 -48
- package/esm/models/operations/list-proposals.js.map +0 -1
- package/esm/models/operations/update-inquiry.d.ts +0 -30
- package/esm/models/operations/update-inquiry.d.ts.map +0 -1
- package/esm/models/operations/update-inquiry.js +0 -22
- package/esm/models/operations/update-inquiry.js.map +0 -1
- package/esm/models/operations/update-proposal.d.ts +0 -30
- package/esm/models/operations/update-proposal.d.ts.map +0 -1
- package/esm/models/operations/update-proposal.js +0 -22
- package/esm/models/operations/update-proposal.js.map +0 -1
- package/esm/models/proposal-create.d.ts +0 -45
- package/esm/models/proposal-create.d.ts.map +0 -1
- package/esm/models/proposal-create.js +0 -26
- package/esm/models/proposal-create.js.map +0 -1
- package/esm/models/proposal-list.d.ts +0 -13
- package/esm/models/proposal-list.d.ts.map +0 -1
- package/esm/models/proposal-list.js +0 -16
- package/esm/models/proposal-list.js.map +0 -1
- package/esm/models/proposal-update.d.ts +0 -43
- package/esm/models/proposal-update.d.ts.map +0 -1
- package/esm/models/proposal-update.js +0 -27
- package/esm/models/proposal-update.js.map +0 -1
- package/esm/models/proposal.d.ts +0 -70
- package/esm/models/proposal.d.ts.map +0 -1
- package/esm/models/proposal.js +0 -52
- package/esm/models/proposal.js.map +0 -1
- package/esm/sdk/inquiries.d.ts +0 -35
- package/esm/sdk/inquiries.d.ts.map +0 -1
- package/esm/sdk/inquiries.js +0 -50
- package/esm/sdk/inquiries.js.map +0 -1
- package/esm/sdk/proposals.d.ts +0 -35
- package/esm/sdk/proposals.d.ts.map +0 -1
- package/esm/sdk/proposals.js +0 -50
- package/esm/sdk/proposals.js.map +0 -1
- package/src/funcs/inquiries-create.ts +0 -195
- package/src/funcs/inquiries-delete.ts +0 -201
- package/src/funcs/inquiries-update.ts +0 -206
- package/src/funcs/proposals-create.ts +0 -195
- package/src/funcs/proposals-update.ts +0 -206
- package/src/models/inquiry-create.ts +0 -72
- package/src/models/inquiry-update.ts +0 -80
- package/src/models/inquiry.ts +0 -123
- package/src/models/operations/create-inquiry.ts +0 -73
- package/src/models/operations/create-proposal.ts +0 -73
- package/src/models/operations/delete-inquiry.ts +0 -61
- package/src/models/operations/delete-proposal.ts +0 -61
- package/src/models/operations/get-inquiry.ts +0 -61
- package/src/models/operations/get-proposal.ts +0 -61
- package/src/models/operations/list-inquiries.ts +0 -130
- package/src/models/operations/list-proposals.ts +0 -123
- package/src/models/operations/update-inquiry.ts +0 -65
- package/src/models/operations/update-proposal.ts +0 -65
- package/src/models/proposal-create.ts +0 -86
- package/src/models/proposal-list.ts +0 -35
- package/src/models/proposal-update.ts +0 -84
- package/src/models/proposal.ts +0 -120
- package/src/sdk/inquiries.ts +0 -102
- package/src/sdk/proposals.ts +0 -102
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
11
|
+
import * as models from "../index.js";
|
|
12
|
+
|
|
13
|
+
export type ListFormsSecurity = {
|
|
14
|
+
apiKey?: string | undefined;
|
|
15
|
+
bearer?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const ListFormsKind = {
|
|
19
|
+
Inquiry: "inquiry",
|
|
20
|
+
Questionnaire: "questionnaire",
|
|
21
|
+
} as const;
|
|
22
|
+
export type ListFormsKind = ClosedEnum<typeof ListFormsKind>;
|
|
23
|
+
|
|
24
|
+
export type ListFormsRequest = {
|
|
25
|
+
page?: number | undefined;
|
|
26
|
+
pageSize?: number | undefined;
|
|
27
|
+
kind?: ListFormsKind | undefined;
|
|
28
|
+
slug?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export type ListFormsResponse = {
|
|
32
|
+
result: models.FormList;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type ListFormsSecurity$Outbound = {
|
|
37
|
+
apiKey?: string | undefined;
|
|
38
|
+
bearer?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const ListFormsSecurity$outboundSchema: z.ZodMiniType<
|
|
43
|
+
ListFormsSecurity$Outbound,
|
|
44
|
+
ListFormsSecurity
|
|
45
|
+
> = z.object({
|
|
46
|
+
apiKey: z.optional(z.string()),
|
|
47
|
+
bearer: z.optional(z.string()),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export function listFormsSecurityToJSON(
|
|
51
|
+
listFormsSecurity: ListFormsSecurity,
|
|
52
|
+
): string {
|
|
53
|
+
return JSON.stringify(
|
|
54
|
+
ListFormsSecurity$outboundSchema.parse(listFormsSecurity),
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const ListFormsKind$outboundSchema: z.ZodMiniEnum<typeof ListFormsKind> =
|
|
60
|
+
z.enum(ListFormsKind);
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export type ListFormsRequest$Outbound = {
|
|
64
|
+
page: number;
|
|
65
|
+
pageSize: number;
|
|
66
|
+
kind?: string | undefined;
|
|
67
|
+
slug?: string | undefined;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const ListFormsRequest$outboundSchema: z.ZodMiniType<
|
|
72
|
+
ListFormsRequest$Outbound,
|
|
73
|
+
ListFormsRequest
|
|
74
|
+
> = z.object({
|
|
75
|
+
page: z._default(z.int(), 1),
|
|
76
|
+
pageSize: z._default(z.int(), 25),
|
|
77
|
+
kind: z.optional(ListFormsKind$outboundSchema),
|
|
78
|
+
slug: z.optional(z.string()),
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
export function listFormsRequestToJSON(
|
|
82
|
+
listFormsRequest: ListFormsRequest,
|
|
83
|
+
): string {
|
|
84
|
+
return JSON.stringify(
|
|
85
|
+
ListFormsRequest$outboundSchema.parse(listFormsRequest),
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const ListFormsResponse$inboundSchema: z.ZodMiniType<
|
|
91
|
+
ListFormsResponse,
|
|
92
|
+
unknown
|
|
93
|
+
> = z.pipe(
|
|
94
|
+
z.object({
|
|
95
|
+
Result: models.FormList$inboundSchema,
|
|
96
|
+
}),
|
|
97
|
+
z.transform((v) => {
|
|
98
|
+
return remap$(v, {
|
|
99
|
+
"Result": "result",
|
|
100
|
+
});
|
|
101
|
+
}),
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
export function listFormsResponseFromJSON(
|
|
105
|
+
jsonString: string,
|
|
106
|
+
): SafeParseResult<ListFormsResponse, SDKValidationError> {
|
|
107
|
+
return safeParse(
|
|
108
|
+
jsonString,
|
|
109
|
+
(x) => ListFormsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
110
|
+
`Failed to parse 'ListFormsResponse' from JSON`,
|
|
111
|
+
);
|
|
112
|
+
}
|
|
@@ -20,11 +20,22 @@ export const ListInvoicesStatus = {
|
|
|
20
20
|
Sent: "sent",
|
|
21
21
|
Partial: "partial",
|
|
22
22
|
Paid: "paid",
|
|
23
|
-
Overdue: "overdue",
|
|
24
23
|
Void: "void",
|
|
25
24
|
} as const;
|
|
26
25
|
export type ListInvoicesStatus = ClosedEnum<typeof ListInvoicesStatus>;
|
|
27
26
|
|
|
27
|
+
/**
|
|
28
|
+
* Filter by the derived overdue condition. `true` → sent/partial invoices past their due date; `false` → everything else. (Replaces the removed `status=overdue` filter.)
|
|
29
|
+
*/
|
|
30
|
+
export const Overdue = {
|
|
31
|
+
True: "true",
|
|
32
|
+
False: "false",
|
|
33
|
+
} as const;
|
|
34
|
+
/**
|
|
35
|
+
* Filter by the derived overdue condition. `true` → sent/partial invoices past their due date; `false` → everything else. (Replaces the removed `status=overdue` filter.)
|
|
36
|
+
*/
|
|
37
|
+
export type Overdue = ClosedEnum<typeof Overdue>;
|
|
38
|
+
|
|
28
39
|
export type ListInvoicesRequest = {
|
|
29
40
|
page?: number | undefined;
|
|
30
41
|
pageSize?: number | undefined;
|
|
@@ -33,6 +44,10 @@ export type ListInvoicesRequest = {
|
|
|
33
44
|
*/
|
|
34
45
|
clientId?: string | undefined;
|
|
35
46
|
status?: ListInvoicesStatus | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Filter by the derived overdue condition. `true` → sent/partial invoices past their due date; `false` → everything else. (Replaces the removed `status=overdue` filter.)
|
|
49
|
+
*/
|
|
50
|
+
overdue?: Overdue | undefined;
|
|
36
51
|
};
|
|
37
52
|
|
|
38
53
|
export type ListInvoicesResponse = {
|
|
@@ -67,12 +82,18 @@ export const ListInvoicesStatus$outboundSchema: z.ZodMiniEnum<
|
|
|
67
82
|
typeof ListInvoicesStatus
|
|
68
83
|
> = z.enum(ListInvoicesStatus);
|
|
69
84
|
|
|
85
|
+
/** @internal */
|
|
86
|
+
export const Overdue$outboundSchema: z.ZodMiniEnum<typeof Overdue> = z.enum(
|
|
87
|
+
Overdue,
|
|
88
|
+
);
|
|
89
|
+
|
|
70
90
|
/** @internal */
|
|
71
91
|
export type ListInvoicesRequest$Outbound = {
|
|
72
92
|
page: number;
|
|
73
93
|
pageSize: number;
|
|
74
94
|
clientId?: string | undefined;
|
|
75
95
|
status?: string | undefined;
|
|
96
|
+
overdue?: string | undefined;
|
|
76
97
|
};
|
|
77
98
|
|
|
78
99
|
/** @internal */
|
|
@@ -84,6 +105,7 @@ export const ListInvoicesRequest$outboundSchema: z.ZodMiniType<
|
|
|
84
105
|
pageSize: z._default(z.int(), 25),
|
|
85
106
|
clientId: z.optional(z.string()),
|
|
86
107
|
status: z.optional(ListInvoicesStatus$outboundSchema),
|
|
108
|
+
overdue: z.optional(Overdue$outboundSchema),
|
|
87
109
|
});
|
|
88
110
|
|
|
89
111
|
export function listInvoicesRequestToJSON(
|
|
@@ -23,14 +23,14 @@ export const ListPaymentsStatus = {
|
|
|
23
23
|
} as const;
|
|
24
24
|
export type ListPaymentsStatus = ClosedEnum<typeof ListPaymentsStatus>;
|
|
25
25
|
|
|
26
|
-
export const
|
|
26
|
+
export const ListPaymentsKind = {
|
|
27
27
|
Payment: "payment",
|
|
28
28
|
Refund: "refund",
|
|
29
29
|
Chargeback: "chargeback",
|
|
30
30
|
DisputeFee: "dispute_fee",
|
|
31
31
|
Adjustment: "adjustment",
|
|
32
32
|
} as const;
|
|
33
|
-
export type
|
|
33
|
+
export type ListPaymentsKind = ClosedEnum<typeof ListPaymentsKind>;
|
|
34
34
|
|
|
35
35
|
export type ListPaymentsRequest = {
|
|
36
36
|
page?: number | undefined;
|
|
@@ -44,7 +44,7 @@ export type ListPaymentsRequest = {
|
|
|
44
44
|
*/
|
|
45
45
|
invoiceId?: string | undefined;
|
|
46
46
|
status?: ListPaymentsStatus | undefined;
|
|
47
|
-
kind?:
|
|
47
|
+
kind?: ListPaymentsKind | undefined;
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
export type ListPaymentsResponse = {
|
|
@@ -80,7 +80,9 @@ export const ListPaymentsStatus$outboundSchema: z.ZodMiniEnum<
|
|
|
80
80
|
> = z.enum(ListPaymentsStatus);
|
|
81
81
|
|
|
82
82
|
/** @internal */
|
|
83
|
-
export const
|
|
83
|
+
export const ListPaymentsKind$outboundSchema: z.ZodMiniEnum<
|
|
84
|
+
typeof ListPaymentsKind
|
|
85
|
+
> = z.enum(ListPaymentsKind);
|
|
84
86
|
|
|
85
87
|
/** @internal */
|
|
86
88
|
export type ListPaymentsRequest$Outbound = {
|
|
@@ -102,7 +104,7 @@ export const ListPaymentsRequest$outboundSchema: z.ZodMiniType<
|
|
|
102
104
|
clientId: z.optional(z.string()),
|
|
103
105
|
invoiceId: z.optional(z.string()),
|
|
104
106
|
status: z.optional(ListPaymentsStatus$outboundSchema),
|
|
105
|
-
kind: z.optional(
|
|
107
|
+
kind: z.optional(ListPaymentsKind$outboundSchema),
|
|
106
108
|
});
|
|
107
109
|
|
|
108
110
|
export function listPaymentsRequestToJSON(
|
|
@@ -16,12 +16,6 @@ export type ListWebhooksSecurity = {
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
export const Event = {
|
|
19
|
-
ProposalSent: "proposal_sent",
|
|
20
|
-
ProposalExpiring: "proposal_expiring",
|
|
21
|
-
ProposalAccepted: "proposal_accepted",
|
|
22
|
-
ProposalRejected: "proposal_rejected",
|
|
23
|
-
ProposalExpired: "proposal_expired",
|
|
24
|
-
ProposalViewed: "proposal_viewed",
|
|
25
19
|
InvoiceSent: "invoice_sent",
|
|
26
20
|
InvoiceDueSoon: "invoice_due_soon",
|
|
27
21
|
InvoiceOverdue: "invoice_overdue",
|
|
@@ -50,9 +44,10 @@ export const Event = {
|
|
|
50
44
|
ContactCreated: "contact_created",
|
|
51
45
|
ProjectCreated: "project_created",
|
|
52
46
|
TimeEntryCreated: "time_entry_created",
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
47
|
+
LeadCreated: "lead_created",
|
|
48
|
+
ClientWon: "client_won",
|
|
49
|
+
ClientLost: "client_lost",
|
|
50
|
+
LeadStatusChanged: "lead_status_changed",
|
|
56
51
|
MilestoneApproaching: "milestone_approaching",
|
|
57
52
|
TimerRunningReminder: "timer_running_reminder",
|
|
58
53
|
ContractSent: "contract_sent",
|
|
@@ -63,8 +58,12 @@ export const Event = {
|
|
|
63
58
|
ContractCompleted: "contract_completed",
|
|
64
59
|
ContractExpired: "contract_expired",
|
|
65
60
|
ContractVoided: "contract_voided",
|
|
66
|
-
|
|
67
|
-
|
|
61
|
+
SmartFileSent: "smart_file_sent",
|
|
62
|
+
SmartFileViewed: "smart_file_viewed",
|
|
63
|
+
SmartFileAccepted: "smart_file_accepted",
|
|
64
|
+
SmartFileCompleted: "smart_file_completed",
|
|
65
|
+
SmartFileExpired: "smart_file_expired",
|
|
66
|
+
FormSubmissionCompleted: "form_submission_completed",
|
|
68
67
|
SubscriptionPaymentFailed: "subscription_payment_failed",
|
|
69
68
|
PayoutPaid: "payout_paid",
|
|
70
69
|
PayoutFailed: "payout_failed",
|
|
@@ -6,12 +6,6 @@ import * as z from "zod/v4-mini";
|
|
|
6
6
|
import { ClosedEnum } from "../types/enums.js";
|
|
7
7
|
|
|
8
8
|
export const WebhookCreateEvent = {
|
|
9
|
-
ProposalSent: "proposal_sent",
|
|
10
|
-
ProposalExpiring: "proposal_expiring",
|
|
11
|
-
ProposalAccepted: "proposal_accepted",
|
|
12
|
-
ProposalRejected: "proposal_rejected",
|
|
13
|
-
ProposalExpired: "proposal_expired",
|
|
14
|
-
ProposalViewed: "proposal_viewed",
|
|
15
9
|
InvoiceSent: "invoice_sent",
|
|
16
10
|
InvoiceDueSoon: "invoice_due_soon",
|
|
17
11
|
InvoiceOverdue: "invoice_overdue",
|
|
@@ -40,9 +34,10 @@ export const WebhookCreateEvent = {
|
|
|
40
34
|
ContactCreated: "contact_created",
|
|
41
35
|
ProjectCreated: "project_created",
|
|
42
36
|
TimeEntryCreated: "time_entry_created",
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
37
|
+
LeadCreated: "lead_created",
|
|
38
|
+
ClientWon: "client_won",
|
|
39
|
+
ClientLost: "client_lost",
|
|
40
|
+
LeadStatusChanged: "lead_status_changed",
|
|
46
41
|
MilestoneApproaching: "milestone_approaching",
|
|
47
42
|
TimerRunningReminder: "timer_running_reminder",
|
|
48
43
|
ContractSent: "contract_sent",
|
|
@@ -53,8 +48,12 @@ export const WebhookCreateEvent = {
|
|
|
53
48
|
ContractCompleted: "contract_completed",
|
|
54
49
|
ContractExpired: "contract_expired",
|
|
55
50
|
ContractVoided: "contract_voided",
|
|
56
|
-
|
|
57
|
-
|
|
51
|
+
SmartFileSent: "smart_file_sent",
|
|
52
|
+
SmartFileViewed: "smart_file_viewed",
|
|
53
|
+
SmartFileAccepted: "smart_file_accepted",
|
|
54
|
+
SmartFileCompleted: "smart_file_completed",
|
|
55
|
+
SmartFileExpired: "smart_file_expired",
|
|
56
|
+
FormSubmissionCompleted: "form_submission_completed",
|
|
58
57
|
SubscriptionPaymentFailed: "subscription_payment_failed",
|
|
59
58
|
PayoutPaid: "payout_paid",
|
|
60
59
|
PayoutFailed: "payout_failed",
|
|
@@ -6,12 +6,6 @@ import * as z from "zod/v4-mini";
|
|
|
6
6
|
import { ClosedEnum } from "../types/enums.js";
|
|
7
7
|
|
|
8
8
|
export const WebhookUpdateEvent = {
|
|
9
|
-
ProposalSent: "proposal_sent",
|
|
10
|
-
ProposalExpiring: "proposal_expiring",
|
|
11
|
-
ProposalAccepted: "proposal_accepted",
|
|
12
|
-
ProposalRejected: "proposal_rejected",
|
|
13
|
-
ProposalExpired: "proposal_expired",
|
|
14
|
-
ProposalViewed: "proposal_viewed",
|
|
15
9
|
InvoiceSent: "invoice_sent",
|
|
16
10
|
InvoiceDueSoon: "invoice_due_soon",
|
|
17
11
|
InvoiceOverdue: "invoice_overdue",
|
|
@@ -40,9 +34,10 @@ export const WebhookUpdateEvent = {
|
|
|
40
34
|
ContactCreated: "contact_created",
|
|
41
35
|
ProjectCreated: "project_created",
|
|
42
36
|
TimeEntryCreated: "time_entry_created",
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
37
|
+
LeadCreated: "lead_created",
|
|
38
|
+
ClientWon: "client_won",
|
|
39
|
+
ClientLost: "client_lost",
|
|
40
|
+
LeadStatusChanged: "lead_status_changed",
|
|
46
41
|
MilestoneApproaching: "milestone_approaching",
|
|
47
42
|
TimerRunningReminder: "timer_running_reminder",
|
|
48
43
|
ContractSent: "contract_sent",
|
|
@@ -53,8 +48,12 @@ export const WebhookUpdateEvent = {
|
|
|
53
48
|
ContractCompleted: "contract_completed",
|
|
54
49
|
ContractExpired: "contract_expired",
|
|
55
50
|
ContractVoided: "contract_voided",
|
|
56
|
-
|
|
57
|
-
|
|
51
|
+
SmartFileSent: "smart_file_sent",
|
|
52
|
+
SmartFileViewed: "smart_file_viewed",
|
|
53
|
+
SmartFileAccepted: "smart_file_accepted",
|
|
54
|
+
SmartFileCompleted: "smart_file_completed",
|
|
55
|
+
SmartFileExpired: "smart_file_expired",
|
|
56
|
+
FormSubmissionCompleted: "form_submission_completed",
|
|
58
57
|
SubscriptionPaymentFailed: "subscription_payment_failed",
|
|
59
58
|
PayoutPaid: "payout_paid",
|
|
60
59
|
PayoutFailed: "payout_failed",
|
package/src/models/webhook.ts
CHANGED
|
@@ -11,12 +11,6 @@ import * as types from "../types/primitives.js";
|
|
|
11
11
|
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
12
12
|
|
|
13
13
|
export const WebhookEvent = {
|
|
14
|
-
ProposalSent: "proposal_sent",
|
|
15
|
-
ProposalExpiring: "proposal_expiring",
|
|
16
|
-
ProposalAccepted: "proposal_accepted",
|
|
17
|
-
ProposalRejected: "proposal_rejected",
|
|
18
|
-
ProposalExpired: "proposal_expired",
|
|
19
|
-
ProposalViewed: "proposal_viewed",
|
|
20
14
|
InvoiceSent: "invoice_sent",
|
|
21
15
|
InvoiceDueSoon: "invoice_due_soon",
|
|
22
16
|
InvoiceOverdue: "invoice_overdue",
|
|
@@ -45,9 +39,10 @@ export const WebhookEvent = {
|
|
|
45
39
|
ContactCreated: "contact_created",
|
|
46
40
|
ProjectCreated: "project_created",
|
|
47
41
|
TimeEntryCreated: "time_entry_created",
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
42
|
+
LeadCreated: "lead_created",
|
|
43
|
+
ClientWon: "client_won",
|
|
44
|
+
ClientLost: "client_lost",
|
|
45
|
+
LeadStatusChanged: "lead_status_changed",
|
|
51
46
|
MilestoneApproaching: "milestone_approaching",
|
|
52
47
|
TimerRunningReminder: "timer_running_reminder",
|
|
53
48
|
ContractSent: "contract_sent",
|
|
@@ -58,8 +53,12 @@ export const WebhookEvent = {
|
|
|
58
53
|
ContractCompleted: "contract_completed",
|
|
59
54
|
ContractExpired: "contract_expired",
|
|
60
55
|
ContractVoided: "contract_voided",
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
SmartFileSent: "smart_file_sent",
|
|
57
|
+
SmartFileViewed: "smart_file_viewed",
|
|
58
|
+
SmartFileAccepted: "smart_file_accepted",
|
|
59
|
+
SmartFileCompleted: "smart_file_completed",
|
|
60
|
+
SmartFileExpired: "smart_file_expired",
|
|
61
|
+
FormSubmissionCompleted: "form_submission_completed",
|
|
63
62
|
SubscriptionPaymentFailed: "subscription_payment_failed",
|
|
64
63
|
PayoutPaid: "payout_paid",
|
|
65
64
|
PayoutFailed: "payout_failed",
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { formSubmissionsGet } from "../funcs/form-submissions-get.js";
|
|
6
|
+
import { formSubmissionsList } from "../funcs/form-submissions-list.js";
|
|
7
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
|
+
import * as models from "../models/index.js";
|
|
9
|
+
import * as operations from "../models/operations/index.js";
|
|
10
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
11
|
+
import { PageIterator, unwrapResultIterator } from "../types/operations.js";
|
|
12
|
+
|
|
13
|
+
export class FormSubmissions extends ClientSDK {
|
|
14
|
+
/**
|
|
15
|
+
* List form submissions
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Answers are omitted from the list (returned as `null`); fetch a single submission to read them.
|
|
19
|
+
*/
|
|
20
|
+
async list(
|
|
21
|
+
security: operations.ListFormSubmissionsSecurity,
|
|
22
|
+
request?: operations.ListFormSubmissionsRequest | undefined,
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): Promise<
|
|
25
|
+
PageIterator<operations.ListFormSubmissionsResponse, { page: number }>
|
|
26
|
+
> {
|
|
27
|
+
return unwrapResultIterator(formSubmissionsList(
|
|
28
|
+
this,
|
|
29
|
+
security,
|
|
30
|
+
request,
|
|
31
|
+
options,
|
|
32
|
+
));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Get a form submission (with answers)
|
|
37
|
+
*/
|
|
38
|
+
async get(
|
|
39
|
+
security: operations.GetFormSubmissionSecurity,
|
|
40
|
+
request: operations.GetFormSubmissionRequest,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): Promise<models.FormSubmission> {
|
|
43
|
+
return unwrapAsync(formSubmissionsGet(
|
|
44
|
+
this,
|
|
45
|
+
security,
|
|
46
|
+
request,
|
|
47
|
+
options,
|
|
48
|
+
));
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { formsAndAgreementsGet } from "../funcs/forms-and-agreements-get.js";
|
|
6
|
+
import { formsAndAgreementsList } from "../funcs/forms-and-agreements-list.js";
|
|
7
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
|
+
import * as models from "../models/index.js";
|
|
9
|
+
import * as operations from "../models/operations/index.js";
|
|
10
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
11
|
+
import { PageIterator, unwrapResultIterator } from "../types/operations.js";
|
|
12
|
+
|
|
13
|
+
export class FormsAndAgreements extends ClientSDK {
|
|
14
|
+
/**
|
|
15
|
+
* List proposals
|
|
16
|
+
*/
|
|
17
|
+
async list(
|
|
18
|
+
security: operations.ListClientDocumentsSecurity,
|
|
19
|
+
request?: operations.ListClientDocumentsRequest | undefined,
|
|
20
|
+
options?: RequestOptions,
|
|
21
|
+
): Promise<
|
|
22
|
+
PageIterator<operations.ListClientDocumentsResponse, { page: number }>
|
|
23
|
+
> {
|
|
24
|
+
return unwrapResultIterator(formsAndAgreementsList(
|
|
25
|
+
this,
|
|
26
|
+
security,
|
|
27
|
+
request,
|
|
28
|
+
options,
|
|
29
|
+
));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Get a proposal
|
|
34
|
+
*/
|
|
35
|
+
async get(
|
|
36
|
+
security: operations.GetClientDocumentSecurity,
|
|
37
|
+
request: operations.GetClientDocumentRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): Promise<models.ClientDocument> {
|
|
40
|
+
return unwrapAsync(formsAndAgreementsGet(
|
|
41
|
+
this,
|
|
42
|
+
security,
|
|
43
|
+
request,
|
|
44
|
+
options,
|
|
45
|
+
));
|
|
46
|
+
}
|
|
47
|
+
}
|
package/src/sdk/forms.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { formsGet } from "../funcs/forms-get.js";
|
|
6
|
+
import { formsList } from "../funcs/forms-list.js";
|
|
7
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
|
+
import * as models from "../models/index.js";
|
|
9
|
+
import * as operations from "../models/operations/index.js";
|
|
10
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
11
|
+
import { PageIterator, unwrapResultIterator } from "../types/operations.js";
|
|
12
|
+
|
|
13
|
+
export class Forms extends ClientSDK {
|
|
14
|
+
/**
|
|
15
|
+
* List forms
|
|
16
|
+
*/
|
|
17
|
+
async list(
|
|
18
|
+
security: operations.ListFormsSecurity,
|
|
19
|
+
request?: operations.ListFormsRequest | undefined,
|
|
20
|
+
options?: RequestOptions,
|
|
21
|
+
): Promise<PageIterator<operations.ListFormsResponse, { page: number }>> {
|
|
22
|
+
return unwrapResultIterator(formsList(
|
|
23
|
+
this,
|
|
24
|
+
security,
|
|
25
|
+
request,
|
|
26
|
+
options,
|
|
27
|
+
));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Get a form
|
|
32
|
+
*/
|
|
33
|
+
async get(
|
|
34
|
+
security: operations.GetFormSecurity,
|
|
35
|
+
request: operations.GetFormRequest,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): Promise<models.Form> {
|
|
38
|
+
return unwrapAsync(formsGet(
|
|
39
|
+
this,
|
|
40
|
+
security,
|
|
41
|
+
request,
|
|
42
|
+
options,
|
|
43
|
+
));
|
|
44
|
+
}
|
|
45
|
+
}
|
package/src/sdk/invoices.ts
CHANGED
|
@@ -34,7 +34,7 @@ export class Invoices extends ClientSDK {
|
|
|
34
34
|
* Create an invoice
|
|
35
35
|
*
|
|
36
36
|
* @remarks
|
|
37
|
-
* Status `paid
|
|
37
|
+
* Status `paid` and `partial` are system-derived from Payments; do not set them directly. `overdue` is not a status — it is a derived read-only boolean field (past due with a balance owing).
|
|
38
38
|
*/
|
|
39
39
|
async create(
|
|
40
40
|
security: operations.CreateInvoiceSecurity,
|
package/src/sdk/milestones.ts
CHANGED
|
@@ -36,7 +36,7 @@ export class Milestones extends ClientSDK {
|
|
|
36
36
|
* Create a milestone
|
|
37
37
|
*
|
|
38
38
|
* @remarks
|
|
39
|
-
* Milestones attach to either a project or a
|
|
39
|
+
* Milestones attach to either a project or a form/agreement — `parentType` + `parentId` are both required.
|
|
40
40
|
*/
|
|
41
41
|
async create(
|
|
42
42
|
security: operations.CreateMilestoneSecurity,
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -8,13 +8,14 @@ import { CatalogItems } from "./catalog-items.js";
|
|
|
8
8
|
import { Clients } from "./clients.js";
|
|
9
9
|
import { Contacts } from "./contacts.js";
|
|
10
10
|
import { Contracts } from "./contracts.js";
|
|
11
|
-
import {
|
|
11
|
+
import { FormSubmissions } from "./form-submissions.js";
|
|
12
|
+
import { FormsAndAgreements } from "./forms-and-agreements.js";
|
|
13
|
+
import { Forms } from "./forms.js";
|
|
12
14
|
import { Invoices } from "./invoices.js";
|
|
13
15
|
import { Milestones } from "./milestones.js";
|
|
14
16
|
import { Payments } from "./payments.js";
|
|
15
17
|
import { Payouts } from "./payouts.js";
|
|
16
18
|
import { Projects } from "./projects.js";
|
|
17
|
-
import { Proposals } from "./proposals.js";
|
|
18
19
|
import { TimeEntries } from "./time-entries.js";
|
|
19
20
|
import { Transactions } from "./transactions.js";
|
|
20
21
|
import { Webhooks } from "./webhooks.js";
|
|
@@ -40,16 +41,26 @@ export class ClientCasa extends ClientSDK {
|
|
|
40
41
|
return (this._invoices ??= new Invoices(this._options));
|
|
41
42
|
}
|
|
42
43
|
|
|
43
|
-
private _proposals?: Proposals;
|
|
44
|
-
get proposals(): Proposals {
|
|
45
|
-
return (this._proposals ??= new Proposals(this._options));
|
|
46
|
-
}
|
|
47
|
-
|
|
48
44
|
private _contracts?: Contracts;
|
|
49
45
|
get contracts(): Contracts {
|
|
50
46
|
return (this._contracts ??= new Contracts(this._options));
|
|
51
47
|
}
|
|
52
48
|
|
|
49
|
+
private _formsAndAgreements?: FormsAndAgreements;
|
|
50
|
+
get formsAndAgreements(): FormsAndAgreements {
|
|
51
|
+
return (this._formsAndAgreements ??= new FormsAndAgreements(this._options));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
private _forms?: Forms;
|
|
55
|
+
get forms(): Forms {
|
|
56
|
+
return (this._forms ??= new Forms(this._options));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
private _formSubmissions?: FormSubmissions;
|
|
60
|
+
get formSubmissions(): FormSubmissions {
|
|
61
|
+
return (this._formSubmissions ??= new FormSubmissions(this._options));
|
|
62
|
+
}
|
|
63
|
+
|
|
53
64
|
private _payments?: Payments;
|
|
54
65
|
get payments(): Payments {
|
|
55
66
|
return (this._payments ??= new Payments(this._options));
|
|
@@ -75,11 +86,6 @@ export class ClientCasa extends ClientSDK {
|
|
|
75
86
|
return (this._calendarEvents ??= new CalendarEvents(this._options));
|
|
76
87
|
}
|
|
77
88
|
|
|
78
|
-
private _inquiries?: Inquiries;
|
|
79
|
-
get inquiries(): Inquiries {
|
|
80
|
-
return (this._inquiries ??= new Inquiries(this._options));
|
|
81
|
-
}
|
|
82
|
-
|
|
83
89
|
private _transactions?: Transactions;
|
|
84
90
|
get transactions(): Transactions {
|
|
85
91
|
return (this._transactions ??= new Transactions(this._options));
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ClientCasaCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { ClientCasaError } from "../models/errors/client-casa-error.js";
|
|
4
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
|
|
5
|
-
import * as errors from "../models/errors/index.js";
|
|
6
|
-
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
7
|
-
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
8
|
-
import * as models from "../models/index.js";
|
|
9
|
-
import * as operations from "../models/operations/index.js";
|
|
10
|
-
import { APIPromise } from "../types/async.js";
|
|
11
|
-
import { Result } from "../types/fp.js";
|
|
12
|
-
/**
|
|
13
|
-
* Create an inquiry
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* Inquiries created via the API land in `new` status. Conversion (to Client + Project) is dashboard-only in v1.
|
|
17
|
-
*/
|
|
18
|
-
export declare function inquiriesCreate(client: ClientCasaCore, security: operations.CreateInquirySecurity, request: operations.CreateInquiryRequest, options?: RequestOptions): APIPromise<Result<models.Inquiry, errors.ApiError | ClientCasaError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
|
-
//# sourceMappingURL=inquiries-create.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inquiries-create.d.ts","sourceRoot":"","sources":["../../src/funcs/inquiries-create.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAM5C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,UAAU,CAAC,qBAAqB,EAC1C,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,OAAO,EACZ,MAAM,CAAC,QAAQ,GACf,eAAe,GACf,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAOA"}
|