@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
package/src/models/index.ts
CHANGED
|
@@ -12,6 +12,8 @@ export * from "./catalog-item-list.js";
|
|
|
12
12
|
export * from "./catalog-item-update.js";
|
|
13
13
|
export * from "./catalog-item.js";
|
|
14
14
|
export * from "./client-create.js";
|
|
15
|
+
export * from "./client-document-list.js";
|
|
16
|
+
export * from "./client-document.js";
|
|
15
17
|
export * from "./client-list.js";
|
|
16
18
|
export * from "./client-update.js";
|
|
17
19
|
export * from "./client.js";
|
|
@@ -23,10 +25,11 @@ export * from "./contract-create.js";
|
|
|
23
25
|
export * from "./contract-list.js";
|
|
24
26
|
export * from "./contract-update.js";
|
|
25
27
|
export * from "./contract.js";
|
|
26
|
-
export * from "./
|
|
27
|
-
export * from "./
|
|
28
|
-
export * from "./
|
|
29
|
-
export * from "./
|
|
28
|
+
export * from "./form-list.js";
|
|
29
|
+
export * from "./form-submission-answer.js";
|
|
30
|
+
export * from "./form-submission-list.js";
|
|
31
|
+
export * from "./form-submission.js";
|
|
32
|
+
export * from "./form.js";
|
|
30
33
|
export * from "./invoice-create.js";
|
|
31
34
|
export * from "./invoice-line-item.js";
|
|
32
35
|
export * from "./invoice-list.js";
|
|
@@ -47,10 +50,6 @@ export * from "./project-create.js";
|
|
|
47
50
|
export * from "./project-list.js";
|
|
48
51
|
export * from "./project-update.js";
|
|
49
52
|
export * from "./project.js";
|
|
50
|
-
export * from "./proposal-create.js";
|
|
51
|
-
export * from "./proposal-list.js";
|
|
52
|
-
export * from "./proposal-update.js";
|
|
53
|
-
export * from "./proposal.js";
|
|
54
53
|
export * from "./security.js";
|
|
55
54
|
export * from "./time-entry-create.js";
|
|
56
55
|
export * from "./time-entry-list.js";
|
package/src/models/invoice.ts
CHANGED
|
@@ -19,7 +19,6 @@ export const InvoiceStatus = {
|
|
|
19
19
|
Sent: "sent",
|
|
20
20
|
Partial: "partial",
|
|
21
21
|
Paid: "paid",
|
|
22
|
-
Overdue: "overdue",
|
|
23
22
|
Void: "void",
|
|
24
23
|
} as const;
|
|
25
24
|
export type InvoiceStatus = OpenEnum<typeof InvoiceStatus>;
|
|
@@ -50,6 +49,10 @@ export type Invoice = {
|
|
|
50
49
|
total: number;
|
|
51
50
|
amountPaid: number;
|
|
52
51
|
balanceDue: number;
|
|
52
|
+
/**
|
|
53
|
+
* Derived (read-only): true when the invoice is past its due date with a balance still owing (status is sent or partial). Not a stored status.
|
|
54
|
+
*/
|
|
55
|
+
overdue: boolean;
|
|
53
56
|
paymentTerms: string | null;
|
|
54
57
|
notes: string | null;
|
|
55
58
|
/**
|
|
@@ -91,6 +94,7 @@ export const Invoice$inboundSchema: z.ZodMiniType<Invoice, unknown> = z.object({
|
|
|
91
94
|
total: types.number(),
|
|
92
95
|
amountPaid: types.number(),
|
|
93
96
|
balanceDue: types.number(),
|
|
97
|
+
overdue: types.boolean(),
|
|
94
98
|
paymentTerms: types.nullable(types.string()),
|
|
95
99
|
notes: types.nullable(types.string()),
|
|
96
100
|
paidAt: types.nullable(types.date()),
|
|
@@ -6,8 +6,8 @@ import * as z from "zod/v4-mini";
|
|
|
6
6
|
import { ClosedEnum } from "../types/enums.js";
|
|
7
7
|
|
|
8
8
|
export const MilestoneCreateParentType = {
|
|
9
|
-
Proposals: "proposals",
|
|
10
9
|
Projects: "projects",
|
|
10
|
+
ClientDocuments: "client-documents",
|
|
11
11
|
} as const;
|
|
12
12
|
export type MilestoneCreateParentType = ClosedEnum<
|
|
13
13
|
typeof MilestoneCreateParentType
|
package/src/models/milestone.ts
CHANGED
|
@@ -11,8 +11,8 @@ import * as types from "../types/primitives.js";
|
|
|
11
11
|
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
12
12
|
|
|
13
13
|
export const MilestoneParentType = {
|
|
14
|
-
Proposals: "proposals",
|
|
15
14
|
Projects: "projects",
|
|
15
|
+
ClientDocuments: "client-documents",
|
|
16
16
|
} as const;
|
|
17
17
|
export type MilestoneParentType = OpenEnum<typeof MilestoneParentType>;
|
|
18
18
|
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type GetClientDocumentSecurity = {
|
|
8
|
+
apiKey?: string | undefined;
|
|
9
|
+
bearer?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type GetClientDocumentRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* UUID v4
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type GetClientDocumentSecurity$Outbound = {
|
|
21
|
+
apiKey?: string | undefined;
|
|
22
|
+
bearer?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const GetClientDocumentSecurity$outboundSchema: z.ZodMiniType<
|
|
27
|
+
GetClientDocumentSecurity$Outbound,
|
|
28
|
+
GetClientDocumentSecurity
|
|
29
|
+
> = z.object({
|
|
30
|
+
apiKey: z.optional(z.string()),
|
|
31
|
+
bearer: z.optional(z.string()),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export function getClientDocumentSecurityToJSON(
|
|
35
|
+
getClientDocumentSecurity: GetClientDocumentSecurity,
|
|
36
|
+
): string {
|
|
37
|
+
return JSON.stringify(
|
|
38
|
+
GetClientDocumentSecurity$outboundSchema.parse(getClientDocumentSecurity),
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export type GetClientDocumentRequest$Outbound = {
|
|
44
|
+
id: string;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const GetClientDocumentRequest$outboundSchema: z.ZodMiniType<
|
|
49
|
+
GetClientDocumentRequest$Outbound,
|
|
50
|
+
GetClientDocumentRequest
|
|
51
|
+
> = z.object({
|
|
52
|
+
id: z.string(),
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export function getClientDocumentRequestToJSON(
|
|
56
|
+
getClientDocumentRequest: GetClientDocumentRequest,
|
|
57
|
+
): string {
|
|
58
|
+
return JSON.stringify(
|
|
59
|
+
GetClientDocumentRequest$outboundSchema.parse(getClientDocumentRequest),
|
|
60
|
+
);
|
|
61
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type GetFormSubmissionSecurity = {
|
|
8
|
+
apiKey?: string | undefined;
|
|
9
|
+
bearer?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type GetFormSubmissionRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* UUID v4
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type GetFormSubmissionSecurity$Outbound = {
|
|
21
|
+
apiKey?: string | undefined;
|
|
22
|
+
bearer?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const GetFormSubmissionSecurity$outboundSchema: z.ZodMiniType<
|
|
27
|
+
GetFormSubmissionSecurity$Outbound,
|
|
28
|
+
GetFormSubmissionSecurity
|
|
29
|
+
> = z.object({
|
|
30
|
+
apiKey: z.optional(z.string()),
|
|
31
|
+
bearer: z.optional(z.string()),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export function getFormSubmissionSecurityToJSON(
|
|
35
|
+
getFormSubmissionSecurity: GetFormSubmissionSecurity,
|
|
36
|
+
): string {
|
|
37
|
+
return JSON.stringify(
|
|
38
|
+
GetFormSubmissionSecurity$outboundSchema.parse(getFormSubmissionSecurity),
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export type GetFormSubmissionRequest$Outbound = {
|
|
44
|
+
id: string;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const GetFormSubmissionRequest$outboundSchema: z.ZodMiniType<
|
|
49
|
+
GetFormSubmissionRequest$Outbound,
|
|
50
|
+
GetFormSubmissionRequest
|
|
51
|
+
> = z.object({
|
|
52
|
+
id: z.string(),
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export function getFormSubmissionRequestToJSON(
|
|
56
|
+
getFormSubmissionRequest: GetFormSubmissionRequest,
|
|
57
|
+
): string {
|
|
58
|
+
return JSON.stringify(
|
|
59
|
+
GetFormSubmissionRequest$outboundSchema.parse(getFormSubmissionRequest),
|
|
60
|
+
);
|
|
61
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type GetFormSecurity = {
|
|
8
|
+
apiKey?: string | undefined;
|
|
9
|
+
bearer?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type GetFormRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* UUID v4
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type GetFormSecurity$Outbound = {
|
|
21
|
+
apiKey?: string | undefined;
|
|
22
|
+
bearer?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const GetFormSecurity$outboundSchema: z.ZodMiniType<
|
|
27
|
+
GetFormSecurity$Outbound,
|
|
28
|
+
GetFormSecurity
|
|
29
|
+
> = z.object({
|
|
30
|
+
apiKey: z.optional(z.string()),
|
|
31
|
+
bearer: z.optional(z.string()),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export function getFormSecurityToJSON(
|
|
35
|
+
getFormSecurity: GetFormSecurity,
|
|
36
|
+
): string {
|
|
37
|
+
return JSON.stringify(GetFormSecurity$outboundSchema.parse(getFormSecurity));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type GetFormRequest$Outbound = {
|
|
42
|
+
id: string;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const GetFormRequest$outboundSchema: z.ZodMiniType<
|
|
47
|
+
GetFormRequest$Outbound,
|
|
48
|
+
GetFormRequest
|
|
49
|
+
> = z.object({
|
|
50
|
+
id: z.string(),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export function getFormRequestToJSON(getFormRequest: GetFormRequest): string {
|
|
54
|
+
return JSON.stringify(GetFormRequest$outboundSchema.parse(getFormRequest));
|
|
55
|
+
}
|
|
@@ -7,12 +7,10 @@ export * from "./create-catalog-item.js";
|
|
|
7
7
|
export * from "./create-client.js";
|
|
8
8
|
export * from "./create-contact.js";
|
|
9
9
|
export * from "./create-contract.js";
|
|
10
|
-
export * from "./create-inquiry.js";
|
|
11
10
|
export * from "./create-invoice.js";
|
|
12
11
|
export * from "./create-milestone.js";
|
|
13
12
|
export * from "./create-payment.js";
|
|
14
13
|
export * from "./create-project.js";
|
|
15
|
-
export * from "./create-proposal.js";
|
|
16
14
|
export * from "./create-time-entry.js";
|
|
17
15
|
export * from "./create-transaction.js";
|
|
18
16
|
export * from "./create-webhook.js";
|
|
@@ -21,41 +19,41 @@ export * from "./delete-catalog-item.js";
|
|
|
21
19
|
export * from "./delete-client.js";
|
|
22
20
|
export * from "./delete-contact.js";
|
|
23
21
|
export * from "./delete-contract.js";
|
|
24
|
-
export * from "./delete-inquiry.js";
|
|
25
22
|
export * from "./delete-invoice.js";
|
|
26
23
|
export * from "./delete-milestone.js";
|
|
27
24
|
export * from "./delete-project.js";
|
|
28
|
-
export * from "./delete-proposal.js";
|
|
29
25
|
export * from "./delete-time-entry.js";
|
|
30
26
|
export * from "./delete-transaction.js";
|
|
31
27
|
export * from "./delete-webhook.js";
|
|
32
28
|
export * from "./get-calendar-event.js";
|
|
33
29
|
export * from "./get-catalog-item.js";
|
|
30
|
+
export * from "./get-client-document.js";
|
|
34
31
|
export * from "./get-client.js";
|
|
35
32
|
export * from "./get-contact.js";
|
|
36
33
|
export * from "./get-contract.js";
|
|
37
|
-
export * from "./get-
|
|
34
|
+
export * from "./get-form-submission.js";
|
|
35
|
+
export * from "./get-form.js";
|
|
38
36
|
export * from "./get-invoice.js";
|
|
39
37
|
export * from "./get-milestone.js";
|
|
40
38
|
export * from "./get-payment.js";
|
|
41
39
|
export * from "./get-payout.js";
|
|
42
40
|
export * from "./get-project.js";
|
|
43
|
-
export * from "./get-proposal.js";
|
|
44
41
|
export * from "./get-time-entry.js";
|
|
45
42
|
export * from "./get-transaction.js";
|
|
46
43
|
export * from "./get-webhook.js";
|
|
47
44
|
export * from "./list-calendar-events.js";
|
|
48
45
|
export * from "./list-catalog-items.js";
|
|
46
|
+
export * from "./list-client-documents.js";
|
|
49
47
|
export * from "./list-clients.js";
|
|
50
48
|
export * from "./list-contacts.js";
|
|
51
49
|
export * from "./list-contracts.js";
|
|
52
|
-
export * from "./list-
|
|
50
|
+
export * from "./list-form-submissions.js";
|
|
51
|
+
export * from "./list-forms.js";
|
|
53
52
|
export * from "./list-invoices.js";
|
|
54
53
|
export * from "./list-milestones.js";
|
|
55
54
|
export * from "./list-payments.js";
|
|
56
55
|
export * from "./list-payouts.js";
|
|
57
56
|
export * from "./list-projects.js";
|
|
58
|
-
export * from "./list-proposals.js";
|
|
59
57
|
export * from "./list-time-entries.js";
|
|
60
58
|
export * from "./list-transactions.js";
|
|
61
59
|
export * from "./list-webhooks.js";
|
|
@@ -64,12 +62,10 @@ export * from "./update-catalog-item.js";
|
|
|
64
62
|
export * from "./update-client.js";
|
|
65
63
|
export * from "./update-contact.js";
|
|
66
64
|
export * from "./update-contract.js";
|
|
67
|
-
export * from "./update-inquiry.js";
|
|
68
65
|
export * from "./update-invoice.js";
|
|
69
66
|
export * from "./update-milestone.js";
|
|
70
67
|
export * from "./update-payment.js";
|
|
71
68
|
export * from "./update-project.js";
|
|
72
|
-
export * from "./update-proposal.js";
|
|
73
69
|
export * from "./update-time-entry.js";
|
|
74
70
|
export * from "./update-transaction.js";
|
|
75
71
|
export * from "./update-webhook.js";
|
|
@@ -28,11 +28,18 @@ export const ListCatalogItemsStatus = {
|
|
|
28
28
|
} as const;
|
|
29
29
|
export type ListCatalogItemsStatus = ClosedEnum<typeof ListCatalogItemsStatus>;
|
|
30
30
|
|
|
31
|
+
export const Composition = {
|
|
32
|
+
Atom: "atom",
|
|
33
|
+
Bundle: "bundle",
|
|
34
|
+
} as const;
|
|
35
|
+
export type Composition = ClosedEnum<typeof Composition>;
|
|
36
|
+
|
|
31
37
|
export type ListCatalogItemsRequest = {
|
|
32
38
|
page?: number | undefined;
|
|
33
39
|
pageSize?: number | undefined;
|
|
34
40
|
type?: Type | undefined;
|
|
35
41
|
status?: ListCatalogItemsStatus | undefined;
|
|
42
|
+
composition?: Composition | undefined;
|
|
36
43
|
/**
|
|
37
44
|
* UUID v4
|
|
38
45
|
*/
|
|
@@ -74,12 +81,17 @@ export const ListCatalogItemsStatus$outboundSchema: z.ZodMiniEnum<
|
|
|
74
81
|
typeof ListCatalogItemsStatus
|
|
75
82
|
> = z.enum(ListCatalogItemsStatus);
|
|
76
83
|
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const Composition$outboundSchema: z.ZodMiniEnum<typeof Composition> = z
|
|
86
|
+
.enum(Composition);
|
|
87
|
+
|
|
77
88
|
/** @internal */
|
|
78
89
|
export type ListCatalogItemsRequest$Outbound = {
|
|
79
90
|
page: number;
|
|
80
91
|
pageSize: number;
|
|
81
92
|
type?: string | undefined;
|
|
82
93
|
status?: string | undefined;
|
|
94
|
+
composition?: string | undefined;
|
|
83
95
|
clientId?: string | undefined;
|
|
84
96
|
};
|
|
85
97
|
|
|
@@ -92,6 +104,7 @@ export const ListCatalogItemsRequest$outboundSchema: z.ZodMiniType<
|
|
|
92
104
|
pageSize: z._default(z.int(), 25),
|
|
93
105
|
type: z.optional(Type$outboundSchema),
|
|
94
106
|
status: z.optional(ListCatalogItemsStatus$outboundSchema),
|
|
107
|
+
composition: z.optional(Composition$outboundSchema),
|
|
95
108
|
clientId: z.optional(z.string()),
|
|
96
109
|
});
|
|
97
110
|
|
|
@@ -0,0 +1,132 @@
|
|
|
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 ListClientDocumentsSecurity = {
|
|
14
|
+
apiKey?: string | undefined;
|
|
15
|
+
bearer?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const ListClientDocumentsStatus = {
|
|
19
|
+
Draft: "draft",
|
|
20
|
+
Sent: "sent",
|
|
21
|
+
Viewed: "viewed",
|
|
22
|
+
InProgress: "in_progress",
|
|
23
|
+
Accepted: "accepted",
|
|
24
|
+
Completed: "completed",
|
|
25
|
+
Expired: "expired",
|
|
26
|
+
Void: "void",
|
|
27
|
+
} as const;
|
|
28
|
+
export type ListClientDocumentsStatus = ClosedEnum<
|
|
29
|
+
typeof ListClientDocumentsStatus
|
|
30
|
+
>;
|
|
31
|
+
|
|
32
|
+
export type ListClientDocumentsRequest = {
|
|
33
|
+
page?: number | undefined;
|
|
34
|
+
pageSize?: number | undefined;
|
|
35
|
+
status?: ListClientDocumentsStatus | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* UUID v4
|
|
38
|
+
*/
|
|
39
|
+
clientId?: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* UUID v4
|
|
42
|
+
*/
|
|
43
|
+
contactId?: string | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export type ListClientDocumentsResponse = {
|
|
47
|
+
result: models.ClientDocumentList;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export type ListClientDocumentsSecurity$Outbound = {
|
|
52
|
+
apiKey?: string | undefined;
|
|
53
|
+
bearer?: string | undefined;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const ListClientDocumentsSecurity$outboundSchema: z.ZodMiniType<
|
|
58
|
+
ListClientDocumentsSecurity$Outbound,
|
|
59
|
+
ListClientDocumentsSecurity
|
|
60
|
+
> = z.object({
|
|
61
|
+
apiKey: z.optional(z.string()),
|
|
62
|
+
bearer: z.optional(z.string()),
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export function listClientDocumentsSecurityToJSON(
|
|
66
|
+
listClientDocumentsSecurity: ListClientDocumentsSecurity,
|
|
67
|
+
): string {
|
|
68
|
+
return JSON.stringify(
|
|
69
|
+
ListClientDocumentsSecurity$outboundSchema.parse(
|
|
70
|
+
listClientDocumentsSecurity,
|
|
71
|
+
),
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const ListClientDocumentsStatus$outboundSchema: z.ZodMiniEnum<
|
|
77
|
+
typeof ListClientDocumentsStatus
|
|
78
|
+
> = z.enum(ListClientDocumentsStatus);
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export type ListClientDocumentsRequest$Outbound = {
|
|
82
|
+
page: number;
|
|
83
|
+
pageSize: number;
|
|
84
|
+
status?: string | undefined;
|
|
85
|
+
clientId?: string | undefined;
|
|
86
|
+
contactId?: string | undefined;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const ListClientDocumentsRequest$outboundSchema: z.ZodMiniType<
|
|
91
|
+
ListClientDocumentsRequest$Outbound,
|
|
92
|
+
ListClientDocumentsRequest
|
|
93
|
+
> = z.object({
|
|
94
|
+
page: z._default(z.int(), 1),
|
|
95
|
+
pageSize: z._default(z.int(), 25),
|
|
96
|
+
status: z.optional(ListClientDocumentsStatus$outboundSchema),
|
|
97
|
+
clientId: z.optional(z.string()),
|
|
98
|
+
contactId: z.optional(z.string()),
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
export function listClientDocumentsRequestToJSON(
|
|
102
|
+
listClientDocumentsRequest: ListClientDocumentsRequest,
|
|
103
|
+
): string {
|
|
104
|
+
return JSON.stringify(
|
|
105
|
+
ListClientDocumentsRequest$outboundSchema.parse(listClientDocumentsRequest),
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/** @internal */
|
|
110
|
+
export const ListClientDocumentsResponse$inboundSchema: z.ZodMiniType<
|
|
111
|
+
ListClientDocumentsResponse,
|
|
112
|
+
unknown
|
|
113
|
+
> = z.pipe(
|
|
114
|
+
z.object({
|
|
115
|
+
Result: models.ClientDocumentList$inboundSchema,
|
|
116
|
+
}),
|
|
117
|
+
z.transform((v) => {
|
|
118
|
+
return remap$(v, {
|
|
119
|
+
"Result": "result",
|
|
120
|
+
});
|
|
121
|
+
}),
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
export function listClientDocumentsResponseFromJSON(
|
|
125
|
+
jsonString: string,
|
|
126
|
+
): SafeParseResult<ListClientDocumentsResponse, SDKValidationError> {
|
|
127
|
+
return safeParse(
|
|
128
|
+
jsonString,
|
|
129
|
+
(x) => ListClientDocumentsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
130
|
+
`Failed to parse 'ListClientDocumentsResponse' from JSON`,
|
|
131
|
+
);
|
|
132
|
+
}
|
|
@@ -16,9 +16,13 @@ export type ListClientsSecurity = {
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
export const ListClientsStatus = {
|
|
19
|
-
|
|
19
|
+
New: "new",
|
|
20
|
+
Contacted: "contacted",
|
|
21
|
+
Qualified: "qualified",
|
|
20
22
|
Active: "active",
|
|
21
23
|
Inactive: "inactive",
|
|
24
|
+
Declined: "declined",
|
|
25
|
+
Spam: "spam",
|
|
22
26
|
} as const;
|
|
23
27
|
export type ListClientsStatus = ClosedEnum<typeof ListClientsStatus>;
|
|
24
28
|
|
|
@@ -0,0 +1,142 @@
|
|
|
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 ListFormSubmissionsSecurity = {
|
|
14
|
+
apiKey?: string | undefined;
|
|
15
|
+
bearer?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const ListFormSubmissionsKind = {
|
|
19
|
+
Inquiry: "inquiry",
|
|
20
|
+
Questionnaire: "questionnaire",
|
|
21
|
+
} as const;
|
|
22
|
+
export type ListFormSubmissionsKind = ClosedEnum<
|
|
23
|
+
typeof ListFormSubmissionsKind
|
|
24
|
+
>;
|
|
25
|
+
|
|
26
|
+
export const ListFormSubmissionsStatus = {
|
|
27
|
+
InProgress: "in_progress",
|
|
28
|
+
Submitted: "submitted",
|
|
29
|
+
} as const;
|
|
30
|
+
export type ListFormSubmissionsStatus = ClosedEnum<
|
|
31
|
+
typeof ListFormSubmissionsStatus
|
|
32
|
+
>;
|
|
33
|
+
|
|
34
|
+
export type ListFormSubmissionsRequest = {
|
|
35
|
+
page?: number | undefined;
|
|
36
|
+
pageSize?: number | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* UUID v4
|
|
39
|
+
*/
|
|
40
|
+
formId?: string | undefined;
|
|
41
|
+
kind?: ListFormSubmissionsKind | undefined;
|
|
42
|
+
status?: ListFormSubmissionsStatus | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* UUID v4
|
|
45
|
+
*/
|
|
46
|
+
contactId?: string | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export type ListFormSubmissionsResponse = {
|
|
50
|
+
result: models.FormSubmissionList;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export type ListFormSubmissionsSecurity$Outbound = {
|
|
55
|
+
apiKey?: string | undefined;
|
|
56
|
+
bearer?: string | undefined;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export const ListFormSubmissionsSecurity$outboundSchema: z.ZodMiniType<
|
|
61
|
+
ListFormSubmissionsSecurity$Outbound,
|
|
62
|
+
ListFormSubmissionsSecurity
|
|
63
|
+
> = z.object({
|
|
64
|
+
apiKey: z.optional(z.string()),
|
|
65
|
+
bearer: z.optional(z.string()),
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
export function listFormSubmissionsSecurityToJSON(
|
|
69
|
+
listFormSubmissionsSecurity: ListFormSubmissionsSecurity,
|
|
70
|
+
): string {
|
|
71
|
+
return JSON.stringify(
|
|
72
|
+
ListFormSubmissionsSecurity$outboundSchema.parse(
|
|
73
|
+
listFormSubmissionsSecurity,
|
|
74
|
+
),
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const ListFormSubmissionsKind$outboundSchema: z.ZodMiniEnum<
|
|
80
|
+
typeof ListFormSubmissionsKind
|
|
81
|
+
> = z.enum(ListFormSubmissionsKind);
|
|
82
|
+
|
|
83
|
+
/** @internal */
|
|
84
|
+
export const ListFormSubmissionsStatus$outboundSchema: z.ZodMiniEnum<
|
|
85
|
+
typeof ListFormSubmissionsStatus
|
|
86
|
+
> = z.enum(ListFormSubmissionsStatus);
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export type ListFormSubmissionsRequest$Outbound = {
|
|
90
|
+
page: number;
|
|
91
|
+
pageSize: number;
|
|
92
|
+
formId?: string | undefined;
|
|
93
|
+
kind?: string | undefined;
|
|
94
|
+
status?: string | undefined;
|
|
95
|
+
contactId?: string | undefined;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
/** @internal */
|
|
99
|
+
export const ListFormSubmissionsRequest$outboundSchema: z.ZodMiniType<
|
|
100
|
+
ListFormSubmissionsRequest$Outbound,
|
|
101
|
+
ListFormSubmissionsRequest
|
|
102
|
+
> = z.object({
|
|
103
|
+
page: z._default(z.int(), 1),
|
|
104
|
+
pageSize: z._default(z.int(), 25),
|
|
105
|
+
formId: z.optional(z.string()),
|
|
106
|
+
kind: z.optional(ListFormSubmissionsKind$outboundSchema),
|
|
107
|
+
status: z.optional(ListFormSubmissionsStatus$outboundSchema),
|
|
108
|
+
contactId: z.optional(z.string()),
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
export function listFormSubmissionsRequestToJSON(
|
|
112
|
+
listFormSubmissionsRequest: ListFormSubmissionsRequest,
|
|
113
|
+
): string {
|
|
114
|
+
return JSON.stringify(
|
|
115
|
+
ListFormSubmissionsRequest$outboundSchema.parse(listFormSubmissionsRequest),
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/** @internal */
|
|
120
|
+
export const ListFormSubmissionsResponse$inboundSchema: z.ZodMiniType<
|
|
121
|
+
ListFormSubmissionsResponse,
|
|
122
|
+
unknown
|
|
123
|
+
> = z.pipe(
|
|
124
|
+
z.object({
|
|
125
|
+
Result: models.FormSubmissionList$inboundSchema,
|
|
126
|
+
}),
|
|
127
|
+
z.transform((v) => {
|
|
128
|
+
return remap$(v, {
|
|
129
|
+
"Result": "result",
|
|
130
|
+
});
|
|
131
|
+
}),
|
|
132
|
+
);
|
|
133
|
+
|
|
134
|
+
export function listFormSubmissionsResponseFromJSON(
|
|
135
|
+
jsonString: string,
|
|
136
|
+
): SafeParseResult<ListFormSubmissionsResponse, SDKValidationError> {
|
|
137
|
+
return safeParse(
|
|
138
|
+
jsonString,
|
|
139
|
+
(x) => ListFormSubmissionsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
140
|
+
`Failed to parse 'ListFormSubmissionsResponse' from JSON`,
|
|
141
|
+
);
|
|
142
|
+
}
|