From 35e610b1d7f226989c506c236eb27eac43725b42 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 27 Nov 2024 00:31:17 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.448.0 --- .speakeasy/gen.lock | 30 ++-- .speakeasy/gen.yaml | 3 +- .speakeasy/workflow.lock | 15 +- README.md | 7 +- RELEASES.md | 12 +- codeSamples.yaml | 69 +--------- docs/models/components/comment.md | 9 -- docs/models/components/headers.md | 14 ++ docs/models/components/logindto.md | 3 +- .../components/passthroughrequestdto.md | 14 +- docs/models/components/projectresponse.md | 4 +- docs/models/components/querybody.md | 19 --- docs/models/components/ragqueryoutput.md | 34 ----- .../components/unifiedecommerceorderinput.md | 8 -- .../components/unifiedecommerceorderoutput.md | 8 -- .../components/unifiedticketingticketinput.md | 9 -- .../unifiedticketingticketinputcomment.md | 9 -- .../unifiedticketingticketoutput.md | 9 -- docs/models/components/webhookdto.md | 2 +- .../operations/createcrmcontactrequest.md | 4 +- .../operations/createecommerceorderrequest.md | 8 -- .../createticketingticketrequest.md | 9 -- .../operations/listcrmcontactsresponse.md | 4 +- .../operations/listcrmcontactsresponsebody.md | 4 +- .../operations/listecommerceordersresponse.md | 8 -- .../listecommerceordersresponsebody.md | 8 -- .../operations/listticketingticketresponse.md | 9 -- .../listticketingticketresponsebody.md | 9 -- docs/models/operations/queryrequest.md | 22 --- .../requestpassthroughresponsebody.md | 14 ++ docs/models/operations/requestrequest.md | 11 +- docs/models/operations/requestresponse.md | 17 +++ .../updatepullfrequencyresponsebody.md | 14 ++ docs/sdks/accounting/README.md | 6 +- docs/sdks/attachments/README.md | 2 - docs/sdks/auth/README.md | 6 +- docs/sdks/crm/README.md | 6 +- docs/sdks/ecommerce/README.md | 6 +- docs/sdks/expenses/README.md | 2 - docs/sdks/filestorage/README.md | 6 +- docs/sdks/invoices/README.md | 2 - docs/sdks/journalentries/README.md | 2 - docs/sdks/marketingautomation/README.md | 6 +- docs/sdks/orders/README.md | 2 - docs/sdks/panoraaccountingcontacts/README.md | 2 - docs/sdks/panoraaccounts/README.md | 2 - docs/sdks/passthrough/README.md | 4 +- docs/sdks/payments/README.md | 2 - docs/sdks/products/README.md | 8 -- docs/sdks/purchaseorders/README.md | 2 - docs/sdks/rag/README.md | 92 ------------- docs/sdks/sync/README.md | 10 +- docs/sdks/ticketing/README.md | 6 +- jsr.json | 2 +- package-lock.json | 63 ++++++++- package.json | 4 +- src/funcs/accountingAccountsList.ts | 38 ++--- src/funcs/accountingAddressesList.ts | 38 ++--- src/funcs/accountingAttachmentsList.ts | 38 ++--- src/funcs/accountingBalancesheetsList.ts | 38 ++--- src/funcs/accountingCashflowstatementsList.ts | 38 ++--- src/funcs/accountingCompanyinfosList.ts | 38 ++--- src/funcs/accountingContactsList.ts | 38 ++--- src/funcs/accountingCreditnotesList.ts | 38 ++--- src/funcs/accountingExpensesList.ts | 38 ++--- src/funcs/accountingIncomestatementsList.ts | 38 ++--- src/funcs/accountingInvoicesList.ts | 38 ++--- src/funcs/accountingItemsList.ts | 38 ++--- src/funcs/accountingJournalentriesList.ts | 38 ++--- src/funcs/accountingPaymentsList.ts | 38 ++--- src/funcs/accountingPhonenumbersList.ts | 38 ++--- src/funcs/accountingPurchaseordersList.ts | 38 ++--- src/funcs/accountingTaxratesList.ts | 38 ++--- src/funcs/accountingTrackingcategoriesList.ts | 38 ++--- src/funcs/accountingTransactionsList.ts | 38 ++--- src/funcs/accountingVendorcreditsList.ts | 38 ++--- src/funcs/crmCompaniesList.ts | 38 ++--- src/funcs/crmContactsList.ts | 38 ++--- src/funcs/crmDealsList.ts | 38 ++--- src/funcs/crmEngagementsList.ts | 38 ++--- src/funcs/crmNotesList.ts | 38 ++--- src/funcs/crmStagesList.ts | 38 ++--- src/funcs/crmTasksList.ts | 38 ++--- src/funcs/crmUsersList.ts | 38 ++--- src/funcs/ecommerceCustomersList.ts | 38 ++--- src/funcs/ecommerceFulfillmentsList.ts | 38 ++--- src/funcs/ecommerceOrdersList.ts | 38 ++--- src/funcs/ecommerceProductsList.ts | 38 ++--- src/funcs/filestorageFilesList.ts | 38 ++--- src/funcs/filestorageFoldersList.ts | 38 ++--- src/funcs/filestorageGroupsList.ts | 38 ++--- src/funcs/filestorageUsersList.ts | 38 ++--- src/funcs/marketingautomationActionsList.ts | 38 ++--- .../marketingautomationAutomationsList.ts | 38 ++--- src/funcs/marketingautomationCampaignsList.ts | 38 ++--- src/funcs/marketingautomationContactsList.ts | 38 ++--- src/funcs/marketingautomationEmailsList.ts | 38 ++--- src/funcs/marketingautomationEventsList.ts | 38 ++--- src/funcs/marketingautomationListsList.ts | 38 ++--- src/funcs/marketingautomationMessagesList.ts | 38 ++--- src/funcs/marketingautomationTemplatesList.ts | 38 ++--- src/funcs/marketingautomationUsersList.ts | 38 ++--- src/funcs/passthroughRequest.ts | 7 +- src/funcs/ragQuery.ts | 130 ------------------ src/funcs/syncUpdatePullFrequency.ts | 17 ++- src/funcs/ticketingAccountsList.ts | 38 ++--- src/funcs/ticketingAttachmentsList.ts | 38 ++--- src/funcs/ticketingCollectionsList.ts | 38 ++--- src/funcs/ticketingCommentsList.ts | 38 ++--- src/funcs/ticketingContactsList.ts | 38 ++--- src/funcs/ticketingTagsList.ts | 38 ++--- src/funcs/ticketingTeamsList.ts | 38 ++--- src/funcs/ticketingTicketsList.ts | 38 ++--- src/funcs/ticketingUsersList.ts | 38 ++--- src/funcs/webhooksDelete.ts | 7 +- src/funcs/webhooksUpdateStatus.ts | 7 +- src/lib/config.ts | 6 +- src/lib/primitives.ts | 62 +++++++++ src/models/components/index.ts | 2 - src/models/components/logindto.ts | 8 +- .../components/passthroughrequestdto.ts | 79 +++++++++-- src/models/components/projectresponse.ts | 16 +-- src/models/components/querybody.ts | 72 ---------- src/models/components/ragqueryoutput.ts | 86 ------------ src/models/components/webhookdto.ts | 8 +- src/models/operations/getpanoracoreevents.ts | 12 +- src/models/operations/index.ts | 2 +- .../operations/listaccountingaccounts.ts | 6 +- .../operations/listaccountingaddress.ts | 6 +- .../operations/listaccountingattachments.ts | 6 +- .../operations/listaccountingbalancesheets.ts | 6 +- .../listaccountingcashflowstatement.ts | 6 +- .../operations/listaccountingcompanyinfos.ts | 6 +- .../operations/listaccountingcontacts.ts | 6 +- .../operations/listaccountingcreditnote.ts | 6 +- .../operations/listaccountingexpense.ts | 6 +- .../listaccountingincomestatement.ts | 6 +- .../operations/listaccountinginvoice.ts | 6 +- src/models/operations/listaccountingitem.ts | 6 +- .../operations/listaccountingjournalentry.ts | 6 +- .../operations/listaccountingpayment.ts | 6 +- .../operations/listaccountingphonenumber.ts | 6 +- .../operations/listaccountingpurchaseorder.ts | 6 +- .../operations/listaccountingtaxrate.ts | 6 +- .../listaccountingtrackingcategorys.ts | 6 +- .../operations/listaccountingtransaction.ts | 6 +- .../operations/listaccountingvendorcredit.ts | 6 +- src/models/operations/listcrmcompany.ts | 6 +- src/models/operations/listcrmcontacts.ts | 6 +- src/models/operations/listcrmdeals.ts | 6 +- src/models/operations/listcrmengagements.ts | 6 +- src/models/operations/listcrmnote.ts | 6 +- src/models/operations/listcrmstages.ts | 6 +- src/models/operations/listcrmtask.ts | 6 +- src/models/operations/listcrmusers.ts | 6 +- .../operations/listecommercecustomers.ts | 6 +- .../operations/listecommercefulfillments.ts | 6 +- src/models/operations/listecommerceorders.ts | 6 +- .../operations/listecommerceproducts.ts | 6 +- src/models/operations/listfilestoragefile.ts | 6 +- .../operations/listfilestoragefolder.ts | 6 +- src/models/operations/listfilestoragegroup.ts | 6 +- src/models/operations/listfilestorageusers.ts | 6 +- .../listmarketingautomationaction.ts | 6 +- .../listmarketingautomationautomations.ts | 6 +- .../listmarketingautomationcampaigns.ts | 6 +- .../listmarketingautomationcontacts.ts | 6 +- .../listmarketingautomationemails.ts | 6 +- .../listmarketingautomationevents.ts | 6 +- .../listmarketingautomationlists.ts | 6 +- .../listmarketingautomationmessages.ts | 6 +- .../listmarketingautomationtemplates.ts | 6 +- .../listmarketingautomationusers.ts | 6 +- src/models/operations/listticketingaccount.ts | 6 +- .../operations/listticketingattachments.ts | 6 +- .../operations/listticketingcollections.ts | 6 +- .../operations/listticketingcomments.ts | 6 +- .../operations/listticketingcontacts.ts | 6 +- src/models/operations/listticketingtags.ts | 6 +- src/models/operations/listticketingteams.ts | 6 +- src/models/operations/listticketingticket.ts | 6 +- src/models/operations/listticketingusers.ts | 6 +- src/models/operations/query.ts | 81 ----------- src/models/operations/request.ts | 110 +++++++++++++++ src/models/operations/updatepullfrequency.ts | 60 ++++++++ src/sdk/accounts.ts | 4 +- src/sdk/actions.ts | 7 +- src/sdk/addresses.ts | 4 +- src/sdk/attachments.ts | 7 +- src/sdk/automations.ts | 5 +- src/sdk/balancesheets.ts | 7 +- src/sdk/campaigns.ts | 5 +- src/sdk/cashflowstatements.ts | 7 +- src/sdk/collections.ts | 7 +- src/sdk/comments.ts | 4 +- src/sdk/companies.ts | 4 +- src/sdk/companyinfos.ts | 7 +- src/sdk/contacts.ts | 4 +- src/sdk/creditnotes.ts | 7 +- src/sdk/customers.ts | 4 +- src/sdk/deals.ts | 4 +- src/sdk/emails.ts | 7 +- src/sdk/engagements.ts | 4 +- src/sdk/expenses.ts | 4 +- src/sdk/files.ts | 4 +- src/sdk/folders.ts | 4 +- src/sdk/fulfillments.ts | 7 +- src/sdk/groups.ts | 4 +- src/sdk/incomestatements.ts | 7 +- src/sdk/invoices.ts | 4 +- src/sdk/items.ts | 4 +- src/sdk/journalentries.ts | 7 +- src/sdk/lists.ts | 7 +- src/sdk/messages.ts | 7 +- src/sdk/notes.ts | 2 +- src/sdk/orders.ts | 4 +- src/sdk/panoraaccountingcontacts.ts | 4 +- src/sdk/panoraaccounts.ts | 4 +- src/sdk/panoraattachments.ts | 7 +- src/sdk/panoracontacts.ts | 4 +- src/sdk/panoraevents.ts | 7 +- src/sdk/panorafilestorageusers.ts | 4 +- src/sdk/panoramarketingautomationcontacts.ts | 7 +- src/sdk/panoramarketingautomationusers.ts | 7 +- src/sdk/panorausers.ts | 4 +- src/sdk/passthrough.ts | 2 +- src/sdk/payments.ts | 4 +- src/sdk/phonenumbers.ts | 7 +- src/sdk/products.ts | 4 +- src/sdk/purchaseorders.ts | 7 +- src/sdk/rag.ts | 28 ---- src/sdk/sdk.ts | 16 +-- src/sdk/stages.ts | 4 +- src/sdk/sync.ts | 2 +- src/sdk/tags.ts | 4 +- src/sdk/tasks.ts | 2 +- src/sdk/taxrates.ts | 4 +- src/sdk/teams.ts | 4 +- src/sdk/templates.ts | 5 +- src/sdk/tickets.ts | 4 +- src/sdk/trackingcategories.ts | 7 +- src/sdk/transactions.ts | 7 +- src/sdk/users.ts | 4 +- src/sdk/vendorcredits.ts | 7 +- src/sdk/webhooks.ts | 4 +- src/types/operations.ts | 16 ++- tsconfig.json | 1 + 247 files changed, 2195 insertions(+), 2013 deletions(-) create mode 100644 docs/models/components/headers.md delete mode 100644 docs/models/components/querybody.md delete mode 100644 docs/models/components/ragqueryoutput.md delete mode 100644 docs/models/operations/queryrequest.md create mode 100644 docs/models/operations/requestpassthroughresponsebody.md create mode 100644 docs/models/operations/requestresponse.md create mode 100644 docs/models/operations/updatepullfrequencyresponsebody.md delete mode 100644 docs/sdks/rag/README.md delete mode 100644 src/funcs/ragQuery.ts delete mode 100644 src/models/components/querybody.ts delete mode 100644 src/models/components/ragqueryoutput.ts delete mode 100644 src/models/operations/query.ts create mode 100644 src/models/operations/updatepullfrequency.ts delete mode 100644 src/sdk/rag.ts diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 1a47fb82..a309ba8b 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,20 @@ lockVersion: 2.0.0 id: caaaa8c3-6dd7-43a5-841e-c3193e68cc73 management: - docChecksum: b61e31f00ae44ce87e930935e8780921 + docChecksum: a08fa2d210c75c15bc81e0b4da1bbe45 docVersion: "1.0" - speakeasyVersion: 1.440.2 - generationVersion: 2.460.1 - releaseVersion: 0.14.0 - configChecksum: 138a3672d0c0397a44733f29151c0c51 + speakeasyVersion: 1.448.0 + generationVersion: 2.466.0 + releaseVersion: 0.15.0 + configChecksum: 097955fa7e7d88bbc42dc3ce38ef6f9d repoURL: https://github.com/panoratech/typescript-sdk.git installationURL: https://github.com/panoratech/typescript-sdk published: true features: typescript: additionalDependencies: 0.1.0 - core: 3.18.5 + constsAndDefaults: 0.1.11 + core: 3.18.7 defaultEnabledRetries: 0.1.0 enumUnions: 0.1.0 envVarSecurityUsage: 0.1.2 @@ -59,6 +60,7 @@ generatedFiles: - docs/models/components/eventresponse.md - docs/models/components/eventresponsestatus.md - docs/models/components/fieldmappings.md + - docs/models/components/headers.md - docs/models/components/items.md - docs/models/components/lineitem.md - docs/models/components/linkeduserresponse.md @@ -72,8 +74,6 @@ generatedFiles: - docs/models/components/passthroughrequestdtomethod.md - docs/models/components/phone.md - docs/models/components/projectresponse.md - - docs/models/components/querybody.md - - docs/models/components/ragqueryoutput.md - docs/models/components/remotedata.md - docs/models/components/requestformat.md - docs/models/components/resyncstatusdto.md @@ -432,9 +432,10 @@ generatedFiles: - docs/models/operations/listticketingusersrequest.md - docs/models/operations/listticketingusersresponse.md - docs/models/operations/listticketingusersresponsebody.md - - docs/models/operations/queryrequest.md - docs/models/operations/remoteidrequest.md + - docs/models/operations/requestpassthroughresponsebody.md - docs/models/operations/requestrequest.md + - docs/models/operations/requestresponse.md - docs/models/operations/requestresponsebody.md - docs/models/operations/retrieveaccountingaccountrequest.md - docs/models/operations/retrieveaccountingaddressrequest.md @@ -495,6 +496,7 @@ generatedFiles: - docs/models/operations/retrieveticketingticketrequest.md - docs/models/operations/retrieveticketinguserrequest.md - docs/models/operations/statusrequest.md + - docs/models/operations/updatepullfrequencyresponsebody.md - docs/models/operations/updatestatusrequest.md - docs/models/operations/vertical.md - docs/sdks/accounting/README.md @@ -555,7 +557,6 @@ generatedFiles: - docs/sdks/products/README.md - docs/sdks/projects/README.md - docs/sdks/purchaseorders/README.md - - docs/sdks/rag/README.md - docs/sdks/retryid/README.md - docs/sdks/stages/README.md - docs/sdks/sync/README.md @@ -710,7 +711,6 @@ generatedFiles: - src/funcs/passthroughRetryidGetRetriedRequestResponse.ts - src/funcs/projectsCreate.ts - src/funcs/projectsGetProjects.ts - - src/funcs/ragQuery.ts - src/funcs/syncGetPullFrequency.ts - src/funcs/syncResync.ts - src/funcs/syncStatus.ts @@ -778,8 +778,6 @@ generatedFiles: - src/models/components/passthroughrequestdto.ts - src/models/components/phone.ts - src/models/components/projectresponse.ts - - src/models/components/querybody.ts - - src/models/components/ragqueryoutput.ts - src/models/components/resyncstatusdto.ts - src/models/components/security.ts - src/models/components/signatureverificationdto.ts @@ -959,7 +957,6 @@ generatedFiles: - src/models/operations/listticketingteams.ts - src/models/operations/listticketingticket.ts - src/models/operations/listticketingusers.ts - - src/models/operations/query.ts - src/models/operations/remoteid.ts - src/models/operations/request.ts - src/models/operations/retrieveaccountingaccount.ts @@ -1019,6 +1016,7 @@ generatedFiles: - src/models/operations/retrieveticketingticket.ts - src/models/operations/retrieveticketinguser.ts - src/models/operations/status.ts + - src/models/operations/updatepullfrequency.ts - src/models/operations/updatestatus.ts - src/sdk/accounting.ts - src/sdk/accounts.ts @@ -1078,7 +1076,6 @@ generatedFiles: - src/sdk/products.ts - src/sdk/projects.ts - src/sdk/purchaseorders.ts - - src/sdk/rag.ts - src/sdk/retryid.ts - src/sdk/sdk.ts - src/sdk/stages.ts @@ -3607,7 +3604,7 @@ examples: x-connection-token: "" responses: "200": - application/json: {"order_status": "UNSHIPPED", "order_number": "19823838833", "payment_status": "SUCCESS", "currency": "AUD", "total_price": 300, "total_discount": 10, "total_shipping": 120, "total_tax": 120, "fulfillment_status": "PENDING", "customer_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "items": [{"name": "Net Income", "value": 100000, "type": "Operating Activities", "parent_item": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "report_item_1234", "remote_generated_at": "2024-07-01T12:00:00Z", "company_info_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "created_at": "2024-06-15T12:00:00Z", "modified_at": "2024-06-15T12:00:00Z"}], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} + application/json: {"order_status": "UNSHIPPED", "order_number": "19823838833", "payment_status": "SUCCESS", "currency": "AUD", "total_price": 300, "total_discount": 10, "total_shipping": 120, "total_tax": 120, "fulfillment_status": "PENDING", "customer_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "items": [{"remote_id": "report_item_1234"}], "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "remote_id": "id_1", "created_at": "2024-10-01T12:00:00Z", "modified_at": "2024-10-01T12:00:00Z"} listEcommerceCustomers: "": parameters: @@ -3674,3 +3671,4 @@ examples: responses: "200": application/json: [] +generatedTests: {} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 32e2301b..c28aa38b 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -13,7 +13,7 @@ generation: oAuth2ClientCredentialsEnabled: false oAuth2PasswordEnabled: false typescript: - version: 0.14.0 + version: 0.15.0 additionalDependencies: dependencies: {} devDependencies: {} @@ -22,6 +22,7 @@ typescript: author: Speakeasy clientServerStatusCodesAsErrors: true defaultErrorName: SDKError + enableReactQuery: false enumFormat: enum flattenGlobalSecurity: true flatteningOrder: body-first diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 8d4a9256..086bc0df 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,20 +1,21 @@ -speakeasyVersion: 1.440.2 +speakeasyVersion: 1.448.0 sources: panora-open-api-swagger: sourceNamespace: panora-open-api-swagger - sourceRevisionDigest: sha256:d3236d7b709d3defa9e616c5d8f9e87e63ee432d5a22edd0c0636ad7596f49bf - sourceBlobDigest: sha256:c3baeb1c04282c36b71950e2794c677901e518bc81a6fbe3b27510ce6d74e56a + sourceRevisionDigest: sha256:825ac5247778ebd1ce66273c531b7a9fefd3f4e7c81d9a5310e6ebd32a32db12 + sourceBlobDigest: sha256:4414ab74f24b13568ec37faf4870f5e9ba060613a3970b0df39c5cf619a25bd0 tags: - latest - - speakeasy-sdk-regen-1731803522 + - speakeasy-sdk-regen-1732235415 + - "1.0" targets: my-first-target: source: panora-open-api-swagger sourceNamespace: panora-open-api-swagger - sourceRevisionDigest: sha256:d3236d7b709d3defa9e616c5d8f9e87e63ee432d5a22edd0c0636ad7596f49bf - sourceBlobDigest: sha256:c3baeb1c04282c36b71950e2794c677901e518bc81a6fbe3b27510ce6d74e56a + sourceRevisionDigest: sha256:825ac5247778ebd1ce66273c531b7a9fefd3f4e7c81d9a5310e6ebd32a32db12 + sourceBlobDigest: sha256:4414ab74f24b13568ec37faf4870f5e9ba060613a3970b0df39c5cf619a25bd0 codeSamplesNamespace: code-samples-typescript-my-first-target - codeSamplesRevisionDigest: sha256:440a8310b9f9aebc56cd8b0e5549dd9879209d29dc6a87ba9dbb2ebf79c4aad2 + codeSamplesRevisionDigest: sha256:f60b06a5bf10fdafd1e8d499750c84e62862c7768b9c8b3a1b85772fd715b94b workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index c306b3c1..5b813e4b 100644 --- a/README.md +++ b/README.md @@ -427,10 +427,6 @@ run(); * [getProjects](docs/sdks/projects/README.md#getprojects) - Retrieve projects * [create](docs/sdks/projects/README.md#create) - Create a project -### [rag](docs/sdks/rag/README.md) - -* [query](docs/sdks/rag/README.md#query) - Query using RAG Search - ### [sync](docs/sdks/sync/README.md) * [status](docs/sdks/sync/README.md#status) - Retrieve sync status of a certain vertical @@ -781,7 +777,7 @@ const panora = new Panora({ }); async function run() { - const result = await panora.filestorage.files.list({ + const result = await panora.ticketing.tickets.list({ xConnectionToken: "", remoteData: true, limit: 10, @@ -950,7 +946,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - [`passthroughRetryidGetRetriedRequestResponse`](docs/sdks/retryid/README.md#getretriedrequestresponse) - Retrieve response of a failed passthrough request due to rate limits - [`projectsCreate`](docs/sdks/projects/README.md#create) - Create a project - [`projectsGetProjects`](docs/sdks/projects/README.md#getprojects) - Retrieve projects -- [`ragQuery`](docs/sdks/rag/README.md#query) - Query using RAG Search - [`syncGetPullFrequency`](docs/sdks/sync/README.md#getpullfrequency) - Get pull frequency for verticals - [`syncResync`](docs/sdks/sync/README.md#resync) - Resync common objects across a vertical - [`syncStatus`](docs/sdks/sync/README.md#status) - Retrieve sync status of a certain vertical diff --git a/RELEASES.md b/RELEASES.md index 0fc1cd7f..c32c48a5 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -328,4 +328,14 @@ Based on: ### Generated - [typescript v0.14.0] . ### Releases -- [NPM v0.14.0] https://www.npmjs.com/package/@panora/sdk/v/0.14.0 - . \ No newline at end of file +- [NPM v0.14.0] https://www.npmjs.com/package/@panora/sdk/v/0.14.0 - . + +## 2024-11-27 00:29:59 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.448.0 (2.466.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.15.0] . +### Releases +- [NPM v0.15.0] https://www.npmjs.com/package/@panora/sdk/v/0.15.0 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 8027ef0f..3f7cf65c 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -77,7 +77,6 @@ actions: accountNumber: "1000", parentAccount: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, }, }); @@ -208,7 +207,6 @@ actions: fileName: "invoice.pdf", fileUrl: "https://example.com/files/invoice.pdf", accountId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, }, }); @@ -447,7 +445,6 @@ actions: currency: "USD", remoteUpdatedAt: "2024-06-15T12:00:00Z", companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, }, }); @@ -601,7 +598,6 @@ actions: modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], - fieldMappings: {}, }, }); @@ -762,7 +758,6 @@ actions: modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], - fieldMappings: {}, }, }); @@ -922,7 +917,6 @@ actions: modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], - fieldMappings: {}, }, }); @@ -1025,7 +1019,6 @@ actions: modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], - fieldMappings: {}, }, }); @@ -1182,7 +1175,6 @@ actions: modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], - fieldMappings: {}, }, }); @@ -1433,7 +1425,6 @@ actions: async function run() { await panora.auth.login.signIn({ - idUser: "", email: "Stanford_Rice@hotmail.com", passwordHash: "", }); @@ -2283,18 +2274,9 @@ actions: customerId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", items: [ { - name: "Net Income", - value: 100000, - type: "Operating Activities", - parentItem: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteId: "12345", - remoteGeneratedAt: new Date("2024-07-01T12:00:00Z"), - companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - createdAt: new Date("2024-06-15T12:00:00Z"), - modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], - fieldMappings: {}, }, }); @@ -2378,13 +2360,9 @@ actions: ], description: "best tee ever", vendor: "vendor_extern", - variants: [ - {}, - ], tags: [ "tag_1", ], - fieldMappings: {}, }, }); @@ -3653,13 +3631,6 @@ actions: passThroughRequestDto: { method: PassThroughRequestDtoMethod.Get, path: "/etc/periodic", - data: {}, - requestFormat: { - - }, - overrideBaseUrl: { - - }, }, }); @@ -3732,32 +3703,6 @@ actions: console.log(result); } - run(); - - target: $["paths"]["/rag/query"]["post"] - update: - x-codeSamples: - - lang: typescript - label: query - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora({ - apiKey: "", - }); - - async function run() { - const result = await panora.rag.query({ - xConnectionToken: "", - queryBody: { - query: "When does Panora incorporated?", - topK: 3, - }, - }); - - // Handle the result - console.log(result); - } - run(); - target: $["paths"]["/sync/pull_frequencies"]["get"] update: @@ -3792,7 +3737,7 @@ actions: }); async function run() { - await panora.sync.updatePullFrequency({ + const result = await panora.sync.updatePullFrequency({ crm: 1800, accounting: 14400, filestorage: 28800, @@ -3800,7 +3745,8 @@ actions: ticketing: 86400, }); - + // Handle the result + console.log(result); } run(); @@ -4331,15 +4277,6 @@ actions: ], comment: { body: "Assigned to Eric !", - htmlBody: "

