@clientcasa/sdk 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/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/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-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/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/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/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-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/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
|
@@ -1,73 +0,0 @@
|
|
|
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 * as models from "../index.js";
|
|
8
|
-
|
|
9
|
-
export type CreateInquirySecurity = {
|
|
10
|
-
apiKey?: string | undefined;
|
|
11
|
-
bearer?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export type CreateInquiryRequest = {
|
|
15
|
-
/**
|
|
16
|
-
* Optional unique key that makes this create safely retryable. Replaying the same key returns the original response instead of creating a duplicate; reusing a key with a different request body returns 409.
|
|
17
|
-
*/
|
|
18
|
-
idempotencyKey?: string | undefined;
|
|
19
|
-
body: models.InquiryCreate;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
/** @internal */
|
|
23
|
-
export type CreateInquirySecurity$Outbound = {
|
|
24
|
-
apiKey?: string | undefined;
|
|
25
|
-
bearer?: string | undefined;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
/** @internal */
|
|
29
|
-
export const CreateInquirySecurity$outboundSchema: z.ZodMiniType<
|
|
30
|
-
CreateInquirySecurity$Outbound,
|
|
31
|
-
CreateInquirySecurity
|
|
32
|
-
> = z.object({
|
|
33
|
-
apiKey: z.optional(z.string()),
|
|
34
|
-
bearer: z.optional(z.string()),
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
export function createInquirySecurityToJSON(
|
|
38
|
-
createInquirySecurity: CreateInquirySecurity,
|
|
39
|
-
): string {
|
|
40
|
-
return JSON.stringify(
|
|
41
|
-
CreateInquirySecurity$outboundSchema.parse(createInquirySecurity),
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/** @internal */
|
|
46
|
-
export type CreateInquiryRequest$Outbound = {
|
|
47
|
-
"Idempotency-Key"?: string | undefined;
|
|
48
|
-
body: models.InquiryCreate$Outbound;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
/** @internal */
|
|
52
|
-
export const CreateInquiryRequest$outboundSchema: z.ZodMiniType<
|
|
53
|
-
CreateInquiryRequest$Outbound,
|
|
54
|
-
CreateInquiryRequest
|
|
55
|
-
> = z.pipe(
|
|
56
|
-
z.object({
|
|
57
|
-
idempotencyKey: z.optional(z.string()),
|
|
58
|
-
body: models.InquiryCreate$outboundSchema,
|
|
59
|
-
}),
|
|
60
|
-
z.transform((v) => {
|
|
61
|
-
return remap$(v, {
|
|
62
|
-
idempotencyKey: "Idempotency-Key",
|
|
63
|
-
});
|
|
64
|
-
}),
|
|
65
|
-
);
|
|
66
|
-
|
|
67
|
-
export function createInquiryRequestToJSON(
|
|
68
|
-
createInquiryRequest: CreateInquiryRequest,
|
|
69
|
-
): string {
|
|
70
|
-
return JSON.stringify(
|
|
71
|
-
CreateInquiryRequest$outboundSchema.parse(createInquiryRequest),
|
|
72
|
-
);
|
|
73
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
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 * as models from "../index.js";
|
|
8
|
-
|
|
9
|
-
export type CreateProposalSecurity = {
|
|
10
|
-
apiKey?: string | undefined;
|
|
11
|
-
bearer?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export type CreateProposalRequest = {
|
|
15
|
-
/**
|
|
16
|
-
* Optional unique key that makes this create safely retryable. Replaying the same key returns the original response instead of creating a duplicate; reusing a key with a different request body returns 409.
|
|
17
|
-
*/
|
|
18
|
-
idempotencyKey?: string | undefined;
|
|
19
|
-
body: models.ProposalCreate;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
/** @internal */
|
|
23
|
-
export type CreateProposalSecurity$Outbound = {
|
|
24
|
-
apiKey?: string | undefined;
|
|
25
|
-
bearer?: string | undefined;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
/** @internal */
|
|
29
|
-
export const CreateProposalSecurity$outboundSchema: z.ZodMiniType<
|
|
30
|
-
CreateProposalSecurity$Outbound,
|
|
31
|
-
CreateProposalSecurity
|
|
32
|
-
> = z.object({
|
|
33
|
-
apiKey: z.optional(z.string()),
|
|
34
|
-
bearer: z.optional(z.string()),
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
export function createProposalSecurityToJSON(
|
|
38
|
-
createProposalSecurity: CreateProposalSecurity,
|
|
39
|
-
): string {
|
|
40
|
-
return JSON.stringify(
|
|
41
|
-
CreateProposalSecurity$outboundSchema.parse(createProposalSecurity),
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/** @internal */
|
|
46
|
-
export type CreateProposalRequest$Outbound = {
|
|
47
|
-
"Idempotency-Key"?: string | undefined;
|
|
48
|
-
body: models.ProposalCreate$Outbound;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
/** @internal */
|
|
52
|
-
export const CreateProposalRequest$outboundSchema: z.ZodMiniType<
|
|
53
|
-
CreateProposalRequest$Outbound,
|
|
54
|
-
CreateProposalRequest
|
|
55
|
-
> = z.pipe(
|
|
56
|
-
z.object({
|
|
57
|
-
idempotencyKey: z.optional(z.string()),
|
|
58
|
-
body: models.ProposalCreate$outboundSchema,
|
|
59
|
-
}),
|
|
60
|
-
z.transform((v) => {
|
|
61
|
-
return remap$(v, {
|
|
62
|
-
idempotencyKey: "Idempotency-Key",
|
|
63
|
-
});
|
|
64
|
-
}),
|
|
65
|
-
);
|
|
66
|
-
|
|
67
|
-
export function createProposalRequestToJSON(
|
|
68
|
-
createProposalRequest: CreateProposalRequest,
|
|
69
|
-
): string {
|
|
70
|
-
return JSON.stringify(
|
|
71
|
-
CreateProposalRequest$outboundSchema.parse(createProposalRequest),
|
|
72
|
-
);
|
|
73
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
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 DeleteInquirySecurity = {
|
|
8
|
-
apiKey?: string | undefined;
|
|
9
|
-
bearer?: string | undefined;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export type DeleteInquiryRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* UUID v4
|
|
15
|
-
*/
|
|
16
|
-
id: string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/** @internal */
|
|
20
|
-
export type DeleteInquirySecurity$Outbound = {
|
|
21
|
-
apiKey?: string | undefined;
|
|
22
|
-
bearer?: string | undefined;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
/** @internal */
|
|
26
|
-
export const DeleteInquirySecurity$outboundSchema: z.ZodMiniType<
|
|
27
|
-
DeleteInquirySecurity$Outbound,
|
|
28
|
-
DeleteInquirySecurity
|
|
29
|
-
> = z.object({
|
|
30
|
-
apiKey: z.optional(z.string()),
|
|
31
|
-
bearer: z.optional(z.string()),
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
export function deleteInquirySecurityToJSON(
|
|
35
|
-
deleteInquirySecurity: DeleteInquirySecurity,
|
|
36
|
-
): string {
|
|
37
|
-
return JSON.stringify(
|
|
38
|
-
DeleteInquirySecurity$outboundSchema.parse(deleteInquirySecurity),
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export type DeleteInquiryRequest$Outbound = {
|
|
44
|
-
id: string;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
/** @internal */
|
|
48
|
-
export const DeleteInquiryRequest$outboundSchema: z.ZodMiniType<
|
|
49
|
-
DeleteInquiryRequest$Outbound,
|
|
50
|
-
DeleteInquiryRequest
|
|
51
|
-
> = z.object({
|
|
52
|
-
id: z.string(),
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
export function deleteInquiryRequestToJSON(
|
|
56
|
-
deleteInquiryRequest: DeleteInquiryRequest,
|
|
57
|
-
): string {
|
|
58
|
-
return JSON.stringify(
|
|
59
|
-
DeleteInquiryRequest$outboundSchema.parse(deleteInquiryRequest),
|
|
60
|
-
);
|
|
61
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
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 DeleteProposalSecurity = {
|
|
8
|
-
apiKey?: string | undefined;
|
|
9
|
-
bearer?: string | undefined;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export type DeleteProposalRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* UUID v4
|
|
15
|
-
*/
|
|
16
|
-
id: string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/** @internal */
|
|
20
|
-
export type DeleteProposalSecurity$Outbound = {
|
|
21
|
-
apiKey?: string | undefined;
|
|
22
|
-
bearer?: string | undefined;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
/** @internal */
|
|
26
|
-
export const DeleteProposalSecurity$outboundSchema: z.ZodMiniType<
|
|
27
|
-
DeleteProposalSecurity$Outbound,
|
|
28
|
-
DeleteProposalSecurity
|
|
29
|
-
> = z.object({
|
|
30
|
-
apiKey: z.optional(z.string()),
|
|
31
|
-
bearer: z.optional(z.string()),
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
export function deleteProposalSecurityToJSON(
|
|
35
|
-
deleteProposalSecurity: DeleteProposalSecurity,
|
|
36
|
-
): string {
|
|
37
|
-
return JSON.stringify(
|
|
38
|
-
DeleteProposalSecurity$outboundSchema.parse(deleteProposalSecurity),
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export type DeleteProposalRequest$Outbound = {
|
|
44
|
-
id: string;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
/** @internal */
|
|
48
|
-
export const DeleteProposalRequest$outboundSchema: z.ZodMiniType<
|
|
49
|
-
DeleteProposalRequest$Outbound,
|
|
50
|
-
DeleteProposalRequest
|
|
51
|
-
> = z.object({
|
|
52
|
-
id: z.string(),
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
export function deleteProposalRequestToJSON(
|
|
56
|
-
deleteProposalRequest: DeleteProposalRequest,
|
|
57
|
-
): string {
|
|
58
|
-
return JSON.stringify(
|
|
59
|
-
DeleteProposalRequest$outboundSchema.parse(deleteProposalRequest),
|
|
60
|
-
);
|
|
61
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
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 GetInquirySecurity = {
|
|
8
|
-
apiKey?: string | undefined;
|
|
9
|
-
bearer?: string | undefined;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export type GetInquiryRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* UUID v4
|
|
15
|
-
*/
|
|
16
|
-
id: string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/** @internal */
|
|
20
|
-
export type GetInquirySecurity$Outbound = {
|
|
21
|
-
apiKey?: string | undefined;
|
|
22
|
-
bearer?: string | undefined;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
/** @internal */
|
|
26
|
-
export const GetInquirySecurity$outboundSchema: z.ZodMiniType<
|
|
27
|
-
GetInquirySecurity$Outbound,
|
|
28
|
-
GetInquirySecurity
|
|
29
|
-
> = z.object({
|
|
30
|
-
apiKey: z.optional(z.string()),
|
|
31
|
-
bearer: z.optional(z.string()),
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
export function getInquirySecurityToJSON(
|
|
35
|
-
getInquirySecurity: GetInquirySecurity,
|
|
36
|
-
): string {
|
|
37
|
-
return JSON.stringify(
|
|
38
|
-
GetInquirySecurity$outboundSchema.parse(getInquirySecurity),
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export type GetInquiryRequest$Outbound = {
|
|
44
|
-
id: string;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
/** @internal */
|
|
48
|
-
export const GetInquiryRequest$outboundSchema: z.ZodMiniType<
|
|
49
|
-
GetInquiryRequest$Outbound,
|
|
50
|
-
GetInquiryRequest
|
|
51
|
-
> = z.object({
|
|
52
|
-
id: z.string(),
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
export function getInquiryRequestToJSON(
|
|
56
|
-
getInquiryRequest: GetInquiryRequest,
|
|
57
|
-
): string {
|
|
58
|
-
return JSON.stringify(
|
|
59
|
-
GetInquiryRequest$outboundSchema.parse(getInquiryRequest),
|
|
60
|
-
);
|
|
61
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
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 GetProposalSecurity = {
|
|
8
|
-
apiKey?: string | undefined;
|
|
9
|
-
bearer?: string | undefined;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export type GetProposalRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* UUID v4
|
|
15
|
-
*/
|
|
16
|
-
id: string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/** @internal */
|
|
20
|
-
export type GetProposalSecurity$Outbound = {
|
|
21
|
-
apiKey?: string | undefined;
|
|
22
|
-
bearer?: string | undefined;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
/** @internal */
|
|
26
|
-
export const GetProposalSecurity$outboundSchema: z.ZodMiniType<
|
|
27
|
-
GetProposalSecurity$Outbound,
|
|
28
|
-
GetProposalSecurity
|
|
29
|
-
> = z.object({
|
|
30
|
-
apiKey: z.optional(z.string()),
|
|
31
|
-
bearer: z.optional(z.string()),
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
export function getProposalSecurityToJSON(
|
|
35
|
-
getProposalSecurity: GetProposalSecurity,
|
|
36
|
-
): string {
|
|
37
|
-
return JSON.stringify(
|
|
38
|
-
GetProposalSecurity$outboundSchema.parse(getProposalSecurity),
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export type GetProposalRequest$Outbound = {
|
|
44
|
-
id: string;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
/** @internal */
|
|
48
|
-
export const GetProposalRequest$outboundSchema: z.ZodMiniType<
|
|
49
|
-
GetProposalRequest$Outbound,
|
|
50
|
-
GetProposalRequest
|
|
51
|
-
> = z.object({
|
|
52
|
-
id: z.string(),
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
export function getProposalRequestToJSON(
|
|
56
|
-
getProposalRequest: GetProposalRequest,
|
|
57
|
-
): string {
|
|
58
|
-
return JSON.stringify(
|
|
59
|
-
GetProposalRequest$outboundSchema.parse(getProposalRequest),
|
|
60
|
-
);
|
|
61
|
-
}
|
|
@@ -1,130 +0,0 @@
|
|
|
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 ListInquiriesSecurity = {
|
|
14
|
-
apiKey?: string | undefined;
|
|
15
|
-
bearer?: string | undefined;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const ListInquiriesStatus = {
|
|
19
|
-
New: "new",
|
|
20
|
-
Contacted: "contacted",
|
|
21
|
-
Qualified: "qualified",
|
|
22
|
-
Converted: "converted",
|
|
23
|
-
Declined: "declined",
|
|
24
|
-
Spam: "spam",
|
|
25
|
-
} as const;
|
|
26
|
-
export type ListInquiriesStatus = ClosedEnum<typeof ListInquiriesStatus>;
|
|
27
|
-
|
|
28
|
-
export const Source = {
|
|
29
|
-
InquiryForm: "inquiry_form",
|
|
30
|
-
Manual: "manual",
|
|
31
|
-
Referral: "referral",
|
|
32
|
-
Other: "other",
|
|
33
|
-
} as const;
|
|
34
|
-
export type Source = ClosedEnum<typeof Source>;
|
|
35
|
-
|
|
36
|
-
export type ListInquiriesRequest = {
|
|
37
|
-
page?: number | undefined;
|
|
38
|
-
pageSize?: number | undefined;
|
|
39
|
-
status?: ListInquiriesStatus | undefined;
|
|
40
|
-
source?: Source | undefined;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export type ListInquiriesResponse = {
|
|
44
|
-
result: models.InquiryList;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
/** @internal */
|
|
48
|
-
export type ListInquiriesSecurity$Outbound = {
|
|
49
|
-
apiKey?: string | undefined;
|
|
50
|
-
bearer?: string | undefined;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
/** @internal */
|
|
54
|
-
export const ListInquiriesSecurity$outboundSchema: z.ZodMiniType<
|
|
55
|
-
ListInquiriesSecurity$Outbound,
|
|
56
|
-
ListInquiriesSecurity
|
|
57
|
-
> = z.object({
|
|
58
|
-
apiKey: z.optional(z.string()),
|
|
59
|
-
bearer: z.optional(z.string()),
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
export function listInquiriesSecurityToJSON(
|
|
63
|
-
listInquiriesSecurity: ListInquiriesSecurity,
|
|
64
|
-
): string {
|
|
65
|
-
return JSON.stringify(
|
|
66
|
-
ListInquiriesSecurity$outboundSchema.parse(listInquiriesSecurity),
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/** @internal */
|
|
71
|
-
export const ListInquiriesStatus$outboundSchema: z.ZodMiniEnum<
|
|
72
|
-
typeof ListInquiriesStatus
|
|
73
|
-
> = z.enum(ListInquiriesStatus);
|
|
74
|
-
|
|
75
|
-
/** @internal */
|
|
76
|
-
export const Source$outboundSchema: z.ZodMiniEnum<typeof Source> = z.enum(
|
|
77
|
-
Source,
|
|
78
|
-
);
|
|
79
|
-
|
|
80
|
-
/** @internal */
|
|
81
|
-
export type ListInquiriesRequest$Outbound = {
|
|
82
|
-
page: number;
|
|
83
|
-
pageSize: number;
|
|
84
|
-
status?: string | undefined;
|
|
85
|
-
source?: string | undefined;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
/** @internal */
|
|
89
|
-
export const ListInquiriesRequest$outboundSchema: z.ZodMiniType<
|
|
90
|
-
ListInquiriesRequest$Outbound,
|
|
91
|
-
ListInquiriesRequest
|
|
92
|
-
> = z.object({
|
|
93
|
-
page: z._default(z.int(), 1),
|
|
94
|
-
pageSize: z._default(z.int(), 25),
|
|
95
|
-
status: z.optional(ListInquiriesStatus$outboundSchema),
|
|
96
|
-
source: z.optional(Source$outboundSchema),
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
export function listInquiriesRequestToJSON(
|
|
100
|
-
listInquiriesRequest: ListInquiriesRequest,
|
|
101
|
-
): string {
|
|
102
|
-
return JSON.stringify(
|
|
103
|
-
ListInquiriesRequest$outboundSchema.parse(listInquiriesRequest),
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/** @internal */
|
|
108
|
-
export const ListInquiriesResponse$inboundSchema: z.ZodMiniType<
|
|
109
|
-
ListInquiriesResponse,
|
|
110
|
-
unknown
|
|
111
|
-
> = z.pipe(
|
|
112
|
-
z.object({
|
|
113
|
-
Result: models.InquiryList$inboundSchema,
|
|
114
|
-
}),
|
|
115
|
-
z.transform((v) => {
|
|
116
|
-
return remap$(v, {
|
|
117
|
-
"Result": "result",
|
|
118
|
-
});
|
|
119
|
-
}),
|
|
120
|
-
);
|
|
121
|
-
|
|
122
|
-
export function listInquiriesResponseFromJSON(
|
|
123
|
-
jsonString: string,
|
|
124
|
-
): SafeParseResult<ListInquiriesResponse, SDKValidationError> {
|
|
125
|
-
return safeParse(
|
|
126
|
-
jsonString,
|
|
127
|
-
(x) => ListInquiriesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
128
|
-
`Failed to parse 'ListInquiriesResponse' from JSON`,
|
|
129
|
-
);
|
|
130
|
-
}
|
|
@@ -1,123 +0,0 @@
|
|
|
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 ListProposalsSecurity = {
|
|
14
|
-
apiKey?: string | undefined;
|
|
15
|
-
bearer?: string | undefined;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const ListProposalsStatus = {
|
|
19
|
-
Draft: "draft",
|
|
20
|
-
Sent: "sent",
|
|
21
|
-
Accepted: "accepted",
|
|
22
|
-
Rejected: "rejected",
|
|
23
|
-
Expired: "expired",
|
|
24
|
-
Void: "void",
|
|
25
|
-
} as const;
|
|
26
|
-
export type ListProposalsStatus = ClosedEnum<typeof ListProposalsStatus>;
|
|
27
|
-
|
|
28
|
-
export type ListProposalsRequest = {
|
|
29
|
-
page?: number | undefined;
|
|
30
|
-
pageSize?: number | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* UUID v4
|
|
33
|
-
*/
|
|
34
|
-
clientId?: string | undefined;
|
|
35
|
-
status?: ListProposalsStatus | undefined;
|
|
36
|
-
archived?: boolean | null | undefined;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export type ListProposalsResponse = {
|
|
40
|
-
result: models.ProposalList;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
/** @internal */
|
|
44
|
-
export type ListProposalsSecurity$Outbound = {
|
|
45
|
-
apiKey?: string | undefined;
|
|
46
|
-
bearer?: string | undefined;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
/** @internal */
|
|
50
|
-
export const ListProposalsSecurity$outboundSchema: z.ZodMiniType<
|
|
51
|
-
ListProposalsSecurity$Outbound,
|
|
52
|
-
ListProposalsSecurity
|
|
53
|
-
> = z.object({
|
|
54
|
-
apiKey: z.optional(z.string()),
|
|
55
|
-
bearer: z.optional(z.string()),
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
export function listProposalsSecurityToJSON(
|
|
59
|
-
listProposalsSecurity: ListProposalsSecurity,
|
|
60
|
-
): string {
|
|
61
|
-
return JSON.stringify(
|
|
62
|
-
ListProposalsSecurity$outboundSchema.parse(listProposalsSecurity),
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/** @internal */
|
|
67
|
-
export const ListProposalsStatus$outboundSchema: z.ZodMiniEnum<
|
|
68
|
-
typeof ListProposalsStatus
|
|
69
|
-
> = z.enum(ListProposalsStatus);
|
|
70
|
-
|
|
71
|
-
/** @internal */
|
|
72
|
-
export type ListProposalsRequest$Outbound = {
|
|
73
|
-
page: number;
|
|
74
|
-
pageSize: number;
|
|
75
|
-
clientId?: string | undefined;
|
|
76
|
-
status?: string | undefined;
|
|
77
|
-
archived?: boolean | null | undefined;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
/** @internal */
|
|
81
|
-
export const ListProposalsRequest$outboundSchema: z.ZodMiniType<
|
|
82
|
-
ListProposalsRequest$Outbound,
|
|
83
|
-
ListProposalsRequest
|
|
84
|
-
> = z.object({
|
|
85
|
-
page: z._default(z.int(), 1),
|
|
86
|
-
pageSize: z._default(z.int(), 25),
|
|
87
|
-
clientId: z.optional(z.string()),
|
|
88
|
-
status: z.optional(ListProposalsStatus$outboundSchema),
|
|
89
|
-
archived: z.optional(z.nullable(z.boolean())),
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
export function listProposalsRequestToJSON(
|
|
93
|
-
listProposalsRequest: ListProposalsRequest,
|
|
94
|
-
): string {
|
|
95
|
-
return JSON.stringify(
|
|
96
|
-
ListProposalsRequest$outboundSchema.parse(listProposalsRequest),
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/** @internal */
|
|
101
|
-
export const ListProposalsResponse$inboundSchema: z.ZodMiniType<
|
|
102
|
-
ListProposalsResponse,
|
|
103
|
-
unknown
|
|
104
|
-
> = z.pipe(
|
|
105
|
-
z.object({
|
|
106
|
-
Result: models.ProposalList$inboundSchema,
|
|
107
|
-
}),
|
|
108
|
-
z.transform((v) => {
|
|
109
|
-
return remap$(v, {
|
|
110
|
-
"Result": "result",
|
|
111
|
-
});
|
|
112
|
-
}),
|
|
113
|
-
);
|
|
114
|
-
|
|
115
|
-
export function listProposalsResponseFromJSON(
|
|
116
|
-
jsonString: string,
|
|
117
|
-
): SafeParseResult<ListProposalsResponse, SDKValidationError> {
|
|
118
|
-
return safeParse(
|
|
119
|
-
jsonString,
|
|
120
|
-
(x) => ListProposalsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
121
|
-
`Failed to parse 'ListProposalsResponse' from JSON`,
|
|
122
|
-
);
|
|
123
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v4-mini";
|
|
6
|
-
import * as models from "../index.js";
|
|
7
|
-
|
|
8
|
-
export type UpdateInquirySecurity = {
|
|
9
|
-
apiKey?: string | undefined;
|
|
10
|
-
bearer?: string | undefined;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export type UpdateInquiryRequest = {
|
|
14
|
-
/**
|
|
15
|
-
* UUID v4
|
|
16
|
-
*/
|
|
17
|
-
id: string;
|
|
18
|
-
body: models.InquiryUpdate;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
/** @internal */
|
|
22
|
-
export type UpdateInquirySecurity$Outbound = {
|
|
23
|
-
apiKey?: string | undefined;
|
|
24
|
-
bearer?: string | undefined;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
/** @internal */
|
|
28
|
-
export const UpdateInquirySecurity$outboundSchema: z.ZodMiniType<
|
|
29
|
-
UpdateInquirySecurity$Outbound,
|
|
30
|
-
UpdateInquirySecurity
|
|
31
|
-
> = z.object({
|
|
32
|
-
apiKey: z.optional(z.string()),
|
|
33
|
-
bearer: z.optional(z.string()),
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
export function updateInquirySecurityToJSON(
|
|
37
|
-
updateInquirySecurity: UpdateInquirySecurity,
|
|
38
|
-
): string {
|
|
39
|
-
return JSON.stringify(
|
|
40
|
-
UpdateInquirySecurity$outboundSchema.parse(updateInquirySecurity),
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/** @internal */
|
|
45
|
-
export type UpdateInquiryRequest$Outbound = {
|
|
46
|
-
id: string;
|
|
47
|
-
body: models.InquiryUpdate$Outbound;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
/** @internal */
|
|
51
|
-
export const UpdateInquiryRequest$outboundSchema: z.ZodMiniType<
|
|
52
|
-
UpdateInquiryRequest$Outbound,
|
|
53
|
-
UpdateInquiryRequest
|
|
54
|
-
> = z.object({
|
|
55
|
-
id: z.string(),
|
|
56
|
-
body: models.InquiryUpdate$outboundSchema,
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
export function updateInquiryRequestToJSON(
|
|
60
|
-
updateInquiryRequest: UpdateInquiryRequest,
|
|
61
|
-
): string {
|
|
62
|
-
return JSON.stringify(
|
|
63
|
-
UpdateInquiryRequest$outboundSchema.parse(updateInquiryRequest),
|
|
64
|
-
);
|
|
65
|
-
}
|