Assigned to Eric !

", - isPrivate: false, - creatorType: "USER", - ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - attachments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], }, accountId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", diff --git a/docs/models/components/comment.md b/docs/models/components/comment.md index 33b6e1f3..dc573485 100644 --- a/docs/models/components/comment.md +++ b/docs/models/components/comment.md @@ -9,15 +9,6 @@ import { Comment } from "@panora/sdk/models/components"; let value: Comment = { body: "Assigned to Eric !", - htmlBody: "

Assigned to Eric !

", - isPrivate: false, - creatorType: "USER", - ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - attachments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], }; ``` diff --git a/docs/models/components/headers.md b/docs/models/components/headers.md new file mode 100644 index 00000000..16a7e5fe --- /dev/null +++ b/docs/models/components/headers.md @@ -0,0 +1,14 @@ +# Headers + +## Example Usage + +```typescript +import { Headers } from "@panora/sdk/models/components"; + +let value: Headers = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/logindto.md b/docs/models/components/logindto.md index 354a4232..fdcdb6b2 100644 --- a/docs/models/components/logindto.md +++ b/docs/models/components/logindto.md @@ -6,7 +6,6 @@ import { LoginDto } from "@panora/sdk/models/components"; let value: LoginDto = { - idUser: "", email: "Micheal.Little@yahoo.com", passwordHash: "", }; @@ -16,6 +15,6 @@ let value: LoginDto = { | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `idUser` | *string* | :heavy_check_mark: | N/A | +| `idUser` | *string* | :heavy_minus_sign: | N/A | | `email` | *string* | :heavy_check_mark: | N/A | | `passwordHash` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/passthroughrequestdto.md b/docs/models/components/passthroughrequestdto.md index d0f0fcb7..d5e68473 100644 --- a/docs/models/components/passthroughrequestdto.md +++ b/docs/models/components/passthroughrequestdto.md @@ -8,13 +8,6 @@ import { PassThroughRequestDto, PassThroughRequestDtoMethod } from "@panora/sdk/ let value: PassThroughRequestDto = { method: PassThroughRequestDtoMethod.Post, path: "/usr/lib", - data: {}, - requestFormat: { - "key": "", - }, - overrideBaseUrl: { - "key": "", - }, }; ``` @@ -24,6 +17,7 @@ let value: PassThroughRequestDto = { | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | | `method` | [components.PassThroughRequestDtoMethod](../../models/components/passthroughrequestdtomethod.md) | :heavy_check_mark: | N/A | | `path` | *string* | :heavy_check_mark: | N/A | -| `data` | [components.Data](../../models/components/data.md) | :heavy_check_mark: | N/A | -| `requestFormat` | *components.RequestFormat* | :heavy_check_mark: | N/A | -| `overrideBaseUrl` | Record | :heavy_check_mark: | N/A | \ No newline at end of file +| `data` | [components.Data](../../models/components/data.md) | :heavy_minus_sign: | N/A | +| `requestFormat` | *components.RequestFormat* | :heavy_minus_sign: | N/A | +| `overrideBaseUrl` | Record | :heavy_minus_sign: | N/A | +| `headers` | [components.Headers](../../models/components/headers.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/projectresponse.md b/docs/models/components/projectresponse.md index c0156302..e856f9a0 100644 --- a/docs/models/components/projectresponse.md +++ b/docs/models/components/projectresponse.md @@ -23,7 +23,7 @@ let value: ProjectResponse = { | `idProject` | *string* | :heavy_check_mark: | Unique identifier for the project | 123e4567-e89b-12d3-a456-426614174000 | | `name` | *string* | :heavy_check_mark: | Name of the project | My Project | | `syncMode` | *string* | :heavy_check_mark: | Synchronization mode of the project | automatic | -| `pullFrequency` | *number* | :heavy_check_mark: | Frequency of pulling data in seconds | 3600 | -| `redirectUrl` | *string* | :heavy_check_mark: | Redirect URL for the project | https://example.com/redirect | +| `pullFrequency` | *number* | :heavy_minus_sign: | Frequency of pulling data in seconds | 3600 | +| `redirectUrl` | *string* | :heavy_minus_sign: | Redirect URL for the project | https://example.com/redirect | | `idUser` | *string* | :heavy_check_mark: | User ID associated with the project | 123e4567-e89b-12d3-a456-426614174001 | | `idConnectorSet` | *string* | :heavy_check_mark: | Connector set ID associated with the project | 123e4567-e89b-12d3-a456-426614174002 | \ No newline at end of file diff --git a/docs/models/components/querybody.md b/docs/models/components/querybody.md deleted file mode 100644 index 4aa0f335..00000000 --- a/docs/models/components/querybody.md +++ /dev/null @@ -1,19 +0,0 @@ -# QueryBody - -## Example Usage - -```typescript -import { QueryBody } from "@panora/sdk/models/components"; - -let value: QueryBody = { - query: "When does Panora incorporated?", - topK: 3, -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `query` | *string* | :heavy_check_mark: | The query you want to received embeddings and chunks for | When does Panora incorporated? | -| `topK` | *number* | :heavy_minus_sign: | The number of most appropriate documents for your query. | 3 | \ No newline at end of file diff --git a/docs/models/components/ragqueryoutput.md b/docs/models/components/ragqueryoutput.md deleted file mode 100644 index fb591908..00000000 --- a/docs/models/components/ragqueryoutput.md +++ /dev/null @@ -1,34 +0,0 @@ -# RagQueryOutput - -## Example Usage - -```typescript -import { RagQueryOutput } from "@panora/sdk/models/components"; - -let value: RagQueryOutput = { - chunk: "Date : 06/07/2023", - metadata: { - "blobType": "", - "text": "ATTESTATION", - }, - score: 0.87, - embedding: [ - -0.00442447886, - -0.00116857514, - 0.00869117491, - -0.0361584462, - -0.00220073434, - 0.00946036354, - -0.0101112155, - ], -}; -``` - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `chunk` | *string* | :heavy_check_mark: | The chunk which matches the embed query | Date : 06/07/2023 | -| `metadata` | Record | :heavy_check_mark: | The metadata tied to the chunk | {
"blobType": "",
"text": "ATTESTATION"
} | -| `score` | *number* | :heavy_check_mark: | The score | 0.87 | -| `embedding` | *number*[] | :heavy_check_mark: | The embedding of the relevant chunk | [
-0.00442447886,
-0.00116857514,
0.00869117491,
-0.0361584462,
-0.00220073434,
0.00946036354,
-0.0101112155
] | \ No newline at end of file diff --git a/docs/models/components/unifiedecommerceorderinput.md b/docs/models/components/unifiedecommerceorderinput.md index 04838945..bdc51186 100644 --- a/docs/models/components/unifiedecommerceorderinput.md +++ b/docs/models/components/unifiedecommerceorderinput.md @@ -18,15 +18,7 @@ let value: UnifiedEcommerceOrderInput = { customerId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", items: [ { - name: "Net Income", - value: 100000, - type: "Operating Activities", - parentItem: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteId: "12345", - remoteGeneratedAt: new Date("2024-07-01T12:00:00Z"), - companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - createdAt: new Date("2024-06-15T12:00:00Z"), - modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], fieldMappings: {}, diff --git a/docs/models/components/unifiedecommerceorderoutput.md b/docs/models/components/unifiedecommerceorderoutput.md index bdb62ac1..b9c14d90 100644 --- a/docs/models/components/unifiedecommerceorderoutput.md +++ b/docs/models/components/unifiedecommerceorderoutput.md @@ -18,15 +18,7 @@ let value: UnifiedEcommerceOrderOutput = { customerId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", items: [ { - name: "Net Income", - value: 100000, - type: "Operating Activities", - parentItem: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteId: "12345", - remoteGeneratedAt: new Date("2024-07-01T12:00:00Z"), - companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - createdAt: new Date("2024-06-15T12:00:00Z"), - modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], fieldMappings: {}, diff --git a/docs/models/components/unifiedticketingticketinput.md b/docs/models/components/unifiedticketingticketinput.md index b65c4e68..a428ab2a 100644 --- a/docs/models/components/unifiedticketingticketinput.md +++ b/docs/models/components/unifiedticketingticketinput.md @@ -26,15 +26,6 @@ let value: UnifiedTicketingTicketInput = { ], comment: { body: "Assigned to Eric !", - htmlBody: "

Assigned to Eric !

", - isPrivate: false, - creatorType: "USER", - ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - attachments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], }, accountId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", diff --git a/docs/models/components/unifiedticketingticketinputcomment.md b/docs/models/components/unifiedticketingticketinputcomment.md index 88c99293..b089e648 100644 --- a/docs/models/components/unifiedticketingticketinputcomment.md +++ b/docs/models/components/unifiedticketingticketinputcomment.md @@ -9,15 +9,6 @@ import { UnifiedTicketingTicketInputComment } from "@panora/sdk/models/component let value: UnifiedTicketingTicketInputComment = { body: "Assigned to Eric !", - htmlBody: "

Assigned to Eric !

", - isPrivate: false, - creatorType: "USER", - ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - attachments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], }; ``` diff --git a/docs/models/components/unifiedticketingticketoutput.md b/docs/models/components/unifiedticketingticketoutput.md index 1513e4dd..4c1f897c 100644 --- a/docs/models/components/unifiedticketingticketoutput.md +++ b/docs/models/components/unifiedticketingticketoutput.md @@ -26,15 +26,6 @@ let value: UnifiedTicketingTicketOutput = { ], comment: { body: "Assigned to Eric !", - htmlBody: "

Assigned to Eric !

", - isPrivate: false, - creatorType: "USER", - ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - attachments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], }, accountId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", diff --git a/docs/models/components/webhookdto.md b/docs/models/components/webhookdto.md index 46b053cc..804f7e97 100644 --- a/docs/models/components/webhookdto.md +++ b/docs/models/components/webhookdto.md @@ -19,5 +19,5 @@ let value: WebhookDto = { | Field | Type | Required | Description | Example | | -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | | `url` | *string* | :heavy_check_mark: | The endpoint url of the webhook. | https://acme.com/webhook_receiver | -| `description` | *string* | :heavy_check_mark: | The description of the webhook. | Webhook to receive connection events | +| `description` | *string* | :heavy_minus_sign: | The description of the webhook. | Webhook to receive connection events | | `scope` | *string*[] | :heavy_check_mark: | The events that the webhook listen to. | [
"connection.created"
] | \ No newline at end of file diff --git a/docs/models/operations/createcrmcontactrequest.md b/docs/models/operations/createcrmcontactrequest.md index fad185eb..35d11962 100644 --- a/docs/models/operations/createcrmcontactrequest.md +++ b/docs/models/operations/createcrmcontactrequest.md @@ -13,13 +13,13 @@ let value: CreateCrmContactRequest = { lastName: "Doe", emailAddresses: [ { - emailAddress: "Jewell_Nolan-Kassulke1@hotmail.com", + emailAddress: "Shaniya_Tillman@yahoo.com", emailAddressType: "", }, ], phoneNumbers: [ { - phoneNumber: "1-464-325-5566 x4834", + phoneNumber: "746.236.2641 x25556", phoneType: "", }, ], diff --git a/docs/models/operations/createecommerceorderrequest.md b/docs/models/operations/createecommerceorderrequest.md index dde7e262..50ec0f9e 100644 --- a/docs/models/operations/createecommerceorderrequest.md +++ b/docs/models/operations/createecommerceorderrequest.md @@ -21,15 +21,7 @@ let value: CreateEcommerceOrderRequest = { customerId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", items: [ { - name: "Net Income", - value: 100000, - type: "Operating Activities", - parentItem: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteId: "12345", - remoteGeneratedAt: new Date("2024-07-01T12:00:00Z"), - companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - createdAt: new Date("2024-06-15T12:00:00Z"), - modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], fieldMappings: {}, diff --git a/docs/models/operations/createticketingticketrequest.md b/docs/models/operations/createticketingticketrequest.md index cda2adba..01d4dfab 100644 --- a/docs/models/operations/createticketingticketrequest.md +++ b/docs/models/operations/createticketingticketrequest.md @@ -29,15 +29,6 @@ let value: CreateTicketingTicketRequest = { ], comment: { body: "Assigned to Eric !", - htmlBody: "

Assigned to Eric !

", - isPrivate: false, - creatorType: "USER", - ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - attachments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], }, accountId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", diff --git a/docs/models/operations/listcrmcontactsresponse.md b/docs/models/operations/listcrmcontactsresponse.md index 1aeb34ee..f96471d0 100644 --- a/docs/models/operations/listcrmcontactsresponse.md +++ b/docs/models/operations/listcrmcontactsresponse.md @@ -15,13 +15,13 @@ let value: ListCrmContactsResponse = { lastName: "Doe", emailAddresses: [ { - emailAddress: "Abigale_Glover96@hotmail.com", + emailAddress: "Edyth.McGlynn82@hotmail.com", emailAddressType: "", }, ], phoneNumbers: [ { - phoneNumber: "(652) 948-6283 x8586", + phoneNumber: "1-479-355-5294 x8628", phoneType: "", }, ], diff --git a/docs/models/operations/listcrmcontactsresponsebody.md b/docs/models/operations/listcrmcontactsresponsebody.md index 7dd7a3d5..3056e558 100644 --- a/docs/models/operations/listcrmcontactsresponsebody.md +++ b/docs/models/operations/listcrmcontactsresponsebody.md @@ -14,13 +14,13 @@ let value: ListCrmContactsResponseBody = { lastName: "Doe", emailAddresses: [ { - emailAddress: "Blanche.Carter41@gmail.com", + emailAddress: "Easter.Gulgowski@gmail.com", emailAddressType: "", }, ], phoneNumbers: [ { - phoneNumber: "625.259.3617 x2150", + phoneNumber: "(752) 605-9361", phoneType: "", }, ], diff --git a/docs/models/operations/listecommerceordersresponse.md b/docs/models/operations/listecommerceordersresponse.md index f66cdf55..9ca8881d 100644 --- a/docs/models/operations/listecommerceordersresponse.md +++ b/docs/models/operations/listecommerceordersresponse.md @@ -23,15 +23,7 @@ let value: ListEcommerceOrdersResponse = { customerId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", items: [ { - name: "Net Income", - value: 100000, - type: "Operating Activities", - parentItem: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteId: "12345", - remoteGeneratedAt: new Date("2024-07-01T12:00:00Z"), - companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - createdAt: new Date("2024-06-15T12:00:00Z"), - modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], fieldMappings: {}, diff --git a/docs/models/operations/listecommerceordersresponsebody.md b/docs/models/operations/listecommerceordersresponsebody.md index c983b13c..337b0cb9 100644 --- a/docs/models/operations/listecommerceordersresponsebody.md +++ b/docs/models/operations/listecommerceordersresponsebody.md @@ -22,15 +22,7 @@ let value: ListEcommerceOrdersResponseBody = { customerId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", items: [ { - name: "Net Income", - value: 100000, - type: "Operating Activities", - parentItem: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", remoteId: "12345", - remoteGeneratedAt: new Date("2024-07-01T12:00:00Z"), - companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - createdAt: new Date("2024-06-15T12:00:00Z"), - modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], fieldMappings: {}, diff --git a/docs/models/operations/listticketingticketresponse.md b/docs/models/operations/listticketingticketresponse.md index 87515e0b..84722425 100644 --- a/docs/models/operations/listticketingticketresponse.md +++ b/docs/models/operations/listticketingticketresponse.md @@ -31,15 +31,6 @@ let value: ListTicketingTicketResponse = { ], comment: { body: "Assigned to Eric !", - htmlBody: "

Assigned to Eric !

", - isPrivate: false, - creatorType: "USER", - ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - attachments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], }, accountId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", diff --git a/docs/models/operations/listticketingticketresponsebody.md b/docs/models/operations/listticketingticketresponsebody.md index 15c135ce..fbb6590e 100644 --- a/docs/models/operations/listticketingticketresponsebody.md +++ b/docs/models/operations/listticketingticketresponsebody.md @@ -30,15 +30,6 @@ let value: ListTicketingTicketResponseBody = { ], comment: { body: "Assigned to Eric !", - htmlBody: "

Assigned to Eric !

", - isPrivate: false, - creatorType: "USER", - ticketId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - userId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - attachments: [ - "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - ], }, accountId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", contactId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", diff --git a/docs/models/operations/queryrequest.md b/docs/models/operations/queryrequest.md deleted file mode 100644 index 0ffdf741..00000000 --- a/docs/models/operations/queryrequest.md +++ /dev/null @@ -1,22 +0,0 @@ -# QueryRequest - -## Example Usage - -```typescript -import { QueryRequest } from "@panora/sdk/models/operations"; - -let value: QueryRequest = { - xConnectionToken: "", - queryBody: { - query: "When does Panora incorporated?", - topK: 3, - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `xConnectionToken` | *string* | :heavy_check_mark: | The connection token | -| `queryBody` | [components.QueryBody](../../models/components/querybody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/requestpassthroughresponsebody.md b/docs/models/operations/requestpassthroughresponsebody.md new file mode 100644 index 00000000..9de16f50 --- /dev/null +++ b/docs/models/operations/requestpassthroughresponsebody.md @@ -0,0 +1,14 @@ +# RequestPassthroughResponseBody + +## Example Usage + +```typescript +import { RequestPassthroughResponseBody } from "@panora/sdk/models/operations"; + +let value: RequestPassthroughResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/operations/requestrequest.md b/docs/models/operations/requestrequest.md index 74aff5f5..ff727582 100644 --- a/docs/models/operations/requestrequest.md +++ b/docs/models/operations/requestrequest.md @@ -10,16 +10,7 @@ let value: RequestRequest = { xConnectionToken: "", passThroughRequestDto: { method: PassThroughRequestDtoMethod.Post, - path: "/usr/local/src", - data: {}, - requestFormat: [ - { - "key": "", - }, - ], - overrideBaseUrl: { - "key": "", - }, + path: "/opt/sbin", }, }; ``` diff --git a/docs/models/operations/requestresponse.md b/docs/models/operations/requestresponse.md new file mode 100644 index 00000000..ba21c9af --- /dev/null +++ b/docs/models/operations/requestresponse.md @@ -0,0 +1,17 @@ +# RequestResponse + + +## Supported Types + +### `operations.RequestResponseBody` + +```typescript +const value: operations.RequestResponseBody = {}; +``` + +### `operations.RequestPassthroughResponseBody` + +```typescript +const value: operations.RequestPassthroughResponseBody = {}; +``` + diff --git a/docs/models/operations/updatepullfrequencyresponsebody.md b/docs/models/operations/updatepullfrequencyresponsebody.md new file mode 100644 index 00000000..7fa8328e --- /dev/null +++ b/docs/models/operations/updatepullfrequencyresponsebody.md @@ -0,0 +1,14 @@ +# UpdatePullFrequencyResponseBody + +## Example Usage + +```typescript +import { UpdatePullFrequencyResponseBody } from "@panora/sdk/models/operations"; + +let value: UpdatePullFrequencyResponseBody = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/sdks/accounting/README.md b/docs/sdks/accounting/README.md index f2803c29..24d3fc27 100644 --- a/docs/sdks/accounting/README.md +++ b/docs/sdks/accounting/README.md @@ -1,2 +1,6 @@ # Accounting -(*accounting*) \ No newline at end of file +(*accounting*) + +## Overview + +### Available Operations diff --git a/docs/sdks/attachments/README.md b/docs/sdks/attachments/README.md index 9b659f33..8b637929 100644 --- a/docs/sdks/attachments/README.md +++ b/docs/sdks/attachments/README.md @@ -116,7 +116,6 @@ async function run() { fileName: "invoice.pdf", fileUrl: "https://example.com/files/invoice.pdf", accountId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, }, }); @@ -149,7 +148,6 @@ async function run() { fileName: "invoice.pdf", fileUrl: "https://example.com/files/invoice.pdf", accountId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, }, }); diff --git a/docs/sdks/auth/README.md b/docs/sdks/auth/README.md index cbf19bfe..4fb04bf0 100644 --- a/docs/sdks/auth/README.md +++ b/docs/sdks/auth/README.md @@ -1,2 +1,6 @@ # Auth -(*auth*) \ No newline at end of file +(*auth*) + +## Overview + +### Available Operations diff --git a/docs/sdks/crm/README.md b/docs/sdks/crm/README.md index 7b629fcb..b8f8faaf 100644 --- a/docs/sdks/crm/README.md +++ b/docs/sdks/crm/README.md @@ -1,2 +1,6 @@ # Crm -(*crm*) \ No newline at end of file +(*crm*) + +## Overview + +### Available Operations diff --git a/docs/sdks/ecommerce/README.md b/docs/sdks/ecommerce/README.md index 61f539bf..6ef4c12c 100644 --- a/docs/sdks/ecommerce/README.md +++ b/docs/sdks/ecommerce/README.md @@ -1,2 +1,6 @@ # Ecommerce -(*ecommerce*) \ No newline at end of file +(*ecommerce*) + +## Overview + +### Available Operations diff --git a/docs/sdks/expenses/README.md b/docs/sdks/expenses/README.md index 6be2279c..dcf24104 100644 --- a/docs/sdks/expenses/README.md +++ b/docs/sdks/expenses/README.md @@ -139,7 +139,6 @@ async function run() { modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], - fieldMappings: {}, }, }); @@ -195,7 +194,6 @@ async function run() { modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], - fieldMappings: {}, }, }); diff --git a/docs/sdks/filestorage/README.md b/docs/sdks/filestorage/README.md index c56de610..8f0025f7 100644 --- a/docs/sdks/filestorage/README.md +++ b/docs/sdks/filestorage/README.md @@ -1,2 +1,6 @@ # Filestorage -(*filestorage*) \ No newline at end of file +(*filestorage*) + +## Overview + +### Available Operations diff --git a/docs/sdks/invoices/README.md b/docs/sdks/invoices/README.md index ca70c3ed..19990e82 100644 --- a/docs/sdks/invoices/README.md +++ b/docs/sdks/invoices/README.md @@ -146,7 +146,6 @@ async function run() { modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], - fieldMappings: {}, }, }); @@ -209,7 +208,6 @@ async function run() { modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], - fieldMappings: {}, }, }); diff --git a/docs/sdks/journalentries/README.md b/docs/sdks/journalentries/README.md index 97dcdec8..6a8e6ac4 100644 --- a/docs/sdks/journalentries/README.md +++ b/docs/sdks/journalentries/README.md @@ -145,7 +145,6 @@ async function run() { modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], - fieldMappings: {}, }, }); @@ -207,7 +206,6 @@ async function run() { modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], - fieldMappings: {}, }, }); diff --git a/docs/sdks/marketingautomation/README.md b/docs/sdks/marketingautomation/README.md index ee289d06..bad911a1 100644 --- a/docs/sdks/marketingautomation/README.md +++ b/docs/sdks/marketingautomation/README.md @@ -1,2 +1,6 @@ # Marketingautomation -(*marketingautomation*) \ No newline at end of file +(*marketingautomation*) + +## Overview + +### Available Operations diff --git a/docs/sdks/orders/README.md b/docs/sdks/orders/README.md index b1d01c02..24b4e9b5 100644 --- a/docs/sdks/orders/README.md +++ b/docs/sdks/orders/README.md @@ -136,7 +136,6 @@ async function run() { modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], - fieldMappings: {}, }, }); @@ -189,7 +188,6 @@ async function run() { modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], - fieldMappings: {}, }, }); diff --git a/docs/sdks/panoraaccountingcontacts/README.md b/docs/sdks/panoraaccountingcontacts/README.md index d06d1350..dff28182 100644 --- a/docs/sdks/panoraaccountingcontacts/README.md +++ b/docs/sdks/panoraaccountingcontacts/README.md @@ -122,7 +122,6 @@ async function run() { currency: "USD", remoteUpdatedAt: "2024-06-15T12:00:00Z", companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, }, }); @@ -161,7 +160,6 @@ async function run() { currency: "USD", remoteUpdatedAt: "2024-06-15T12:00:00Z", companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, }, }); diff --git a/docs/sdks/panoraaccounts/README.md b/docs/sdks/panoraaccounts/README.md index 2ec5d17f..e1307043 100644 --- a/docs/sdks/panoraaccounts/README.md +++ b/docs/sdks/panoraaccounts/README.md @@ -123,7 +123,6 @@ async function run() { accountNumber: "1000", parentAccount: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, }, }); @@ -163,7 +162,6 @@ async function run() { accountNumber: "1000", parentAccount: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", companyInfoId: "801f9ede-c698-4e66-a7fc-48d19eebaa4f", - fieldMappings: {}, }, }); diff --git a/docs/sdks/passthrough/README.md b/docs/sdks/passthrough/README.md index b9a4b2fc..c54dae8c 100644 --- a/docs/sdks/passthrough/README.md +++ b/docs/sdks/passthrough/README.md @@ -27,7 +27,6 @@ async function run() { passThroughRequestDto: { method: PassThroughRequestDtoMethod.Get, path: "/dev", - data: {}, requestFormat: { }, @@ -65,7 +64,6 @@ async function run() { passThroughRequestDto: { method: PassThroughRequestDtoMethod.Get, path: "/dev", - data: {}, requestFormat: { }, @@ -99,7 +97,7 @@ run(); ### Response -**Promise\<[operations.RequestResponseBody](../../models/operations/requestresponsebody.md)\>** +**Promise\<[operations.RequestResponse](../../models/operations/requestresponse.md)\>** ### Errors diff --git a/docs/sdks/payments/README.md b/docs/sdks/payments/README.md index e4319349..dec1d8c0 100644 --- a/docs/sdks/payments/README.md +++ b/docs/sdks/payments/README.md @@ -139,7 +139,6 @@ async function run() { modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], - fieldMappings: {}, }, }); @@ -195,7 +194,6 @@ async function run() { modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], - fieldMappings: {}, }, }); diff --git a/docs/sdks/products/README.md b/docs/sdks/products/README.md index e2f0b4c6..17d51825 100644 --- a/docs/sdks/products/README.md +++ b/docs/sdks/products/README.md @@ -121,13 +121,9 @@ async function run() { ], description: "best tee ever", vendor: "vendor_extern", - variants: [ - {}, - ], tags: [ "tag_1", ], - fieldMappings: {}, }, }); @@ -165,13 +161,9 @@ async function run() { ], description: "best tee ever", vendor: "vendor_extern", - variants: [ - {}, - ], tags: [ "tag_1", ], - fieldMappings: {}, }, }); diff --git a/docs/sdks/purchaseorders/README.md b/docs/sdks/purchaseorders/README.md index 61491a83..7efe2242 100644 --- a/docs/sdks/purchaseorders/README.md +++ b/docs/sdks/purchaseorders/README.md @@ -142,7 +142,6 @@ async function run() { modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], - fieldMappings: {}, }, }); @@ -201,7 +200,6 @@ async function run() { modifiedAt: new Date("2024-06-15T12:00:00Z"), }, ], - fieldMappings: {}, }, }); diff --git a/docs/sdks/rag/README.md b/docs/sdks/rag/README.md deleted file mode 100644 index 76271b6a..00000000 --- a/docs/sdks/rag/README.md +++ /dev/null @@ -1,92 +0,0 @@ -# Rag -(*rag*) - -## Overview - -### Available Operations - -* [query](#query) - Query using RAG Search - -## query - -Query across your connected data sources using RAG Search - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora({ - apiKey: "", -}); - -async function run() { - const result = await panora.rag.query({ - xConnectionToken: "", - queryBody: { - query: "When does Panora incorporated?", - topK: 3, - }, - }); - - // Handle the result - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PanoraCore } from "@panora/sdk/core.js"; -import { ragQuery } from "@panora/sdk/funcs/ragQuery.js"; - -// Use `PanoraCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const panora = new PanoraCore({ - apiKey: "", -}); - -async function run() { - const res = await ragQuery(panora, { - xConnectionToken: "", - queryBody: { - query: "When does Panora incorporated?", - topK: 3, - }, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result); -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.QueryRequest](../../models/operations/queryrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | -| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | -| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | - -### Response - -**Promise\<[components.RagQueryOutput[]](../../models/.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/sync/README.md b/docs/sdks/sync/README.md index d4170ae0..08950355 100644 --- a/docs/sdks/sync/README.md +++ b/docs/sdks/sync/README.md @@ -171,7 +171,7 @@ const panora = new Panora({ }); async function run() { - await panora.sync.updatePullFrequency({ + const result = await panora.sync.updatePullFrequency({ crm: 1800, accounting: 14400, filestorage: 28800, @@ -179,7 +179,8 @@ async function run() { ticketing: 86400, }); - + // Handle the result + console.log(result); } run(); @@ -214,7 +215,8 @@ async function run() { const { value: result } = res; - + // Handle the result + console.log(result); } run(); @@ -231,7 +233,7 @@ run(); ### Response -**Promise\** +**Promise\<[operations.UpdatePullFrequencyResponseBody](../../models/operations/updatepullfrequencyresponsebody.md)\>** ### Errors diff --git a/docs/sdks/ticketing/README.md b/docs/sdks/ticketing/README.md index 37b71032..2563bb1a 100644 --- a/docs/sdks/ticketing/README.md +++ b/docs/sdks/ticketing/README.md @@ -1,2 +1,6 @@ # Ticketing -(*ticketing*) \ No newline at end of file +(*ticketing*) + +## Overview + +### Available Operations diff --git a/jsr.json b/jsr.json index 8daa85d0..000e3a6c 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@panora/sdk", - "version": "0.14.0", + "version": "0.15.0", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 7e02d305..7f89a638 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@panora/sdk", - "version": "0.14.0", + "version": "0.15.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@panora/sdk", - "version": "0.14.0", + "version": "0.15.0", "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", @@ -17,6 +17,8 @@ "zod": "^3.23.4" }, "peerDependencies": { + "react": "^18 || ^19", + "react-dom": "^18 || ^19", "zod": ">= 3" } }, @@ -2066,6 +2068,13 @@ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "license": "MIT", + "peer": true + }, "node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", @@ -2151,6 +2160,19 @@ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "license": "MIT", + "peer": true, + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", @@ -2466,6 +2488,33 @@ } ] }, + "node_modules/react": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", + "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "license": "MIT", + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", + "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", + "license": "MIT", + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.2" + }, + "peerDependencies": { + "react": "^18.3.1" + } + }, "node_modules/regexp.prototype.flags": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz", @@ -2603,6 +2652,16 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/scheduler": { + "version": "0.23.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", + "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", + "license": "MIT", + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0" + } + }, "node_modules/semver": { "version": "7.6.3", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", diff --git a/package.json b/package.json index 5d2d6ce1..6dd740b0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@panora/sdk", - "version": "0.14.0", + "version": "0.15.0", "author": "Speakeasy", "main": "./index.js", "sideEffects": false, @@ -14,6 +14,8 @@ "prepublishOnly": "npm run build" }, "peerDependencies": { + "react": "^18 || ^19", + "react-dom": "^18 || ^19", "zod": ">= 3" }, "devDependencies": { diff --git a/src/funcs/accountingAccountsList.ts b/src/funcs/accountingAccountsList.ts index c74cfd49..854dc7f9 100644 --- a/src/funcs/accountingAccountsList.ts +++ b/src/funcs/accountingAccountsList.ts @@ -46,7 +46,8 @@ export async function accountingAccountsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function accountingAccountsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListAccountingAccountsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListAccountingAccountsResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => accountingAccountsList( client, { @@ -171,8 +175,10 @@ export async function accountingAccountsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingAddressesList.ts b/src/funcs/accountingAddressesList.ts index 8c137cc7..dd160487 100644 --- a/src/funcs/accountingAddressesList.ts +++ b/src/funcs/accountingAddressesList.ts @@ -46,7 +46,8 @@ export async function accountingAddressesList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function accountingAddressesList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListAccountingAddressResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListAccountingAddressResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => accountingAddressesList( client, { @@ -171,8 +175,10 @@ export async function accountingAddressesList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingAttachmentsList.ts b/src/funcs/accountingAttachmentsList.ts index 14211533..2493a9c9 100644 --- a/src/funcs/accountingAttachmentsList.ts +++ b/src/funcs/accountingAttachmentsList.ts @@ -46,7 +46,8 @@ export async function accountingAttachmentsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function accountingAttachmentsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListAccountingAttachmentsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListAccountingAttachmentsResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => accountingAttachmentsList( client, { @@ -171,8 +175,10 @@ export async function accountingAttachmentsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingBalancesheetsList.ts b/src/funcs/accountingBalancesheetsList.ts index f58a25b6..5e8be203 100644 --- a/src/funcs/accountingBalancesheetsList.ts +++ b/src/funcs/accountingBalancesheetsList.ts @@ -46,7 +46,8 @@ export async function accountingBalancesheetsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function accountingBalancesheetsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListAccountingBalanceSheetsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListAccountingBalanceSheetsResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => accountingBalancesheetsList( client, { @@ -171,8 +175,10 @@ export async function accountingBalancesheetsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingCashflowstatementsList.ts b/src/funcs/accountingCashflowstatementsList.ts index 0947482e..d2723ffc 100644 --- a/src/funcs/accountingCashflowstatementsList.ts +++ b/src/funcs/accountingCashflowstatementsList.ts @@ -46,7 +46,8 @@ export async function accountingCashflowstatementsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -149,24 +150,27 @@ export async function accountingCashflowstatementsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListAccountingCashflowStatementResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListAccountingCashflowStatementResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => accountingCashflowstatementsList( client, { @@ -175,8 +179,10 @@ export async function accountingCashflowstatementsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingCompanyinfosList.ts b/src/funcs/accountingCompanyinfosList.ts index 1fec9270..5ecd9bd7 100644 --- a/src/funcs/accountingCompanyinfosList.ts +++ b/src/funcs/accountingCompanyinfosList.ts @@ -46,7 +46,8 @@ export async function accountingCompanyinfosList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function accountingCompanyinfosList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListAccountingCompanyInfosResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListAccountingCompanyInfosResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => accountingCompanyinfosList( client, { @@ -171,8 +175,10 @@ export async function accountingCompanyinfosList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingContactsList.ts b/src/funcs/accountingContactsList.ts index 52b9dde7..f7dcb57f 100644 --- a/src/funcs/accountingContactsList.ts +++ b/src/funcs/accountingContactsList.ts @@ -46,7 +46,8 @@ export async function accountingContactsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function accountingContactsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListAccountingContactsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListAccountingContactsResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => accountingContactsList( client, { @@ -171,8 +175,10 @@ export async function accountingContactsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingCreditnotesList.ts b/src/funcs/accountingCreditnotesList.ts index 85f005f3..4d51a33f 100644 --- a/src/funcs/accountingCreditnotesList.ts +++ b/src/funcs/accountingCreditnotesList.ts @@ -46,7 +46,8 @@ export async function accountingCreditnotesList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function accountingCreditnotesList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListAccountingCreditNoteResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListAccountingCreditNoteResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => accountingCreditnotesList( client, { @@ -171,8 +175,10 @@ export async function accountingCreditnotesList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingExpensesList.ts b/src/funcs/accountingExpensesList.ts index f8bec92c..83e3b81d 100644 --- a/src/funcs/accountingExpensesList.ts +++ b/src/funcs/accountingExpensesList.ts @@ -46,7 +46,8 @@ export async function accountingExpensesList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function accountingExpensesList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListAccountingExpenseResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListAccountingExpenseResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => accountingExpensesList( client, { @@ -171,8 +175,10 @@ export async function accountingExpensesList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingIncomestatementsList.ts b/src/funcs/accountingIncomestatementsList.ts index f0aa7d63..da9b7974 100644 --- a/src/funcs/accountingIncomestatementsList.ts +++ b/src/funcs/accountingIncomestatementsList.ts @@ -46,7 +46,8 @@ export async function accountingIncomestatementsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -149,24 +150,27 @@ export async function accountingIncomestatementsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListAccountingIncomeStatementResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListAccountingIncomeStatementResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => accountingIncomestatementsList( client, { @@ -175,8 +179,10 @@ export async function accountingIncomestatementsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingInvoicesList.ts b/src/funcs/accountingInvoicesList.ts index ba88a944..82204bc3 100644 --- a/src/funcs/accountingInvoicesList.ts +++ b/src/funcs/accountingInvoicesList.ts @@ -46,7 +46,8 @@ export async function accountingInvoicesList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function accountingInvoicesList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListAccountingInvoiceResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListAccountingInvoiceResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => accountingInvoicesList( client, { @@ -171,8 +175,10 @@ export async function accountingInvoicesList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingItemsList.ts b/src/funcs/accountingItemsList.ts index f26f810d..d83054fb 100644 --- a/src/funcs/accountingItemsList.ts +++ b/src/funcs/accountingItemsList.ts @@ -46,7 +46,8 @@ export async function accountingItemsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -144,24 +145,27 @@ export async function accountingItemsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListAccountingItemResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListAccountingItemResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => accountingItemsList( client, { @@ -170,8 +174,10 @@ export async function accountingItemsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingJournalentriesList.ts b/src/funcs/accountingJournalentriesList.ts index b96905fd..3426f071 100644 --- a/src/funcs/accountingJournalentriesList.ts +++ b/src/funcs/accountingJournalentriesList.ts @@ -46,7 +46,8 @@ export async function accountingJournalentriesList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function accountingJournalentriesList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListAccountingJournalEntryResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListAccountingJournalEntryResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => accountingJournalentriesList( client, { @@ -171,8 +175,10 @@ export async function accountingJournalentriesList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingPaymentsList.ts b/src/funcs/accountingPaymentsList.ts index 368c77b1..21e405a9 100644 --- a/src/funcs/accountingPaymentsList.ts +++ b/src/funcs/accountingPaymentsList.ts @@ -46,7 +46,8 @@ export async function accountingPaymentsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function accountingPaymentsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListAccountingPaymentResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListAccountingPaymentResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => accountingPaymentsList( client, { @@ -171,8 +175,10 @@ export async function accountingPaymentsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingPhonenumbersList.ts b/src/funcs/accountingPhonenumbersList.ts index 9ec43a80..0d71abf0 100644 --- a/src/funcs/accountingPhonenumbersList.ts +++ b/src/funcs/accountingPhonenumbersList.ts @@ -46,7 +46,8 @@ export async function accountingPhonenumbersList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function accountingPhonenumbersList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListAccountingPhonenumberResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListAccountingPhonenumberResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => accountingPhonenumbersList( client, { @@ -171,8 +175,10 @@ export async function accountingPhonenumbersList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingPurchaseordersList.ts b/src/funcs/accountingPurchaseordersList.ts index a87e23fa..ce6dba94 100644 --- a/src/funcs/accountingPurchaseordersList.ts +++ b/src/funcs/accountingPurchaseordersList.ts @@ -46,7 +46,8 @@ export async function accountingPurchaseordersList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function accountingPurchaseordersList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListAccountingPurchaseOrderResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListAccountingPurchaseOrderResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => accountingPurchaseordersList( client, { @@ -171,8 +175,10 @@ export async function accountingPurchaseordersList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingTaxratesList.ts b/src/funcs/accountingTaxratesList.ts index d485cf31..a0ebb354 100644 --- a/src/funcs/accountingTaxratesList.ts +++ b/src/funcs/accountingTaxratesList.ts @@ -46,7 +46,8 @@ export async function accountingTaxratesList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function accountingTaxratesList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListAccountingTaxRateResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListAccountingTaxRateResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => accountingTaxratesList( client, { @@ -171,8 +175,10 @@ export async function accountingTaxratesList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingTrackingcategoriesList.ts b/src/funcs/accountingTrackingcategoriesList.ts index 835d2065..6906a3c6 100644 --- a/src/funcs/accountingTrackingcategoriesList.ts +++ b/src/funcs/accountingTrackingcategoriesList.ts @@ -46,7 +46,8 @@ export async function accountingTrackingcategoriesList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -149,24 +150,27 @@ export async function accountingTrackingcategoriesList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListAccountingTrackingCategorysResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListAccountingTrackingCategorysResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => accountingTrackingcategoriesList( client, { @@ -175,8 +179,10 @@ export async function accountingTrackingcategoriesList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingTransactionsList.ts b/src/funcs/accountingTransactionsList.ts index 3a931955..cdee6996 100644 --- a/src/funcs/accountingTransactionsList.ts +++ b/src/funcs/accountingTransactionsList.ts @@ -46,7 +46,8 @@ export async function accountingTransactionsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function accountingTransactionsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListAccountingTransactionResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListAccountingTransactionResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => accountingTransactionsList( client, { @@ -171,8 +175,10 @@ export async function accountingTransactionsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/accountingVendorcreditsList.ts b/src/funcs/accountingVendorcreditsList.ts index e624a70b..433d827c 100644 --- a/src/funcs/accountingVendorcreditsList.ts +++ b/src/funcs/accountingVendorcreditsList.ts @@ -46,7 +46,8 @@ export async function accountingVendorcreditsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function accountingVendorcreditsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListAccountingVendorCreditResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListAccountingVendorCreditResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => accountingVendorcreditsList( client, { @@ -171,8 +175,10 @@ export async function accountingVendorcreditsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/crmCompaniesList.ts b/src/funcs/crmCompaniesList.ts index ef311c09..50bf9957 100644 --- a/src/funcs/crmCompaniesList.ts +++ b/src/funcs/crmCompaniesList.ts @@ -46,7 +46,8 @@ export async function crmCompaniesList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -144,24 +145,27 @@ export async function crmCompaniesList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListCrmCompanyResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListCrmCompanyResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => crmCompaniesList( client, { @@ -170,8 +174,10 @@ export async function crmCompaniesList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/crmContactsList.ts b/src/funcs/crmContactsList.ts index 93e47121..11c547fd 100644 --- a/src/funcs/crmContactsList.ts +++ b/src/funcs/crmContactsList.ts @@ -46,7 +46,8 @@ export async function crmContactsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -144,24 +145,27 @@ export async function crmContactsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListCrmContactsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListCrmContactsResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => crmContactsList( client, { @@ -170,8 +174,10 @@ export async function crmContactsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/crmDealsList.ts b/src/funcs/crmDealsList.ts index 067b2222..41917f9f 100644 --- a/src/funcs/crmDealsList.ts +++ b/src/funcs/crmDealsList.ts @@ -46,7 +46,8 @@ export async function crmDealsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -144,24 +145,27 @@ export async function crmDealsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListCrmDealsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListCrmDealsResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => crmDealsList( client, { @@ -170,8 +174,10 @@ export async function crmDealsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/crmEngagementsList.ts b/src/funcs/crmEngagementsList.ts index 87bba9b6..fff40ffa 100644 --- a/src/funcs/crmEngagementsList.ts +++ b/src/funcs/crmEngagementsList.ts @@ -46,7 +46,8 @@ export async function crmEngagementsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -144,24 +145,27 @@ export async function crmEngagementsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListCrmEngagementsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListCrmEngagementsResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => crmEngagementsList( client, { @@ -170,8 +174,10 @@ export async function crmEngagementsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/crmNotesList.ts b/src/funcs/crmNotesList.ts index b2982ce3..07f23642 100644 --- a/src/funcs/crmNotesList.ts +++ b/src/funcs/crmNotesList.ts @@ -46,7 +46,8 @@ export async function crmNotesList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -144,24 +145,27 @@ export async function crmNotesList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListCrmNoteResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListCrmNoteResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => crmNotesList( client, { @@ -170,8 +174,10 @@ export async function crmNotesList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/crmStagesList.ts b/src/funcs/crmStagesList.ts index ed5e17a6..14b6269e 100644 --- a/src/funcs/crmStagesList.ts +++ b/src/funcs/crmStagesList.ts @@ -46,7 +46,8 @@ export async function crmStagesList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -144,24 +145,27 @@ export async function crmStagesList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListCrmStagesResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListCrmStagesResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => crmStagesList( client, { @@ -170,8 +174,10 @@ export async function crmStagesList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/crmTasksList.ts b/src/funcs/crmTasksList.ts index 3fabc5a9..5310bd82 100644 --- a/src/funcs/crmTasksList.ts +++ b/src/funcs/crmTasksList.ts @@ -46,7 +46,8 @@ export async function crmTasksList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -144,24 +145,27 @@ export async function crmTasksList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListCrmTaskResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListCrmTaskResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => crmTasksList( client, { @@ -170,8 +174,10 @@ export async function crmTasksList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/crmUsersList.ts b/src/funcs/crmUsersList.ts index f3349940..0991d3ad 100644 --- a/src/funcs/crmUsersList.ts +++ b/src/funcs/crmUsersList.ts @@ -46,7 +46,8 @@ export async function crmUsersList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -144,24 +145,27 @@ export async function crmUsersList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListCrmUsersResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListCrmUsersResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => crmUsersList( client, { @@ -170,8 +174,10 @@ export async function crmUsersList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ecommerceCustomersList.ts b/src/funcs/ecommerceCustomersList.ts index 7ecf0377..a1c6e287 100644 --- a/src/funcs/ecommerceCustomersList.ts +++ b/src/funcs/ecommerceCustomersList.ts @@ -46,7 +46,8 @@ export async function ecommerceCustomersList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function ecommerceCustomersList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListEcommerceCustomersResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListEcommerceCustomersResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => ecommerceCustomersList( client, { @@ -171,8 +175,10 @@ export async function ecommerceCustomersList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ecommerceFulfillmentsList.ts b/src/funcs/ecommerceFulfillmentsList.ts index 19b8011b..e0b481a0 100644 --- a/src/funcs/ecommerceFulfillmentsList.ts +++ b/src/funcs/ecommerceFulfillmentsList.ts @@ -46,7 +46,8 @@ export async function ecommerceFulfillmentsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function ecommerceFulfillmentsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListEcommerceFulfillmentsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListEcommerceFulfillmentsResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => ecommerceFulfillmentsList( client, { @@ -171,8 +175,10 @@ export async function ecommerceFulfillmentsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ecommerceOrdersList.ts b/src/funcs/ecommerceOrdersList.ts index 155b7260..b109b4bd 100644 --- a/src/funcs/ecommerceOrdersList.ts +++ b/src/funcs/ecommerceOrdersList.ts @@ -46,7 +46,8 @@ export async function ecommerceOrdersList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function ecommerceOrdersList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListEcommerceOrdersResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListEcommerceOrdersResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => ecommerceOrdersList( client, { @@ -171,8 +175,10 @@ export async function ecommerceOrdersList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ecommerceProductsList.ts b/src/funcs/ecommerceProductsList.ts index db4a2539..a883dcf0 100644 --- a/src/funcs/ecommerceProductsList.ts +++ b/src/funcs/ecommerceProductsList.ts @@ -46,7 +46,8 @@ export async function ecommerceProductsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function ecommerceProductsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListEcommerceProductsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListEcommerceProductsResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => ecommerceProductsList( client, { @@ -171,8 +175,10 @@ export async function ecommerceProductsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/filestorageFilesList.ts b/src/funcs/filestorageFilesList.ts index a8d31652..dffbce2e 100644 --- a/src/funcs/filestorageFilesList.ts +++ b/src/funcs/filestorageFilesList.ts @@ -46,7 +46,8 @@ export async function filestorageFilesList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function filestorageFilesList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListFilestorageFileResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListFilestorageFileResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => filestorageFilesList( client, { @@ -171,8 +175,10 @@ export async function filestorageFilesList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/filestorageFoldersList.ts b/src/funcs/filestorageFoldersList.ts index fcc9bb18..29200150 100644 --- a/src/funcs/filestorageFoldersList.ts +++ b/src/funcs/filestorageFoldersList.ts @@ -46,7 +46,8 @@ export async function filestorageFoldersList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function filestorageFoldersList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListFilestorageFolderResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListFilestorageFolderResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => filestorageFoldersList( client, { @@ -171,8 +175,10 @@ export async function filestorageFoldersList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/filestorageGroupsList.ts b/src/funcs/filestorageGroupsList.ts index 82a4ba50..15dadc86 100644 --- a/src/funcs/filestorageGroupsList.ts +++ b/src/funcs/filestorageGroupsList.ts @@ -46,7 +46,8 @@ export async function filestorageGroupsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function filestorageGroupsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListFilestorageGroupResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListFilestorageGroupResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => filestorageGroupsList( client, { @@ -171,8 +175,10 @@ export async function filestorageGroupsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/filestorageUsersList.ts b/src/funcs/filestorageUsersList.ts index 52bb8103..20d43811 100644 --- a/src/funcs/filestorageUsersList.ts +++ b/src/funcs/filestorageUsersList.ts @@ -46,7 +46,8 @@ export async function filestorageUsersList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function filestorageUsersList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListFilestorageUsersResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListFilestorageUsersResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => filestorageUsersList( client, { @@ -171,8 +175,10 @@ export async function filestorageUsersList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/marketingautomationActionsList.ts b/src/funcs/marketingautomationActionsList.ts index 98ae8546..53585a06 100644 --- a/src/funcs/marketingautomationActionsList.ts +++ b/src/funcs/marketingautomationActionsList.ts @@ -46,7 +46,8 @@ export async function marketingautomationActionsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -149,24 +150,27 @@ export async function marketingautomationActionsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListMarketingautomationActionResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListMarketingautomationActionResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => marketingautomationActionsList( client, { @@ -175,8 +179,10 @@ export async function marketingautomationActionsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/marketingautomationAutomationsList.ts b/src/funcs/marketingautomationAutomationsList.ts index 1c3374b5..a15e5f12 100644 --- a/src/funcs/marketingautomationAutomationsList.ts +++ b/src/funcs/marketingautomationAutomationsList.ts @@ -46,7 +46,8 @@ export async function marketingautomationAutomationsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -149,24 +150,27 @@ export async function marketingautomationAutomationsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListMarketingautomationAutomationsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListMarketingautomationAutomationsResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => marketingautomationAutomationsList( client, { @@ -175,8 +179,10 @@ export async function marketingautomationAutomationsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/marketingautomationCampaignsList.ts b/src/funcs/marketingautomationCampaignsList.ts index 67c0a383..b32f8d75 100644 --- a/src/funcs/marketingautomationCampaignsList.ts +++ b/src/funcs/marketingautomationCampaignsList.ts @@ -46,7 +46,8 @@ export async function marketingautomationCampaignsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -149,24 +150,27 @@ export async function marketingautomationCampaignsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListMarketingautomationCampaignsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListMarketingautomationCampaignsResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => marketingautomationCampaignsList( client, { @@ -175,8 +179,10 @@ export async function marketingautomationCampaignsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/marketingautomationContactsList.ts b/src/funcs/marketingautomationContactsList.ts index 32808b1b..d1a312f5 100644 --- a/src/funcs/marketingautomationContactsList.ts +++ b/src/funcs/marketingautomationContactsList.ts @@ -46,7 +46,8 @@ export async function marketingautomationContactsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -149,24 +150,27 @@ export async function marketingautomationContactsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListMarketingAutomationContactsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListMarketingAutomationContactsResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => marketingautomationContactsList( client, { @@ -175,8 +179,10 @@ export async function marketingautomationContactsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/marketingautomationEmailsList.ts b/src/funcs/marketingautomationEmailsList.ts index 51641411..10bd162a 100644 --- a/src/funcs/marketingautomationEmailsList.ts +++ b/src/funcs/marketingautomationEmailsList.ts @@ -46,7 +46,8 @@ export async function marketingautomationEmailsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -149,24 +150,27 @@ export async function marketingautomationEmailsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListMarketingautomationEmailsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListMarketingautomationEmailsResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => marketingautomationEmailsList( client, { @@ -175,8 +179,10 @@ export async function marketingautomationEmailsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/marketingautomationEventsList.ts b/src/funcs/marketingautomationEventsList.ts index 665fa358..36ce980a 100644 --- a/src/funcs/marketingautomationEventsList.ts +++ b/src/funcs/marketingautomationEventsList.ts @@ -46,7 +46,8 @@ export async function marketingautomationEventsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -149,24 +150,27 @@ export async function marketingautomationEventsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListMarketingAutomationEventsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListMarketingAutomationEventsResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => marketingautomationEventsList( client, { @@ -175,8 +179,10 @@ export async function marketingautomationEventsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/marketingautomationListsList.ts b/src/funcs/marketingautomationListsList.ts index f83598e9..ac43286f 100644 --- a/src/funcs/marketingautomationListsList.ts +++ b/src/funcs/marketingautomationListsList.ts @@ -46,7 +46,8 @@ export async function marketingautomationListsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -147,24 +148,27 @@ export async function marketingautomationListsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListMarketingautomationListsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListMarketingautomationListsResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => marketingautomationListsList( client, { @@ -173,8 +177,10 @@ export async function marketingautomationListsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/marketingautomationMessagesList.ts b/src/funcs/marketingautomationMessagesList.ts index da0686e5..e8c6946c 100644 --- a/src/funcs/marketingautomationMessagesList.ts +++ b/src/funcs/marketingautomationMessagesList.ts @@ -46,7 +46,8 @@ export async function marketingautomationMessagesList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -149,24 +150,27 @@ export async function marketingautomationMessagesList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListMarketingautomationMessagesResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListMarketingautomationMessagesResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => marketingautomationMessagesList( client, { @@ -175,8 +179,10 @@ export async function marketingautomationMessagesList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/marketingautomationTemplatesList.ts b/src/funcs/marketingautomationTemplatesList.ts index 2fd46925..68000132 100644 --- a/src/funcs/marketingautomationTemplatesList.ts +++ b/src/funcs/marketingautomationTemplatesList.ts @@ -46,7 +46,8 @@ export async function marketingautomationTemplatesList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -149,24 +150,27 @@ export async function marketingautomationTemplatesList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListMarketingautomationTemplatesResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListMarketingautomationTemplatesResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => marketingautomationTemplatesList( client, { @@ -175,8 +179,10 @@ export async function marketingautomationTemplatesList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/marketingautomationUsersList.ts b/src/funcs/marketingautomationUsersList.ts index 3335d309..93deefc5 100644 --- a/src/funcs/marketingautomationUsersList.ts +++ b/src/funcs/marketingautomationUsersList.ts @@ -46,7 +46,8 @@ export async function marketingautomationUsersList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -147,24 +148,27 @@ export async function marketingautomationUsersList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListMarketingAutomationUsersResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListMarketingAutomationUsersResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => marketingautomationUsersList( client, { @@ -173,8 +177,10 @@ export async function marketingautomationUsersList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/passthroughRequest.ts b/src/funcs/passthroughRequest.ts index b2343c71..51563068 100644 --- a/src/funcs/passthroughRequest.ts +++ b/src/funcs/passthroughRequest.ts @@ -30,7 +30,7 @@ export async function passthroughRequest( options?: RequestOptions, ): Promise< Result< - operations.RequestResponseBody, + operations.RequestResponse, | SDKError | SDKValidationError | UnexpectedClientError @@ -107,7 +107,7 @@ export async function passthroughRequest( const response = doResult.value; const [result] = await M.match< - operations.RequestResponseBody, + operations.RequestResponse, | SDKError | SDKValidationError | UnexpectedClientError @@ -116,7 +116,8 @@ export async function passthroughRequest( | RequestTimeoutError | ConnectionError >( - M.json(200, operations.RequestResponseBody$inboundSchema), + M.json(200, operations.RequestResponse$inboundSchema), + M.json(201, operations.RequestResponse$inboundSchema), M.fail(["4XX", "5XX"]), )(response); if (!result.ok) { diff --git a/src/funcs/ragQuery.ts b/src/funcs/ragQuery.ts deleted file mode 100644 index 4d718bd2..00000000 --- a/src/funcs/ragQuery.ts +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { PanoraCore } from "../core.js"; -import { encodeJSON, encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { safeParse } from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import * as components from "../models/components/index.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import * as operations from "../models/operations/index.js"; -import { Result } from "../types/fp.js"; - -/** - * Query using RAG Search - * - * @remarks - * Query across your connected data sources using RAG Search - */ -export async function ragQuery( - client: PanoraCore, - request: operations.QueryRequest, - options?: RequestOptions, -): Promise< - Result< - Array, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const parsed = safeParse( - request, - (value) => operations.QueryRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return parsed; - } - const payload = parsed.value; - const body = encodeJSON("body", payload.QueryBody, { explode: true }); - - const path = pathToFunc("/rag/query")(); - - const headers = new Headers({ - "Content-Type": "application/json", - Accept: "application/json", - "x-connection-token": encodeSimple( - "x-connection-token", - payload["x-connection-token"], - { explode: false, charEncoding: "none" }, - ), - }); - - const secConfig = await extractSecurity(client._options.apiKey); - const securityInput = secConfig == null ? {} : { apiKey: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - operationID: "query", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.apiKey, - retryConfig: options?.retries - || client._options.retryConfig - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "POST", - path: path, - headers: headers, - body: body, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const [result] = await M.match< - Array, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - M.json(201, z.array(components.RagQueryOutput$inboundSchema)), - M.fail(["4XX", "5XX"]), - )(response); - if (!result.ok) { - return result; - } - - return result; -} diff --git a/src/funcs/syncUpdatePullFrequency.ts b/src/funcs/syncUpdatePullFrequency.ts index 585d82e5..cf1d5bdf 100644 --- a/src/funcs/syncUpdatePullFrequency.ts +++ b/src/funcs/syncUpdatePullFrequency.ts @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; import { PanoraCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -20,6 +19,7 @@ import { } from "../models/errors/httpclienterrors.js"; import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; import { Result } from "../types/fp.js"; /** @@ -31,7 +31,7 @@ export async function syncUpdatePullFrequency( options?: RequestOptions, ): Promise< Result< - void, + operations.UpdatePullFrequencyResponseBody | undefined, | SDKError | SDKValidationError | UnexpectedClientError @@ -56,7 +56,7 @@ export async function syncUpdatePullFrequency( const headers = new Headers({ "Content-Type": "application/json", - Accept: "*/*", + Accept: "application/json", }); const secConfig = await extractSecurity(client._options.apiKey); @@ -101,7 +101,7 @@ export async function syncUpdatePullFrequency( const response = doResult.value; const [result] = await M.match< - void, + operations.UpdatePullFrequencyResponseBody | undefined, | SDKError | SDKValidationError | UnexpectedClientError @@ -110,7 +110,14 @@ export async function syncUpdatePullFrequency( | RequestTimeoutError | ConnectionError >( - M.nil(200, z.void()), + M.nil( + 200, + operations.UpdatePullFrequencyResponseBody$inboundSchema.optional(), + ), + M.json( + 201, + operations.UpdatePullFrequencyResponseBody$inboundSchema.optional(), + ), M.fail(["4XX", "5XX"]), )(response); if (!result.ok) { diff --git a/src/funcs/ticketingAccountsList.ts b/src/funcs/ticketingAccountsList.ts index 9fe8fc83..013d4445 100644 --- a/src/funcs/ticketingAccountsList.ts +++ b/src/funcs/ticketingAccountsList.ts @@ -46,7 +46,8 @@ export async function ticketingAccountsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function ticketingAccountsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListTicketingAccountResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListTicketingAccountResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => ticketingAccountsList( client, { @@ -171,8 +175,10 @@ export async function ticketingAccountsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ticketingAttachmentsList.ts b/src/funcs/ticketingAttachmentsList.ts index e869e15a..fd8fbc6f 100644 --- a/src/funcs/ticketingAttachmentsList.ts +++ b/src/funcs/ticketingAttachmentsList.ts @@ -46,7 +46,8 @@ export async function ticketingAttachmentsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function ticketingAttachmentsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListTicketingAttachmentsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListTicketingAttachmentsResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => ticketingAttachmentsList( client, { @@ -171,8 +175,10 @@ export async function ticketingAttachmentsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ticketingCollectionsList.ts b/src/funcs/ticketingCollectionsList.ts index 5e6c96c4..5f12d443 100644 --- a/src/funcs/ticketingCollectionsList.ts +++ b/src/funcs/ticketingCollectionsList.ts @@ -46,7 +46,8 @@ export async function ticketingCollectionsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function ticketingCollectionsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListTicketingCollectionsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListTicketingCollectionsResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => ticketingCollectionsList( client, { @@ -171,8 +175,10 @@ export async function ticketingCollectionsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ticketingCommentsList.ts b/src/funcs/ticketingCommentsList.ts index c4f13c61..2eecf3bc 100644 --- a/src/funcs/ticketingCommentsList.ts +++ b/src/funcs/ticketingCommentsList.ts @@ -46,7 +46,8 @@ export async function ticketingCommentsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function ticketingCommentsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListTicketingCommentsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListTicketingCommentsResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => ticketingCommentsList( client, { @@ -171,8 +175,10 @@ export async function ticketingCommentsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ticketingContactsList.ts b/src/funcs/ticketingContactsList.ts index 29eb972a..521f56ed 100644 --- a/src/funcs/ticketingContactsList.ts +++ b/src/funcs/ticketingContactsList.ts @@ -46,7 +46,8 @@ export async function ticketingContactsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function ticketingContactsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListTicketingContactsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListTicketingContactsResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => ticketingContactsList( client, { @@ -171,8 +175,10 @@ export async function ticketingContactsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ticketingTagsList.ts b/src/funcs/ticketingTagsList.ts index f1777fd0..82b609cc 100644 --- a/src/funcs/ticketingTagsList.ts +++ b/src/funcs/ticketingTagsList.ts @@ -46,7 +46,8 @@ export async function ticketingTagsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -144,24 +145,27 @@ export async function ticketingTagsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListTicketingTagsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListTicketingTagsResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => ticketingTagsList( client, { @@ -170,8 +174,10 @@ export async function ticketingTagsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ticketingTeamsList.ts b/src/funcs/ticketingTeamsList.ts index f6d32522..bf710602 100644 --- a/src/funcs/ticketingTeamsList.ts +++ b/src/funcs/ticketingTeamsList.ts @@ -46,7 +46,8 @@ export async function ticketingTeamsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -144,24 +145,27 @@ export async function ticketingTeamsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListTicketingTeamsResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListTicketingTeamsResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => ticketingTeamsList( client, { @@ -170,8 +174,10 @@ export async function ticketingTeamsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ticketingTicketsList.ts b/src/funcs/ticketingTicketsList.ts index aa46c914..9349de98 100644 --- a/src/funcs/ticketingTicketsList.ts +++ b/src/funcs/ticketingTicketsList.ts @@ -46,7 +46,8 @@ export async function ticketingTicketsList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -145,24 +146,27 @@ export async function ticketingTicketsList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListTicketingTicketResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListTicketingTicketResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => ticketingTicketsList( client, { @@ -171,8 +175,10 @@ export async function ticketingTicketsList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/ticketingUsersList.ts b/src/funcs/ticketingUsersList.ts index d37cb631..d1227a7e 100644 --- a/src/funcs/ticketingUsersList.ts +++ b/src/funcs/ticketingUsersList.ts @@ -46,7 +46,8 @@ export async function ticketingUsersList( | RequestAbortedError | RequestTimeoutError | ConnectionError - > + >, + { cursor: string } > > { const parsed = safeParse( @@ -144,24 +145,27 @@ export async function ticketingUsersList( const nextFunc = ( responseData: unknown, - ): Paginator< - Result< - operations.ListTicketingUsersResponse, - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > - > => { + ): { + next: Paginator< + Result< + operations.ListTicketingUsersResponse, + | SDKError + | SDKValidationError + | UnexpectedClientError + | InvalidRequestError + | RequestAbortedError + | RequestTimeoutError + | ConnectionError + > + >; + "~next"?: { cursor: string }; + } => { const nextCursor = dlv(responseData, "next_cursor"); if (nextCursor == null) { - return () => null; + return { next: () => null }; } - return () => + const nextVal = () => ticketingUsersList( client, { @@ -170,8 +174,10 @@ export async function ticketingUsersList( }, options, ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; }; - const page = { ...result, next: nextFunc(raw) }; + const page = { ...result, ...nextFunc(raw) }; return { ...page, ...createPageIterator(page, (v) => !v.ok) }; } diff --git a/src/funcs/webhooksDelete.ts b/src/funcs/webhooksDelete.ts index e1b9a20e..57ba0f60 100644 --- a/src/funcs/webhooksDelete.ts +++ b/src/funcs/webhooksDelete.ts @@ -31,7 +31,7 @@ export async function webhooksDelete( options?: RequestOptions, ): Promise< Result< - components.WebhookResponse, + components.WebhookResponse | undefined, | SDKError | SDKValidationError | UnexpectedClientError @@ -107,7 +107,7 @@ export async function webhooksDelete( const response = doResult.value; const [result] = await M.match< - components.WebhookResponse, + components.WebhookResponse | undefined, | SDKError | SDKValidationError | UnexpectedClientError @@ -116,7 +116,8 @@ export async function webhooksDelete( | RequestTimeoutError | ConnectionError >( - M.json(201, components.WebhookResponse$inboundSchema), + M.nil(200, components.WebhookResponse$inboundSchema.optional()), + M.json(201, components.WebhookResponse$inboundSchema.optional()), M.fail(["4XX", "5XX"]), )(response); if (!result.ok) { diff --git a/src/funcs/webhooksUpdateStatus.ts b/src/funcs/webhooksUpdateStatus.ts index b1dd352b..534e578c 100644 --- a/src/funcs/webhooksUpdateStatus.ts +++ b/src/funcs/webhooksUpdateStatus.ts @@ -31,7 +31,7 @@ export async function webhooksUpdateStatus( options?: RequestOptions, ): Promise< Result< - components.WebhookResponse, + components.WebhookResponse | undefined, | SDKError | SDKValidationError | UnexpectedClientError @@ -107,7 +107,7 @@ export async function webhooksUpdateStatus( const response = doResult.value; const [result] = await M.match< - components.WebhookResponse, + components.WebhookResponse | undefined, | SDKError | SDKValidationError | UnexpectedClientError @@ -116,7 +116,8 @@ export async function webhooksUpdateStatus( | RequestTimeoutError | ConnectionError >( - M.json(201, components.WebhookResponse$inboundSchema), + M.nil(200, components.WebhookResponse$inboundSchema.optional()), + M.json(201, components.WebhookResponse$inboundSchema.optional()), M.fail(["4XX", "5XX"]), )(response); if (!result.ok) { diff --git a/src/lib/config.ts b/src/lib/config.ts index e149af20..dbd93862 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "1.0", - sdkVersion: "0.14.0", - genVersion: "2.460.1", - userAgent: "speakeasy-sdk/typescript 0.14.0 2.460.1 1.0 @panora/sdk", + sdkVersion: "0.15.0", + genVersion: "2.466.0", + userAgent: "speakeasy-sdk/typescript 0.15.0 2.466.0 1.0 @panora/sdk", } as const; diff --git a/src/lib/primitives.ts b/src/lib/primitives.ts index 48b28674..1dc4ee43 100644 --- a/src/lib/primitives.ts +++ b/src/lib/primitives.ts @@ -58,3 +58,65 @@ export function remap< return out; } + +export function combineSignals( + ...signals: Array +): AbortSignal | null { + const filtered: AbortSignal[] = []; + for (const signal of signals) { + if (signal) { + filtered.push(signal); + } + } + + switch (filtered.length) { + case 0: + case 1: + return filtered[0] || null; + default: + if ("any" in AbortSignal && typeof AbortSignal.any === "function") { + return AbortSignal.any(filtered); + } + return abortSignalAny(filtered); + } +} + +export function abortSignalAny(signals: AbortSignal[]): AbortSignal { + const controller = new AbortController(); + const result = controller.signal; + if (!signals.length) { + return controller.signal; + } + + if (signals.length === 1) { + return signals[0] || controller.signal; + } + + for (const signal of signals) { + if (signal.aborted) { + return signal; + } + } + + function abort(this: AbortSignal) { + controller.abort(this.reason); + clean(); + } + + const signalRefs: WeakRef[] = []; + function clean() { + for (const signalRef of signalRefs) { + const signal = signalRef.deref(); + if (signal) { + signal.removeEventListener("abort", abort); + } + } + } + + for (const signal of signals) { + signalRefs.push(new WeakRef(signal)); + signal.addEventListener("abort", abort); + } + + return result; +} diff --git a/src/models/components/index.ts b/src/models/components/index.ts index b2f4fc9b..032c23cf 100644 --- a/src/models/components/index.ts +++ b/src/models/components/index.ts @@ -19,8 +19,6 @@ export * from "./mapfieldtoproviderdto.js"; export * from "./passthroughrequestdto.js"; export * from "./phone.js"; export * from "./projectresponse.js"; -export * from "./querybody.js"; -export * from "./ragqueryoutput.js"; export * from "./resyncstatusdto.js"; export * from "./security.js"; export * from "./signatureverificationdto.js"; diff --git a/src/models/components/logindto.ts b/src/models/components/logindto.ts index b2d6a2c5..2833831c 100644 --- a/src/models/components/logindto.ts +++ b/src/models/components/logindto.ts @@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type LoginDto = { - idUser: string; + idUser?: string | undefined; email: string; passwordHash: string; }; @@ -20,7 +20,7 @@ export const LoginDto$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - id_user: z.string(), + id_user: z.string().optional(), email: z.string(), password_hash: z.string(), }).transform((v) => { @@ -32,7 +32,7 @@ export const LoginDto$inboundSchema: z.ZodType< /** @internal */ export type LoginDto$Outbound = { - id_user: string; + id_user?: string | undefined; email: string; password_hash: string; }; @@ -43,7 +43,7 @@ export const LoginDto$outboundSchema: z.ZodType< z.ZodTypeDef, LoginDto > = z.object({ - idUser: z.string(), + idUser: z.string().optional(), email: z.string(), passwordHash: z.string(), }).transform((v) => { diff --git a/src/models/components/passthroughrequestdto.ts b/src/models/components/passthroughrequestdto.ts index f8a7dcbb..4096c78c 100644 --- a/src/models/components/passthroughrequestdto.ts +++ b/src/models/components/passthroughrequestdto.ts @@ -17,12 +17,19 @@ export type Data = {}; export type RequestFormat = { [k: string]: any } | Array<{ [k: string]: any }>; +export type Headers = {}; + export type PassThroughRequestDto = { method: PassThroughRequestDtoMethod; path: string | null; - data: Data; - requestFormat: { [k: string]: any } | Array<{ [k: string]: any }> | null; - overrideBaseUrl: { [k: string]: any } | null; + data?: Data | undefined; + requestFormat?: + | { [k: string]: any } + | Array<{ [k: string]: any }> + | null + | undefined; + overrideBaseUrl?: { [k: string]: any } | null | undefined; + headers?: Headers | undefined; }; /** @internal */ @@ -130,6 +137,47 @@ export function requestFormatFromJSON( ); } +/** @internal */ +export const Headers$inboundSchema: z.ZodType = + z.object({}); + +/** @internal */ +export type Headers$Outbound = {}; + +/** @internal */ +export const Headers$outboundSchema: z.ZodType< + Headers$Outbound, + z.ZodTypeDef, + Headers +> = z.object({}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Headers$ { + /** @deprecated use `Headers$inboundSchema` instead. */ + export const inboundSchema = Headers$inboundSchema; + /** @deprecated use `Headers$outboundSchema` instead. */ + export const outboundSchema = Headers$outboundSchema; + /** @deprecated use `Headers$Outbound` instead. */ + export type Outbound = Headers$Outbound; +} + +export function headersToJSON(headers: Headers): string { + return JSON.stringify(Headers$outboundSchema.parse(headers)); +} + +export function headersFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Headers$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Headers' from JSON`, + ); +} + /** @internal */ export const PassThroughRequestDto$inboundSchema: z.ZodType< PassThroughRequestDto, @@ -138,11 +186,12 @@ export const PassThroughRequestDto$inboundSchema: z.ZodType< > = z.object({ method: PassThroughRequestDtoMethod$inboundSchema, path: z.nullable(z.string()), - data: z.lazy(() => Data$inboundSchema), + data: z.lazy(() => Data$inboundSchema).optional(), request_format: z.nullable( z.union([z.record(z.any()), z.array(z.record(z.any()))]), - ), - overrideBaseUrl: z.nullable(z.record(z.any())), + ).optional(), + overrideBaseUrl: z.nullable(z.record(z.any())).optional(), + headers: z.lazy(() => Headers$inboundSchema).optional(), }).transform((v) => { return remap$(v, { "request_format": "requestFormat", @@ -153,9 +202,14 @@ export const PassThroughRequestDto$inboundSchema: z.ZodType< export type PassThroughRequestDto$Outbound = { method: string; path: string | null; - data: Data$Outbound; - request_format: { [k: string]: any } | Array<{ [k: string]: any }> | null; - overrideBaseUrl: { [k: string]: any } | null; + data?: Data$Outbound | undefined; + request_format?: + | { [k: string]: any } + | Array<{ [k: string]: any }> + | null + | undefined; + overrideBaseUrl?: { [k: string]: any } | null | undefined; + headers?: Headers$Outbound | undefined; }; /** @internal */ @@ -166,11 +220,12 @@ export const PassThroughRequestDto$outboundSchema: z.ZodType< > = z.object({ method: PassThroughRequestDtoMethod$outboundSchema, path: z.nullable(z.string()), - data: z.lazy(() => Data$outboundSchema), + data: z.lazy(() => Data$outboundSchema).optional(), requestFormat: z.nullable( z.union([z.record(z.any()), z.array(z.record(z.any()))]), - ), - overrideBaseUrl: z.nullable(z.record(z.any())), + ).optional(), + overrideBaseUrl: z.nullable(z.record(z.any())).optional(), + headers: z.lazy(() => Headers$outboundSchema).optional(), }).transform((v) => { return remap$(v, { requestFormat: "request_format", diff --git a/src/models/components/projectresponse.ts b/src/models/components/projectresponse.ts index 6f77c3fa..4482886f 100644 --- a/src/models/components/projectresponse.ts +++ b/src/models/components/projectresponse.ts @@ -24,11 +24,11 @@ export type ProjectResponse = { /** * Frequency of pulling data in seconds */ - pullFrequency: number; + pullFrequency?: number | undefined; /** * Redirect URL for the project */ - redirectUrl: string; + redirectUrl?: string | undefined; /** * User ID associated with the project */ @@ -48,8 +48,8 @@ export const ProjectResponse$inboundSchema: z.ZodType< id_project: z.string(), name: z.string(), sync_mode: z.string(), - pull_frequency: z.number(), - redirect_url: z.string(), + pull_frequency: z.number().optional(), + redirect_url: z.string().optional(), id_user: z.string(), id_connector_set: z.string(), }).transform((v) => { @@ -68,8 +68,8 @@ export type ProjectResponse$Outbound = { id_project: string; name: string; sync_mode: string; - pull_frequency: number; - redirect_url: string; + pull_frequency?: number | undefined; + redirect_url?: string | undefined; id_user: string; id_connector_set: string; }; @@ -83,8 +83,8 @@ export const ProjectResponse$outboundSchema: z.ZodType< idProject: z.string(), name: z.string(), syncMode: z.string(), - pullFrequency: z.number(), - redirectUrl: z.string(), + pullFrequency: z.number().optional(), + redirectUrl: z.string().optional(), idUser: z.string(), idConnectorSet: z.string(), }).transform((v) => { diff --git a/src/models/components/querybody.ts b/src/models/components/querybody.ts deleted file mode 100644 index cb931ccf..00000000 --- a/src/models/components/querybody.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type QueryBody = { - /** - * The query you want to received embeddings and chunks for - */ - query: string; - /** - * The number of most appropriate documents for your query. - */ - topK?: number | null | undefined; -}; - -/** @internal */ -export const QueryBody$inboundSchema: z.ZodType< - QueryBody, - z.ZodTypeDef, - unknown -> = z.object({ - query: z.string(), - topK: z.nullable(z.number()).optional(), -}); - -/** @internal */ -export type QueryBody$Outbound = { - query: string; - topK?: number | null | undefined; -}; - -/** @internal */ -export const QueryBody$outboundSchema: z.ZodType< - QueryBody$Outbound, - z.ZodTypeDef, - QueryBody -> = z.object({ - query: z.string(), - topK: z.nullable(z.number()).optional(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryBody$ { - /** @deprecated use `QueryBody$inboundSchema` instead. */ - export const inboundSchema = QueryBody$inboundSchema; - /** @deprecated use `QueryBody$outboundSchema` instead. */ - export const outboundSchema = QueryBody$outboundSchema; - /** @deprecated use `QueryBody$Outbound` instead. */ - export type Outbound = QueryBody$Outbound; -} - -export function queryBodyToJSON(queryBody: QueryBody): string { - return JSON.stringify(QueryBody$outboundSchema.parse(queryBody)); -} - -export function queryBodyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => QueryBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'QueryBody' from JSON`, - ); -} diff --git a/src/models/components/ragqueryoutput.ts b/src/models/components/ragqueryoutput.ts deleted file mode 100644 index 18f9eaf3..00000000 --- a/src/models/components/ragqueryoutput.ts +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type RagQueryOutput = { - /** - * The chunk which matches the embed query - */ - chunk: string; - /** - * The metadata tied to the chunk - */ - metadata: { [k: string]: any } | null; - /** - * The score - */ - score: number | null; - /** - * The embedding of the relevant chunk - */ - embedding: Array | null; -}; - -/** @internal */ -export const RagQueryOutput$inboundSchema: z.ZodType< - RagQueryOutput, - z.ZodTypeDef, - unknown -> = z.object({ - chunk: z.string(), - metadata: z.nullable(z.record(z.any())), - score: z.nullable(z.number()), - embedding: z.nullable(z.array(z.number())), -}); - -/** @internal */ -export type RagQueryOutput$Outbound = { - chunk: string; - metadata: { [k: string]: any } | null; - score: number | null; - embedding: Array | null; -}; - -/** @internal */ -export const RagQueryOutput$outboundSchema: z.ZodType< - RagQueryOutput$Outbound, - z.ZodTypeDef, - RagQueryOutput -> = z.object({ - chunk: z.string(), - metadata: z.nullable(z.record(z.any())), - score: z.nullable(z.number()), - embedding: z.nullable(z.array(z.number())), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace RagQueryOutput$ { - /** @deprecated use `RagQueryOutput$inboundSchema` instead. */ - export const inboundSchema = RagQueryOutput$inboundSchema; - /** @deprecated use `RagQueryOutput$outboundSchema` instead. */ - export const outboundSchema = RagQueryOutput$outboundSchema; - /** @deprecated use `RagQueryOutput$Outbound` instead. */ - export type Outbound = RagQueryOutput$Outbound; -} - -export function ragQueryOutputToJSON(ragQueryOutput: RagQueryOutput): string { - return JSON.stringify(RagQueryOutput$outboundSchema.parse(ragQueryOutput)); -} - -export function ragQueryOutputFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => RagQueryOutput$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RagQueryOutput' from JSON`, - ); -} diff --git a/src/models/components/webhookdto.ts b/src/models/components/webhookdto.ts index dbc4cca1..0eb34918 100644 --- a/src/models/components/webhookdto.ts +++ b/src/models/components/webhookdto.ts @@ -15,7 +15,7 @@ export type WebhookDto = { /** * The description of the webhook. */ - description: string | null; + description?: string | null | undefined; /** * The events that the webhook listen to. */ @@ -29,14 +29,14 @@ export const WebhookDto$inboundSchema: z.ZodType< unknown > = z.object({ url: z.nullable(z.string()), - description: z.nullable(z.string()), + description: z.nullable(z.string()).optional(), scope: z.nullable(z.array(z.string())), }); /** @internal */ export type WebhookDto$Outbound = { url: string | null; - description: string | null; + description?: string | null | undefined; scope: Array | null; }; @@ -47,7 +47,7 @@ export const WebhookDto$outboundSchema: z.ZodType< WebhookDto > = z.object({ url: z.nullable(z.string()), - description: z.nullable(z.string()), + description: z.nullable(z.string()).optional(), scope: z.nullable(z.array(z.string())), }); diff --git a/src/models/operations/getpanoracoreevents.ts b/src/models/operations/getpanoracoreevents.ts index 57c15993..f0187aad 100644 --- a/src/models/operations/getpanoracoreevents.ts +++ b/src/models/operations/getpanoracoreevents.ts @@ -18,14 +18,14 @@ export const GetPanoraCoreEventsRequest$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - page: z.number().optional(), - limit: z.number().optional(), + page: z.number().default(1), + limit: z.number().default(10), }); /** @internal */ export type GetPanoraCoreEventsRequest$Outbound = { - page?: number | undefined; - limit?: number | undefined; + page: number; + limit: number; }; /** @internal */ @@ -34,8 +34,8 @@ export const GetPanoraCoreEventsRequest$outboundSchema: z.ZodType< z.ZodTypeDef, GetPanoraCoreEventsRequest > = z.object({ - page: z.number().optional(), - limit: z.number().optional(), + page: z.number().default(1), + limit: z.number().default(10), }); /** diff --git a/src/models/operations/index.ts b/src/models/operations/index.ts index 47a3dbbf..ae9a3a6e 100644 --- a/src/models/operations/index.ts +++ b/src/models/operations/index.ts @@ -87,7 +87,6 @@ export * from "./listticketingtags.js"; export * from "./listticketingteams.js"; export * from "./listticketingticket.js"; export * from "./listticketingusers.js"; -export * from "./query.js"; export * from "./remoteid.js"; export * from "./request.js"; export * from "./retrieveaccountingaccount.js"; @@ -147,4 +146,5 @@ export * from "./retrieveticketingteam.js"; export * from "./retrieveticketingticket.js"; export * from "./retrieveticketinguser.js"; export * from "./status.js"; +export * from "./updatepullfrequency.js"; export * from "./updatestatus.js"; diff --git a/src/models/operations/listaccountingaccounts.ts b/src/models/operations/listaccountingaccounts.ts index 5042efea..447c945b 100644 --- a/src/models/operations/listaccountingaccounts.ts +++ b/src/models/operations/listaccountingaccounts.ts @@ -46,7 +46,7 @@ export const ListAccountingAccountsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListAccountingAccountsRequest$inboundSchema: z.ZodType< export type ListAccountingAccountsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListAccountingAccountsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listaccountingaddress.ts b/src/models/operations/listaccountingaddress.ts index b5ec7d5f..c5f6d925 100644 --- a/src/models/operations/listaccountingaddress.ts +++ b/src/models/operations/listaccountingaddress.ts @@ -46,7 +46,7 @@ export const ListAccountingAddressRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListAccountingAddressRequest$inboundSchema: z.ZodType< export type ListAccountingAddressRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListAccountingAddressRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listaccountingattachments.ts b/src/models/operations/listaccountingattachments.ts index b3ae0601..5e4a78ec 100644 --- a/src/models/operations/listaccountingattachments.ts +++ b/src/models/operations/listaccountingattachments.ts @@ -46,7 +46,7 @@ export const ListAccountingAttachmentsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListAccountingAttachmentsRequest$inboundSchema: z.ZodType< export type ListAccountingAttachmentsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListAccountingAttachmentsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listaccountingbalancesheets.ts b/src/models/operations/listaccountingbalancesheets.ts index 4bed3baf..993a6711 100644 --- a/src/models/operations/listaccountingbalancesheets.ts +++ b/src/models/operations/listaccountingbalancesheets.ts @@ -46,7 +46,7 @@ export const ListAccountingBalanceSheetsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListAccountingBalanceSheetsRequest$inboundSchema: z.ZodType< export type ListAccountingBalanceSheetsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListAccountingBalanceSheetsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listaccountingcashflowstatement.ts b/src/models/operations/listaccountingcashflowstatement.ts index d4278faa..8b1ae59b 100644 --- a/src/models/operations/listaccountingcashflowstatement.ts +++ b/src/models/operations/listaccountingcashflowstatement.ts @@ -46,7 +46,7 @@ export const ListAccountingCashflowStatementRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListAccountingCashflowStatementRequest$inboundSchema: z.ZodType< export type ListAccountingCashflowStatementRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListAccountingCashflowStatementRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listaccountingcompanyinfos.ts b/src/models/operations/listaccountingcompanyinfos.ts index 3d2e91c4..74352176 100644 --- a/src/models/operations/listaccountingcompanyinfos.ts +++ b/src/models/operations/listaccountingcompanyinfos.ts @@ -46,7 +46,7 @@ export const ListAccountingCompanyInfosRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListAccountingCompanyInfosRequest$inboundSchema: z.ZodType< export type ListAccountingCompanyInfosRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListAccountingCompanyInfosRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listaccountingcontacts.ts b/src/models/operations/listaccountingcontacts.ts index c2b65654..89b7c676 100644 --- a/src/models/operations/listaccountingcontacts.ts +++ b/src/models/operations/listaccountingcontacts.ts @@ -46,7 +46,7 @@ export const ListAccountingContactsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListAccountingContactsRequest$inboundSchema: z.ZodType< export type ListAccountingContactsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListAccountingContactsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listaccountingcreditnote.ts b/src/models/operations/listaccountingcreditnote.ts index 1a6180c1..47ef2af2 100644 --- a/src/models/operations/listaccountingcreditnote.ts +++ b/src/models/operations/listaccountingcreditnote.ts @@ -46,7 +46,7 @@ export const ListAccountingCreditNoteRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListAccountingCreditNoteRequest$inboundSchema: z.ZodType< export type ListAccountingCreditNoteRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListAccountingCreditNoteRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listaccountingexpense.ts b/src/models/operations/listaccountingexpense.ts index b6ab6ada..afe658d0 100644 --- a/src/models/operations/listaccountingexpense.ts +++ b/src/models/operations/listaccountingexpense.ts @@ -46,7 +46,7 @@ export const ListAccountingExpenseRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListAccountingExpenseRequest$inboundSchema: z.ZodType< export type ListAccountingExpenseRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListAccountingExpenseRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listaccountingincomestatement.ts b/src/models/operations/listaccountingincomestatement.ts index 2d333a97..48f84b70 100644 --- a/src/models/operations/listaccountingincomestatement.ts +++ b/src/models/operations/listaccountingincomestatement.ts @@ -46,7 +46,7 @@ export const ListAccountingIncomeStatementRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListAccountingIncomeStatementRequest$inboundSchema: z.ZodType< export type ListAccountingIncomeStatementRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListAccountingIncomeStatementRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listaccountinginvoice.ts b/src/models/operations/listaccountinginvoice.ts index f1cb92f2..3001e443 100644 --- a/src/models/operations/listaccountinginvoice.ts +++ b/src/models/operations/listaccountinginvoice.ts @@ -46,7 +46,7 @@ export const ListAccountingInvoiceRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListAccountingInvoiceRequest$inboundSchema: z.ZodType< export type ListAccountingInvoiceRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListAccountingInvoiceRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listaccountingitem.ts b/src/models/operations/listaccountingitem.ts index f1e2b890..df3d3896 100644 --- a/src/models/operations/listaccountingitem.ts +++ b/src/models/operations/listaccountingitem.ts @@ -46,7 +46,7 @@ export const ListAccountingItemRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListAccountingItemRequest$inboundSchema: z.ZodType< export type ListAccountingItemRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListAccountingItemRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listaccountingjournalentry.ts b/src/models/operations/listaccountingjournalentry.ts index 1a4b1232..24eab56e 100644 --- a/src/models/operations/listaccountingjournalentry.ts +++ b/src/models/operations/listaccountingjournalentry.ts @@ -46,7 +46,7 @@ export const ListAccountingJournalEntryRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListAccountingJournalEntryRequest$inboundSchema: z.ZodType< export type ListAccountingJournalEntryRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListAccountingJournalEntryRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listaccountingpayment.ts b/src/models/operations/listaccountingpayment.ts index 0091ecba..e78ba467 100644 --- a/src/models/operations/listaccountingpayment.ts +++ b/src/models/operations/listaccountingpayment.ts @@ -46,7 +46,7 @@ export const ListAccountingPaymentRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListAccountingPaymentRequest$inboundSchema: z.ZodType< export type ListAccountingPaymentRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListAccountingPaymentRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listaccountingphonenumber.ts b/src/models/operations/listaccountingphonenumber.ts index 7c453785..c69a8fe4 100644 --- a/src/models/operations/listaccountingphonenumber.ts +++ b/src/models/operations/listaccountingphonenumber.ts @@ -46,7 +46,7 @@ export const ListAccountingPhonenumberRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListAccountingPhonenumberRequest$inboundSchema: z.ZodType< export type ListAccountingPhonenumberRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListAccountingPhonenumberRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listaccountingpurchaseorder.ts b/src/models/operations/listaccountingpurchaseorder.ts index 71d0885f..29731bf4 100644 --- a/src/models/operations/listaccountingpurchaseorder.ts +++ b/src/models/operations/listaccountingpurchaseorder.ts @@ -46,7 +46,7 @@ export const ListAccountingPurchaseOrderRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListAccountingPurchaseOrderRequest$inboundSchema: z.ZodType< export type ListAccountingPurchaseOrderRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListAccountingPurchaseOrderRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listaccountingtaxrate.ts b/src/models/operations/listaccountingtaxrate.ts index 042f0310..2110ebd4 100644 --- a/src/models/operations/listaccountingtaxrate.ts +++ b/src/models/operations/listaccountingtaxrate.ts @@ -46,7 +46,7 @@ export const ListAccountingTaxRateRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListAccountingTaxRateRequest$inboundSchema: z.ZodType< export type ListAccountingTaxRateRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListAccountingTaxRateRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listaccountingtrackingcategorys.ts b/src/models/operations/listaccountingtrackingcategorys.ts index bbd6e60c..e27f4134 100644 --- a/src/models/operations/listaccountingtrackingcategorys.ts +++ b/src/models/operations/listaccountingtrackingcategorys.ts @@ -46,7 +46,7 @@ export const ListAccountingTrackingCategorysRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListAccountingTrackingCategorysRequest$inboundSchema: z.ZodType< export type ListAccountingTrackingCategorysRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListAccountingTrackingCategorysRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listaccountingtransaction.ts b/src/models/operations/listaccountingtransaction.ts index e491bcb0..0f435911 100644 --- a/src/models/operations/listaccountingtransaction.ts +++ b/src/models/operations/listaccountingtransaction.ts @@ -46,7 +46,7 @@ export const ListAccountingTransactionRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListAccountingTransactionRequest$inboundSchema: z.ZodType< export type ListAccountingTransactionRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListAccountingTransactionRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listaccountingvendorcredit.ts b/src/models/operations/listaccountingvendorcredit.ts index 11e7e8e6..d42e8d22 100644 --- a/src/models/operations/listaccountingvendorcredit.ts +++ b/src/models/operations/listaccountingvendorcredit.ts @@ -46,7 +46,7 @@ export const ListAccountingVendorCreditRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListAccountingVendorCreditRequest$inboundSchema: z.ZodType< export type ListAccountingVendorCreditRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListAccountingVendorCreditRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listcrmcompany.ts b/src/models/operations/listcrmcompany.ts index a4f9fb34..b42f0225 100644 --- a/src/models/operations/listcrmcompany.ts +++ b/src/models/operations/listcrmcompany.ts @@ -46,7 +46,7 @@ export const ListCrmCompanyRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListCrmCompanyRequest$inboundSchema: z.ZodType< export type ListCrmCompanyRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListCrmCompanyRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listcrmcontacts.ts b/src/models/operations/listcrmcontacts.ts index 594c58a2..c50afdbd 100644 --- a/src/models/operations/listcrmcontacts.ts +++ b/src/models/operations/listcrmcontacts.ts @@ -46,7 +46,7 @@ export const ListCrmContactsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListCrmContactsRequest$inboundSchema: z.ZodType< export type ListCrmContactsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListCrmContactsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listcrmdeals.ts b/src/models/operations/listcrmdeals.ts index ee2cb9e6..932be2db 100644 --- a/src/models/operations/listcrmdeals.ts +++ b/src/models/operations/listcrmdeals.ts @@ -46,7 +46,7 @@ export const ListCrmDealsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListCrmDealsRequest$inboundSchema: z.ZodType< export type ListCrmDealsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListCrmDealsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listcrmengagements.ts b/src/models/operations/listcrmengagements.ts index 01051c62..f60bdc9e 100644 --- a/src/models/operations/listcrmengagements.ts +++ b/src/models/operations/listcrmengagements.ts @@ -46,7 +46,7 @@ export const ListCrmEngagementsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListCrmEngagementsRequest$inboundSchema: z.ZodType< export type ListCrmEngagementsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListCrmEngagementsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listcrmnote.ts b/src/models/operations/listcrmnote.ts index 1f836ff3..72ffc9b1 100644 --- a/src/models/operations/listcrmnote.ts +++ b/src/models/operations/listcrmnote.ts @@ -46,7 +46,7 @@ export const ListCrmNoteRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListCrmNoteRequest$inboundSchema: z.ZodType< export type ListCrmNoteRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListCrmNoteRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listcrmstages.ts b/src/models/operations/listcrmstages.ts index 786a1d9c..8390da24 100644 --- a/src/models/operations/listcrmstages.ts +++ b/src/models/operations/listcrmstages.ts @@ -46,7 +46,7 @@ export const ListCrmStagesRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListCrmStagesRequest$inboundSchema: z.ZodType< export type ListCrmStagesRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListCrmStagesRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listcrmtask.ts b/src/models/operations/listcrmtask.ts index 55a63f79..7573d706 100644 --- a/src/models/operations/listcrmtask.ts +++ b/src/models/operations/listcrmtask.ts @@ -46,7 +46,7 @@ export const ListCrmTaskRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListCrmTaskRequest$inboundSchema: z.ZodType< export type ListCrmTaskRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListCrmTaskRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listcrmusers.ts b/src/models/operations/listcrmusers.ts index d26e594e..2c322011 100644 --- a/src/models/operations/listcrmusers.ts +++ b/src/models/operations/listcrmusers.ts @@ -46,7 +46,7 @@ export const ListCrmUsersRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListCrmUsersRequest$inboundSchema: z.ZodType< export type ListCrmUsersRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListCrmUsersRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listecommercecustomers.ts b/src/models/operations/listecommercecustomers.ts index d71d5c9c..478d42e2 100644 --- a/src/models/operations/listecommercecustomers.ts +++ b/src/models/operations/listecommercecustomers.ts @@ -46,7 +46,7 @@ export const ListEcommerceCustomersRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListEcommerceCustomersRequest$inboundSchema: z.ZodType< export type ListEcommerceCustomersRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListEcommerceCustomersRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listecommercefulfillments.ts b/src/models/operations/listecommercefulfillments.ts index 86b6e036..d2f2a020 100644 --- a/src/models/operations/listecommercefulfillments.ts +++ b/src/models/operations/listecommercefulfillments.ts @@ -46,7 +46,7 @@ export const ListEcommerceFulfillmentsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListEcommerceFulfillmentsRequest$inboundSchema: z.ZodType< export type ListEcommerceFulfillmentsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListEcommerceFulfillmentsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listecommerceorders.ts b/src/models/operations/listecommerceorders.ts index 75343060..9116b93e 100644 --- a/src/models/operations/listecommerceorders.ts +++ b/src/models/operations/listecommerceorders.ts @@ -46,7 +46,7 @@ export const ListEcommerceOrdersRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListEcommerceOrdersRequest$inboundSchema: z.ZodType< export type ListEcommerceOrdersRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListEcommerceOrdersRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listecommerceproducts.ts b/src/models/operations/listecommerceproducts.ts index f01aa291..5ef17e61 100644 --- a/src/models/operations/listecommerceproducts.ts +++ b/src/models/operations/listecommerceproducts.ts @@ -46,7 +46,7 @@ export const ListEcommerceProductsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListEcommerceProductsRequest$inboundSchema: z.ZodType< export type ListEcommerceProductsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListEcommerceProductsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listfilestoragefile.ts b/src/models/operations/listfilestoragefile.ts index ab40e631..2316f7cf 100644 --- a/src/models/operations/listfilestoragefile.ts +++ b/src/models/operations/listfilestoragefile.ts @@ -46,7 +46,7 @@ export const ListFilestorageFileRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListFilestorageFileRequest$inboundSchema: z.ZodType< export type ListFilestorageFileRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListFilestorageFileRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listfilestoragefolder.ts b/src/models/operations/listfilestoragefolder.ts index d47c99b7..a114b545 100644 --- a/src/models/operations/listfilestoragefolder.ts +++ b/src/models/operations/listfilestoragefolder.ts @@ -46,7 +46,7 @@ export const ListFilestorageFolderRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListFilestorageFolderRequest$inboundSchema: z.ZodType< export type ListFilestorageFolderRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListFilestorageFolderRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listfilestoragegroup.ts b/src/models/operations/listfilestoragegroup.ts index 47b1742b..e3251637 100644 --- a/src/models/operations/listfilestoragegroup.ts +++ b/src/models/operations/listfilestoragegroup.ts @@ -46,7 +46,7 @@ export const ListFilestorageGroupRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListFilestorageGroupRequest$inboundSchema: z.ZodType< export type ListFilestorageGroupRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListFilestorageGroupRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listfilestorageusers.ts b/src/models/operations/listfilestorageusers.ts index 5a75ad66..aa9cdb30 100644 --- a/src/models/operations/listfilestorageusers.ts +++ b/src/models/operations/listfilestorageusers.ts @@ -46,7 +46,7 @@ export const ListFilestorageUsersRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListFilestorageUsersRequest$inboundSchema: z.ZodType< export type ListFilestorageUsersRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListFilestorageUsersRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listmarketingautomationaction.ts b/src/models/operations/listmarketingautomationaction.ts index 2e9c6503..b13629f6 100644 --- a/src/models/operations/listmarketingautomationaction.ts +++ b/src/models/operations/listmarketingautomationaction.ts @@ -46,7 +46,7 @@ export const ListMarketingautomationActionRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListMarketingautomationActionRequest$inboundSchema: z.ZodType< export type ListMarketingautomationActionRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListMarketingautomationActionRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listmarketingautomationautomations.ts b/src/models/operations/listmarketingautomationautomations.ts index bb48a6c2..1c3508d6 100644 --- a/src/models/operations/listmarketingautomationautomations.ts +++ b/src/models/operations/listmarketingautomationautomations.ts @@ -46,7 +46,7 @@ export const ListMarketingautomationAutomationsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListMarketingautomationAutomationsRequest$inboundSchema: z.ZodType< export type ListMarketingautomationAutomationsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -72,7 +72,7 @@ export const ListMarketingautomationAutomationsRequest$outboundSchema: > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listmarketingautomationcampaigns.ts b/src/models/operations/listmarketingautomationcampaigns.ts index 06012747..8e578584 100644 --- a/src/models/operations/listmarketingautomationcampaigns.ts +++ b/src/models/operations/listmarketingautomationcampaigns.ts @@ -46,7 +46,7 @@ export const ListMarketingautomationCampaignsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListMarketingautomationCampaignsRequest$inboundSchema: z.ZodType< export type ListMarketingautomationCampaignsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListMarketingautomationCampaignsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listmarketingautomationcontacts.ts b/src/models/operations/listmarketingautomationcontacts.ts index 8fbd5edf..e9cfa48a 100644 --- a/src/models/operations/listmarketingautomationcontacts.ts +++ b/src/models/operations/listmarketingautomationcontacts.ts @@ -46,7 +46,7 @@ export const ListMarketingAutomationContactsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListMarketingAutomationContactsRequest$inboundSchema: z.ZodType< export type ListMarketingAutomationContactsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListMarketingAutomationContactsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listmarketingautomationemails.ts b/src/models/operations/listmarketingautomationemails.ts index 2704ebc7..af90637e 100644 --- a/src/models/operations/listmarketingautomationemails.ts +++ b/src/models/operations/listmarketingautomationemails.ts @@ -46,7 +46,7 @@ export const ListMarketingautomationEmailsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListMarketingautomationEmailsRequest$inboundSchema: z.ZodType< export type ListMarketingautomationEmailsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListMarketingautomationEmailsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listmarketingautomationevents.ts b/src/models/operations/listmarketingautomationevents.ts index 2e07f3b3..40069bba 100644 --- a/src/models/operations/listmarketingautomationevents.ts +++ b/src/models/operations/listmarketingautomationevents.ts @@ -46,7 +46,7 @@ export const ListMarketingAutomationEventsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListMarketingAutomationEventsRequest$inboundSchema: z.ZodType< export type ListMarketingAutomationEventsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListMarketingAutomationEventsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listmarketingautomationlists.ts b/src/models/operations/listmarketingautomationlists.ts index e8b2a0dc..42b923d9 100644 --- a/src/models/operations/listmarketingautomationlists.ts +++ b/src/models/operations/listmarketingautomationlists.ts @@ -46,7 +46,7 @@ export const ListMarketingautomationListsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListMarketingautomationListsRequest$inboundSchema: z.ZodType< export type ListMarketingautomationListsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListMarketingautomationListsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listmarketingautomationmessages.ts b/src/models/operations/listmarketingautomationmessages.ts index b175235c..054dee9d 100644 --- a/src/models/operations/listmarketingautomationmessages.ts +++ b/src/models/operations/listmarketingautomationmessages.ts @@ -46,7 +46,7 @@ export const ListMarketingautomationMessagesRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListMarketingautomationMessagesRequest$inboundSchema: z.ZodType< export type ListMarketingautomationMessagesRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListMarketingautomationMessagesRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listmarketingautomationtemplates.ts b/src/models/operations/listmarketingautomationtemplates.ts index c7f3bed5..51524099 100644 --- a/src/models/operations/listmarketingautomationtemplates.ts +++ b/src/models/operations/listmarketingautomationtemplates.ts @@ -46,7 +46,7 @@ export const ListMarketingautomationTemplatesRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListMarketingautomationTemplatesRequest$inboundSchema: z.ZodType< export type ListMarketingautomationTemplatesRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListMarketingautomationTemplatesRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listmarketingautomationusers.ts b/src/models/operations/listmarketingautomationusers.ts index 5ef339f2..bd3c9a5c 100644 --- a/src/models/operations/listmarketingautomationusers.ts +++ b/src/models/operations/listmarketingautomationusers.ts @@ -46,7 +46,7 @@ export const ListMarketingAutomationUsersRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListMarketingAutomationUsersRequest$inboundSchema: z.ZodType< export type ListMarketingAutomationUsersRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListMarketingAutomationUsersRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listticketingaccount.ts b/src/models/operations/listticketingaccount.ts index 39cffd48..d3c5144b 100644 --- a/src/models/operations/listticketingaccount.ts +++ b/src/models/operations/listticketingaccount.ts @@ -46,7 +46,7 @@ export const ListTicketingAccountRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListTicketingAccountRequest$inboundSchema: z.ZodType< export type ListTicketingAccountRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListTicketingAccountRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listticketingattachments.ts b/src/models/operations/listticketingattachments.ts index aded871c..115c2eb9 100644 --- a/src/models/operations/listticketingattachments.ts +++ b/src/models/operations/listticketingattachments.ts @@ -46,7 +46,7 @@ export const ListTicketingAttachmentsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListTicketingAttachmentsRequest$inboundSchema: z.ZodType< export type ListTicketingAttachmentsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListTicketingAttachmentsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listticketingcollections.ts b/src/models/operations/listticketingcollections.ts index 79e8ff67..e059b0b1 100644 --- a/src/models/operations/listticketingcollections.ts +++ b/src/models/operations/listticketingcollections.ts @@ -46,7 +46,7 @@ export const ListTicketingCollectionsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListTicketingCollectionsRequest$inboundSchema: z.ZodType< export type ListTicketingCollectionsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListTicketingCollectionsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listticketingcomments.ts b/src/models/operations/listticketingcomments.ts index 1a4489b5..7a5fdec6 100644 --- a/src/models/operations/listticketingcomments.ts +++ b/src/models/operations/listticketingcomments.ts @@ -46,7 +46,7 @@ export const ListTicketingCommentsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListTicketingCommentsRequest$inboundSchema: z.ZodType< export type ListTicketingCommentsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListTicketingCommentsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listticketingcontacts.ts b/src/models/operations/listticketingcontacts.ts index 03ef3a13..c1bfdad0 100644 --- a/src/models/operations/listticketingcontacts.ts +++ b/src/models/operations/listticketingcontacts.ts @@ -46,7 +46,7 @@ export const ListTicketingContactsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListTicketingContactsRequest$inboundSchema: z.ZodType< export type ListTicketingContactsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListTicketingContactsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listticketingtags.ts b/src/models/operations/listticketingtags.ts index 19f087ae..80c9b303 100644 --- a/src/models/operations/listticketingtags.ts +++ b/src/models/operations/listticketingtags.ts @@ -46,7 +46,7 @@ export const ListTicketingTagsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListTicketingTagsRequest$inboundSchema: z.ZodType< export type ListTicketingTagsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListTicketingTagsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listticketingteams.ts b/src/models/operations/listticketingteams.ts index a712baf0..3b640523 100644 --- a/src/models/operations/listticketingteams.ts +++ b/src/models/operations/listticketingteams.ts @@ -46,7 +46,7 @@ export const ListTicketingTeamsRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListTicketingTeamsRequest$inboundSchema: z.ZodType< export type ListTicketingTeamsRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListTicketingTeamsRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listticketingticket.ts b/src/models/operations/listticketingticket.ts index a96dc80e..222b665e 100644 --- a/src/models/operations/listticketingticket.ts +++ b/src/models/operations/listticketingticket.ts @@ -46,7 +46,7 @@ export const ListTicketingTicketRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListTicketingTicketRequest$inboundSchema: z.ZodType< export type ListTicketingTicketRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListTicketingTicketRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/listticketingusers.ts b/src/models/operations/listticketingusers.ts index 9ef20a36..59df5bde 100644 --- a/src/models/operations/listticketingusers.ts +++ b/src/models/operations/listticketingusers.ts @@ -46,7 +46,7 @@ export const ListTicketingUsersRequest$inboundSchema: z.ZodType< > = z.object({ "x-connection-token": z.string(), remote_data: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { @@ -59,7 +59,7 @@ export const ListTicketingUsersRequest$inboundSchema: z.ZodType< export type ListTicketingUsersRequest$Outbound = { "x-connection-token": string; remote_data?: boolean | undefined; - limit?: number | undefined; + limit: number; cursor?: string | undefined; }; @@ -71,7 +71,7 @@ export const ListTicketingUsersRequest$outboundSchema: z.ZodType< > = z.object({ xConnectionToken: z.string(), remoteData: z.boolean().optional(), - limit: z.number().optional(), + limit: z.number().default(50), cursor: z.string().optional(), }).transform((v) => { return remap$(v, { diff --git a/src/models/operations/query.ts b/src/models/operations/query.ts deleted file mode 100644 index c5c18c28..00000000 --- a/src/models/operations/query.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import * as components from "../components/index.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type QueryRequest = { - /** - * The connection token - */ - xConnectionToken: string; - queryBody: components.QueryBody; -}; - -/** @internal */ -export const QueryRequest$inboundSchema: z.ZodType< - QueryRequest, - z.ZodTypeDef, - unknown -> = z.object({ - "x-connection-token": z.string(), - QueryBody: components.QueryBody$inboundSchema, -}).transform((v) => { - return remap$(v, { - "x-connection-token": "xConnectionToken", - "QueryBody": "queryBody", - }); -}); - -/** @internal */ -export type QueryRequest$Outbound = { - "x-connection-token": string; - QueryBody: components.QueryBody$Outbound; -}; - -/** @internal */ -export const QueryRequest$outboundSchema: z.ZodType< - QueryRequest$Outbound, - z.ZodTypeDef, - QueryRequest -> = z.object({ - xConnectionToken: z.string(), - queryBody: components.QueryBody$outboundSchema, -}).transform((v) => { - return remap$(v, { - xConnectionToken: "x-connection-token", - queryBody: "QueryBody", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryRequest$ { - /** @deprecated use `QueryRequest$inboundSchema` instead. */ - export const inboundSchema = QueryRequest$inboundSchema; - /** @deprecated use `QueryRequest$outboundSchema` instead. */ - export const outboundSchema = QueryRequest$outboundSchema; - /** @deprecated use `QueryRequest$Outbound` instead. */ - export type Outbound = QueryRequest$Outbound; -} - -export function queryRequestToJSON(queryRequest: QueryRequest): string { - return JSON.stringify(QueryRequest$outboundSchema.parse(queryRequest)); -} - -export function queryRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => QueryRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'QueryRequest' from JSON`, - ); -} diff --git a/src/models/operations/request.ts b/src/models/operations/request.ts index 8c48af82..ec1c77c5 100644 --- a/src/models/operations/request.ts +++ b/src/models/operations/request.ts @@ -14,8 +14,14 @@ export type RequestRequest = { passThroughRequestDto: components.PassThroughRequestDto; }; +export type RequestPassthroughResponseBody = {}; + export type RequestResponseBody = {}; +export type RequestResponse = + | RequestResponseBody + | RequestPassthroughResponseBody; + /** @internal */ export const RequestRequest$inboundSchema: z.ZodType< RequestRequest, @@ -79,6 +85,56 @@ export function requestRequestFromJSON( ); } +/** @internal */ +export const RequestPassthroughResponseBody$inboundSchema: z.ZodType< + RequestPassthroughResponseBody, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type RequestPassthroughResponseBody$Outbound = {}; + +/** @internal */ +export const RequestPassthroughResponseBody$outboundSchema: z.ZodType< + RequestPassthroughResponseBody$Outbound, + z.ZodTypeDef, + RequestPassthroughResponseBody +> = z.object({}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RequestPassthroughResponseBody$ { + /** @deprecated use `RequestPassthroughResponseBody$inboundSchema` instead. */ + export const inboundSchema = RequestPassthroughResponseBody$inboundSchema; + /** @deprecated use `RequestPassthroughResponseBody$outboundSchema` instead. */ + export const outboundSchema = RequestPassthroughResponseBody$outboundSchema; + /** @deprecated use `RequestPassthroughResponseBody$Outbound` instead. */ + export type Outbound = RequestPassthroughResponseBody$Outbound; +} + +export function requestPassthroughResponseBodyToJSON( + requestPassthroughResponseBody: RequestPassthroughResponseBody, +): string { + return JSON.stringify( + RequestPassthroughResponseBody$outboundSchema.parse( + requestPassthroughResponseBody, + ), + ); +} + +export function requestPassthroughResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RequestPassthroughResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RequestPassthroughResponseBody' from JSON`, + ); +} + /** @internal */ export const RequestResponseBody$inboundSchema: z.ZodType< RequestResponseBody, @@ -126,3 +182,57 @@ export function requestResponseBodyFromJSON( `Failed to parse 'RequestResponseBody' from JSON`, ); } + +/** @internal */ +export const RequestResponse$inboundSchema: z.ZodType< + RequestResponse, + z.ZodTypeDef, + unknown +> = z.union([ + z.lazy(() => RequestResponseBody$inboundSchema), + z.lazy(() => RequestPassthroughResponseBody$inboundSchema), +]); + +/** @internal */ +export type RequestResponse$Outbound = + | RequestResponseBody$Outbound + | RequestPassthroughResponseBody$Outbound; + +/** @internal */ +export const RequestResponse$outboundSchema: z.ZodType< + RequestResponse$Outbound, + z.ZodTypeDef, + RequestResponse +> = z.union([ + z.lazy(() => RequestResponseBody$outboundSchema), + z.lazy(() => RequestPassthroughResponseBody$outboundSchema), +]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace RequestResponse$ { + /** @deprecated use `RequestResponse$inboundSchema` instead. */ + export const inboundSchema = RequestResponse$inboundSchema; + /** @deprecated use `RequestResponse$outboundSchema` instead. */ + export const outboundSchema = RequestResponse$outboundSchema; + /** @deprecated use `RequestResponse$Outbound` instead. */ + export type Outbound = RequestResponse$Outbound; +} + +export function requestResponseToJSON( + requestResponse: RequestResponse, +): string { + return JSON.stringify(RequestResponse$outboundSchema.parse(requestResponse)); +} + +export function requestResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => RequestResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'RequestResponse' from JSON`, + ); +} diff --git a/src/models/operations/updatepullfrequency.ts b/src/models/operations/updatepullfrequency.ts new file mode 100644 index 00000000..0d369d03 --- /dev/null +++ b/src/models/operations/updatepullfrequency.ts @@ -0,0 +1,60 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type UpdatePullFrequencyResponseBody = {}; + +/** @internal */ +export const UpdatePullFrequencyResponseBody$inboundSchema: z.ZodType< + UpdatePullFrequencyResponseBody, + z.ZodTypeDef, + unknown +> = z.object({}); + +/** @internal */ +export type UpdatePullFrequencyResponseBody$Outbound = {}; + +/** @internal */ +export const UpdatePullFrequencyResponseBody$outboundSchema: z.ZodType< + UpdatePullFrequencyResponseBody$Outbound, + z.ZodTypeDef, + UpdatePullFrequencyResponseBody +> = z.object({}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UpdatePullFrequencyResponseBody$ { + /** @deprecated use `UpdatePullFrequencyResponseBody$inboundSchema` instead. */ + export const inboundSchema = UpdatePullFrequencyResponseBody$inboundSchema; + /** @deprecated use `UpdatePullFrequencyResponseBody$outboundSchema` instead. */ + export const outboundSchema = UpdatePullFrequencyResponseBody$outboundSchema; + /** @deprecated use `UpdatePullFrequencyResponseBody$Outbound` instead. */ + export type Outbound = UpdatePullFrequencyResponseBody$Outbound; +} + +export function updatePullFrequencyResponseBodyToJSON( + updatePullFrequencyResponseBody: UpdatePullFrequencyResponseBody, +): string { + return JSON.stringify( + UpdatePullFrequencyResponseBody$outboundSchema.parse( + updatePullFrequencyResponseBody, + ), + ); +} + +export function updatePullFrequencyResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UpdatePullFrequencyResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UpdatePullFrequencyResponseBody' from JSON`, + ); +} diff --git a/src/sdk/accounts.ts b/src/sdk/accounts.ts index cb647596..361a7f59 100644 --- a/src/sdk/accounts.ts +++ b/src/sdk/accounts.ts @@ -17,7 +17,9 @@ export class Accounts extends ClientSDK { async list( request: operations.ListTicketingAccountRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(ticketingAccountsList( this, request, diff --git a/src/sdk/actions.ts b/src/sdk/actions.ts index feb8ed53..1b822437 100644 --- a/src/sdk/actions.ts +++ b/src/sdk/actions.ts @@ -18,7 +18,12 @@ export class Actions extends ClientSDK { async list( request: operations.ListMarketingautomationActionRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator< + operations.ListMarketingautomationActionResponse, + { cursor: string } + > + > { return unwrapResultIterator(marketingautomationActionsList( this, request, diff --git a/src/sdk/addresses.ts b/src/sdk/addresses.ts index 09392cf5..846eb014 100644 --- a/src/sdk/addresses.ts +++ b/src/sdk/addresses.ts @@ -17,7 +17,9 @@ export class Addresses extends ClientSDK { async list( request: operations.ListAccountingAddressRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(accountingAddressesList( this, request, diff --git a/src/sdk/attachments.ts b/src/sdk/attachments.ts index 5c80d937..a6948c9f 100644 --- a/src/sdk/attachments.ts +++ b/src/sdk/attachments.ts @@ -18,7 +18,12 @@ export class Attachments extends ClientSDK { async list( request: operations.ListAccountingAttachmentsRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator< + operations.ListAccountingAttachmentsResponse, + { cursor: string } + > + > { return unwrapResultIterator(accountingAttachmentsList( this, request, diff --git a/src/sdk/automations.ts b/src/sdk/automations.ts index 8b61b0ea..d0c22c3e 100644 --- a/src/sdk/automations.ts +++ b/src/sdk/automations.ts @@ -19,7 +19,10 @@ export class Automations extends ClientSDK { request: operations.ListMarketingautomationAutomationsRequest, options?: RequestOptions, ): Promise< - PageIterator + PageIterator< + operations.ListMarketingautomationAutomationsResponse, + { cursor: string } + > > { return unwrapResultIterator(marketingautomationAutomationsList( this, diff --git a/src/sdk/balancesheets.ts b/src/sdk/balancesheets.ts index c052f607..20a1e79f 100644 --- a/src/sdk/balancesheets.ts +++ b/src/sdk/balancesheets.ts @@ -17,7 +17,12 @@ export class Balancesheets extends ClientSDK { async list( request: operations.ListAccountingBalanceSheetsRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator< + operations.ListAccountingBalanceSheetsResponse, + { cursor: string } + > + > { return unwrapResultIterator(accountingBalancesheetsList( this, request, diff --git a/src/sdk/campaigns.ts b/src/sdk/campaigns.ts index b893ba7e..ca34c3fe 100644 --- a/src/sdk/campaigns.ts +++ b/src/sdk/campaigns.ts @@ -19,7 +19,10 @@ export class Campaigns extends ClientSDK { request: operations.ListMarketingautomationCampaignsRequest, options?: RequestOptions, ): Promise< - PageIterator + PageIterator< + operations.ListMarketingautomationCampaignsResponse, + { cursor: string } + > > { return unwrapResultIterator(marketingautomationCampaignsList( this, diff --git a/src/sdk/cashflowstatements.ts b/src/sdk/cashflowstatements.ts index f60bbb13..59c0b696 100644 --- a/src/sdk/cashflowstatements.ts +++ b/src/sdk/cashflowstatements.ts @@ -17,7 +17,12 @@ export class Cashflowstatements extends ClientSDK { async list( request: operations.ListAccountingCashflowStatementRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator< + operations.ListAccountingCashflowStatementResponse, + { cursor: string } + > + > { return unwrapResultIterator(accountingCashflowstatementsList( this, request, diff --git a/src/sdk/collections.ts b/src/sdk/collections.ts index 09e0f328..49a3c9cf 100644 --- a/src/sdk/collections.ts +++ b/src/sdk/collections.ts @@ -17,7 +17,12 @@ export class Collections extends ClientSDK { async list( request: operations.ListTicketingCollectionsRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator< + operations.ListTicketingCollectionsResponse, + { cursor: string } + > + > { return unwrapResultIterator(ticketingCollectionsList( this, request, diff --git a/src/sdk/comments.ts b/src/sdk/comments.ts index 759bf538..7db8e379 100644 --- a/src/sdk/comments.ts +++ b/src/sdk/comments.ts @@ -18,7 +18,9 @@ export class Comments extends ClientSDK { async list( request: operations.ListTicketingCommentsRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(ticketingCommentsList( this, request, diff --git a/src/sdk/companies.ts b/src/sdk/companies.ts index d401f09e..7bc19d8a 100644 --- a/src/sdk/companies.ts +++ b/src/sdk/companies.ts @@ -18,7 +18,9 @@ export class Companies extends ClientSDK { async list( request: operations.ListCrmCompanyRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(crmCompaniesList( this, request, diff --git a/src/sdk/companyinfos.ts b/src/sdk/companyinfos.ts index 999445b1..10fd5659 100644 --- a/src/sdk/companyinfos.ts +++ b/src/sdk/companyinfos.ts @@ -17,7 +17,12 @@ export class Companyinfos extends ClientSDK { async list( request: operations.ListAccountingCompanyInfosRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator< + operations.ListAccountingCompanyInfosResponse, + { cursor: string } + > + > { return unwrapResultIterator(accountingCompanyinfosList( this, request, diff --git a/src/sdk/contacts.ts b/src/sdk/contacts.ts index 0762d812..a322df7f 100644 --- a/src/sdk/contacts.ts +++ b/src/sdk/contacts.ts @@ -16,7 +16,9 @@ export class Contacts extends ClientSDK { async list( request: operations.ListTicketingContactsRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(ticketingContactsList( this, request, diff --git a/src/sdk/creditnotes.ts b/src/sdk/creditnotes.ts index ef30ae2e..f84e6fd4 100644 --- a/src/sdk/creditnotes.ts +++ b/src/sdk/creditnotes.ts @@ -17,7 +17,12 @@ export class Creditnotes extends ClientSDK { async list( request: operations.ListAccountingCreditNoteRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator< + operations.ListAccountingCreditNoteResponse, + { cursor: string } + > + > { return unwrapResultIterator(accountingCreditnotesList( this, request, diff --git a/src/sdk/customers.ts b/src/sdk/customers.ts index 4ff29210..ce8e7300 100644 --- a/src/sdk/customers.ts +++ b/src/sdk/customers.ts @@ -17,7 +17,9 @@ export class Customers extends ClientSDK { async list( request: operations.ListEcommerceCustomersRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(ecommerceCustomersList( this, request, diff --git a/src/sdk/deals.ts b/src/sdk/deals.ts index a36a0dad..e78097fc 100644 --- a/src/sdk/deals.ts +++ b/src/sdk/deals.ts @@ -18,7 +18,9 @@ export class Deals extends ClientSDK { async list( request: operations.ListCrmDealsRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(crmDealsList( this, request, diff --git a/src/sdk/emails.ts b/src/sdk/emails.ts index 4925bed8..0e9849aa 100644 --- a/src/sdk/emails.ts +++ b/src/sdk/emails.ts @@ -17,7 +17,12 @@ export class Emails extends ClientSDK { async list( request: operations.ListMarketingautomationEmailsRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator< + operations.ListMarketingautomationEmailsResponse, + { cursor: string } + > + > { return unwrapResultIterator(marketingautomationEmailsList( this, request, diff --git a/src/sdk/engagements.ts b/src/sdk/engagements.ts index 16bea93b..3cced021 100644 --- a/src/sdk/engagements.ts +++ b/src/sdk/engagements.ts @@ -18,7 +18,9 @@ export class Engagements extends ClientSDK { async list( request: operations.ListCrmEngagementsRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(crmEngagementsList( this, request, diff --git a/src/sdk/expenses.ts b/src/sdk/expenses.ts index 1194a4cb..37dfcd95 100644 --- a/src/sdk/expenses.ts +++ b/src/sdk/expenses.ts @@ -18,7 +18,9 @@ export class Expenses extends ClientSDK { async list( request: operations.ListAccountingExpenseRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(accountingExpensesList( this, request, diff --git a/src/sdk/files.ts b/src/sdk/files.ts index 4e219afe..39715753 100644 --- a/src/sdk/files.ts +++ b/src/sdk/files.ts @@ -18,7 +18,9 @@ export class Files extends ClientSDK { async list( request: operations.ListFilestorageFileRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(filestorageFilesList( this, request, diff --git a/src/sdk/folders.ts b/src/sdk/folders.ts index cf05b197..5bebdcb5 100644 --- a/src/sdk/folders.ts +++ b/src/sdk/folders.ts @@ -18,7 +18,9 @@ export class Folders extends ClientSDK { async list( request: operations.ListFilestorageFolderRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(filestorageFoldersList( this, request, diff --git a/src/sdk/fulfillments.ts b/src/sdk/fulfillments.ts index 871efe42..4a97447c 100644 --- a/src/sdk/fulfillments.ts +++ b/src/sdk/fulfillments.ts @@ -17,7 +17,12 @@ export class Fulfillments extends ClientSDK { async list( request: operations.ListEcommerceFulfillmentsRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator< + operations.ListEcommerceFulfillmentsResponse, + { cursor: string } + > + > { return unwrapResultIterator(ecommerceFulfillmentsList( this, request, diff --git a/src/sdk/groups.ts b/src/sdk/groups.ts index dade155a..c9ebdc0e 100644 --- a/src/sdk/groups.ts +++ b/src/sdk/groups.ts @@ -17,7 +17,9 @@ export class Groups extends ClientSDK { async list( request: operations.ListFilestorageGroupRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(filestorageGroupsList( this, request, diff --git a/src/sdk/incomestatements.ts b/src/sdk/incomestatements.ts index 9a06e6e0..8861b58a 100644 --- a/src/sdk/incomestatements.ts +++ b/src/sdk/incomestatements.ts @@ -17,7 +17,12 @@ export class Incomestatements extends ClientSDK { async list( request: operations.ListAccountingIncomeStatementRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator< + operations.ListAccountingIncomeStatementResponse, + { cursor: string } + > + > { return unwrapResultIterator(accountingIncomestatementsList( this, request, diff --git a/src/sdk/invoices.ts b/src/sdk/invoices.ts index 376f898b..7043639b 100644 --- a/src/sdk/invoices.ts +++ b/src/sdk/invoices.ts @@ -18,7 +18,9 @@ export class Invoices extends ClientSDK { async list( request: operations.ListAccountingInvoiceRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(accountingInvoicesList( this, request, diff --git a/src/sdk/items.ts b/src/sdk/items.ts index 3a68d14a..fd8d07b1 100644 --- a/src/sdk/items.ts +++ b/src/sdk/items.ts @@ -17,7 +17,9 @@ export class Items extends ClientSDK { async list( request: operations.ListAccountingItemRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(accountingItemsList( this, request, diff --git a/src/sdk/journalentries.ts b/src/sdk/journalentries.ts index 83bd2d8f..de3673e6 100644 --- a/src/sdk/journalentries.ts +++ b/src/sdk/journalentries.ts @@ -18,7 +18,12 @@ export class Journalentries extends ClientSDK { async list( request: operations.ListAccountingJournalEntryRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator< + operations.ListAccountingJournalEntryResponse, + { cursor: string } + > + > { return unwrapResultIterator(accountingJournalentriesList( this, request, diff --git a/src/sdk/lists.ts b/src/sdk/lists.ts index da595d9a..2331a952 100644 --- a/src/sdk/lists.ts +++ b/src/sdk/lists.ts @@ -18,7 +18,12 @@ export class Lists extends ClientSDK { async list( request: operations.ListMarketingautomationListsRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator< + operations.ListMarketingautomationListsResponse, + { cursor: string } + > + > { return unwrapResultIterator(marketingautomationListsList( this, request, diff --git a/src/sdk/messages.ts b/src/sdk/messages.ts index d10810ad..d1c804ae 100644 --- a/src/sdk/messages.ts +++ b/src/sdk/messages.ts @@ -17,7 +17,12 @@ export class Messages extends ClientSDK { async list( request: operations.ListMarketingautomationMessagesRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator< + operations.ListMarketingautomationMessagesResponse, + { cursor: string } + > + > { return unwrapResultIterator(marketingautomationMessagesList( this, request, diff --git a/src/sdk/notes.ts b/src/sdk/notes.ts index 5d7a6f45..9a9c2504 100644 --- a/src/sdk/notes.ts +++ b/src/sdk/notes.ts @@ -18,7 +18,7 @@ export class Notes extends ClientSDK { async list( request: operations.ListCrmNoteRequest, options?: RequestOptions, - ): Promise> { + ): Promise> { return unwrapResultIterator(crmNotesList( this, request, diff --git a/src/sdk/orders.ts b/src/sdk/orders.ts index 71480147..ee7531bc 100644 --- a/src/sdk/orders.ts +++ b/src/sdk/orders.ts @@ -18,7 +18,9 @@ export class Orders extends ClientSDK { async list( request: operations.ListEcommerceOrdersRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(ecommerceOrdersList( this, request, diff --git a/src/sdk/panoraaccountingcontacts.ts b/src/sdk/panoraaccountingcontacts.ts index d2453360..d7c28114 100644 --- a/src/sdk/panoraaccountingcontacts.ts +++ b/src/sdk/panoraaccountingcontacts.ts @@ -18,7 +18,9 @@ export class PanoraAccountingContacts extends ClientSDK { async list( request: operations.ListAccountingContactsRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(accountingContactsList( this, request, diff --git a/src/sdk/panoraaccounts.ts b/src/sdk/panoraaccounts.ts index 2e32aaa8..bee8aa68 100644 --- a/src/sdk/panoraaccounts.ts +++ b/src/sdk/panoraaccounts.ts @@ -18,7 +18,9 @@ export class PanoraAccounts extends ClientSDK { async list( request: operations.ListAccountingAccountsRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(accountingAccountsList( this, request, diff --git a/src/sdk/panoraattachments.ts b/src/sdk/panoraattachments.ts index e99b611d..ce1a3b50 100644 --- a/src/sdk/panoraattachments.ts +++ b/src/sdk/panoraattachments.ts @@ -18,7 +18,12 @@ export class PanoraAttachments extends ClientSDK { async list( request: operations.ListTicketingAttachmentsRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator< + operations.ListTicketingAttachmentsResponse, + { cursor: string } + > + > { return unwrapResultIterator(ticketingAttachmentsList( this, request, diff --git a/src/sdk/panoracontacts.ts b/src/sdk/panoracontacts.ts index 77f0c1b9..4943bf2a 100644 --- a/src/sdk/panoracontacts.ts +++ b/src/sdk/panoracontacts.ts @@ -18,7 +18,9 @@ export class PanoraContacts extends ClientSDK { async list( request: operations.ListCrmContactsRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(crmContactsList( this, request, diff --git a/src/sdk/panoraevents.ts b/src/sdk/panoraevents.ts index 3699251b..69d99889 100644 --- a/src/sdk/panoraevents.ts +++ b/src/sdk/panoraevents.ts @@ -17,7 +17,12 @@ export class PanoraEvents extends ClientSDK { async list( request: operations.ListMarketingAutomationEventsRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator< + operations.ListMarketingAutomationEventsResponse, + { cursor: string } + > + > { return unwrapResultIterator(marketingautomationEventsList( this, request, diff --git a/src/sdk/panorafilestorageusers.ts b/src/sdk/panorafilestorageusers.ts index ed00003b..11145901 100644 --- a/src/sdk/panorafilestorageusers.ts +++ b/src/sdk/panorafilestorageusers.ts @@ -17,7 +17,9 @@ export class PanoraFilestorageUsers extends ClientSDK { async list( request: operations.ListFilestorageUsersRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(filestorageUsersList( this, request, diff --git a/src/sdk/panoramarketingautomationcontacts.ts b/src/sdk/panoramarketingautomationcontacts.ts index 810720b3..b23c694d 100644 --- a/src/sdk/panoramarketingautomationcontacts.ts +++ b/src/sdk/panoramarketingautomationcontacts.ts @@ -18,7 +18,12 @@ export class PanoraMarketingautomationContacts extends ClientSDK { async list( request: operations.ListMarketingAutomationContactsRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator< + operations.ListMarketingAutomationContactsResponse, + { cursor: string } + > + > { return unwrapResultIterator(marketingautomationContactsList( this, request, diff --git a/src/sdk/panoramarketingautomationusers.ts b/src/sdk/panoramarketingautomationusers.ts index 529b2d02..54abc4ac 100644 --- a/src/sdk/panoramarketingautomationusers.ts +++ b/src/sdk/panoramarketingautomationusers.ts @@ -17,7 +17,12 @@ export class PanoraMarketingautomationUsers extends ClientSDK { async list( request: operations.ListMarketingAutomationUsersRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator< + operations.ListMarketingAutomationUsersResponse, + { cursor: string } + > + > { return unwrapResultIterator(marketingautomationUsersList( this, request, diff --git a/src/sdk/panorausers.ts b/src/sdk/panorausers.ts index 15a8e5dc..ac20d66c 100644 --- a/src/sdk/panorausers.ts +++ b/src/sdk/panorausers.ts @@ -17,7 +17,9 @@ export class PanoraUsers extends ClientSDK { async list( request: operations.ListCrmUsersRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(crmUsersList( this, request, diff --git a/src/sdk/passthrough.ts b/src/sdk/passthrough.ts index f1e41f95..d67ec3f2 100644 --- a/src/sdk/passthrough.ts +++ b/src/sdk/passthrough.ts @@ -20,7 +20,7 @@ export class Passthrough extends ClientSDK { async request( request: operations.RequestRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(passthroughRequest( this, request, diff --git a/src/sdk/payments.ts b/src/sdk/payments.ts index 6587e13b..34c241ff 100644 --- a/src/sdk/payments.ts +++ b/src/sdk/payments.ts @@ -18,7 +18,9 @@ export class Payments extends ClientSDK { async list( request: operations.ListAccountingPaymentRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(accountingPaymentsList( this, request, diff --git a/src/sdk/phonenumbers.ts b/src/sdk/phonenumbers.ts index 0c8325e4..41b768a7 100644 --- a/src/sdk/phonenumbers.ts +++ b/src/sdk/phonenumbers.ts @@ -17,7 +17,12 @@ export class Phonenumbers extends ClientSDK { async list( request: operations.ListAccountingPhonenumberRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator< + operations.ListAccountingPhonenumberResponse, + { cursor: string } + > + > { return unwrapResultIterator(accountingPhonenumbersList( this, request, diff --git a/src/sdk/products.ts b/src/sdk/products.ts index af3af872..531f2aa6 100644 --- a/src/sdk/products.ts +++ b/src/sdk/products.ts @@ -18,7 +18,9 @@ export class Products extends ClientSDK { async list( request: operations.ListEcommerceProductsRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(ecommerceProductsList( this, request, diff --git a/src/sdk/purchaseorders.ts b/src/sdk/purchaseorders.ts index 92a188b6..6f722ebc 100644 --- a/src/sdk/purchaseorders.ts +++ b/src/sdk/purchaseorders.ts @@ -18,7 +18,12 @@ export class Purchaseorders extends ClientSDK { async list( request: operations.ListAccountingPurchaseOrderRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator< + operations.ListAccountingPurchaseOrderResponse, + { cursor: string } + > + > { return unwrapResultIterator(accountingPurchaseordersList( this, request, diff --git a/src/sdk/rag.ts b/src/sdk/rag.ts deleted file mode 100644 index 1addd7f1..00000000 --- a/src/sdk/rag.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { ragQuery } from "../funcs/ragQuery.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; -import { unwrapAsync } from "../types/fp.js"; - -export class Rag extends ClientSDK { - /** - * Query using RAG Search - * - * @remarks - * Query across your connected data sources using RAG Search - */ - async query( - request: operations.QueryRequest, - options?: RequestOptions, - ): Promise> { - return unwrapAsync(ragQuery( - this, - request, - options, - )); - } -} diff --git a/src/sdk/sdk.ts b/src/sdk/sdk.ts index b4ff67f6..a6bb5d9d 100644 --- a/src/sdk/sdk.ts +++ b/src/sdk/sdk.ts @@ -18,22 +18,11 @@ import { LinkedUsers } from "./linkedusers.js"; import { Marketingautomation } from "./marketingautomation.js"; import { Passthrough } from "./passthrough.js"; import { Projects } from "./projects.js"; -import { Rag } from "./rag.js"; import { Sync } from "./sync.js"; import { Ticketing } from "./ticketing.js"; import { Webhooks } from "./webhooks.js"; export class Panora extends ClientSDK { - private _rag?: Rag; - get rag(): Rag { - return (this._rag ??= new Rag(this._options)); - } - - private _filestorage?: Filestorage; - get filestorage(): Filestorage { - return (this._filestorage ??= new Filestorage(this._options)); - } - private _auth?: Auth; get auth(): Auth { return (this._auth ??= new Auth(this._options)); @@ -101,6 +90,11 @@ export class Panora extends ClientSDK { return (this._accounting ??= new Accounting(this._options)); } + private _filestorage?: Filestorage; + get filestorage(): Filestorage { + return (this._filestorage ??= new Filestorage(this._options)); + } + private _ecommerce?: Ecommerce; get ecommerce(): Ecommerce { return (this._ecommerce ??= new Ecommerce(this._options)); diff --git a/src/sdk/stages.ts b/src/sdk/stages.ts index a9f01152..a002be62 100644 --- a/src/sdk/stages.ts +++ b/src/sdk/stages.ts @@ -17,7 +17,9 @@ export class Stages extends ClientSDK { async list( request: operations.ListCrmStagesRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(crmStagesList( this, request, diff --git a/src/sdk/sync.ts b/src/sdk/sync.ts index 7ce7a85d..18067249 100644 --- a/src/sdk/sync.ts +++ b/src/sdk/sync.ts @@ -44,7 +44,7 @@ export class Sync extends ClientSDK { async updatePullFrequency( request: components.UpdatePullFrequencyDto, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(syncUpdatePullFrequency( this, request, diff --git a/src/sdk/tags.ts b/src/sdk/tags.ts index a04e91bc..f8efcc83 100644 --- a/src/sdk/tags.ts +++ b/src/sdk/tags.ts @@ -17,7 +17,9 @@ export class Tags extends ClientSDK { async list( request: operations.ListTicketingTagsRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(ticketingTagsList( this, request, diff --git a/src/sdk/tasks.ts b/src/sdk/tasks.ts index de9fbfb3..9e6caa08 100644 --- a/src/sdk/tasks.ts +++ b/src/sdk/tasks.ts @@ -18,7 +18,7 @@ export class Tasks extends ClientSDK { async list( request: operations.ListCrmTaskRequest, options?: RequestOptions, - ): Promise> { + ): Promise> { return unwrapResultIterator(crmTasksList( this, request, diff --git a/src/sdk/taxrates.ts b/src/sdk/taxrates.ts index 56689a41..27ae82d5 100644 --- a/src/sdk/taxrates.ts +++ b/src/sdk/taxrates.ts @@ -17,7 +17,9 @@ export class Taxrates extends ClientSDK { async list( request: operations.ListAccountingTaxRateRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(accountingTaxratesList( this, request, diff --git a/src/sdk/teams.ts b/src/sdk/teams.ts index 5391c27e..8b72b7f7 100644 --- a/src/sdk/teams.ts +++ b/src/sdk/teams.ts @@ -17,7 +17,9 @@ export class Teams extends ClientSDK { async list( request: operations.ListTicketingTeamsRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(ticketingTeamsList( this, request, diff --git a/src/sdk/templates.ts b/src/sdk/templates.ts index ff19eee4..4eb69c77 100644 --- a/src/sdk/templates.ts +++ b/src/sdk/templates.ts @@ -19,7 +19,10 @@ export class Templates extends ClientSDK { request: operations.ListMarketingautomationTemplatesRequest, options?: RequestOptions, ): Promise< - PageIterator + PageIterator< + operations.ListMarketingautomationTemplatesResponse, + { cursor: string } + > > { return unwrapResultIterator(marketingautomationTemplatesList( this, diff --git a/src/sdk/tickets.ts b/src/sdk/tickets.ts index cfb2d471..02c60c4b 100644 --- a/src/sdk/tickets.ts +++ b/src/sdk/tickets.ts @@ -18,7 +18,9 @@ export class Tickets extends ClientSDK { async list( request: operations.ListTicketingTicketRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(ticketingTicketsList( this, request, diff --git a/src/sdk/trackingcategories.ts b/src/sdk/trackingcategories.ts index 2415d7f0..e34e62f5 100644 --- a/src/sdk/trackingcategories.ts +++ b/src/sdk/trackingcategories.ts @@ -17,7 +17,12 @@ export class Trackingcategories extends ClientSDK { async list( request: operations.ListAccountingTrackingCategorysRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator< + operations.ListAccountingTrackingCategorysResponse, + { cursor: string } + > + > { return unwrapResultIterator(accountingTrackingcategoriesList( this, request, diff --git a/src/sdk/transactions.ts b/src/sdk/transactions.ts index 515aa908..97eebaa9 100644 --- a/src/sdk/transactions.ts +++ b/src/sdk/transactions.ts @@ -17,7 +17,12 @@ export class Transactions extends ClientSDK { async list( request: operations.ListAccountingTransactionRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator< + operations.ListAccountingTransactionResponse, + { cursor: string } + > + > { return unwrapResultIterator(accountingTransactionsList( this, request, diff --git a/src/sdk/users.ts b/src/sdk/users.ts index aadf99c3..34f973da 100644 --- a/src/sdk/users.ts +++ b/src/sdk/users.ts @@ -17,7 +17,9 @@ export class Users extends ClientSDK { async list( request: operations.ListTicketingUsersRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator + > { return unwrapResultIterator(ticketingUsersList( this, request, diff --git a/src/sdk/vendorcredits.ts b/src/sdk/vendorcredits.ts index b3777c41..ba13b979 100644 --- a/src/sdk/vendorcredits.ts +++ b/src/sdk/vendorcredits.ts @@ -17,7 +17,12 @@ export class Vendorcredits extends ClientSDK { async list( request: operations.ListAccountingVendorCreditRequest, options?: RequestOptions, - ): Promise> { + ): Promise< + PageIterator< + operations.ListAccountingVendorCreditResponse, + { cursor: string } + > + > { return unwrapResultIterator(accountingVendorcreditsList( this, request, diff --git a/src/sdk/webhooks.ts b/src/sdk/webhooks.ts index d8ef8d7e..1d66dd47 100644 --- a/src/sdk/webhooks.ts +++ b/src/sdk/webhooks.ts @@ -45,7 +45,7 @@ export class Webhooks extends ClientSDK { async delete( request: operations.DeleteRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(webhooksDelete( this, request, @@ -59,7 +59,7 @@ export class Webhooks extends ClientSDK { async updateStatus( request: operations.UpdateStatusRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(webhooksUpdateStatus( this, request, diff --git a/src/types/operations.ts b/src/types/operations.ts index 0952f6f4..beb81e10 100644 --- a/src/types/operations.ts +++ b/src/types/operations.ts @@ -6,9 +6,10 @@ import { Result } from "./fp.js"; export type Paginator = () => Promise }> | null; -export type PageIterator = V & { +export type PageIterator = V & { next: Paginator; [Symbol.asyncIterator]: () => AsyncIterableIterator; + "~next"?: PageState | undefined; }; export function createPageIterator( @@ -40,7 +41,9 @@ export function createPageIterator( * terminates. It is useful in paginated SDK functions that have early return * paths when things go wrong. */ -export function haltIterator(v: V): PageIterator { +export function haltIterator( + v: V, +): PageIterator { return { ...v, next: () => null, @@ -54,9 +57,9 @@ export function haltIterator(v: V): PageIterator { * Converts an async iterator of `Result` into an async iterator of `V`. * When error results occur, the underlying error value is thrown. */ -export async function unwrapResultIterator( - iteratorPromise: Promise>>, -): Promise> { +export async function unwrapResultIterator( + iteratorPromise: Promise, PageState>>, +): Promise> { const resultIter = await iteratorPromise; if (!resultIter.ok) { @@ -66,6 +69,7 @@ export async function unwrapResultIterator( return { ...resultIter.value, next: unwrapPaginator(resultIter.next), + "~next": resultIter["~next"], [Symbol.asyncIterator]: async function* paginator() { for await (const page of resultIter) { if (!page.ok) { @@ -97,3 +101,5 @@ function unwrapPaginator( }); }; } + +export const URL_OVERRIDE = Symbol("URL_OVERRIDE"); diff --git a/tsconfig.json b/tsconfig.json index 7a86d2d9..f9d286a7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,6 +4,7 @@ "tsBuildInfoFile": ".tsbuildinfo", "target": "ES2018", "lib": ["ES2022", "DOM", "DOM.Iterable"], + "jsx": "react-jsx", "module": "Node16", "moduleResolution": "Node16",