diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index d7832bdc..12a09fbc 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 7bffa198-5d29-4efa-9942-d549cc832085 management: - docChecksum: 14b5eaa4ac48d4336800b2e5e5f40937 - docVersion: 10.20.16 - speakeasyVersion: 1.622.1 - generationVersion: 2.709.0 - releaseVersion: 0.29.9 - configChecksum: 6b6a2fda1002c33802529dee8fd08748 + docChecksum: efe4635baedb3c35156ddcd5d1173663 + docVersion: 10.21.4 + speakeasyVersion: 1.636.3 + generationVersion: 2.723.11 + releaseVersion: 0.30.0 + configChecksum: d1ddabeb8d59c98957118c27064996d1 repoURL: https://github.com/apideck-libraries/sdk-typescript.git installationURL: https://github.com/apideck-libraries/sdk-typescript published: true @@ -15,7 +15,7 @@ features: acceptHeaders: 2.81.2 additionalDependencies: 0.1.0 constsAndDefaults: 0.1.12 - core: 3.21.23 + core: 3.21.26 deepObjectParams: 0.1.0 defaultEnabledRetries: 0.1.0 deprecations: 2.81.1 @@ -28,7 +28,7 @@ features: globalSecurityFlattening: 0.1.0 globalServerURLs: 2.82.5 globals: 2.82.2 - groups: 2.81.2 + groups: 2.81.3 inputOutputModels: 2.82.0 methodServerURLs: 2.82.1 mockServer: 0.1.1 @@ -38,9 +38,9 @@ features: responseFormat: 0.2.3 retries: 2.83.0 sdkHooks: 0.3.0 - tests: 0.17.2 + tests: 0.17.3 typeOverrides: 2.81.1 - unions: 2.85.11 + unions: 2.86.0 uploadStreams: 0.1.0 generatedFiles: - .gitattributes @@ -105,6 +105,7 @@ generatedFiles: - docs/models/components/authtype.md - docs/models/components/balancebyperiod.md - docs/models/components/balancebytransaction.md + - docs/models/components/balancebytransactiontransactiontype.md - docs/models/components/balancesheet.md - docs/models/components/balancesheetassetsaccount.md - docs/models/components/balancesheetequityaccount.md @@ -125,6 +126,7 @@ generatedFiles: - docs/models/components/bankfeedstatementtransactiontype.md - docs/models/components/benefit.md - docs/models/components/bill.md + - docs/models/components/billingmethod.md - docs/models/components/billinput.md - docs/models/components/billlineitem.md - docs/models/components/billlineiteminput.md @@ -248,6 +250,7 @@ generatedFiles: - docs/models/components/createopportunityresponse.md - docs/models/components/createpaymentresponse.md - docs/models/components/createpipelineresponse.md + - docs/models/components/createprojectresponse.md - docs/models/components/createpurchaseorderresponse.md - docs/models/components/createquoteresponse.md - docs/models/components/createsessionresponse.md @@ -339,6 +342,7 @@ generatedFiles: - docs/models/components/deleteopportunityresponse.md - docs/models/components/deletepaymentresponse.md - docs/models/components/deletepipelineresponse.md + - docs/models/components/deleteprojectresponse.md - docs/models/components/deletepurchaseorderresponse.md - docs/models/components/deletequoteresponse.md - docs/models/components/deletesharedlinkresponse.md @@ -548,6 +552,8 @@ generatedFiles: - docs/models/components/getproductresponse.md - docs/models/components/getproductsresponse.md - docs/models/components/getprofitandlossresponse.md + - docs/models/components/getprojectresponse.md + - docs/models/components/getprojectsresponse.md - docs/models/components/getpurchaseorderresponse.md - docs/models/components/getpurchaseordersresponse.md - docs/models/components/getquoteresponse.md @@ -585,6 +591,7 @@ generatedFiles: - docs/models/components/invoiceitem.md - docs/models/components/invoiceitemfilter.md - docs/models/components/invoiceitemfilterinvoiceitemtype.md + - docs/models/components/invoiceitemfiltertransactiontype.md - docs/models/components/invoiceiteminput.md - docs/models/components/invoiceitempurchasedetails.md - docs/models/components/invoiceitemsalesdetails.md @@ -691,6 +698,7 @@ generatedFiles: - docs/models/components/paginationcoverage.md - docs/models/components/paginationcoveragemode.md - docs/models/components/parentaccount.md + - docs/models/components/parentproject.md - docs/models/components/passthroughbody.md - docs/models/components/payment.md - docs/models/components/paymentallocations.md @@ -722,6 +730,16 @@ generatedFiles: - docs/models/components/profitandlossfilter.md - docs/models/components/profitandlossindicator.md - docs/models/components/profitandlosstype.md + - docs/models/components/project.md + - docs/models/components/projectdepartment.md + - docs/models/components/projectinput.md + - docs/models/components/projectphase.md + - docs/models/components/projectprojectstatus.md + - docs/models/components/projectsfilter.md + - docs/models/components/projectssort.md + - docs/models/components/projectssortsortby.md + - docs/models/components/projectstatus.md + - docs/models/components/projecttype.md - docs/models/components/purchasedetails.md - docs/models/components/purchaseorder.md - docs/models/components/purchaseorderamortizationtype.md @@ -747,6 +765,7 @@ generatedFiles: - docs/models/components/salary.md - docs/models/components/salesdetails.md - docs/models/components/schedule.md + - docs/models/components/schedulestatus.md - docs/models/components/schema.md - docs/models/components/schemasupport.md - docs/models/components/scope.md @@ -794,6 +813,7 @@ generatedFiles: - docs/models/components/thestartmonthoffiscalyear.md - docs/models/components/ticket.md - docs/models/components/ticketinput.md + - docs/models/components/ticketpriority.md - docs/models/components/ticketssort.md - docs/models/components/ticketssortby.md - docs/models/components/timeoffrequest.md @@ -864,6 +884,7 @@ generatedFiles: - docs/models/components/updateopportunityresponse.md - docs/models/components/updatepaymentresponse.md - docs/models/components/updatepipelineresponse.md + - docs/models/components/updateprojectresponse.md - docs/models/components/updatepurchaseorderresponse.md - docs/models/components/updatequoteresponse.md - docs/models/components/updatesharedlinkresponse.md @@ -1170,6 +1191,21 @@ generatedFiles: - docs/models/operations/accountingprofitandlossoneglobals.md - docs/models/operations/accountingprofitandlossonerequest.md - docs/models/operations/accountingprofitandlossoneresponse.md + - docs/models/operations/accountingprojectsaddglobals.md + - docs/models/operations/accountingprojectsaddrequest.md + - docs/models/operations/accountingprojectsaddresponse.md + - docs/models/operations/accountingprojectsallglobals.md + - docs/models/operations/accountingprojectsallrequest.md + - docs/models/operations/accountingprojectsallresponse.md + - docs/models/operations/accountingprojectsdeleteglobals.md + - docs/models/operations/accountingprojectsdeleterequest.md + - docs/models/operations/accountingprojectsdeleteresponse.md + - docs/models/operations/accountingprojectsoneglobals.md + - docs/models/operations/accountingprojectsonerequest.md + - docs/models/operations/accountingprojectsoneresponse.md + - docs/models/operations/accountingprojectsupdateglobals.md + - docs/models/operations/accountingprojectsupdaterequest.md + - docs/models/operations/accountingprojectsupdateresponse.md - docs/models/operations/accountingpurchaseordersaddglobals.md - docs/models/operations/accountingpurchaseordersaddrequest.md - docs/models/operations/accountingpurchaseordersaddresponse.md @@ -1812,11 +1848,9 @@ generatedFiles: - docs/models/operations/webhookwebhooksupdateglobals.md - docs/models/operations/webhookwebhooksupdaterequest.md - docs/models/operations/webhookwebhooksupdateresponse.md - - docs/sdks/accounting/README.md - docs/sdks/activities/README.md - docs/sdks/agedcreditors/README.md - docs/sdks/ageddebtors/README.md - - docs/sdks/apideck/README.md - docs/sdks/apideckcompanies/README.md - docs/sdks/apideckcustomers/README.md - docs/sdks/apideckdepartments/README.md @@ -1825,7 +1859,6 @@ generatedFiles: - docs/sdks/apis/README.md - docs/sdks/applicants/README.md - docs/sdks/applications/README.md - - docs/sdks/ats/README.md - docs/sdks/attachments/README.md - docs/sdks/balancesheet/README.md - docs/sdks/bankaccounts/README.md @@ -1846,7 +1879,6 @@ generatedFiles: - docs/sdks/connectioncustommappings/README.md - docs/sdks/connections/README.md - docs/sdks/connectionsettings/README.md - - docs/sdks/connector/README.md - docs/sdks/connectordocs/README.md - docs/sdks/connectorresources/README.md - docs/sdks/connectors/README.md @@ -1855,7 +1887,6 @@ generatedFiles: - docs/sdks/contacts/README.md - docs/sdks/createcallback/README.md - docs/sdks/creditnotes/README.md - - docs/sdks/crm/README.md - docs/sdks/customers/README.md - docs/sdks/customfields/README.md - docs/sdks/custommappings/README.md @@ -1864,19 +1895,15 @@ generatedFiles: - docs/sdks/departments/README.md - docs/sdks/drivegroups/README.md - docs/sdks/drives/README.md - - docs/sdks/ecommerce/README.md - docs/sdks/employeepayrolls/README.md - docs/sdks/employees/README.md - docs/sdks/employeeschedules/README.md - docs/sdks/eventlogs/README.md - docs/sdks/expenses/README.md - docs/sdks/files/README.md - - docs/sdks/filestorage/README.md - docs/sdks/folders/README.md - - docs/sdks/hris/README.md - docs/sdks/invoiceitems/README.md - docs/sdks/invoices/README.md - - docs/sdks/issuetracking/README.md - docs/sdks/jobs/README.md - docs/sdks/journalentries/README.md - docs/sdks/leads/README.md @@ -1892,11 +1919,11 @@ generatedFiles: - docs/sdks/pipelines/README.md - docs/sdks/products/README.md - docs/sdks/profitandloss/README.md + - docs/sdks/projects/README.md - docs/sdks/purchaseorders/README.md - docs/sdks/quotes/README.md - docs/sdks/sessions/README.md - docs/sdks/sharedlinks/README.md - - docs/sdks/sms/README.md - docs/sdks/stores/README.md - docs/sdks/subsidiaries/README.md - docs/sdks/suppliers/README.md @@ -1906,8 +1933,6 @@ generatedFiles: - docs/sdks/uploadsessions/README.md - docs/sdks/users/README.md - docs/sdks/validateconnection/README.md - - docs/sdks/vault/README.md - - docs/sdks/webhook/README.md - docs/sdks/webhooks/README.md - docs/types/rfcdate.md - eslint.config.mjs @@ -2010,6 +2035,7 @@ generatedFiles: - src/__tests__/mockserver/internal/handler/pathdeleteaccountingledgeraccountsid.go - src/__tests__/mockserver/internal/handler/pathdeleteaccountinglocationsid.go - src/__tests__/mockserver/internal/handler/pathdeleteaccountingpaymentsid.go + - src/__tests__/mockserver/internal/handler/pathdeleteaccountingprojectsid.go - src/__tests__/mockserver/internal/handler/pathdeleteaccountingpurchaseordersid.go - src/__tests__/mockserver/internal/handler/pathdeleteaccountingquotesid.go - src/__tests__/mockserver/internal/handler/pathdeleteaccountingsubsidiariesid.go @@ -2084,6 +2110,8 @@ generatedFiles: - src/__tests__/mockserver/internal/handler/pathgetaccountingpayments.go - src/__tests__/mockserver/internal/handler/pathgetaccountingpaymentsid.go - src/__tests__/mockserver/internal/handler/pathgetaccountingprofitandloss.go + - src/__tests__/mockserver/internal/handler/pathgetaccountingprojects.go + - src/__tests__/mockserver/internal/handler/pathgetaccountingprojectsid.go - src/__tests__/mockserver/internal/handler/pathgetaccountingpurchaseorders.go - src/__tests__/mockserver/internal/handler/pathgetaccountingpurchaseordersid.go - src/__tests__/mockserver/internal/handler/pathgetaccountingquotes.go @@ -2200,6 +2228,7 @@ generatedFiles: - src/__tests__/mockserver/internal/handler/pathpatchaccountingledgeraccountsid.go - src/__tests__/mockserver/internal/handler/pathpatchaccountinglocationsid.go - src/__tests__/mockserver/internal/handler/pathpatchaccountingpaymentsid.go + - src/__tests__/mockserver/internal/handler/pathpatchaccountingprojectsid.go - src/__tests__/mockserver/internal/handler/pathpatchaccountingpurchaseordersid.go - src/__tests__/mockserver/internal/handler/pathpatchaccountingquotesid.go - src/__tests__/mockserver/internal/handler/pathpatchaccountingsubsidiariesid.go @@ -2250,6 +2279,7 @@ generatedFiles: - src/__tests__/mockserver/internal/handler/pathpostaccountingledgeraccounts.go - src/__tests__/mockserver/internal/handler/pathpostaccountinglocations.go - src/__tests__/mockserver/internal/handler/pathpostaccountingpayments.go + - src/__tests__/mockserver/internal/handler/pathpostaccountingprojects.go - src/__tests__/mockserver/internal/handler/pathpostaccountingpurchaseorders.go - src/__tests__/mockserver/internal/handler/pathpostaccountingquotes.go - src/__tests__/mockserver/internal/handler/pathpostaccountingsubsidiaries.go @@ -2421,6 +2451,7 @@ generatedFiles: - src/__tests__/mockserver/internal/sdk/models/components/createopportunityresponse.go - src/__tests__/mockserver/internal/sdk/models/components/createpaymentresponse.go - src/__tests__/mockserver/internal/sdk/models/components/createpipelineresponse.go + - src/__tests__/mockserver/internal/sdk/models/components/createprojectresponse.go - src/__tests__/mockserver/internal/sdk/models/components/createpurchaseorderresponse.go - src/__tests__/mockserver/internal/sdk/models/components/createquoteresponse.go - src/__tests__/mockserver/internal/sdk/models/components/createsessionresponse.go @@ -2490,6 +2521,7 @@ generatedFiles: - src/__tests__/mockserver/internal/sdk/models/components/deleteopportunityresponse.go - src/__tests__/mockserver/internal/sdk/models/components/deletepaymentresponse.go - src/__tests__/mockserver/internal/sdk/models/components/deletepipelineresponse.go + - src/__tests__/mockserver/internal/sdk/models/components/deleteprojectresponse.go - src/__tests__/mockserver/internal/sdk/models/components/deletepurchaseorderresponse.go - src/__tests__/mockserver/internal/sdk/models/components/deletequoteresponse.go - src/__tests__/mockserver/internal/sdk/models/components/deletesharedlinkresponse.go @@ -2659,6 +2691,8 @@ generatedFiles: - src/__tests__/mockserver/internal/sdk/models/components/getproductresponse.go - src/__tests__/mockserver/internal/sdk/models/components/getproductsresponse.go - src/__tests__/mockserver/internal/sdk/models/components/getprofitandlossresponse.go + - src/__tests__/mockserver/internal/sdk/models/components/getprojectresponse.go + - src/__tests__/mockserver/internal/sdk/models/components/getprojectsresponse.go - src/__tests__/mockserver/internal/sdk/models/components/getpurchaseorderresponse.go - src/__tests__/mockserver/internal/sdk/models/components/getpurchaseordersresponse.go - src/__tests__/mockserver/internal/sdk/models/components/getquoteresponse.go @@ -2770,6 +2804,9 @@ generatedFiles: - src/__tests__/mockserver/internal/sdk/models/components/profitandlossfilter.go - src/__tests__/mockserver/internal/sdk/models/components/profitandlossindicator.go - src/__tests__/mockserver/internal/sdk/models/components/profitandlosstype.go + - src/__tests__/mockserver/internal/sdk/models/components/project.go + - src/__tests__/mockserver/internal/sdk/models/components/projectsfilter.go + - src/__tests__/mockserver/internal/sdk/models/components/projectssort.go - src/__tests__/mockserver/internal/sdk/models/components/purchaseorder.go - src/__tests__/mockserver/internal/sdk/models/components/purchaseordersfilter.go - src/__tests__/mockserver/internal/sdk/models/components/purchaseorderssort.go @@ -2853,6 +2890,7 @@ generatedFiles: - src/__tests__/mockserver/internal/sdk/models/components/updateopportunityresponse.go - src/__tests__/mockserver/internal/sdk/models/components/updatepaymentresponse.go - src/__tests__/mockserver/internal/sdk/models/components/updatepipelineresponse.go + - src/__tests__/mockserver/internal/sdk/models/components/updateprojectresponse.go - src/__tests__/mockserver/internal/sdk/models/components/updatepurchaseorderresponse.go - src/__tests__/mockserver/internal/sdk/models/components/updatequoteresponse.go - src/__tests__/mockserver/internal/sdk/models/components/updatesharedlinkresponse.go @@ -2964,6 +3002,11 @@ generatedFiles: - src/__tests__/mockserver/internal/sdk/models/operations/accountingpaymentsone.go - src/__tests__/mockserver/internal/sdk/models/operations/accountingpaymentsupdate.go - src/__tests__/mockserver/internal/sdk/models/operations/accountingprofitandlossone.go + - src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsadd.go + - src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsall.go + - src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsdelete.go + - src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsone.go + - src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsupdate.go - src/__tests__/mockserver/internal/sdk/models/operations/accountingpurchaseordersadd.go - src/__tests__/mockserver/internal/sdk/models/operations/accountingpurchaseordersall.go - src/__tests__/mockserver/internal/sdk/models/operations/accountingpurchaseordersdelete.go @@ -3209,6 +3252,7 @@ generatedFiles: - src/__tests__/pipelines.test.ts - src/__tests__/products.test.ts - src/__tests__/profitandloss.test.ts + - src/__tests__/projects.test.ts - src/__tests__/purchaseorders.test.ts - src/__tests__/quotes.test.ts - src/__tests__/sessions.test.ts @@ -3312,6 +3356,11 @@ generatedFiles: - src/funcs/accountingPaymentsList.ts - src/funcs/accountingPaymentsUpdate.ts - src/funcs/accountingProfitAndLossGet.ts + - src/funcs/accountingProjectsCreate.ts + - src/funcs/accountingProjectsDelete.ts + - src/funcs/accountingProjectsGet.ts + - src/funcs/accountingProjectsList.ts + - src/funcs/accountingProjectsUpdate.ts - src/funcs/accountingPurchaseOrdersCreate.ts - src/funcs/accountingPurchaseOrdersDelete.ts - src/funcs/accountingPurchaseOrdersGet.ts @@ -3666,6 +3715,7 @@ generatedFiles: - src/models/components/createopportunityresponse.ts - src/models/components/createpaymentresponse.ts - src/models/components/createpipelineresponse.ts + - src/models/components/createprojectresponse.ts - src/models/components/createpurchaseorderresponse.ts - src/models/components/createquoteresponse.ts - src/models/components/createsessionresponse.ts @@ -3735,6 +3785,7 @@ generatedFiles: - src/models/components/deleteopportunityresponse.ts - src/models/components/deletepaymentresponse.ts - src/models/components/deletepipelineresponse.ts + - src/models/components/deleteprojectresponse.ts - src/models/components/deletepurchaseorderresponse.ts - src/models/components/deletequoteresponse.ts - src/models/components/deletesharedlinkresponse.ts @@ -3904,6 +3955,8 @@ generatedFiles: - src/models/components/getproductresponse.ts - src/models/components/getproductsresponse.ts - src/models/components/getprofitandlossresponse.ts + - src/models/components/getprojectresponse.ts + - src/models/components/getprojectsresponse.ts - src/models/components/getpurchaseorderresponse.ts - src/models/components/getpurchaseordersresponse.ts - src/models/components/getquoteresponse.ts @@ -4015,6 +4068,9 @@ generatedFiles: - src/models/components/profitandlossfilter.ts - src/models/components/profitandlossindicator.ts - src/models/components/profitandlosstype.ts + - src/models/components/project.ts + - src/models/components/projectsfilter.ts + - src/models/components/projectssort.ts - src/models/components/purchaseorder.ts - src/models/components/purchaseordersfilter.ts - src/models/components/purchaseorderssort.ts @@ -4096,6 +4152,7 @@ generatedFiles: - src/models/components/updateopportunityresponse.ts - src/models/components/updatepaymentresponse.ts - src/models/components/updatepipelineresponse.ts + - src/models/components/updateprojectresponse.ts - src/models/components/updatepurchaseorderresponse.ts - src/models/components/updatequoteresponse.ts - src/models/components/updatesharedlinkresponse.ts @@ -4218,6 +4275,11 @@ generatedFiles: - src/models/operations/accountingpaymentsone.ts - src/models/operations/accountingpaymentsupdate.ts - src/models/operations/accountingprofitandlossone.ts + - src/models/operations/accountingprojectsadd.ts + - src/models/operations/accountingprojectsall.ts + - src/models/operations/accountingprojectsdelete.ts + - src/models/operations/accountingprojectsone.ts + - src/models/operations/accountingprojectsupdate.ts - src/models/operations/accountingpurchaseordersadd.ts - src/models/operations/accountingpurchaseordersall.ts - src/models/operations/accountingpurchaseordersdelete.ts @@ -4512,6 +4574,7 @@ generatedFiles: - src/sdk/pipelines.ts - src/sdk/products.ts - src/sdk/profitandloss.ts + - src/sdk/projects.ts - src/sdk/purchaseorders.ts - src/sdk/quotes.ts - src/sdk/sdk.ts @@ -4898,7 +4961,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "123456", "bill_number": "10001", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "INV-2024-001", "line_items": [{"row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345"}], "terms": "Net 30 days", "balance": 27500, "deposit": 0, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "discount_percentage": 5.5, "template_id": "123456", "approved_by": "John Doe", "tax_method": "Due to supplier", "document_received": true, "source_document_url": "https://www.invoicesolution.com/bill/123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24", "attachments": [{"name": "sample.jpg", "mime_type": "image/jpeg", "is_compressed": false, "encoding": "base64", "content": "data:image/jpeg;base64,...", "notes": "A sample image"}]} + application/json: {"display_id": "123456", "bill_number": "10001", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "INV-2024-001", "line_items": [{"row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345"}], "terms": "Net 30 days", "balance": 27500, "deposit": 0, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "discount_percentage": 5.5, "template_id": "123456", "approved_by": "John Doe", "tax_method": "Due to supplier", "document_received": true, "source_document_url": "https://www.invoicesolution.com/bill/123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24", "attachments": [{"name": "sample.jpg", "mime_type": "image/jpeg", "is_compressed": false, "encoding": "base64", "content": "data:image/jpeg;base64,...", "notes": "A sample image"}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "bills", "operation": "add", "data": {"id": "12345"}} @@ -4954,7 +5017,7 @@ examples: x-apideck-service-id: "salesforce" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "bills", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "display_id": "123456", "bill_number": "10001", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "INV-2024-001", "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "terms": "Net 30 days", "balance": 27500, "deposit": 0, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "discount_percentage": 5.5, "template_id": "123456", "approved_by": "John Doe", "tax_method": "Due to supplier", "document_received": true, "source_document_url": "https://www.invoicesolution.com/bill/123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24", "attachments": [{"name": "sample.jpg", "mime_type": "image/jpeg", "is_compressed": false, "encoding": "base64", "content": "data:image/jpeg;base64,...", "notes": "A sample image"}]}} + application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "bills", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "display_id": "123456", "bill_number": "10001", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "INV-2024-001", "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "terms": "Net 30 days", "balance": 27500, "deposit": 0, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "discount_percentage": 5.5, "template_id": "123456", "approved_by": "John Doe", "tax_method": "Due to supplier", "document_received": true, "source_document_url": "https://www.invoicesolution.com/bill/123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24", "attachments": [{"name": "sample.jpg", "mime_type": "image/jpeg", "is_compressed": false, "encoding": "base64", "content": "data:image/jpeg;base64,...", "notes": "A sample image"}]}} "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} "401": @@ -5006,7 +5069,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "123456", "bill_number": "10001", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "INV-2024-001", "line_items": [{"row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345"}], "terms": "Net 30 days", "balance": 27500, "deposit": 0, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "discount_percentage": 5.5, "template_id": "123456", "approved_by": "John Doe", "tax_method": "Due to supplier", "document_received": true, "source_document_url": "https://www.invoicesolution.com/bill/123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24", "attachments": [{"name": "sample.jpg", "mime_type": "image/jpeg", "is_compressed": false, "encoding": "base64", "content": "data:image/jpeg;base64,...", "notes": "A sample image"}]} + application/json: {"display_id": "123456", "bill_number": "10001", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "bill_date": "2020-09-30", "due_date": "2020-10-30", "paid_date": "2020-10-30", "po_number": "90000117", "reference": "INV-2024-001", "line_items": [{"row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "expense_account", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345"}], "terms": "Net 30 days", "balance": 27500, "deposit": 0, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_code": "1234", "notes": "Some notes about this bill.", "status": "draft", "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "discount_percentage": 5.5, "template_id": "123456", "approved_by": "John Doe", "tax_method": "Due to supplier", "document_received": true, "source_document_url": "https://www.invoicesolution.com/bill/123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "accounting_period": "01-24", "attachments": [{"name": "sample.jpg", "mime_type": "image/jpeg", "is_compressed": false, "encoding": "base64", "content": "data:image/jpeg;base64,...", "notes": "A sample image"}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "bills", "operation": "update", "data": {"id": "12345"}} @@ -5107,7 +5170,7 @@ examples: query: raw: false limit: 20 - filter: {"updated_since": "2020-09-30T07:43:32.000Z", "created_since": "2020-09-30T07:43:32.000Z", "number": "OIT00546"} + filter: {"updated_since": "2020-09-30T07:43:32.000Z", "created_since": "2020-09-30T07:43:32.000Z", "number": "OIT00546", "supplier_id": "123"} sort: {"by": "updated_at", "direction": "desc"} pass_through: {"search": "San Francisco"} fields: "id,updated_at" @@ -5165,7 +5228,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "123456", "type": "service", "number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "department_id": "12345", "invoice_date": "2020-09-30", "due_date": "2020-09-30", "terms": "Net 30 days", "po_number": "90000117", "reference": "INV-2024-001", "status": "draft", "invoice_sent": true, "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "balance": 27500, "deposit": 0, "customer_memo": "Thank you for your business and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}], "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "template_id": "123456", "source_document_url": "https://www.invoicesolution.com/invoice/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "ledger_account": null, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"display_id": "123456", "type": "service", "number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "department_id": "12345", "invoice_date": "2020-09-30", "due_date": "2020-09-30", "terms": "Net 30 days", "po_number": "90000117", "reference": "INV-2024-001", "status": "draft", "invoice_sent": true, "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "balance": 27500, "deposit": 0, "customer_memo": "Thank you for your business and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}], "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "template_id": "123456", "source_document_url": "https://www.invoicesolution.com/invoice/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "ledger_account": null, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "invoices", "operation": "add", "data": {"id": "12345", "downstream_id": "12345"}} @@ -5221,7 +5284,7 @@ examples: x-apideck-service-id: "salesforce" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "invoices", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "display_id": "123456", "type": "service", "number": "OIT00546", "customer": null, "company_id": "12345", "department_id": "12345", "invoice_date": "2020-09-30", "due_date": "2020-09-30", "terms": "Net 30 days", "po_number": "90000117", "reference": "INV-2024-001", "status": "draft", "invoice_sent": true, "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "balance": 27500, "deposit": 0, "customer_memo": "Thank you for your business and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}], "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "template_id": "123456", "source_document_url": "https://www.invoicesolution.com/invoice/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} + application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "invoices", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "display_id": "123456", "type": "service", "number": "OIT00546", "customer": null, "company_id": "12345", "department_id": "12345", "invoice_date": "2020-09-30", "due_date": "2020-09-30", "terms": "Net 30 days", "po_number": "90000117", "reference": "INV-2024-001", "status": "draft", "invoice_sent": true, "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "balance": 27500, "deposit": 0, "customer_memo": "Thank you for your business and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}], "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "template_id": "123456", "source_document_url": "https://www.invoicesolution.com/invoice/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} "401": @@ -5273,7 +5336,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "123456", "type": "service", "number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "department_id": "12345", "invoice_date": "2020-09-30", "due_date": "2020-09-30", "terms": "Net 30 days", "po_number": "90000117", "reference": "INV-2024-001", "status": "draft", "invoice_sent": true, "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "balance": 27500, "deposit": 0, "customer_memo": "Thank you for your business and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}], "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "template_id": "123456", "source_document_url": "https://www.invoicesolution.com/invoice/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"display_id": "123456", "type": "service", "number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "department_id": "12345", "invoice_date": "2020-09-30", "due_date": "2020-09-30", "terms": "Net 30 days", "po_number": "90000117", "reference": "INV-2024-001", "status": "draft", "invoice_sent": true, "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "balance": 27500, "deposit": 0, "customer_memo": "Thank you for your business and have a great day!", "tracking_categories": [{"id": "123456", "name": "New York"}], "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "template_id": "123456", "source_document_url": "https://www.invoicesolution.com/invoice/123456", "payment_allocations": [{"id": "123456", "allocated_amount": 1000, "date": "2020-09-30T07:43:32.000Z"}], "payment_method": "cash", "channel": "email", "language": "EN", "accounting_by_row": false, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "invoices", "operation": "update", "data": {"id": "12345", "downstream_id": "12345"}} @@ -5641,7 +5704,7 @@ examples: query: raw: false limit: 20 - filter: {"name": "Widgets Large", "type": "service"} + filter: {"name": "Widgets Large", "type": "service", "transaction_type": "sale"} sort: {"by": "updated_at", "direction": "desc"} pass_through: {"search": "San Francisco"} fields: "id,updated_at" @@ -5750,7 +5813,7 @@ examples: query: raw: false fields: "id,updated_at" - filter: {"type": "service"} + filter: {"type": "service", "transaction_type": "purchase"} header: x-apideck-consumer-id: "test-consumer" x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" @@ -5968,7 +6031,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_amount": 49.99, "total_tax": 2500, "tax_code": "1234", "balance": 27500, "remaining_credit": 27500, "status": "authorised", "reference": "123456", "date_issued": "2021-05-01T12:00:00.000Z", "date_paid": "2021-05-01T12:00:00.000Z", "type": "accounts_receivable_credit", "account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this credit note", "terms": "Some terms about this credit note", "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_amount": 49.99, "total_tax": 2500, "tax_code": "1234", "balance": 27500, "remaining_credit": 27500, "status": "authorised", "reference": "123456", "date_issued": "2021-05-01T12:00:00.000Z", "date_paid": "2021-05-01T12:00:00.000Z", "type": "accounts_receivable_credit", "account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this credit note", "terms": "Some terms about this credit note", "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "credit-notes", "operation": "add", "data": {"id": "12345"}} @@ -6024,7 +6087,7 @@ examples: x-apideck-service-id: "salesforce" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "credit-notes", "operation": "one", "data": {"id": "123456", "number": "OIT00546", "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "company_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_amount": 49.99, "total_tax": 2500, "tax_code": "1234", "balance": 27500, "remaining_credit": 27500, "status": "authorised", "reference": "123456", "date_issued": "2021-05-01T12:00:00.000Z", "date_paid": "2021-05-01T12:00:00.000Z", "type": "accounts_receivable_credit", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "allocations": [{"id": "123456", "code": "N091", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this credit note", "terms": "Some terms about this credit note", "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} + application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "credit-notes", "operation": "one", "data": {"id": "123456", "number": "OIT00546", "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "company_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_amount": 49.99, "total_tax": 2500, "tax_code": "1234", "balance": 27500, "remaining_credit": 27500, "status": "authorised", "reference": "123456", "date_issued": "2021-05-01T12:00:00.000Z", "date_paid": "2021-05-01T12:00:00.000Z", "type": "accounts_receivable_credit", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "allocations": [{"id": "123456", "code": "N091", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this credit note", "terms": "Some terms about this credit note", "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} "401": @@ -6076,7 +6139,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_amount": 49.99, "total_tax": 2500, "tax_code": "1234", "balance": 27500, "remaining_credit": 27500, "status": "authorised", "reference": "123456", "date_issued": "2021-05-01T12:00:00.000Z", "date_paid": "2021-05-01T12:00:00.000Z", "type": "accounts_receivable_credit", "account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345"}], "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this credit note", "terms": "Some terms about this credit note", "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"number": "OIT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "company_id": "12345", "department_id": "12345", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_amount": 49.99, "total_tax": 2500, "tax_code": "1234", "balance": 27500, "remaining_credit": 27500, "status": "authorised", "reference": "123456", "date_issued": "2021-05-01T12:00:00.000Z", "date_paid": "2021-05-01T12:00:00.000Z", "type": "accounts_receivable_credit", "account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345"}], "allocations": [{"id": "123456", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this credit note", "terms": "Some terms about this credit note", "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "credit-notes", "operation": "update", "data": {"id": "12345"}} @@ -6235,7 +6298,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "project": false, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this customer", "tax_rate": {"id": "123456", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": null, "parent": {"id": "12345", "name": "Windsurf Shop"}, "status": "active", "payment_method": "cash", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "customer_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "project": false, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this customer", "tax_rate": {"id": "123456", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": null, "parent": {"id": "12345", "name": "Windsurf Shop"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "customers", "operation": "add", "data": {"id": "12345"}} @@ -6291,7 +6354,7 @@ examples: x-apideck-service-id: "salesforce" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "customers", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "project": false, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this customer", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "parent": {"id": "12345", "name": "Windsurf Shop"}, "status": "active", "payment_method": "cash", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} + application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "customers", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "customer_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "project": false, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this customer", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "parent": {"id": "12345", "name": "Windsurf Shop"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} "401": @@ -6343,7 +6406,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "project": false, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this customer", "tax_rate": {"id": "123456", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "parent": {"id": "12345", "name": "Windsurf Shop"}, "status": "active", "payment_method": "cash", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "customer_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "project": false, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this customer", "tax_rate": {"id": "123456", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "parent": {"id": "12345", "name": "Windsurf Shop"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "customers", "operation": "update", "data": {"id": "12345"}} @@ -7189,7 +7252,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"title": "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", "currency_rate": 0.69, "currency": "USD", "company_id": "12345", "line_items": [{"description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "tax_amount": 27500, "sub_total": 27500, "total_amount": 27500, "type": "debit", "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "department_id": "12345", "location_id": "12345", "line_number": 1}], "status": "draft", "memo": "Thank you for your business and have a great day!", "posted_at": "2020-09-30T07:43:32.000Z", "journal_symbol": "IND", "tax_type": "sales", "tax_code": "1234", "number": "OIT00546", "tracking_categories": [{"id": "123456", "name": "New York"}], "accounting_period": "01-24", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"title": "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", "currency_rate": 0.69, "currency": "USD", "company_id": "12345", "line_items": [{"description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "tax_amount": 27500, "sub_total": 27500, "total_amount": 27500, "type": "debit", "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "department_id": "12345", "location_id": "12345", "line_number": 1}], "status": "draft", "memo": "Thank you for your business and have a great day!", "posted_at": "2020-09-30T07:43:32.000Z", "journal_symbol": "IND", "tax_type": "sales", "tax_code": "1234", "number": "OIT00546", "tracking_categories": [{"id": "123456", "name": "New York"}], "accounting_period": "01-24", "tax_inclusive": true, "source_type": "manual", "source_id": "12345", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "journal-entries", "operation": "add", "data": {"id": "12345"}} @@ -7245,7 +7308,7 @@ examples: x-apideck-service-id: "salesforce" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "journal-entries", "operation": "one", "data": {"id": "12345", "title": "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", "currency_rate": 0.69, "currency": "USD", "company_id": "12345", "line_items": [{"id": "12345", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "tax_amount": 27500, "sub_total": 27500, "total_amount": 27500, "type": "debit", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "department_id": "12345", "location_id": "12345", "line_number": 1}], "status": "draft", "memo": "Thank you for your business and have a great day!", "posted_at": "2020-09-30T07:43:32.000Z", "journal_symbol": "IND", "tax_type": "sales", "tax_code": "1234", "number": "OIT00546", "tracking_categories": [{"id": "123456", "name": "New York"}], "accounting_period": "01-24", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} + application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "journal-entries", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "title": "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", "currency_rate": 0.69, "currency": "USD", "company_id": "12345", "line_items": [{"id": "12345", "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "tax_amount": 27500, "sub_total": 27500, "total_amount": 27500, "type": "debit", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "department_id": "12345", "location_id": "12345", "line_number": 1}], "status": "draft", "memo": "Thank you for your business and have a great day!", "posted_at": "2020-09-30T07:43:32.000Z", "journal_symbol": "IND", "tax_type": "sales", "tax_code": "1234", "number": "OIT00546", "tracking_categories": [{"id": "123456", "name": "New York"}], "accounting_period": "01-24", "tax_inclusive": true, "source_type": "manual", "source_id": "12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} "401": @@ -7297,7 +7360,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"title": "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", "currency_rate": 0.69, "currency": "USD", "company_id": "12345", "line_items": [{"description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "tax_amount": 27500, "sub_total": 27500, "total_amount": 27500, "type": "debit", "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "department_id": "12345", "location_id": "12345", "line_number": 1}], "status": "draft", "memo": "Thank you for your business and have a great day!", "posted_at": "2020-09-30T07:43:32.000Z", "journal_symbol": "IND", "tax_type": "sales", "tax_code": "1234", "number": "OIT00546", "tracking_categories": [{"id": "123456", "name": "New York"}], "accounting_period": "01-24", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"title": "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", "currency_rate": 0.69, "currency": "USD", "company_id": "12345", "line_items": [{"description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "tax_amount": 27500, "sub_total": 27500, "total_amount": 27500, "type": "debit", "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "department_id": "12345", "location_id": "12345", "line_number": 1}], "status": "draft", "memo": "Thank you for your business and have a great day!", "posted_at": "2020-09-30T07:43:32.000Z", "journal_symbol": "IND", "tax_type": "sales", "tax_code": "1234", "number": "OIT00546", "tracking_categories": [{"id": "123456", "name": "New York"}], "accounting_period": "01-24", "tax_inclusive": true, "source_type": "manual", "source_id": "12345", "row_version": "1-12345", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "journal-entries", "operation": "update", "data": {"id": "12345"}} @@ -7454,7 +7517,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"po_number": "90000117", "reference": "123456", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "subsidiary_id": "12345", "company_id": "12345", "department_id": "12345", "status": "open", "issued_date": "2020-09-30", "delivery_date": "2020-09-30", "expected_arrival_date": "2020-09-30", "currency": "USD", "currency_rate": 0.69, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_inclusive": true, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "template_id": "123456", "discount_percentage": 5.5, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "accounting_by_row": false, "due_date": "2020-10-30", "payment_method": "cash", "terms": "Net 30 days", "tax_code": "1234", "tax_method": "Due to supplier", "issued_method": "Email", "issued_email": "john.doe@example.com", "channel": "email", "memo": "Thank you for the partnership and have a great day!", "notes": "This is a test purchase order", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"po_number": "90000117", "reference": "123456", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "subsidiary_id": "12345", "company_id": "12345", "department_id": "12345", "status": "open", "issued_date": "2020-09-30", "delivery_date": "2020-09-30", "expected_arrival_date": "2020-09-30", "currency": "USD", "currency_rate": 0.69, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_inclusive": true, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "template_id": "123456", "discount_percentage": 5.5, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "accounting_by_row": false, "due_date": "2020-10-30", "payment_method": "cash", "terms": "Net 30 days", "tax_code": "1234", "tax_method": "Due to supplier", "issued_method": "Email", "issued_email": "john.doe@example.com", "channel": "email", "memo": "Thank you for the partnership and have a great day!", "notes": "This is a test purchase order", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "PurchaseOrders", "operation": "add", "data": {"id": "12345"}} @@ -7508,7 +7571,7 @@ examples: x-apideck-service-id: "salesforce" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "PurchaseOrders", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "po_number": "90000117", "reference": "123456", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "subsidiary_id": "12345", "company_id": "12345", "department_id": "12345", "status": "open", "issued_date": "2020-09-30", "delivery_date": "2020-09-30", "expected_arrival_date": "2020-09-30", "currency": "USD", "currency_rate": 0.69, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_inclusive": true, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "template_id": "123456", "discount_percentage": 5.5, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "accounting_by_row": false, "due_date": "2020-10-30", "payment_method": "cash", "terms": "Net 30 days", "tax_code": "1234", "tax_method": "Due to supplier", "issued_method": "Email", "issued_email": "john.doe@example.com", "channel": "email", "memo": "Thank you for the partnership and have a great day!", "notes": "This is a test purchase order", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} + application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "PurchaseOrders", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "po_number": "90000117", "reference": "123456", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "subsidiary_id": "12345", "company_id": "12345", "department_id": "12345", "status": "open", "issued_date": "2020-09-30", "delivery_date": "2020-09-30", "expected_arrival_date": "2020-09-30", "currency": "USD", "currency_rate": 0.69, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_inclusive": true, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "template_id": "123456", "discount_percentage": 5.5, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "accounting_by_row": false, "due_date": "2020-10-30", "payment_method": "cash", "terms": "Net 30 days", "tax_code": "1234", "tax_method": "Due to supplier", "issued_method": "Email", "issued_email": "john.doe@example.com", "channel": "email", "memo": "Thank you for the partnership and have a great day!", "notes": "This is a test purchase order", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} "401": @@ -7560,7 +7623,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"po_number": "90000117", "reference": "123456", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "subsidiary_id": "12345", "company_id": "12345", "department_id": "12345", "status": "open", "issued_date": "2020-09-30", "delivery_date": "2020-09-30", "expected_arrival_date": "2020-09-30", "currency": "USD", "currency_rate": 0.69, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_inclusive": true, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": null, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "template_id": "123456", "discount_percentage": 5.5, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "accounting_by_row": false, "due_date": "2020-10-30", "payment_method": "cash", "terms": "Net 30 days", "tax_code": "1234", "tax_method": "Due to supplier", "issued_method": "Email", "issued_email": "john.doe@example.com", "channel": "email", "memo": "Thank you for the partnership and have a great day!", "notes": "This is a test purchase order", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"po_number": "90000117", "reference": "123456", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "subsidiary_id": "12345", "company_id": "12345", "department_id": "12345", "status": "open", "issued_date": "2020-09-30", "delivery_date": "2020-09-30", "expected_arrival_date": "2020-09-30", "currency": "USD", "currency_rate": 0.69, "sub_total": 27500, "total_tax": 2500, "total": 27500, "tax_inclusive": true, "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York"}], "ledger_account": null, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "template_id": "123456", "discount_percentage": 5.5, "bank_account": {"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD", "country": "US"}, "accounting_by_row": false, "due_date": "2020-10-30", "payment_method": "cash", "terms": "Net 30 days", "tax_code": "1234", "tax_method": "Due to supplier", "issued_method": "Email", "issued_email": "john.doe@example.com", "channel": "email", "memo": "Thank you for the partnership and have a great day!", "notes": "This is a test purchase order", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "PurchaseOrders", "operation": "update", "data": {"id": "12345"}} @@ -9079,7 +9142,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "transaction_date": "2021-05-01T12:00:00.000Z", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_payable", "allocations": [{"id": "12345", "type": "bill", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "transaction_date": "2021-05-01T12:00:00.000Z", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_payable", "allocations": [{"id": "12345", "type": "bill", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "add", "data": {"id": "12345"}} @@ -9135,7 +9198,7 @@ examples: x-apideck-service-id: "salesforce" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "transaction_date": "2021-05-01T12:00:00.000Z", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_payable", "allocations": [{"id": "12345", "type": "bill", "code": "N091", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} + application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "transaction_date": "2021-05-01T12:00:00.000Z", "supplier": {"id": "12345", "display_id": "SUPP00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_payable", "allocations": [{"id": "12345", "type": "bill", "code": "N091", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "display_id": "123456", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} "401": @@ -9187,7 +9250,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "transaction_date": "2021-05-01T12:00:00.000Z", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_payable", "allocations": [{"id": "12345", "type": "bill", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"currency": "USD", "currency_rate": 0.69, "total_amount": 49.99, "reference": "123456", "payment_method": "cash", "payment_method_reference": "123456", "payment_method_id": "12345", "account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "transaction_date": "2021-05-01T12:00:00.000Z", "supplier": {"id": "12345", "display_name": "Windsurf Shop", "address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}}, "company_id": "12345", "reconciled": true, "status": "authorised", "type": "accounts_payable", "allocations": [{"id": "12345", "type": "bill", "amount": 49.99, "allocation_id": "123456"}], "note": "Some notes about this transaction", "number": "123456", "tracking_categories": [{"id": "123456", "name": "New York"}], "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "display_id": "123456", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "update", "data": {"id": "12345"}} @@ -12725,7 +12788,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"activity_datetime": "2021-05-01T12:00:00.000Z", "duration_seconds": 1800, "user_id": "12345", "account_id": "12345", "contact_id": "12345", "company_id": "12345", "opportunity_id": "12345", "lead_id": "12345", "owner_id": "12345", "campaign_id": "12345", "case_id": "12345", "asset_id": "12345", "contract_id": "12345", "product_id": "12345", "solution_id": "12345", "custom_object_id": "12345", "type": "meeting", "title": "Meeting", "description": "More info about the meeting", "note": "An internal note about the meeting", "location": "Space", "location_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "all_day_event": false, "private": true, "group_event": true, "event_sub_type": "debrief", "group_event_type": "Proposed", "child": false, "archived": false, "deleted": false, "show_as": "busy", "done": false, "start_datetime": "2021-05-01T12:00:00.000Z", "end_datetime": "2021-05-01T12:30:00.000Z", "activity_date": "2021-05-01", "end_date": "2021-05-01", "recurrent": false, "reminder_datetime": "2021-05-01T17:00:00.000Z", "reminder_set": false, "video_conference_url": "https://us02web.zoom.us/j/88120759396", "video_conference_id": "zoom:88120759396", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "attendees": [{"name": "Elon Musk", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "prefix": "Mr.", "suffix": "PhD", "email_address": "elon@musk.com", "is_organizer": true, "status": "accepted"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"activity_datetime": "2021-05-01T12:00:00.000Z", "duration_seconds": 1800, "user_id": "12345", "account_id": "12345", "contact_id": "12345", "company_id": "12345", "opportunity_id": "12345", "lead_id": "12345", "owner_id": "12345", "campaign_id": "12345", "case_id": "12345", "asset_id": "12345", "contract_id": "12345", "product_id": "12345", "solution_id": "12345", "custom_object_id": "12345", "type": "meeting", "title": "Meeting", "description": "More info about the meeting", "note": "An internal note about the meeting", "location": "Space", "location_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "all_day_event": false, "private": true, "group_event": true, "event_sub_type": "debrief", "group_event_type": "Proposed", "child": false, "archived": false, "deleted": false, "show_as": "busy", "done": false, "start_datetime": "2021-05-01T12:00:00.000Z", "end_datetime": "2021-05-01T12:30:00.000Z", "activity_date": "2021-05-01", "end_date": "2021-05-01", "recurrent": false, "reminder_datetime": "2021-05-01T17:00:00.000Z", "reminder_set": false, "video_conference_url": "https://us02web.zoom.us/j/88120759396", "video_conference_id": "zoom:88120759396", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "attendees": [{"name": "Elon Musk", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "prefix": "Mr.", "suffix": "PhD", "email_address": "elon@musk.com", "is_organizer": true, "status": "accepted"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "activities", "operation": "add", "data": {"id": "12345"}} @@ -12781,7 +12844,7 @@ examples: x-apideck-service-id: "salesforce" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "activities", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "activity_datetime": "2021-05-01T12:00:00.000Z", "duration_seconds": 1800, "user_id": "12345", "account_id": "12345", "contact_id": "12345", "company_id": "12345", "opportunity_id": "12345", "lead_id": "12345", "owner_id": "12345", "campaign_id": "12345", "case_id": "12345", "asset_id": "12345", "contract_id": "12345", "product_id": "12345", "solution_id": "12345", "custom_object_id": "12345", "type": "meeting", "title": "Meeting", "description": "More info about the meeting", "note": "An internal note about the meeting", "location": "Space", "location_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "all_day_event": false, "private": true, "group_event": true, "event_sub_type": "debrief", "group_event_type": "Proposed", "child": false, "archived": false, "deleted": false, "show_as": "busy", "done": false, "start_datetime": "2021-05-01T12:00:00.000Z", "end_datetime": "2021-05-01T12:30:00.000Z", "duration_minutes": 30, "activity_date": "2021-05-01", "end_date": "2021-05-01", "recurrent": false, "reminder_datetime": "2021-05-01T17:00:00.000Z", "reminder_set": false, "video_conference_url": "https://us02web.zoom.us/j/88120759396", "video_conference_id": "zoom:88120759396", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "attendees": [{"id": "12345", "name": "Elon Musk", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "prefix": "Mr.", "suffix": "PhD", "email_address": "elon@musk.com", "is_organizer": true, "status": "accepted", "user_id": "12345", "contact_id": "12345", "updated_at": "2017-08-12T20:43:21.291Z", "created_at": "2017-08-12T20:43:21.291Z"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} + application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "activities", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "activity_datetime": "2021-05-01T12:00:00.000Z", "duration_seconds": 1800, "user_id": "12345", "account_id": "12345", "contact_id": "12345", "company_id": "12345", "opportunity_id": "12345", "lead_id": "12345", "owner_id": "12345", "campaign_id": "12345", "case_id": "12345", "asset_id": "12345", "contract_id": "12345", "product_id": "12345", "solution_id": "12345", "custom_object_id": "12345", "type": "meeting", "title": "Meeting", "description": "More info about the meeting", "note": "An internal note about the meeting", "location": "Space", "location_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "all_day_event": false, "private": true, "group_event": true, "event_sub_type": "debrief", "group_event_type": "Proposed", "child": false, "archived": false, "deleted": false, "show_as": "busy", "done": false, "start_datetime": "2021-05-01T12:00:00.000Z", "end_datetime": "2021-05-01T12:30:00.000Z", "duration_minutes": 30, "activity_date": "2021-05-01", "end_date": "2021-05-01", "recurrent": false, "reminder_datetime": "2021-05-01T17:00:00.000Z", "reminder_set": false, "video_conference_url": "https://us02web.zoom.us/j/88120759396", "video_conference_id": "zoom:88120759396", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "attendees": [{"id": "12345", "name": "Elon Musk", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "prefix": "Mr.", "suffix": "PhD", "email_address": "elon@musk.com", "is_organizer": true, "status": "accepted", "user_id": "12345", "contact_id": "12345", "updated_at": "2017-08-12T20:43:21.291Z", "created_at": "2017-08-12T20:43:21.291Z"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} "401": @@ -12833,7 +12896,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"activity_datetime": "2021-05-01T12:00:00.000Z", "duration_seconds": 1800, "user_id": "12345", "account_id": "12345", "contact_id": "12345", "company_id": "12345", "opportunity_id": "12345", "lead_id": "12345", "owner_id": "12345", "campaign_id": "12345", "case_id": "12345", "asset_id": "12345", "contract_id": "12345", "product_id": "12345", "solution_id": "12345", "custom_object_id": "12345", "type": "meeting", "title": "Meeting", "description": "More info about the meeting", "note": "An internal note about the meeting", "location": "Space", "location_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "all_day_event": false, "private": true, "group_event": true, "event_sub_type": "debrief", "group_event_type": "Proposed", "child": false, "archived": false, "deleted": false, "show_as": "busy", "done": false, "start_datetime": "2021-05-01T12:00:00.000Z", "end_datetime": "2021-05-01T12:30:00.000Z", "activity_date": "2021-05-01", "end_date": "2021-05-01", "recurrent": false, "reminder_datetime": "2021-05-01T17:00:00.000Z", "reminder_set": false, "video_conference_url": "https://us02web.zoom.us/j/88120759396", "video_conference_id": "zoom:88120759396", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "attendees": [{"name": "Elon Musk", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "prefix": "Mr.", "suffix": "PhD", "email_address": "elon@musk.com", "is_organizer": true, "status": "accepted"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"activity_datetime": "2021-05-01T12:00:00.000Z", "duration_seconds": 1800, "user_id": "12345", "account_id": "12345", "contact_id": "12345", "company_id": "12345", "opportunity_id": "12345", "lead_id": "12345", "owner_id": "12345", "campaign_id": "12345", "case_id": "12345", "asset_id": "12345", "contract_id": "12345", "product_id": "12345", "solution_id": "12345", "custom_object_id": "12345", "type": "meeting", "title": "Meeting", "description": "More info about the meeting", "note": "An internal note about the meeting", "location": "Space", "location_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "all_day_event": false, "private": true, "group_event": true, "event_sub_type": "debrief", "group_event_type": "Proposed", "child": false, "archived": false, "deleted": false, "show_as": "busy", "done": false, "start_datetime": "2021-05-01T12:00:00.000Z", "end_datetime": "2021-05-01T12:30:00.000Z", "activity_date": "2021-05-01", "end_date": "2021-05-01", "recurrent": false, "reminder_datetime": "2021-05-01T17:00:00.000Z", "reminder_set": false, "video_conference_url": "https://us02web.zoom.us/j/88120759396", "video_conference_id": "zoom:88120759396", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "attendees": [{"name": "Elon Musk", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "prefix": "Mr.", "suffix": "PhD", "email_address": "elon@musk.com", "is_organizer": true, "status": "accepted"}], "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "zoho-crm", "resource": "activities", "operation": "update", "data": {"id": "12345"}} @@ -19614,7 +19677,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"number": "QT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "sales_order_id": "123456", "company_id": "12345", "department_id": "12345", "project_id": "12345", "quote_date": "2020-09-30", "expiry_date": "2020-10-30", "terms": "Valid for 30 days", "reference": "INV-2024-001", "status": "draft", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "customer_memo": "Thank you for considering our services!", "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "category_id": "12345", "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "template_id": "123456", "source_document_url": "https://www.quotesolution.com/quote/123456", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"number": "QT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "sales_order_id": "123456", "company_id": "12345", "department_id": "12345", "project_id": "12345", "quote_date": "2020-09-30", "expiry_date": "2020-10-30", "terms": "Valid for 30 days", "reference": "INV-2024-001", "status": "draft", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "customer_memo": "Thank you for considering our services!", "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "category_id": "12345", "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "template_id": "123456", "source_document_url": "https://www.quotesolution.com/quote/123456", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "Quotes", "operation": "add", "data": {"id": "12345"}} @@ -19643,7 +19706,7 @@ examples: x-apideck-service-id: "salesforce" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "Quotes", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "number": "QT00546", "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "invoice_id": "123456", "sales_order_id": "123456", "company_id": "12345", "department_id": "12345", "project_id": "12345", "quote_date": "2020-09-30", "expiry_date": "2020-10-30", "terms": "Valid for 30 days", "reference": "INV-2024-001", "status": "draft", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "customer_memo": "Thank you for considering our services!", "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "category_id": "12345", "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "template_id": "123456", "source_document_url": "https://www.quotesolution.com/quote/123456", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} + application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "Quotes", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "number": "QT00546", "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "invoice_id": "123456", "sales_order_id": "123456", "company_id": "12345", "department_id": "12345", "project_id": "12345", "quote_date": "2020-09-30", "expiry_date": "2020-10-30", "terms": "Valid for 30 days", "reference": "INV-2024-001", "status": "draft", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "customer_memo": "Thank you for considering our services!", "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "category_id": "12345", "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "ledger_account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "template_id": "123456", "source_document_url": "https://www.quotesolution.com/quote/123456", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} "401": @@ -19668,7 +19731,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"number": "QT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "sales_order_id": "123456", "company_id": "12345", "department_id": "12345", "project_id": "12345", "quote_date": "2020-09-30", "expiry_date": "2020-10-30", "terms": "Valid for 30 days", "reference": "INV-2024-001", "status": "draft", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "customer_memo": "Thank you for considering our services!", "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "category_id": "12345", "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "template_id": "123456", "source_document_url": "https://www.quotesolution.com/quote/123456", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"number": "QT00546", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "sales_order_id": "123456", "company_id": "12345", "department_id": "12345", "project_id": "12345", "quote_date": "2020-09-30", "expiry_date": "2020-10-30", "terms": "Valid for 30 days", "reference": "INV-2024-001", "status": "draft", "currency": "USD", "currency_rate": 0.69, "tax_inclusive": true, "sub_total": 27500, "total_tax": 2500, "tax_code": "1234", "discount_percentage": 5.5, "discount_amount": 25, "total": 27500, "customer_memo": "Thank you for considering our services!", "line_items": [{"id": "12345", "row_id": "12345", "code": "120-C", "line_number": 1, "description": "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.", "type": "sales_item", "tax_amount": 27500, "total_amount": 27500, "quantity": 1, "unit_price": 27500.5, "unit_of_measure": "pc.", "discount_percentage": 0.01, "discount_amount": 19.99, "category_id": "12345", "location_id": "12345", "department_id": "12345", "item": {"id": "12344", "code": "120-C", "name": "Model Y"}, "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": null, "ledger_account": {"id": "123456", "nominal_code": "N091", "code": "453"}, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"}], "billing_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "shipping_address": {"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}, "tracking_categories": [{"id": "123456", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "template_id": "123456", "source_document_url": "https://www.quotesolution.com/quote/123456", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "Quotes", "operation": "update", "data": {"id": "12345"}} @@ -19896,6 +19959,141 @@ examples: application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} default: application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} + accounting.projectsAll: + speakeasy-default-accounting-projects-all: + parameters: + query: + raw: false + limit: 20 + filter: {"name": "Website Redesign", "status": "active", "customer_id": "12345", "updated_since": "2020-09-30T07:43:32.000Z"} + sort: {"by": "name", "direction": "asc"} + pass_through: {"search": "San Francisco"} + fields: "id,updated_at" + header: + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" + x-apideck-service-id: "salesforce" + responses: + "200": + application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "Projects", "operation": "all", "data": [], "meta": {"items_on_page": 50, "cursors": {"previous": "em9oby1jcm06OnBhZ2U6OjE=", "current": "em9oby1jcm06OnBhZ2U6OjI=", "next": "em9oby1jcm06OnBhZ2U6OjM="}}, "links": {"previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", "current": "https://unify.apideck.com/crm/companies", "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"}} + "400": + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} + "401": + application/json: {"status_code": 401, "error": "Unauthorized", "type_name": "UnauthorizedError", "message": "Unauthorized Request", "detail": "Missing authentication", "ref": "https://developers.apideck.com/errors#unauthorizederror"} + "402": + application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} + "404": + application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} + "422": + application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} + default: + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} + accounting.projectsAdd: + speakeasy-default-accounting-projects-add: + parameters: + query: + raw: false + header: + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" + x-apideck-service-id: "salesforce" + requestBody: + application/json: {"name": "Website Redesign Project", "display_id": "PROJ-001", "reference_id": "WD-REF-2024-001", "description": "Complete redesign of the company website including new branding and improved user experience", "status": "active", "active": true, "project_type": "client_project", "priority": "high", "completion_percentage": 75.5, "start_date": "2024-01-15", "end_date": "2024-06-30", "customer": {"id": "12345", "display_name": "Windsurf Shop", "email": "boring@boring.com"}, "department": {"id": "DEPT-001", "name": "Marketing"}, "company_id": "12345", "owner_id": "12345", "parent_project": {"id": "PROJ-PARENT-001", "name": "Company Website Overhaul"}, "currency": "USD", "budget_amount": 50000, "approved_amount": 48000, "budget_hours": 400, "hourly_rate": 125, "billing_method": "time_and_materials", "is_billable": true, "phase": "execution", "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "tags": ["website", "redesign", "urgent"], "notes": "Client has requested modern design with mobile-first approach", "contract_number": "CNT-2024-001", "profit_margin": 15.5, "schedule_status": "on_schedule", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "team_size": 8, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"} + responses: + "201": + application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "Projects", "operation": "add", "data": {"id": "12345"}} + "400": + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} + "401": + application/json: {"status_code": 401, "error": "Unauthorized", "type_name": "UnauthorizedError", "message": "Unauthorized Request", "detail": "Missing authentication", "ref": "https://developers.apideck.com/errors#unauthorizederror"} + "402": + application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} + "404": + application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} + "422": + application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} + default: + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} + accounting.projectsOne: + speakeasy-default-accounting-projects-one: + parameters: + path: + id: "" + query: + raw: false + header: + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" + x-apideck-service-id: "salesforce" + responses: + "200": + application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "Projects", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "name": "Website Redesign Project", "display_id": "PROJ-001", "reference_id": "WD-REF-2024-001", "description": "Complete redesign of the company website including new branding and improved user experience", "status": "active", "active": true, "project_type": "client_project", "priority": "high", "completion_percentage": 75.5, "start_date": "2024-01-15", "end_date": "2024-06-30", "customer": {"id": "12345", "display_id": "CUST00101", "display_name": "Windsurf Shop", "company_name": "The boring company", "email": "boring@boring.com"}, "department": {"id": "DEPT-001", "name": "Marketing"}, "company_id": "12345", "owner_id": "12345", "parent_project": {"id": "PROJ-PARENT-001", "name": "Company Website Overhaul"}, "currency": "USD", "budget_amount": 50000, "approved_amount": 48000, "actual_amount": 45250.75, "budget_hours": 400, "actual_hours": 385.5, "hourly_rate": 125, "billing_method": "time_and_materials", "is_billable": true, "phase": "execution", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "tags": ["website", "redesign", "urgent"], "notes": "Client has requested modern design with mobile-first approach", "contract_number": "CNT-2024-001", "profit_margin": 15.5, "schedule_status": "on_schedule", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "team_size": 8, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "updated_by": "12345", "created_by": "12345", "created_at": "2020-09-30T07:43:32.000Z", "updated_at": "2020-09-30T07:43:32.000Z"}} + "400": + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} + "401": + application/json: {"status_code": 401, "error": "Unauthorized", "type_name": "UnauthorizedError", "message": "Unauthorized Request", "detail": "Missing authentication", "ref": "https://developers.apideck.com/errors#unauthorizederror"} + "402": + application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} + "404": + application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} + "422": + application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} + default: + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} + accounting.projectsUpdate: + speakeasy-default-accounting-projects-update: + parameters: + path: + id: "" + query: + raw: false + header: + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" + x-apideck-service-id: "salesforce" + requestBody: + application/json: {"name": "Website Redesign Project", "display_id": "PROJ-001", "reference_id": "WD-REF-2024-001", "description": "Complete redesign of the company website including new branding and improved user experience", "status": "active", "active": true, "project_type": "client_project", "priority": "high", "completion_percentage": 75.5, "start_date": "2024-01-15", "end_date": "2024-06-30", "customer": null, "department": {"id": "DEPT-001", "name": "Marketing"}, "company_id": "12345", "owner_id": "12345", "parent_project": {"id": "PROJ-PARENT-001", "name": "Company Website Overhaul"}, "currency": "USD", "budget_amount": 50000, "approved_amount": 48000, "budget_hours": 400, "hourly_rate": 125, "billing_method": "time_and_materials", "is_billable": true, "phase": "execution", "tax_rate": {"id": "123456", "rate": 10}, "tracking_categories": [{"id": "123456", "name": "New York", "parent_id": "123456", "parent_name": "New York"}], "tags": ["website", "redesign", "urgent"], "notes": "Client has requested modern design with mobile-first approach", "contract_number": "CNT-2024-001", "profit_margin": 15.5, "schedule_status": "on_schedule", "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "team_size": 8, "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345"} + responses: + "200": + application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "Projects", "operation": "update", "data": {"id": "12345"}} + "400": + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} + "401": + application/json: {"status_code": 401, "error": "Unauthorized", "type_name": "UnauthorizedError", "message": "Unauthorized Request", "detail": "Missing authentication", "ref": "https://developers.apideck.com/errors#unauthorizederror"} + "402": + application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} + "404": + application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} + "422": + application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} + default: + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} + accounting.projectsDelete: + speakeasy-default-accounting-projects-delete: + parameters: + path: + id: "" + query: + raw: false + header: + x-apideck-consumer-id: "test-consumer" + x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" + x-apideck-service-id: "salesforce" + responses: + "200": + application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "Projects", "operation": "delete", "data": {"id": "12345"}} + "400": + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} + "401": + application/json: {"status_code": 401, "error": "Unauthorized", "type_name": "UnauthorizedError", "message": "Unauthorized Request", "detail": "Missing authentication", "ref": "https://developers.apideck.com/errors#unauthorizederror"} + "402": + application/json: {"status_code": 402, "error": "Payment Required", "type_name": "RequestLimitError", "message": "Request Limit Reached", "detail": "You have reached your limit of 2000", "ref": "https://developers.apideck.com/errors#requestlimiterror"} + "404": + application/json: {"status_code": 404, "error": "Not Found", "type_name": "EntityNotFoundError", "message": "Unknown Widget", "detail": "Could not find widget with id: '123'", "ref": "https://developers.apideck.com/errors#entitynotfounderror"} + "422": + application/json: {"status_code": 422, "error": "Unprocessable Entity", "type_name": "InvalidStateError", "message": "Invalid State", "detail": "Unprocessable request, please verify your request headers and body.", "ref": "https://developers.apideck.com/errors#invalidstateerror"} + default: + application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestHeadersValidationError", "message": "Invalid Params", "detail": "Missing Header: x-apideck-consumer-id", "ref": "https://developers.apideck.com/errors#unauthorizederror"} examplesVersion: 1.0.2 generatedTests: accounting.taxRatesAll: "2025-04-22T11:14:40+01:00" @@ -20194,4 +20392,9 @@ generatedTests: accounting.bankAccountsOne: "2025-09-23T00:03:43Z" accounting.bankAccountsUpdate: "2025-09-23T00:03:43Z" accounting.bankAccountsDelete: "2025-09-23T00:03:43Z" -releaseNotes: "## Typescript SDK Changes Detected:\n* `apideck.accounting.bankAccounts.list()`: **Added**\n* `apideck.accounting.bankAccounts.create()`: **Added**\n* `apideck.accounting.bankAccounts.get()`: **Added**\n* `apideck.accounting.bankAccounts.update()`: **Added**\n* `apideck.accounting.bankAccounts.delete()`: **Added**\n* `apideck.vault.logs.list()`: \n * `request.filter` **Changed**\n" + accounting.projectsAll: "2025-10-13T00:03:48Z" + accounting.projectsAdd: "2025-10-13T00:03:48Z" + accounting.projectsOne: "2025-10-13T00:03:48Z" + accounting.projectsUpdate: "2025-10-13T00:03:48Z" + accounting.projectsDelete: "2025-10-13T00:03:48Z" +releaseNotes: "## Typescript SDK Changes Detected:\n* `apideck.accounting.projects.list()`: **Added**\n* `apideck.accounting.projects.create()`: **Added**\n* `apideck.accounting.projects.get()`: **Added**\n* `apideck.accounting.projects.update()`: **Added**\n* `apideck.accounting.projects.delete()`: **Added**\n* `apideck.accounting.bills.list()`: `response.data.[].supplier.address.line5` **Added**\n* `apideck.accounting.bills.create()`: \n * `request.bill.supplier.address.line5` **Added**\n* `apideck.accounting.bills.get()`: `response.data.supplier.address.line5` **Added**\n* `apideck.accounting.bills.update()`: \n * `request.bill.supplier.address.line5` **Added**\n* `apideck.accounting.invoices.list()`: \n * `request.filter` **Changed**\n * `response.data.[]` **Changed**\n* `apideck.accounting.invoices.create()`: \n * `request.invoice` **Changed**\n* `apideck.accounting.invoices.get()`: `response.data` **Changed**\n* `apideck.accounting.invoices.update()`: \n * `request.invoice` **Changed**\n* `apideck.accounting.invoiceItems.list()`: \n * `request.filter` **Changed**\n* `apideck.accounting.invoiceItems.get()`: \n * `request.filter` **Changed**\n* `apideck.accounting.creditNotes.list()`: `response.data.[]` **Changed**\n* `apideck.accounting.creditNotes.create()`: \n * `request.creditNote` **Changed**\n* `apideck.accounting.creditNotes.get()`: `response.data` **Changed**\n* `apideck.accounting.creditNotes.update()`: \n * `request.creditNote` **Changed**\n* `apideck.accounting.customers.list()`: `response.data.[]` **Changed**\n* `apideck.accounting.customers.create()`: \n * `request.customer` **Changed**\n* `apideck.accounting.customers.get()`: `response.data` **Changed**\n* `apideck.accounting.customers.update()`: \n * `request.customer` **Changed**\n* `apideck.accounting.suppliers.list()`: `response.data.[].addresses.[].line5` **Added**\n* `apideck.accounting.suppliers.create()`: \n * `request.supplier.addresses.[].line5` **Added**\n* `apideck.accounting.suppliers.get()`: `response.data.addresses.[].line5` **Added**\n* `apideck.accounting.suppliers.update()`: \n * `request.supplier.addresses.[].line5` **Added**\n* `apideck.accounting.payments.list()`: `response.data.[].supplier.address.line5` **Added**\n* `apideck.accounting.payments.create()`: \n * `request.payment.supplier.address.line5` **Added**\n* `apideck.accounting.payments.get()`: `response.data.supplier.address.line5` **Added**\n* `apideck.accounting.payments.update()`: \n * `request.payment.supplier.address.line5` **Added**\n* `apideck.accounting.companyInfo.get()`: `response.data.addresses.[].line5` **Added**\n* `apideck.accounting.journalEntries.list()`: `response.data.[]` **Changed**\n* `apideck.accounting.journalEntries.create()`: \n * `request.journalEntry` **Changed**\n* `apideck.accounting.journalEntries.get()`: `response.data` **Changed**\n* `apideck.accounting.journalEntries.update()`: \n * `request.journalEntry` **Changed**\n* `apideck.accounting.purchaseOrders.list()`: `response.data.[]` **Changed**\n* `apideck.accounting.purchaseOrders.create()`: \n * `request.purchaseOrder` **Changed**\n* `apideck.accounting.purchaseOrders.get()`: `response.data` **Changed**\n* `apideck.accounting.purchaseOrders.update()`: \n * `request.purchaseOrder` **Changed**\n* `apideck.accounting.locations.list()`: `response.data.[].addresses.[].line5` **Added**\n* `apideck.accounting.locations.create()`: \n * `request.accountingLocation.addresses.[].line5` **Added**\n* `apideck.accounting.locations.get()`: `response.data.addresses.[].line5` **Added**\n* `apideck.accounting.locations.update()`: \n * `request.accountingLocation.addresses.[].line5` **Added**\n* `apideck.accounting.billPayments.list()`: `response.data.[].supplier.address.line5` **Added**\n* `apideck.accounting.billPayments.create()`: \n * `request.billPayment.supplier.address.line5` **Added**\n* `apideck.accounting.billPayments.get()`: `response.data.supplier.address.line5` **Added**\n* `apideck.accounting.billPayments.update()`: \n * `request.billPayment.supplier.address.line5` **Added**\n* `apideck.accounting.categories.list()`: \n * `request.filter` **Changed**\n* `apideck.accounting.categories.get()`: \n * `request.filter` **Changed**\n* `apideck.accounting.quotes.list()`: `response.data.[]` **Changed**\n* `apideck.accounting.quotes.create()`: \n * `request.quote` **Changed**\n* `apideck.accounting.quotes.get()`: `response.data` **Changed**\n* `apideck.accounting.quotes.update()`: \n * `request.quote` **Changed**\n* `apideck.ats.jobs.list()`: `response.data.[].addresses.[].line5` **Added**\n* `apideck.ats.jobs.get()`: `response.data.addresses.[].line5` **Added**\n* `apideck.ats.applicants.list()`: `response.data.[].addresses.[].line5` **Added**\n* `apideck.ats.applicants.create()`: \n * `request.applicant.addresses.[].line5` **Added**\n* `apideck.ats.applicants.get()`: `response.data.addresses.[].line5` **Added**\n* `apideck.ats.applicants.update()`: \n * `request.applicant.addresses.[].line5` **Added**\n* `apideck.crm.companies.list()`: `response.data.[].addresses.[].line5` **Added**\n* `apideck.crm.companies.create()`: \n * `request.company1.addresses.[].line5` **Added**\n* `apideck.crm.companies.get()`: `response.data.addresses.[].line5` **Added**\n* `apideck.crm.companies.update()`: \n * `request.company1.addresses.[].line5` **Added**\n* `apideck.crm.contacts.list()`: `response.data.[].addresses.[].line5` **Added**\n* `apideck.crm.contacts.create()`: \n * `request.contact.addresses.[].line5` **Added**\n* `apideck.crm.contacts.get()`: `response.data.addresses.[].line5` **Added**\n* `apideck.crm.contacts.update()`: \n * `request.contact.addresses.[].line5` **Added**\n* `apideck.crm.leads.list()`: `response.data.[].addresses.[].line5` **Added**\n* `apideck.crm.leads.create()`: \n * `request.lead.addresses.[].line5` **Added**\n* `apideck.crm.leads.get()`: `response.data.addresses.[].line5` **Added**\n* `apideck.crm.leads.update()`: \n * `request.lead.addresses.[].line5` **Added**\n* `apideck.crm.users.list()`: `response.data.[].addresses.[].line5` **Added**\n* `apideck.crm.users.create()`: \n * `request.user.addresses.[].line5` **Added**\n* `apideck.crm.users.get()`: `response.data.addresses.[].line5` **Added**\n* `apideck.crm.users.update()`: \n * `request.user.addresses.[].line5` **Added**\n* `apideck.crm.activities.list()`: `response.data.[].locationAddress.line5` **Added**\n* `apideck.crm.activities.create()`: \n * `request.activity.locationAddress.line5` **Added**\n* `apideck.crm.activities.get()`: `response.data.locationAddress.line5` **Added**\n* `apideck.crm.activities.update()`: \n * `request.activity.locationAddress.line5` **Added**\n* `apideck.hris.employees.list()`: `response.data.[].jobs.[].location.line5` **Added**\n* `apideck.hris.employees.create()`: \n * `request.employee.jobs.[].location.line5` **Added**\n* `apideck.hris.employees.get()`: `response.data.jobs.[].location.line5` **Added**\n* `apideck.hris.employees.update()`: \n * `request.employee.jobs.[].location.line5` **Added**\n* `apideck.hris.companies.list()`: `response.data.[].addresses.[].line5` **Added**\n* `apideck.hris.companies.create()`: \n * `request.hrisCompany.addresses.[].line5` **Added**\n* `apideck.hris.companies.get()`: `response.data.addresses.[].line5` **Added**\n* `apideck.hris.companies.update()`: \n * `request.hrisCompany.addresses.[].line5` **Added**\n* `apideck.hris.employeeSchedules.list()`: `response.data.employee.jobs.[].location.line5` **Added**\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index ac2e0732..42260f35 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -25,7 +25,8 @@ generation: generateNewTests: true skipResponseBodyAssertions: false typescript: - version: 0.29.9 + version: 0.30.0 + acceptHeaderEnum: true additionalDependencies: dependencies: {} devDependencies: {} diff --git a/.speakeasy/tests.arazzo.yaml b/.speakeasy/tests.arazzo.yaml index 7bdeed13..9ee69786 100644 --- a/.speakeasy/tests.arazzo.yaml +++ b/.speakeasy/tests.arazzo.yaml @@ -50966,6 +50966,7 @@ workflows: line2: 'apt #' line3: 'Suite #' line4: delivery instructions + line5: 'Attention: Finance Dept' longitude: "-73.984638" name: HQ US notes: Address notes or delivery instructions. @@ -51060,6 +51061,7 @@ workflows: line2: 'apt #' line3: 'Suite #' line4: delivery instructions + line5: 'Attention: Finance Dept' longitude: "-73.984638" name: HQ US notes: Address notes or delivery instructions. @@ -51233,6 +51235,7 @@ workflows: "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", + "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", @@ -51259,6 +51262,7 @@ workflows: "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", + "line5": "Attention: Finance Dept", "street_number": "25", "city": "San Francisco", "state": "CA", @@ -51355,6 +51359,7 @@ workflows: line2: 'apt #' line3: 'Suite #' line4: delivery instructions + line5: 'Attention: Finance Dept' longitude: "-73.984638" name: HQ US notes: Address notes or delivery instructions. @@ -51445,6 +51450,7 @@ workflows: line2: 'apt #' line3: 'Suite #' line4: delivery instructions + line5: 'Attention: Finance Dept' longitude: "-73.984638" name: HQ US notes: Address notes or delivery instructions. @@ -51980,3 +51986,488 @@ workflows: type: simple x-speakeasy-test-group: bankAccounts x-speakeasy-test-rebuild: true + - workflowId: accounting.projectsAll + steps: + - stepId: test + operationId: accounting.projectsAll + parameters: + - name: raw + in: query + value: false + - name: limit + in: query + value: 20 + - name: filter + in: query + value: + customer_id: "12345" + name: Website Redesign + status: active + updated_since: "2020-09-30T07:43:32.000Z" + - name: sort + in: query + value: + by: name + direction: asc + - name: pass_through + in: query + value: + search: San Francisco + - name: fields + in: query + value: id,updated_at + - name: x-apideck-consumer-id + in: header + value: test-consumer + - name: x-apideck-app-id + in: header + value: dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX + - name: x-apideck-service-id + in: header + value: salesforce + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + { + "status_code": 200, + "status": "OK", + "service": "quickbooks", + "resource": "Projects", + "operation": "all", + "data": [], + "meta": { + "items_on_page": 50, + "cursors": { + "previous": "em9oby1jcm06OnBhZ2U6OjE=", + "current": "em9oby1jcm06OnBhZ2U6OjI=", + "next": "em9oby1jcm06OnBhZ2U6OjM=" + } + }, + "links": { + "previous": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", + "current": "https://unify.apideck.com/crm/companies", + "next": "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM" + } + } + type: simple + x-speakeasy-test-group: projects + x-speakeasy-test-rebuild: true + - workflowId: accounting.projectsAdd + steps: + - stepId: test + operationId: accounting.projectsAdd + parameters: + - name: raw + in: query + value: false + - name: x-apideck-consumer-id + in: header + value: test-consumer + - name: x-apideck-app-id + in: header + value: dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX + - name: x-apideck-service-id + in: header + value: salesforce + requestBody: + contentType: application/json + payload: + active: true + addresses: + - city: San Francisco + contact_name: Elon Musk + country: US + county: Santa Clara + email: elon@musk.com + fax: 122-111-1111 + id: "123" + latitude: "40.759211" + line1: Main street + line2: 'apt #' + line3: 'Suite #' + line4: delivery instructions + line5: 'Attention: Finance Dept' + longitude: "-73.984638" + name: HQ US + notes: Address notes or delivery instructions. + phone_number: 111-111-1111 + postal_code: "94104" + row_version: 1-12345 + salutation: Mr + state: CA + street_number: "25" + string: 25 Spring Street, Blackburn, VIC 3130 + type: primary + website: https://elonmusk.com + approved_amount: 48000 + billing_method: time_and_materials + budget_amount: 50000 + budget_hours: 400 + company_id: "12345" + completion_percentage: 75.5 + contract_number: CNT-2024-001 + currency: USD + custom_fields: + - description: Employee Level + id: "2389328923893298" + name: employee_level + value: Uses Salesforce and Marketo + customer: + display_name: Windsurf Shop + email: boring@boring.com + id: "12345" + department: + id: DEPT-001 + name: Marketing + description: Complete redesign of the company website including new branding and improved user experience + display_id: PROJ-001 + end_date: "2024-06-30" + hourly_rate: 125 + is_billable: true + name: Website Redesign Project + notes: Client has requested modern design with mobile-first approach + owner_id: "12345" + parent_project: + id: PROJ-PARENT-001 + name: Company Website Overhaul + phase: execution + priority: high + profit_margin: 15.5 + project_type: client_project + reference_id: WD-REF-2024-001 + row_version: 1-12345 + schedule_status: on_schedule + start_date: "2024-01-15" + status: active + tags: + - website + - redesign + - urgent + tax_rate: + id: "123456" + rate: 10 + team_size: 8 + tracking_categories: + - id: "123456" + name: New York + parent_id: "123456" + parent_name: New York + successCriteria: + - condition: $statusCode == 201 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + { + "status_code": 200, + "status": "OK", + "service": "quickbooks", + "resource": "Projects", + "operation": "add", + "data": { + "id": "12345" + } + } + type: simple + x-speakeasy-test-group: projects + x-speakeasy-test-rebuild: true + - workflowId: accounting.projectsOne + steps: + - stepId: test + operationId: accounting.projectsOne + parameters: + - name: id + in: path + value: + - name: raw + in: query + value: false + - name: x-apideck-consumer-id + in: header + value: test-consumer + - name: x-apideck-app-id + in: header + value: dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX + - name: x-apideck-service-id + in: header + value: salesforce + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + { + "status_code": 200, + "status": "OK", + "service": "quickbooks", + "resource": "Projects", + "operation": "one", + "data": { + "id": "12345", + "downstream_id": "12345", + "name": "Website Redesign Project", + "display_id": "PROJ-001", + "reference_id": "WD-REF-2024-001", + "description": "Complete redesign of the company website including new branding and improved user experience", + "status": "active", + "active": true, + "project_type": "client_project", + "priority": "high", + "completion_percentage": 75.5, + "start_date": "2024-01-15", + "end_date": "2024-06-30", + "customer": { + "id": "12345", + "display_id": "CUST00101", + "display_name": "Windsurf Shop", + "company_name": "The boring company", + "email": "boring@boring.com" + }, + "department": { + "id": "DEPT-001", + "name": "Marketing" + }, + "company_id": "12345", + "owner_id": "12345", + "parent_project": { + "id": "PROJ-PARENT-001", + "name": "Company Website Overhaul" + }, + "currency": "USD", + "budget_amount": 50000, + "approved_amount": 48000, + "actual_amount": 45250.75, + "budget_hours": 400, + "actual_hours": 385.5, + "hourly_rate": 125, + "billing_method": "time_and_materials", + "is_billable": true, + "phase": "execution", + "tax_rate": { + "id": "123456", + "code": "N-T", + "name": "GST on Purchases", + "rate": 10 + }, + "tracking_categories": [ + { + "id": "123456", + "name": "New York", + "parent_id": "123456", + "parent_name": "New York" + } + ], + "tags": [ + "website", + "redesign", + "urgent" + ], + "notes": "Client has requested modern design with mobile-first approach", + "contract_number": "CNT-2024-001", + "profit_margin": 15.5, + "schedule_status": "on_schedule", + "addresses": [ + { + "id": "123", + "type": "primary", + "string": "25 Spring Street, Blackburn, VIC 3130", + "name": "HQ US", + "line1": "Main street", + "line2": "apt #", + "line3": "Suite #", + "line4": "delivery instructions", + "line5": "Attention: Finance Dept", + "street_number": "25", + "city": "San Francisco", + "state": "CA", + "postal_code": "94104", + "country": "US", + "latitude": "40.759211", + "longitude": "-73.984638", + "county": "Santa Clara", + "contact_name": "Elon Musk", + "salutation": "Mr", + "phone_number": "111-111-1111", + "fax": "122-111-1111", + "email": "elon@musk.com", + "website": "https://elonmusk.com", + "notes": "Address notes or delivery instructions.", + "row_version": "1-12345" + } + ], + "team_size": 8, + "custom_fields": [ + { + "id": "2389328923893298", + "name": "employee_level", + "description": "Employee Level", + "value": "Uses Salesforce and Marketo" + } + ], + "row_version": "1-12345", + "updated_by": "12345", + "created_by": "12345", + "created_at": "2020-09-30T07:43:32.000Z", + "updated_at": "2020-09-30T07:43:32.000Z" + } + } + type: simple + x-speakeasy-test-group: projects + x-speakeasy-test-rebuild: true + - workflowId: accounting.projectsUpdate + steps: + - stepId: test + operationId: accounting.projectsUpdate + parameters: + - name: id + in: path + value: + - name: raw + in: query + value: false + - name: x-apideck-consumer-id + in: header + value: test-consumer + - name: x-apideck-app-id + in: header + value: dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX + - name: x-apideck-service-id + in: header + value: salesforce + requestBody: + contentType: application/json + payload: + active: true + addresses: + - city: San Francisco + contact_name: Elon Musk + country: US + county: Santa Clara + email: elon@musk.com + fax: 122-111-1111 + id: "123" + latitude: "40.759211" + line1: Main street + line2: 'apt #' + line3: 'Suite #' + line4: delivery instructions + line5: 'Attention: Finance Dept' + longitude: "-73.984638" + name: HQ US + notes: Address notes or delivery instructions. + phone_number: 111-111-1111 + postal_code: "94104" + row_version: 1-12345 + salutation: Mr + state: CA + street_number: "25" + string: 25 Spring Street, Blackburn, VIC 3130 + type: primary + website: https://elonmusk.com + approved_amount: 48000 + billing_method: time_and_materials + budget_amount: 50000 + budget_hours: 400 + company_id: "12345" + completion_percentage: 75.5 + contract_number: CNT-2024-001 + currency: USD + custom_fields: + - description: Employee Level + id: "2389328923893298" + name: employee_level + value: Uses Salesforce and Marketo + customer: null + department: + id: DEPT-001 + name: Marketing + description: Complete redesign of the company website including new branding and improved user experience + display_id: PROJ-001 + end_date: "2024-06-30" + hourly_rate: 125 + is_billable: true + name: Website Redesign Project + notes: Client has requested modern design with mobile-first approach + owner_id: "12345" + parent_project: + id: PROJ-PARENT-001 + name: Company Website Overhaul + phase: execution + priority: high + profit_margin: 15.5 + project_type: client_project + reference_id: WD-REF-2024-001 + row_version: 1-12345 + schedule_status: on_schedule + start_date: "2024-01-15" + status: active + tags: + - website + - redesign + - urgent + tax_rate: + id: "123456" + rate: 10 + team_size: 8 + tracking_categories: + - id: "123456" + name: New York + parent_id: "123456" + parent_name: New York + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + { + "status_code": 200, + "status": "OK", + "service": "quickbooks", + "resource": "Projects", + "operation": "update", + "data": { + "id": "12345" + } + } + type: simple + x-speakeasy-test-group: projects + x-speakeasy-test-rebuild: true + - workflowId: accounting.projectsDelete + steps: + - stepId: test + operationId: accounting.projectsDelete + parameters: + - name: id + in: path + value: + - name: raw + in: query + value: false + - name: x-apideck-consumer-id + in: header + value: test-consumer + - name: x-apideck-app-id + in: header + value: dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX + - name: x-apideck-service-id + in: header + value: salesforce + successCriteria: + - condition: $statusCode == 200 + - condition: $response.header.Content-Type == application/json + - context: $response.body + condition: | + { + "status_code": 200, + "status": "OK", + "service": "quickbooks", + "resource": "Projects", + "operation": "delete", + "data": { + "id": "12345" + } + } + type: simple + x-speakeasy-test-group: projects + x-speakeasy-test-rebuild: true diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index e14cd1a2..cf188fcc 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.622.1 +speakeasyVersion: 1.636.3 sources: Apideck-OAS: sourceNamespace: apideck-oas - sourceRevisionDigest: sha256:a6bcd5ccb7c969b42e8ad8b17f9f9fada68d5dcb1df1fc9f740c093e6f7a59fb - sourceBlobDigest: sha256:6f9d2a5ef2ad35a10bb779aefcb98d75609448f4b14ea7f9268f7ad166c206a3 + sourceRevisionDigest: sha256:284c332c5f33230229bc34bc3a70fb5e205f40df0d163f7911e41d874e0cb1c8 + sourceBlobDigest: sha256:cc1a0fc165bc74203fb1b352268314fd298f2abbd75dd8a29d132371b842d45e tags: - latest - - speakeasy-sdk-regen-1757940184 - - 10.20.16 + - speakeasy-sdk-regen-1758786485 + - 10.21.4 targets: apideck: source: Apideck-OAS sourceNamespace: apideck-oas - sourceRevisionDigest: sha256:a6bcd5ccb7c969b42e8ad8b17f9f9fada68d5dcb1df1fc9f740c093e6f7a59fb - sourceBlobDigest: sha256:6f9d2a5ef2ad35a10bb779aefcb98d75609448f4b14ea7f9268f7ad166c206a3 + sourceRevisionDigest: sha256:284c332c5f33230229bc34bc3a70fb5e205f40df0d163f7911e41d874e0cb1c8 + sourceBlobDigest: sha256:cc1a0fc165bc74203fb1b352268314fd298f2abbd75dd8a29d132371b842d45e codeSamplesNamespace: apideck-oas-typescript-code-samples - codeSamplesRevisionDigest: sha256:04adccacc72f445a1452e35f4f4f8908c8c9cdf9de66499f4957a97063b6b2aa + codeSamplesRevisionDigest: sha256:49cc8e88c7d20fd7ed5c90a9a4abdaad4c729e8fadb4b45e425a164bb1f5ebcb workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 7d876b39..b6ef090d 100644 --- a/README.md +++ b/README.md @@ -67,10 +67,7 @@ bun add @apideck/unify ### Yarn ```bash -yarn add @apideck/unify zod - -# Note that Yarn does not install peer dependencies automatically. You will need -# to install zod as shown above. +yarn add @apideck/unify ``` @@ -126,9 +123,6 @@ run();
Available methods -### [accounting](docs/sdks/accounting/README.md) - - #### [accounting.agedCreditors](docs/sdks/agedcreditors/README.md) * [get](docs/sdks/agedcreditors/README.md#get) - Get Aged Creditors @@ -282,6 +276,14 @@ run(); * [get](docs/sdks/profitandloss/README.md#get) - Get Profit and Loss +#### [accounting.projects](docs/sdks/projects/README.md) + +* [list](docs/sdks/projects/README.md#list) - List projects +* [create](docs/sdks/projects/README.md#create) - Create project +* [get](docs/sdks/projects/README.md#get) - Get project +* [update](docs/sdks/projects/README.md#update) - Update project +* [delete](docs/sdks/projects/README.md#delete) - Delete project + #### [accounting.purchaseOrders](docs/sdks/purchaseorders/README.md) * [list](docs/sdks/purchaseorders/README.md#list) - List Purchase Orders @@ -330,10 +332,6 @@ run(); * [update](docs/sdks/trackingcategories/README.md#update) - Update Tracking Category * [delete](docs/sdks/trackingcategories/README.md#delete) - Delete Tracking Category - -### [ats](docs/sdks/ats/README.md) - - #### [ats.applicants](docs/sdks/applicants/README.md) * [list](docs/sdks/applicants/README.md#list) - List Applicants @@ -355,9 +353,6 @@ run(); * [list](docs/sdks/jobs/README.md#list) - List Jobs * [get](docs/sdks/jobs/README.md#get) - Get Job -### [connector](docs/sdks/connector/README.md) - - #### [connector.apiResourceCoverage](docs/sdks/apiresourcecoverage/README.md) * [get](docs/sdks/apiresourcecoverage/README.md#get) - Get API Resource Coverage @@ -384,9 +379,6 @@ run(); * [list](docs/sdks/connectors/README.md#list) - List Connectors * [get](docs/sdks/connectors/README.md#get) - Get Connector -### [crm](docs/sdks/crm/README.md) - - #### [crm.activities](docs/sdks/activities/README.md) * [list](docs/sdks/activities/README.md#list) - List activities @@ -467,9 +459,6 @@ run(); * [update](docs/sdks/users/README.md#update) - Update user * [delete](docs/sdks/users/README.md#delete) - Delete user -### [ecommerce](docs/sdks/ecommerce/README.md) - - #### [ecommerce.customers](docs/sdks/apideckcustomers/README.md) * [list](docs/sdks/apideckcustomers/README.md#list) - List Customers @@ -489,9 +478,6 @@ run(); * [get](docs/sdks/stores/README.md#get) - Get Store -### [fileStorage](docs/sdks/filestorage/README.md) - - #### [fileStorage.driveGroups](docs/sdks/drivegroups/README.md) * [list](docs/sdks/drivegroups/README.md#list) - List DriveGroups @@ -542,9 +528,6 @@ run(); * [delete](docs/sdks/uploadsessions/README.md#delete) - Abort Upload Session * [finish](docs/sdks/uploadsessions/README.md#finish) - Finish Upload Session -### [hris](docs/sdks/hris/README.md) - - #### [hris.companies](docs/sdks/apideckcompanies/README.md) * [list](docs/sdks/apideckcompanies/README.md#list) - List Companies @@ -591,9 +574,6 @@ run(); * [update](docs/sdks/timeoffrequests/README.md#update) - Update Time Off Request * [delete](docs/sdks/timeoffrequests/README.md#delete) - Delete Time Off Request -### [issueTracking](docs/sdks/issuetracking/README.md) - - #### [issueTracking.collections](docs/sdks/collections/README.md) * [list](docs/sdks/collections/README.md#list) - List Collections @@ -624,9 +604,6 @@ run(); * [list](docs/sdks/collectionusers/README.md#list) - List Users * [get](docs/sdks/collectionusers/README.md#get) - Get user -### [sms](docs/sdks/sms/README.md) - - #### [sms.messages](docs/sdks/messages/README.md) * [list](docs/sdks/messages/README.md#list) - List Messages @@ -635,9 +612,6 @@ run(); * [update](docs/sdks/messages/README.md#update) - Update Message * [delete](docs/sdks/messages/README.md#delete) - Delete Message -### [vault](docs/sdks/vault/README.md) - - #### [vault.connectionConsent](docs/sdks/connectionconsent/README.md) * [update](docs/sdks/connectionconsent/README.md#update) - Update consent state @@ -700,9 +674,6 @@ run(); * [state](docs/sdks/validateconnection/README.md#state) - Validate Connection State -### [webhook](docs/sdks/webhook/README.md) - - #### [webhook.eventLogs](docs/sdks/eventlogs/README.md) * [list](docs/sdks/eventlogs/README.md#list) - List event logs @@ -820,6 +791,11 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - [`accountingPaymentsList`](docs/sdks/payments/README.md#list) - List Payments - [`accountingPaymentsUpdate`](docs/sdks/payments/README.md#update) - Update Payment - [`accountingProfitAndLossGet`](docs/sdks/profitandloss/README.md#get) - Get Profit and Loss +- [`accountingProjectsCreate`](docs/sdks/projects/README.md#create) - Create project +- [`accountingProjectsDelete`](docs/sdks/projects/README.md#delete) - Delete project +- [`accountingProjectsGet`](docs/sdks/projects/README.md#get) - Get project +- [`accountingProjectsList`](docs/sdks/projects/README.md#list) - List projects +- [`accountingProjectsUpdate`](docs/sdks/projects/README.md#update) - Update project - [`accountingPurchaseOrdersCreate`](docs/sdks/purchaseorders/README.md#create) - Create Purchase Order - [`accountingPurchaseOrdersDelete`](docs/sdks/purchaseorders/README.md#delete) - Delete Purchase Order - [`accountingPurchaseOrdersGet`](docs/sdks/purchaseorders/README.md#get) - Get Purchase Order diff --git a/RELEASES.md b/RELEASES.md index 4424710d..ccec424e 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -498,4 +498,14 @@ Based on: ### Generated - [typescript v0.29.9] . ### Releases -- [NPM v0.29.9] https://www.npmjs.com/package/@apideck/unify/v/0.29.9 - . \ No newline at end of file +- [NPM v0.29.9] https://www.npmjs.com/package/@apideck/unify/v/0.29.9 - . + +## 2025-10-13 00:02:48 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.636.3 (2.723.11) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.30.0] . +### Releases +- [NPM v0.30.0] https://www.npmjs.com/package/@apideck/unify/v/0.30.0 - . \ No newline at end of file diff --git a/RUNTIMES.md b/RUNTIMES.md index db7ea942..27731c3b 100644 --- a/RUNTIMES.md +++ b/RUNTIMES.md @@ -2,9 +2,9 @@ This SDK is intended to be used in JavaScript runtimes that support ECMAScript 2020 or newer. The SDK uses the following features: -* [Web Fetch API][web-fetch] -* [Web Streams API][web-streams] and in particular `ReadableStream` -* [Async iterables][async-iter] using `Symbol.asyncIterator` +- [Web Fetch API][web-fetch] +- [Web Streams API][web-streams] and in particular `ReadableStream` +- [Async iterables][async-iter] using `Symbol.asyncIterator` [web-fetch]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API [web-streams]: https://developer.mozilla.org/en-US/docs/Web/API/Streams_API @@ -25,7 +25,7 @@ Runtime environments that are explicitly supported are: The following `tsconfig.json` options are recommended for projects using this SDK in order to get static type support for features like async iterables, -streams and `fetch`-related APIs ([`for await...of`][for-await-of], +streams and `fetch`-related APIs ([`for await...of`][for-await-of], [`AbortSignal`][abort-signal], [`Request`][request], [`Response`][response] and so on): @@ -38,11 +38,11 @@ so on): { "compilerOptions": { "target": "es2020", // or higher - "lib": ["es2020", "dom", "dom.iterable"], + "lib": ["es2020", "dom", "dom.iterable"] } } ``` While `target` can be set to older ECMAScript versions, it may result in extra, unnecessary compatibility code being generated if you are not targeting old -runtimes. \ No newline at end of file +runtimes. diff --git a/docs/models/components/accountinglocation.md b/docs/models/components/accountinglocation.md index f6448f09..b6acd325 100644 --- a/docs/models/components/accountinglocation.md +++ b/docs/models/components/accountinglocation.md @@ -21,6 +21,7 @@ let value: AccountingLocation = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/accountinglocationinput.md b/docs/models/components/accountinglocationinput.md index ab27a638..c8b3af1c 100644 --- a/docs/models/components/accountinglocationinput.md +++ b/docs/models/components/accountinglocationinput.md @@ -20,6 +20,7 @@ let value: AccountingLocationInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/activity.md b/docs/models/components/activity.md index 44fc4668..d03088ee 100644 --- a/docs/models/components/activity.md +++ b/docs/models/components/activity.md @@ -38,6 +38,7 @@ let value: Activity = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/activityinput.md b/docs/models/components/activityinput.md index 1cf0bc71..7fa21382 100644 --- a/docs/models/components/activityinput.md +++ b/docs/models/components/activityinput.md @@ -36,6 +36,7 @@ let value: ActivityInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/address.md b/docs/models/components/address.md index 12f39f34..db3ed2a4 100644 --- a/docs/models/components/address.md +++ b/docs/models/components/address.md @@ -14,6 +14,7 @@ let value: Address = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -45,6 +46,7 @@ let value: Address = { | `line2` | *string* | :heavy_minus_sign: | Line 2 of the address | apt # | | `line3` | *string* | :heavy_minus_sign: | Line 3 of the address | Suite # | | `line4` | *string* | :heavy_minus_sign: | Line 4 of the address | delivery instructions | +| `line5` | *string* | :heavy_minus_sign: | Line 5 of the address | Attention: Finance Dept | | `streetNumber` | *string* | :heavy_minus_sign: | Street number | 25 | | `city` | *string* | :heavy_minus_sign: | Name of city. | San Francisco | | `state` | *string* | :heavy_minus_sign: | Name of state | CA | diff --git a/docs/models/components/applicant.md b/docs/models/components/applicant.md index 9eb47c64..b61dcda1 100644 --- a/docs/models/components/applicant.md +++ b/docs/models/components/applicant.md @@ -59,6 +59,7 @@ let value: Applicant = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/applicantinput.md b/docs/models/components/applicantinput.md index c6100fe2..be62144a 100644 --- a/docs/models/components/applicantinput.md +++ b/docs/models/components/applicantinput.md @@ -57,6 +57,7 @@ let value: ApplicantInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/balancebytransaction.md b/docs/models/components/balancebytransaction.md index 9a0a380f..705b4e08 100644 --- a/docs/models/components/balancebytransaction.md +++ b/docs/models/components/balancebytransaction.md @@ -19,12 +19,12 @@ let value: BalanceByTransaction = { ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `transactionId` | *string* | :heavy_minus_sign: | Unique identifier for the transaction. | INV-1001 | -| `transactionDate` | [RFCDate](../../types/rfcdate.md) | :heavy_minus_sign: | Date of the transaction. | 2024-01-15 | -| `transactionType` | [components.TransactionType](../../models/components/transactiontype.md) | :heavy_minus_sign: | Type of the transaction. | invoice | -| `dueDate` | [RFCDate](../../types/rfcdate.md) | :heavy_minus_sign: | Due date of the transaction. | 2024-02-15 | -| `originalAmount` | *number* | :heavy_minus_sign: | Original amount of the transaction. | 1000 | -| `outstandingBalance` | *number* | :heavy_minus_sign: | Outstanding balance of the transaction. | 800 | -| `transactionNumber` | *string* | :heavy_minus_sign: | Transaction number of the transaction. | INV-1001 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `transactionId` | *string* | :heavy_minus_sign: | Unique identifier for the transaction. | INV-1001 | +| `transactionDate` | [RFCDate](../../types/rfcdate.md) | :heavy_minus_sign: | Date of the transaction. | 2024-01-15 | +| `transactionType` | [components.BalanceByTransactionTransactionType](../../models/components/balancebytransactiontransactiontype.md) | :heavy_minus_sign: | Type of the transaction. | invoice | +| `dueDate` | [RFCDate](../../types/rfcdate.md) | :heavy_minus_sign: | Due date of the transaction. | 2024-02-15 | +| `originalAmount` | *number* | :heavy_minus_sign: | Original amount of the transaction. | 1000 | +| `outstandingBalance` | *number* | :heavy_minus_sign: | Outstanding balance of the transaction. | 800 | +| `transactionNumber` | *string* | :heavy_minus_sign: | Transaction number of the transaction. | INV-1001 | \ No newline at end of file diff --git a/docs/models/components/balancebytransactiontransactiontype.md b/docs/models/components/balancebytransactiontransactiontype.md new file mode 100644 index 00000000..529b7be1 --- /dev/null +++ b/docs/models/components/balancebytransactiontransactiontype.md @@ -0,0 +1,17 @@ +# BalanceByTransactionTransactionType + +Type of the transaction. + +## Example Usage + +```typescript +import { BalanceByTransactionTransactionType } from "@apideck/unify/models/components"; + +let value: BalanceByTransactionTransactionType = "invoice"; +``` + +## Values + +```typescript +"invoice" | "credit_note" | "bill" | "payment" | "bill_payment" +``` \ No newline at end of file diff --git a/docs/models/components/billingmethod.md b/docs/models/components/billingmethod.md new file mode 100644 index 00000000..92ca75c7 --- /dev/null +++ b/docs/models/components/billingmethod.md @@ -0,0 +1,17 @@ +# BillingMethod + +Method used for billing this project + +## Example Usage + +```typescript +import { BillingMethod } from "@apideck/unify/models/components"; + +let value: BillingMethod = "time_and_materials"; +``` + +## Values + +```typescript +"fixed_price" | "time_and_materials" | "milestone_based" | "retainer" | "non_billable" +``` \ No newline at end of file diff --git a/docs/models/components/billinput.md b/docs/models/components/billinput.md index e16f432a..53f5a96c 100644 --- a/docs/models/components/billinput.md +++ b/docs/models/components/billinput.md @@ -21,6 +21,7 @@ let value: BillInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/billpaymentinput.md b/docs/models/components/billpaymentinput.md index 0a452fbd..ba8d2504 100644 --- a/docs/models/components/billpaymentinput.md +++ b/docs/models/components/billpaymentinput.md @@ -31,6 +31,7 @@ let value: BillPaymentInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/categoriesfiltertype.md b/docs/models/components/categoriesfiltertype.md index f34d5a69..3549aa3d 100644 --- a/docs/models/components/categoriesfiltertype.md +++ b/docs/models/components/categoriesfiltertype.md @@ -13,5 +13,5 @@ let value: CategoriesFilterType = "expense"; ## Values ```typescript -"supplier" | "expense" | "revenue" +"supplier" | "expense" | "revenue" | "customer" ``` \ No newline at end of file diff --git a/docs/models/components/categorytype.md b/docs/models/components/categorytype.md index 9097de7b..5821ee1f 100644 --- a/docs/models/components/categorytype.md +++ b/docs/models/components/categorytype.md @@ -13,5 +13,5 @@ let value: CategoryType = "expense"; ## Values ```typescript -"supplier" | "expense" | "revenue" +"supplier" | "expense" | "revenue" | "customer" ``` \ No newline at end of file diff --git a/docs/models/components/company1.md b/docs/models/components/company1.md index f7eb02ca..627a2d17 100644 --- a/docs/models/components/company1.md +++ b/docs/models/components/company1.md @@ -63,6 +63,7 @@ let value: Company1 = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/company1input.md b/docs/models/components/company1input.md index 35e99dab..98da76b5 100644 --- a/docs/models/components/company1input.md +++ b/docs/models/components/company1input.md @@ -60,6 +60,7 @@ let value: Company1Input = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/companyinfo.md b/docs/models/components/companyinfo.md index 9241df8f..8cd9c6a0 100644 --- a/docs/models/components/companyinfo.md +++ b/docs/models/components/companyinfo.md @@ -77,6 +77,7 @@ let value: CompanyInfo = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/configuration.md b/docs/models/components/configuration.md index dfbed027..b64c92de 100644 --- a/docs/models/components/configuration.md +++ b/docs/models/components/configuration.md @@ -14,14 +14,7 @@ let value: Configuration = { options: [ { label: "General Channel", - options: [ - { - label: "General Channel", - value: "general", - optionType: "simple", - }, - ], - optionType: "group", + optionType: "simple", }, ], value: "GC5000 series", diff --git a/docs/models/components/connection.md b/docs/models/components/connection.md index 6d538a55..7c2bf71e 100644 --- a/docs/models/components/connection.md +++ b/docs/models/components/connection.md @@ -69,14 +69,7 @@ let value: Connection = { options: [ { label: "General Channel", - options: [ - { - label: "General Channel", - value: "general", - optionType: "simple", - }, - ], - optionType: "group", + optionType: "simple", }, ], value: "GC5000 series", diff --git a/docs/models/components/connectionconfiguration.md b/docs/models/components/connectionconfiguration.md index 2d4692cd..2b0432e6 100644 --- a/docs/models/components/connectionconfiguration.md +++ b/docs/models/components/connectionconfiguration.md @@ -13,7 +13,14 @@ let value: ConnectionConfiguration = { options: [ { label: "General Channel", - optionType: "simple", + options: [ + { + label: "General Channel", + value: "general", + optionType: "simple", + }, + ], + optionType: "group", }, ], value: "GC5000 series", diff --git a/docs/models/components/connectiondefaults.md b/docs/models/components/connectiondefaults.md index dca92001..60f73b81 100644 --- a/docs/models/components/connectiondefaults.md +++ b/docs/models/components/connectiondefaults.md @@ -10,14 +10,7 @@ let value: ConnectionDefaults = { options: [ { label: "General Channel", - options: [ - { - label: "General Channel", - value: "general", - optionType: "simple", - }, - ], - optionType: "group", + optionType: "simple", }, ], value: "GC5000 series", diff --git a/docs/models/components/connectioninput.md b/docs/models/components/connectioninput.md index fae37527..65b39e16 100644 --- a/docs/models/components/connectioninput.md +++ b/docs/models/components/connectioninput.md @@ -27,7 +27,14 @@ let value: ConnectionInput = { options: [ { label: "General Channel", - optionType: "simple", + options: [ + { + label: "General Channel", + value: "general", + optionType: "simple", + }, + ], + optionType: "group", }, ], value: "GC5000 series", diff --git a/docs/models/components/contact.md b/docs/models/components/contact.md index d6475ff1..aa409c27 100644 --- a/docs/models/components/contact.md +++ b/docs/models/components/contact.md @@ -47,6 +47,7 @@ let value: Contact = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/contactinput.md b/docs/models/components/contactinput.md index 3c6a1da3..e2c01cec 100644 --- a/docs/models/components/contactinput.md +++ b/docs/models/components/contactinput.md @@ -46,6 +46,7 @@ let value: ContactInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/createconnectionresponse.md b/docs/models/components/createconnectionresponse.md index 53fcf801..96e9deac 100644 --- a/docs/models/components/createconnectionresponse.md +++ b/docs/models/components/createconnectionresponse.md @@ -74,14 +74,7 @@ let value: CreateConnectionResponse = { options: [ { label: "General Channel", - options: [ - { - label: "General Channel", - value: "general", - optionType: "simple", - }, - ], - optionType: "group", + optionType: "simple", }, ], value: "GC5000 series", diff --git a/docs/models/components/createprojectresponse.md b/docs/models/components/createprojectresponse.md new file mode 100644 index 00000000..0430a2b6 --- /dev/null +++ b/docs/models/components/createprojectresponse.md @@ -0,0 +1,31 @@ +# CreateProjectResponse + +Projects + +## Example Usage + +```typescript +import { CreateProjectResponse } from "@apideck/unify/models/components"; + +let value: CreateProjectResponse = { + statusCode: 200, + status: "OK", + service: "quickbooks", + resource: "Projects", + operation: "add", + data: { + id: "12345", + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `statusCode` | *number* | :heavy_check_mark: | HTTP Response Status Code | 200 | +| `status` | *string* | :heavy_check_mark: | HTTP Response Status | OK | +| `service` | *string* | :heavy_check_mark: | Apideck ID of service provider | quickbooks | +| `resource` | *string* | :heavy_check_mark: | Unified API resource name | Projects | +| `operation` | *string* | :heavy_check_mark: | Operation performed | add | +| `data` | [components.UnifiedId](../../models/components/unifiedid.md) | :heavy_check_mark: | A object containing a unique identifier for the resource that was created, updated, or deleted. | | \ No newline at end of file diff --git a/docs/models/components/creditnote.md b/docs/models/components/creditnote.md index 2796d37a..b9e0ef43 100644 --- a/docs/models/components/creditnote.md +++ b/docs/models/components/creditnote.md @@ -4,6 +4,7 @@ ```typescript import { CreditNote } from "@apideck/unify/models/components"; +import { RFCDate } from "@apideck/unify/types"; let value: CreditNote = { id: "123456", @@ -53,6 +54,7 @@ let value: CreditNote = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -128,6 +130,7 @@ let value: CreditNote = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -154,6 +157,7 @@ let value: CreditNote = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/creditnoteinput.md b/docs/models/components/creditnoteinput.md index 247c041e..26e40a23 100644 --- a/docs/models/components/creditnoteinput.md +++ b/docs/models/components/creditnoteinput.md @@ -4,6 +4,7 @@ ```typescript import { CreditNoteInput } from "@apideck/unify/models/components"; +import { RFCDate } from "@apideck/unify/types"; let value: CreditNoteInput = { number: "OIT00546", @@ -49,6 +50,7 @@ let value: CreditNoteInput = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -116,6 +118,7 @@ let value: CreditNoteInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -142,6 +145,7 @@ let value: CreditNoteInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/customer.md b/docs/models/components/customer.md index b47bd15d..fc33984d 100644 --- a/docs/models/components/customer.md +++ b/docs/models/components/customer.md @@ -12,6 +12,7 @@ let value: Customer = { displayName: "Windsurf Shop", companyName: "SpaceX", companyId: "12345", + customerCategory: "Insurance", title: "CEO", firstName: "Elon", middleName: "D.", @@ -29,6 +30,7 @@ let value: Customer = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -105,6 +107,7 @@ let value: Customer = { parent: null, status: "active", paymentMethod: "cash", + terms: "Net 30 days", channel: "email", customFields: [ { @@ -147,6 +150,7 @@ let value: Customer = { | `displayName` | *string* | :heavy_minus_sign: | Display name | Windsurf Shop | | `companyName` | *string* | :heavy_minus_sign: | The name of the company. | SpaceX | | `companyId` | *string* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | +| `customerCategory` | *string* | :heavy_minus_sign: | The category/type of the customer | Insurance | | `title` | *string* | :heavy_minus_sign: | The job title of the person. | CEO | | `firstName` | *string* | :heavy_minus_sign: | The first name of the person. | Elon | | `middleName` | *string* | :heavy_minus_sign: | Middle name of the person. | D. | @@ -167,6 +171,7 @@ let value: Customer = { | `parent` | [components.LinkedParentCustomer](../../models/components/linkedparentcustomer.md) | :heavy_minus_sign: | The parent customer this entity is linked to. | | | `status` | [components.CustomerStatusStatus](../../models/components/customerstatusstatus.md) | :heavy_minus_sign: | Customer status | active | | `paymentMethod` | *string* | :heavy_minus_sign: | Payment method used for the transaction, such as cash, credit card, bank transfer, or check | cash | +| `terms` | *string* | :heavy_minus_sign: | Terms of payment. | Net 30 days | | `channel` | *string* | :heavy_minus_sign: | The channel through which the transaction is processed. | email | | `customFields` | [components.CustomField](../../models/components/customfield.md)[] | :heavy_minus_sign: | N/A | | | `customMappings` | Record | :heavy_minus_sign: | When custom mappings are configured on the resource, the result is included here. | | diff --git a/docs/models/components/customerinput.md b/docs/models/components/customerinput.md index 820faa03..e0dfd2b0 100644 --- a/docs/models/components/customerinput.md +++ b/docs/models/components/customerinput.md @@ -10,6 +10,7 @@ let value: CustomerInput = { displayName: "Windsurf Shop", companyName: "SpaceX", companyId: "12345", + customerCategory: "Insurance", title: "CEO", firstName: "Elon", middleName: "D.", @@ -27,6 +28,7 @@ let value: CustomerInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -103,6 +105,7 @@ let value: CustomerInput = { }, status: "active", paymentMethod: "cash", + terms: "Net 30 days", channel: "email", customFields: [ { @@ -139,6 +142,7 @@ let value: CustomerInput = { | `displayName` | *string* | :heavy_minus_sign: | Display name | Windsurf Shop | | `companyName` | *string* | :heavy_minus_sign: | The name of the company. | SpaceX | | `companyId` | *string* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | +| `customerCategory` | *string* | :heavy_minus_sign: | The category/type of the customer | Insurance | | `title` | *string* | :heavy_minus_sign: | The job title of the person. | CEO | | `firstName` | *string* | :heavy_minus_sign: | The first name of the person. | Elon | | `middleName` | *string* | :heavy_minus_sign: | Middle name of the person. | D. | @@ -159,6 +163,7 @@ let value: CustomerInput = { | `parent` | [components.LinkedParentCustomer](../../models/components/linkedparentcustomer.md) | :heavy_minus_sign: | The parent customer this entity is linked to. | | | `status` | [components.CustomerStatusStatus](../../models/components/customerstatusstatus.md) | :heavy_minus_sign: | Customer status | active | | `paymentMethod` | *string* | :heavy_minus_sign: | Payment method used for the transaction, such as cash, credit card, bank transfer, or check | cash | +| `terms` | *string* | :heavy_minus_sign: | Terms of payment. | Net 30 days | | `channel` | *string* | :heavy_minus_sign: | The channel through which the transaction is processed. | email | | `customFields` | [components.CustomField](../../models/components/customfield.md)[] | :heavy_minus_sign: | N/A | | | `rowVersion` | *string* | :heavy_minus_sign: | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | 1-12345 | diff --git a/docs/models/components/defaults.md b/docs/models/components/defaults.md index ecf797ac..0524df90 100644 --- a/docs/models/components/defaults.md +++ b/docs/models/components/defaults.md @@ -11,14 +11,7 @@ let value: Defaults = { options: [ { label: "General Channel", - options: [ - { - label: "General Channel", - value: "general", - optionType: "simple", - }, - ], - optionType: "group", + optionType: "simple", }, ], value: "GC5000 series", diff --git a/docs/models/components/deleteprojectresponse.md b/docs/models/components/deleteprojectresponse.md new file mode 100644 index 00000000..877cd854 --- /dev/null +++ b/docs/models/components/deleteprojectresponse.md @@ -0,0 +1,31 @@ +# DeleteProjectResponse + +Projects + +## Example Usage + +```typescript +import { DeleteProjectResponse } from "@apideck/unify/models/components"; + +let value: DeleteProjectResponse = { + statusCode: 200, + status: "OK", + service: "quickbooks", + resource: "Projects", + operation: "delete", + data: { + id: "12345", + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `statusCode` | *number* | :heavy_check_mark: | HTTP Response Status Code | 200 | +| `status` | *string* | :heavy_check_mark: | HTTP Response Status | OK | +| `service` | *string* | :heavy_check_mark: | Apideck ID of service provider | quickbooks | +| `resource` | *string* | :heavy_check_mark: | Unified API resource name | Projects | +| `operation` | *string* | :heavy_check_mark: | Operation performed | delete | +| `data` | [components.UnifiedId](../../models/components/unifiedid.md) | :heavy_check_mark: | A object containing a unique identifier for the resource that was created, updated, or deleted. | | \ No newline at end of file diff --git a/docs/models/components/deprecatedlinkedsupplier.md b/docs/models/components/deprecatedlinkedsupplier.md index ebef5d48..92dde982 100644 --- a/docs/models/components/deprecatedlinkedsupplier.md +++ b/docs/models/components/deprecatedlinkedsupplier.md @@ -23,6 +23,7 @@ let value: DeprecatedLinkedSupplier = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/deprecatedlinkedsupplierinput.md b/docs/models/components/deprecatedlinkedsupplierinput.md index 99ec3c9f..748eecc4 100644 --- a/docs/models/components/deprecatedlinkedsupplierinput.md +++ b/docs/models/components/deprecatedlinkedsupplierinput.md @@ -20,6 +20,7 @@ let value: DeprecatedLinkedSupplierInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/employee.md b/docs/models/components/employee.md index 0948d5bd..5fb92061 100644 --- a/docs/models/components/employee.md +++ b/docs/models/components/employee.md @@ -99,6 +99,7 @@ let value: Employee = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -139,6 +140,7 @@ let value: Employee = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/employeeinput.md b/docs/models/components/employeeinput.md index a5686d41..a4abba0d 100644 --- a/docs/models/components/employeeinput.md +++ b/docs/models/components/employeeinput.md @@ -95,6 +95,7 @@ let value: EmployeeInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -133,6 +134,7 @@ let value: EmployeeInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/employeejob.md b/docs/models/components/employeejob.md index 6b037f73..a1675c13 100644 --- a/docs/models/components/employeejob.md +++ b/docs/models/components/employeejob.md @@ -29,6 +29,7 @@ let value: EmployeeJob = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/employeejobinput.md b/docs/models/components/employeejobinput.md index 47c7e8c9..724182f1 100644 --- a/docs/models/components/employeejobinput.md +++ b/docs/models/components/employeejobinput.md @@ -27,6 +27,7 @@ let value: EmployeeJobInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/employeeschedules.md b/docs/models/components/employeeschedules.md index f81afdf3..6a9ee5de 100644 --- a/docs/models/components/employeeschedules.md +++ b/docs/models/components/employeeschedules.md @@ -100,6 +100,7 @@ let value: EmployeeSchedules = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -140,6 +141,7 @@ let value: EmployeeSchedules = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/formfieldoption.md b/docs/models/components/formfieldoption.md index bdffd906..9297785c 100644 --- a/docs/models/components/formfieldoption.md +++ b/docs/models/components/formfieldoption.md @@ -3,6 +3,16 @@ ## Supported Types +### `components.SimpleFormFieldOption` + +```typescript +const value: components.SimpleFormFieldOption = { + label: "General Channel", + value: "general", + optionType: "simple", +}; +``` + ### `components.FormFieldOptionGroup` ```typescript @@ -20,13 +30,3 @@ const value: components.FormFieldOptionGroup = { }; ``` -### `components.SimpleFormFieldOption` - -```typescript -const value: components.SimpleFormFieldOption = { - label: "General Channel", - value: "general", - optionType: "simple", -}; -``` - diff --git a/docs/models/components/getaccountinglocationresponse.md b/docs/models/components/getaccountinglocationresponse.md index ca28c569..c023901c 100644 --- a/docs/models/components/getaccountinglocationresponse.md +++ b/docs/models/components/getaccountinglocationresponse.md @@ -29,6 +29,7 @@ let value: GetAccountingLocationResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getactivitiesresponse.md b/docs/models/components/getactivitiesresponse.md index f3b2c86e..ce5ce0c6 100644 --- a/docs/models/components/getactivitiesresponse.md +++ b/docs/models/components/getactivitiesresponse.md @@ -47,6 +47,7 @@ let value: GetActivitiesResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getactivityresponse.md b/docs/models/components/getactivityresponse.md index 53559bd4..cb4ee49b 100644 --- a/docs/models/components/getactivityresponse.md +++ b/docs/models/components/getactivityresponse.md @@ -46,6 +46,7 @@ let value: GetActivityResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getapplicantresponse.md b/docs/models/components/getapplicantresponse.md index 4da7f558..1075162d 100644 --- a/docs/models/components/getapplicantresponse.md +++ b/docs/models/components/getapplicantresponse.md @@ -67,6 +67,7 @@ let value: GetApplicantResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getbillpaymentresponse.md b/docs/models/components/getbillpaymentresponse.md index 83625db6..4650aacc 100644 --- a/docs/models/components/getbillpaymentresponse.md +++ b/docs/models/components/getbillpaymentresponse.md @@ -44,6 +44,7 @@ let value: GetBillPaymentResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getbillpaymentsresponse.md b/docs/models/components/getbillpaymentsresponse.md index 88b18cad..b7e0ff46 100644 --- a/docs/models/components/getbillpaymentsresponse.md +++ b/docs/models/components/getbillpaymentsresponse.md @@ -40,6 +40,7 @@ let value: GetBillPaymentsResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getbillresponse.md b/docs/models/components/getbillresponse.md index f67f1ef5..470e9348 100644 --- a/docs/models/components/getbillresponse.md +++ b/docs/models/components/getbillresponse.md @@ -33,6 +33,7 @@ let value: GetBillResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getcompaniesresponse.md b/docs/models/components/getcompaniesresponse.md index ae4e3056..54f15a49 100644 --- a/docs/models/components/getcompaniesresponse.md +++ b/docs/models/components/getcompaniesresponse.md @@ -72,6 +72,7 @@ let value: GetCompaniesResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getcompanyinforesponse.md b/docs/models/components/getcompanyinforesponse.md index 973f4ed9..9567e36e 100644 --- a/docs/models/components/getcompanyinforesponse.md +++ b/docs/models/components/getcompanyinforesponse.md @@ -85,6 +85,7 @@ let value: GetCompanyInfoResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getcompanyresponse.md b/docs/models/components/getcompanyresponse.md index 6c246cc1..b144355b 100644 --- a/docs/models/components/getcompanyresponse.md +++ b/docs/models/components/getcompanyresponse.md @@ -71,6 +71,7 @@ let value: GetCompanyResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getconnectionresponse.md b/docs/models/components/getconnectionresponse.md index dea9a27f..90d1558b 100644 --- a/docs/models/components/getconnectionresponse.md +++ b/docs/models/components/getconnectionresponse.md @@ -74,14 +74,7 @@ let value: GetConnectionResponse = { options: [ { label: "General Channel", - options: [ - { - label: "General Channel", - value: "general", - optionType: "simple", - }, - ], - optionType: "group", + optionType: "simple", }, ], value: "GC5000 series", diff --git a/docs/models/components/getcontactresponse.md b/docs/models/components/getcontactresponse.md index 2a02a6cb..a4510d08 100644 --- a/docs/models/components/getcontactresponse.md +++ b/docs/models/components/getcontactresponse.md @@ -55,6 +55,7 @@ let value: GetContactResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getcontactsresponse.md b/docs/models/components/getcontactsresponse.md index 9fbc19ce..c6010530 100644 --- a/docs/models/components/getcontactsresponse.md +++ b/docs/models/components/getcontactsresponse.md @@ -56,6 +56,7 @@ let value: GetContactsResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getcreditnoteresponse.md b/docs/models/components/getcreditnoteresponse.md index a97fe1c8..7c057cf9 100644 --- a/docs/models/components/getcreditnoteresponse.md +++ b/docs/models/components/getcreditnoteresponse.md @@ -6,6 +6,7 @@ Credit Note ```typescript import { GetCreditNoteResponse } from "@apideck/unify/models/components"; +import { RFCDate } from "@apideck/unify/types"; let value: GetCreditNoteResponse = { statusCode: 200, @@ -61,6 +62,7 @@ let value: GetCreditNoteResponse = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -136,6 +138,7 @@ let value: GetCreditNoteResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -162,6 +165,7 @@ let value: GetCreditNoteResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getcreditnotesresponse.md b/docs/models/components/getcreditnotesresponse.md index ae7498ce..ef10e647 100644 --- a/docs/models/components/getcreditnotesresponse.md +++ b/docs/models/components/getcreditnotesresponse.md @@ -6,6 +6,7 @@ Credit Notes ```typescript import { GetCreditNotesResponse } from "@apideck/unify/models/components"; +import { RFCDate } from "@apideck/unify/types"; let value: GetCreditNotesResponse = { statusCode: 200, @@ -62,6 +63,7 @@ let value: GetCreditNotesResponse = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -137,6 +139,7 @@ let value: GetCreditNotesResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -163,6 +166,7 @@ let value: GetCreditNotesResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getcustomerresponse.md b/docs/models/components/getcustomerresponse.md index dc8a83a0..f89a7bed 100644 --- a/docs/models/components/getcustomerresponse.md +++ b/docs/models/components/getcustomerresponse.md @@ -20,6 +20,7 @@ let value: GetCustomerResponse = { displayName: "Windsurf Shop", companyName: "SpaceX", companyId: "12345", + customerCategory: "Insurance", title: "CEO", firstName: "Elon", middleName: "D.", @@ -37,6 +38,7 @@ let value: GetCustomerResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -116,6 +118,7 @@ let value: GetCustomerResponse = { }, status: "active", paymentMethod: "cash", + terms: "Net 30 days", channel: "email", customFields: [ { diff --git a/docs/models/components/getcustomersresponse.md b/docs/models/components/getcustomersresponse.md index c23f68c7..60c3ddac 100644 --- a/docs/models/components/getcustomersresponse.md +++ b/docs/models/components/getcustomersresponse.md @@ -21,6 +21,7 @@ let value: GetCustomersResponse = { displayName: "Windsurf Shop", companyName: "SpaceX", companyId: "12345", + customerCategory: "Insurance", title: "CEO", firstName: "Elon", middleName: "D.", @@ -38,6 +39,7 @@ let value: GetCustomersResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -117,6 +119,7 @@ let value: GetCustomersResponse = { }, status: "active", paymentMethod: "cash", + terms: "Net 30 days", channel: "email", customFields: [ { diff --git a/docs/models/components/getemployeeresponse.md b/docs/models/components/getemployeeresponse.md index a333924c..806c0001 100644 --- a/docs/models/components/getemployeeresponse.md +++ b/docs/models/components/getemployeeresponse.md @@ -107,6 +107,7 @@ let value: GetEmployeeResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -147,6 +148,7 @@ let value: GetEmployeeResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getemployeeschedulesresponse.md b/docs/models/components/getemployeeschedulesresponse.md index 03f796ac..a5facc31 100644 --- a/docs/models/components/getemployeeschedulesresponse.md +++ b/docs/models/components/getemployeeschedulesresponse.md @@ -108,6 +108,7 @@ let value: GetEmployeeSchedulesResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -148,6 +149,7 @@ let value: GetEmployeeSchedulesResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getemployeesresponse.md b/docs/models/components/getemployeesresponse.md index 2550d17c..a84d3611 100644 --- a/docs/models/components/getemployeesresponse.md +++ b/docs/models/components/getemployeesresponse.md @@ -108,6 +108,7 @@ let value: GetEmployeesResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -148,6 +149,7 @@ let value: GetEmployeesResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/gethriscompaniesresponse.md b/docs/models/components/gethriscompaniesresponse.md index 3bc3e775..35241d86 100644 --- a/docs/models/components/gethriscompaniesresponse.md +++ b/docs/models/components/gethriscompaniesresponse.md @@ -32,6 +32,7 @@ let value: GetHrisCompaniesResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/gethriscompanyresponse.md b/docs/models/components/gethriscompanyresponse.md index 5718bbf5..cc54bc57 100644 --- a/docs/models/components/gethriscompanyresponse.md +++ b/docs/models/components/gethriscompanyresponse.md @@ -31,6 +31,7 @@ let value: GetHrisCompanyResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getinvoiceresponse.md b/docs/models/components/getinvoiceresponse.md index 555ae0b0..47147ba6 100644 --- a/docs/models/components/getinvoiceresponse.md +++ b/docs/models/components/getinvoiceresponse.md @@ -72,6 +72,7 @@ let value: GetInvoiceResponse = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -137,6 +138,7 @@ let value: GetInvoiceResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -163,6 +165,7 @@ let value: GetInvoiceResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getjobresponse.md b/docs/models/components/getjobresponse.md index 1f63e47c..59da5aea 100644 --- a/docs/models/components/getjobresponse.md +++ b/docs/models/components/getjobresponse.md @@ -104,6 +104,7 @@ let value: GetJobResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getjournalentryresponse.md b/docs/models/components/getjournalentryresponse.md index 4cdce1c3..b4c3ec8c 100644 --- a/docs/models/components/getjournalentryresponse.md +++ b/docs/models/components/getjournalentryresponse.md @@ -15,6 +15,7 @@ let value: GetJournalEntryResponse = { operation: "one", data: { id: "12345", + downstreamId: "12345", title: "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", currencyRate: 0.69, currency: "USD", @@ -69,6 +70,7 @@ let value: GetJournalEntryResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -101,6 +103,9 @@ let value: GetJournalEntryResponse = { number: "OIT00546", trackingCategories: null, accountingPeriod: "01-24", + taxInclusive: true, + sourceType: "manual", + sourceId: "12345", updatedBy: "12345", createdBy: "12345", updatedAt: new Date("2020-09-30T07:43:32.000Z"), diff --git a/docs/models/components/getleadresponse.md b/docs/models/components/getleadresponse.md index 60d4d0a1..21249fb0 100644 --- a/docs/models/components/getleadresponse.md +++ b/docs/models/components/getleadresponse.md @@ -49,6 +49,7 @@ let value: GetLeadResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getleadsresponse.md b/docs/models/components/getleadsresponse.md index 8ca60a06..b8f15a1e 100644 --- a/docs/models/components/getleadsresponse.md +++ b/docs/models/components/getleadsresponse.md @@ -50,6 +50,7 @@ let value: GetLeadsResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getprojectresponse.md b/docs/models/components/getprojectresponse.md new file mode 100644 index 00000000..3a32b0b8 --- /dev/null +++ b/docs/models/components/getprojectresponse.md @@ -0,0 +1,137 @@ +# GetProjectResponse + +Projects + +## Example Usage + +```typescript +import { GetProjectResponse } from "@apideck/unify/models/components"; +import { RFCDate } from "@apideck/unify/types"; + +let value: GetProjectResponse = { + statusCode: 200, + status: "OK", + service: "quickbooks", + resource: "Projects", + operation: "one", + data: { + id: "12345", + downstreamId: "12345", + name: "Website Redesign Project", + displayId: "PROJ-001", + referenceId: "WD-REF-2024-001", + description: + "Complete redesign of the company website including new branding and improved user experience", + status: "active", + active: true, + projectType: "client_project", + priority: "high", + completionPercentage: 75.5, + startDate: new RFCDate("2024-01-15"), + endDate: new RFCDate("2024-06-30"), + customer: { + id: "12345", + displayId: "CUST00101", + displayName: "Windsurf Shop", + companyName: "The boring company", + email: "boring@boring.com", + }, + department: { + id: "DEPT-001", + name: "Marketing", + }, + companyId: "12345", + ownerId: "12345", + parentProject: { + id: "PROJ-PARENT-001", + name: "Company Website Overhaul", + }, + currency: "USD", + budgetAmount: 50000, + approvedAmount: 48000, + actualAmount: 45250.75, + budgetHours: 400, + actualHours: 385.5, + hourlyRate: 125, + billingMethod: "time_and_materials", + phase: "execution", + taxRate: { + id: "123456", + code: "N-T", + name: "GST on Purchases", + rate: 10, + }, + trackingCategories: [ + { + id: "123456", + name: "New York", + parentId: "123456", + parentName: "New York", + }, + ], + tags: [ + "website", + "redesign", + "urgent", + ], + notes: "Client has requested modern design with mobile-first approach", + contractNumber: "CNT-2024-001", + profitMargin: 15.5, + scheduleStatus: "on_schedule", + addresses: [ + { + id: "123", + type: "primary", + string: "25 Spring Street, Blackburn, VIC 3130", + name: "HQ US", + line1: "Main street", + line2: "apt #", + line3: "Suite #", + line4: "delivery instructions", + line5: "Attention: Finance Dept", + streetNumber: "25", + city: "San Francisco", + state: "CA", + postalCode: "94104", + country: "US", + latitude: "40.759211", + longitude: "-73.984638", + county: "Santa Clara", + contactName: "Elon Musk", + salutation: "Mr", + phoneNumber: "111-111-1111", + fax: "122-111-1111", + email: "elon@musk.com", + website: "https://elonmusk.com", + notes: "Address notes or delivery instructions.", + rowVersion: "1-12345", + }, + ], + teamSize: 8, + customFields: [ + { + id: "2389328923893298", + name: "employee_level", + description: "Employee Level", + value: "Uses Salesforce and Marketo", + }, + ], + rowVersion: "1-12345", + updatedBy: "12345", + createdBy: "12345", + createdAt: new Date("2020-09-30T07:43:32.000Z"), + updatedAt: new Date("2020-09-30T07:43:32.000Z"), + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `statusCode` | *number* | :heavy_check_mark: | HTTP Response Status Code | 200 | +| `status` | *string* | :heavy_check_mark: | HTTP Response Status | OK | +| `service` | *string* | :heavy_check_mark: | Apideck ID of service provider | quickbooks | +| `resource` | *string* | :heavy_check_mark: | Unified API resource name | Projects | +| `operation` | *string* | :heavy_check_mark: | Operation performed | one | +| `data` | [components.Project](../../models/components/project.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/getprojectsresponse.md b/docs/models/components/getprojectsresponse.md new file mode 100644 index 00000000..f0f97c28 --- /dev/null +++ b/docs/models/components/getprojectsresponse.md @@ -0,0 +1,156 @@ +# GetProjectsResponse + +Projects + +## Example Usage + +```typescript +import { GetProjectsResponse } from "@apideck/unify/models/components"; +import { RFCDate } from "@apideck/unify/types"; + +let value: GetProjectsResponse = { + statusCode: 200, + status: "OK", + service: "quickbooks", + resource: "Projects", + operation: "all", + data: [ + { + id: "12345", + downstreamId: "12345", + name: "Website Redesign Project", + displayId: "PROJ-001", + referenceId: "WD-REF-2024-001", + description: + "Complete redesign of the company website including new branding and improved user experience", + status: "active", + active: true, + projectType: "client_project", + priority: "high", + completionPercentage: 75.5, + startDate: new RFCDate("2024-01-15"), + endDate: new RFCDate("2024-06-30"), + customer: { + id: "12345", + displayId: "CUST00101", + displayName: "Windsurf Shop", + companyName: "The boring company", + email: "boring@boring.com", + }, + department: { + id: "DEPT-001", + name: "Marketing", + }, + companyId: "12345", + ownerId: "12345", + parentProject: { + id: "PROJ-PARENT-001", + name: "Company Website Overhaul", + }, + currency: "USD", + budgetAmount: 50000, + approvedAmount: 48000, + actualAmount: 45250.75, + budgetHours: 400, + actualHours: 385.5, + hourlyRate: 125, + billingMethod: "time_and_materials", + phase: "execution", + taxRate: { + id: "123456", + code: "N-T", + name: "GST on Purchases", + rate: 10, + }, + trackingCategories: [ + { + id: "123456", + name: "New York", + parentId: "123456", + parentName: "New York", + }, + ], + tags: [ + "website", + "redesign", + "urgent", + ], + notes: "Client has requested modern design with mobile-first approach", + contractNumber: "CNT-2024-001", + profitMargin: 15.5, + scheduleStatus: "on_schedule", + addresses: [ + { + id: "123", + type: "primary", + string: "25 Spring Street, Blackburn, VIC 3130", + name: "HQ US", + line1: "Main street", + line2: "apt #", + line3: "Suite #", + line4: "delivery instructions", + line5: "Attention: Finance Dept", + streetNumber: "25", + city: "San Francisco", + state: "CA", + postalCode: "94104", + country: "US", + latitude: "40.759211", + longitude: "-73.984638", + county: "Santa Clara", + contactName: "Elon Musk", + salutation: "Mr", + phoneNumber: "111-111-1111", + fax: "122-111-1111", + email: "elon@musk.com", + website: "https://elonmusk.com", + notes: "Address notes or delivery instructions.", + rowVersion: "1-12345", + }, + ], + teamSize: 8, + customFields: [ + { + id: "2389328923893298", + name: "employee_level", + description: "Employee Level", + value: "Uses Salesforce and Marketo", + }, + ], + rowVersion: "1-12345", + updatedBy: "12345", + createdBy: "12345", + createdAt: new Date("2020-09-30T07:43:32.000Z"), + updatedAt: new Date("2020-09-30T07:43:32.000Z"), + }, + ], + meta: { + itemsOnPage: 50, + cursors: { + previous: "em9oby1jcm06OnBhZ2U6OjE=", + current: "em9oby1jcm06OnBhZ2U6OjI=", + next: "em9oby1jcm06OnBhZ2U6OjM=", + }, + }, + links: { + previous: + "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", + current: "https://unify.apideck.com/crm/companies", + next: + "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `statusCode` | *number* | :heavy_check_mark: | HTTP Response Status Code | 200 | +| `status` | *string* | :heavy_check_mark: | HTTP Response Status | OK | +| `service` | *string* | :heavy_check_mark: | Apideck ID of service provider | quickbooks | +| `resource` | *string* | :heavy_check_mark: | Unified API resource name | Projects | +| `operation` | *string* | :heavy_check_mark: | Operation performed | all | +| `data` | [components.Project](../../models/components/project.md)[] | :heavy_check_mark: | N/A | | +| `meta` | [components.Meta](../../models/components/meta.md) | :heavy_minus_sign: | Response metadata | | +| `links` | [components.Links](../../models/components/links.md) | :heavy_minus_sign: | Links to navigate to previous or next pages through the API | | \ No newline at end of file diff --git a/docs/models/components/getpurchaseorderresponse.md b/docs/models/components/getpurchaseorderresponse.md index d3de7c83..2402a76c 100644 --- a/docs/models/components/getpurchaseorderresponse.md +++ b/docs/models/components/getpurchaseorderresponse.md @@ -33,6 +33,7 @@ let value: GetPurchaseOrderResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -80,6 +81,7 @@ let value: GetPurchaseOrderResponse = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -145,6 +147,7 @@ let value: GetPurchaseOrderResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -171,6 +174,7 @@ let value: GetPurchaseOrderResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getpurchaseordersresponse.md b/docs/models/components/getpurchaseordersresponse.md index 32260888..5753059c 100644 --- a/docs/models/components/getpurchaseordersresponse.md +++ b/docs/models/components/getpurchaseordersresponse.md @@ -34,6 +34,7 @@ let value: GetPurchaseOrdersResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -81,6 +82,7 @@ let value: GetPurchaseOrdersResponse = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -146,6 +148,7 @@ let value: GetPurchaseOrdersResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -172,6 +175,7 @@ let value: GetPurchaseOrdersResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getquoteresponse.md b/docs/models/components/getquoteresponse.md index ef5697e1..9672616c 100644 --- a/docs/models/components/getquoteresponse.md +++ b/docs/models/components/getquoteresponse.md @@ -61,6 +61,7 @@ let value: GetQuoteResponse = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -113,6 +114,7 @@ let value: GetQuoteResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -139,6 +141,7 @@ let value: GetQuoteResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getquotesresponse.md b/docs/models/components/getquotesresponse.md index 8539d849..e2f52420 100644 --- a/docs/models/components/getquotesresponse.md +++ b/docs/models/components/getquotesresponse.md @@ -62,6 +62,7 @@ let value: GetQuotesResponse = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -114,6 +115,7 @@ let value: GetQuotesResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -140,6 +142,7 @@ let value: GetQuotesResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getsupplierresponse.md b/docs/models/components/getsupplierresponse.md index d907dbd0..4c004823 100644 --- a/docs/models/components/getsupplierresponse.md +++ b/docs/models/components/getsupplierresponse.md @@ -37,6 +37,7 @@ let value: GetSupplierResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getsuppliersresponse.md b/docs/models/components/getsuppliersresponse.md index be2bbab4..7fd3e29b 100644 --- a/docs/models/components/getsuppliersresponse.md +++ b/docs/models/components/getsuppliersresponse.md @@ -38,6 +38,7 @@ let value: GetSuppliersResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getuserresponse.md b/docs/models/components/getuserresponse.md index 3d31318f..71cae0ec 100644 --- a/docs/models/components/getuserresponse.md +++ b/docs/models/components/getuserresponse.md @@ -37,6 +37,7 @@ let value: GetUserResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/getusersresponse.md b/docs/models/components/getusersresponse.md index b19da532..8d701025 100644 --- a/docs/models/components/getusersresponse.md +++ b/docs/models/components/getusersresponse.md @@ -38,6 +38,7 @@ let value: GetUsersResponse = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/hriscompany.md b/docs/models/components/hriscompany.md index 2bd8724b..8a338046 100644 --- a/docs/models/components/hriscompany.md +++ b/docs/models/components/hriscompany.md @@ -23,6 +23,7 @@ let value: HrisCompany = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/hriscompanyinput.md b/docs/models/components/hriscompanyinput.md index b1d77cfd..998d4443 100644 --- a/docs/models/components/hriscompanyinput.md +++ b/docs/models/components/hriscompanyinput.md @@ -22,6 +22,7 @@ let value: HrisCompanyInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/invoice.md b/docs/models/components/invoice.md index 631c7732..f469b801 100644 --- a/docs/models/components/invoice.md +++ b/docs/models/components/invoice.md @@ -64,6 +64,7 @@ let value: Invoice = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -129,6 +130,7 @@ let value: Invoice = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -155,6 +157,7 @@ let value: Invoice = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/invoiceinput.md b/docs/models/components/invoiceinput.md index 487d6029..b5ee5504 100644 --- a/docs/models/components/invoiceinput.md +++ b/docs/models/components/invoiceinput.md @@ -60,6 +60,7 @@ let value: InvoiceInput = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -118,6 +119,7 @@ let value: InvoiceInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -144,6 +146,7 @@ let value: InvoiceInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/invoiceitemfilter.md b/docs/models/components/invoiceitemfilter.md index 6db4f80b..a2948316 100644 --- a/docs/models/components/invoiceitemfilter.md +++ b/docs/models/components/invoiceitemfilter.md @@ -7,6 +7,7 @@ import { InvoiceItemFilter } from "@apideck/unify/models/components"; let value: InvoiceItemFilter = { type: "service", + transactionType: "purchase", }; ``` @@ -14,4 +15,5 @@ let value: InvoiceItemFilter = { | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `type` | [components.InvoiceItemFilterInvoiceItemType](../../models/components/invoiceitemfilterinvoiceitemtype.md) | :heavy_minus_sign: | The type of invoice item, indicating whether it is an inventory item, a service, or another type. | service | \ No newline at end of file +| `type` | [components.InvoiceItemFilterInvoiceItemType](../../models/components/invoiceitemfilterinvoiceitemtype.md) | :heavy_minus_sign: | The type of invoice item, indicating whether it is an inventory item, a service, or another type. | service | +| `transactionType` | [components.InvoiceItemFilterTransactionType](../../models/components/invoiceitemfiltertransactiontype.md) | :heavy_minus_sign: | The kind of transaction, indicating whether it is a sales transaction or a purchase transaction. | purchase | \ No newline at end of file diff --git a/docs/models/components/invoiceitemfiltertransactiontype.md b/docs/models/components/invoiceitemfiltertransactiontype.md new file mode 100644 index 00000000..f65687df --- /dev/null +++ b/docs/models/components/invoiceitemfiltertransactiontype.md @@ -0,0 +1,17 @@ +# InvoiceItemFilterTransactionType + +The kind of transaction, indicating whether it is a sales transaction or a purchase transaction. + +## Example Usage + +```typescript +import { InvoiceItemFilterTransactionType } from "@apideck/unify/models/components"; + +let value: InvoiceItemFilterTransactionType = "purchase"; +``` + +## Values + +```typescript +"sale" | "purchase" +``` \ No newline at end of file diff --git a/docs/models/components/invoiceitemsfilter.md b/docs/models/components/invoiceitemsfilter.md index a4ceb1ce..f7aaac08 100644 --- a/docs/models/components/invoiceitemsfilter.md +++ b/docs/models/components/invoiceitemsfilter.md @@ -8,6 +8,7 @@ import { InvoiceItemsFilter } from "@apideck/unify/models/components"; let value: InvoiceItemsFilter = { name: "Widgets Large", type: "service", + transactionType: "sale", }; ``` @@ -16,4 +17,5 @@ let value: InvoiceItemsFilter = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | | `name` | *string* | :heavy_minus_sign: | Name of Invoice Items to search for | Widgets Large | -| `type` | [components.InvoiceItemType](../../models/components/invoiceitemtype.md) | :heavy_minus_sign: | The type of invoice item, indicating whether it is an inventory item, a service, or another type. | service | \ No newline at end of file +| `type` | [components.InvoiceItemType](../../models/components/invoiceitemtype.md) | :heavy_minus_sign: | The type of invoice item, indicating whether it is an inventory item, a service, or another type. | service | +| `transactionType` | [components.TransactionType](../../models/components/transactiontype.md) | :heavy_minus_sign: | The kind of transaction, indicating whether it is a sales transaction or a purchase transaction. | sale | \ No newline at end of file diff --git a/docs/models/components/invoicelineitem.md b/docs/models/components/invoicelineitem.md index 70cc777f..2a2f2290 100644 --- a/docs/models/components/invoicelineitem.md +++ b/docs/models/components/invoicelineitem.md @@ -4,6 +4,7 @@ ```typescript import { InvoiceLineItem } from "@apideck/unify/models/components"; +import { RFCDate } from "@apideck/unify/types"; let value: InvoiceLineItem = { id: "12345", @@ -20,6 +21,7 @@ let value: InvoiceLineItem = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -94,6 +96,7 @@ let value: InvoiceLineItem = { | `unitOfMeasure` | *string* | :heavy_minus_sign: | Description of the unit type the item is sold as, ie: kg, hour. | pc. | | `discountPercentage` | *number* | :heavy_minus_sign: | Discount percentage applied to the line item when supported downstream. | 0.01 | | `discountAmount` | *number* | :heavy_minus_sign: | Discount amount applied to the line item when supported downstream. | 19.99 | +| `serviceDate` | [RFCDate](../../types/rfcdate.md) | :heavy_minus_sign: | Date on which the service was provided or performed - YYYY-MM-DD. | 2024-01-15 | | `categoryId` | *string* | :heavy_minus_sign: | ID of the category of the line item | 12345 | | `locationId` | *string* | :heavy_minus_sign: | The ID of the location | 12345 | | `departmentId` | *string* | :heavy_minus_sign: | The ID of the department | 12345 | diff --git a/docs/models/components/invoicelineiteminput.md b/docs/models/components/invoicelineiteminput.md index a732d1dc..e1b56e29 100644 --- a/docs/models/components/invoicelineiteminput.md +++ b/docs/models/components/invoicelineiteminput.md @@ -4,6 +4,7 @@ ```typescript import { InvoiceLineItemInput } from "@apideck/unify/models/components"; +import { RFCDate } from "@apideck/unify/types"; let value: InvoiceLineItemInput = { id: "12345", @@ -20,6 +21,7 @@ let value: InvoiceLineItemInput = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -87,6 +89,7 @@ let value: InvoiceLineItemInput = { | `unitOfMeasure` | *string* | :heavy_minus_sign: | Description of the unit type the item is sold as, ie: kg, hour. | pc. | | `discountPercentage` | *number* | :heavy_minus_sign: | Discount percentage applied to the line item when supported downstream. | 0.01 | | `discountAmount` | *number* | :heavy_minus_sign: | Discount amount applied to the line item when supported downstream. | 19.99 | +| `serviceDate` | [RFCDate](../../types/rfcdate.md) | :heavy_minus_sign: | Date on which the service was provided or performed - YYYY-MM-DD. | 2024-01-15 | | `categoryId` | *string* | :heavy_minus_sign: | ID of the category of the line item | 12345 | | `locationId` | *string* | :heavy_minus_sign: | The ID of the location | 12345 | | `departmentId` | *string* | :heavy_minus_sign: | The ID of the department | 12345 | diff --git a/docs/models/components/invoicesfilter.md b/docs/models/components/invoicesfilter.md index 8af6497d..4ed8150b 100644 --- a/docs/models/components/invoicesfilter.md +++ b/docs/models/components/invoicesfilter.md @@ -9,6 +9,7 @@ let value: InvoicesFilter = { updatedSince: new Date("2020-09-30T07:43:32.000Z"), createdSince: new Date("2020-09-30T07:43:32.000Z"), number: "OIT00546", + supplierId: "123", }; ``` @@ -18,4 +19,5 @@ let value: InvoicesFilter = { | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | | `updatedSince` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | 2020-09-30T07:43:32.000Z | | `createdSince` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | 2020-09-30T07:43:32.000Z | -| `number` | *string* | :heavy_minus_sign: | Invoice number to search for | OIT00546 | \ No newline at end of file +| `number` | *string* | :heavy_minus_sign: | Invoice number to search for | OIT00546 | +| `supplierId` | *string* | :heavy_minus_sign: | Supplier ID to filter invoices by | 123 | \ No newline at end of file diff --git a/docs/models/components/job.md b/docs/models/components/job.md index 032d071a..44a6fa1b 100644 --- a/docs/models/components/job.md +++ b/docs/models/components/job.md @@ -96,6 +96,7 @@ let value: Job = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/journalentry.md b/docs/models/components/journalentry.md index 6a1b9a70..b6108a05 100644 --- a/docs/models/components/journalentry.md +++ b/docs/models/components/journalentry.md @@ -7,6 +7,7 @@ import { JournalEntry } from "@apideck/unify/models/components"; let value: JournalEntry = { id: "12345", + downstreamId: "12345", title: "Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry", currencyRate: 0.69, currency: "USD", @@ -61,6 +62,7 @@ let value: JournalEntry = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -93,6 +95,9 @@ let value: JournalEntry = { number: "OIT00546", trackingCategories: null, accountingPeriod: "01-24", + taxInclusive: true, + sourceType: "manual", + sourceId: "12345", updatedBy: "12345", createdBy: "12345", updatedAt: new Date("2020-09-30T07:43:32.000Z"), @@ -129,6 +134,7 @@ let value: JournalEntry = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *string* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | +| `downstreamId` | *string* | :heavy_minus_sign: | The third-party API ID of original entity | 12345 | | `title` | *string* | :heavy_minus_sign: | Journal entry title | Purchase Invoice-Inventory (USD): 2019/02/01 Batch Summary Entry | | `currencyRate` | *number* | :heavy_minus_sign: | Currency Exchange Rate at the time entity was recorded/generated. | 0.69 | | `currency` | [components.Currency](../../models/components/currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | @@ -143,6 +149,9 @@ let value: JournalEntry = { | `number` | *string* | :heavy_minus_sign: | Journal entry number. | OIT00546 | | `trackingCategories` | [components.LinkedTrackingCategory](../../models/components/linkedtrackingcategory.md)[] | :heavy_minus_sign: | A list of linked tracking categories. | | | `accountingPeriod` | *string* | :heavy_minus_sign: | Accounting period | 01-24 | +| `taxInclusive` | *boolean* | :heavy_minus_sign: | Amounts are including tax | true | +| `sourceType` | *string* | :heavy_minus_sign: | The source type of the journal entry | manual | +| `sourceId` | *string* | :heavy_minus_sign: | A unique identifier for the source of the journal entry | 12345 | | `customMappings` | Record | :heavy_minus_sign: | When custom mappings are configured on the resource, the result is included here. | | | `updatedBy` | *string* | :heavy_minus_sign: | The user who last updated the object. | 12345 | | `createdBy` | *string* | :heavy_minus_sign: | The user who created the object. | 12345 | diff --git a/docs/models/components/journalentryinput.md b/docs/models/components/journalentryinput.md index b8029e7a..de2637a2 100644 --- a/docs/models/components/journalentryinput.md +++ b/docs/models/components/journalentryinput.md @@ -52,6 +52,7 @@ let value: JournalEntryInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -91,6 +92,9 @@ let value: JournalEntryInput = { }, ], accountingPeriod: "01-24", + taxInclusive: true, + sourceType: "manual", + sourceId: "12345", rowVersion: "1-12345", customFields: [ { @@ -136,6 +140,9 @@ let value: JournalEntryInput = { | `number` | *string* | :heavy_minus_sign: | Journal entry number. | OIT00546 | | `trackingCategories` | [components.LinkedTrackingCategory](../../models/components/linkedtrackingcategory.md)[] | :heavy_minus_sign: | A list of linked tracking categories. | | | `accountingPeriod` | *string* | :heavy_minus_sign: | Accounting period | 01-24 | +| `taxInclusive` | *boolean* | :heavy_minus_sign: | Amounts are including tax | true | +| `sourceType` | *string* | :heavy_minus_sign: | The source type of the journal entry | manual | +| `sourceId` | *string* | :heavy_minus_sign: | A unique identifier for the source of the journal entry | 12345 | | `rowVersion` | *string* | :heavy_minus_sign: | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | 1-12345 | | `customFields` | [components.CustomField](../../models/components/customfield.md)[] | :heavy_minus_sign: | N/A | | | `passThrough` | [components.PassThroughBody](../../models/components/passthroughbody.md)[] | :heavy_minus_sign: | The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. | | \ No newline at end of file diff --git a/docs/models/components/journalentrylineitem.md b/docs/models/components/journalentrylineitem.md index baba59c0..8288fd97 100644 --- a/docs/models/components/journalentrylineitem.md +++ b/docs/models/components/journalentrylineitem.md @@ -54,6 +54,7 @@ let value: JournalEntryLineItem = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/journalentrylineiteminput.md b/docs/models/components/journalentrylineiteminput.md index 90d0d06f..72eb748c 100644 --- a/docs/models/components/journalentrylineiteminput.md +++ b/docs/models/components/journalentrylineiteminput.md @@ -46,6 +46,7 @@ let value: JournalEntryLineItemInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/lead.md b/docs/models/components/lead.md index 957ce4e1..2849429c 100644 --- a/docs/models/components/lead.md +++ b/docs/models/components/lead.md @@ -41,6 +41,7 @@ let value: Lead = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/leadinput.md b/docs/models/components/leadinput.md index 101ef33f..3a744ebf 100644 --- a/docs/models/components/leadinput.md +++ b/docs/models/components/leadinput.md @@ -40,6 +40,7 @@ let value: LeadInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/ledgeraccounttype.md b/docs/models/components/ledgeraccounttype.md index d8907d50..11913f04 100644 --- a/docs/models/components/ledgeraccounttype.md +++ b/docs/models/components/ledgeraccounttype.md @@ -13,5 +13,5 @@ let value: LedgerAccountType = "bank"; ## Values ```typescript -"accounts_receivable" | "revenue" | "sales" | "other_income" | "bank" | "current_asset" | "fixed_asset" | "non_current_asset" | "other_asset" | "balancesheet" | "equity" | "expense" | "other_expense" | "costs_of_sales" | "accounts_payable" | "credit_card" | "current_liability" | "non_current_liability" | "other_liability" | "other" +"accounts_payable" | "accounts_receivable" | "balancesheet" | "bank" | "costs_of_sales" | "credit_card" | "current_asset" | "current_liability" | "equity" | "expense" | "fixed_asset" | "non_current_asset" | "non_current_liability" | "other_asset" | "other_expense" | "other_income" | "other_liability" | "revenue" | "sales" | "other" ``` \ No newline at end of file diff --git a/docs/models/components/linkedsupplier.md b/docs/models/components/linkedsupplier.md index d8ec0d9d..59542384 100644 --- a/docs/models/components/linkedsupplier.md +++ b/docs/models/components/linkedsupplier.md @@ -21,6 +21,7 @@ let value: LinkedSupplier = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/linkedsupplierinput.md b/docs/models/components/linkedsupplierinput.md index 86776723..088e9ebd 100644 --- a/docs/models/components/linkedsupplierinput.md +++ b/docs/models/components/linkedsupplierinput.md @@ -19,6 +19,7 @@ let value: LinkedSupplierInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/parentproject.md b/docs/models/components/parentproject.md new file mode 100644 index 00000000..3e135a55 --- /dev/null +++ b/docs/models/components/parentproject.md @@ -0,0 +1,21 @@ +# ParentProject + +Parent project if this is a subproject + +## Example Usage + +```typescript +import { ParentProject } from "@apideck/unify/models/components"; + +let value: ParentProject = { + id: "PROJ-PARENT-001", + name: "Company Website Overhaul", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `id` | *string* | :heavy_minus_sign: | Unique identifier for the parent project | PROJ-PARENT-001 | +| `name` | *string* | :heavy_minus_sign: | Name of the parent project | Company Website Overhaul | \ No newline at end of file diff --git a/docs/models/components/priority.md b/docs/models/components/priority.md index cb268f3e..bb9ef904 100644 --- a/docs/models/components/priority.md +++ b/docs/models/components/priority.md @@ -1,6 +1,6 @@ # Priority -Priority of the ticket +Priority level of the project ## Example Usage @@ -13,5 +13,5 @@ let value: Priority = "high"; ## Values ```typescript -"low" | "normal" | "high" | "urgent" +"low" | "medium" | "high" | "critical" ``` \ No newline at end of file diff --git a/docs/models/components/project.md b/docs/models/components/project.md new file mode 100644 index 00000000..eadeceef --- /dev/null +++ b/docs/models/components/project.md @@ -0,0 +1,165 @@ +# Project + +## Example Usage + +```typescript +import { Project } from "@apideck/unify/models/components"; +import { RFCDate } from "@apideck/unify/types"; + +let value: Project = { + id: "12345", + downstreamId: "12345", + name: "Website Redesign Project", + displayId: "PROJ-001", + referenceId: "WD-REF-2024-001", + description: + "Complete redesign of the company website including new branding and improved user experience", + status: "active", + active: true, + projectType: "client_project", + priority: "high", + completionPercentage: 75.5, + startDate: new RFCDate("2024-01-15"), + endDate: new RFCDate("2024-06-30"), + customer: { + id: "12345", + displayId: "CUST00101", + displayName: "Windsurf Shop", + companyName: "The boring company", + email: "boring@boring.com", + }, + department: { + id: "DEPT-001", + name: "Marketing", + }, + companyId: "12345", + ownerId: "12345", + parentProject: { + id: "PROJ-PARENT-001", + name: "Company Website Overhaul", + }, + currency: "USD", + budgetAmount: 50000, + approvedAmount: 48000, + actualAmount: 45250.75, + budgetHours: 400, + actualHours: 385.5, + hourlyRate: 125, + billingMethod: "time_and_materials", + phase: "execution", + taxRate: { + id: "123456", + code: "N-T", + name: "GST on Purchases", + rate: 10, + }, + trackingCategories: [ + { + id: "123456", + name: "New York", + parentId: "123456", + parentName: "New York", + }, + ], + tags: [ + "website", + "redesign", + "urgent", + ], + notes: "Client has requested modern design with mobile-first approach", + contractNumber: "CNT-2024-001", + profitMargin: 15.5, + scheduleStatus: "on_schedule", + addresses: [ + { + id: "123", + type: "primary", + string: "25 Spring Street, Blackburn, VIC 3130", + name: "HQ US", + line1: "Main street", + line2: "apt #", + line3: "Suite #", + line4: "delivery instructions", + line5: "Attention: Finance Dept", + streetNumber: "25", + city: "San Francisco", + state: "CA", + postalCode: "94104", + country: "US", + latitude: "40.759211", + longitude: "-73.984638", + county: "Santa Clara", + contactName: "Elon Musk", + salutation: "Mr", + phoneNumber: "111-111-1111", + fax: "122-111-1111", + email: "elon@musk.com", + website: "https://elonmusk.com", + notes: "Address notes or delivery instructions.", + rowVersion: "1-12345", + }, + ], + teamSize: 8, + customFields: [ + { + id: "2389328923893298", + name: "employee_level", + description: "Employee Level", + value: "Uses Salesforce and Marketo", + }, + ], + rowVersion: "1-12345", + updatedBy: "12345", + createdBy: "12345", + createdAt: new Date("2020-09-30T07:43:32.000Z"), + updatedAt: new Date("2020-09-30T07:43:32.000Z"), +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | +| `id` | *string* | :heavy_minus_sign: | A unique identifier for an object. | 12345 | +| `downstreamId` | *string* | :heavy_minus_sign: | The third-party API ID of original entity | 12345 | +| `name` | *string* | :heavy_check_mark: | Name of the project | Website Redesign Project | +| `displayId` | *string* | :heavy_minus_sign: | User-friendly project identifier | PROJ-001 | +| `referenceId` | *string* | :heavy_minus_sign: | External reference identifier for the project | WD-REF-2024-001 | +| `description` | *string* | :heavy_minus_sign: | Detailed description of the project | Complete redesign of the company website including new branding and improved user experience | +| `status` | [components.ProjectProjectStatus](../../models/components/projectprojectstatus.md) | :heavy_minus_sign: | Current status of the project | active | +| `active` | *boolean* | :heavy_minus_sign: | Indicates whether the project is currently active or inactive | true | +| `projectType` | [components.ProjectType](../../models/components/projecttype.md) | :heavy_minus_sign: | Type or category of the project | client_project | +| `priority` | [components.Priority](../../models/components/priority.md) | :heavy_minus_sign: | Priority level of the project | high | +| `completionPercentage` | *number* | :heavy_minus_sign: | Percentage of project completion (0-100) | 75.5 | +| `startDate` | [RFCDate](../../types/rfcdate.md) | :heavy_minus_sign: | Start date of the project | 2024-01-15 | +| `endDate` | [RFCDate](../../types/rfcdate.md) | :heavy_minus_sign: | Expected or actual end date of the project | 2024-06-30 | +| `customer` | [components.LinkedCustomer](../../models/components/linkedcustomer.md) | :heavy_minus_sign: | The customer this entity is linked to. | | +| `department` | [components.ProjectDepartment](../../models/components/projectdepartment.md) | :heavy_minus_sign: | Department or organizational unit associated with the project | | +| `companyId` | *string* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | +| `ownerId` | *string* | :heavy_minus_sign: | ID of the user who owns/manages this project | 12345 | +| `parentProject` | [components.ParentProject](../../models/components/parentproject.md) | :heavy_minus_sign: | Parent project if this is a subproject | | +| `currency` | [components.Currency](../../models/components/currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | +| `budgetAmount` | *number* | :heavy_minus_sign: | Total budgeted amount for the project | 50000 | +| `approvedAmount` | *number* | :heavy_minus_sign: | Approved budget amount for the project | 48000 | +| `actualAmount` | *number* | :heavy_minus_sign: | Total actual amount spent on the project | 45250.75 | +| `budgetHours` | *number* | :heavy_minus_sign: | Total budgeted hours for the project | 400 | +| `actualHours` | *number* | :heavy_minus_sign: | Total actual hours worked on the project | 385.5 | +| `hourlyRate` | *number* | :heavy_minus_sign: | Default hourly rate for project work | 125 | +| `billingMethod` | [components.BillingMethod](../../models/components/billingmethod.md) | :heavy_minus_sign: | Method used for billing this project | time_and_materials | +| `isBillable` | *boolean* | :heavy_minus_sign: | Indicates if the project is billable to the customer | true | +| `phase` | [components.ProjectPhase](../../models/components/projectphase.md) | :heavy_minus_sign: | Current phase of the project lifecycle | execution | +| `taxRate` | [components.LinkedTaxRate](../../models/components/linkedtaxrate.md) | :heavy_minus_sign: | N/A | | +| `trackingCategories` | [components.LinkedTrackingCategory](../../models/components/linkedtrackingcategory.md)[] | :heavy_minus_sign: | A list of linked tracking categories. | | +| `tags` | *string*[] | :heavy_minus_sign: | Tags associated with the project | [
"website",
"redesign",
"urgent"
] | +| `notes` | *string* | :heavy_minus_sign: | Additional notes about the project | Client has requested modern design with mobile-first approach | +| `contractNumber` | *string* | :heavy_minus_sign: | Contract or agreement number associated with the project | CNT-2024-001 | +| `profitMargin` | *number* | :heavy_minus_sign: | Expected profit margin percentage for the project | 15.5 | +| `scheduleStatus` | [components.ScheduleStatus](../../models/components/schedulestatus.md) | :heavy_minus_sign: | Current status of project schedule compared to plan | on_schedule | +| `addresses` | [components.Address](../../models/components/address.md)[] | :heavy_minus_sign: | An array of addresses associated with the project (billing, job site, etc.) | | +| `teamSize` | *number* | :heavy_minus_sign: | Number of team members assigned to the project | 8 | +| `customFields` | [components.CustomField](../../models/components/customfield.md)[] | :heavy_minus_sign: | N/A | | +| `rowVersion` | *string* | :heavy_minus_sign: | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | 1-12345 | +| `updatedBy` | *string* | :heavy_minus_sign: | The user who last updated the object. | 12345 | +| `createdBy` | *string* | :heavy_minus_sign: | The user who created the object. | 12345 | +| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date and time when the object was created. | 2020-09-30T07:43:32.000Z | +| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date and time when the object was last updated. | 2020-09-30T07:43:32.000Z | \ No newline at end of file diff --git a/docs/models/components/projectdepartment.md b/docs/models/components/projectdepartment.md new file mode 100644 index 00000000..1b567cf1 --- /dev/null +++ b/docs/models/components/projectdepartment.md @@ -0,0 +1,21 @@ +# ProjectDepartment + +Department or organizational unit associated with the project + +## Example Usage + +```typescript +import { ProjectDepartment } from "@apideck/unify/models/components"; + +let value: ProjectDepartment = { + id: "DEPT-001", + name: "Marketing", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `id` | *string* | :heavy_minus_sign: | Unique identifier for the department | DEPT-001 | +| `name` | *string* | :heavy_minus_sign: | Name of the department | Marketing | \ No newline at end of file diff --git a/docs/models/components/projectinput.md b/docs/models/components/projectinput.md new file mode 100644 index 00000000..71bd1d5a --- /dev/null +++ b/docs/models/components/projectinput.md @@ -0,0 +1,145 @@ +# ProjectInput + +## Example Usage + +```typescript +import { ProjectInput } from "@apideck/unify/models/components"; +import { RFCDate } from "@apideck/unify/types"; + +let value: ProjectInput = { + name: "Website Redesign Project", + displayId: "PROJ-001", + referenceId: "WD-REF-2024-001", + description: + "Complete redesign of the company website including new branding and improved user experience", + status: "active", + active: true, + projectType: "client_project", + priority: "high", + completionPercentage: 75.5, + startDate: new RFCDate("2024-01-15"), + endDate: new RFCDate("2024-06-30"), + customer: { + id: "12345", + displayName: "Windsurf Shop", + email: "boring@boring.com", + }, + department: { + id: "DEPT-001", + name: "Marketing", + }, + companyId: "12345", + ownerId: "12345", + parentProject: { + id: "PROJ-PARENT-001", + name: "Company Website Overhaul", + }, + currency: "USD", + budgetAmount: 50000, + approvedAmount: 48000, + budgetHours: 400, + hourlyRate: 125, + billingMethod: "time_and_materials", + phase: "execution", + taxRate: { + id: "123456", + rate: 10, + }, + trackingCategories: [ + { + id: "123456", + name: "New York", + parentId: "123456", + parentName: "New York", + }, + ], + tags: [ + "website", + "redesign", + "urgent", + ], + notes: "Client has requested modern design with mobile-first approach", + contractNumber: "CNT-2024-001", + profitMargin: 15.5, + scheduleStatus: "on_schedule", + addresses: [ + { + id: "123", + type: "primary", + string: "25 Spring Street, Blackburn, VIC 3130", + name: "HQ US", + line1: "Main street", + line2: "apt #", + line3: "Suite #", + line4: "delivery instructions", + line5: "Attention: Finance Dept", + streetNumber: "25", + city: "San Francisco", + state: "CA", + postalCode: "94104", + country: "US", + latitude: "40.759211", + longitude: "-73.984638", + county: "Santa Clara", + contactName: "Elon Musk", + salutation: "Mr", + phoneNumber: "111-111-1111", + fax: "122-111-1111", + email: "elon@musk.com", + website: "https://elonmusk.com", + notes: "Address notes or delivery instructions.", + rowVersion: "1-12345", + }, + ], + teamSize: 8, + customFields: [ + { + id: "2389328923893298", + name: "employee_level", + description: "Employee Level", + value: "Uses Salesforce and Marketo", + }, + ], + rowVersion: "1-12345", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | +| `name` | *string* | :heavy_check_mark: | Name of the project | Website Redesign Project | +| `displayId` | *string* | :heavy_minus_sign: | User-friendly project identifier | PROJ-001 | +| `referenceId` | *string* | :heavy_minus_sign: | External reference identifier for the project | WD-REF-2024-001 | +| `description` | *string* | :heavy_minus_sign: | Detailed description of the project | Complete redesign of the company website including new branding and improved user experience | +| `status` | [components.ProjectProjectStatus](../../models/components/projectprojectstatus.md) | :heavy_minus_sign: | Current status of the project | active | +| `active` | *boolean* | :heavy_minus_sign: | Indicates whether the project is currently active or inactive | true | +| `projectType` | [components.ProjectType](../../models/components/projecttype.md) | :heavy_minus_sign: | Type or category of the project | client_project | +| `priority` | [components.Priority](../../models/components/priority.md) | :heavy_minus_sign: | Priority level of the project | high | +| `completionPercentage` | *number* | :heavy_minus_sign: | Percentage of project completion (0-100) | 75.5 | +| `startDate` | [RFCDate](../../types/rfcdate.md) | :heavy_minus_sign: | Start date of the project | 2024-01-15 | +| `endDate` | [RFCDate](../../types/rfcdate.md) | :heavy_minus_sign: | Expected or actual end date of the project | 2024-06-30 | +| `customer` | [components.LinkedCustomerInput](../../models/components/linkedcustomerinput.md) | :heavy_minus_sign: | The customer this entity is linked to. | | +| `department` | [components.ProjectDepartment](../../models/components/projectdepartment.md) | :heavy_minus_sign: | Department or organizational unit associated with the project | | +| `companyId` | *string* | :heavy_minus_sign: | The company ID the transaction belongs to | 12345 | +| `ownerId` | *string* | :heavy_minus_sign: | ID of the user who owns/manages this project | 12345 | +| `parentProject` | [components.ParentProject](../../models/components/parentproject.md) | :heavy_minus_sign: | Parent project if this is a subproject | | +| `currency` | [components.Currency](../../models/components/currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | +| `budgetAmount` | *number* | :heavy_minus_sign: | Total budgeted amount for the project | 50000 | +| `approvedAmount` | *number* | :heavy_minus_sign: | Approved budget amount for the project | 48000 | +| `budgetHours` | *number* | :heavy_minus_sign: | Total budgeted hours for the project | 400 | +| `hourlyRate` | *number* | :heavy_minus_sign: | Default hourly rate for project work | 125 | +| `billingMethod` | [components.BillingMethod](../../models/components/billingmethod.md) | :heavy_minus_sign: | Method used for billing this project | time_and_materials | +| `isBillable` | *boolean* | :heavy_minus_sign: | Indicates if the project is billable to the customer | true | +| `phase` | [components.ProjectPhase](../../models/components/projectphase.md) | :heavy_minus_sign: | Current phase of the project lifecycle | execution | +| `taxRate` | [components.LinkedTaxRateInput](../../models/components/linkedtaxrateinput.md) | :heavy_minus_sign: | N/A | | +| `trackingCategories` | [components.LinkedTrackingCategory](../../models/components/linkedtrackingcategory.md)[] | :heavy_minus_sign: | A list of linked tracking categories. | | +| `tags` | *string*[] | :heavy_minus_sign: | Tags associated with the project | [
"website",
"redesign",
"urgent"
] | +| `notes` | *string* | :heavy_minus_sign: | Additional notes about the project | Client has requested modern design with mobile-first approach | +| `contractNumber` | *string* | :heavy_minus_sign: | Contract or agreement number associated with the project | CNT-2024-001 | +| `profitMargin` | *number* | :heavy_minus_sign: | Expected profit margin percentage for the project | 15.5 | +| `scheduleStatus` | [components.ScheduleStatus](../../models/components/schedulestatus.md) | :heavy_minus_sign: | Current status of project schedule compared to plan | on_schedule | +| `addresses` | [components.Address](../../models/components/address.md)[] | :heavy_minus_sign: | An array of addresses associated with the project (billing, job site, etc.) | | +| `teamSize` | *number* | :heavy_minus_sign: | Number of team members assigned to the project | 8 | +| `customFields` | [components.CustomField](../../models/components/customfield.md)[] | :heavy_minus_sign: | N/A | | +| `rowVersion` | *string* | :heavy_minus_sign: | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | 1-12345 | \ No newline at end of file diff --git a/docs/models/components/projectphase.md b/docs/models/components/projectphase.md new file mode 100644 index 00000000..5fc00852 --- /dev/null +++ b/docs/models/components/projectphase.md @@ -0,0 +1,17 @@ +# ProjectPhase + +Current phase of the project lifecycle + +## Example Usage + +```typescript +import { ProjectPhase } from "@apideck/unify/models/components"; + +let value: ProjectPhase = "execution"; +``` + +## Values + +```typescript +"initiation" | "planning" | "execution" | "monitoring" | "closure" | "other" +``` \ No newline at end of file diff --git a/docs/models/components/projectprojectstatus.md b/docs/models/components/projectprojectstatus.md new file mode 100644 index 00000000..0a80056c --- /dev/null +++ b/docs/models/components/projectprojectstatus.md @@ -0,0 +1,17 @@ +# ProjectProjectStatus + +Current status of the project + +## Example Usage + +```typescript +import { ProjectProjectStatus } from "@apideck/unify/models/components"; + +let value: ProjectProjectStatus = "active"; +``` + +## Values + +```typescript +"active" | "completed" | "on_hold" | "cancelled" | "draft" | "in_progress" | "approved" | "other" +``` \ No newline at end of file diff --git a/docs/models/components/projectsfilter.md b/docs/models/components/projectsfilter.md new file mode 100644 index 00000000..4aeb8543 --- /dev/null +++ b/docs/models/components/projectsfilter.md @@ -0,0 +1,23 @@ +# ProjectsFilter + +## Example Usage + +```typescript +import { ProjectsFilter } from "@apideck/unify/models/components"; + +let value: ProjectsFilter = { + name: "Website Redesign", + status: "active", + customerId: "12345", + updatedSince: new Date("2020-09-30T07:43:32.000Z"), +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `name` | *string* | :heavy_minus_sign: | Name of project to search for | Website Redesign | +| `status` | [components.ProjectStatus](../../models/components/projectstatus.md) | :heavy_minus_sign: | Status of projects to filter by | active | +| `customerId` | *string* | :heavy_minus_sign: | Filter projects by customer ID | 12345 | +| `updatedSince` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Return projects modified after this date | 2020-09-30T07:43:32.000Z | \ No newline at end of file diff --git a/docs/models/components/projectssort.md b/docs/models/components/projectssort.md new file mode 100644 index 00000000..5d53d204 --- /dev/null +++ b/docs/models/components/projectssort.md @@ -0,0 +1,18 @@ +# ProjectsSort + +## Example Usage + +```typescript +import { ProjectsSort } from "@apideck/unify/models/components"; + +let value: ProjectsSort = { + by: "name", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `by` | [components.ProjectsSortSortBy](../../models/components/projectssortsortby.md) | :heavy_minus_sign: | The field to sort by | name | +| `direction` | [components.SortDirection](../../models/components/sortdirection.md) | :heavy_minus_sign: | The direction in which to sort the results | | \ No newline at end of file diff --git a/docs/models/components/projectssortsortby.md b/docs/models/components/projectssortsortby.md new file mode 100644 index 00000000..d9ee9387 --- /dev/null +++ b/docs/models/components/projectssortsortby.md @@ -0,0 +1,17 @@ +# ProjectsSortSortBy + +The field to sort by + +## Example Usage + +```typescript +import { ProjectsSortSortBy } from "@apideck/unify/models/components"; + +let value: ProjectsSortSortBy = "name"; +``` + +## Values + +```typescript +"name" | "status" | "start_date" | "end_date" | "budget_amount" | "actual_amount" | "created_at" | "updated_at" +``` \ No newline at end of file diff --git a/docs/models/components/projectstatus.md b/docs/models/components/projectstatus.md new file mode 100644 index 00000000..3440e36b --- /dev/null +++ b/docs/models/components/projectstatus.md @@ -0,0 +1,17 @@ +# ProjectStatus + +Status of projects to filter by + +## Example Usage + +```typescript +import { ProjectStatus } from "@apideck/unify/models/components"; + +let value: ProjectStatus = "active"; +``` + +## Values + +```typescript +"active" | "completed" | "on_hold" | "cancelled" | "draft" +``` \ No newline at end of file diff --git a/docs/models/components/projecttype.md b/docs/models/components/projecttype.md new file mode 100644 index 00000000..50ba6b44 --- /dev/null +++ b/docs/models/components/projecttype.md @@ -0,0 +1,17 @@ +# ProjectType + +Type or category of the project + +## Example Usage + +```typescript +import { ProjectType } from "@apideck/unify/models/components"; + +let value: ProjectType = "client_project"; +``` + +## Values + +```typescript +"client_project" | "internal_project" | "maintenance" | "research_development" | "training" | "other" +``` \ No newline at end of file diff --git a/docs/models/components/purchaseorder.md b/docs/models/components/purchaseorder.md index b5d80c37..c8d8e788 100644 --- a/docs/models/components/purchaseorder.md +++ b/docs/models/components/purchaseorder.md @@ -25,6 +25,7 @@ let value: PurchaseOrder = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -72,6 +73,7 @@ let value: PurchaseOrder = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -137,6 +139,7 @@ let value: PurchaseOrder = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -163,6 +166,7 @@ let value: PurchaseOrder = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/purchaseorderinput.md b/docs/models/components/purchaseorderinput.md index ef7fee20..abb626f1 100644 --- a/docs/models/components/purchaseorderinput.md +++ b/docs/models/components/purchaseorderinput.md @@ -21,6 +21,7 @@ let value: PurchaseOrderInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -68,6 +69,7 @@ let value: PurchaseOrderInput = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -126,6 +128,7 @@ let value: PurchaseOrderInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -152,6 +155,7 @@ let value: PurchaseOrderInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/quote.md b/docs/models/components/quote.md index c8cce28d..8bcfc6d8 100644 --- a/docs/models/components/quote.md +++ b/docs/models/components/quote.md @@ -53,6 +53,7 @@ let value: Quote = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -105,6 +106,7 @@ let value: Quote = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -131,6 +133,7 @@ let value: Quote = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/quoteinput.md b/docs/models/components/quoteinput.md index d4e6444f..5261f544 100644 --- a/docs/models/components/quoteinput.md +++ b/docs/models/components/quoteinput.md @@ -48,6 +48,7 @@ let value: QuoteInput = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -93,6 +94,7 @@ let value: QuoteInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -119,6 +121,7 @@ let value: QuoteInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/quotelineitem.md b/docs/models/components/quotelineitem.md index d81529e0..a9ba55bb 100644 --- a/docs/models/components/quotelineitem.md +++ b/docs/models/components/quotelineitem.md @@ -4,6 +4,7 @@ ```typescript import { QuoteLineItem } from "@apideck/unify/models/components"; +import { RFCDate } from "@apideck/unify/types"; let value: QuoteLineItem = { id: "12345", @@ -20,6 +21,7 @@ let value: QuoteLineItem = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -81,6 +83,7 @@ let value: QuoteLineItem = { | `unitOfMeasure` | *string* | :heavy_minus_sign: | Description of the unit type the item is sold as, ie: kg, hour. | pc. | | `discountPercentage` | *number* | :heavy_minus_sign: | Discount percentage applied to the line item when supported downstream. | 0.01 | | `discountAmount` | *number* | :heavy_minus_sign: | Discount amount applied to the line item when supported downstream. | 19.99 | +| `serviceDate` | [RFCDate](../../types/rfcdate.md) | :heavy_minus_sign: | Date on which the service was provided or performed - YYYY-MM-DD. | 2024-01-15 | | `categoryId` | *string* | :heavy_minus_sign: | ID of the category of the line item | 12345 | | `locationId` | *string* | :heavy_minus_sign: | The ID of the location | 12345 | | `departmentId` | *string* | :heavy_minus_sign: | The ID of the department | 12345 | diff --git a/docs/models/components/quotelineiteminput.md b/docs/models/components/quotelineiteminput.md index 0f505e1c..41251155 100644 --- a/docs/models/components/quotelineiteminput.md +++ b/docs/models/components/quotelineiteminput.md @@ -4,6 +4,7 @@ ```typescript import { QuoteLineItemInput } from "@apideck/unify/models/components"; +import { RFCDate } from "@apideck/unify/types"; let value: QuoteLineItemInput = { id: "12345", @@ -20,6 +21,7 @@ let value: QuoteLineItemInput = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -74,6 +76,7 @@ let value: QuoteLineItemInput = { | `unitOfMeasure` | *string* | :heavy_minus_sign: | Description of the unit type the item is sold as, ie: kg, hour. | pc. | | `discountPercentage` | *number* | :heavy_minus_sign: | Discount percentage applied to the line item when supported downstream. | 0.01 | | `discountAmount` | *number* | :heavy_minus_sign: | Discount amount applied to the line item when supported downstream. | 19.99 | +| `serviceDate` | [RFCDate](../../types/rfcdate.md) | :heavy_minus_sign: | Date on which the service was provided or performed - YYYY-MM-DD. | 2024-01-15 | | `categoryId` | *string* | :heavy_minus_sign: | ID of the category of the line item | 12345 | | `locationId` | *string* | :heavy_minus_sign: | The ID of the location | 12345 | | `departmentId` | *string* | :heavy_minus_sign: | The ID of the department | 12345 | diff --git a/docs/models/components/schedulestatus.md b/docs/models/components/schedulestatus.md new file mode 100644 index 00000000..afa73a90 --- /dev/null +++ b/docs/models/components/schedulestatus.md @@ -0,0 +1,17 @@ +# ScheduleStatus + +Current status of project schedule compared to plan + +## Example Usage + +```typescript +import { ScheduleStatus } from "@apideck/unify/models/components"; + +let value: ScheduleStatus = "on_schedule"; +``` + +## Values + +```typescript +"ahead_of_schedule" | "on_schedule" | "behind_schedule" | "critical_delay" +``` \ No newline at end of file diff --git a/docs/models/components/supplier.md b/docs/models/components/supplier.md index 2e28ff8b..baa39aae 100644 --- a/docs/models/components/supplier.md +++ b/docs/models/components/supplier.md @@ -29,6 +29,7 @@ let value: Supplier = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/supplierinput.md b/docs/models/components/supplierinput.md index 16cbf7d4..14f7292f 100644 --- a/docs/models/components/supplierinput.md +++ b/docs/models/components/supplierinput.md @@ -27,6 +27,7 @@ let value: SupplierInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/ticket.md b/docs/models/components/ticket.md index 15e9931a..05f7c0a0 100644 --- a/docs/models/components/ticket.md +++ b/docs/models/components/ticket.md @@ -60,7 +60,7 @@ let value: Ticket = { | `subject` | *string* | :heavy_minus_sign: | Subject of the ticket | Technical Support Request | | `description` | *string* | :heavy_minus_sign: | The ticket's description. HTML version of description is mapped if supported by the third-party platform | I am facing issues with my internet connection | | `status` | *string* | :heavy_minus_sign: | The current status of the ticket. Possible values include: open, in_progress, closed, or - in cases where there is no clear mapping - the original value passed through. | open | -| `priority` | [components.Priority](../../models/components/priority.md) | :heavy_minus_sign: | Priority of the ticket | high | +| `priority` | [components.TicketPriority](../../models/components/ticketpriority.md) | :heavy_minus_sign: | Priority of the ticket | high | | `assignees` | [components.Assignee](../../models/components/assignee.md)[] | :heavy_minus_sign: | N/A | | | `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date and time when the object was last updated. | 2020-09-30T07:43:32.000Z | | `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The date and time when the object was created. | 2020-09-30T07:43:32.000Z | diff --git a/docs/models/components/ticketinput.md b/docs/models/components/ticketinput.md index 039338e1..eae5c84d 100644 --- a/docs/models/components/ticketinput.md +++ b/docs/models/components/ticketinput.md @@ -50,7 +50,7 @@ let value: TicketInput = { | `subject` | *string* | :heavy_minus_sign: | Subject of the ticket | Technical Support Request | | `description` | *string* | :heavy_minus_sign: | The ticket's description. HTML version of description is mapped if supported by the third-party platform | I am facing issues with my internet connection | | `status` | *string* | :heavy_minus_sign: | The current status of the ticket. Possible values include: open, in_progress, closed, or - in cases where there is no clear mapping - the original value passed through. | open | -| `priority` | [components.Priority](../../models/components/priority.md) | :heavy_minus_sign: | Priority of the ticket | high | +| `priority` | [components.TicketPriority](../../models/components/ticketpriority.md) | :heavy_minus_sign: | Priority of the ticket | high | | `assignees` | [components.AssigneeInput](../../models/components/assigneeinput.md)[] | :heavy_minus_sign: | N/A | | | `dueDate` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Due date of the ticket | 2020-09-30T07:43:32.000Z | | `tags` | [components.CollectionTagInput](../../models/components/collectiontaginput.md)[] | :heavy_minus_sign: | N/A | | diff --git a/docs/models/components/ticketpriority.md b/docs/models/components/ticketpriority.md new file mode 100644 index 00000000..56e103f2 --- /dev/null +++ b/docs/models/components/ticketpriority.md @@ -0,0 +1,17 @@ +# TicketPriority + +Priority of the ticket + +## Example Usage + +```typescript +import { TicketPriority } from "@apideck/unify/models/components"; + +let value: TicketPriority = "high"; +``` + +## Values + +```typescript +"low" | "normal" | "high" | "urgent" +``` \ No newline at end of file diff --git a/docs/models/components/transactiontype.md b/docs/models/components/transactiontype.md index c3823cd6..9a14438b 100644 --- a/docs/models/components/transactiontype.md +++ b/docs/models/components/transactiontype.md @@ -1,17 +1,17 @@ # TransactionType -Type of the transaction. +The kind of transaction, indicating whether it is a sales transaction or a purchase transaction. ## Example Usage ```typescript import { TransactionType } from "@apideck/unify/models/components"; -let value: TransactionType = "invoice"; +let value: TransactionType = "sale"; ``` ## Values ```typescript -"invoice" | "credit_note" | "bill" | "payment" | "bill_payment" +"sale" | "purchase" ``` \ No newline at end of file diff --git a/docs/models/components/updateconnectionresponse.md b/docs/models/components/updateconnectionresponse.md index 5ad8726e..88b3387b 100644 --- a/docs/models/components/updateconnectionresponse.md +++ b/docs/models/components/updateconnectionresponse.md @@ -74,14 +74,7 @@ let value: UpdateConnectionResponse = { options: [ { label: "General Channel", - options: [ - { - label: "General Channel", - value: "general", - optionType: "simple", - }, - ], - optionType: "group", + optionType: "simple", }, ], value: "GC5000 series", diff --git a/docs/models/components/updateprojectresponse.md b/docs/models/components/updateprojectresponse.md new file mode 100644 index 00000000..bc7dc3cd --- /dev/null +++ b/docs/models/components/updateprojectresponse.md @@ -0,0 +1,31 @@ +# UpdateProjectResponse + +Projects + +## Example Usage + +```typescript +import { UpdateProjectResponse } from "@apideck/unify/models/components"; + +let value: UpdateProjectResponse = { + statusCode: 200, + status: "OK", + service: "quickbooks", + resource: "Projects", + operation: "update", + data: { + id: "12345", + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `statusCode` | *number* | :heavy_check_mark: | HTTP Response Status Code | 200 | +| `status` | *string* | :heavy_check_mark: | HTTP Response Status | OK | +| `service` | *string* | :heavy_check_mark: | Apideck ID of service provider | quickbooks | +| `resource` | *string* | :heavy_check_mark: | Unified API resource name | Projects | +| `operation` | *string* | :heavy_check_mark: | Operation performed | update | +| `data` | [components.UnifiedId](../../models/components/unifiedid.md) | :heavy_check_mark: | A object containing a unique identifier for the resource that was created, updated, or deleted. | | \ No newline at end of file diff --git a/docs/models/components/user.md b/docs/models/components/user.md index f0b77445..3f338b27 100644 --- a/docs/models/components/user.md +++ b/docs/models/components/user.md @@ -29,6 +29,7 @@ let value: User = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/userinput.md b/docs/models/components/userinput.md index 4cdee137..0442a295 100644 --- a/docs/models/components/userinput.md +++ b/docs/models/components/userinput.md @@ -29,6 +29,7 @@ let value: UserInput = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/components/webhookeventtype.md b/docs/models/components/webhookeventtype.md index 98aa92f3..500cc4f1 100644 --- a/docs/models/components/webhookeventtype.md +++ b/docs/models/components/webhookeventtype.md @@ -11,5 +11,5 @@ let value: WebhookEventType = "crm.company.created"; ## Values ```typescript -"*" | "crm.activity.created" | "crm.activity.updated" | "crm.activity.deleted" | "crm.company.created" | "crm.company.updated" | "crm.company.deleted" | "crm.contact.created" | "crm.contact.updated" | "crm.contact.deleted" | "crm.lead.created" | "crm.lead.updated" | "crm.lead.deleted" | "crm.note.created" | "crm.note.updated" | "crm.note.deleted" | "crm.opportunity.created" | "crm.opportunity.updated" | "crm.opportunity.deleted" | "lead.lead.created" | "lead.lead.updated" | "lead.lead.deleted" | "vault.connection.created" | "vault.connection.updated" | "vault.connection.disabled" | "vault.connection.deleted" | "vault.connection.callable" | "vault.connection.revoked" | "vault.connection.token_refresh.failed" | "ats.job.created" | "ats.job.updated" | "ats.job.deleted" | "ats.applicant.created" | "ats.applicant.updated" | "ats.applicant.deleted" | "accounting.customer.created" | "accounting.customer.updated" | "accounting.customer.deleted" | "accounting.invoice.created" | "accounting.invoice.updated" | "accounting.invoice.deleted" | "accounting.invoice_item.created" | "accounting.invoice_item.updated" | "accounting.invoice_item.deleted" | "accounting.ledger_account.created" | "accounting.ledger_account.updated" | "accounting.ledger_account.deleted" | "accounting.tax_rate.created" | "accounting.tax_rate.updated" | "accounting.tax_rate.deleted" | "accounting.bill.created" | "accounting.bill.updated" | "accounting.bill.deleted" | "accounting.payment.created" | "accounting.payment.updated" | "accounting.payment.deleted" | "accounting.supplier.created" | "accounting.supplier.updated" | "accounting.supplier.deleted" | "accounting.purchase_order.created" | "accounting.purchase_order.updated" | "accounting.purchase_order.deleted" | "accounting.credit_note.created" | "accounting.credit_note.updated" | "accounting.credit_note.deleted" | "pos.order.created" | "pos.order.updated" | "pos.order.deleted" | "pos.product.created" | "pos.product.updated" | "pos.product.deleted" | "pos.payment.created" | "pos.payment.updated" | "pos.payment.deleted" | "pos.merchant.created" | "pos.merchant.updated" | "pos.merchant.deleted" | "pos.location.created" | "pos.location.updated" | "pos.location.deleted" | "pos.item.created" | "pos.item.updated" | "pos.item.deleted" | "pos.modifier.created" | "pos.modifier.updated" | "pos.modifier.deleted" | "pos.modifier-group.created" | "pos.modifier-group.updated" | "pos.modifier-group.deleted" | "hris.employee.created" | "hris.employee.updated" | "hris.employee.deleted" | "hris.employee.terminated" | "hris.company.created" | "hris.company.updated" | "hris.company.deleted" | "file-storage.file.created" | "file-storage.file.updated" | "file-storage.file.deleted" | "file-storage.drive.updated" | "issue-tracking.ticket.created" | "issue-tracking.ticket.updated" | "issue-tracking.ticket.deleted" | "ats.application.created" | "ats.application.updated" | "ats.application.deleted" | "accounting.expense.created" | "accounting.expense.updated" | "accounting.expense.deleted" | "ecommerce.order.created" | "ecommerce.order.updated" | "ecommerce.order.deleted" | "ecommerce.product.created" | "ecommerce.product.updated" | "ecommerce.product.deleted" | "ecommerce.customer.created" | "ecommerce.customer.updated" | "ecommerce.customer.deleted" | "accounting.quote.created" | "accounting.quote.updated" | "accounting.quote.deleted" +"*" | "crm.activity.created" | "crm.activity.updated" | "crm.activity.deleted" | "crm.company.created" | "crm.company.updated" | "crm.company.deleted" | "crm.contact.created" | "crm.contact.updated" | "crm.contact.deleted" | "crm.lead.created" | "crm.lead.updated" | "crm.lead.deleted" | "crm.note.created" | "crm.note.updated" | "crm.note.deleted" | "crm.opportunity.created" | "crm.opportunity.updated" | "crm.opportunity.deleted" | "lead.lead.created" | "lead.lead.updated" | "lead.lead.deleted" | "vault.connection.created" | "vault.connection.updated" | "vault.connection.disabled" | "vault.connection.deleted" | "vault.connection.callable" | "vault.connection.revoked" | "vault.connection.token_refresh.failed" | "ats.job.created" | "ats.job.updated" | "ats.job.deleted" | "ats.applicant.created" | "ats.applicant.updated" | "ats.applicant.deleted" | "accounting.customer.created" | "accounting.customer.updated" | "accounting.customer.deleted" | "accounting.invoice.created" | "accounting.invoice.updated" | "accounting.invoice.deleted" | "accounting.invoice_item.created" | "accounting.invoice_item.updated" | "accounting.invoice_item.deleted" | "accounting.ledger_account.created" | "accounting.ledger_account.updated" | "accounting.ledger_account.deleted" | "accounting.tax_rate.created" | "accounting.tax_rate.updated" | "accounting.tax_rate.deleted" | "accounting.bill.created" | "accounting.bill.updated" | "accounting.bill.deleted" | "accounting.payment.created" | "accounting.payment.updated" | "accounting.payment.deleted" | "accounting.supplier.created" | "accounting.supplier.updated" | "accounting.supplier.deleted" | "accounting.purchase_order.created" | "accounting.purchase_order.updated" | "accounting.purchase_order.deleted" | "accounting.credit_note.created" | "accounting.credit_note.updated" | "accounting.credit_note.deleted" | "pos.order.created" | "pos.order.updated" | "pos.order.deleted" | "pos.product.created" | "pos.product.updated" | "pos.product.deleted" | "pos.payment.created" | "pos.payment.updated" | "pos.payment.deleted" | "pos.merchant.created" | "pos.merchant.updated" | "pos.merchant.deleted" | "pos.location.created" | "pos.location.updated" | "pos.location.deleted" | "pos.item.created" | "pos.item.updated" | "pos.item.deleted" | "pos.modifier.created" | "pos.modifier.updated" | "pos.modifier.deleted" | "pos.modifier-group.created" | "pos.modifier-group.updated" | "pos.modifier-group.deleted" | "hris.employee.created" | "hris.employee.updated" | "hris.employee.deleted" | "hris.employee.terminated" | "hris.company.created" | "hris.company.updated" | "hris.company.deleted" | "file-storage.file.created" | "file-storage.file.updated" | "file-storage.file.deleted" | "file-storage.drive.updated" | "issue-tracking.ticket.created" | "issue-tracking.ticket.updated" | "issue-tracking.ticket.deleted" | "ats.application.created" | "ats.application.updated" | "ats.application.deleted" | "accounting.expense.created" | "accounting.expense.updated" | "accounting.expense.deleted" | "ecommerce.order.created" | "ecommerce.order.updated" | "ecommerce.order.deleted" | "ecommerce.product.created" | "ecommerce.product.updated" | "ecommerce.product.deleted" | "ecommerce.customer.created" | "ecommerce.customer.updated" | "ecommerce.customer.deleted" | "accounting.quote.created" | "accounting.quote.updated" | "accounting.quote.deleted" | "accounting.project.created" | "accounting.project.updated" | "accounting.project.deleted" ``` \ No newline at end of file diff --git a/docs/models/operations/accountingbillpaymentsaddrequest.md b/docs/models/operations/accountingbillpaymentsaddrequest.md index 936742f4..c6ad4e5f 100644 --- a/docs/models/operations/accountingbillpaymentsaddrequest.md +++ b/docs/models/operations/accountingbillpaymentsaddrequest.md @@ -33,6 +33,7 @@ let value: AccountingBillPaymentsAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/accountingbillpaymentsupdaterequest.md b/docs/models/operations/accountingbillpaymentsupdaterequest.md index 546fc022..1322eb5a 100644 --- a/docs/models/operations/accountingbillpaymentsupdaterequest.md +++ b/docs/models/operations/accountingbillpaymentsupdaterequest.md @@ -34,6 +34,7 @@ let value: AccountingBillPaymentsUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/accountingbillsaddrequest.md b/docs/models/operations/accountingbillsaddrequest.md index ef2ef31e..f1127a22 100644 --- a/docs/models/operations/accountingbillsaddrequest.md +++ b/docs/models/operations/accountingbillsaddrequest.md @@ -23,6 +23,7 @@ let value: AccountingBillsAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/accountingbillsupdaterequest.md b/docs/models/operations/accountingbillsupdaterequest.md index 8c486c29..b9cae06c 100644 --- a/docs/models/operations/accountingbillsupdaterequest.md +++ b/docs/models/operations/accountingbillsupdaterequest.md @@ -24,6 +24,7 @@ let value: AccountingBillsUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/accountingcreditnotesaddrequest.md b/docs/models/operations/accountingcreditnotesaddrequest.md index 7ccbbb35..147f44cf 100644 --- a/docs/models/operations/accountingcreditnotesaddrequest.md +++ b/docs/models/operations/accountingcreditnotesaddrequest.md @@ -4,6 +4,7 @@ ```typescript import { AccountingCreditNotesAddRequest } from "@apideck/unify/models/operations"; +import { RFCDate } from "@apideck/unify/types"; let value: AccountingCreditNotesAddRequest = { serviceId: "salesforce", @@ -51,6 +52,7 @@ let value: AccountingCreditNotesAddRequest = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -118,6 +120,7 @@ let value: AccountingCreditNotesAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -144,6 +147,7 @@ let value: AccountingCreditNotesAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/accountingcreditnotesupdaterequest.md b/docs/models/operations/accountingcreditnotesupdaterequest.md index f977c147..beaf7a90 100644 --- a/docs/models/operations/accountingcreditnotesupdaterequest.md +++ b/docs/models/operations/accountingcreditnotesupdaterequest.md @@ -4,6 +4,7 @@ ```typescript import { AccountingCreditNotesUpdateRequest } from "@apideck/unify/models/operations"; +import { RFCDate } from "@apideck/unify/types"; let value: AccountingCreditNotesUpdateRequest = { id: "", @@ -52,6 +53,7 @@ let value: AccountingCreditNotesUpdateRequest = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -119,6 +121,7 @@ let value: AccountingCreditNotesUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -145,6 +148,7 @@ let value: AccountingCreditNotesUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/accountingcustomersaddrequest.md b/docs/models/operations/accountingcustomersaddrequest.md index 79ac1904..3aa3ddd0 100644 --- a/docs/models/operations/accountingcustomersaddrequest.md +++ b/docs/models/operations/accountingcustomersaddrequest.md @@ -12,6 +12,7 @@ let value: AccountingCustomersAddRequest = { displayName: "Windsurf Shop", companyName: "SpaceX", companyId: "12345", + customerCategory: "Insurance", title: "CEO", firstName: "Elon", middleName: "D.", @@ -29,6 +30,7 @@ let value: AccountingCustomersAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -105,6 +107,7 @@ let value: AccountingCustomersAddRequest = { }, status: "active", paymentMethod: "cash", + terms: "Net 30 days", channel: "email", customFields: [ { diff --git a/docs/models/operations/accountingcustomersupdaterequest.md b/docs/models/operations/accountingcustomersupdaterequest.md index f02c912c..93ade0b3 100644 --- a/docs/models/operations/accountingcustomersupdaterequest.md +++ b/docs/models/operations/accountingcustomersupdaterequest.md @@ -13,6 +13,7 @@ let value: AccountingCustomersUpdateRequest = { displayName: "Windsurf Shop", companyName: "SpaceX", companyId: "12345", + customerCategory: "Insurance", title: "CEO", firstName: "Elon", middleName: "D.", @@ -30,6 +31,7 @@ let value: AccountingCustomersUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -106,6 +108,7 @@ let value: AccountingCustomersUpdateRequest = { }, status: "active", paymentMethod: "cash", + terms: "Net 30 days", channel: "email", customFields: [ { diff --git a/docs/models/operations/accountinginvoiceitemsallrequest.md b/docs/models/operations/accountinginvoiceitemsallrequest.md index 1e4988b7..5980beaa 100644 --- a/docs/models/operations/accountinginvoiceitemsallrequest.md +++ b/docs/models/operations/accountinginvoiceitemsallrequest.md @@ -10,6 +10,7 @@ let value: AccountingInvoiceItemsAllRequest = { filter: { name: "Widgets Large", type: "service", + transactionType: "sale", }, sort: { by: "updated_at", @@ -32,7 +33,7 @@ let value: AccountingInvoiceItemsAllRequest = { | `serviceId` | *string* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *string* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | | `limit` | *number* | :heavy_minus_sign: | Number of results to return. Minimum 1, Maximum 200, Default 20 | | -| `filter` | [components.InvoiceItemsFilter](../../models/components/invoiceitemsfilter.md) | :heavy_minus_sign: | Apply filters | {
"name": "Widgets Large",
"type": "service"
} | +| `filter` | [components.InvoiceItemsFilter](../../models/components/invoiceitemsfilter.md) | :heavy_minus_sign: | Apply filters | {
"name": "Widgets Large",
"type": "service",
"transaction_type": "sale"
} | | `sort` | [components.InvoiceItemsSort](../../models/components/invoiceitemssort.md) | :heavy_minus_sign: | Apply sorting | {
"by": "updated_at",
"direction": "desc"
} | | `passThrough` | Record | :heavy_minus_sign: | Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads | {
"search": "San Francisco"
} | | `fields` | *string* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/accountinginvoiceitemsonerequest.md b/docs/models/operations/accountinginvoiceitemsonerequest.md index ca9446a5..0571cf16 100644 --- a/docs/models/operations/accountinginvoiceitemsonerequest.md +++ b/docs/models/operations/accountinginvoiceitemsonerequest.md @@ -11,6 +11,7 @@ let value: AccountingInvoiceItemsOneRequest = { fields: "id,updated_at", filter: { type: "service", + transactionType: "purchase", }, }; ``` @@ -25,4 +26,4 @@ let value: AccountingInvoiceItemsOneRequest = { | `serviceId` | *string* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *boolean* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | | `fields` | *string* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | -| `filter` | [components.InvoiceItemFilter](../../models/components/invoiceitemfilter.md) | :heavy_minus_sign: | Apply filters | {
"type": "service"
} | \ No newline at end of file +| `filter` | [components.InvoiceItemFilter](../../models/components/invoiceitemfilter.md) | :heavy_minus_sign: | Apply filters | {
"type": "service",
"transaction_type": "purchase"
} | \ No newline at end of file diff --git a/docs/models/operations/accountinginvoicesaddrequest.md b/docs/models/operations/accountinginvoicesaddrequest.md index 21f2b56b..c2c37147 100644 --- a/docs/models/operations/accountinginvoicesaddrequest.md +++ b/docs/models/operations/accountinginvoicesaddrequest.md @@ -55,6 +55,7 @@ let value: AccountingInvoicesAddRequest = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -113,6 +114,7 @@ let value: AccountingInvoicesAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -139,6 +141,7 @@ let value: AccountingInvoicesAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/accountinginvoicesallrequest.md b/docs/models/operations/accountinginvoicesallrequest.md index 0866d0a0..f63b09f5 100644 --- a/docs/models/operations/accountinginvoicesallrequest.md +++ b/docs/models/operations/accountinginvoicesallrequest.md @@ -11,6 +11,7 @@ let value: AccountingInvoicesAllRequest = { updatedSince: new Date("2020-09-30T07:43:32.000Z"), createdSince: new Date("2020-09-30T07:43:32.000Z"), number: "OIT00546", + supplierId: "123", }, sort: { by: "updated_at", @@ -33,7 +34,7 @@ let value: AccountingInvoicesAllRequest = { | `serviceId` | *string* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `cursor` | *string* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | | `limit` | *number* | :heavy_minus_sign: | Number of results to return. Minimum 1, Maximum 200, Default 20 | | -| `filter` | [components.InvoicesFilter](../../models/components/invoicesfilter.md) | :heavy_minus_sign: | Apply filters | {
"updated_since": "2020-09-30T07:43:32.000Z",
"created_since": "2020-09-30T07:43:32.000Z",
"number": "OIT00546"
} | +| `filter` | [components.InvoicesFilter](../../models/components/invoicesfilter.md) | :heavy_minus_sign: | Apply filters | {
"updated_since": "2020-09-30T07:43:32.000Z",
"created_since": "2020-09-30T07:43:32.000Z",
"number": "OIT00546",
"supplier_id": "123"
} | | `sort` | [components.InvoicesSort](../../models/components/invoicessort.md) | :heavy_minus_sign: | Apply sorting | {
"by": "updated_at",
"direction": "desc"
} | | `passThrough` | Record | :heavy_minus_sign: | Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads | {
"search": "San Francisco"
} | | `fields` | *string* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/accountinginvoicesupdaterequest.md b/docs/models/operations/accountinginvoicesupdaterequest.md index 4e35c515..be03dfe5 100644 --- a/docs/models/operations/accountinginvoicesupdaterequest.md +++ b/docs/models/operations/accountinginvoicesupdaterequest.md @@ -56,6 +56,7 @@ let value: AccountingInvoicesUpdateRequest = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -114,6 +115,7 @@ let value: AccountingInvoicesUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -140,6 +142,7 @@ let value: AccountingInvoicesUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/accountingjournalentriesaddrequest.md b/docs/models/operations/accountingjournalentriesaddrequest.md index e7d0ab74..b0190eb6 100644 --- a/docs/models/operations/accountingjournalentriesaddrequest.md +++ b/docs/models/operations/accountingjournalentriesaddrequest.md @@ -54,6 +54,7 @@ let value: AccountingJournalEntriesAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -93,6 +94,9 @@ let value: AccountingJournalEntriesAddRequest = { }, ], accountingPeriod: "01-24", + taxInclusive: true, + sourceType: "manual", + sourceId: "12345", rowVersion: "1-12345", customFields: [ { diff --git a/docs/models/operations/accountingjournalentriesupdaterequest.md b/docs/models/operations/accountingjournalentriesupdaterequest.md index b1c15f9d..73966d99 100644 --- a/docs/models/operations/accountingjournalentriesupdaterequest.md +++ b/docs/models/operations/accountingjournalentriesupdaterequest.md @@ -55,6 +55,7 @@ let value: AccountingJournalEntriesUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -94,6 +95,9 @@ let value: AccountingJournalEntriesUpdateRequest = { }, ], accountingPeriod: "01-24", + taxInclusive: true, + sourceType: "manual", + sourceId: "12345", rowVersion: "1-12345", customFields: [ { diff --git a/docs/models/operations/accountinglocationsaddrequest.md b/docs/models/operations/accountinglocationsaddrequest.md index 4f2f7373..72b92aaf 100644 --- a/docs/models/operations/accountinglocationsaddrequest.md +++ b/docs/models/operations/accountinglocationsaddrequest.md @@ -22,6 +22,7 @@ let value: AccountingLocationsAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/accountinglocationsupdaterequest.md b/docs/models/operations/accountinglocationsupdaterequest.md index 53c6fdb7..a3fe3ac5 100644 --- a/docs/models/operations/accountinglocationsupdaterequest.md +++ b/docs/models/operations/accountinglocationsupdaterequest.md @@ -23,6 +23,7 @@ let value: AccountingLocationsUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/accountingprojectsaddglobals.md b/docs/models/operations/accountingprojectsaddglobals.md new file mode 100644 index 00000000..f010cc05 --- /dev/null +++ b/docs/models/operations/accountingprojectsaddglobals.md @@ -0,0 +1,19 @@ +# AccountingProjectsAddGlobals + +## Example Usage + +```typescript +import { AccountingProjectsAddGlobals } from "@apideck/unify/models/operations"; + +let value: AccountingProjectsAddGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `consumerId` | *string* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `appId` | *string* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | \ No newline at end of file diff --git a/docs/models/operations/accountingprojectsaddrequest.md b/docs/models/operations/accountingprojectsaddrequest.md new file mode 100644 index 00000000..c7584edf --- /dev/null +++ b/docs/models/operations/accountingprojectsaddrequest.md @@ -0,0 +1,118 @@ +# AccountingProjectsAddRequest + +## Example Usage + +```typescript +import { AccountingProjectsAddRequest } from "@apideck/unify/models/operations"; +import { RFCDate } from "@apideck/unify/types"; + +let value: AccountingProjectsAddRequest = { + serviceId: "salesforce", + project: { + name: "Website Redesign Project", + displayId: "PROJ-001", + referenceId: "WD-REF-2024-001", + description: + "Complete redesign of the company website including new branding and improved user experience", + status: "active", + active: true, + projectType: "client_project", + priority: "high", + completionPercentage: 75.5, + startDate: new RFCDate("2024-01-15"), + endDate: new RFCDate("2024-06-30"), + customer: { + id: "12345", + displayName: "Windsurf Shop", + email: "boring@boring.com", + }, + department: { + id: "DEPT-001", + name: "Marketing", + }, + companyId: "12345", + ownerId: "12345", + parentProject: { + id: "PROJ-PARENT-001", + name: "Company Website Overhaul", + }, + currency: "USD", + budgetAmount: 50000, + approvedAmount: 48000, + budgetHours: 400, + hourlyRate: 125, + billingMethod: "time_and_materials", + phase: "execution", + taxRate: { + id: "123456", + rate: 10, + }, + trackingCategories: [ + { + id: "123456", + name: "New York", + parentId: "123456", + parentName: "New York", + }, + ], + tags: [ + "website", + "redesign", + "urgent", + ], + notes: "Client has requested modern design with mobile-first approach", + contractNumber: "CNT-2024-001", + profitMargin: 15.5, + scheduleStatus: "on_schedule", + addresses: [ + { + id: "123", + type: "primary", + string: "25 Spring Street, Blackburn, VIC 3130", + name: "HQ US", + line1: "Main street", + line2: "apt #", + line3: "Suite #", + line4: "delivery instructions", + line5: "Attention: Finance Dept", + streetNumber: "25", + city: "San Francisco", + state: "CA", + postalCode: "94104", + country: "US", + latitude: "40.759211", + longitude: "-73.984638", + county: "Santa Clara", + contactName: "Elon Musk", + salutation: "Mr", + phoneNumber: "111-111-1111", + fax: "122-111-1111", + email: "elon@musk.com", + website: "https://elonmusk.com", + notes: "Address notes or delivery instructions.", + rowVersion: "1-12345", + }, + ], + teamSize: 8, + customFields: [ + { + id: "2389328923893298", + name: "employee_level", + description: "Employee Level", + value: "Uses Salesforce and Marketo", + }, + ], + rowVersion: "1-12345", + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | +| `raw` | *boolean* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | +| `consumerId` | *string* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `appId` | *string* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | +| `serviceId` | *string* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | +| `project` | [components.ProjectInput](../../models/components/projectinput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/accountingprojectsaddresponse.md b/docs/models/operations/accountingprojectsaddresponse.md new file mode 100644 index 00000000..9b0c0cf6 --- /dev/null +++ b/docs/models/operations/accountingprojectsaddresponse.md @@ -0,0 +1,17 @@ +# AccountingProjectsAddResponse + +## Example Usage + +```typescript +import { AccountingProjectsAddResponse } from "@apideck/unify/models/operations"; + +let value: AccountingProjectsAddResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `createProjectResponse` | [components.CreateProjectResponse](../../models/components/createprojectresponse.md) | :heavy_minus_sign: | Projects | +| `unexpectedErrorResponse` | [components.UnexpectedErrorResponse](../../models/components/unexpectederrorresponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/accountingprojectsallglobals.md b/docs/models/operations/accountingprojectsallglobals.md new file mode 100644 index 00000000..c24e0bb7 --- /dev/null +++ b/docs/models/operations/accountingprojectsallglobals.md @@ -0,0 +1,19 @@ +# AccountingProjectsAllGlobals + +## Example Usage + +```typescript +import { AccountingProjectsAllGlobals } from "@apideck/unify/models/operations"; + +let value: AccountingProjectsAllGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `consumerId` | *string* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `appId` | *string* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | \ No newline at end of file diff --git a/docs/models/operations/accountingprojectsallrequest.md b/docs/models/operations/accountingprojectsallrequest.md new file mode 100644 index 00000000..df290490 --- /dev/null +++ b/docs/models/operations/accountingprojectsallrequest.md @@ -0,0 +1,39 @@ +# AccountingProjectsAllRequest + +## Example Usage + +```typescript +import { AccountingProjectsAllRequest } from "@apideck/unify/models/operations"; + +let value: AccountingProjectsAllRequest = { + serviceId: "salesforce", + filter: { + name: "Website Redesign", + status: "active", + customerId: "12345", + updatedSince: new Date("2020-09-30T07:43:32.000Z"), + }, + sort: { + by: "name", + }, + passThrough: { + "search": "San Francisco", + }, + fields: "id,updated_at", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `raw` | *boolean* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | +| `consumerId` | *string* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `appId` | *string* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | +| `serviceId` | *string* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | +| `cursor` | *string* | :heavy_minus_sign: | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | | +| `limit` | *number* | :heavy_minus_sign: | Number of results to return. Minimum 1, Maximum 200, Default 20 | | +| `filter` | [components.ProjectsFilter](../../models/components/projectsfilter.md) | :heavy_minus_sign: | Apply filters | {
"name": "Website Redesign",
"status": "active",
"customer_id": "12345",
"is_billable": true,
"is_active": true,
"updated_since": "2020-09-30T07:43:32.000Z"
} | +| `sort` | [components.ProjectsSort](../../models/components/projectssort.md) | :heavy_minus_sign: | Apply sorting | | +| `passThrough` | Record | :heavy_minus_sign: | Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads | {
"search": "San Francisco"
} | +| `fields` | *string* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at | \ No newline at end of file diff --git a/docs/models/operations/accountingprojectsallresponse.md b/docs/models/operations/accountingprojectsallresponse.md new file mode 100644 index 00000000..4e1746ca --- /dev/null +++ b/docs/models/operations/accountingprojectsallresponse.md @@ -0,0 +1,17 @@ +# AccountingProjectsAllResponse + +## Example Usage + +```typescript +import { AccountingProjectsAllResponse } from "@apideck/unify/models/operations"; + +let value: AccountingProjectsAllResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `getProjectsResponse` | [components.GetProjectsResponse](../../models/components/getprojectsresponse.md) | :heavy_minus_sign: | Projects | +| `unexpectedErrorResponse` | [components.UnexpectedErrorResponse](../../models/components/unexpectederrorresponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/accountingprojectsdeleteglobals.md b/docs/models/operations/accountingprojectsdeleteglobals.md new file mode 100644 index 00000000..e3b1adda --- /dev/null +++ b/docs/models/operations/accountingprojectsdeleteglobals.md @@ -0,0 +1,19 @@ +# AccountingProjectsDeleteGlobals + +## Example Usage + +```typescript +import { AccountingProjectsDeleteGlobals } from "@apideck/unify/models/operations"; + +let value: AccountingProjectsDeleteGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `consumerId` | *string* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `appId` | *string* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | \ No newline at end of file diff --git a/docs/models/operations/accountingprojectsdeleterequest.md b/docs/models/operations/accountingprojectsdeleterequest.md new file mode 100644 index 00000000..fd5accd7 --- /dev/null +++ b/docs/models/operations/accountingprojectsdeleterequest.md @@ -0,0 +1,22 @@ +# AccountingProjectsDeleteRequest + +## Example Usage + +```typescript +import { AccountingProjectsDeleteRequest } from "@apideck/unify/models/operations"; + +let value: AccountingProjectsDeleteRequest = { + id: "", + serviceId: "salesforce", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | ID of the record you are acting upon. | | +| `consumerId` | *string* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `appId` | *string* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | +| `serviceId` | *string* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | +| `raw` | *boolean* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/accountingprojectsdeleteresponse.md b/docs/models/operations/accountingprojectsdeleteresponse.md new file mode 100644 index 00000000..c506ab52 --- /dev/null +++ b/docs/models/operations/accountingprojectsdeleteresponse.md @@ -0,0 +1,17 @@ +# AccountingProjectsDeleteResponse + +## Example Usage + +```typescript +import { AccountingProjectsDeleteResponse } from "@apideck/unify/models/operations"; + +let value: AccountingProjectsDeleteResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `deleteProjectResponse` | [components.DeleteProjectResponse](../../models/components/deleteprojectresponse.md) | :heavy_minus_sign: | Projects | +| `unexpectedErrorResponse` | [components.UnexpectedErrorResponse](../../models/components/unexpectederrorresponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/accountingprojectsoneglobals.md b/docs/models/operations/accountingprojectsoneglobals.md new file mode 100644 index 00000000..8b8d197d --- /dev/null +++ b/docs/models/operations/accountingprojectsoneglobals.md @@ -0,0 +1,19 @@ +# AccountingProjectsOneGlobals + +## Example Usage + +```typescript +import { AccountingProjectsOneGlobals } from "@apideck/unify/models/operations"; + +let value: AccountingProjectsOneGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `consumerId` | *string* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `appId` | *string* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | \ No newline at end of file diff --git a/docs/models/operations/accountingprojectsonerequest.md b/docs/models/operations/accountingprojectsonerequest.md new file mode 100644 index 00000000..055c5034 --- /dev/null +++ b/docs/models/operations/accountingprojectsonerequest.md @@ -0,0 +1,22 @@ +# AccountingProjectsOneRequest + +## Example Usage + +```typescript +import { AccountingProjectsOneRequest } from "@apideck/unify/models/operations"; + +let value: AccountingProjectsOneRequest = { + id: "", + serviceId: "salesforce", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | ID of the record you are acting upon. | | +| `consumerId` | *string* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `appId` | *string* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | +| `serviceId` | *string* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | +| `raw` | *boolean* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | \ No newline at end of file diff --git a/docs/models/operations/accountingprojectsoneresponse.md b/docs/models/operations/accountingprojectsoneresponse.md new file mode 100644 index 00000000..2b76d5c1 --- /dev/null +++ b/docs/models/operations/accountingprojectsoneresponse.md @@ -0,0 +1,17 @@ +# AccountingProjectsOneResponse + +## Example Usage + +```typescript +import { AccountingProjectsOneResponse } from "@apideck/unify/models/operations"; + +let value: AccountingProjectsOneResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `getProjectResponse` | [components.GetProjectResponse](../../models/components/getprojectresponse.md) | :heavy_minus_sign: | Projects | +| `unexpectedErrorResponse` | [components.UnexpectedErrorResponse](../../models/components/unexpectederrorresponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/accountingprojectsupdateglobals.md b/docs/models/operations/accountingprojectsupdateglobals.md new file mode 100644 index 00000000..6ca7c707 --- /dev/null +++ b/docs/models/operations/accountingprojectsupdateglobals.md @@ -0,0 +1,19 @@ +# AccountingProjectsUpdateGlobals + +## Example Usage + +```typescript +import { AccountingProjectsUpdateGlobals } from "@apideck/unify/models/operations"; + +let value: AccountingProjectsUpdateGlobals = { + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `consumerId` | *string* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `appId` | *string* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | \ No newline at end of file diff --git a/docs/models/operations/accountingprojectsupdaterequest.md b/docs/models/operations/accountingprojectsupdaterequest.md new file mode 100644 index 00000000..2f018c81 --- /dev/null +++ b/docs/models/operations/accountingprojectsupdaterequest.md @@ -0,0 +1,120 @@ +# AccountingProjectsUpdateRequest + +## Example Usage + +```typescript +import { AccountingProjectsUpdateRequest } from "@apideck/unify/models/operations"; +import { RFCDate } from "@apideck/unify/types"; + +let value: AccountingProjectsUpdateRequest = { + id: "", + serviceId: "salesforce", + project: { + name: "Website Redesign Project", + displayId: "PROJ-001", + referenceId: "WD-REF-2024-001", + description: + "Complete redesign of the company website including new branding and improved user experience", + status: "active", + active: true, + projectType: "client_project", + priority: "high", + completionPercentage: 75.5, + startDate: new RFCDate("2024-01-15"), + endDate: new RFCDate("2024-06-30"), + customer: { + id: "12345", + displayName: "Windsurf Shop", + email: "boring@boring.com", + }, + department: { + id: "DEPT-001", + name: "Marketing", + }, + companyId: "12345", + ownerId: "12345", + parentProject: { + id: "PROJ-PARENT-001", + name: "Company Website Overhaul", + }, + currency: "USD", + budgetAmount: 50000, + approvedAmount: 48000, + budgetHours: 400, + hourlyRate: 125, + billingMethod: "time_and_materials", + phase: "execution", + taxRate: { + id: "123456", + rate: 10, + }, + trackingCategories: [ + { + id: "123456", + name: "New York", + parentId: "123456", + parentName: "New York", + }, + ], + tags: [ + "website", + "redesign", + "urgent", + ], + notes: "Client has requested modern design with mobile-first approach", + contractNumber: "CNT-2024-001", + profitMargin: 15.5, + scheduleStatus: "on_schedule", + addresses: [ + { + id: "123", + type: "primary", + string: "25 Spring Street, Blackburn, VIC 3130", + name: "HQ US", + line1: "Main street", + line2: "apt #", + line3: "Suite #", + line4: "delivery instructions", + line5: "Attention: Finance Dept", + streetNumber: "25", + city: "San Francisco", + state: "CA", + postalCode: "94104", + country: "US", + latitude: "40.759211", + longitude: "-73.984638", + county: "Santa Clara", + contactName: "Elon Musk", + salutation: "Mr", + phoneNumber: "111-111-1111", + fax: "122-111-1111", + email: "elon@musk.com", + website: "https://elonmusk.com", + notes: "Address notes or delivery instructions.", + rowVersion: "1-12345", + }, + ], + teamSize: 8, + customFields: [ + { + id: "2389328923893298", + name: "employee_level", + description: "Employee Level", + value: "Uses Salesforce and Marketo", + }, + ], + rowVersion: "1-12345", + }, +}; +``` + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | ID of the record you are acting upon. | | +| `consumerId` | *string* | :heavy_minus_sign: | ID of the consumer which you want to get or push data from | test-consumer | +| `appId` | *string* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | +| `serviceId` | *string* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | +| `raw` | *boolean* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | +| `project` | [components.ProjectInput](../../models/components/projectinput.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/accountingprojectsupdateresponse.md b/docs/models/operations/accountingprojectsupdateresponse.md new file mode 100644 index 00000000..ed78cf63 --- /dev/null +++ b/docs/models/operations/accountingprojectsupdateresponse.md @@ -0,0 +1,17 @@ +# AccountingProjectsUpdateResponse + +## Example Usage + +```typescript +import { AccountingProjectsUpdateResponse } from "@apideck/unify/models/operations"; + +let value: AccountingProjectsUpdateResponse = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | +| `updateProjectResponse` | [components.UpdateProjectResponse](../../models/components/updateprojectresponse.md) | :heavy_minus_sign: | Projects | +| `unexpectedErrorResponse` | [components.UnexpectedErrorResponse](../../models/components/unexpectederrorresponse.md) | :heavy_minus_sign: | Unexpected error | \ No newline at end of file diff --git a/docs/models/operations/accountingpurchaseordersaddrequest.md b/docs/models/operations/accountingpurchaseordersaddrequest.md index ab92a395..186e014f 100644 --- a/docs/models/operations/accountingpurchaseordersaddrequest.md +++ b/docs/models/operations/accountingpurchaseordersaddrequest.md @@ -41,6 +41,7 @@ let value: AccountingPurchaseOrdersAddRequest = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -99,6 +100,7 @@ let value: AccountingPurchaseOrdersAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -125,6 +127,7 @@ let value: AccountingPurchaseOrdersAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/accountingpurchaseordersupdaterequest.md b/docs/models/operations/accountingpurchaseordersupdaterequest.md index 90923518..6abc2681 100644 --- a/docs/models/operations/accountingpurchaseordersupdaterequest.md +++ b/docs/models/operations/accountingpurchaseordersupdaterequest.md @@ -42,6 +42,7 @@ let value: AccountingPurchaseOrdersUpdateRequest = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -100,6 +101,7 @@ let value: AccountingPurchaseOrdersUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -126,6 +128,7 @@ let value: AccountingPurchaseOrdersUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/accountingquotesaddrequest.md b/docs/models/operations/accountingquotesaddrequest.md index b05d1973..e9418dc4 100644 --- a/docs/models/operations/accountingquotesaddrequest.md +++ b/docs/models/operations/accountingquotesaddrequest.md @@ -50,6 +50,7 @@ let value: AccountingQuotesAddRequest = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -95,6 +96,7 @@ let value: AccountingQuotesAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -121,6 +123,7 @@ let value: AccountingQuotesAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/accountingquotesupdaterequest.md b/docs/models/operations/accountingquotesupdaterequest.md index 85631ca4..5976f857 100644 --- a/docs/models/operations/accountingquotesupdaterequest.md +++ b/docs/models/operations/accountingquotesupdaterequest.md @@ -51,6 +51,7 @@ let value: AccountingQuotesUpdateRequest = { unitOfMeasure: "pc.", discountPercentage: 0.01, discountAmount: 19.99, + serviceDate: new RFCDate("2024-01-15"), categoryId: "12345", locationId: "12345", departmentId: "12345", @@ -96,6 +97,7 @@ let value: AccountingQuotesUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -122,6 +124,7 @@ let value: AccountingQuotesUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/accountingsuppliersaddrequest.md b/docs/models/operations/accountingsuppliersaddrequest.md index 1e075caa..b813b7e0 100644 --- a/docs/models/operations/accountingsuppliersaddrequest.md +++ b/docs/models/operations/accountingsuppliersaddrequest.md @@ -29,6 +29,7 @@ let value: AccountingSuppliersAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/accountingsuppliersupdaterequest.md b/docs/models/operations/accountingsuppliersupdaterequest.md index bb2e939a..b9fceab1 100644 --- a/docs/models/operations/accountingsuppliersupdaterequest.md +++ b/docs/models/operations/accountingsuppliersupdaterequest.md @@ -30,6 +30,7 @@ let value: AccountingSuppliersUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/atsapplicantsaddrequest.md b/docs/models/operations/atsapplicantsaddrequest.md index 2cd484c1..02030cdb 100644 --- a/docs/models/operations/atsapplicantsaddrequest.md +++ b/docs/models/operations/atsapplicantsaddrequest.md @@ -59,6 +59,7 @@ let value: AtsApplicantsAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/atsapplicantsupdaterequest.md b/docs/models/operations/atsapplicantsupdaterequest.md index 5d5dd6f6..2246b089 100644 --- a/docs/models/operations/atsapplicantsupdaterequest.md +++ b/docs/models/operations/atsapplicantsupdaterequest.md @@ -60,6 +60,7 @@ let value: AtsApplicantsUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/crmactivitiesaddrequest.md b/docs/models/operations/crmactivitiesaddrequest.md index 4b2c7663..e329c8b8 100644 --- a/docs/models/operations/crmactivitiesaddrequest.md +++ b/docs/models/operations/crmactivitiesaddrequest.md @@ -38,6 +38,7 @@ let value: CrmActivitiesAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/crmactivitiesupdaterequest.md b/docs/models/operations/crmactivitiesupdaterequest.md index 6cba403c..fa944344 100644 --- a/docs/models/operations/crmactivitiesupdaterequest.md +++ b/docs/models/operations/crmactivitiesupdaterequest.md @@ -39,6 +39,7 @@ let value: CrmActivitiesUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/crmcompaniesaddrequest.md b/docs/models/operations/crmcompaniesaddrequest.md index 818c6fbe..b803ccd9 100644 --- a/docs/models/operations/crmcompaniesaddrequest.md +++ b/docs/models/operations/crmcompaniesaddrequest.md @@ -62,6 +62,7 @@ let value: CrmCompaniesAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/crmcompaniesupdaterequest.md b/docs/models/operations/crmcompaniesupdaterequest.md index 6fbaf589..8f9e6845 100644 --- a/docs/models/operations/crmcompaniesupdaterequest.md +++ b/docs/models/operations/crmcompaniesupdaterequest.md @@ -63,6 +63,7 @@ let value: CrmCompaniesUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/crmcontactsaddrequest.md b/docs/models/operations/crmcontactsaddrequest.md index f8520c67..d7963335 100644 --- a/docs/models/operations/crmcontactsaddrequest.md +++ b/docs/models/operations/crmcontactsaddrequest.md @@ -48,6 +48,7 @@ let value: CrmContactsAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/crmcontactsupdaterequest.md b/docs/models/operations/crmcontactsupdaterequest.md index ae3aaf29..be687dbc 100644 --- a/docs/models/operations/crmcontactsupdaterequest.md +++ b/docs/models/operations/crmcontactsupdaterequest.md @@ -49,6 +49,7 @@ let value: CrmContactsUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/crmleadsaddrequest.md b/docs/models/operations/crmleadsaddrequest.md index 7c069587..b69f3ada 100644 --- a/docs/models/operations/crmleadsaddrequest.md +++ b/docs/models/operations/crmleadsaddrequest.md @@ -42,6 +42,7 @@ let value: CrmLeadsAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/crmleadsupdaterequest.md b/docs/models/operations/crmleadsupdaterequest.md index a9fc5521..2c4b9418 100644 --- a/docs/models/operations/crmleadsupdaterequest.md +++ b/docs/models/operations/crmleadsupdaterequest.md @@ -43,6 +43,7 @@ let value: CrmLeadsUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/crmusersaddrequest.md b/docs/models/operations/crmusersaddrequest.md index 490cf798..728c71cc 100644 --- a/docs/models/operations/crmusersaddrequest.md +++ b/docs/models/operations/crmusersaddrequest.md @@ -31,6 +31,7 @@ let value: CrmUsersAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/crmusersupdaterequest.md b/docs/models/operations/crmusersupdaterequest.md index 550c9892..1a8ca4fa 100644 --- a/docs/models/operations/crmusersupdaterequest.md +++ b/docs/models/operations/crmusersupdaterequest.md @@ -32,6 +32,7 @@ let value: CrmUsersUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/hriscompaniesaddrequest.md b/docs/models/operations/hriscompaniesaddrequest.md index a2ac7254..c7e00acd 100644 --- a/docs/models/operations/hriscompaniesaddrequest.md +++ b/docs/models/operations/hriscompaniesaddrequest.md @@ -24,6 +24,7 @@ let value: HrisCompaniesAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/hriscompaniesupdaterequest.md b/docs/models/operations/hriscompaniesupdaterequest.md index 7510ec47..8f36ac29 100644 --- a/docs/models/operations/hriscompaniesupdaterequest.md +++ b/docs/models/operations/hriscompaniesupdaterequest.md @@ -25,6 +25,7 @@ let value: HrisCompaniesUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/hrisemployeesaddrequest.md b/docs/models/operations/hrisemployeesaddrequest.md index da86a86e..629752f5 100644 --- a/docs/models/operations/hrisemployeesaddrequest.md +++ b/docs/models/operations/hrisemployeesaddrequest.md @@ -97,6 +97,7 @@ let value: HrisEmployeesAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -135,6 +136,7 @@ let value: HrisEmployeesAddRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/hrisemployeesupdaterequest.md b/docs/models/operations/hrisemployeesupdaterequest.md index d009ff7f..9d344d42 100644 --- a/docs/models/operations/hrisemployeesupdaterequest.md +++ b/docs/models/operations/hrisemployeesupdaterequest.md @@ -98,6 +98,7 @@ let value: HrisEmployeesUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -136,6 +137,7 @@ let value: HrisEmployeesUpdateRequest = { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/models/operations/vaultconnectionsettingsupdaterequest.md b/docs/models/operations/vaultconnectionsettingsupdaterequest.md index 7ecaac85..6377b0a7 100644 --- a/docs/models/operations/vaultconnectionsettingsupdaterequest.md +++ b/docs/models/operations/vaultconnectionsettingsupdaterequest.md @@ -31,7 +31,14 @@ let value: VaultConnectionSettingsUpdateRequest = { options: [ { label: "General Channel", - optionType: "simple", + options: [ + { + label: "General Channel", + value: "general", + optionType: "simple", + }, + ], + optionType: "group", }, ], value: "GC5000 series", diff --git a/docs/models/operations/vaultconnectionsupdaterequest.md b/docs/models/operations/vaultconnectionsupdaterequest.md index 54fe4103..049ab21d 100644 --- a/docs/models/operations/vaultconnectionsupdaterequest.md +++ b/docs/models/operations/vaultconnectionsupdaterequest.md @@ -30,7 +30,14 @@ let value: VaultConnectionsUpdateRequest = { options: [ { label: "General Channel", - optionType: "simple", + options: [ + { + label: "General Channel", + value: "general", + optionType: "simple", + }, + ], + optionType: "group", }, ], value: "GC5000 series", diff --git a/docs/sdks/accounting/README.md b/docs/sdks/accounting/README.md deleted file mode 100644 index 24d3fc27..00000000 --- a/docs/sdks/accounting/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# Accounting -(*accounting*) - -## Overview - -### Available Operations diff --git a/docs/sdks/apideck/README.md b/docs/sdks/apideck/README.md deleted file mode 100644 index c18f3119..00000000 --- a/docs/sdks/apideck/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# Apideck SDK - -## Overview - -Apideck: The Apideck OpenAPI Spec: SDK Optimized - -Apideck Developer Docs - - -### Available Operations diff --git a/docs/sdks/ats/README.md b/docs/sdks/ats/README.md deleted file mode 100644 index 9173183d..00000000 --- a/docs/sdks/ats/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# Ats -(*ats*) - -## Overview - -### Available Operations diff --git a/docs/sdks/connector/README.md b/docs/sdks/connector/README.md deleted file mode 100644 index 0143d830..00000000 --- a/docs/sdks/connector/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# Connector -(*connector*) - -## Overview - -### Available Operations diff --git a/docs/sdks/crm/README.md b/docs/sdks/crm/README.md deleted file mode 100644 index b8f8faaf..00000000 --- a/docs/sdks/crm/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# Crm -(*crm*) - -## Overview - -### Available Operations diff --git a/docs/sdks/ecommerce/README.md b/docs/sdks/ecommerce/README.md deleted file mode 100644 index 6ef4c12c..00000000 --- a/docs/sdks/ecommerce/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# Ecommerce -(*ecommerce*) - -## Overview - -### Available Operations diff --git a/docs/sdks/filestorage/README.md b/docs/sdks/filestorage/README.md deleted file mode 100644 index e06fd04d..00000000 --- a/docs/sdks/filestorage/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# FileStorage -(*fileStorage*) - -## Overview - -### Available Operations diff --git a/docs/sdks/hris/README.md b/docs/sdks/hris/README.md deleted file mode 100644 index af1857d3..00000000 --- a/docs/sdks/hris/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# Hris -(*hris*) - -## Overview - -### Available Operations diff --git a/docs/sdks/issuetracking/README.md b/docs/sdks/issuetracking/README.md deleted file mode 100644 index 864e4ebc..00000000 --- a/docs/sdks/issuetracking/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# IssueTracking -(*issueTracking*) - -## Overview - -### Available Operations diff --git a/docs/sdks/projects/README.md b/docs/sdks/projects/README.md new file mode 100644 index 00000000..ddd0ab1e --- /dev/null +++ b/docs/sdks/projects/README.md @@ -0,0 +1,834 @@ +# Projects +(*accounting.projects*) + +## Overview + +### Available Operations + +* [list](#list) - List projects +* [create](#create) - Create project +* [get](#get) - Get project +* [update](#update) - Update project +* [delete](#delete) - Delete project + +## list + +List projects + +### Example Usage + + +```typescript +import { Apideck } from "@apideck/unify"; + +const apideck = new Apideck({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", +}); + +async function run() { + const result = await apideck.accounting.projects.list({ + serviceId: "salesforce", + filter: { + name: "Website Redesign", + status: "active", + customerId: "12345", + updatedSince: new Date("2020-09-30T07:43:32.000Z"), + }, + sort: { + by: "name", + }, + passThrough: { + "search": "San Francisco", + }, + fields: "id,updated_at", + }); + + for await (const page of result) { + console.log(page); + } +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { ApideckCore } from "@apideck/unify/core.js"; +import { accountingProjectsList } from "@apideck/unify/funcs/accountingProjectsList.js"; + +// Use `ApideckCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const apideck = new ApideckCore({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", +}); + +async function run() { + const res = await accountingProjectsList(apideck, { + serviceId: "salesforce", + filter: { + name: "Website Redesign", + status: "active", + customerId: "12345", + updatedSince: new Date("2020-09-30T07:43:32.000Z"), + }, + sort: { + by: "name", + }, + passThrough: { + "search": "San Francisco", + }, + fields: "id,updated_at", + }); + if (res.ok) { + const { value: result } = res; + for await (const page of result) { + console.log(page); + } + } else { + console.log("accountingProjectsList failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.AccountingProjectsAllRequest](../../models/operations/accountingprojectsallrequest.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\<[operations.AccountingProjectsAllResponse](../../models/operations/accountingprojectsallresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------------ | ------------------------------ | ------------------------------ | +| errors.BadRequestResponse | 400 | application/json | +| errors.UnauthorizedResponse | 401 | application/json | +| errors.PaymentRequiredResponse | 402 | application/json | +| errors.NotFoundResponse | 404 | application/json | +| errors.UnprocessableResponse | 422 | application/json | +| errors.APIError | 4XX, 5XX | \*/\* | + +## create + +Create project + +### Example Usage + + +```typescript +import { Apideck } from "@apideck/unify"; +import { RFCDate } from "@apideck/unify/types"; + +const apideck = new Apideck({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", +}); + +async function run() { + const result = await apideck.accounting.projects.create({ + serviceId: "salesforce", + project: { + name: "Website Redesign Project", + displayId: "PROJ-001", + referenceId: "WD-REF-2024-001", + description: "Complete redesign of the company website including new branding and improved user experience", + status: "active", + active: true, + projectType: "client_project", + priority: "high", + completionPercentage: 75.5, + startDate: new RFCDate("2024-01-15"), + endDate: new RFCDate("2024-06-30"), + customer: { + id: "12345", + displayName: "Windsurf Shop", + email: "boring@boring.com", + }, + department: { + id: "DEPT-001", + name: "Marketing", + }, + companyId: "12345", + ownerId: "12345", + parentProject: { + id: "PROJ-PARENT-001", + name: "Company Website Overhaul", + }, + currency: "USD", + budgetAmount: 50000, + approvedAmount: 48000, + budgetHours: 400, + hourlyRate: 125, + billingMethod: "time_and_materials", + phase: "execution", + taxRate: { + id: "123456", + rate: 10, + }, + trackingCategories: [ + { + id: "123456", + name: "New York", + parentId: "123456", + parentName: "New York", + }, + ], + tags: [ + "website", + "redesign", + "urgent", + ], + notes: "Client has requested modern design with mobile-first approach", + contractNumber: "CNT-2024-001", + profitMargin: 15.5, + scheduleStatus: "on_schedule", + addresses: [ + { + id: "123", + type: "primary", + string: "25 Spring Street, Blackburn, VIC 3130", + name: "HQ US", + line1: "Main street", + line2: "apt #", + line3: "Suite #", + line4: "delivery instructions", + line5: "Attention: Finance Dept", + streetNumber: "25", + city: "San Francisco", + state: "CA", + postalCode: "94104", + country: "US", + latitude: "40.759211", + longitude: "-73.984638", + county: "Santa Clara", + contactName: "Elon Musk", + salutation: "Mr", + phoneNumber: "111-111-1111", + fax: "122-111-1111", + email: "elon@musk.com", + website: "https://elonmusk.com", + notes: "Address notes or delivery instructions.", + rowVersion: "1-12345", + }, + ], + teamSize: 8, + customFields: [ + { + id: "2389328923893298", + name: "employee_level", + description: "Employee Level", + value: "Uses Salesforce and Marketo", + }, + ], + rowVersion: "1-12345", + }, + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { ApideckCore } from "@apideck/unify/core.js"; +import { accountingProjectsCreate } from "@apideck/unify/funcs/accountingProjectsCreate.js"; +import { RFCDate } from "@apideck/unify/types"; + +// Use `ApideckCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const apideck = new ApideckCore({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", +}); + +async function run() { + const res = await accountingProjectsCreate(apideck, { + serviceId: "salesforce", + project: { + name: "Website Redesign Project", + displayId: "PROJ-001", + referenceId: "WD-REF-2024-001", + description: "Complete redesign of the company website including new branding and improved user experience", + status: "active", + active: true, + projectType: "client_project", + priority: "high", + completionPercentage: 75.5, + startDate: new RFCDate("2024-01-15"), + endDate: new RFCDate("2024-06-30"), + customer: { + id: "12345", + displayName: "Windsurf Shop", + email: "boring@boring.com", + }, + department: { + id: "DEPT-001", + name: "Marketing", + }, + companyId: "12345", + ownerId: "12345", + parentProject: { + id: "PROJ-PARENT-001", + name: "Company Website Overhaul", + }, + currency: "USD", + budgetAmount: 50000, + approvedAmount: 48000, + budgetHours: 400, + hourlyRate: 125, + billingMethod: "time_and_materials", + phase: "execution", + taxRate: { + id: "123456", + rate: 10, + }, + trackingCategories: [ + { + id: "123456", + name: "New York", + parentId: "123456", + parentName: "New York", + }, + ], + tags: [ + "website", + "redesign", + "urgent", + ], + notes: "Client has requested modern design with mobile-first approach", + contractNumber: "CNT-2024-001", + profitMargin: 15.5, + scheduleStatus: "on_schedule", + addresses: [ + { + id: "123", + type: "primary", + string: "25 Spring Street, Blackburn, VIC 3130", + name: "HQ US", + line1: "Main street", + line2: "apt #", + line3: "Suite #", + line4: "delivery instructions", + line5: "Attention: Finance Dept", + streetNumber: "25", + city: "San Francisco", + state: "CA", + postalCode: "94104", + country: "US", + latitude: "40.759211", + longitude: "-73.984638", + county: "Santa Clara", + contactName: "Elon Musk", + salutation: "Mr", + phoneNumber: "111-111-1111", + fax: "122-111-1111", + email: "elon@musk.com", + website: "https://elonmusk.com", + notes: "Address notes or delivery instructions.", + rowVersion: "1-12345", + }, + ], + teamSize: 8, + customFields: [ + { + id: "2389328923893298", + name: "employee_level", + description: "Employee Level", + value: "Uses Salesforce and Marketo", + }, + ], + rowVersion: "1-12345", + }, + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingProjectsCreate failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.AccountingProjectsAddRequest](../../models/operations/accountingprojectsaddrequest.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\<[operations.AccountingProjectsAddResponse](../../models/operations/accountingprojectsaddresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------------ | ------------------------------ | ------------------------------ | +| errors.BadRequestResponse | 400 | application/json | +| errors.UnauthorizedResponse | 401 | application/json | +| errors.PaymentRequiredResponse | 402 | application/json | +| errors.NotFoundResponse | 404 | application/json | +| errors.UnprocessableResponse | 422 | application/json | +| errors.APIError | 4XX, 5XX | \*/\* | + +## get + +Get project + +### Example Usage + + +```typescript +import { Apideck } from "@apideck/unify"; + +const apideck = new Apideck({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", +}); + +async function run() { + const result = await apideck.accounting.projects.get({ + id: "", + serviceId: "salesforce", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { ApideckCore } from "@apideck/unify/core.js"; +import { accountingProjectsGet } from "@apideck/unify/funcs/accountingProjectsGet.js"; + +// Use `ApideckCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const apideck = new ApideckCore({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", +}); + +async function run() { + const res = await accountingProjectsGet(apideck, { + id: "", + serviceId: "salesforce", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingProjectsGet failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.AccountingProjectsOneRequest](../../models/operations/accountingprojectsonerequest.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\<[operations.AccountingProjectsOneResponse](../../models/operations/accountingprojectsoneresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------------ | ------------------------------ | ------------------------------ | +| errors.BadRequestResponse | 400 | application/json | +| errors.UnauthorizedResponse | 401 | application/json | +| errors.PaymentRequiredResponse | 402 | application/json | +| errors.NotFoundResponse | 404 | application/json | +| errors.UnprocessableResponse | 422 | application/json | +| errors.APIError | 4XX, 5XX | \*/\* | + +## update + +Update project + +### Example Usage + + +```typescript +import { Apideck } from "@apideck/unify"; +import { RFCDate } from "@apideck/unify/types"; + +const apideck = new Apideck({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", +}); + +async function run() { + const result = await apideck.accounting.projects.update({ + id: "", + serviceId: "salesforce", + project: { + name: "Website Redesign Project", + displayId: "PROJ-001", + referenceId: "WD-REF-2024-001", + description: "Complete redesign of the company website including new branding and improved user experience", + status: "active", + active: true, + projectType: "client_project", + priority: "high", + completionPercentage: 75.5, + startDate: new RFCDate("2024-01-15"), + endDate: new RFCDate("2024-06-30"), + customer: null, + department: { + id: "DEPT-001", + name: "Marketing", + }, + companyId: "12345", + ownerId: "12345", + parentProject: { + id: "PROJ-PARENT-001", + name: "Company Website Overhaul", + }, + currency: "USD", + budgetAmount: 50000, + approvedAmount: 48000, + budgetHours: 400, + hourlyRate: 125, + billingMethod: "time_and_materials", + phase: "execution", + taxRate: { + id: "123456", + rate: 10, + }, + trackingCategories: [ + { + id: "123456", + name: "New York", + parentId: "123456", + parentName: "New York", + }, + ], + tags: [ + "website", + "redesign", + "urgent", + ], + notes: "Client has requested modern design with mobile-first approach", + contractNumber: "CNT-2024-001", + profitMargin: 15.5, + scheduleStatus: "on_schedule", + addresses: [ + { + id: "123", + type: "primary", + string: "25 Spring Street, Blackburn, VIC 3130", + name: "HQ US", + line1: "Main street", + line2: "apt #", + line3: "Suite #", + line4: "delivery instructions", + line5: "Attention: Finance Dept", + streetNumber: "25", + city: "San Francisco", + state: "CA", + postalCode: "94104", + country: "US", + latitude: "40.759211", + longitude: "-73.984638", + county: "Santa Clara", + contactName: "Elon Musk", + salutation: "Mr", + phoneNumber: "111-111-1111", + fax: "122-111-1111", + email: "elon@musk.com", + website: "https://elonmusk.com", + notes: "Address notes or delivery instructions.", + rowVersion: "1-12345", + }, + ], + teamSize: 8, + customFields: [ + { + id: "2389328923893298", + name: "employee_level", + description: "Employee Level", + value: "Uses Salesforce and Marketo", + }, + ], + rowVersion: "1-12345", + }, + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { ApideckCore } from "@apideck/unify/core.js"; +import { accountingProjectsUpdate } from "@apideck/unify/funcs/accountingProjectsUpdate.js"; +import { RFCDate } from "@apideck/unify/types"; + +// Use `ApideckCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const apideck = new ApideckCore({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", +}); + +async function run() { + const res = await accountingProjectsUpdate(apideck, { + id: "", + serviceId: "salesforce", + project: { + name: "Website Redesign Project", + displayId: "PROJ-001", + referenceId: "WD-REF-2024-001", + description: "Complete redesign of the company website including new branding and improved user experience", + status: "active", + active: true, + projectType: "client_project", + priority: "high", + completionPercentage: 75.5, + startDate: new RFCDate("2024-01-15"), + endDate: new RFCDate("2024-06-30"), + customer: null, + department: { + id: "DEPT-001", + name: "Marketing", + }, + companyId: "12345", + ownerId: "12345", + parentProject: { + id: "PROJ-PARENT-001", + name: "Company Website Overhaul", + }, + currency: "USD", + budgetAmount: 50000, + approvedAmount: 48000, + budgetHours: 400, + hourlyRate: 125, + billingMethod: "time_and_materials", + phase: "execution", + taxRate: { + id: "123456", + rate: 10, + }, + trackingCategories: [ + { + id: "123456", + name: "New York", + parentId: "123456", + parentName: "New York", + }, + ], + tags: [ + "website", + "redesign", + "urgent", + ], + notes: "Client has requested modern design with mobile-first approach", + contractNumber: "CNT-2024-001", + profitMargin: 15.5, + scheduleStatus: "on_schedule", + addresses: [ + { + id: "123", + type: "primary", + string: "25 Spring Street, Blackburn, VIC 3130", + name: "HQ US", + line1: "Main street", + line2: "apt #", + line3: "Suite #", + line4: "delivery instructions", + line5: "Attention: Finance Dept", + streetNumber: "25", + city: "San Francisco", + state: "CA", + postalCode: "94104", + country: "US", + latitude: "40.759211", + longitude: "-73.984638", + county: "Santa Clara", + contactName: "Elon Musk", + salutation: "Mr", + phoneNumber: "111-111-1111", + fax: "122-111-1111", + email: "elon@musk.com", + website: "https://elonmusk.com", + notes: "Address notes or delivery instructions.", + rowVersion: "1-12345", + }, + ], + teamSize: 8, + customFields: [ + { + id: "2389328923893298", + name: "employee_level", + description: "Employee Level", + value: "Uses Salesforce and Marketo", + }, + ], + rowVersion: "1-12345", + }, + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingProjectsUpdate failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.AccountingProjectsUpdateRequest](../../models/operations/accountingprojectsupdaterequest.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\<[operations.AccountingProjectsUpdateResponse](../../models/operations/accountingprojectsupdateresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------------ | ------------------------------ | ------------------------------ | +| errors.BadRequestResponse | 400 | application/json | +| errors.UnauthorizedResponse | 401 | application/json | +| errors.PaymentRequiredResponse | 402 | application/json | +| errors.NotFoundResponse | 404 | application/json | +| errors.UnprocessableResponse | 422 | application/json | +| errors.APIError | 4XX, 5XX | \*/\* | + +## delete + +Delete project + +### Example Usage + + +```typescript +import { Apideck } from "@apideck/unify"; + +const apideck = new Apideck({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", +}); + +async function run() { + const result = await apideck.accounting.projects.delete({ + id: "", + serviceId: "salesforce", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { ApideckCore } from "@apideck/unify/core.js"; +import { accountingProjectsDelete } from "@apideck/unify/funcs/accountingProjectsDelete.js"; + +// Use `ApideckCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const apideck = new ApideckCore({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + apiKey: process.env["APIDECK_API_KEY"] ?? "", +}); + +async function run() { + const res = await accountingProjectsDelete(apideck, { + id: "", + serviceId: "salesforce", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("accountingProjectsDelete failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.AccountingProjectsDeleteRequest](../../models/operations/accountingprojectsdeleterequest.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\<[operations.AccountingProjectsDeleteResponse](../../models/operations/accountingprojectsdeleteresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------------ | ------------------------------ | ------------------------------ | +| errors.BadRequestResponse | 400 | application/json | +| errors.UnauthorizedResponse | 401 | application/json | +| errors.PaymentRequiredResponse | 402 | application/json | +| errors.NotFoundResponse | 404 | application/json | +| errors.UnprocessableResponse | 422 | application/json | +| errors.APIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/quotes/README.md b/docs/sdks/quotes/README.md index 1407f807..cfe4d48b 100644 --- a/docs/sdks/quotes/README.md +++ b/docs/sdks/quotes/README.md @@ -203,6 +203,7 @@ async function run() { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -229,6 +230,7 @@ async function run() { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -395,6 +397,7 @@ async function run() { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -421,6 +424,7 @@ async function run() { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -693,6 +697,7 @@ async function run() { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -719,6 +724,7 @@ async function run() { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -879,6 +885,7 @@ async function run() { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -905,6 +912,7 @@ async function run() { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/docs/sdks/sms/README.md b/docs/sdks/sms/README.md deleted file mode 100644 index 71ab1db8..00000000 --- a/docs/sdks/sms/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# Sms -(*sms*) - -## Overview - -### Available Operations diff --git a/docs/sdks/vault/README.md b/docs/sdks/vault/README.md deleted file mode 100644 index 15f6fe9a..00000000 --- a/docs/sdks/vault/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# Vault -(*vault*) - -## Overview - -### Available Operations diff --git a/docs/sdks/webhook/README.md b/docs/sdks/webhook/README.md deleted file mode 100644 index cc0730a0..00000000 --- a/docs/sdks/webhook/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# Webhook -(*webhook*) - -## Overview - -### Available Operations diff --git a/examples/.env.template b/examples/.env.template index 259a889f..e003ad30 100644 --- a/examples/.env.template +++ b/examples/.env.template @@ -11,4 +11,4 @@ APIDECK_API_KEY=your_apikey_here # Debug Configuration # Enable HTTP request/response logging for debugging -APIDECK_DEBUG=false +APIDECK_DEBUG=true diff --git a/examples/package-lock.json b/examples/package-lock.json index 1810388b..d810fcbc 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,7 +18,7 @@ }, "..": { "name": "@apideck/unify", - "version": "0.29.9", + "version": "0.30.0", "dependencies": { "zod": "^3.20.0" }, diff --git a/jsr.json b/jsr.json index 4c7ac486..79a0a28e 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@apideck/unify", - "version": "0.29.9", + "version": "0.30.0", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 4e5ac8be..77e5a1a6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@apideck/unify", - "version": "0.29.9", + "version": "0.30.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@apideck/unify", - "version": "0.29.9", + "version": "0.30.0", "dependencies": { "zod": "^3.20.0" }, diff --git a/package.json b/package.json index 449ca109..c4cc87ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@apideck/unify", - "version": "0.29.9", + "version": "0.30.0", "author": "Speakeasy", "main": "./index.js", "sideEffects": false, diff --git a/src/__tests__/mockserver/internal/handler/generated_handlers.go b/src/__tests__/mockserver/internal/handler/generated_handlers.go index 9ed8307e..4b5ffa66 100644 --- a/src/__tests__/mockserver/internal/handler/generated_handlers.go +++ b/src/__tests__/mockserver/internal/handler/generated_handlers.go @@ -28,6 +28,7 @@ func GeneratedHandlers(ctx context.Context, dir *logging.HTTPFileDirectory, rt * NewGeneratedHandler(ctx, http.MethodDelete, "/accounting/ledger-accounts/{id}", pathDeleteAccountingLedgerAccountsID(dir, rt)), NewGeneratedHandler(ctx, http.MethodDelete, "/accounting/locations/{id}", pathDeleteAccountingLocationsID(dir, rt)), NewGeneratedHandler(ctx, http.MethodDelete, "/accounting/payments/{id}", pathDeleteAccountingPaymentsID(dir, rt)), + NewGeneratedHandler(ctx, http.MethodDelete, "/accounting/projects/{id}", pathDeleteAccountingProjectsID(dir, rt)), NewGeneratedHandler(ctx, http.MethodDelete, "/accounting/purchase-orders/{id}", pathDeleteAccountingPurchaseOrdersID(dir, rt)), NewGeneratedHandler(ctx, http.MethodDelete, "/accounting/quotes/{id}", pathDeleteAccountingQuotesID(dir, rt)), NewGeneratedHandler(ctx, http.MethodDelete, "/accounting/subsidiaries/{id}", pathDeleteAccountingSubsidiariesID(dir, rt)), @@ -102,6 +103,8 @@ func GeneratedHandlers(ctx context.Context, dir *logging.HTTPFileDirectory, rt * NewGeneratedHandler(ctx, http.MethodGet, "/accounting/payments", pathGetAccountingPayments(dir, rt)), NewGeneratedHandler(ctx, http.MethodGet, "/accounting/payments/{id}", pathGetAccountingPaymentsID(dir, rt)), NewGeneratedHandler(ctx, http.MethodGet, "/accounting/profit-and-loss", pathGetAccountingProfitAndLoss(dir, rt)), + NewGeneratedHandler(ctx, http.MethodGet, "/accounting/projects", pathGetAccountingProjects(dir, rt)), + NewGeneratedHandler(ctx, http.MethodGet, "/accounting/projects/{id}", pathGetAccountingProjectsID(dir, rt)), NewGeneratedHandler(ctx, http.MethodGet, "/accounting/purchase-orders", pathGetAccountingPurchaseOrders(dir, rt)), NewGeneratedHandler(ctx, http.MethodGet, "/accounting/purchase-orders/{id}", pathGetAccountingPurchaseOrdersID(dir, rt)), NewGeneratedHandler(ctx, http.MethodGet, "/accounting/quotes", pathGetAccountingQuotes(dir, rt)), @@ -218,6 +221,7 @@ func GeneratedHandlers(ctx context.Context, dir *logging.HTTPFileDirectory, rt * NewGeneratedHandler(ctx, http.MethodPatch, "/accounting/ledger-accounts/{id}", pathPatchAccountingLedgerAccountsID(dir, rt)), NewGeneratedHandler(ctx, http.MethodPatch, "/accounting/locations/{id}", pathPatchAccountingLocationsID(dir, rt)), NewGeneratedHandler(ctx, http.MethodPatch, "/accounting/payments/{id}", pathPatchAccountingPaymentsID(dir, rt)), + NewGeneratedHandler(ctx, http.MethodPatch, "/accounting/projects/{id}", pathPatchAccountingProjectsID(dir, rt)), NewGeneratedHandler(ctx, http.MethodPatch, "/accounting/purchase-orders/{id}", pathPatchAccountingPurchaseOrdersID(dir, rt)), NewGeneratedHandler(ctx, http.MethodPatch, "/accounting/quotes/{id}", pathPatchAccountingQuotesID(dir, rt)), NewGeneratedHandler(ctx, http.MethodPatch, "/accounting/subsidiaries/{id}", pathPatchAccountingSubsidiariesID(dir, rt)), @@ -268,6 +272,7 @@ func GeneratedHandlers(ctx context.Context, dir *logging.HTTPFileDirectory, rt * NewGeneratedHandler(ctx, http.MethodPost, "/accounting/ledger-accounts", pathPostAccountingLedgerAccounts(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/accounting/locations", pathPostAccountingLocations(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/accounting/payments", pathPostAccountingPayments(dir, rt)), + NewGeneratedHandler(ctx, http.MethodPost, "/accounting/projects", pathPostAccountingProjects(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/accounting/purchase-orders", pathPostAccountingPurchaseOrders(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/accounting/quotes", pathPostAccountingQuotes(dir, rt)), NewGeneratedHandler(ctx, http.MethodPost, "/accounting/subsidiaries", pathPostAccountingSubsidiaries(dir, rt)), diff --git a/src/__tests__/mockserver/internal/handler/pathdeleteaccountingprojectsid.go b/src/__tests__/mockserver/internal/handler/pathdeleteaccountingprojectsid.go new file mode 100644 index 00000000..2de91344 --- /dev/null +++ b/src/__tests__/mockserver/internal/handler/pathdeleteaccountingprojectsid.go @@ -0,0 +1,71 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package handler + +import ( + "fmt" + "log" + "mockserver/internal/handler/assert" + "mockserver/internal/logging" + "mockserver/internal/sdk/models/components" + "mockserver/internal/sdk/utils" + "mockserver/internal/tracking" + "net/http" +) + +func pathDeleteAccountingProjectsID(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { + return func(w http.ResponseWriter, req *http.Request) { + test := req.Header.Get("x-speakeasy-test-name") + instanceID := req.Header.Get("x-speakeasy-test-instance-id") + + count := rt.GetRequestCount(test, instanceID) + + switch fmt.Sprintf("%s[%d]", test, count) { + case "accounting.projectsDelete[0]": + dir.HandlerFunc("accounting.projectsDelete", testAccountingProjectsDeleteAccountingProjectsDelete0)(w, req) + default: + http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) + } + } +} + +func testAccountingProjectsDeleteAccountingProjectsDelete0(w http.ResponseWriter, req *http.Request) { + if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusUnauthorized) + return + } + if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.HeaderExists(req, "User-Agent"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + var respBody *components.DeleteProjectResponse = &components.DeleteProjectResponse{ + StatusCode: 200, + Status: "OK", + Service: "quickbooks", + Resource: "Projects", + Operation: "delete", + Data: components.UnifiedID{ + ID: "12345", + }, + } + respBodyBytes, err := utils.MarshalJSON(respBody, "", true) + + if err != nil { + http.Error( + w, + "Unable to encode response body as JSON: "+err.Error(), + http.StatusInternalServerError, + ) + return + } + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write(respBodyBytes) +} diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingprojects.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingprojects.go new file mode 100644 index 00000000..db0a91f3 --- /dev/null +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingprojects.go @@ -0,0 +1,83 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package handler + +import ( + "fmt" + "log" + "mockserver/internal/handler/assert" + "mockserver/internal/logging" + "mockserver/internal/sdk/models/components" + "mockserver/internal/sdk/types" + "mockserver/internal/sdk/utils" + "mockserver/internal/tracking" + "net/http" +) + +func pathGetAccountingProjects(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { + return func(w http.ResponseWriter, req *http.Request) { + test := req.Header.Get("x-speakeasy-test-name") + instanceID := req.Header.Get("x-speakeasy-test-instance-id") + + count := rt.GetRequestCount(test, instanceID) + + switch fmt.Sprintf("%s[%d]", test, count) { + case "accounting.projectsAll[0]": + dir.HandlerFunc("accounting.projectsAll", testAccountingProjectsAllAccountingProjectsAll0)(w, req) + default: + http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) + } + } +} + +func testAccountingProjectsAllAccountingProjectsAll0(w http.ResponseWriter, req *http.Request) { + if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusUnauthorized) + return + } + if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.HeaderExists(req, "User-Agent"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + var respBody *components.GetProjectsResponse = &components.GetProjectsResponse{ + StatusCode: 200, + Status: "OK", + Service: "quickbooks", + Resource: "Projects", + Operation: "all", + Data: []components.Project{}, + Meta: &components.Meta{ + ItemsOnPage: types.Int64(50), + Cursors: &components.Cursors{ + Previous: types.String("em9oby1jcm06OnBhZ2U6OjE="), + Current: types.String("em9oby1jcm06OnBhZ2U6OjI="), + Next: types.String("em9oby1jcm06OnBhZ2U6OjM="), + }, + }, + Links: &components.Links{ + Previous: types.String("https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D"), + Current: types.String("https://unify.apideck.com/crm/companies"), + Next: types.String("https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM"), + }, + } + respBodyBytes, err := utils.MarshalJSON(respBody, "", true) + + if err != nil { + http.Error( + w, + "Unable to encode response body as JSON: "+err.Error(), + http.StatusInternalServerError, + ) + return + } + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write(respBodyBytes) +} diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingprojectsid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingprojectsid.go new file mode 100644 index 00000000..cdadbdbb --- /dev/null +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingprojectsid.go @@ -0,0 +1,179 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package handler + +import ( + "fmt" + "log" + "mockserver/internal/handler/assert" + "mockserver/internal/logging" + "mockserver/internal/sdk/models/components" + "mockserver/internal/sdk/types" + "mockserver/internal/sdk/utils" + "mockserver/internal/tracking" + "net/http" +) + +func pathGetAccountingProjectsID(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { + return func(w http.ResponseWriter, req *http.Request) { + test := req.Header.Get("x-speakeasy-test-name") + instanceID := req.Header.Get("x-speakeasy-test-instance-id") + + count := rt.GetRequestCount(test, instanceID) + + switch fmt.Sprintf("%s[%d]", test, count) { + case "accounting.projectsOne[0]": + dir.HandlerFunc("accounting.projectsOne", testAccountingProjectsOneAccountingProjectsOne0)(w, req) + default: + http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) + } + } +} + +func testAccountingProjectsOneAccountingProjectsOne0(w http.ResponseWriter, req *http.Request) { + if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusUnauthorized) + return + } + if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.HeaderExists(req, "User-Agent"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + var respBody *components.GetProjectResponse = &components.GetProjectResponse{ + StatusCode: 200, + Status: "OK", + Service: "quickbooks", + Resource: "Projects", + Operation: "one", + Data: components.Project{ + ID: types.String("12345"), + DownstreamID: types.String("12345"), + Name: "Website Redesign Project", + DisplayID: types.String("PROJ-001"), + ReferenceID: types.String("WD-REF-2024-001"), + Description: types.String("Complete redesign of the company website including new branding and improved user experience"), + Status: components.ProjectProjectStatusActive.ToPointer(), + Active: types.Bool(true), + ProjectType: components.ProjectTypeClientProject.ToPointer(), + Priority: components.ProjectPriorityHigh.ToPointer(), + CompletionPercentage: types.Float64(75.5), + StartDate: types.MustNewDateFromString("2024-01-15"), + EndDate: types.MustNewDateFromString("2024-06-30"), + Customer: &components.LinkedCustomer{ + ID: types.String("12345"), + DisplayID: types.String("CUST00101"), + DisplayName: types.String("Windsurf Shop"), + CompanyName: types.String("The boring company"), + Email: types.String("boring@boring.com"), + }, + Department: &components.ProjectDepartment{ + ID: types.String("DEPT-001"), + Name: types.String("Marketing"), + }, + CompanyID: types.String("12345"), + OwnerID: types.String("12345"), + ParentProject: &components.ParentProject{ + ID: types.String("PROJ-PARENT-001"), + Name: types.String("Company Website Overhaul"), + }, + Currency: components.CurrencyUsd.ToPointer(), + BudgetAmount: types.Float64(50000), + ApprovedAmount: types.Float64(48000), + ActualAmount: types.Float64(45250.75), + BudgetHours: types.Float64(400), + ActualHours: types.Float64(385.5), + HourlyRate: types.Float64(125), + BillingMethod: components.BillingMethodTimeAndMaterials.ToPointer(), + IsBillable: types.Bool(true), + Phase: components.ProjectPhaseExecution.ToPointer(), + TaxRate: &components.LinkedTaxRate{ + ID: types.String("123456"), + Code: types.String("N-T"), + Name: types.String("GST on Purchases"), + Rate: types.Float64(10), + }, + TrackingCategories: []*components.LinkedTrackingCategory{ + &components.LinkedTrackingCategory{ + ID: types.String("123456"), + Name: types.String("New York"), + ParentID: types.String("123456"), + ParentName: types.String("New York"), + }, + }, + Tags: []string{ + "website", + "redesign", + "urgent", + }, + Notes: types.String("Client has requested modern design with mobile-first approach"), + ContractNumber: types.String("CNT-2024-001"), + ProfitMargin: types.Float64(15.5), + ScheduleStatus: components.ScheduleStatusOnSchedule.ToPointer(), + Addresses: []components.Address{ + components.Address{ + ID: types.String("123"), + Type: components.AddressTypePrimary.ToPointer(), + String: types.String("25 Spring Street, Blackburn, VIC 3130"), + Name: types.String("HQ US"), + Line1: types.String("Main street"), + Line2: types.String("apt #"), + Line3: types.String("Suite #"), + Line4: types.String("delivery instructions"), + Line5: types.String("Attention: Finance Dept"), + StreetNumber: types.String("25"), + City: types.String("San Francisco"), + State: types.String("CA"), + PostalCode: types.String("94104"), + Country: types.String("US"), + Latitude: types.String("40.759211"), + Longitude: types.String("-73.984638"), + County: types.String("Santa Clara"), + ContactName: types.String("Elon Musk"), + Salutation: types.String("Mr"), + PhoneNumber: types.String("111-111-1111"), + Fax: types.String("122-111-1111"), + Email: types.String("elon@musk.com"), + Website: types.String("https://elonmusk.com"), + Notes: types.String("Address notes or delivery instructions."), + RowVersion: types.String("1-12345"), + }, + }, + TeamSize: types.Int64(8), + CustomFields: []components.CustomField{ + components.CustomField{ + ID: types.String("2389328923893298"), + Name: types.String("employee_level"), + Description: types.String("Employee Level"), + Value: types.Pointer(components.CreateCustomFieldValue2Str( + "Uses Salesforce and Marketo", + )), + }, + }, + RowVersion: types.String("1-12345"), + UpdatedBy: types.String("12345"), + CreatedBy: types.String("12345"), + CreatedAt: types.MustNewTimeFromString("2020-09-30T07:43:32.000Z"), + UpdatedAt: types.MustNewTimeFromString("2020-09-30T07:43:32.000Z"), + }, + } + respBodyBytes, err := utils.MarshalJSON(respBody, "", true) + + if err != nil { + http.Error( + w, + "Unable to encode response body as JSON: "+err.Error(), + http.StatusInternalServerError, + ) + return + } + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write(respBodyBytes) +} diff --git a/src/__tests__/mockserver/internal/handler/pathgetaccountingquotesid.go b/src/__tests__/mockserver/internal/handler/pathgetaccountingquotesid.go index 6d7d2ad4..bacaa1c7 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetaccountingquotesid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetaccountingquotesid.go @@ -152,6 +152,7 @@ func testAccountingQuotesOneAccountingQuotesOne0(w http.ResponseWriter, req *htt Line2: types.String("apt #"), Line3: types.String("Suite #"), Line4: types.String("delivery instructions"), + Line5: types.String("Attention: Finance Dept"), StreetNumber: types.String("25"), City: types.String("San Francisco"), State: types.String("CA"), @@ -178,6 +179,7 @@ func testAccountingQuotesOneAccountingQuotesOne0(w http.ResponseWriter, req *htt Line2: types.String("apt #"), Line3: types.String("Suite #"), Line4: types.String("delivery instructions"), + Line5: types.String("Attention: Finance Dept"), StreetNumber: types.String("25"), City: types.String("San Francisco"), State: types.String("CA"), diff --git a/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidtickets.go b/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidtickets.go index 5b36fdfe..04694960 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidtickets.go +++ b/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidtickets.go @@ -61,7 +61,7 @@ func testIssueTrackingCollectionTicketsAllIssueTrackingCollectionTicketsAll0(w h Subject: types.String("Technical Support Request"), Description: types.String("I am facing issues with my internet connection"), Status: types.String("open"), - Priority: components.PriorityHigh.ToPointer(), + Priority: components.TicketPriorityHigh.ToPointer(), Assignees: []components.Assignee{ components.Assignee{ ID: "12345", @@ -115,7 +115,7 @@ func testIssueTrackingCollectionTicketsAllIssueTrackingCollectionTicketsAll0(w h Subject: types.String("Technical Support Request"), Description: types.String("I am facing issues with my internet connection"), Status: types.String("open"), - Priority: components.PriorityHigh.ToPointer(), + Priority: components.TicketPriorityHigh.ToPointer(), Assignees: []components.Assignee{ components.Assignee{ ID: "12345", @@ -190,7 +190,7 @@ func testIssueTrackingCollectionTicketsAllIssueTrackingCollectionTicketsAll0(w h Subject: types.String("Technical Support Request"), Description: types.String("I am facing issues with my internet connection"), Status: types.String("open"), - Priority: components.PriorityHigh.ToPointer(), + Priority: components.TicketPriorityHigh.ToPointer(), Assignees: []components.Assignee{ components.Assignee{ ID: "12345", diff --git a/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidticketsticketid.go b/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidticketsticketid.go index ffa48be8..4c987026 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidticketsticketid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetissuetrackingcollectionscollectionidticketsticketid.go @@ -60,7 +60,7 @@ func testIssueTrackingCollectionTicketsOneIssueTrackingCollectionTicketsOne0(w h Subject: types.String("Technical Support Request"), Description: types.String("I am facing issues with my internet connection"), Status: types.String("open"), - Priority: components.PriorityHigh.ToPointer(), + Priority: components.TicketPriorityHigh.ToPointer(), Assignees: []components.Assignee{ components.Assignee{ ID: "12345", diff --git a/src/__tests__/mockserver/internal/handler/pathpatchaccountingprojectsid.go b/src/__tests__/mockserver/internal/handler/pathpatchaccountingprojectsid.go new file mode 100644 index 00000000..b3839561 --- /dev/null +++ b/src/__tests__/mockserver/internal/handler/pathpatchaccountingprojectsid.go @@ -0,0 +1,76 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package handler + +import ( + "fmt" + "log" + "mockserver/internal/handler/assert" + "mockserver/internal/logging" + "mockserver/internal/sdk/models/components" + "mockserver/internal/sdk/utils" + "mockserver/internal/tracking" + "net/http" +) + +func pathPatchAccountingProjectsID(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { + return func(w http.ResponseWriter, req *http.Request) { + test := req.Header.Get("x-speakeasy-test-name") + instanceID := req.Header.Get("x-speakeasy-test-instance-id") + + count := rt.GetRequestCount(test, instanceID) + + switch fmt.Sprintf("%s[%d]", test, count) { + case "accounting.projectsUpdate[0]": + dir.HandlerFunc("accounting.projectsUpdate", testAccountingProjectsUpdateAccountingProjectsUpdate0)(w, req) + default: + http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) + } + } +} + +func testAccountingProjectsUpdateAccountingProjectsUpdate0(w http.ResponseWriter, req *http.Request) { + if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusUnauthorized) + return + } + if err := assert.ContentType(req, "application/json", true); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.HeaderExists(req, "User-Agent"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + var respBody *components.UpdateProjectResponse = &components.UpdateProjectResponse{ + StatusCode: 200, + Status: "OK", + Service: "quickbooks", + Resource: "Projects", + Operation: "update", + Data: components.UnifiedID{ + ID: "12345", + }, + } + respBodyBytes, err := utils.MarshalJSON(respBody, "", true) + + if err != nil { + http.Error( + w, + "Unable to encode response body as JSON: "+err.Error(), + http.StatusInternalServerError, + ) + return + } + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusOK) + _, _ = w.Write(respBodyBytes) +} diff --git a/src/__tests__/mockserver/internal/handler/pathpostaccountingprojects.go b/src/__tests__/mockserver/internal/handler/pathpostaccountingprojects.go new file mode 100644 index 00000000..0f4917f5 --- /dev/null +++ b/src/__tests__/mockserver/internal/handler/pathpostaccountingprojects.go @@ -0,0 +1,76 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package handler + +import ( + "fmt" + "log" + "mockserver/internal/handler/assert" + "mockserver/internal/logging" + "mockserver/internal/sdk/models/components" + "mockserver/internal/sdk/utils" + "mockserver/internal/tracking" + "net/http" +) + +func pathPostAccountingProjects(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { + return func(w http.ResponseWriter, req *http.Request) { + test := req.Header.Get("x-speakeasy-test-name") + instanceID := req.Header.Get("x-speakeasy-test-instance-id") + + count := rt.GetRequestCount(test, instanceID) + + switch fmt.Sprintf("%s[%d]", test, count) { + case "accounting.projectsAdd[0]": + dir.HandlerFunc("accounting.projectsAdd", testAccountingProjectsAddAccountingProjectsAdd0)(w, req) + default: + http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) + } + } +} + +func testAccountingProjectsAddAccountingProjectsAdd0(w http.ResponseWriter, req *http.Request) { + if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusUnauthorized) + return + } + if err := assert.ContentType(req, "application/json", true); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + if err := assert.HeaderExists(req, "User-Agent"); err != nil { + log.Printf("assertion error: %s\n", err) + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + var respBody *components.CreateProjectResponse = &components.CreateProjectResponse{ + StatusCode: 200, + Status: "OK", + Service: "quickbooks", + Resource: "Projects", + Operation: "add", + Data: components.UnifiedID{ + ID: "12345", + }, + } + respBodyBytes, err := utils.MarshalJSON(respBody, "", true) + + if err != nil { + http.Error( + w, + "Unable to encode response body as JSON: "+err.Error(), + http.StatusInternalServerError, + ) + return + } + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(http.StatusCreated) + _, _ = w.Write(respBodyBytes) +} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/address.go b/src/__tests__/mockserver/internal/sdk/models/components/address.go index 132ff4bd..7360b4ee 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/address.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/address.go @@ -69,6 +69,8 @@ type Address struct { Line3 *string `json:"line3,omitempty"` // Line 4 of the address Line4 *string `json:"line4,omitempty"` + // Line 5 of the address + Line5 *string `json:"line5,omitempty"` // Street number StreetNumber *string `json:"street_number,omitempty"` // Name of city. @@ -159,6 +161,13 @@ func (o *Address) GetLine4() *string { return o.Line4 } +func (o *Address) GetLine5() *string { + if o == nil { + return nil + } + return o.Line5 +} + func (o *Address) GetStreetNumber() *string { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/components/bankaccountssort.go b/src/__tests__/mockserver/internal/sdk/models/components/bankaccountssort.go index 3a4f1dd5..546fb31f 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/bankaccountssort.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/bankaccountssort.go @@ -8,18 +8,18 @@ import ( "mockserver/internal/sdk/utils" ) -// SortBy - The field to sort by -type SortBy string +// BankAccountsSortSortBy - The field to sort by +type BankAccountsSortSortBy string const ( - SortByCreatedAt SortBy = "created_at" - SortByUpdatedAt SortBy = "updated_at" + BankAccountsSortSortByCreatedAt BankAccountsSortSortBy = "created_at" + BankAccountsSortSortByUpdatedAt BankAccountsSortSortBy = "updated_at" ) -func (e SortBy) ToPointer() *SortBy { +func (e BankAccountsSortSortBy) ToPointer() *BankAccountsSortSortBy { return &e } -func (e *SortBy) UnmarshalJSON(data []byte) error { +func (e *BankAccountsSortSortBy) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -28,16 +28,16 @@ func (e *SortBy) UnmarshalJSON(data []byte) error { case "created_at": fallthrough case "updated_at": - *e = SortBy(v) + *e = BankAccountsSortSortBy(v) return nil default: - return fmt.Errorf("invalid value for SortBy: %v", v) + return fmt.Errorf("invalid value for BankAccountsSortSortBy: %v", v) } } type BankAccountsSort struct { // The field to sort by - By *SortBy `default:"updated_at" queryParam:"name=by"` + By *BankAccountsSortSortBy `default:"updated_at" queryParam:"name=by"` // The direction in which to sort the results Direction *SortDirection `default:"asc" queryParam:"name=direction"` } @@ -53,7 +53,7 @@ func (b *BankAccountsSort) UnmarshalJSON(data []byte) error { return nil } -func (o *BankAccountsSort) GetBy() *SortBy { +func (o *BankAccountsSort) GetBy() *BankAccountsSortSortBy { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/categoriesfilter.go b/src/__tests__/mockserver/internal/sdk/models/components/categoriesfilter.go index 77a7af94..d6729494 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/categoriesfilter.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/categoriesfilter.go @@ -14,6 +14,7 @@ const ( CategoriesFilterTypeSupplier CategoriesFilterType = "supplier" CategoriesFilterTypeExpense CategoriesFilterType = "expense" CategoriesFilterTypeRevenue CategoriesFilterType = "revenue" + CategoriesFilterTypeCustomer CategoriesFilterType = "customer" ) func (e CategoriesFilterType) ToPointer() *CategoriesFilterType { @@ -30,6 +31,8 @@ func (e *CategoriesFilterType) UnmarshalJSON(data []byte) error { case "expense": fallthrough case "revenue": + fallthrough + case "customer": *e = CategoriesFilterType(v) return nil default: diff --git a/src/__tests__/mockserver/internal/sdk/models/components/category.go b/src/__tests__/mockserver/internal/sdk/models/components/category.go index 4d536705..4d386831 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/category.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/category.go @@ -16,6 +16,7 @@ const ( CategoryTypeSupplier CategoryType = "supplier" CategoryTypeExpense CategoryType = "expense" CategoryTypeRevenue CategoryType = "revenue" + CategoryTypeCustomer CategoryType = "customer" ) func (e CategoryType) ToPointer() *CategoryType { @@ -32,6 +33,8 @@ func (e *CategoryType) UnmarshalJSON(data []byte) error { case "expense": fallthrough case "revenue": + fallthrough + case "customer": *e = CategoryType(v) return nil default: diff --git a/src/__tests__/mockserver/internal/sdk/models/components/createprojectresponse.go b/src/__tests__/mockserver/internal/sdk/models/components/createprojectresponse.go new file mode 100644 index 00000000..6c599158 --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/components/createprojectresponse.go @@ -0,0 +1,61 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// CreateProjectResponse - Projects +type CreateProjectResponse struct { + // HTTP Response Status Code + StatusCode int64 `json:"status_code"` + // HTTP Response Status + Status string `json:"status"` + // Apideck ID of service provider + Service string `json:"service"` + // Unified API resource name + Resource string `json:"resource"` + // Operation performed + Operation string `json:"operation"` + // A object containing a unique identifier for the resource that was created, updated, or deleted. + Data UnifiedID `json:"data"` +} + +func (o *CreateProjectResponse) GetStatusCode() int64 { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *CreateProjectResponse) GetStatus() string { + if o == nil { + return "" + } + return o.Status +} + +func (o *CreateProjectResponse) GetService() string { + if o == nil { + return "" + } + return o.Service +} + +func (o *CreateProjectResponse) GetResource() string { + if o == nil { + return "" + } + return o.Resource +} + +func (o *CreateProjectResponse) GetOperation() string { + if o == nil { + return "" + } + return o.Operation +} + +func (o *CreateProjectResponse) GetData() UnifiedID { + if o == nil { + return UnifiedID{} + } + return o.Data +} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/customer.go b/src/__tests__/mockserver/internal/sdk/models/components/customer.go index 4c811fc7..352b71b9 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/customer.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/customer.go @@ -58,6 +58,8 @@ type Customer struct { CompanyName *string `json:"company_name,omitempty"` // The company ID the transaction belongs to CompanyID *string `json:"company_id,omitempty"` + // The category/type of the customer + CustomerCategory *string `json:"customer_category,omitempty"` // The job title of the person. Title *string `json:"title,omitempty"` // The first name of the person. @@ -89,6 +91,8 @@ type Customer struct { Status *CustomerStatus `json:"status,omitempty"` // Payment method used for the transaction, such as cash, credit card, bank transfer, or check PaymentMethod *string `json:"payment_method,omitempty"` + // Terms of payment. + Terms *string `json:"terms,omitempty"` // The channel through which the transaction is processed. Channel *string `json:"channel,omitempty"` CustomFields []CustomField `json:"custom_fields,omitempty"` @@ -161,6 +165,13 @@ func (o *Customer) GetCompanyID() *string { return o.CompanyID } +func (o *Customer) GetCustomerCategory() *string { + if o == nil { + return nil + } + return o.CustomerCategory +} + func (o *Customer) GetTitle() *string { if o == nil { return nil @@ -301,6 +312,13 @@ func (o *Customer) GetPaymentMethod() *string { return o.PaymentMethod } +func (o *Customer) GetTerms() *string { + if o == nil { + return nil + } + return o.Terms +} + func (o *Customer) GetChannel() *string { if o == nil { return nil @@ -373,6 +391,8 @@ type CustomerInput struct { CompanyName *string `json:"company_name,omitempty"` // The company ID the transaction belongs to CompanyID *string `json:"company_id,omitempty"` + // The category/type of the customer + CustomerCategory *string `json:"customer_category,omitempty"` // The job title of the person. Title *string `json:"title,omitempty"` // The first name of the person. @@ -404,6 +424,8 @@ type CustomerInput struct { Status *CustomerStatus `json:"status,omitempty"` // Payment method used for the transaction, such as cash, credit card, bank transfer, or check PaymentMethod *string `json:"payment_method,omitempty"` + // Terms of payment. + Terms *string `json:"terms,omitempty"` // The channel through which the transaction is processed. Channel *string `json:"channel,omitempty"` CustomFields []CustomField `json:"custom_fields,omitempty"` @@ -441,6 +463,13 @@ func (o *CustomerInput) GetCompanyID() *string { return o.CompanyID } +func (o *CustomerInput) GetCustomerCategory() *string { + if o == nil { + return nil + } + return o.CustomerCategory +} + func (o *CustomerInput) GetTitle() *string { if o == nil { return nil @@ -581,6 +610,13 @@ func (o *CustomerInput) GetPaymentMethod() *string { return o.PaymentMethod } +func (o *CustomerInput) GetTerms() *string { + if o == nil { + return nil + } + return o.Terms +} + func (o *CustomerInput) GetChannel() *string { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/components/deleteprojectresponse.go b/src/__tests__/mockserver/internal/sdk/models/components/deleteprojectresponse.go new file mode 100644 index 00000000..87869872 --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/components/deleteprojectresponse.go @@ -0,0 +1,61 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// DeleteProjectResponse - Projects +type DeleteProjectResponse struct { + // HTTP Response Status Code + StatusCode int64 `json:"status_code"` + // HTTP Response Status + Status string `json:"status"` + // Apideck ID of service provider + Service string `json:"service"` + // Unified API resource name + Resource string `json:"resource"` + // Operation performed + Operation string `json:"operation"` + // A object containing a unique identifier for the resource that was created, updated, or deleted. + Data UnifiedID `json:"data"` +} + +func (o *DeleteProjectResponse) GetStatusCode() int64 { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *DeleteProjectResponse) GetStatus() string { + if o == nil { + return "" + } + return o.Status +} + +func (o *DeleteProjectResponse) GetService() string { + if o == nil { + return "" + } + return o.Service +} + +func (o *DeleteProjectResponse) GetResource() string { + if o == nil { + return "" + } + return o.Resource +} + +func (o *DeleteProjectResponse) GetOperation() string { + if o == nil { + return "" + } + return o.Operation +} + +func (o *DeleteProjectResponse) GetData() UnifiedID { + if o == nil { + return UnifiedID{} + } + return o.Data +} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/getprojectresponse.go b/src/__tests__/mockserver/internal/sdk/models/components/getprojectresponse.go new file mode 100644 index 00000000..86ead130 --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/components/getprojectresponse.go @@ -0,0 +1,60 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// GetProjectResponse - Projects +type GetProjectResponse struct { + // HTTP Response Status Code + StatusCode int64 `json:"status_code"` + // HTTP Response Status + Status string `json:"status"` + // Apideck ID of service provider + Service string `json:"service"` + // Unified API resource name + Resource string `json:"resource"` + // Operation performed + Operation string `json:"operation"` + Data Project `json:"data"` +} + +func (o *GetProjectResponse) GetStatusCode() int64 { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetProjectResponse) GetStatus() string { + if o == nil { + return "" + } + return o.Status +} + +func (o *GetProjectResponse) GetService() string { + if o == nil { + return "" + } + return o.Service +} + +func (o *GetProjectResponse) GetResource() string { + if o == nil { + return "" + } + return o.Resource +} + +func (o *GetProjectResponse) GetOperation() string { + if o == nil { + return "" + } + return o.Operation +} + +func (o *GetProjectResponse) GetData() Project { + if o == nil { + return Project{} + } + return o.Data +} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/getprojectsresponse.go b/src/__tests__/mockserver/internal/sdk/models/components/getprojectsresponse.go new file mode 100644 index 00000000..40b26002 --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/components/getprojectsresponse.go @@ -0,0 +1,78 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// GetProjectsResponse - Projects +type GetProjectsResponse struct { + // HTTP Response Status Code + StatusCode int64 `json:"status_code"` + // HTTP Response Status + Status string `json:"status"` + // Apideck ID of service provider + Service string `json:"service"` + // Unified API resource name + Resource string `json:"resource"` + // Operation performed + Operation string `json:"operation"` + Data []Project `json:"data"` + // Response metadata + Meta *Meta `json:"meta,omitempty"` + // Links to navigate to previous or next pages through the API + Links *Links `json:"links,omitempty"` +} + +func (o *GetProjectsResponse) GetStatusCode() int64 { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *GetProjectsResponse) GetStatus() string { + if o == nil { + return "" + } + return o.Status +} + +func (o *GetProjectsResponse) GetService() string { + if o == nil { + return "" + } + return o.Service +} + +func (o *GetProjectsResponse) GetResource() string { + if o == nil { + return "" + } + return o.Resource +} + +func (o *GetProjectsResponse) GetOperation() string { + if o == nil { + return "" + } + return o.Operation +} + +func (o *GetProjectsResponse) GetData() []Project { + if o == nil { + return []Project{} + } + return o.Data +} + +func (o *GetProjectsResponse) GetMeta() *Meta { + if o == nil { + return nil + } + return o.Meta +} + +func (o *GetProjectsResponse) GetLinks() *Links { + if o == nil { + return nil + } + return o.Links +} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/invoiceitemfilter.go b/src/__tests__/mockserver/internal/sdk/models/components/invoiceitemfilter.go index 9ef3a33a..7a5ffbde 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/invoiceitemfilter.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/invoiceitemfilter.go @@ -37,9 +37,38 @@ func (e *InvoiceItemFilterInvoiceItemType) UnmarshalJSON(data []byte) error { } } +// InvoiceItemFilterTransactionType - The kind of transaction, indicating whether it is a sales transaction or a purchase transaction. +type InvoiceItemFilterTransactionType string + +const ( + InvoiceItemFilterTransactionTypeSale InvoiceItemFilterTransactionType = "sale" + InvoiceItemFilterTransactionTypePurchase InvoiceItemFilterTransactionType = "purchase" +) + +func (e InvoiceItemFilterTransactionType) ToPointer() *InvoiceItemFilterTransactionType { + return &e +} +func (e *InvoiceItemFilterTransactionType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "sale": + fallthrough + case "purchase": + *e = InvoiceItemFilterTransactionType(v) + return nil + default: + return fmt.Errorf("invalid value for InvoiceItemFilterTransactionType: %v", v) + } +} + type InvoiceItemFilter struct { // The type of invoice item, indicating whether it is an inventory item, a service, or another type. Type *InvoiceItemFilterInvoiceItemType `queryParam:"name=type"` + // The kind of transaction, indicating whether it is a sales transaction or a purchase transaction. + TransactionType *InvoiceItemFilterTransactionType `queryParam:"name=transaction_type"` } func (o *InvoiceItemFilter) GetType() *InvoiceItemFilterInvoiceItemType { @@ -48,3 +77,10 @@ func (o *InvoiceItemFilter) GetType() *InvoiceItemFilterInvoiceItemType { } return o.Type } + +func (o *InvoiceItemFilter) GetTransactionType() *InvoiceItemFilterTransactionType { + if o == nil { + return nil + } + return o.TransactionType +} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/invoiceitemsfilter.go b/src/__tests__/mockserver/internal/sdk/models/components/invoiceitemsfilter.go index 2c17d24b..224c36fc 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/invoiceitemsfilter.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/invoiceitemsfilter.go @@ -37,11 +37,40 @@ func (e *InvoiceItemsFilterInvoiceItemType) UnmarshalJSON(data []byte) error { } } +// InvoiceItemsFilterTransactionType - The kind of transaction, indicating whether it is a sales transaction or a purchase transaction. +type InvoiceItemsFilterTransactionType string + +const ( + InvoiceItemsFilterTransactionTypeSale InvoiceItemsFilterTransactionType = "sale" + InvoiceItemsFilterTransactionTypePurchase InvoiceItemsFilterTransactionType = "purchase" +) + +func (e InvoiceItemsFilterTransactionType) ToPointer() *InvoiceItemsFilterTransactionType { + return &e +} +func (e *InvoiceItemsFilterTransactionType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "sale": + fallthrough + case "purchase": + *e = InvoiceItemsFilterTransactionType(v) + return nil + default: + return fmt.Errorf("invalid value for InvoiceItemsFilterTransactionType: %v", v) + } +} + type InvoiceItemsFilter struct { // Name of Invoice Items to search for Name *string `queryParam:"name=name"` // The type of invoice item, indicating whether it is an inventory item, a service, or another type. Type *InvoiceItemsFilterInvoiceItemType `queryParam:"name=type"` + // The kind of transaction, indicating whether it is a sales transaction or a purchase transaction. + TransactionType *InvoiceItemsFilterTransactionType `queryParam:"name=transaction_type"` } func (o *InvoiceItemsFilter) GetName() *string { @@ -57,3 +86,10 @@ func (o *InvoiceItemsFilter) GetType() *InvoiceItemsFilterInvoiceItemType { } return o.Type } + +func (o *InvoiceItemsFilter) GetTransactionType() *InvoiceItemsFilterTransactionType { + if o == nil { + return nil + } + return o.TransactionType +} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/invoicelineitem.go b/src/__tests__/mockserver/internal/sdk/models/components/invoicelineitem.go index c13bc590..48e996d2 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/invoicelineitem.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/invoicelineitem.go @@ -5,6 +5,7 @@ package components import ( "encoding/json" "fmt" + "mockserver/internal/sdk/types" "mockserver/internal/sdk/utils" "time" ) @@ -73,6 +74,8 @@ type InvoiceLineItem struct { DiscountPercentage *float64 `json:"discount_percentage,omitempty"` // Discount amount applied to the line item when supported downstream. DiscountAmount *float64 `json:"discount_amount,omitempty"` + // Date on which the service was provided or performed - YYYY-MM-DD. + ServiceDate *types.Date `json:"service_date,omitempty"` // ID of the category of the line item CategoryID *string `json:"category_id,omitempty"` // The ID of the location @@ -215,6 +218,13 @@ func (o *InvoiceLineItem) GetDiscountAmount() *float64 { return o.DiscountAmount } +func (o *InvoiceLineItem) GetServiceDate() *types.Date { + if o == nil { + return nil + } + return o.ServiceDate +} + func (o *InvoiceLineItem) GetCategoryID() *string { if o == nil { return nil @@ -387,6 +397,8 @@ type InvoiceLineItemInput struct { DiscountPercentage *float64 `json:"discount_percentage,omitempty"` // Discount amount applied to the line item when supported downstream. DiscountAmount *float64 `json:"discount_amount,omitempty"` + // Date on which the service was provided or performed - YYYY-MM-DD. + ServiceDate *types.Date `json:"service_date,omitempty"` // ID of the category of the line item CategoryID *string `json:"category_id,omitempty"` // The ID of the location @@ -419,6 +431,17 @@ type InvoiceLineItemInput struct { RowVersion *string `json:"row_version,omitempty"` } +func (i InvoiceLineItemInput) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(i, "", false) +} + +func (i *InvoiceLineItemInput) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &i, "", false, nil); err != nil { + return err + } + return nil +} + func (o *InvoiceLineItemInput) GetID() *string { if o == nil { return nil @@ -510,6 +533,13 @@ func (o *InvoiceLineItemInput) GetDiscountAmount() *float64 { return o.DiscountAmount } +func (o *InvoiceLineItemInput) GetServiceDate() *types.Date { + if o == nil { + return nil + } + return o.ServiceDate +} + func (o *InvoiceLineItemInput) GetCategoryID() *string { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/components/invoicesfilter.go b/src/__tests__/mockserver/internal/sdk/models/components/invoicesfilter.go index ac6c9f96..f54790e2 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/invoicesfilter.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/invoicesfilter.go @@ -12,6 +12,8 @@ type InvoicesFilter struct { CreatedSince *time.Time `queryParam:"name=created_since"` // Invoice number to search for Number *string `queryParam:"name=number"` + // Supplier ID to filter invoices by + SupplierID *string `queryParam:"name=supplier_id"` } func (i InvoicesFilter) MarshalJSON() ([]byte, error) { @@ -45,3 +47,10 @@ func (o *InvoicesFilter) GetNumber() *string { } return o.Number } + +func (o *InvoicesFilter) GetSupplierID() *string { + if o == nil { + return nil + } + return o.SupplierID +} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/journalentry.go b/src/__tests__/mockserver/internal/sdk/models/components/journalentry.go index becfdd38..175b884f 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/journalentry.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/journalentry.go @@ -57,6 +57,8 @@ func (e *JournalEntryStatus) UnmarshalJSON(data []byte) error { type JournalEntry struct { // A unique identifier for an object. ID *string `json:"id,omitempty"` + // The third-party API ID of original entity + DownstreamID *string `json:"downstream_id,omitempty"` // Journal entry title Title *string `json:"title,omitempty"` // Currency Exchange Rate at the time entity was recorded/generated. @@ -85,6 +87,12 @@ type JournalEntry struct { TrackingCategories []*LinkedTrackingCategory `json:"tracking_categories,omitempty"` // Accounting period AccountingPeriod *string `json:"accounting_period,omitempty"` + // Amounts are including tax + TaxInclusive *bool `json:"tax_inclusive,omitempty"` + // The source type of the journal entry + SourceType *string `json:"source_type,omitempty"` + // A unique identifier for the source of the journal entry + SourceID *string `json:"source_id,omitempty"` // When custom mappings are configured on the resource, the result is included here. CustomMappings map[string]any `json:"custom_mappings,omitempty"` // The user who last updated the object. @@ -120,6 +128,13 @@ func (o *JournalEntry) GetID() *string { return o.ID } +func (o *JournalEntry) GetDownstreamID() *string { + if o == nil { + return nil + } + return o.DownstreamID +} + func (o *JournalEntry) GetTitle() *string { if o == nil { return nil @@ -218,6 +233,27 @@ func (o *JournalEntry) GetAccountingPeriod() *string { return o.AccountingPeriod } +func (o *JournalEntry) GetTaxInclusive() *bool { + if o == nil { + return nil + } + return o.TaxInclusive +} + +func (o *JournalEntry) GetSourceType() *string { + if o == nil { + return nil + } + return o.SourceType +} + +func (o *JournalEntry) GetSourceID() *string { + if o == nil { + return nil + } + return o.SourceID +} + func (o *JournalEntry) GetCustomMappings() map[string]any { if o == nil { return nil @@ -303,6 +339,12 @@ type JournalEntryInput struct { TrackingCategories []*LinkedTrackingCategory `json:"tracking_categories,omitempty"` // Accounting period AccountingPeriod *string `json:"accounting_period,omitempty"` + // Amounts are including tax + TaxInclusive *bool `json:"tax_inclusive,omitempty"` + // The source type of the journal entry + SourceType *string `json:"source_type,omitempty"` + // A unique identifier for the source of the journal entry + SourceID *string `json:"source_id,omitempty"` // A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. RowVersion *string `json:"row_version,omitempty"` CustomFields []CustomField `json:"custom_fields,omitempty"` @@ -419,6 +461,27 @@ func (o *JournalEntryInput) GetAccountingPeriod() *string { return o.AccountingPeriod } +func (o *JournalEntryInput) GetTaxInclusive() *bool { + if o == nil { + return nil + } + return o.TaxInclusive +} + +func (o *JournalEntryInput) GetSourceType() *string { + if o == nil { + return nil + } + return o.SourceType +} + +func (o *JournalEntryInput) GetSourceID() *string { + if o == nil { + return nil + } + return o.SourceID +} + func (o *JournalEntryInput) GetRowVersion() *string { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/components/ledgeraccount.go b/src/__tests__/mockserver/internal/sdk/models/components/ledgeraccount.go index 9076d975..1e74e9d7 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/ledgeraccount.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/ledgeraccount.go @@ -65,25 +65,25 @@ func (e *LedgerAccountClassification) UnmarshalJSON(data []byte) error { type LedgerAccountType string const ( + LedgerAccountTypeAccountsPayable LedgerAccountType = "accounts_payable" LedgerAccountTypeAccountsReceivable LedgerAccountType = "accounts_receivable" - LedgerAccountTypeRevenue LedgerAccountType = "revenue" - LedgerAccountTypeSales LedgerAccountType = "sales" - LedgerAccountTypeOtherIncome LedgerAccountType = "other_income" + LedgerAccountTypeBalancesheet LedgerAccountType = "balancesheet" LedgerAccountTypeBank LedgerAccountType = "bank" + LedgerAccountTypeCostsOfSales LedgerAccountType = "costs_of_sales" + LedgerAccountTypeCreditCard LedgerAccountType = "credit_card" LedgerAccountTypeCurrentAsset LedgerAccountType = "current_asset" + LedgerAccountTypeCurrentLiability LedgerAccountType = "current_liability" + LedgerAccountTypeEquity LedgerAccountType = "equity" + LedgerAccountTypeExpense LedgerAccountType = "expense" LedgerAccountTypeFixedAsset LedgerAccountType = "fixed_asset" LedgerAccountTypeNonCurrentAsset LedgerAccountType = "non_current_asset" + LedgerAccountTypeNonCurrentLiability LedgerAccountType = "non_current_liability" LedgerAccountTypeOtherAsset LedgerAccountType = "other_asset" - LedgerAccountTypeBalancesheet LedgerAccountType = "balancesheet" - LedgerAccountTypeEquity LedgerAccountType = "equity" - LedgerAccountTypeExpense LedgerAccountType = "expense" LedgerAccountTypeOtherExpense LedgerAccountType = "other_expense" - LedgerAccountTypeCostsOfSales LedgerAccountType = "costs_of_sales" - LedgerAccountTypeAccountsPayable LedgerAccountType = "accounts_payable" - LedgerAccountTypeCreditCard LedgerAccountType = "credit_card" - LedgerAccountTypeCurrentLiability LedgerAccountType = "current_liability" - LedgerAccountTypeNonCurrentLiability LedgerAccountType = "non_current_liability" + LedgerAccountTypeOtherIncome LedgerAccountType = "other_income" LedgerAccountTypeOtherLiability LedgerAccountType = "other_liability" + LedgerAccountTypeRevenue LedgerAccountType = "revenue" + LedgerAccountTypeSales LedgerAccountType = "sales" LedgerAccountTypeOther LedgerAccountType = "other" ) @@ -96,44 +96,44 @@ func (e *LedgerAccountType) UnmarshalJSON(data []byte) error { return err } switch v { - case "accounts_receivable": - fallthrough - case "revenue": + case "accounts_payable": fallthrough - case "sales": + case "accounts_receivable": fallthrough - case "other_income": + case "balancesheet": fallthrough case "bank": fallthrough - case "current_asset": - fallthrough - case "fixed_asset": + case "costs_of_sales": fallthrough - case "non_current_asset": + case "credit_card": fallthrough - case "other_asset": + case "current_asset": fallthrough - case "balancesheet": + case "current_liability": fallthrough case "equity": fallthrough case "expense": fallthrough - case "other_expense": + case "fixed_asset": fallthrough - case "costs_of_sales": + case "non_current_asset": fallthrough - case "accounts_payable": + case "non_current_liability": fallthrough - case "credit_card": + case "other_asset": fallthrough - case "current_liability": + case "other_expense": fallthrough - case "non_current_liability": + case "other_income": fallthrough case "other_liability": fallthrough + case "revenue": + fallthrough + case "sales": + fallthrough case "other": *e = LedgerAccountType(v) return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/components/project.go b/src/__tests__/mockserver/internal/sdk/models/components/project.go new file mode 100644 index 00000000..7cbb0d16 --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/components/project.go @@ -0,0 +1,1006 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "encoding/json" + "fmt" + "mockserver/internal/sdk/types" + "mockserver/internal/sdk/utils" + "time" +) + +// ProjectProjectStatus - Current status of the project +type ProjectProjectStatus string + +const ( + ProjectProjectStatusActive ProjectProjectStatus = "active" + ProjectProjectStatusCompleted ProjectProjectStatus = "completed" + ProjectProjectStatusOnHold ProjectProjectStatus = "on_hold" + ProjectProjectStatusCancelled ProjectProjectStatus = "cancelled" + ProjectProjectStatusDraft ProjectProjectStatus = "draft" + ProjectProjectStatusInProgress ProjectProjectStatus = "in_progress" + ProjectProjectStatusApproved ProjectProjectStatus = "approved" + ProjectProjectStatusOther ProjectProjectStatus = "other" +) + +func (e ProjectProjectStatus) ToPointer() *ProjectProjectStatus { + return &e +} +func (e *ProjectProjectStatus) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "active": + fallthrough + case "completed": + fallthrough + case "on_hold": + fallthrough + case "cancelled": + fallthrough + case "draft": + fallthrough + case "in_progress": + fallthrough + case "approved": + fallthrough + case "other": + *e = ProjectProjectStatus(v) + return nil + default: + return fmt.Errorf("invalid value for ProjectProjectStatus: %v", v) + } +} + +// ProjectType - Type or category of the project +type ProjectType string + +const ( + ProjectTypeClientProject ProjectType = "client_project" + ProjectTypeInternalProject ProjectType = "internal_project" + ProjectTypeMaintenance ProjectType = "maintenance" + ProjectTypeResearchDevelopment ProjectType = "research_development" + ProjectTypeTraining ProjectType = "training" + ProjectTypeOther ProjectType = "other" +) + +func (e ProjectType) ToPointer() *ProjectType { + return &e +} +func (e *ProjectType) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "client_project": + fallthrough + case "internal_project": + fallthrough + case "maintenance": + fallthrough + case "research_development": + fallthrough + case "training": + fallthrough + case "other": + *e = ProjectType(v) + return nil + default: + return fmt.Errorf("invalid value for ProjectType: %v", v) + } +} + +// ProjectPriority - Priority level of the project +type ProjectPriority string + +const ( + ProjectPriorityLow ProjectPriority = "low" + ProjectPriorityMedium ProjectPriority = "medium" + ProjectPriorityHigh ProjectPriority = "high" + ProjectPriorityCritical ProjectPriority = "critical" +) + +func (e ProjectPriority) ToPointer() *ProjectPriority { + return &e +} +func (e *ProjectPriority) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "low": + fallthrough + case "medium": + fallthrough + case "high": + fallthrough + case "critical": + *e = ProjectPriority(v) + return nil + default: + return fmt.Errorf("invalid value for ProjectPriority: %v", v) + } +} + +// ProjectDepartment - Department or organizational unit associated with the project +type ProjectDepartment struct { + // Unique identifier for the department + ID *string `json:"id,omitempty"` + // Name of the department + Name *string `json:"name,omitempty"` +} + +func (o *ProjectDepartment) GetID() *string { + if o == nil { + return nil + } + return o.ID +} + +func (o *ProjectDepartment) GetName() *string { + if o == nil { + return nil + } + return o.Name +} + +// ParentProject - Parent project if this is a subproject +type ParentProject struct { + // Unique identifier for the parent project + ID *string `json:"id,omitempty"` + // Name of the parent project + Name *string `json:"name,omitempty"` +} + +func (o *ParentProject) GetID() *string { + if o == nil { + return nil + } + return o.ID +} + +func (o *ParentProject) GetName() *string { + if o == nil { + return nil + } + return o.Name +} + +// BillingMethod - Method used for billing this project +type BillingMethod string + +const ( + BillingMethodFixedPrice BillingMethod = "fixed_price" + BillingMethodTimeAndMaterials BillingMethod = "time_and_materials" + BillingMethodMilestoneBased BillingMethod = "milestone_based" + BillingMethodRetainer BillingMethod = "retainer" + BillingMethodNonBillable BillingMethod = "non_billable" +) + +func (e BillingMethod) ToPointer() *BillingMethod { + return &e +} +func (e *BillingMethod) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "fixed_price": + fallthrough + case "time_and_materials": + fallthrough + case "milestone_based": + fallthrough + case "retainer": + fallthrough + case "non_billable": + *e = BillingMethod(v) + return nil + default: + return fmt.Errorf("invalid value for BillingMethod: %v", v) + } +} + +// ProjectPhase - Current phase of the project lifecycle +type ProjectPhase string + +const ( + ProjectPhaseInitiation ProjectPhase = "initiation" + ProjectPhasePlanning ProjectPhase = "planning" + ProjectPhaseExecution ProjectPhase = "execution" + ProjectPhaseMonitoring ProjectPhase = "monitoring" + ProjectPhaseClosure ProjectPhase = "closure" + ProjectPhaseOther ProjectPhase = "other" +) + +func (e ProjectPhase) ToPointer() *ProjectPhase { + return &e +} +func (e *ProjectPhase) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "initiation": + fallthrough + case "planning": + fallthrough + case "execution": + fallthrough + case "monitoring": + fallthrough + case "closure": + fallthrough + case "other": + *e = ProjectPhase(v) + return nil + default: + return fmt.Errorf("invalid value for ProjectPhase: %v", v) + } +} + +// ScheduleStatus - Current status of project schedule compared to plan +type ScheduleStatus string + +const ( + ScheduleStatusAheadOfSchedule ScheduleStatus = "ahead_of_schedule" + ScheduleStatusOnSchedule ScheduleStatus = "on_schedule" + ScheduleStatusBehindSchedule ScheduleStatus = "behind_schedule" + ScheduleStatusCriticalDelay ScheduleStatus = "critical_delay" +) + +func (e ScheduleStatus) ToPointer() *ScheduleStatus { + return &e +} +func (e *ScheduleStatus) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "ahead_of_schedule": + fallthrough + case "on_schedule": + fallthrough + case "behind_schedule": + fallthrough + case "critical_delay": + *e = ScheduleStatus(v) + return nil + default: + return fmt.Errorf("invalid value for ScheduleStatus: %v", v) + } +} + +type Project struct { + // A unique identifier for an object. + ID *string `json:"id,omitempty"` + // The third-party API ID of original entity + DownstreamID *string `json:"downstream_id,omitempty"` + // Name of the project + Name string `json:"name"` + // User-friendly project identifier + DisplayID *string `json:"display_id,omitempty"` + // External reference identifier for the project + ReferenceID *string `json:"reference_id,omitempty"` + // Detailed description of the project + Description *string `json:"description,omitempty"` + // Current status of the project + Status *ProjectProjectStatus `json:"status,omitempty"` + // Indicates whether the project is currently active or inactive + Active *bool `json:"active,omitempty"` + // Type or category of the project + ProjectType *ProjectType `json:"project_type,omitempty"` + // Priority level of the project + Priority *ProjectPriority `json:"priority,omitempty"` + // Percentage of project completion (0-100) + CompletionPercentage *float64 `json:"completion_percentage,omitempty"` + // Start date of the project + StartDate *types.Date `json:"start_date,omitempty"` + // Expected or actual end date of the project + EndDate *types.Date `json:"end_date,omitempty"` + // The customer this entity is linked to. + Customer *LinkedCustomer `json:"customer,omitempty"` + // Department or organizational unit associated with the project + Department *ProjectDepartment `json:"department,omitempty"` + // The company ID the transaction belongs to + CompanyID *string `json:"company_id,omitempty"` + // ID of the user who owns/manages this project + OwnerID *string `json:"owner_id,omitempty"` + // Parent project if this is a subproject + ParentProject *ParentProject `json:"parent_project,omitempty"` + // Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). + Currency *Currency `json:"currency,omitempty"` + // Total budgeted amount for the project + BudgetAmount *float64 `json:"budget_amount,omitempty"` + // Approved budget amount for the project + ApprovedAmount *float64 `json:"approved_amount,omitempty"` + // Total actual amount spent on the project + ActualAmount *float64 `json:"actual_amount,omitempty"` + // Total budgeted hours for the project + BudgetHours *float64 `json:"budget_hours,omitempty"` + // Total actual hours worked on the project + ActualHours *float64 `json:"actual_hours,omitempty"` + // Default hourly rate for project work + HourlyRate *float64 `json:"hourly_rate,omitempty"` + // Method used for billing this project + BillingMethod *BillingMethod `json:"billing_method,omitempty"` + // Indicates if the project is billable to the customer + IsBillable *bool `default:"true" json:"is_billable"` + // Current phase of the project lifecycle + Phase *ProjectPhase `json:"phase,omitempty"` + TaxRate *LinkedTaxRate `json:"tax_rate,omitempty"` + // A list of linked tracking categories. + TrackingCategories []*LinkedTrackingCategory `json:"tracking_categories,omitempty"` + // Tags associated with the project + Tags []string `json:"tags,omitempty"` + // Additional notes about the project + Notes *string `json:"notes,omitempty"` + // Contract or agreement number associated with the project + ContractNumber *string `json:"contract_number,omitempty"` + // Expected profit margin percentage for the project + ProfitMargin *float64 `json:"profit_margin,omitempty"` + // Current status of project schedule compared to plan + ScheduleStatus *ScheduleStatus `json:"schedule_status,omitempty"` + // An array of addresses associated with the project (billing, job site, etc.) + Addresses []Address `json:"addresses,omitempty"` + // Number of team members assigned to the project + TeamSize *int64 `json:"team_size,omitempty"` + CustomFields []CustomField `json:"custom_fields,omitempty"` + // A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. + RowVersion *string `json:"row_version,omitempty"` + // The user who last updated the object. + UpdatedBy *string `json:"updated_by,omitempty"` + // The user who created the object. + CreatedBy *string `json:"created_by,omitempty"` + // The date and time when the object was created. + CreatedAt *time.Time `json:"created_at,omitempty"` + // The date and time when the object was last updated. + UpdatedAt *time.Time `json:"updated_at,omitempty"` +} + +func (p Project) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *Project) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + +func (o *Project) GetID() *string { + if o == nil { + return nil + } + return o.ID +} + +func (o *Project) GetDownstreamID() *string { + if o == nil { + return nil + } + return o.DownstreamID +} + +func (o *Project) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *Project) GetDisplayID() *string { + if o == nil { + return nil + } + return o.DisplayID +} + +func (o *Project) GetReferenceID() *string { + if o == nil { + return nil + } + return o.ReferenceID +} + +func (o *Project) GetDescription() *string { + if o == nil { + return nil + } + return o.Description +} + +func (o *Project) GetStatus() *ProjectProjectStatus { + if o == nil { + return nil + } + return o.Status +} + +func (o *Project) GetActive() *bool { + if o == nil { + return nil + } + return o.Active +} + +func (o *Project) GetProjectType() *ProjectType { + if o == nil { + return nil + } + return o.ProjectType +} + +func (o *Project) GetPriority() *ProjectPriority { + if o == nil { + return nil + } + return o.Priority +} + +func (o *Project) GetCompletionPercentage() *float64 { + if o == nil { + return nil + } + return o.CompletionPercentage +} + +func (o *Project) GetStartDate() *types.Date { + if o == nil { + return nil + } + return o.StartDate +} + +func (o *Project) GetEndDate() *types.Date { + if o == nil { + return nil + } + return o.EndDate +} + +func (o *Project) GetCustomer() *LinkedCustomer { + if o == nil { + return nil + } + return o.Customer +} + +func (o *Project) GetDepartment() *ProjectDepartment { + if o == nil { + return nil + } + return o.Department +} + +func (o *Project) GetCompanyID() *string { + if o == nil { + return nil + } + return o.CompanyID +} + +func (o *Project) GetOwnerID() *string { + if o == nil { + return nil + } + return o.OwnerID +} + +func (o *Project) GetParentProject() *ParentProject { + if o == nil { + return nil + } + return o.ParentProject +} + +func (o *Project) GetCurrency() *Currency { + if o == nil { + return nil + } + return o.Currency +} + +func (o *Project) GetBudgetAmount() *float64 { + if o == nil { + return nil + } + return o.BudgetAmount +} + +func (o *Project) GetApprovedAmount() *float64 { + if o == nil { + return nil + } + return o.ApprovedAmount +} + +func (o *Project) GetActualAmount() *float64 { + if o == nil { + return nil + } + return o.ActualAmount +} + +func (o *Project) GetBudgetHours() *float64 { + if o == nil { + return nil + } + return o.BudgetHours +} + +func (o *Project) GetActualHours() *float64 { + if o == nil { + return nil + } + return o.ActualHours +} + +func (o *Project) GetHourlyRate() *float64 { + if o == nil { + return nil + } + return o.HourlyRate +} + +func (o *Project) GetBillingMethod() *BillingMethod { + if o == nil { + return nil + } + return o.BillingMethod +} + +func (o *Project) GetIsBillable() *bool { + if o == nil { + return nil + } + return o.IsBillable +} + +func (o *Project) GetPhase() *ProjectPhase { + if o == nil { + return nil + } + return o.Phase +} + +func (o *Project) GetTaxRate() *LinkedTaxRate { + if o == nil { + return nil + } + return o.TaxRate +} + +func (o *Project) GetTrackingCategories() []*LinkedTrackingCategory { + if o == nil { + return nil + } + return o.TrackingCategories +} + +func (o *Project) GetTags() []string { + if o == nil { + return nil + } + return o.Tags +} + +func (o *Project) GetNotes() *string { + if o == nil { + return nil + } + return o.Notes +} + +func (o *Project) GetContractNumber() *string { + if o == nil { + return nil + } + return o.ContractNumber +} + +func (o *Project) GetProfitMargin() *float64 { + if o == nil { + return nil + } + return o.ProfitMargin +} + +func (o *Project) GetScheduleStatus() *ScheduleStatus { + if o == nil { + return nil + } + return o.ScheduleStatus +} + +func (o *Project) GetAddresses() []Address { + if o == nil { + return nil + } + return o.Addresses +} + +func (o *Project) GetTeamSize() *int64 { + if o == nil { + return nil + } + return o.TeamSize +} + +func (o *Project) GetCustomFields() []CustomField { + if o == nil { + return nil + } + return o.CustomFields +} + +func (o *Project) GetRowVersion() *string { + if o == nil { + return nil + } + return o.RowVersion +} + +func (o *Project) GetUpdatedBy() *string { + if o == nil { + return nil + } + return o.UpdatedBy +} + +func (o *Project) GetCreatedBy() *string { + if o == nil { + return nil + } + return o.CreatedBy +} + +func (o *Project) GetCreatedAt() *time.Time { + if o == nil { + return nil + } + return o.CreatedAt +} + +func (o *Project) GetUpdatedAt() *time.Time { + if o == nil { + return nil + } + return o.UpdatedAt +} + +type ProjectInput struct { + // Name of the project + Name string `json:"name"` + // User-friendly project identifier + DisplayID *string `json:"display_id,omitempty"` + // External reference identifier for the project + ReferenceID *string `json:"reference_id,omitempty"` + // Detailed description of the project + Description *string `json:"description,omitempty"` + // Current status of the project + Status *ProjectProjectStatus `json:"status,omitempty"` + // Indicates whether the project is currently active or inactive + Active *bool `json:"active,omitempty"` + // Type or category of the project + ProjectType *ProjectType `json:"project_type,omitempty"` + // Priority level of the project + Priority *ProjectPriority `json:"priority,omitempty"` + // Percentage of project completion (0-100) + CompletionPercentage *float64 `json:"completion_percentage,omitempty"` + // Start date of the project + StartDate *types.Date `json:"start_date,omitempty"` + // Expected or actual end date of the project + EndDate *types.Date `json:"end_date,omitempty"` + // The customer this entity is linked to. + Customer *LinkedCustomerInput `json:"customer,omitempty"` + // Department or organizational unit associated with the project + Department *ProjectDepartment `json:"department,omitempty"` + // The company ID the transaction belongs to + CompanyID *string `json:"company_id,omitempty"` + // ID of the user who owns/manages this project + OwnerID *string `json:"owner_id,omitempty"` + // Parent project if this is a subproject + ParentProject *ParentProject `json:"parent_project,omitempty"` + // Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). + Currency *Currency `json:"currency,omitempty"` + // Total budgeted amount for the project + BudgetAmount *float64 `json:"budget_amount,omitempty"` + // Approved budget amount for the project + ApprovedAmount *float64 `json:"approved_amount,omitempty"` + // Total budgeted hours for the project + BudgetHours *float64 `json:"budget_hours,omitempty"` + // Default hourly rate for project work + HourlyRate *float64 `json:"hourly_rate,omitempty"` + // Method used for billing this project + BillingMethod *BillingMethod `json:"billing_method,omitempty"` + // Indicates if the project is billable to the customer + IsBillable *bool `default:"true" json:"is_billable"` + // Current phase of the project lifecycle + Phase *ProjectPhase `json:"phase,omitempty"` + TaxRate *LinkedTaxRateInput `json:"tax_rate,omitempty"` + // A list of linked tracking categories. + TrackingCategories []*LinkedTrackingCategory `json:"tracking_categories,omitempty"` + // Tags associated with the project + Tags []string `json:"tags,omitempty"` + // Additional notes about the project + Notes *string `json:"notes,omitempty"` + // Contract or agreement number associated with the project + ContractNumber *string `json:"contract_number,omitempty"` + // Expected profit margin percentage for the project + ProfitMargin *float64 `json:"profit_margin,omitempty"` + // Current status of project schedule compared to plan + ScheduleStatus *ScheduleStatus `json:"schedule_status,omitempty"` + // An array of addresses associated with the project (billing, job site, etc.) + Addresses []Address `json:"addresses,omitempty"` + // Number of team members assigned to the project + TeamSize *int64 `json:"team_size,omitempty"` + CustomFields []CustomField `json:"custom_fields,omitempty"` + // A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. + RowVersion *string `json:"row_version,omitempty"` +} + +func (p ProjectInput) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *ProjectInput) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name"}); err != nil { + return err + } + return nil +} + +func (o *ProjectInput) GetName() string { + if o == nil { + return "" + } + return o.Name +} + +func (o *ProjectInput) GetDisplayID() *string { + if o == nil { + return nil + } + return o.DisplayID +} + +func (o *ProjectInput) GetReferenceID() *string { + if o == nil { + return nil + } + return o.ReferenceID +} + +func (o *ProjectInput) GetDescription() *string { + if o == nil { + return nil + } + return o.Description +} + +func (o *ProjectInput) GetStatus() *ProjectProjectStatus { + if o == nil { + return nil + } + return o.Status +} + +func (o *ProjectInput) GetActive() *bool { + if o == nil { + return nil + } + return o.Active +} + +func (o *ProjectInput) GetProjectType() *ProjectType { + if o == nil { + return nil + } + return o.ProjectType +} + +func (o *ProjectInput) GetPriority() *ProjectPriority { + if o == nil { + return nil + } + return o.Priority +} + +func (o *ProjectInput) GetCompletionPercentage() *float64 { + if o == nil { + return nil + } + return o.CompletionPercentage +} + +func (o *ProjectInput) GetStartDate() *types.Date { + if o == nil { + return nil + } + return o.StartDate +} + +func (o *ProjectInput) GetEndDate() *types.Date { + if o == nil { + return nil + } + return o.EndDate +} + +func (o *ProjectInput) GetCustomer() *LinkedCustomerInput { + if o == nil { + return nil + } + return o.Customer +} + +func (o *ProjectInput) GetDepartment() *ProjectDepartment { + if o == nil { + return nil + } + return o.Department +} + +func (o *ProjectInput) GetCompanyID() *string { + if o == nil { + return nil + } + return o.CompanyID +} + +func (o *ProjectInput) GetOwnerID() *string { + if o == nil { + return nil + } + return o.OwnerID +} + +func (o *ProjectInput) GetParentProject() *ParentProject { + if o == nil { + return nil + } + return o.ParentProject +} + +func (o *ProjectInput) GetCurrency() *Currency { + if o == nil { + return nil + } + return o.Currency +} + +func (o *ProjectInput) GetBudgetAmount() *float64 { + if o == nil { + return nil + } + return o.BudgetAmount +} + +func (o *ProjectInput) GetApprovedAmount() *float64 { + if o == nil { + return nil + } + return o.ApprovedAmount +} + +func (o *ProjectInput) GetBudgetHours() *float64 { + if o == nil { + return nil + } + return o.BudgetHours +} + +func (o *ProjectInput) GetHourlyRate() *float64 { + if o == nil { + return nil + } + return o.HourlyRate +} + +func (o *ProjectInput) GetBillingMethod() *BillingMethod { + if o == nil { + return nil + } + return o.BillingMethod +} + +func (o *ProjectInput) GetIsBillable() *bool { + if o == nil { + return nil + } + return o.IsBillable +} + +func (o *ProjectInput) GetPhase() *ProjectPhase { + if o == nil { + return nil + } + return o.Phase +} + +func (o *ProjectInput) GetTaxRate() *LinkedTaxRateInput { + if o == nil { + return nil + } + return o.TaxRate +} + +func (o *ProjectInput) GetTrackingCategories() []*LinkedTrackingCategory { + if o == nil { + return nil + } + return o.TrackingCategories +} + +func (o *ProjectInput) GetTags() []string { + if o == nil { + return nil + } + return o.Tags +} + +func (o *ProjectInput) GetNotes() *string { + if o == nil { + return nil + } + return o.Notes +} + +func (o *ProjectInput) GetContractNumber() *string { + if o == nil { + return nil + } + return o.ContractNumber +} + +func (o *ProjectInput) GetProfitMargin() *float64 { + if o == nil { + return nil + } + return o.ProfitMargin +} + +func (o *ProjectInput) GetScheduleStatus() *ScheduleStatus { + if o == nil { + return nil + } + return o.ScheduleStatus +} + +func (o *ProjectInput) GetAddresses() []Address { + if o == nil { + return nil + } + return o.Addresses +} + +func (o *ProjectInput) GetTeamSize() *int64 { + if o == nil { + return nil + } + return o.TeamSize +} + +func (o *ProjectInput) GetCustomFields() []CustomField { + if o == nil { + return nil + } + return o.CustomFields +} + +func (o *ProjectInput) GetRowVersion() *string { + if o == nil { + return nil + } + return o.RowVersion +} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/projectsfilter.go b/src/__tests__/mockserver/internal/sdk/models/components/projectsfilter.go new file mode 100644 index 00000000..85a63fd8 --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/components/projectsfilter.go @@ -0,0 +1,96 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "encoding/json" + "fmt" + "mockserver/internal/sdk/utils" + "time" +) + +// ProjectsFilterProjectStatus - Status of projects to filter by +type ProjectsFilterProjectStatus string + +const ( + ProjectsFilterProjectStatusActive ProjectsFilterProjectStatus = "active" + ProjectsFilterProjectStatusCompleted ProjectsFilterProjectStatus = "completed" + ProjectsFilterProjectStatusOnHold ProjectsFilterProjectStatus = "on_hold" + ProjectsFilterProjectStatusCancelled ProjectsFilterProjectStatus = "cancelled" + ProjectsFilterProjectStatusDraft ProjectsFilterProjectStatus = "draft" +) + +func (e ProjectsFilterProjectStatus) ToPointer() *ProjectsFilterProjectStatus { + return &e +} +func (e *ProjectsFilterProjectStatus) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "active": + fallthrough + case "completed": + fallthrough + case "on_hold": + fallthrough + case "cancelled": + fallthrough + case "draft": + *e = ProjectsFilterProjectStatus(v) + return nil + default: + return fmt.Errorf("invalid value for ProjectsFilterProjectStatus: %v", v) + } +} + +type ProjectsFilter struct { + // Name of project to search for + Name *string `queryParam:"name=name"` + // Status of projects to filter by + Status *ProjectsFilterProjectStatus `queryParam:"name=status"` + // Filter projects by customer ID + CustomerID *string `queryParam:"name=customer_id"` + // Return projects modified after this date + UpdatedSince *time.Time `queryParam:"name=updated_since"` +} + +func (p ProjectsFilter) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *ProjectsFilter) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + +func (o *ProjectsFilter) GetName() *string { + if o == nil { + return nil + } + return o.Name +} + +func (o *ProjectsFilter) GetStatus() *ProjectsFilterProjectStatus { + if o == nil { + return nil + } + return o.Status +} + +func (o *ProjectsFilter) GetCustomerID() *string { + if o == nil { + return nil + } + return o.CustomerID +} + +func (o *ProjectsFilter) GetUpdatedSince() *time.Time { + if o == nil { + return nil + } + return o.UpdatedSince +} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/projectssort.go b/src/__tests__/mockserver/internal/sdk/models/components/projectssort.go new file mode 100644 index 00000000..c7f4dc2d --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/components/projectssort.go @@ -0,0 +1,86 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +import ( + "encoding/json" + "fmt" + "mockserver/internal/sdk/utils" +) + +// ProjectsSortSortBy - The field to sort by +type ProjectsSortSortBy string + +const ( + ProjectsSortSortByName ProjectsSortSortBy = "name" + ProjectsSortSortByStatus ProjectsSortSortBy = "status" + ProjectsSortSortByStartDate ProjectsSortSortBy = "start_date" + ProjectsSortSortByEndDate ProjectsSortSortBy = "end_date" + ProjectsSortSortByBudgetAmount ProjectsSortSortBy = "budget_amount" + ProjectsSortSortByActualAmount ProjectsSortSortBy = "actual_amount" + ProjectsSortSortByCreatedAt ProjectsSortSortBy = "created_at" + ProjectsSortSortByUpdatedAt ProjectsSortSortBy = "updated_at" +) + +func (e ProjectsSortSortBy) ToPointer() *ProjectsSortSortBy { + return &e +} +func (e *ProjectsSortSortBy) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "name": + fallthrough + case "status": + fallthrough + case "start_date": + fallthrough + case "end_date": + fallthrough + case "budget_amount": + fallthrough + case "actual_amount": + fallthrough + case "created_at": + fallthrough + case "updated_at": + *e = ProjectsSortSortBy(v) + return nil + default: + return fmt.Errorf("invalid value for ProjectsSortSortBy: %v", v) + } +} + +type ProjectsSort struct { + // The field to sort by + By *ProjectsSortSortBy `queryParam:"name=by"` + // The direction in which to sort the results + Direction *SortDirection `default:"asc" queryParam:"name=direction"` +} + +func (p ProjectsSort) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(p, "", false) +} + +func (p *ProjectsSort) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { + return err + } + return nil +} + +func (o *ProjectsSort) GetBy() *ProjectsSortSortBy { + if o == nil { + return nil + } + return o.By +} + +func (o *ProjectsSort) GetDirection() *SortDirection { + if o == nil { + return nil + } + return o.Direction +} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/quotelineitem.go b/src/__tests__/mockserver/internal/sdk/models/components/quotelineitem.go index 621dbfed..f5f0e1c8 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/quotelineitem.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/quotelineitem.go @@ -5,6 +5,7 @@ package components import ( "encoding/json" "fmt" + "mockserver/internal/sdk/types" "mockserver/internal/sdk/utils" "time" ) @@ -73,6 +74,8 @@ type QuoteLineItem struct { DiscountPercentage *float64 `json:"discount_percentage,omitempty"` // Discount amount applied to the line item when supported downstream. DiscountAmount *float64 `json:"discount_amount,omitempty"` + // Date on which the service was provided or performed - YYYY-MM-DD. + ServiceDate *types.Date `json:"service_date,omitempty"` // ID of the category of the line item CategoryID *string `json:"category_id,omitempty"` // The ID of the location @@ -199,6 +202,13 @@ func (o *QuoteLineItem) GetDiscountAmount() *float64 { return o.DiscountAmount } +func (o *QuoteLineItem) GetServiceDate() *types.Date { + if o == nil { + return nil + } + return o.ServiceDate +} + func (o *QuoteLineItem) GetCategoryID() *string { if o == nil { return nil @@ -315,6 +325,8 @@ type QuoteLineItemInput struct { DiscountPercentage *float64 `json:"discount_percentage,omitempty"` // Discount amount applied to the line item when supported downstream. DiscountAmount *float64 `json:"discount_amount,omitempty"` + // Date on which the service was provided or performed - YYYY-MM-DD. + ServiceDate *types.Date `json:"service_date,omitempty"` // ID of the category of the line item CategoryID *string `json:"category_id,omitempty"` // The ID of the location @@ -331,6 +343,17 @@ type QuoteLineItemInput struct { RowVersion *string `json:"row_version,omitempty"` } +func (q QuoteLineItemInput) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(q, "", false) +} + +func (q *QuoteLineItemInput) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &q, "", false, nil); err != nil { + return err + } + return nil +} + func (o *QuoteLineItemInput) GetID() *string { if o == nil { return nil @@ -422,6 +445,13 @@ func (o *QuoteLineItemInput) GetDiscountAmount() *float64 { return o.DiscountAmount } +func (o *QuoteLineItemInput) GetServiceDate() *types.Date { + if o == nil { + return nil + } + return o.ServiceDate +} + func (o *QuoteLineItemInput) GetCategoryID() *string { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/components/ticket.go b/src/__tests__/mockserver/internal/sdk/models/components/ticket.go index 6d272e38..46435252 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/ticket.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/ticket.go @@ -9,20 +9,20 @@ import ( "time" ) -// Priority of the ticket -type Priority string +// TicketPriority - Priority of the ticket +type TicketPriority string const ( - PriorityLow Priority = "low" - PriorityNormal Priority = "normal" - PriorityHigh Priority = "high" - PriorityUrgent Priority = "urgent" + TicketPriorityLow TicketPriority = "low" + TicketPriorityNormal TicketPriority = "normal" + TicketPriorityHigh TicketPriority = "high" + TicketPriorityUrgent TicketPriority = "urgent" ) -func (e Priority) ToPointer() *Priority { +func (e TicketPriority) ToPointer() *TicketPriority { return &e } -func (e *Priority) UnmarshalJSON(data []byte) error { +func (e *TicketPriority) UnmarshalJSON(data []byte) error { var v string if err := json.Unmarshal(data, &v); err != nil { return err @@ -35,10 +35,10 @@ func (e *Priority) UnmarshalJSON(data []byte) error { case "high": fallthrough case "urgent": - *e = Priority(v) + *e = TicketPriority(v) return nil default: - return fmt.Errorf("invalid value for Priority: %v", v) + return fmt.Errorf("invalid value for TicketPriority: %v", v) } } @@ -58,8 +58,8 @@ type Ticket struct { // The current status of the ticket. Possible values include: open, in_progress, closed, or - in cases where there is no clear mapping - the original value passed through. Status *string `json:"status,omitempty"` // Priority of the ticket - Priority *Priority `json:"priority,omitempty"` - Assignees []Assignee `json:"assignees,omitempty"` + Priority *TicketPriority `json:"priority,omitempty"` + Assignees []Assignee `json:"assignees,omitempty"` // The date and time when the object was last updated. UpdatedAt *time.Time `json:"updated_at,omitempty"` // The date and time when the object was created. @@ -137,7 +137,7 @@ func (o *Ticket) GetStatus() *string { return o.Status } -func (o *Ticket) GetPriority() *Priority { +func (o *Ticket) GetPriority() *TicketPriority { if o == nil { return nil } @@ -219,7 +219,7 @@ type TicketInput struct { // The current status of the ticket. Possible values include: open, in_progress, closed, or - in cases where there is no clear mapping - the original value passed through. Status *string `json:"status,omitempty"` // Priority of the ticket - Priority *Priority `json:"priority,omitempty"` + Priority *TicketPriority `json:"priority,omitempty"` Assignees []AssigneeInput `json:"assignees,omitempty"` // Due date of the ticket DueDate *time.Time `json:"due_date,omitempty"` @@ -274,7 +274,7 @@ func (o *TicketInput) GetStatus() *string { return o.Status } -func (o *TicketInput) GetPriority() *Priority { +func (o *TicketInput) GetPriority() *TicketPriority { if o == nil { return nil } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/updateprojectresponse.go b/src/__tests__/mockserver/internal/sdk/models/components/updateprojectresponse.go new file mode 100644 index 00000000..04022f5d --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/components/updateprojectresponse.go @@ -0,0 +1,61 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package components + +// UpdateProjectResponse - Projects +type UpdateProjectResponse struct { + // HTTP Response Status Code + StatusCode int64 `json:"status_code"` + // HTTP Response Status + Status string `json:"status"` + // Apideck ID of service provider + Service string `json:"service"` + // Unified API resource name + Resource string `json:"resource"` + // Operation performed + Operation string `json:"operation"` + // A object containing a unique identifier for the resource that was created, updated, or deleted. + Data UnifiedID `json:"data"` +} + +func (o *UpdateProjectResponse) GetStatusCode() int64 { + if o == nil { + return 0 + } + return o.StatusCode +} + +func (o *UpdateProjectResponse) GetStatus() string { + if o == nil { + return "" + } + return o.Status +} + +func (o *UpdateProjectResponse) GetService() string { + if o == nil { + return "" + } + return o.Service +} + +func (o *UpdateProjectResponse) GetResource() string { + if o == nil { + return "" + } + return o.Resource +} + +func (o *UpdateProjectResponse) GetOperation() string { + if o == nil { + return "" + } + return o.Operation +} + +func (o *UpdateProjectResponse) GetData() UnifiedID { + if o == nil { + return UnifiedID{} + } + return o.Data +} diff --git a/src/__tests__/mockserver/internal/sdk/models/components/webhookeventtype.go b/src/__tests__/mockserver/internal/sdk/models/components/webhookeventtype.go index 19835f51..193f2d85 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/webhookeventtype.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/webhookeventtype.go @@ -131,6 +131,9 @@ const ( WebhookEventTypeAccountingQuoteCreated WebhookEventType = "accounting.quote.created" WebhookEventTypeAccountingQuoteUpdated WebhookEventType = "accounting.quote.updated" WebhookEventTypeAccountingQuoteDeleted WebhookEventType = "accounting.quote.deleted" + WebhookEventTypeAccountingProjectCreated WebhookEventType = "accounting.project.created" + WebhookEventTypeAccountingProjectUpdated WebhookEventType = "accounting.project.updated" + WebhookEventTypeAccountingProjectDeleted WebhookEventType = "accounting.project.deleted" ) func (e WebhookEventType) ToPointer() *WebhookEventType { @@ -383,6 +386,12 @@ func (e *WebhookEventType) UnmarshalJSON(data []byte) error { case "accounting.quote.updated": fallthrough case "accounting.quote.deleted": + fallthrough + case "accounting.project.created": + fallthrough + case "accounting.project.updated": + fallthrough + case "accounting.project.deleted": *e = WebhookEventType(v) return nil default: diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsadd.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsadd.go new file mode 100644 index 00000000..409367cd --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsadd.go @@ -0,0 +1,116 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "mockserver/internal/sdk/models/components" + "mockserver/internal/sdk/utils" +) + +type AccountingProjectsAddGlobals struct { + // ID of the consumer which you want to get or push data from + ConsumerID *string `header:"style=simple,explode=false,name=x-apideck-consumer-id"` + // The ID of your Unify application + AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` +} + +func (o *AccountingProjectsAddGlobals) GetConsumerID() *string { + if o == nil { + return nil + } + return o.ConsumerID +} + +func (o *AccountingProjectsAddGlobals) GetAppID() *string { + if o == nil { + return nil + } + return o.AppID +} + +type AccountingProjectsAddRequest struct { + // Include raw response. Mostly used for debugging purposes + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + // ID of the consumer which you want to get or push data from + ConsumerID *string `header:"style=simple,explode=false,name=x-apideck-consumer-id"` + // The ID of your Unify application + AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` + // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + Project components.ProjectInput `request:"mediaType=application/json"` +} + +func (a AccountingProjectsAddRequest) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AccountingProjectsAddRequest) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"Project"}); err != nil { + return err + } + return nil +} + +func (o *AccountingProjectsAddRequest) GetRaw() *bool { + if o == nil { + return nil + } + return o.Raw +} + +func (o *AccountingProjectsAddRequest) GetConsumerID() *string { + if o == nil { + return nil + } + return o.ConsumerID +} + +func (o *AccountingProjectsAddRequest) GetAppID() *string { + if o == nil { + return nil + } + return o.AppID +} + +func (o *AccountingProjectsAddRequest) GetServiceID() *string { + if o == nil { + return nil + } + return o.ServiceID +} + +func (o *AccountingProjectsAddRequest) GetProject() components.ProjectInput { + if o == nil { + return components.ProjectInput{} + } + return o.Project +} + +type AccountingProjectsAddResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // Projects + CreateProjectResponse *components.CreateProjectResponse + // Unexpected error + UnexpectedErrorResponse *components.UnexpectedErrorResponse +} + +func (o *AccountingProjectsAddResponse) GetHTTPMeta() components.HTTPMetadata { + if o == nil { + return components.HTTPMetadata{} + } + return o.HTTPMeta +} + +func (o *AccountingProjectsAddResponse) GetCreateProjectResponse() *components.CreateProjectResponse { + if o == nil { + return nil + } + return o.CreateProjectResponse +} + +func (o *AccountingProjectsAddResponse) GetUnexpectedErrorResponse() *components.UnexpectedErrorResponse { + if o == nil { + return nil + } + return o.UnexpectedErrorResponse +} diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsall.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsall.go new file mode 100644 index 00000000..f1602fae --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsall.go @@ -0,0 +1,164 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "mockserver/internal/sdk/models/components" + "mockserver/internal/sdk/utils" +) + +type AccountingProjectsAllGlobals struct { + // ID of the consumer which you want to get or push data from + ConsumerID *string `header:"style=simple,explode=false,name=x-apideck-consumer-id"` + // The ID of your Unify application + AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` +} + +func (o *AccountingProjectsAllGlobals) GetConsumerID() *string { + if o == nil { + return nil + } + return o.ConsumerID +} + +func (o *AccountingProjectsAllGlobals) GetAppID() *string { + if o == nil { + return nil + } + return o.AppID +} + +type AccountingProjectsAllRequest struct { + // Include raw response. Mostly used for debugging purposes + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + // ID of the consumer which you want to get or push data from + ConsumerID *string `header:"style=simple,explode=false,name=x-apideck-consumer-id"` + // The ID of your Unify application + AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` + // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + // Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. + Cursor *string `queryParam:"style=form,explode=true,name=cursor"` + // Number of results to return. Minimum 1, Maximum 200, Default 20 + Limit *int64 `default:"20" queryParam:"style=form,explode=true,name=limit"` + // Apply filters + Filter *components.ProjectsFilter `queryParam:"style=deepObject,explode=true,name=filter"` + // Apply sorting + Sort *components.ProjectsSort `queryParam:"style=deepObject,explode=true,name=sort"` + // Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads + PassThrough map[string]any `queryParam:"style=deepObject,explode=true,name=pass_through"` + // The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. + Fields *string `queryParam:"style=form,explode=true,name=fields"` +} + +func (a AccountingProjectsAllRequest) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AccountingProjectsAllRequest) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { + return err + } + return nil +} + +func (o *AccountingProjectsAllRequest) GetRaw() *bool { + if o == nil { + return nil + } + return o.Raw +} + +func (o *AccountingProjectsAllRequest) GetConsumerID() *string { + if o == nil { + return nil + } + return o.ConsumerID +} + +func (o *AccountingProjectsAllRequest) GetAppID() *string { + if o == nil { + return nil + } + return o.AppID +} + +func (o *AccountingProjectsAllRequest) GetServiceID() *string { + if o == nil { + return nil + } + return o.ServiceID +} + +func (o *AccountingProjectsAllRequest) GetCursor() *string { + if o == nil { + return nil + } + return o.Cursor +} + +func (o *AccountingProjectsAllRequest) GetLimit() *int64 { + if o == nil { + return nil + } + return o.Limit +} + +func (o *AccountingProjectsAllRequest) GetFilter() *components.ProjectsFilter { + if o == nil { + return nil + } + return o.Filter +} + +func (o *AccountingProjectsAllRequest) GetSort() *components.ProjectsSort { + if o == nil { + return nil + } + return o.Sort +} + +func (o *AccountingProjectsAllRequest) GetPassThrough() map[string]any { + if o == nil { + return nil + } + return o.PassThrough +} + +func (o *AccountingProjectsAllRequest) GetFields() *string { + if o == nil { + return nil + } + return o.Fields +} + +type AccountingProjectsAllResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // Projects + GetProjectsResponse *components.GetProjectsResponse + // Unexpected error + UnexpectedErrorResponse *components.UnexpectedErrorResponse + + Next func() (*AccountingProjectsAllResponse, error) +} + +func (o *AccountingProjectsAllResponse) GetHTTPMeta() components.HTTPMetadata { + if o == nil { + return components.HTTPMetadata{} + } + return o.HTTPMeta +} + +func (o *AccountingProjectsAllResponse) GetGetProjectsResponse() *components.GetProjectsResponse { + if o == nil { + return nil + } + return o.GetProjectsResponse +} + +func (o *AccountingProjectsAllResponse) GetUnexpectedErrorResponse() *components.UnexpectedErrorResponse { + if o == nil { + return nil + } + return o.UnexpectedErrorResponse +} diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsdelete.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsdelete.go new file mode 100644 index 00000000..1946f1aa --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsdelete.go @@ -0,0 +1,117 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "mockserver/internal/sdk/models/components" + "mockserver/internal/sdk/utils" +) + +type AccountingProjectsDeleteGlobals struct { + // ID of the consumer which you want to get or push data from + ConsumerID *string `header:"style=simple,explode=false,name=x-apideck-consumer-id"` + // The ID of your Unify application + AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` +} + +func (o *AccountingProjectsDeleteGlobals) GetConsumerID() *string { + if o == nil { + return nil + } + return o.ConsumerID +} + +func (o *AccountingProjectsDeleteGlobals) GetAppID() *string { + if o == nil { + return nil + } + return o.AppID +} + +type AccountingProjectsDeleteRequest struct { + // ID of the record you are acting upon. + ID string `pathParam:"style=simple,explode=false,name=id"` + // ID of the consumer which you want to get or push data from + ConsumerID *string `header:"style=simple,explode=false,name=x-apideck-consumer-id"` + // The ID of your Unify application + AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` + // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + // Include raw response. Mostly used for debugging purposes + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` +} + +func (a AccountingProjectsDeleteRequest) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AccountingProjectsDeleteRequest) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + +func (o *AccountingProjectsDeleteRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *AccountingProjectsDeleteRequest) GetConsumerID() *string { + if o == nil { + return nil + } + return o.ConsumerID +} + +func (o *AccountingProjectsDeleteRequest) GetAppID() *string { + if o == nil { + return nil + } + return o.AppID +} + +func (o *AccountingProjectsDeleteRequest) GetServiceID() *string { + if o == nil { + return nil + } + return o.ServiceID +} + +func (o *AccountingProjectsDeleteRequest) GetRaw() *bool { + if o == nil { + return nil + } + return o.Raw +} + +type AccountingProjectsDeleteResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // Projects + DeleteProjectResponse *components.DeleteProjectResponse + // Unexpected error + UnexpectedErrorResponse *components.UnexpectedErrorResponse +} + +func (o *AccountingProjectsDeleteResponse) GetHTTPMeta() components.HTTPMetadata { + if o == nil { + return components.HTTPMetadata{} + } + return o.HTTPMeta +} + +func (o *AccountingProjectsDeleteResponse) GetDeleteProjectResponse() *components.DeleteProjectResponse { + if o == nil { + return nil + } + return o.DeleteProjectResponse +} + +func (o *AccountingProjectsDeleteResponse) GetUnexpectedErrorResponse() *components.UnexpectedErrorResponse { + if o == nil { + return nil + } + return o.UnexpectedErrorResponse +} diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsone.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsone.go new file mode 100644 index 00000000..06fbdbe5 --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsone.go @@ -0,0 +1,117 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "mockserver/internal/sdk/models/components" + "mockserver/internal/sdk/utils" +) + +type AccountingProjectsOneGlobals struct { + // ID of the consumer which you want to get or push data from + ConsumerID *string `header:"style=simple,explode=false,name=x-apideck-consumer-id"` + // The ID of your Unify application + AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` +} + +func (o *AccountingProjectsOneGlobals) GetConsumerID() *string { + if o == nil { + return nil + } + return o.ConsumerID +} + +func (o *AccountingProjectsOneGlobals) GetAppID() *string { + if o == nil { + return nil + } + return o.AppID +} + +type AccountingProjectsOneRequest struct { + // ID of the record you are acting upon. + ID string `pathParam:"style=simple,explode=false,name=id"` + // ID of the consumer which you want to get or push data from + ConsumerID *string `header:"style=simple,explode=false,name=x-apideck-consumer-id"` + // The ID of your Unify application + AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` + // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + // Include raw response. Mostly used for debugging purposes + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` +} + +func (a AccountingProjectsOneRequest) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AccountingProjectsOneRequest) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id"}); err != nil { + return err + } + return nil +} + +func (o *AccountingProjectsOneRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *AccountingProjectsOneRequest) GetConsumerID() *string { + if o == nil { + return nil + } + return o.ConsumerID +} + +func (o *AccountingProjectsOneRequest) GetAppID() *string { + if o == nil { + return nil + } + return o.AppID +} + +func (o *AccountingProjectsOneRequest) GetServiceID() *string { + if o == nil { + return nil + } + return o.ServiceID +} + +func (o *AccountingProjectsOneRequest) GetRaw() *bool { + if o == nil { + return nil + } + return o.Raw +} + +type AccountingProjectsOneResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // Projects + GetProjectResponse *components.GetProjectResponse + // Unexpected error + UnexpectedErrorResponse *components.UnexpectedErrorResponse +} + +func (o *AccountingProjectsOneResponse) GetHTTPMeta() components.HTTPMetadata { + if o == nil { + return components.HTTPMetadata{} + } + return o.HTTPMeta +} + +func (o *AccountingProjectsOneResponse) GetGetProjectResponse() *components.GetProjectResponse { + if o == nil { + return nil + } + return o.GetProjectResponse +} + +func (o *AccountingProjectsOneResponse) GetUnexpectedErrorResponse() *components.UnexpectedErrorResponse { + if o == nil { + return nil + } + return o.UnexpectedErrorResponse +} diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsupdate.go b/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsupdate.go new file mode 100644 index 00000000..0f39d701 --- /dev/null +++ b/src/__tests__/mockserver/internal/sdk/models/operations/accountingprojectsupdate.go @@ -0,0 +1,125 @@ +// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +package operations + +import ( + "mockserver/internal/sdk/models/components" + "mockserver/internal/sdk/utils" +) + +type AccountingProjectsUpdateGlobals struct { + // ID of the consumer which you want to get or push data from + ConsumerID *string `header:"style=simple,explode=false,name=x-apideck-consumer-id"` + // The ID of your Unify application + AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` +} + +func (o *AccountingProjectsUpdateGlobals) GetConsumerID() *string { + if o == nil { + return nil + } + return o.ConsumerID +} + +func (o *AccountingProjectsUpdateGlobals) GetAppID() *string { + if o == nil { + return nil + } + return o.AppID +} + +type AccountingProjectsUpdateRequest struct { + // ID of the record you are acting upon. + ID string `pathParam:"style=simple,explode=false,name=id"` + // ID of the consumer which you want to get or push data from + ConsumerID *string `header:"style=simple,explode=false,name=x-apideck-consumer-id"` + // The ID of your Unify application + AppID *string `header:"style=simple,explode=false,name=x-apideck-app-id"` + // Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. + ServiceID *string `header:"style=simple,explode=false,name=x-apideck-service-id"` + // Include raw response. Mostly used for debugging purposes + Raw *bool `default:"false" queryParam:"style=form,explode=true,name=raw"` + Project components.ProjectInput `request:"mediaType=application/json"` +} + +func (a AccountingProjectsUpdateRequest) MarshalJSON() ([]byte, error) { + return utils.MarshalJSON(a, "", false) +} + +func (a *AccountingProjectsUpdateRequest) UnmarshalJSON(data []byte) error { + if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id", "Project"}); err != nil { + return err + } + return nil +} + +func (o *AccountingProjectsUpdateRequest) GetID() string { + if o == nil { + return "" + } + return o.ID +} + +func (o *AccountingProjectsUpdateRequest) GetConsumerID() *string { + if o == nil { + return nil + } + return o.ConsumerID +} + +func (o *AccountingProjectsUpdateRequest) GetAppID() *string { + if o == nil { + return nil + } + return o.AppID +} + +func (o *AccountingProjectsUpdateRequest) GetServiceID() *string { + if o == nil { + return nil + } + return o.ServiceID +} + +func (o *AccountingProjectsUpdateRequest) GetRaw() *bool { + if o == nil { + return nil + } + return o.Raw +} + +func (o *AccountingProjectsUpdateRequest) GetProject() components.ProjectInput { + if o == nil { + return components.ProjectInput{} + } + return o.Project +} + +type AccountingProjectsUpdateResponse struct { + HTTPMeta components.HTTPMetadata `json:"-"` + // Projects + UpdateProjectResponse *components.UpdateProjectResponse + // Unexpected error + UnexpectedErrorResponse *components.UnexpectedErrorResponse +} + +func (o *AccountingProjectsUpdateResponse) GetHTTPMeta() components.HTTPMetadata { + if o == nil { + return components.HTTPMetadata{} + } + return o.HTTPMeta +} + +func (o *AccountingProjectsUpdateResponse) GetUpdateProjectResponse() *components.UpdateProjectResponse { + if o == nil { + return nil + } + return o.UpdateProjectResponse +} + +func (o *AccountingProjectsUpdateResponse) GetUnexpectedErrorResponse() *components.UnexpectedErrorResponse { + if o == nil { + return nil + } + return o.UnexpectedErrorResponse +} diff --git a/src/__tests__/projects.test.ts b/src/__tests__/projects.test.ts new file mode 100644 index 00000000..7af65bc9 --- /dev/null +++ b/src/__tests__/projects.test.ts @@ -0,0 +1,471 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { expect, test } from "vitest"; +import { Apideck } from "../index.js"; +import { RFCDate } from "../types/index.js"; +import { createTestHTTPClient } from "./testclient.js"; + +test("Projects Accounting Projects All", async () => { + const testHttpClient = createTestHTTPClient("accounting.projectsAll"); + + const apideck = new Apideck({ + serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080", + httpClient: testHttpClient, + apiKey: process.env["APIDECK_API_KEY"] ?? "value", + }); + + const result = await apideck.accounting.projects.list({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + serviceId: "salesforce", + filter: { + name: "Website Redesign", + status: "active", + customerId: "12345", + updatedSince: new Date("2020-09-30T07:43:32.000Z"), + }, + sort: { + by: "name", + }, + passThrough: { + "search": "San Francisco", + }, + fields: "id,updated_at", + }); + expect(result.httpMeta.response.status).toBe(200); + expect(result.getProjectsResponse).toBeDefined(); + expect(result.getProjectsResponse).toEqual({ + statusCode: 200, + status: "OK", + service: "quickbooks", + resource: "Projects", + operation: "all", + data: [], + meta: { + itemsOnPage: 50, + cursors: { + previous: "em9oby1jcm06OnBhZ2U6OjE=", + current: "em9oby1jcm06OnBhZ2U6OjI=", + next: "em9oby1jcm06OnBhZ2U6OjM=", + }, + }, + links: { + previous: + "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D", + current: "https://unify.apideck.com/crm/companies", + next: + "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM", + }, + }); +}); + +test("Projects Accounting Projects Add", async () => { + const testHttpClient = createTestHTTPClient("accounting.projectsAdd"); + + const apideck = new Apideck({ + serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080", + httpClient: testHttpClient, + apiKey: process.env["APIDECK_API_KEY"] ?? "value", + }); + + const result = await apideck.accounting.projects.create({ + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + serviceId: "salesforce", + project: { + name: "Website Redesign Project", + displayId: "PROJ-001", + referenceId: "WD-REF-2024-001", + description: + "Complete redesign of the company website including new branding and improved user experience", + status: "active", + active: true, + projectType: "client_project", + priority: "high", + completionPercentage: 75.5, + startDate: new RFCDate("2024-01-15"), + endDate: new RFCDate("2024-06-30"), + customer: { + id: "12345", + displayName: "Windsurf Shop", + email: "boring@boring.com", + }, + department: { + id: "DEPT-001", + name: "Marketing", + }, + companyId: "12345", + ownerId: "12345", + parentProject: { + id: "PROJ-PARENT-001", + name: "Company Website Overhaul", + }, + currency: "USD", + budgetAmount: 50000, + approvedAmount: 48000, + budgetHours: 400, + hourlyRate: 125, + billingMethod: "time_and_materials", + phase: "execution", + taxRate: { + id: "123456", + rate: 10, + }, + trackingCategories: [ + { + id: "123456", + name: "New York", + parentId: "123456", + parentName: "New York", + }, + ], + tags: [ + "website", + "redesign", + "urgent", + ], + notes: "Client has requested modern design with mobile-first approach", + contractNumber: "CNT-2024-001", + profitMargin: 15.5, + scheduleStatus: "on_schedule", + addresses: [ + { + id: "123", + type: "primary", + string: "25 Spring Street, Blackburn, VIC 3130", + name: "HQ US", + line1: "Main street", + line2: "apt #", + line3: "Suite #", + line4: "delivery instructions", + line5: "Attention: Finance Dept", + streetNumber: "25", + city: "San Francisco", + state: "CA", + postalCode: "94104", + country: "US", + latitude: "40.759211", + longitude: "-73.984638", + county: "Santa Clara", + contactName: "Elon Musk", + salutation: "Mr", + phoneNumber: "111-111-1111", + fax: "122-111-1111", + email: "elon@musk.com", + website: "https://elonmusk.com", + notes: "Address notes or delivery instructions.", + rowVersion: "1-12345", + }, + ], + teamSize: 8, + customFields: [ + { + id: "2389328923893298", + name: "employee_level", + description: "Employee Level", + value: "Uses Salesforce and Marketo", + }, + ], + rowVersion: "1-12345", + }, + }); + expect(result.httpMeta.response.status).toBe(201); + expect(result.createProjectResponse).toBeDefined(); + expect(result.createProjectResponse).toEqual({ + statusCode: 200, + status: "OK", + service: "quickbooks", + resource: "Projects", + operation: "add", + data: { + id: "12345", + }, + }); +}); + +test("Projects Accounting Projects One", async () => { + const testHttpClient = createTestHTTPClient("accounting.projectsOne"); + + const apideck = new Apideck({ + serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080", + httpClient: testHttpClient, + apiKey: process.env["APIDECK_API_KEY"] ?? "value", + }); + + const result = await apideck.accounting.projects.get({ + id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + serviceId: "salesforce", + }); + expect(result.httpMeta.response.status).toBe(200); + expect(result.getProjectResponse).toBeDefined(); + expect(result.getProjectResponse).toEqual({ + statusCode: 200, + status: "OK", + service: "quickbooks", + resource: "Projects", + operation: "one", + data: { + id: "12345", + downstreamId: "12345", + name: "Website Redesign Project", + displayId: "PROJ-001", + referenceId: "WD-REF-2024-001", + description: + "Complete redesign of the company website including new branding and improved user experience", + status: "active", + active: true, + projectType: "client_project", + priority: "high", + completionPercentage: 75.5, + startDate: new RFCDate("2024-01-15"), + endDate: new RFCDate("2024-06-30"), + customer: { + id: "12345", + displayId: "CUST00101", + displayName: "Windsurf Shop", + companyName: "The boring company", + email: "boring@boring.com", + }, + department: { + id: "DEPT-001", + name: "Marketing", + }, + companyId: "12345", + ownerId: "12345", + parentProject: { + id: "PROJ-PARENT-001", + name: "Company Website Overhaul", + }, + currency: "USD", + budgetAmount: 50000, + approvedAmount: 48000, + actualAmount: 45250.75, + budgetHours: 400, + actualHours: 385.5, + hourlyRate: 125, + billingMethod: "time_and_materials", + isBillable: true, + phase: "execution", + taxRate: { + id: "123456", + code: "N-T", + name: "GST on Purchases", + rate: 10, + }, + trackingCategories: [ + { + id: "123456", + name: "New York", + parentId: "123456", + parentName: "New York", + }, + ], + tags: [ + "website", + "redesign", + "urgent", + ], + notes: "Client has requested modern design with mobile-first approach", + contractNumber: "CNT-2024-001", + profitMargin: 15.5, + scheduleStatus: "on_schedule", + addresses: [ + { + id: "123", + type: "primary", + string: "25 Spring Street, Blackburn, VIC 3130", + name: "HQ US", + line1: "Main street", + line2: "apt #", + line3: "Suite #", + line4: "delivery instructions", + line5: "Attention: Finance Dept", + streetNumber: "25", + city: "San Francisco", + state: "CA", + postalCode: "94104", + country: "US", + latitude: "40.759211", + longitude: "-73.984638", + county: "Santa Clara", + contactName: "Elon Musk", + salutation: "Mr", + phoneNumber: "111-111-1111", + fax: "122-111-1111", + email: "elon@musk.com", + website: "https://elonmusk.com", + notes: "Address notes or delivery instructions.", + rowVersion: "1-12345", + }, + ], + teamSize: 8, + customFields: [ + { + id: "2389328923893298", + name: "employee_level", + description: "Employee Level", + value: "Uses Salesforce and Marketo", + }, + ], + rowVersion: "1-12345", + updatedBy: "12345", + createdBy: "12345", + createdAt: new Date("2020-09-30T07:43:32.000Z"), + updatedAt: new Date("2020-09-30T07:43:32.000Z"), + }, + }); +}); + +test("Projects Accounting Projects Update", async () => { + const testHttpClient = createTestHTTPClient("accounting.projectsUpdate"); + + const apideck = new Apideck({ + serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080", + httpClient: testHttpClient, + apiKey: process.env["APIDECK_API_KEY"] ?? "value", + }); + + const result = await apideck.accounting.projects.update({ + id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + serviceId: "salesforce", + project: { + name: "Website Redesign Project", + displayId: "PROJ-001", + referenceId: "WD-REF-2024-001", + description: + "Complete redesign of the company website including new branding and improved user experience", + status: "active", + active: true, + projectType: "client_project", + priority: "high", + completionPercentage: 75.5, + startDate: new RFCDate("2024-01-15"), + endDate: new RFCDate("2024-06-30"), + customer: null, + department: { + id: "DEPT-001", + name: "Marketing", + }, + companyId: "12345", + ownerId: "12345", + parentProject: { + id: "PROJ-PARENT-001", + name: "Company Website Overhaul", + }, + currency: "USD", + budgetAmount: 50000, + approvedAmount: 48000, + budgetHours: 400, + hourlyRate: 125, + billingMethod: "time_and_materials", + phase: "execution", + taxRate: { + id: "123456", + rate: 10, + }, + trackingCategories: [ + { + id: "123456", + name: "New York", + parentId: "123456", + parentName: "New York", + }, + ], + tags: [ + "website", + "redesign", + "urgent", + ], + notes: "Client has requested modern design with mobile-first approach", + contractNumber: "CNT-2024-001", + profitMargin: 15.5, + scheduleStatus: "on_schedule", + addresses: [ + { + id: "123", + type: "primary", + string: "25 Spring Street, Blackburn, VIC 3130", + name: "HQ US", + line1: "Main street", + line2: "apt #", + line3: "Suite #", + line4: "delivery instructions", + line5: "Attention: Finance Dept", + streetNumber: "25", + city: "San Francisco", + state: "CA", + postalCode: "94104", + country: "US", + latitude: "40.759211", + longitude: "-73.984638", + county: "Santa Clara", + contactName: "Elon Musk", + salutation: "Mr", + phoneNumber: "111-111-1111", + fax: "122-111-1111", + email: "elon@musk.com", + website: "https://elonmusk.com", + notes: "Address notes or delivery instructions.", + rowVersion: "1-12345", + }, + ], + teamSize: 8, + customFields: [ + { + id: "2389328923893298", + name: "employee_level", + description: "Employee Level", + value: "Uses Salesforce and Marketo", + }, + ], + rowVersion: "1-12345", + }, + }); + expect(result.httpMeta.response.status).toBe(200); + expect(result.updateProjectResponse).toBeDefined(); + expect(result.updateProjectResponse).toEqual({ + statusCode: 200, + status: "OK", + service: "quickbooks", + resource: "Projects", + operation: "update", + data: { + id: "12345", + }, + }); +}); + +test("Projects Accounting Projects Delete", async () => { + const testHttpClient = createTestHTTPClient("accounting.projectsDelete"); + + const apideck = new Apideck({ + serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080", + httpClient: testHttpClient, + apiKey: process.env["APIDECK_API_KEY"] ?? "value", + }); + + const result = await apideck.accounting.projects.delete({ + id: "", + consumerId: "test-consumer", + appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", + serviceId: "salesforce", + }); + expect(result.httpMeta.response.status).toBe(200); + expect(result.deleteProjectResponse).toBeDefined(); + expect(result.deleteProjectResponse).toEqual({ + statusCode: 200, + status: "OK", + service: "quickbooks", + resource: "Projects", + operation: "delete", + data: { + id: "12345", + }, + }); +}); diff --git a/src/__tests__/quotes.test.ts b/src/__tests__/quotes.test.ts index 43983fd0..b1bcc41a 100644 --- a/src/__tests__/quotes.test.ts +++ b/src/__tests__/quotes.test.ts @@ -148,6 +148,7 @@ test("Quotes Accounting Quotes Add", async () => { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -174,6 +175,7 @@ test("Quotes Accounting Quotes Add", async () => { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -363,6 +365,7 @@ test("Quotes Accounting Quotes One", async () => { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -389,6 +392,7 @@ test("Quotes Accounting Quotes One", async () => { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -542,6 +546,7 @@ test("Quotes Accounting Quotes Update", async () => { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", @@ -568,6 +573,7 @@ test("Quotes Accounting Quotes Update", async () => { line2: "apt #", line3: "Suite #", line4: "delivery instructions", + line5: "Attention: Finance Dept", streetNumber: "25", city: "San Francisco", state: "CA", diff --git a/src/funcs/accountingAgedCreditorsGet.ts b/src/funcs/accountingAgedCreditorsGet.ts index dc1a984d..6add4685 100644 --- a/src/funcs/accountingAgedCreditorsGet.ts +++ b/src/funcs/accountingAgedCreditorsGet.ts @@ -142,7 +142,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.agedCreditorsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -155,7 +155,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingAgedDebtorsGet.ts b/src/funcs/accountingAgedDebtorsGet.ts index 1dff1f1e..e91c12f7 100644 --- a/src/funcs/accountingAgedDebtorsGet.ts +++ b/src/funcs/accountingAgedDebtorsGet.ts @@ -142,7 +142,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.agedDebtorsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -155,7 +155,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingAttachmentsDelete.ts b/src/funcs/accountingAttachmentsDelete.ts index ac087836..46884850 100644 --- a/src/funcs/accountingAttachmentsDelete.ts +++ b/src/funcs/accountingAttachmentsDelete.ts @@ -147,7 +147,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.attachmentsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -160,7 +160,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingAttachmentsDownload.ts b/src/funcs/accountingAttachmentsDownload.ts index ad24aa76..15db3fb1 100644 --- a/src/funcs/accountingAttachmentsDownload.ts +++ b/src/funcs/accountingAttachmentsDownload.ts @@ -154,7 +154,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.attachmentsDownload", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -167,7 +167,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingAttachmentsGet.ts b/src/funcs/accountingAttachmentsGet.ts index 586f7596..a4f61128 100644 --- a/src/funcs/accountingAttachmentsGet.ts +++ b/src/funcs/accountingAttachmentsGet.ts @@ -148,7 +148,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.attachmentsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -161,7 +161,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingAttachmentsList.ts b/src/funcs/accountingAttachmentsList.ts index 54f41872..873ed02d 100644 --- a/src/funcs/accountingAttachmentsList.ts +++ b/src/funcs/accountingAttachmentsList.ts @@ -159,7 +159,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.attachmentsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -172,7 +172,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingAttachmentsUpload.ts b/src/funcs/accountingAttachmentsUpload.ts index 52ed60b5..2c34a989 100644 --- a/src/funcs/accountingAttachmentsUpload.ts +++ b/src/funcs/accountingAttachmentsUpload.ts @@ -155,7 +155,7 @@ async function $do( options: client._options, baseURL: baseURL ?? "", operationID: "accounting.attachmentsUpload", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -168,7 +168,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBalanceSheetGet.ts b/src/funcs/accountingBalanceSheetGet.ts index e4fcd7ce..cea0dc13 100644 --- a/src/funcs/accountingBalanceSheetGet.ts +++ b/src/funcs/accountingBalanceSheetGet.ts @@ -141,7 +141,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.balanceSheetOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -154,7 +154,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBankAccountsCreate.ts b/src/funcs/accountingBankAccountsCreate.ts index f58d68e7..6487dfaa 100644 --- a/src/funcs/accountingBankAccountsCreate.ts +++ b/src/funcs/accountingBankAccountsCreate.ts @@ -133,7 +133,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.bankAccountsAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -146,7 +146,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBankAccountsDelete.ts b/src/funcs/accountingBankAccountsDelete.ts index 91f39cb1..30a0909e 100644 --- a/src/funcs/accountingBankAccountsDelete.ts +++ b/src/funcs/accountingBankAccountsDelete.ts @@ -139,7 +139,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.bankAccountsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -152,7 +152,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBankAccountsGet.ts b/src/funcs/accountingBankAccountsGet.ts index a200c209..2e118e74 100644 --- a/src/funcs/accountingBankAccountsGet.ts +++ b/src/funcs/accountingBankAccountsGet.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.bankAccountsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBankAccountsList.ts b/src/funcs/accountingBankAccountsList.ts index af65ab39..9edb8e37 100644 --- a/src/funcs/accountingBankAccountsList.ts +++ b/src/funcs/accountingBankAccountsList.ts @@ -158,7 +158,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.bankAccountsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -171,7 +171,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBankAccountsUpdate.ts b/src/funcs/accountingBankAccountsUpdate.ts index 3c920d0d..7717664e 100644 --- a/src/funcs/accountingBankAccountsUpdate.ts +++ b/src/funcs/accountingBankAccountsUpdate.ts @@ -142,7 +142,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.bankAccountsUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -155,7 +155,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBankFeedAccountsCreate.ts b/src/funcs/accountingBankFeedAccountsCreate.ts index 5e8ae8fe..7f7d6543 100644 --- a/src/funcs/accountingBankFeedAccountsCreate.ts +++ b/src/funcs/accountingBankFeedAccountsCreate.ts @@ -133,7 +133,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.bankFeedAccountsAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -146,7 +146,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBankFeedAccountsDelete.ts b/src/funcs/accountingBankFeedAccountsDelete.ts index 4e5c5c7f..f0be2f2f 100644 --- a/src/funcs/accountingBankFeedAccountsDelete.ts +++ b/src/funcs/accountingBankFeedAccountsDelete.ts @@ -139,7 +139,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.bankFeedAccountsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -152,7 +152,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBankFeedAccountsGet.ts b/src/funcs/accountingBankFeedAccountsGet.ts index 915ad0aa..7fedf11e 100644 --- a/src/funcs/accountingBankFeedAccountsGet.ts +++ b/src/funcs/accountingBankFeedAccountsGet.ts @@ -140,7 +140,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.bankFeedAccountsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -153,7 +153,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBankFeedAccountsList.ts b/src/funcs/accountingBankFeedAccountsList.ts index bee3927c..9a100093 100644 --- a/src/funcs/accountingBankFeedAccountsList.ts +++ b/src/funcs/accountingBankFeedAccountsList.ts @@ -158,7 +158,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.bankFeedAccountsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -171,7 +171,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBankFeedAccountsUpdate.ts b/src/funcs/accountingBankFeedAccountsUpdate.ts index 23b8f6c1..cbd227b6 100644 --- a/src/funcs/accountingBankFeedAccountsUpdate.ts +++ b/src/funcs/accountingBankFeedAccountsUpdate.ts @@ -140,7 +140,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.bankFeedAccountsUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -153,7 +153,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBankFeedStatementsCreate.ts b/src/funcs/accountingBankFeedStatementsCreate.ts index 660395ec..6e35290e 100644 --- a/src/funcs/accountingBankFeedStatementsCreate.ts +++ b/src/funcs/accountingBankFeedStatementsCreate.ts @@ -133,7 +133,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.bankFeedStatementsAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -146,7 +146,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBankFeedStatementsDelete.ts b/src/funcs/accountingBankFeedStatementsDelete.ts index 6684233c..1e84ecf3 100644 --- a/src/funcs/accountingBankFeedStatementsDelete.ts +++ b/src/funcs/accountingBankFeedStatementsDelete.ts @@ -139,7 +139,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.bankFeedStatementsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -152,7 +152,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBankFeedStatementsGet.ts b/src/funcs/accountingBankFeedStatementsGet.ts index 96eedc04..31e9db9f 100644 --- a/src/funcs/accountingBankFeedStatementsGet.ts +++ b/src/funcs/accountingBankFeedStatementsGet.ts @@ -140,7 +140,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.bankFeedStatementsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -153,7 +153,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBankFeedStatementsList.ts b/src/funcs/accountingBankFeedStatementsList.ts index 3ab9c61a..f9ba01cf 100644 --- a/src/funcs/accountingBankFeedStatementsList.ts +++ b/src/funcs/accountingBankFeedStatementsList.ts @@ -158,7 +158,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.bankFeedStatementsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -171,7 +171,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBankFeedStatementsUpdate.ts b/src/funcs/accountingBankFeedStatementsUpdate.ts index 817f2051..62081e6a 100644 --- a/src/funcs/accountingBankFeedStatementsUpdate.ts +++ b/src/funcs/accountingBankFeedStatementsUpdate.ts @@ -140,7 +140,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.bankFeedStatementsUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -153,7 +153,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBillPaymentsCreate.ts b/src/funcs/accountingBillPaymentsCreate.ts index fbad8181..9457078b 100644 --- a/src/funcs/accountingBillPaymentsCreate.ts +++ b/src/funcs/accountingBillPaymentsCreate.ts @@ -131,7 +131,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.billPaymentsAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -144,7 +144,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBillPaymentsDelete.ts b/src/funcs/accountingBillPaymentsDelete.ts index 74690706..a2adbf9c 100644 --- a/src/funcs/accountingBillPaymentsDelete.ts +++ b/src/funcs/accountingBillPaymentsDelete.ts @@ -139,7 +139,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.billPaymentsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -152,7 +152,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBillPaymentsGet.ts b/src/funcs/accountingBillPaymentsGet.ts index 05f2ea02..15dc3ba1 100644 --- a/src/funcs/accountingBillPaymentsGet.ts +++ b/src/funcs/accountingBillPaymentsGet.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.billPaymentsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBillPaymentsList.ts b/src/funcs/accountingBillPaymentsList.ts index cf9685a4..60636355 100644 --- a/src/funcs/accountingBillPaymentsList.ts +++ b/src/funcs/accountingBillPaymentsList.ts @@ -158,7 +158,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.billPaymentsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -171,7 +171,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBillPaymentsUpdate.ts b/src/funcs/accountingBillPaymentsUpdate.ts index 10e6e4f2..636b6505 100644 --- a/src/funcs/accountingBillPaymentsUpdate.ts +++ b/src/funcs/accountingBillPaymentsUpdate.ts @@ -140,7 +140,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.billPaymentsUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -153,7 +153,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBillsCreate.ts b/src/funcs/accountingBillsCreate.ts index 4690e13f..c695e75a 100644 --- a/src/funcs/accountingBillsCreate.ts +++ b/src/funcs/accountingBillsCreate.ts @@ -130,7 +130,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.billsAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -143,7 +143,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBillsDelete.ts b/src/funcs/accountingBillsDelete.ts index 79cead58..6ba92121 100644 --- a/src/funcs/accountingBillsDelete.ts +++ b/src/funcs/accountingBillsDelete.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.billsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBillsGet.ts b/src/funcs/accountingBillsGet.ts index ca863eff..cfaad951 100644 --- a/src/funcs/accountingBillsGet.ts +++ b/src/funcs/accountingBillsGet.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.billsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBillsList.ts b/src/funcs/accountingBillsList.ts index 3053702d..fd755edb 100644 --- a/src/funcs/accountingBillsList.ts +++ b/src/funcs/accountingBillsList.ts @@ -157,7 +157,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.billsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -170,7 +170,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingBillsUpdate.ts b/src/funcs/accountingBillsUpdate.ts index dd9daae1..5bc247b2 100644 --- a/src/funcs/accountingBillsUpdate.ts +++ b/src/funcs/accountingBillsUpdate.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.billsUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingCategoriesGet.ts b/src/funcs/accountingCategoriesGet.ts index 3b0997da..b12948bb 100644 --- a/src/funcs/accountingCategoriesGet.ts +++ b/src/funcs/accountingCategoriesGet.ts @@ -148,7 +148,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.categoriesOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -161,7 +161,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingCategoriesList.ts b/src/funcs/accountingCategoriesList.ts index 6b376bde..1467dfd7 100644 --- a/src/funcs/accountingCategoriesList.ts +++ b/src/funcs/accountingCategoriesList.ts @@ -156,7 +156,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.categoriesAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -169,7 +169,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingCompanyInfoGet.ts b/src/funcs/accountingCompanyInfoGet.ts index 4e67adb6..d2eafae9 100644 --- a/src/funcs/accountingCompanyInfoGet.ts +++ b/src/funcs/accountingCompanyInfoGet.ts @@ -131,7 +131,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.companyInfoOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -144,7 +144,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingCreditNotesCreate.ts b/src/funcs/accountingCreditNotesCreate.ts index 16ad5d26..3b0873cf 100644 --- a/src/funcs/accountingCreditNotesCreate.ts +++ b/src/funcs/accountingCreditNotesCreate.ts @@ -131,7 +131,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.creditNotesAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -144,7 +144,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingCreditNotesDelete.ts b/src/funcs/accountingCreditNotesDelete.ts index d201a451..82b30adf 100644 --- a/src/funcs/accountingCreditNotesDelete.ts +++ b/src/funcs/accountingCreditNotesDelete.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.creditNotesDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingCreditNotesGet.ts b/src/funcs/accountingCreditNotesGet.ts index 28123f6d..2bbaeb44 100644 --- a/src/funcs/accountingCreditNotesGet.ts +++ b/src/funcs/accountingCreditNotesGet.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.creditNotesOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingCreditNotesList.ts b/src/funcs/accountingCreditNotesList.ts index 41848f83..7613c44a 100644 --- a/src/funcs/accountingCreditNotesList.ts +++ b/src/funcs/accountingCreditNotesList.ts @@ -158,7 +158,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.creditNotesAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -171,7 +171,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingCreditNotesUpdate.ts b/src/funcs/accountingCreditNotesUpdate.ts index 2e8de5ec..ad981007 100644 --- a/src/funcs/accountingCreditNotesUpdate.ts +++ b/src/funcs/accountingCreditNotesUpdate.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.creditNotesUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingCustomersCreate.ts b/src/funcs/accountingCustomersCreate.ts index 98044f4f..39ede64a 100644 --- a/src/funcs/accountingCustomersCreate.ts +++ b/src/funcs/accountingCustomersCreate.ts @@ -131,7 +131,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.customersAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -144,7 +144,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingCustomersDelete.ts b/src/funcs/accountingCustomersDelete.ts index a3f38b94..e77f1edd 100644 --- a/src/funcs/accountingCustomersDelete.ts +++ b/src/funcs/accountingCustomersDelete.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.customersDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingCustomersGet.ts b/src/funcs/accountingCustomersGet.ts index 2e1cfd3a..36cc8c4d 100644 --- a/src/funcs/accountingCustomersGet.ts +++ b/src/funcs/accountingCustomersGet.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.customersOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingCustomersList.ts b/src/funcs/accountingCustomersList.ts index 63a5c3e9..d48d2460 100644 --- a/src/funcs/accountingCustomersList.ts +++ b/src/funcs/accountingCustomersList.ts @@ -158,7 +158,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.customersAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -171,7 +171,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingCustomersUpdate.ts b/src/funcs/accountingCustomersUpdate.ts index dc6c76b5..57f1c7b8 100644 --- a/src/funcs/accountingCustomersUpdate.ts +++ b/src/funcs/accountingCustomersUpdate.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.customersUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingDepartmentsCreate.ts b/src/funcs/accountingDepartmentsCreate.ts index 63d3cbe2..7ef29bf0 100644 --- a/src/funcs/accountingDepartmentsCreate.ts +++ b/src/funcs/accountingDepartmentsCreate.ts @@ -133,7 +133,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.departmentsAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -146,7 +146,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingDepartmentsDelete.ts b/src/funcs/accountingDepartmentsDelete.ts index d4c24320..5810f94d 100644 --- a/src/funcs/accountingDepartmentsDelete.ts +++ b/src/funcs/accountingDepartmentsDelete.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.departmentsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingDepartmentsGet.ts b/src/funcs/accountingDepartmentsGet.ts index 380cfe04..a87ad354 100644 --- a/src/funcs/accountingDepartmentsGet.ts +++ b/src/funcs/accountingDepartmentsGet.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.departmentsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingDepartmentsList.ts b/src/funcs/accountingDepartmentsList.ts index 7be7a3af..435e4352 100644 --- a/src/funcs/accountingDepartmentsList.ts +++ b/src/funcs/accountingDepartmentsList.ts @@ -156,7 +156,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.departmentsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -169,7 +169,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingDepartmentsUpdate.ts b/src/funcs/accountingDepartmentsUpdate.ts index 05d015ee..0b7e4266 100644 --- a/src/funcs/accountingDepartmentsUpdate.ts +++ b/src/funcs/accountingDepartmentsUpdate.ts @@ -140,7 +140,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.departmentsUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -153,7 +153,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingExpensesCreate.ts b/src/funcs/accountingExpensesCreate.ts index 7ba61550..49353f7e 100644 --- a/src/funcs/accountingExpensesCreate.ts +++ b/src/funcs/accountingExpensesCreate.ts @@ -131,7 +131,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.expensesAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -144,7 +144,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingExpensesDelete.ts b/src/funcs/accountingExpensesDelete.ts index a594ebfa..3505ee04 100644 --- a/src/funcs/accountingExpensesDelete.ts +++ b/src/funcs/accountingExpensesDelete.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.expensesDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingExpensesGet.ts b/src/funcs/accountingExpensesGet.ts index 70aef412..21b236a3 100644 --- a/src/funcs/accountingExpensesGet.ts +++ b/src/funcs/accountingExpensesGet.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.expensesOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingExpensesList.ts b/src/funcs/accountingExpensesList.ts index 10254611..1d2e9eb2 100644 --- a/src/funcs/accountingExpensesList.ts +++ b/src/funcs/accountingExpensesList.ts @@ -155,7 +155,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.expensesAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -168,7 +168,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingExpensesUpdate.ts b/src/funcs/accountingExpensesUpdate.ts index 654073b5..a40adf3b 100644 --- a/src/funcs/accountingExpensesUpdate.ts +++ b/src/funcs/accountingExpensesUpdate.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.expensesUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingInvoiceItemsCreate.ts b/src/funcs/accountingInvoiceItemsCreate.ts index 5ccec6d8..6eb033fb 100644 --- a/src/funcs/accountingInvoiceItemsCreate.ts +++ b/src/funcs/accountingInvoiceItemsCreate.ts @@ -131,7 +131,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.invoiceItemsAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -144,7 +144,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingInvoiceItemsDelete.ts b/src/funcs/accountingInvoiceItemsDelete.ts index 72bf6579..8367e269 100644 --- a/src/funcs/accountingInvoiceItemsDelete.ts +++ b/src/funcs/accountingInvoiceItemsDelete.ts @@ -139,7 +139,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.invoiceItemsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -152,7 +152,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingInvoiceItemsGet.ts b/src/funcs/accountingInvoiceItemsGet.ts index dfcd4c09..c63cbd4f 100644 --- a/src/funcs/accountingInvoiceItemsGet.ts +++ b/src/funcs/accountingInvoiceItemsGet.ts @@ -148,7 +148,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.invoiceItemsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -161,7 +161,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingInvoiceItemsList.ts b/src/funcs/accountingInvoiceItemsList.ts index 931c57a6..a39de086 100644 --- a/src/funcs/accountingInvoiceItemsList.ts +++ b/src/funcs/accountingInvoiceItemsList.ts @@ -158,7 +158,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.invoiceItemsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -171,7 +171,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingInvoiceItemsUpdate.ts b/src/funcs/accountingInvoiceItemsUpdate.ts index 9606e36e..ba3a9227 100644 --- a/src/funcs/accountingInvoiceItemsUpdate.ts +++ b/src/funcs/accountingInvoiceItemsUpdate.ts @@ -140,7 +140,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.invoiceItemsUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -153,7 +153,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingInvoicesCreate.ts b/src/funcs/accountingInvoicesCreate.ts index 198ff985..d145a735 100644 --- a/src/funcs/accountingInvoicesCreate.ts +++ b/src/funcs/accountingInvoicesCreate.ts @@ -131,7 +131,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.invoicesAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -144,7 +144,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingInvoicesDelete.ts b/src/funcs/accountingInvoicesDelete.ts index ac5ead79..15bf71d0 100644 --- a/src/funcs/accountingInvoicesDelete.ts +++ b/src/funcs/accountingInvoicesDelete.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.invoicesDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingInvoicesGet.ts b/src/funcs/accountingInvoicesGet.ts index 0f9f15be..9cef59b9 100644 --- a/src/funcs/accountingInvoicesGet.ts +++ b/src/funcs/accountingInvoicesGet.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.invoicesOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingInvoicesList.ts b/src/funcs/accountingInvoicesList.ts index 37a98b6f..a260c68f 100644 --- a/src/funcs/accountingInvoicesList.ts +++ b/src/funcs/accountingInvoicesList.ts @@ -158,7 +158,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.invoicesAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -171,7 +171,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingInvoicesUpdate.ts b/src/funcs/accountingInvoicesUpdate.ts index fc44554c..82969dcd 100644 --- a/src/funcs/accountingInvoicesUpdate.ts +++ b/src/funcs/accountingInvoicesUpdate.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.invoicesUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingJournalEntriesCreate.ts b/src/funcs/accountingJournalEntriesCreate.ts index 8c86a654..e2a93784 100644 --- a/src/funcs/accountingJournalEntriesCreate.ts +++ b/src/funcs/accountingJournalEntriesCreate.ts @@ -131,7 +131,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.journalEntriesAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -144,7 +144,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingJournalEntriesDelete.ts b/src/funcs/accountingJournalEntriesDelete.ts index 195474db..d4b3100b 100644 --- a/src/funcs/accountingJournalEntriesDelete.ts +++ b/src/funcs/accountingJournalEntriesDelete.ts @@ -139,7 +139,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.journalEntriesDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -152,7 +152,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingJournalEntriesGet.ts b/src/funcs/accountingJournalEntriesGet.ts index 678ce789..e0073215 100644 --- a/src/funcs/accountingJournalEntriesGet.ts +++ b/src/funcs/accountingJournalEntriesGet.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.journalEntriesOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingJournalEntriesList.ts b/src/funcs/accountingJournalEntriesList.ts index 47e0a0d4..24ea0bcf 100644 --- a/src/funcs/accountingJournalEntriesList.ts +++ b/src/funcs/accountingJournalEntriesList.ts @@ -158,7 +158,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.journalEntriesAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -171,7 +171,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingJournalEntriesUpdate.ts b/src/funcs/accountingJournalEntriesUpdate.ts index efe459fc..927d9891 100644 --- a/src/funcs/accountingJournalEntriesUpdate.ts +++ b/src/funcs/accountingJournalEntriesUpdate.ts @@ -140,7 +140,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.journalEntriesUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -153,7 +153,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingLedgerAccountsCreate.ts b/src/funcs/accountingLedgerAccountsCreate.ts index f2d6716f..32cac7cb 100644 --- a/src/funcs/accountingLedgerAccountsCreate.ts +++ b/src/funcs/accountingLedgerAccountsCreate.ts @@ -131,7 +131,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.ledgerAccountsAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -144,7 +144,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingLedgerAccountsDelete.ts b/src/funcs/accountingLedgerAccountsDelete.ts index ac47c102..03487e82 100644 --- a/src/funcs/accountingLedgerAccountsDelete.ts +++ b/src/funcs/accountingLedgerAccountsDelete.ts @@ -139,7 +139,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.ledgerAccountsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -152,7 +152,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingLedgerAccountsGet.ts b/src/funcs/accountingLedgerAccountsGet.ts index 6e002841..cb24894d 100644 --- a/src/funcs/accountingLedgerAccountsGet.ts +++ b/src/funcs/accountingLedgerAccountsGet.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.ledgerAccountsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingLedgerAccountsList.ts b/src/funcs/accountingLedgerAccountsList.ts index eec6b6e5..f375cd4f 100644 --- a/src/funcs/accountingLedgerAccountsList.ts +++ b/src/funcs/accountingLedgerAccountsList.ts @@ -158,7 +158,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.ledgerAccountsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -171,7 +171,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingLedgerAccountsUpdate.ts b/src/funcs/accountingLedgerAccountsUpdate.ts index 1b065aac..c6208ae7 100644 --- a/src/funcs/accountingLedgerAccountsUpdate.ts +++ b/src/funcs/accountingLedgerAccountsUpdate.ts @@ -140,7 +140,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.ledgerAccountsUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -153,7 +153,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingLocationsCreate.ts b/src/funcs/accountingLocationsCreate.ts index 4a9a4229..f76e3dfe 100644 --- a/src/funcs/accountingLocationsCreate.ts +++ b/src/funcs/accountingLocationsCreate.ts @@ -133,7 +133,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.locationsAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -146,7 +146,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingLocationsDelete.ts b/src/funcs/accountingLocationsDelete.ts index 8da0ccd9..b9a3fc33 100644 --- a/src/funcs/accountingLocationsDelete.ts +++ b/src/funcs/accountingLocationsDelete.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.locationsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingLocationsGet.ts b/src/funcs/accountingLocationsGet.ts index 82210e42..741f3c52 100644 --- a/src/funcs/accountingLocationsGet.ts +++ b/src/funcs/accountingLocationsGet.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.locationsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingLocationsList.ts b/src/funcs/accountingLocationsList.ts index f7b958b4..4af44bcd 100644 --- a/src/funcs/accountingLocationsList.ts +++ b/src/funcs/accountingLocationsList.ts @@ -156,7 +156,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.locationsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -169,7 +169,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingLocationsUpdate.ts b/src/funcs/accountingLocationsUpdate.ts index 7b471ab1..6c0cad87 100644 --- a/src/funcs/accountingLocationsUpdate.ts +++ b/src/funcs/accountingLocationsUpdate.ts @@ -140,7 +140,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.locationsUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -153,7 +153,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingPaymentsCreate.ts b/src/funcs/accountingPaymentsCreate.ts index 6742b9b5..7f8dc2f1 100644 --- a/src/funcs/accountingPaymentsCreate.ts +++ b/src/funcs/accountingPaymentsCreate.ts @@ -131,7 +131,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.paymentsAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -144,7 +144,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingPaymentsDelete.ts b/src/funcs/accountingPaymentsDelete.ts index 90cd0145..63b1ce0f 100644 --- a/src/funcs/accountingPaymentsDelete.ts +++ b/src/funcs/accountingPaymentsDelete.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.paymentsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingPaymentsGet.ts b/src/funcs/accountingPaymentsGet.ts index 6d5dce9f..b8ac6f0c 100644 --- a/src/funcs/accountingPaymentsGet.ts +++ b/src/funcs/accountingPaymentsGet.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.paymentsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingPaymentsList.ts b/src/funcs/accountingPaymentsList.ts index c2e011c8..763ea118 100644 --- a/src/funcs/accountingPaymentsList.ts +++ b/src/funcs/accountingPaymentsList.ts @@ -158,7 +158,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.paymentsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -171,7 +171,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingPaymentsUpdate.ts b/src/funcs/accountingPaymentsUpdate.ts index f5c4b3d5..36250c81 100644 --- a/src/funcs/accountingPaymentsUpdate.ts +++ b/src/funcs/accountingPaymentsUpdate.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.paymentsUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingProfitAndLossGet.ts b/src/funcs/accountingProfitAndLossGet.ts index 889bc984..007847c6 100644 --- a/src/funcs/accountingProfitAndLossGet.ts +++ b/src/funcs/accountingProfitAndLossGet.ts @@ -142,7 +142,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.profitAndLossOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -155,7 +155,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingProjectsCreate.ts b/src/funcs/accountingProjectsCreate.ts new file mode 100644 index 00000000..bb0fde36 --- /dev/null +++ b/src/funcs/accountingProjectsCreate.ts @@ -0,0 +1,221 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { ApideckCore } from "../core.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.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 { ApideckError } from "../models/errors/apideckerror.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Create project + * + * @remarks + * Create project + */ +export function accountingProjectsCreate( + client: ApideckCore, + request: operations.AccountingProjectsAddRequest, + options?: RequestOptions, +): APIPromise< + Result< + operations.AccountingProjectsAddResponse, + | errors.BadRequestResponse + | errors.UnauthorizedResponse + | errors.PaymentRequiredResponse + | errors.NotFoundResponse + | errors.UnprocessableResponse + | ApideckError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: ApideckCore, + request: operations.AccountingProjectsAddRequest, + options?: RequestOptions, +): Promise< + [ + Result< + operations.AccountingProjectsAddResponse, + | errors.BadRequestResponse + | errors.UnauthorizedResponse + | errors.PaymentRequiredResponse + | errors.NotFoundResponse + | errors.UnprocessableResponse + | ApideckError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => + operations.AccountingProjectsAddRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = encodeJSON("body", payload.Project, { explode: true }); + + const path = pathToFunc("/accounting/projects")(); + + const query = encodeFormQuery({ + "raw": payload.raw, + }); + + const headers = new Headers(compactMap({ + "Content-Type": "application/json", + Accept: "application/json", + "x-apideck-app-id": encodeSimple( + "x-apideck-app-id", + payload.appId ?? client._options.appId, + { explode: false, charEncoding: "none" }, + ), + "x-apideck-consumer-id": encodeSimple( + "x-apideck-consumer-id", + payload.consumerId ?? client._options.consumerId, + { explode: false, charEncoding: "none" }, + ), + "x-apideck-service-id": encodeSimple( + "x-apideck-service-id", + payload.serviceId, + { explode: false, charEncoding: "none" }, + ), + })); + + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "accounting.projectsAdd", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { + strategy: "backoff", + backoff: { + initialInterval: 500, + maxInterval: 60000, + exponent: 1.5, + maxElapsedTime: 900000, + }, + retryConnectionErrors: true, + } + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["408", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "POST", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "402", "404", "422", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + operations.AccountingProjectsAddResponse, + | errors.BadRequestResponse + | errors.UnauthorizedResponse + | errors.PaymentRequiredResponse + | errors.NotFoundResponse + | errors.UnprocessableResponse + | ApideckError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(201, operations.AccountingProjectsAddResponse$inboundSchema, { + key: "CreateProjectResponse", + }), + M.jsonErr(400, errors.BadRequestResponse$inboundSchema), + M.jsonErr(401, errors.UnauthorizedResponse$inboundSchema), + M.jsonErr(402, errors.PaymentRequiredResponse$inboundSchema), + M.jsonErr(404, errors.NotFoundResponse$inboundSchema), + M.jsonErr(422, errors.UnprocessableResponse$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + M.json("default", operations.AccountingProjectsAddResponse$inboundSchema, { + key: "UnexpectedErrorResponse", + }), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/accountingProjectsDelete.ts b/src/funcs/accountingProjectsDelete.ts new file mode 100644 index 00000000..cdf9f807 --- /dev/null +++ b/src/funcs/accountingProjectsDelete.ts @@ -0,0 +1,229 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { ApideckCore } from "../core.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.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 { ApideckError } from "../models/errors/apideckerror.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Delete project + * + * @remarks + * Delete project + */ +export function accountingProjectsDelete( + client: ApideckCore, + request: operations.AccountingProjectsDeleteRequest, + options?: RequestOptions, +): APIPromise< + Result< + operations.AccountingProjectsDeleteResponse, + | errors.BadRequestResponse + | errors.UnauthorizedResponse + | errors.PaymentRequiredResponse + | errors.NotFoundResponse + | errors.UnprocessableResponse + | ApideckError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: ApideckCore, + request: operations.AccountingProjectsDeleteRequest, + options?: RequestOptions, +): Promise< + [ + Result< + operations.AccountingProjectsDeleteResponse, + | errors.BadRequestResponse + | errors.UnauthorizedResponse + | errors.PaymentRequiredResponse + | errors.NotFoundResponse + | errors.UnprocessableResponse + | ApideckError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => + operations.AccountingProjectsDeleteRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const pathParams = { + id: encodeSimple("id", payload.id, { + explode: false, + charEncoding: "percent", + }), + }; + + const path = pathToFunc("/accounting/projects/{id}")(pathParams); + + const query = encodeFormQuery({ + "raw": payload.raw, + }); + + const headers = new Headers(compactMap({ + Accept: "application/json", + "x-apideck-app-id": encodeSimple( + "x-apideck-app-id", + payload.appId ?? client._options.appId, + { explode: false, charEncoding: "none" }, + ), + "x-apideck-consumer-id": encodeSimple( + "x-apideck-consumer-id", + payload.consumerId ?? client._options.consumerId, + { explode: false, charEncoding: "none" }, + ), + "x-apideck-service-id": encodeSimple( + "x-apideck-service-id", + payload.serviceId, + { explode: false, charEncoding: "none" }, + ), + })); + + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "accounting.projectsDelete", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { + strategy: "backoff", + backoff: { + initialInterval: 500, + maxInterval: 60000, + exponent: 1.5, + maxElapsedTime: 900000, + }, + retryConnectionErrors: true, + } + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["408", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "DELETE", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "402", "404", "422", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + operations.AccountingProjectsDeleteResponse, + | errors.BadRequestResponse + | errors.UnauthorizedResponse + | errors.PaymentRequiredResponse + | errors.NotFoundResponse + | errors.UnprocessableResponse + | ApideckError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, operations.AccountingProjectsDeleteResponse$inboundSchema, { + key: "DeleteProjectResponse", + }), + M.jsonErr(400, errors.BadRequestResponse$inboundSchema), + M.jsonErr(401, errors.UnauthorizedResponse$inboundSchema), + M.jsonErr(402, errors.PaymentRequiredResponse$inboundSchema), + M.jsonErr(404, errors.NotFoundResponse$inboundSchema), + M.jsonErr(422, errors.UnprocessableResponse$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + M.json( + "default", + operations.AccountingProjectsDeleteResponse$inboundSchema, + { key: "UnexpectedErrorResponse" }, + ), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/accountingProjectsGet.ts b/src/funcs/accountingProjectsGet.ts new file mode 100644 index 00000000..fd102657 --- /dev/null +++ b/src/funcs/accountingProjectsGet.ts @@ -0,0 +1,227 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { ApideckCore } from "../core.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.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 { ApideckError } from "../models/errors/apideckerror.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Get project + * + * @remarks + * Get project + */ +export function accountingProjectsGet( + client: ApideckCore, + request: operations.AccountingProjectsOneRequest, + options?: RequestOptions, +): APIPromise< + Result< + operations.AccountingProjectsOneResponse, + | errors.BadRequestResponse + | errors.UnauthorizedResponse + | errors.PaymentRequiredResponse + | errors.NotFoundResponse + | errors.UnprocessableResponse + | ApideckError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: ApideckCore, + request: operations.AccountingProjectsOneRequest, + options?: RequestOptions, +): Promise< + [ + Result< + operations.AccountingProjectsOneResponse, + | errors.BadRequestResponse + | errors.UnauthorizedResponse + | errors.PaymentRequiredResponse + | errors.NotFoundResponse + | errors.UnprocessableResponse + | ApideckError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => + operations.AccountingProjectsOneRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const pathParams = { + id: encodeSimple("id", payload.id, { + explode: false, + charEncoding: "percent", + }), + }; + + const path = pathToFunc("/accounting/projects/{id}")(pathParams); + + const query = encodeFormQuery({ + "raw": payload.raw, + }); + + const headers = new Headers(compactMap({ + Accept: "application/json", + "x-apideck-app-id": encodeSimple( + "x-apideck-app-id", + payload.appId ?? client._options.appId, + { explode: false, charEncoding: "none" }, + ), + "x-apideck-consumer-id": encodeSimple( + "x-apideck-consumer-id", + payload.consumerId ?? client._options.consumerId, + { explode: false, charEncoding: "none" }, + ), + "x-apideck-service-id": encodeSimple( + "x-apideck-service-id", + payload.serviceId, + { explode: false, charEncoding: "none" }, + ), + })); + + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "accounting.projectsOne", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { + strategy: "backoff", + backoff: { + initialInterval: 500, + maxInterval: 60000, + exponent: 1.5, + maxElapsedTime: 900000, + }, + retryConnectionErrors: true, + } + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["408", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "402", "404", "422", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + operations.AccountingProjectsOneResponse, + | errors.BadRequestResponse + | errors.UnauthorizedResponse + | errors.PaymentRequiredResponse + | errors.NotFoundResponse + | errors.UnprocessableResponse + | ApideckError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, operations.AccountingProjectsOneResponse$inboundSchema, { + key: "GetProjectResponse", + }), + M.jsonErr(400, errors.BadRequestResponse$inboundSchema), + M.jsonErr(401, errors.UnauthorizedResponse$inboundSchema), + M.jsonErr(402, errors.PaymentRequiredResponse$inboundSchema), + M.jsonErr(404, errors.NotFoundResponse$inboundSchema), + M.jsonErr(422, errors.UnprocessableResponse$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + M.json("default", operations.AccountingProjectsOneResponse$inboundSchema, { + key: "UnexpectedErrorResponse", + }), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/accountingProjectsList.ts b/src/funcs/accountingProjectsList.ts new file mode 100644 index 00000000..45749aab --- /dev/null +++ b/src/funcs/accountingProjectsList.ts @@ -0,0 +1,301 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { ApideckCore } from "../core.js"; +import { dlv } from "../lib/dlv.js"; +import { + encodeDeepObjectQuery, + encodeFormQuery, + encodeSimple, + queryJoin, +} from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.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 { ApideckError } from "../models/errors/apideckerror.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; +import { + createPageIterator, + haltIterator, + PageIterator, + Paginator, +} from "../types/operations.js"; + +/** + * List projects + * + * @remarks + * List projects + */ +export function accountingProjectsList( + client: ApideckCore, + request: operations.AccountingProjectsAllRequest, + options?: RequestOptions, +): APIPromise< + PageIterator< + Result< + operations.AccountingProjectsAllResponse, + | errors.BadRequestResponse + | errors.UnauthorizedResponse + | errors.PaymentRequiredResponse + | errors.NotFoundResponse + | errors.UnprocessableResponse + | ApideckError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + { cursor: string } + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: ApideckCore, + request: operations.AccountingProjectsAllRequest, + options?: RequestOptions, +): Promise< + [ + PageIterator< + Result< + operations.AccountingProjectsAllResponse, + | errors.BadRequestResponse + | errors.UnauthorizedResponse + | errors.PaymentRequiredResponse + | errors.NotFoundResponse + | errors.UnprocessableResponse + | ApideckError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + { cursor: string } + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => + operations.AccountingProjectsAllRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [haltIterator(parsed), { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const path = pathToFunc("/accounting/projects")(); + + const query = queryJoin( + encodeDeepObjectQuery({ + "filter": payload.filter, + "pass_through": payload.pass_through, + "sort": payload.sort, + }), + encodeFormQuery({ + "cursor": payload.cursor, + "fields": payload.fields, + "limit": payload.limit, + "raw": payload.raw, + }), + ); + + const headers = new Headers(compactMap({ + Accept: "application/json", + "x-apideck-app-id": encodeSimple( + "x-apideck-app-id", + payload.appId ?? client._options.appId, + { explode: false, charEncoding: "none" }, + ), + "x-apideck-consumer-id": encodeSimple( + "x-apideck-consumer-id", + payload.consumerId ?? client._options.consumerId, + { explode: false, charEncoding: "none" }, + ), + "x-apideck-service-id": encodeSimple( + "x-apideck-service-id", + payload.serviceId, + { explode: false, charEncoding: "none" }, + ), + })); + + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "accounting.projectsAll", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { + strategy: "backoff", + backoff: { + initialInterval: 500, + maxInterval: 60000, + exponent: 1.5, + maxElapsedTime: 900000, + }, + retryConnectionErrors: true, + } + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["408", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [haltIterator(requestRes), { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "402", "404", "422", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [haltIterator(doResult), { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result, raw] = await M.match< + operations.AccountingProjectsAllResponse, + | errors.BadRequestResponse + | errors.UnauthorizedResponse + | errors.PaymentRequiredResponse + | errors.NotFoundResponse + | errors.UnprocessableResponse + | ApideckError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, operations.AccountingProjectsAllResponse$inboundSchema, { + key: "GetProjectsResponse", + }), + M.jsonErr(400, errors.BadRequestResponse$inboundSchema), + M.jsonErr(401, errors.UnauthorizedResponse$inboundSchema), + M.jsonErr(402, errors.PaymentRequiredResponse$inboundSchema), + M.jsonErr(404, errors.NotFoundResponse$inboundSchema), + M.jsonErr(422, errors.UnprocessableResponse$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + M.json("default", operations.AccountingProjectsAllResponse$inboundSchema, { + key: "UnexpectedErrorResponse", + }), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [haltIterator(result), { + status: "complete", + request: req, + response, + }]; + } + + const nextFunc = ( + responseData: unknown, + ): { + next: Paginator< + Result< + operations.AccountingProjectsAllResponse, + | errors.BadRequestResponse + | errors.UnauthorizedResponse + | errors.PaymentRequiredResponse + | errors.NotFoundResponse + | errors.UnprocessableResponse + | ApideckError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > + >; + "~next"?: { cursor: string }; + } => { + const nextCursor = dlv(responseData, "meta.cursors.next"); + if (typeof nextCursor !== "string") { + return { next: () => null }; + } + if (nextCursor.trim() === "") { + return { next: () => null }; + } + + const nextVal = () => + accountingProjectsList( + client, + { + ...request, + cursor: nextCursor, + }, + options, + ); + + return { next: nextVal, "~next": { cursor: nextCursor } }; + }; + + const page = { ...result, ...nextFunc(raw) }; + return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, { + status: "complete", + request: req, + response, + }]; +} diff --git a/src/funcs/accountingProjectsUpdate.ts b/src/funcs/accountingProjectsUpdate.ts new file mode 100644 index 00000000..a3ebce1d --- /dev/null +++ b/src/funcs/accountingProjectsUpdate.ts @@ -0,0 +1,230 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { ApideckCore } from "../core.js"; +import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.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 { ApideckError } from "../models/errors/apideckerror.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import * as errors from "../models/errors/index.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * Update project + * + * @remarks + * Update project + */ +export function accountingProjectsUpdate( + client: ApideckCore, + request: operations.AccountingProjectsUpdateRequest, + options?: RequestOptions, +): APIPromise< + Result< + operations.AccountingProjectsUpdateResponse, + | errors.BadRequestResponse + | errors.UnauthorizedResponse + | errors.PaymentRequiredResponse + | errors.NotFoundResponse + | errors.UnprocessableResponse + | ApideckError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: ApideckCore, + request: operations.AccountingProjectsUpdateRequest, + options?: RequestOptions, +): Promise< + [ + Result< + operations.AccountingProjectsUpdateResponse, + | errors.BadRequestResponse + | errors.UnauthorizedResponse + | errors.PaymentRequiredResponse + | errors.NotFoundResponse + | errors.UnprocessableResponse + | ApideckError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => + operations.AccountingProjectsUpdateRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = encodeJSON("body", payload.Project, { explode: true }); + + const pathParams = { + id: encodeSimple("id", payload.id, { + explode: false, + charEncoding: "percent", + }), + }; + + const path = pathToFunc("/accounting/projects/{id}")(pathParams); + + const query = encodeFormQuery({ + "raw": payload.raw, + }); + + const headers = new Headers(compactMap({ + "Content-Type": "application/json", + Accept: "application/json", + "x-apideck-app-id": encodeSimple( + "x-apideck-app-id", + payload.appId ?? client._options.appId, + { explode: false, charEncoding: "none" }, + ), + "x-apideck-consumer-id": encodeSimple( + "x-apideck-consumer-id", + payload.consumerId ?? client._options.consumerId, + { explode: false, charEncoding: "none" }, + ), + "x-apideck-service-id": encodeSimple( + "x-apideck-service-id", + payload.serviceId, + { explode: false, charEncoding: "none" }, + ), + })); + + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "accounting.projectsUpdate", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { + strategy: "backoff", + backoff: { + initialInterval: 500, + maxInterval: 60000, + exponent: 1.5, + maxElapsedTime: 900000, + }, + retryConnectionErrors: true, + } + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["408", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "PATCH", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["400", "401", "402", "404", "422", "4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const responseFields = { + HttpMeta: { Response: response, Request: req }, + }; + + const [result] = await M.match< + operations.AccountingProjectsUpdateResponse, + | errors.BadRequestResponse + | errors.UnauthorizedResponse + | errors.PaymentRequiredResponse + | errors.NotFoundResponse + | errors.UnprocessableResponse + | ApideckError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, operations.AccountingProjectsUpdateResponse$inboundSchema, { + key: "UpdateProjectResponse", + }), + M.jsonErr(400, errors.BadRequestResponse$inboundSchema), + M.jsonErr(401, errors.UnauthorizedResponse$inboundSchema), + M.jsonErr(402, errors.PaymentRequiredResponse$inboundSchema), + M.jsonErr(404, errors.NotFoundResponse$inboundSchema), + M.jsonErr(422, errors.UnprocessableResponse$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + M.json( + "default", + operations.AccountingProjectsUpdateResponse$inboundSchema, + { key: "UnexpectedErrorResponse" }, + ), + )(response, req, { extraFields: responseFields }); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/accountingPurchaseOrdersCreate.ts b/src/funcs/accountingPurchaseOrdersCreate.ts index 17f43d37..a3a4f7b7 100644 --- a/src/funcs/accountingPurchaseOrdersCreate.ts +++ b/src/funcs/accountingPurchaseOrdersCreate.ts @@ -131,7 +131,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.purchaseOrdersAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -144,7 +144,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingPurchaseOrdersDelete.ts b/src/funcs/accountingPurchaseOrdersDelete.ts index 81be0676..91cd095f 100644 --- a/src/funcs/accountingPurchaseOrdersDelete.ts +++ b/src/funcs/accountingPurchaseOrdersDelete.ts @@ -139,7 +139,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.purchaseOrdersDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -152,7 +152,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingPurchaseOrdersGet.ts b/src/funcs/accountingPurchaseOrdersGet.ts index 4010ba3f..791a83b8 100644 --- a/src/funcs/accountingPurchaseOrdersGet.ts +++ b/src/funcs/accountingPurchaseOrdersGet.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.purchaseOrdersOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingPurchaseOrdersList.ts b/src/funcs/accountingPurchaseOrdersList.ts index 35204e58..9fdaa073 100644 --- a/src/funcs/accountingPurchaseOrdersList.ts +++ b/src/funcs/accountingPurchaseOrdersList.ts @@ -157,7 +157,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.purchaseOrdersAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -170,7 +170,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingPurchaseOrdersUpdate.ts b/src/funcs/accountingPurchaseOrdersUpdate.ts index ffb13417..25793978 100644 --- a/src/funcs/accountingPurchaseOrdersUpdate.ts +++ b/src/funcs/accountingPurchaseOrdersUpdate.ts @@ -140,7 +140,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.purchaseOrdersUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -153,7 +153,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingQuotesCreate.ts b/src/funcs/accountingQuotesCreate.ts index 2db70847..c9cc56ab 100644 --- a/src/funcs/accountingQuotesCreate.ts +++ b/src/funcs/accountingQuotesCreate.ts @@ -131,7 +131,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.quotesAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -144,7 +144,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingQuotesDelete.ts b/src/funcs/accountingQuotesDelete.ts index e916b5bb..e02f4a1a 100644 --- a/src/funcs/accountingQuotesDelete.ts +++ b/src/funcs/accountingQuotesDelete.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.quotesDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingQuotesGet.ts b/src/funcs/accountingQuotesGet.ts index 4f7101ba..cd1327f5 100644 --- a/src/funcs/accountingQuotesGet.ts +++ b/src/funcs/accountingQuotesGet.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.quotesOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingQuotesList.ts b/src/funcs/accountingQuotesList.ts index 9358fc24..459e2cd5 100644 --- a/src/funcs/accountingQuotesList.ts +++ b/src/funcs/accountingQuotesList.ts @@ -145,7 +145,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.quotesAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -158,7 +158,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingQuotesUpdate.ts b/src/funcs/accountingQuotesUpdate.ts index 2e27c972..aa70b181 100644 --- a/src/funcs/accountingQuotesUpdate.ts +++ b/src/funcs/accountingQuotesUpdate.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.quotesUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingSubsidiariesCreate.ts b/src/funcs/accountingSubsidiariesCreate.ts index 0f752d9e..b578f507 100644 --- a/src/funcs/accountingSubsidiariesCreate.ts +++ b/src/funcs/accountingSubsidiariesCreate.ts @@ -131,7 +131,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.subsidiariesAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -144,7 +144,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingSubsidiariesDelete.ts b/src/funcs/accountingSubsidiariesDelete.ts index b2c07738..d2208ee2 100644 --- a/src/funcs/accountingSubsidiariesDelete.ts +++ b/src/funcs/accountingSubsidiariesDelete.ts @@ -139,7 +139,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.subsidiariesDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -152,7 +152,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingSubsidiariesGet.ts b/src/funcs/accountingSubsidiariesGet.ts index 2b8e7599..7e230e50 100644 --- a/src/funcs/accountingSubsidiariesGet.ts +++ b/src/funcs/accountingSubsidiariesGet.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.subsidiariesOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingSubsidiariesList.ts b/src/funcs/accountingSubsidiariesList.ts index 8ff61bf8..758ab6d1 100644 --- a/src/funcs/accountingSubsidiariesList.ts +++ b/src/funcs/accountingSubsidiariesList.ts @@ -146,7 +146,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.subsidiariesAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -159,7 +159,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingSubsidiariesUpdate.ts b/src/funcs/accountingSubsidiariesUpdate.ts index 26f4e539..8c70043e 100644 --- a/src/funcs/accountingSubsidiariesUpdate.ts +++ b/src/funcs/accountingSubsidiariesUpdate.ts @@ -140,7 +140,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.subsidiariesUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -153,7 +153,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingSuppliersCreate.ts b/src/funcs/accountingSuppliersCreate.ts index 44a67556..f8234721 100644 --- a/src/funcs/accountingSuppliersCreate.ts +++ b/src/funcs/accountingSuppliersCreate.ts @@ -131,7 +131,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.suppliersAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -144,7 +144,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingSuppliersDelete.ts b/src/funcs/accountingSuppliersDelete.ts index e38ee614..b0245415 100644 --- a/src/funcs/accountingSuppliersDelete.ts +++ b/src/funcs/accountingSuppliersDelete.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.suppliersDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingSuppliersGet.ts b/src/funcs/accountingSuppliersGet.ts index 44c79ada..b63d8f9a 100644 --- a/src/funcs/accountingSuppliersGet.ts +++ b/src/funcs/accountingSuppliersGet.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.suppliersOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingSuppliersList.ts b/src/funcs/accountingSuppliersList.ts index 389d458e..d8b06117 100644 --- a/src/funcs/accountingSuppliersList.ts +++ b/src/funcs/accountingSuppliersList.ts @@ -158,7 +158,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.suppliersAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -171,7 +171,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingSuppliersUpdate.ts b/src/funcs/accountingSuppliersUpdate.ts index 1caaff4e..7d72ff51 100644 --- a/src/funcs/accountingSuppliersUpdate.ts +++ b/src/funcs/accountingSuppliersUpdate.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.suppliersUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingTaxRatesCreate.ts b/src/funcs/accountingTaxRatesCreate.ts index 0e50cd0c..a35624bd 100644 --- a/src/funcs/accountingTaxRatesCreate.ts +++ b/src/funcs/accountingTaxRatesCreate.ts @@ -131,7 +131,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.taxRatesAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -144,7 +144,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingTaxRatesDelete.ts b/src/funcs/accountingTaxRatesDelete.ts index 6ac6ba88..4c94f366 100644 --- a/src/funcs/accountingTaxRatesDelete.ts +++ b/src/funcs/accountingTaxRatesDelete.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.taxRatesDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingTaxRatesGet.ts b/src/funcs/accountingTaxRatesGet.ts index 6bdf218b..ce7ff7bf 100644 --- a/src/funcs/accountingTaxRatesGet.ts +++ b/src/funcs/accountingTaxRatesGet.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.taxRatesOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingTaxRatesList.ts b/src/funcs/accountingTaxRatesList.ts index 20e0944e..9961f422 100644 --- a/src/funcs/accountingTaxRatesList.ts +++ b/src/funcs/accountingTaxRatesList.ts @@ -157,7 +157,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.taxRatesAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -170,7 +170,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingTaxRatesUpdate.ts b/src/funcs/accountingTaxRatesUpdate.ts index f2da3990..ab868b32 100644 --- a/src/funcs/accountingTaxRatesUpdate.ts +++ b/src/funcs/accountingTaxRatesUpdate.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.taxRatesUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingTrackingCategoriesCreate.ts b/src/funcs/accountingTrackingCategoriesCreate.ts index fbfdb8a6..ce3a3d37 100644 --- a/src/funcs/accountingTrackingCategoriesCreate.ts +++ b/src/funcs/accountingTrackingCategoriesCreate.ts @@ -133,7 +133,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.trackingCategoriesAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -146,7 +146,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingTrackingCategoriesDelete.ts b/src/funcs/accountingTrackingCategoriesDelete.ts index cd7dcc13..6e8a3f35 100644 --- a/src/funcs/accountingTrackingCategoriesDelete.ts +++ b/src/funcs/accountingTrackingCategoriesDelete.ts @@ -139,7 +139,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.trackingCategoriesDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -152,7 +152,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingTrackingCategoriesGet.ts b/src/funcs/accountingTrackingCategoriesGet.ts index 968fceba..1c67336c 100644 --- a/src/funcs/accountingTrackingCategoriesGet.ts +++ b/src/funcs/accountingTrackingCategoriesGet.ts @@ -140,7 +140,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.trackingCategoriesOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -153,7 +153,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingTrackingCategoriesList.ts b/src/funcs/accountingTrackingCategoriesList.ts index f9cfbb9b..2131439e 100644 --- a/src/funcs/accountingTrackingCategoriesList.ts +++ b/src/funcs/accountingTrackingCategoriesList.ts @@ -158,7 +158,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.trackingCategoriesAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -171,7 +171,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/accountingTrackingCategoriesUpdate.ts b/src/funcs/accountingTrackingCategoriesUpdate.ts index e4aa6dd4..bf10f99d 100644 --- a/src/funcs/accountingTrackingCategoriesUpdate.ts +++ b/src/funcs/accountingTrackingCategoriesUpdate.ts @@ -140,7 +140,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "accounting.trackingCategoriesUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -153,7 +153,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/atsApplicantsCreate.ts b/src/funcs/atsApplicantsCreate.ts index ffa3d56f..76745fd0 100644 --- a/src/funcs/atsApplicantsCreate.ts +++ b/src/funcs/atsApplicantsCreate.ts @@ -130,7 +130,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ats.applicantsAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -143,7 +143,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/atsApplicantsDelete.ts b/src/funcs/atsApplicantsDelete.ts index d17f0fb2..4f4a6d73 100644 --- a/src/funcs/atsApplicantsDelete.ts +++ b/src/funcs/atsApplicantsDelete.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ats.applicantsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/atsApplicantsGet.ts b/src/funcs/atsApplicantsGet.ts index 5ea44ecb..e7b671e6 100644 --- a/src/funcs/atsApplicantsGet.ts +++ b/src/funcs/atsApplicantsGet.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ats.applicantsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/atsApplicantsList.ts b/src/funcs/atsApplicantsList.ts index ab09cfc8..59ca9c1c 100644 --- a/src/funcs/atsApplicantsList.ts +++ b/src/funcs/atsApplicantsList.ts @@ -156,7 +156,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ats.applicantsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -169,7 +169,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/atsApplicantsUpdate.ts b/src/funcs/atsApplicantsUpdate.ts index 94e016ff..63e790a3 100644 --- a/src/funcs/atsApplicantsUpdate.ts +++ b/src/funcs/atsApplicantsUpdate.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ats.applicantsUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/atsApplicationsCreate.ts b/src/funcs/atsApplicationsCreate.ts index bbbd54fc..df20dec0 100644 --- a/src/funcs/atsApplicationsCreate.ts +++ b/src/funcs/atsApplicationsCreate.ts @@ -130,7 +130,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ats.applicationsAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -143,7 +143,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/atsApplicationsDelete.ts b/src/funcs/atsApplicationsDelete.ts index 98e83913..e781069f 100644 --- a/src/funcs/atsApplicationsDelete.ts +++ b/src/funcs/atsApplicationsDelete.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ats.applicationsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/atsApplicationsGet.ts b/src/funcs/atsApplicationsGet.ts index afe77bcf..722cec21 100644 --- a/src/funcs/atsApplicationsGet.ts +++ b/src/funcs/atsApplicationsGet.ts @@ -136,7 +136,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ats.applicationsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -149,7 +149,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/atsApplicationsList.ts b/src/funcs/atsApplicationsList.ts index b1970649..8b7b4911 100644 --- a/src/funcs/atsApplicationsList.ts +++ b/src/funcs/atsApplicationsList.ts @@ -154,7 +154,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ats.applicationsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -167,7 +167,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/atsApplicationsUpdate.ts b/src/funcs/atsApplicationsUpdate.ts index 75791b89..529033e4 100644 --- a/src/funcs/atsApplicationsUpdate.ts +++ b/src/funcs/atsApplicationsUpdate.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ats.applicationsUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/atsJobsGet.ts b/src/funcs/atsJobsGet.ts index 3d463d8c..e68837d6 100644 --- a/src/funcs/atsJobsGet.ts +++ b/src/funcs/atsJobsGet.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ats.jobsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/atsJobsList.ts b/src/funcs/atsJobsList.ts index 82c9a818..0a3cd3a1 100644 --- a/src/funcs/atsJobsList.ts +++ b/src/funcs/atsJobsList.ts @@ -155,7 +155,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ats.jobsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -168,7 +168,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/connectorApiResourceCoverageGet.ts b/src/funcs/connectorApiResourceCoverageGet.ts index 4f111d36..a630475d 100644 --- a/src/funcs/connectorApiResourceCoverageGet.ts +++ b/src/funcs/connectorApiResourceCoverageGet.ts @@ -127,7 +127,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "connector.apiResourceCoverageOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -140,7 +140,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/connectorApiResourcesGet.ts b/src/funcs/connectorApiResourcesGet.ts index 32231764..6e938af6 100644 --- a/src/funcs/connectorApiResourcesGet.ts +++ b/src/funcs/connectorApiResourcesGet.ts @@ -125,7 +125,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "connector.apiResourcesOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -138,7 +138,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/connectorApisGet.ts b/src/funcs/connectorApisGet.ts index 7ee860b5..31478c27 100644 --- a/src/funcs/connectorApisGet.ts +++ b/src/funcs/connectorApisGet.ts @@ -118,7 +118,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "connector.apisOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -131,7 +131,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/connectorApisList.ts b/src/funcs/connectorApisList.ts index bbf00222..08c8f445 100644 --- a/src/funcs/connectorApisList.ts +++ b/src/funcs/connectorApisList.ts @@ -139,7 +139,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "connector.apisAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -152,7 +152,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/connectorConnectorDocsGet.ts b/src/funcs/connectorConnectorDocsGet.ts index 5c17f2dd..3203232e 100644 --- a/src/funcs/connectorConnectorDocsGet.ts +++ b/src/funcs/connectorConnectorDocsGet.ts @@ -131,7 +131,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "connector.connectorDocsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -144,7 +144,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/connectorConnectorResourcesGet.ts b/src/funcs/connectorConnectorResourcesGet.ts index 86c5dbda..0ffc9ea3 100644 --- a/src/funcs/connectorConnectorResourcesGet.ts +++ b/src/funcs/connectorConnectorResourcesGet.ts @@ -131,7 +131,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "connector.connectorResourcesOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -144,7 +144,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/connectorConnectorsGet.ts b/src/funcs/connectorConnectorsGet.ts index f79ec164..494cf7c1 100644 --- a/src/funcs/connectorConnectorsGet.ts +++ b/src/funcs/connectorConnectorsGet.ts @@ -119,7 +119,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "connector.connectorsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -132,7 +132,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/connectorConnectorsList.ts b/src/funcs/connectorConnectorsList.ts index 9adc489a..60e7063e 100644 --- a/src/funcs/connectorConnectorsList.ts +++ b/src/funcs/connectorConnectorsList.ts @@ -140,7 +140,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "connector.connectorsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -153,7 +153,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmActivitiesCreate.ts b/src/funcs/crmActivitiesCreate.ts index 26382f1c..5b78c1c0 100644 --- a/src/funcs/crmActivitiesCreate.ts +++ b/src/funcs/crmActivitiesCreate.ts @@ -130,7 +130,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.activitiesAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -143,7 +143,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmActivitiesDelete.ts b/src/funcs/crmActivitiesDelete.ts index 66990e24..802cbcf0 100644 --- a/src/funcs/crmActivitiesDelete.ts +++ b/src/funcs/crmActivitiesDelete.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.activitiesDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmActivitiesGet.ts b/src/funcs/crmActivitiesGet.ts index d0fb4668..5f7b6748 100644 --- a/src/funcs/crmActivitiesGet.ts +++ b/src/funcs/crmActivitiesGet.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.activitiesOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmActivitiesList.ts b/src/funcs/crmActivitiesList.ts index d6e377e7..479afe4f 100644 --- a/src/funcs/crmActivitiesList.ts +++ b/src/funcs/crmActivitiesList.ts @@ -157,7 +157,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.activitiesAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -170,7 +170,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmActivitiesUpdate.ts b/src/funcs/crmActivitiesUpdate.ts index b24908b5..1913f376 100644 --- a/src/funcs/crmActivitiesUpdate.ts +++ b/src/funcs/crmActivitiesUpdate.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.activitiesUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmCompaniesCreate.ts b/src/funcs/crmCompaniesCreate.ts index 8f9b22c2..dde6f144 100644 --- a/src/funcs/crmCompaniesCreate.ts +++ b/src/funcs/crmCompaniesCreate.ts @@ -130,7 +130,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.companiesAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -143,7 +143,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmCompaniesDelete.ts b/src/funcs/crmCompaniesDelete.ts index 604ba3d2..3c5ab1c0 100644 --- a/src/funcs/crmCompaniesDelete.ts +++ b/src/funcs/crmCompaniesDelete.ts @@ -136,7 +136,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.companiesDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -149,7 +149,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmCompaniesGet.ts b/src/funcs/crmCompaniesGet.ts index 0eb04b88..82fcce7a 100644 --- a/src/funcs/crmCompaniesGet.ts +++ b/src/funcs/crmCompaniesGet.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.companiesOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmCompaniesList.ts b/src/funcs/crmCompaniesList.ts index 8ac4d1f5..87c50cfb 100644 --- a/src/funcs/crmCompaniesList.ts +++ b/src/funcs/crmCompaniesList.ts @@ -157,7 +157,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.companiesAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -170,7 +170,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmCompaniesUpdate.ts b/src/funcs/crmCompaniesUpdate.ts index 7f50bdc7..80108e97 100644 --- a/src/funcs/crmCompaniesUpdate.ts +++ b/src/funcs/crmCompaniesUpdate.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.companiesUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmContactsCreate.ts b/src/funcs/crmContactsCreate.ts index 7e2f313d..dbd577cb 100644 --- a/src/funcs/crmContactsCreate.ts +++ b/src/funcs/crmContactsCreate.ts @@ -130,7 +130,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.contactsAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -143,7 +143,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmContactsDelete.ts b/src/funcs/crmContactsDelete.ts index a51bf0b2..4f1bf8df 100644 --- a/src/funcs/crmContactsDelete.ts +++ b/src/funcs/crmContactsDelete.ts @@ -136,7 +136,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.contactsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -149,7 +149,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmContactsGet.ts b/src/funcs/crmContactsGet.ts index da30183a..f921bbce 100644 --- a/src/funcs/crmContactsGet.ts +++ b/src/funcs/crmContactsGet.ts @@ -147,7 +147,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.contactsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -160,7 +160,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmContactsList.ts b/src/funcs/crmContactsList.ts index 0fb7febb..3750ffbb 100644 --- a/src/funcs/crmContactsList.ts +++ b/src/funcs/crmContactsList.ts @@ -157,7 +157,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.contactsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -170,7 +170,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmContactsUpdate.ts b/src/funcs/crmContactsUpdate.ts index 0fd40e3c..d36252a6 100644 --- a/src/funcs/crmContactsUpdate.ts +++ b/src/funcs/crmContactsUpdate.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.contactsUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmCustomObjectSchemasCreate.ts b/src/funcs/crmCustomObjectSchemasCreate.ts index 9390fd6f..4ba35382 100644 --- a/src/funcs/crmCustomObjectSchemasCreate.ts +++ b/src/funcs/crmCustomObjectSchemasCreate.ts @@ -133,7 +133,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.customObjectSchemasAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -146,7 +146,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmCustomObjectSchemasDelete.ts b/src/funcs/crmCustomObjectSchemasDelete.ts index 193a059a..f12eafa9 100644 --- a/src/funcs/crmCustomObjectSchemasDelete.ts +++ b/src/funcs/crmCustomObjectSchemasDelete.ts @@ -139,7 +139,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.customObjectSchemasDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -152,7 +152,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmCustomObjectSchemasGet.ts b/src/funcs/crmCustomObjectSchemasGet.ts index cc9abbf7..f8afb28a 100644 --- a/src/funcs/crmCustomObjectSchemasGet.ts +++ b/src/funcs/crmCustomObjectSchemasGet.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.customObjectSchemasOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmCustomObjectSchemasList.ts b/src/funcs/crmCustomObjectSchemasList.ts index 5bf72d43..a49bd93c 100644 --- a/src/funcs/crmCustomObjectSchemasList.ts +++ b/src/funcs/crmCustomObjectSchemasList.ts @@ -155,7 +155,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.customObjectSchemasAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -168,7 +168,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmCustomObjectSchemasUpdate.ts b/src/funcs/crmCustomObjectSchemasUpdate.ts index 82db6416..80768fea 100644 --- a/src/funcs/crmCustomObjectSchemasUpdate.ts +++ b/src/funcs/crmCustomObjectSchemasUpdate.ts @@ -142,7 +142,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.customObjectSchemasUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -155,7 +155,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmCustomObjectsCreate.ts b/src/funcs/crmCustomObjectsCreate.ts index cfaf7d8f..eb1dc155 100644 --- a/src/funcs/crmCustomObjectsCreate.ts +++ b/src/funcs/crmCustomObjectsCreate.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.customObjectsAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmCustomObjectsDelete.ts b/src/funcs/crmCustomObjectsDelete.ts index a9add089..445bf02a 100644 --- a/src/funcs/crmCustomObjectsDelete.ts +++ b/src/funcs/crmCustomObjectsDelete.ts @@ -141,7 +141,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.customObjectsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -154,7 +154,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmCustomObjectsGet.ts b/src/funcs/crmCustomObjectsGet.ts index bd9dca8b..143d5b05 100644 --- a/src/funcs/crmCustomObjectsGet.ts +++ b/src/funcs/crmCustomObjectsGet.ts @@ -141,7 +141,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.customObjectsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -154,7 +154,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmCustomObjectsList.ts b/src/funcs/crmCustomObjectsList.ts index e562a8c9..0a95d6c8 100644 --- a/src/funcs/crmCustomObjectsList.ts +++ b/src/funcs/crmCustomObjectsList.ts @@ -163,7 +163,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.customObjectsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -176,7 +176,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmCustomObjectsUpdate.ts b/src/funcs/crmCustomObjectsUpdate.ts index 66597430..8e128350 100644 --- a/src/funcs/crmCustomObjectsUpdate.ts +++ b/src/funcs/crmCustomObjectsUpdate.ts @@ -142,7 +142,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.customObjectsUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -155,7 +155,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmLeadsCreate.ts b/src/funcs/crmLeadsCreate.ts index 05a2dcec..6a8562ef 100644 --- a/src/funcs/crmLeadsCreate.ts +++ b/src/funcs/crmLeadsCreate.ts @@ -130,7 +130,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.leadsAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -143,7 +143,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmLeadsDelete.ts b/src/funcs/crmLeadsDelete.ts index b186f63d..23aefad3 100644 --- a/src/funcs/crmLeadsDelete.ts +++ b/src/funcs/crmLeadsDelete.ts @@ -136,7 +136,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.leadsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -149,7 +149,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmLeadsGet.ts b/src/funcs/crmLeadsGet.ts index 124c5d28..1ae665fe 100644 --- a/src/funcs/crmLeadsGet.ts +++ b/src/funcs/crmLeadsGet.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.leadsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmLeadsList.ts b/src/funcs/crmLeadsList.ts index e7fba40b..1a0c02e9 100644 --- a/src/funcs/crmLeadsList.ts +++ b/src/funcs/crmLeadsList.ts @@ -157,7 +157,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.leadsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -170,7 +170,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmLeadsUpdate.ts b/src/funcs/crmLeadsUpdate.ts index b0e9eedb..a5a42212 100644 --- a/src/funcs/crmLeadsUpdate.ts +++ b/src/funcs/crmLeadsUpdate.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.leadsUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmNotesCreate.ts b/src/funcs/crmNotesCreate.ts index 9aa58c88..2bdabaf1 100644 --- a/src/funcs/crmNotesCreate.ts +++ b/src/funcs/crmNotesCreate.ts @@ -130,7 +130,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.notesAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -143,7 +143,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmNotesDelete.ts b/src/funcs/crmNotesDelete.ts index 7bdde957..3ecb3add 100644 --- a/src/funcs/crmNotesDelete.ts +++ b/src/funcs/crmNotesDelete.ts @@ -136,7 +136,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.notesDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -149,7 +149,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmNotesGet.ts b/src/funcs/crmNotesGet.ts index 50a85ddd..feb64bd4 100644 --- a/src/funcs/crmNotesGet.ts +++ b/src/funcs/crmNotesGet.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.notesOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmNotesList.ts b/src/funcs/crmNotesList.ts index bfdd8403..8a1c8157 100644 --- a/src/funcs/crmNotesList.ts +++ b/src/funcs/crmNotesList.ts @@ -155,7 +155,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.notesAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -168,7 +168,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmNotesUpdate.ts b/src/funcs/crmNotesUpdate.ts index 5c0e1900..1d584aeb 100644 --- a/src/funcs/crmNotesUpdate.ts +++ b/src/funcs/crmNotesUpdate.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.notesUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmOpportunitiesCreate.ts b/src/funcs/crmOpportunitiesCreate.ts index a2b2c3a2..ac6debc1 100644 --- a/src/funcs/crmOpportunitiesCreate.ts +++ b/src/funcs/crmOpportunitiesCreate.ts @@ -131,7 +131,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.opportunitiesAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -144,7 +144,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmOpportunitiesDelete.ts b/src/funcs/crmOpportunitiesDelete.ts index 619c0424..44fe5cc3 100644 --- a/src/funcs/crmOpportunitiesDelete.ts +++ b/src/funcs/crmOpportunitiesDelete.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.opportunitiesDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmOpportunitiesGet.ts b/src/funcs/crmOpportunitiesGet.ts index eafe0fe4..5806d78e 100644 --- a/src/funcs/crmOpportunitiesGet.ts +++ b/src/funcs/crmOpportunitiesGet.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.opportunitiesOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmOpportunitiesList.ts b/src/funcs/crmOpportunitiesList.ts index a4a952a9..8584913b 100644 --- a/src/funcs/crmOpportunitiesList.ts +++ b/src/funcs/crmOpportunitiesList.ts @@ -158,7 +158,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.opportunitiesAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -171,7 +171,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmOpportunitiesUpdate.ts b/src/funcs/crmOpportunitiesUpdate.ts index c715ae20..24242082 100644 --- a/src/funcs/crmOpportunitiesUpdate.ts +++ b/src/funcs/crmOpportunitiesUpdate.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.opportunitiesUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmPipelinesCreate.ts b/src/funcs/crmPipelinesCreate.ts index 898b1a31..eb0465d6 100644 --- a/src/funcs/crmPipelinesCreate.ts +++ b/src/funcs/crmPipelinesCreate.ts @@ -130,7 +130,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.pipelinesAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -143,7 +143,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmPipelinesDelete.ts b/src/funcs/crmPipelinesDelete.ts index 2a9c73a3..ea221a7b 100644 --- a/src/funcs/crmPipelinesDelete.ts +++ b/src/funcs/crmPipelinesDelete.ts @@ -136,7 +136,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.pipelinesDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -149,7 +149,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmPipelinesGet.ts b/src/funcs/crmPipelinesGet.ts index 37e77dbf..73c5e3d3 100644 --- a/src/funcs/crmPipelinesGet.ts +++ b/src/funcs/crmPipelinesGet.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.pipelinesOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmPipelinesList.ts b/src/funcs/crmPipelinesList.ts index f2d39437..a7d81969 100644 --- a/src/funcs/crmPipelinesList.ts +++ b/src/funcs/crmPipelinesList.ts @@ -155,7 +155,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.pipelinesAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -168,7 +168,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmPipelinesUpdate.ts b/src/funcs/crmPipelinesUpdate.ts index 344b4dc4..fd6a49e0 100644 --- a/src/funcs/crmPipelinesUpdate.ts +++ b/src/funcs/crmPipelinesUpdate.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.pipelinesUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmUsersCreate.ts b/src/funcs/crmUsersCreate.ts index f658b7b6..601f8279 100644 --- a/src/funcs/crmUsersCreate.ts +++ b/src/funcs/crmUsersCreate.ts @@ -130,7 +130,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.usersAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -143,7 +143,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmUsersDelete.ts b/src/funcs/crmUsersDelete.ts index a17ac4bd..65c36db6 100644 --- a/src/funcs/crmUsersDelete.ts +++ b/src/funcs/crmUsersDelete.ts @@ -136,7 +136,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.usersDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -149,7 +149,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmUsersGet.ts b/src/funcs/crmUsersGet.ts index 83f44b6e..577f6687 100644 --- a/src/funcs/crmUsersGet.ts +++ b/src/funcs/crmUsersGet.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.usersOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmUsersList.ts b/src/funcs/crmUsersList.ts index b1851ee0..8f402390 100644 --- a/src/funcs/crmUsersList.ts +++ b/src/funcs/crmUsersList.ts @@ -155,7 +155,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.usersAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -168,7 +168,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/crmUsersUpdate.ts b/src/funcs/crmUsersUpdate.ts index 20820698..92a14658 100644 --- a/src/funcs/crmUsersUpdate.ts +++ b/src/funcs/crmUsersUpdate.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "crm.usersUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/ecommerceCustomersGet.ts b/src/funcs/ecommerceCustomersGet.ts index 86f16458..d67e007d 100644 --- a/src/funcs/ecommerceCustomersGet.ts +++ b/src/funcs/ecommerceCustomersGet.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ecommerce.customersOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/ecommerceCustomersList.ts b/src/funcs/ecommerceCustomersList.ts index d01baab9..94af19d1 100644 --- a/src/funcs/ecommerceCustomersList.ts +++ b/src/funcs/ecommerceCustomersList.ts @@ -157,7 +157,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ecommerce.customersAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -170,7 +170,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/ecommerceOrdersGet.ts b/src/funcs/ecommerceOrdersGet.ts index 167ab4e8..fc09e5bc 100644 --- a/src/funcs/ecommerceOrdersGet.ts +++ b/src/funcs/ecommerceOrdersGet.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ecommerce.ordersOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/ecommerceOrdersList.ts b/src/funcs/ecommerceOrdersList.ts index 30998f29..d9a1fd22 100644 --- a/src/funcs/ecommerceOrdersList.ts +++ b/src/funcs/ecommerceOrdersList.ts @@ -157,7 +157,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ecommerce.ordersAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -170,7 +170,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/ecommerceProductsGet.ts b/src/funcs/ecommerceProductsGet.ts index ef8f8725..51e40938 100644 --- a/src/funcs/ecommerceProductsGet.ts +++ b/src/funcs/ecommerceProductsGet.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ecommerce.productsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/ecommerceProductsList.ts b/src/funcs/ecommerceProductsList.ts index 733c2da6..12dc4cc2 100644 --- a/src/funcs/ecommerceProductsList.ts +++ b/src/funcs/ecommerceProductsList.ts @@ -157,7 +157,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ecommerce.productsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -170,7 +170,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/ecommerceStoresGet.ts b/src/funcs/ecommerceStoresGet.ts index 1173e73c..ddc7a69a 100644 --- a/src/funcs/ecommerceStoresGet.ts +++ b/src/funcs/ecommerceStoresGet.ts @@ -130,7 +130,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "ecommerce.storesOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -143,7 +143,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageDriveGroupsCreate.ts b/src/funcs/fileStorageDriveGroupsCreate.ts index b2428150..1ee929cf 100644 --- a/src/funcs/fileStorageDriveGroupsCreate.ts +++ b/src/funcs/fileStorageDriveGroupsCreate.ts @@ -131,7 +131,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.driveGroupsAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -144,7 +144,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageDriveGroupsDelete.ts b/src/funcs/fileStorageDriveGroupsDelete.ts index ff5907ea..0813920c 100644 --- a/src/funcs/fileStorageDriveGroupsDelete.ts +++ b/src/funcs/fileStorageDriveGroupsDelete.ts @@ -139,7 +139,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.driveGroupsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -152,7 +152,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageDriveGroupsGet.ts b/src/funcs/fileStorageDriveGroupsGet.ts index 2731e99b..63c82d93 100644 --- a/src/funcs/fileStorageDriveGroupsGet.ts +++ b/src/funcs/fileStorageDriveGroupsGet.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.driveGroupsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageDriveGroupsList.ts b/src/funcs/fileStorageDriveGroupsList.ts index e03dc701..41ce8bae 100644 --- a/src/funcs/fileStorageDriveGroupsList.ts +++ b/src/funcs/fileStorageDriveGroupsList.ts @@ -157,7 +157,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.driveGroupsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -170,7 +170,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageDriveGroupsUpdate.ts b/src/funcs/fileStorageDriveGroupsUpdate.ts index 27f113e9..f655f69d 100644 --- a/src/funcs/fileStorageDriveGroupsUpdate.ts +++ b/src/funcs/fileStorageDriveGroupsUpdate.ts @@ -140,7 +140,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.driveGroupsUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -153,7 +153,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageDrivesCreate.ts b/src/funcs/fileStorageDrivesCreate.ts index 3b6cb4b2..51ba9933 100644 --- a/src/funcs/fileStorageDrivesCreate.ts +++ b/src/funcs/fileStorageDrivesCreate.ts @@ -131,7 +131,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.drivesAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -144,7 +144,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageDrivesDelete.ts b/src/funcs/fileStorageDrivesDelete.ts index a22ae357..2c31d52b 100644 --- a/src/funcs/fileStorageDrivesDelete.ts +++ b/src/funcs/fileStorageDrivesDelete.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.drivesDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageDrivesGet.ts b/src/funcs/fileStorageDrivesGet.ts index 52eb1f85..3f5470c0 100644 --- a/src/funcs/fileStorageDrivesGet.ts +++ b/src/funcs/fileStorageDrivesGet.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.drivesOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageDrivesList.ts b/src/funcs/fileStorageDrivesList.ts index f2de27c4..e9b3c531 100644 --- a/src/funcs/fileStorageDrivesList.ts +++ b/src/funcs/fileStorageDrivesList.ts @@ -156,7 +156,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.drivesAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -169,7 +169,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageDrivesUpdate.ts b/src/funcs/fileStorageDrivesUpdate.ts index a55a6fa9..7953d395 100644 --- a/src/funcs/fileStorageDrivesUpdate.ts +++ b/src/funcs/fileStorageDrivesUpdate.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.drivesUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageFilesDelete.ts b/src/funcs/fileStorageFilesDelete.ts index 661f3083..4fc028ec 100644 --- a/src/funcs/fileStorageFilesDelete.ts +++ b/src/funcs/fileStorageFilesDelete.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.filesDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageFilesDownload.ts b/src/funcs/fileStorageFilesDownload.ts index c384cc89..2543e825 100644 --- a/src/funcs/fileStorageFilesDownload.ts +++ b/src/funcs/fileStorageFilesDownload.ts @@ -142,7 +142,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.filesDownload", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -155,7 +155,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageFilesExport.ts b/src/funcs/fileStorageFilesExport.ts index f5680a8e..34511334 100644 --- a/src/funcs/fileStorageFilesExport.ts +++ b/src/funcs/fileStorageFilesExport.ts @@ -143,7 +143,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.filesExport", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -156,7 +156,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageFilesGet.ts b/src/funcs/fileStorageFilesGet.ts index 54f0ddff..9296a2b7 100644 --- a/src/funcs/fileStorageFilesGet.ts +++ b/src/funcs/fileStorageFilesGet.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.filesOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageFilesList.ts b/src/funcs/fileStorageFilesList.ts index c4549694..e4d17e26 100644 --- a/src/funcs/fileStorageFilesList.ts +++ b/src/funcs/fileStorageFilesList.ts @@ -158,7 +158,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.filesAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -171,7 +171,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageFilesSearch.ts b/src/funcs/fileStorageFilesSearch.ts index 09ffd2cf..ca372fac 100644 --- a/src/funcs/fileStorageFilesSearch.ts +++ b/src/funcs/fileStorageFilesSearch.ts @@ -146,7 +146,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.filesSearch", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -159,7 +159,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageFilesUpdate.ts b/src/funcs/fileStorageFilesUpdate.ts index 20afd593..6aca6813 100644 --- a/src/funcs/fileStorageFilesUpdate.ts +++ b/src/funcs/fileStorageFilesUpdate.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.filesUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageFoldersCopy.ts b/src/funcs/fileStorageFoldersCopy.ts index 2ab12a37..47137c26 100644 --- a/src/funcs/fileStorageFoldersCopy.ts +++ b/src/funcs/fileStorageFoldersCopy.ts @@ -139,7 +139,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.foldersCopy", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -152,7 +152,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageFoldersCreate.ts b/src/funcs/fileStorageFoldersCreate.ts index dc6c08d2..c9d9f99c 100644 --- a/src/funcs/fileStorageFoldersCreate.ts +++ b/src/funcs/fileStorageFoldersCreate.ts @@ -134,7 +134,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.foldersAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -147,7 +147,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageFoldersDelete.ts b/src/funcs/fileStorageFoldersDelete.ts index 475ec6f5..4fc10eb6 100644 --- a/src/funcs/fileStorageFoldersDelete.ts +++ b/src/funcs/fileStorageFoldersDelete.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.foldersDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageFoldersGet.ts b/src/funcs/fileStorageFoldersGet.ts index 7c9f077e..f3bdc93f 100644 --- a/src/funcs/fileStorageFoldersGet.ts +++ b/src/funcs/fileStorageFoldersGet.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.foldersOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageFoldersUpdate.ts b/src/funcs/fileStorageFoldersUpdate.ts index b0ceeeaf..ad093946 100644 --- a/src/funcs/fileStorageFoldersUpdate.ts +++ b/src/funcs/fileStorageFoldersUpdate.ts @@ -140,7 +140,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.foldersUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -153,7 +153,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageSharedLinksCreate.ts b/src/funcs/fileStorageSharedLinksCreate.ts index 2135b3c5..0efab3b1 100644 --- a/src/funcs/fileStorageSharedLinksCreate.ts +++ b/src/funcs/fileStorageSharedLinksCreate.ts @@ -131,7 +131,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.sharedLinksAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -144,7 +144,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageSharedLinksDelete.ts b/src/funcs/fileStorageSharedLinksDelete.ts index afa12fed..e2c2c067 100644 --- a/src/funcs/fileStorageSharedLinksDelete.ts +++ b/src/funcs/fileStorageSharedLinksDelete.ts @@ -139,7 +139,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.sharedLinksDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -152,7 +152,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageSharedLinksGet.ts b/src/funcs/fileStorageSharedLinksGet.ts index 98bc73f8..bc2e4f5b 100644 --- a/src/funcs/fileStorageSharedLinksGet.ts +++ b/src/funcs/fileStorageSharedLinksGet.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.sharedLinksOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageSharedLinksList.ts b/src/funcs/fileStorageSharedLinksList.ts index bcf4181f..59207b83 100644 --- a/src/funcs/fileStorageSharedLinksList.ts +++ b/src/funcs/fileStorageSharedLinksList.ts @@ -156,7 +156,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.sharedLinksAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -169,7 +169,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageSharedLinksUpdate.ts b/src/funcs/fileStorageSharedLinksUpdate.ts index f96430f0..cb96ce01 100644 --- a/src/funcs/fileStorageSharedLinksUpdate.ts +++ b/src/funcs/fileStorageSharedLinksUpdate.ts @@ -140,7 +140,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.sharedLinksUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -153,7 +153,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageUploadSessionsCreate.ts b/src/funcs/fileStorageUploadSessionsCreate.ts index 8456d76c..5ff22412 100644 --- a/src/funcs/fileStorageUploadSessionsCreate.ts +++ b/src/funcs/fileStorageUploadSessionsCreate.ts @@ -141,7 +141,7 @@ async function $do( options: client._options, baseURL: baseURL ?? "", operationID: "fileStorage.uploadSessionsAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -154,7 +154,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageUploadSessionsDelete.ts b/src/funcs/fileStorageUploadSessionsDelete.ts index 5607fe0b..be007bf9 100644 --- a/src/funcs/fileStorageUploadSessionsDelete.ts +++ b/src/funcs/fileStorageUploadSessionsDelete.ts @@ -139,7 +139,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "fileStorage.uploadSessionsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -152,7 +152,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageUploadSessionsFinish.ts b/src/funcs/fileStorageUploadSessionsFinish.ts index cab32983..5cd2ab02 100644 --- a/src/funcs/fileStorageUploadSessionsFinish.ts +++ b/src/funcs/fileStorageUploadSessionsFinish.ts @@ -152,7 +152,7 @@ async function $do( options: client._options, baseURL: baseURL ?? "", operationID: "fileStorage.uploadSessionsFinish", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -165,7 +165,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageUploadSessionsGet.ts b/src/funcs/fileStorageUploadSessionsGet.ts index 49edf3a0..2bad4cbf 100644 --- a/src/funcs/fileStorageUploadSessionsGet.ts +++ b/src/funcs/fileStorageUploadSessionsGet.ts @@ -146,7 +146,7 @@ async function $do( options: client._options, baseURL: baseURL ?? "", operationID: "fileStorage.uploadSessionsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -159,7 +159,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/fileStorageUploadSessionsUpload.ts b/src/funcs/fileStorageUploadSessionsUpload.ts index eb445b1e..c060d12f 100644 --- a/src/funcs/fileStorageUploadSessionsUpload.ts +++ b/src/funcs/fileStorageUploadSessionsUpload.ts @@ -151,7 +151,7 @@ async function $do( options: client._options, baseURL: baseURL ?? "", operationID: "fileStorage.uploadSessionsUpload", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -164,7 +164,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisCompaniesCreate.ts b/src/funcs/hrisCompaniesCreate.ts index 5da07f3c..209c0580 100644 --- a/src/funcs/hrisCompaniesCreate.ts +++ b/src/funcs/hrisCompaniesCreate.ts @@ -130,7 +130,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.companiesAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -143,7 +143,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisCompaniesDelete.ts b/src/funcs/hrisCompaniesDelete.ts index 0d776555..096524d3 100644 --- a/src/funcs/hrisCompaniesDelete.ts +++ b/src/funcs/hrisCompaniesDelete.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.companiesDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisCompaniesGet.ts b/src/funcs/hrisCompaniesGet.ts index 135c01f1..17e4b340 100644 --- a/src/funcs/hrisCompaniesGet.ts +++ b/src/funcs/hrisCompaniesGet.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.companiesOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisCompaniesList.ts b/src/funcs/hrisCompaniesList.ts index 0c2af798..b24d24b0 100644 --- a/src/funcs/hrisCompaniesList.ts +++ b/src/funcs/hrisCompaniesList.ts @@ -155,7 +155,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.companiesAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -168,7 +168,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisCompaniesUpdate.ts b/src/funcs/hrisCompaniesUpdate.ts index c02ecdf0..66a79502 100644 --- a/src/funcs/hrisCompaniesUpdate.ts +++ b/src/funcs/hrisCompaniesUpdate.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.companiesUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisDepartmentsCreate.ts b/src/funcs/hrisDepartmentsCreate.ts index a64b2da3..92d74039 100644 --- a/src/funcs/hrisDepartmentsCreate.ts +++ b/src/funcs/hrisDepartmentsCreate.ts @@ -130,7 +130,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.departmentsAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -143,7 +143,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisDepartmentsDelete.ts b/src/funcs/hrisDepartmentsDelete.ts index 553071e0..2dbaa458 100644 --- a/src/funcs/hrisDepartmentsDelete.ts +++ b/src/funcs/hrisDepartmentsDelete.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.departmentsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisDepartmentsGet.ts b/src/funcs/hrisDepartmentsGet.ts index 843cc62a..d81791b9 100644 --- a/src/funcs/hrisDepartmentsGet.ts +++ b/src/funcs/hrisDepartmentsGet.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.departmentsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisDepartmentsList.ts b/src/funcs/hrisDepartmentsList.ts index 69eb9538..8bb7c538 100644 --- a/src/funcs/hrisDepartmentsList.ts +++ b/src/funcs/hrisDepartmentsList.ts @@ -155,7 +155,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.departmentsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -168,7 +168,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisDepartmentsUpdate.ts b/src/funcs/hrisDepartmentsUpdate.ts index abaf2319..708983cd 100644 --- a/src/funcs/hrisDepartmentsUpdate.ts +++ b/src/funcs/hrisDepartmentsUpdate.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.departmentsUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisEmployeePayrollsGet.ts b/src/funcs/hrisEmployeePayrollsGet.ts index 3afa5bb4..2d0eedc3 100644 --- a/src/funcs/hrisEmployeePayrollsGet.ts +++ b/src/funcs/hrisEmployeePayrollsGet.ts @@ -144,7 +144,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.employeePayrollsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -157,7 +157,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisEmployeePayrollsList.ts b/src/funcs/hrisEmployeePayrollsList.ts index 6cd4ac21..43ff266b 100644 --- a/src/funcs/hrisEmployeePayrollsList.ts +++ b/src/funcs/hrisEmployeePayrollsList.ts @@ -149,7 +149,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.employeePayrollsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -162,7 +162,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisEmployeeSchedulesList.ts b/src/funcs/hrisEmployeeSchedulesList.ts index fd372d81..c66ce7db 100644 --- a/src/funcs/hrisEmployeeSchedulesList.ts +++ b/src/funcs/hrisEmployeeSchedulesList.ts @@ -150,7 +150,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.employeeSchedulesAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -163,7 +163,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisEmployeesCreate.ts b/src/funcs/hrisEmployeesCreate.ts index 9b20d16f..fbd5d4ed 100644 --- a/src/funcs/hrisEmployeesCreate.ts +++ b/src/funcs/hrisEmployeesCreate.ts @@ -130,7 +130,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.employeesAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -143,7 +143,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisEmployeesDelete.ts b/src/funcs/hrisEmployeesDelete.ts index df565e92..61f347a8 100644 --- a/src/funcs/hrisEmployeesDelete.ts +++ b/src/funcs/hrisEmployeesDelete.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.employeesDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisEmployeesGet.ts b/src/funcs/hrisEmployeesGet.ts index 6f8dbb72..8439321e 100644 --- a/src/funcs/hrisEmployeesGet.ts +++ b/src/funcs/hrisEmployeesGet.ts @@ -148,7 +148,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.employeesOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -161,7 +161,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisEmployeesList.ts b/src/funcs/hrisEmployeesList.ts index 8c7dba4f..a0b20b5e 100644 --- a/src/funcs/hrisEmployeesList.ts +++ b/src/funcs/hrisEmployeesList.ts @@ -157,7 +157,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.employeesAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -170,7 +170,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisEmployeesUpdate.ts b/src/funcs/hrisEmployeesUpdate.ts index 46848be9..18478d2f 100644 --- a/src/funcs/hrisEmployeesUpdate.ts +++ b/src/funcs/hrisEmployeesUpdate.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.employeesUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisPayrollsGet.ts b/src/funcs/hrisPayrollsGet.ts index 63962a28..22311cf9 100644 --- a/src/funcs/hrisPayrollsGet.ts +++ b/src/funcs/hrisPayrollsGet.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.payrollsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisPayrollsList.ts b/src/funcs/hrisPayrollsList.ts index e9e6e33f..4863288b 100644 --- a/src/funcs/hrisPayrollsList.ts +++ b/src/funcs/hrisPayrollsList.ts @@ -141,7 +141,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.payrollsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -154,7 +154,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisTimeOffRequestsCreate.ts b/src/funcs/hrisTimeOffRequestsCreate.ts index 1664f1d2..f03c5ecf 100644 --- a/src/funcs/hrisTimeOffRequestsCreate.ts +++ b/src/funcs/hrisTimeOffRequestsCreate.ts @@ -131,7 +131,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.timeOffRequestsAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -144,7 +144,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisTimeOffRequestsDelete.ts b/src/funcs/hrisTimeOffRequestsDelete.ts index 7cc1725d..9a5d9d65 100644 --- a/src/funcs/hrisTimeOffRequestsDelete.ts +++ b/src/funcs/hrisTimeOffRequestsDelete.ts @@ -143,7 +143,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.timeOffRequestsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -156,7 +156,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisTimeOffRequestsGet.ts b/src/funcs/hrisTimeOffRequestsGet.ts index 562f8f9d..fe1206ea 100644 --- a/src/funcs/hrisTimeOffRequestsGet.ts +++ b/src/funcs/hrisTimeOffRequestsGet.ts @@ -144,7 +144,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.timeOffRequestsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -157,7 +157,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisTimeOffRequestsList.ts b/src/funcs/hrisTimeOffRequestsList.ts index aaf05f7e..2568fa43 100644 --- a/src/funcs/hrisTimeOffRequestsList.ts +++ b/src/funcs/hrisTimeOffRequestsList.ts @@ -157,7 +157,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.timeOffRequestsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -170,7 +170,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/hrisTimeOffRequestsUpdate.ts b/src/funcs/hrisTimeOffRequestsUpdate.ts index 647981c8..c0f7fb60 100644 --- a/src/funcs/hrisTimeOffRequestsUpdate.ts +++ b/src/funcs/hrisTimeOffRequestsUpdate.ts @@ -144,7 +144,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "hris.timeOffRequestsUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -157,7 +157,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/issueTrackingCollectionTagsList.ts b/src/funcs/issueTrackingCollectionTagsList.ts index 5d5a0a2f..2f0db074 100644 --- a/src/funcs/issueTrackingCollectionTagsList.ts +++ b/src/funcs/issueTrackingCollectionTagsList.ts @@ -167,7 +167,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "issueTracking.collectionTagsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -180,7 +180,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/issueTrackingCollectionTicketCommentsCreate.ts b/src/funcs/issueTrackingCollectionTicketCommentsCreate.ts index fcd0cbb6..015bf6e3 100644 --- a/src/funcs/issueTrackingCollectionTicketCommentsCreate.ts +++ b/src/funcs/issueTrackingCollectionTicketCommentsCreate.ts @@ -147,7 +147,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "issueTracking.collectionTicketCommentsAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -160,7 +160,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/issueTrackingCollectionTicketCommentsDelete.ts b/src/funcs/issueTrackingCollectionTicketCommentsDelete.ts index a8b76d1a..49c50dc5 100644 --- a/src/funcs/issueTrackingCollectionTicketCommentsDelete.ts +++ b/src/funcs/issueTrackingCollectionTicketCommentsDelete.ts @@ -149,7 +149,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "issueTracking.collectionTicketCommentsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -162,7 +162,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/issueTrackingCollectionTicketCommentsGet.ts b/src/funcs/issueTrackingCollectionTicketCommentsGet.ts index 22eb2173..3efcaa80 100644 --- a/src/funcs/issueTrackingCollectionTicketCommentsGet.ts +++ b/src/funcs/issueTrackingCollectionTicketCommentsGet.ts @@ -164,7 +164,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "issueTracking.collectionTicketCommentsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -177,7 +177,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/issueTrackingCollectionTicketCommentsList.ts b/src/funcs/issueTrackingCollectionTicketCommentsList.ts index 8a194e93..06276c84 100644 --- a/src/funcs/issueTrackingCollectionTicketCommentsList.ts +++ b/src/funcs/issueTrackingCollectionTicketCommentsList.ts @@ -171,7 +171,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "issueTracking.collectionTicketCommentsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -184,7 +184,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/issueTrackingCollectionTicketCommentsUpdate.ts b/src/funcs/issueTrackingCollectionTicketCommentsUpdate.ts index 4429fe67..65a56fd2 100644 --- a/src/funcs/issueTrackingCollectionTicketCommentsUpdate.ts +++ b/src/funcs/issueTrackingCollectionTicketCommentsUpdate.ts @@ -152,7 +152,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "issueTracking.collectionTicketCommentsUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -165,7 +165,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/issueTrackingCollectionTicketsCreate.ts b/src/funcs/issueTrackingCollectionTicketsCreate.ts index ae30fe9a..3f97d068 100644 --- a/src/funcs/issueTrackingCollectionTicketsCreate.ts +++ b/src/funcs/issueTrackingCollectionTicketsCreate.ts @@ -142,7 +142,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "issueTracking.collectionTicketsAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -155,7 +155,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/issueTrackingCollectionTicketsDelete.ts b/src/funcs/issueTrackingCollectionTicketsDelete.ts index f097eb29..e48bdd73 100644 --- a/src/funcs/issueTrackingCollectionTicketsDelete.ts +++ b/src/funcs/issueTrackingCollectionTicketsDelete.ts @@ -144,7 +144,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "issueTracking.collectionTicketsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -157,7 +157,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/issueTrackingCollectionTicketsGet.ts b/src/funcs/issueTrackingCollectionTicketsGet.ts index 74b28436..eb525033 100644 --- a/src/funcs/issueTrackingCollectionTicketsGet.ts +++ b/src/funcs/issueTrackingCollectionTicketsGet.ts @@ -146,7 +146,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "issueTracking.collectionTicketsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -159,7 +159,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/issueTrackingCollectionTicketsList.ts b/src/funcs/issueTrackingCollectionTicketsList.ts index ad8ecde9..c361c0d0 100644 --- a/src/funcs/issueTrackingCollectionTicketsList.ts +++ b/src/funcs/issueTrackingCollectionTicketsList.ts @@ -169,7 +169,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "issueTracking.collectionTicketsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -182,7 +182,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/issueTrackingCollectionTicketsUpdate.ts b/src/funcs/issueTrackingCollectionTicketsUpdate.ts index 85d00a5d..a796fe31 100644 --- a/src/funcs/issueTrackingCollectionTicketsUpdate.ts +++ b/src/funcs/issueTrackingCollectionTicketsUpdate.ts @@ -145,7 +145,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "issueTracking.collectionTicketsUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -158,7 +158,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/issueTrackingCollectionUsersGet.ts b/src/funcs/issueTrackingCollectionUsersGet.ts index 7087322c..28ad0c40 100644 --- a/src/funcs/issueTrackingCollectionUsersGet.ts +++ b/src/funcs/issueTrackingCollectionUsersGet.ts @@ -146,7 +146,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "issueTracking.collectionUsersOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -159,7 +159,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/issueTrackingCollectionUsersList.ts b/src/funcs/issueTrackingCollectionUsersList.ts index 1e01e480..fe0b783b 100644 --- a/src/funcs/issueTrackingCollectionUsersList.ts +++ b/src/funcs/issueTrackingCollectionUsersList.ts @@ -167,7 +167,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "issueTracking.collectionUsersAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -180,7 +180,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/issueTrackingCollectionsGet.ts b/src/funcs/issueTrackingCollectionsGet.ts index fa954818..2056c368 100644 --- a/src/funcs/issueTrackingCollectionsGet.ts +++ b/src/funcs/issueTrackingCollectionsGet.ts @@ -140,7 +140,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "issueTracking.collectionsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -153,7 +153,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/issueTrackingCollectionsList.ts b/src/funcs/issueTrackingCollectionsList.ts index afeb6c9c..ddedf216 100644 --- a/src/funcs/issueTrackingCollectionsList.ts +++ b/src/funcs/issueTrackingCollectionsList.ts @@ -157,7 +157,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "issueTracking.collectionsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -170,7 +170,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/smsMessagesCreate.ts b/src/funcs/smsMessagesCreate.ts index f407f594..55be119e 100644 --- a/src/funcs/smsMessagesCreate.ts +++ b/src/funcs/smsMessagesCreate.ts @@ -130,7 +130,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "sms.messagesAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -143,7 +143,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/smsMessagesDelete.ts b/src/funcs/smsMessagesDelete.ts index bfa26066..34e0d2b8 100644 --- a/src/funcs/smsMessagesDelete.ts +++ b/src/funcs/smsMessagesDelete.ts @@ -136,7 +136,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "sms.messagesDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -149,7 +149,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/smsMessagesGet.ts b/src/funcs/smsMessagesGet.ts index 81ae9911..4a2993bb 100644 --- a/src/funcs/smsMessagesGet.ts +++ b/src/funcs/smsMessagesGet.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "sms.messagesOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/smsMessagesList.ts b/src/funcs/smsMessagesList.ts index 3db33a75..7c0ca953 100644 --- a/src/funcs/smsMessagesList.ts +++ b/src/funcs/smsMessagesList.ts @@ -145,7 +145,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "sms.messagesAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -158,7 +158,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/smsMessagesUpdate.ts b/src/funcs/smsMessagesUpdate.ts index 7b0b38d6..957e258a 100644 --- a/src/funcs/smsMessagesUpdate.ts +++ b/src/funcs/smsMessagesUpdate.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "sms.messagesUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultConnectionConsentUpdate.ts b/src/funcs/vaultConnectionConsentUpdate.ts index 95e110a6..f2972c61 100644 --- a/src/funcs/vaultConnectionConsentUpdate.ts +++ b/src/funcs/vaultConnectionConsentUpdate.ts @@ -139,7 +139,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.connectionConsentUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -152,7 +152,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultConnectionConsentsList.ts b/src/funcs/vaultConnectionConsentsList.ts index ec45ddee..84b34fb8 100644 --- a/src/funcs/vaultConnectionConsentsList.ts +++ b/src/funcs/vaultConnectionConsentsList.ts @@ -134,7 +134,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.connectionConsentsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -147,7 +147,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultConnectionCustomMappingsList.ts b/src/funcs/vaultConnectionCustomMappingsList.ts index 75c05295..c7fbbce2 100644 --- a/src/funcs/vaultConnectionCustomMappingsList.ts +++ b/src/funcs/vaultConnectionCustomMappingsList.ts @@ -144,7 +144,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.connectionCustomMappingsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -157,7 +157,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultConnectionSettingsList.ts b/src/funcs/vaultConnectionSettingsList.ts index 1b857018..cdaa15e1 100644 --- a/src/funcs/vaultConnectionSettingsList.ts +++ b/src/funcs/vaultConnectionSettingsList.ts @@ -138,7 +138,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.connectionSettingsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -151,7 +151,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultConnectionSettingsUpdate.ts b/src/funcs/vaultConnectionSettingsUpdate.ts index 91efc1a9..c56506ff 100644 --- a/src/funcs/vaultConnectionSettingsUpdate.ts +++ b/src/funcs/vaultConnectionSettingsUpdate.ts @@ -141,7 +141,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.connectionSettingsUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -154,7 +154,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultConnectionsDelete.ts b/src/funcs/vaultConnectionsDelete.ts index ce1ce154..05c27d0a 100644 --- a/src/funcs/vaultConnectionsDelete.ts +++ b/src/funcs/vaultConnectionsDelete.ts @@ -134,7 +134,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.connectionsDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -147,7 +147,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultConnectionsGet.ts b/src/funcs/vaultConnectionsGet.ts index 6548f793..eac6d16b 100644 --- a/src/funcs/vaultConnectionsGet.ts +++ b/src/funcs/vaultConnectionsGet.ts @@ -134,7 +134,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.connectionsOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -147,7 +147,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultConnectionsImports.ts b/src/funcs/vaultConnectionsImports.ts index 02811b87..ed4cecdf 100644 --- a/src/funcs/vaultConnectionsImports.ts +++ b/src/funcs/vaultConnectionsImports.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.connectionsImport", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultConnectionsList.ts b/src/funcs/vaultConnectionsList.ts index 4e2d62aa..12bf8606 100644 --- a/src/funcs/vaultConnectionsList.ts +++ b/src/funcs/vaultConnectionsList.ts @@ -128,7 +128,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.connectionsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -141,7 +141,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultConnectionsToken.ts b/src/funcs/vaultConnectionsToken.ts index 9aee89b8..73acd538 100644 --- a/src/funcs/vaultConnectionsToken.ts +++ b/src/funcs/vaultConnectionsToken.ts @@ -140,7 +140,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.connectionsToken", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -153,7 +153,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultConnectionsUpdate.ts b/src/funcs/vaultConnectionsUpdate.ts index 3d8212af..18d12915 100644 --- a/src/funcs/vaultConnectionsUpdate.ts +++ b/src/funcs/vaultConnectionsUpdate.ts @@ -135,7 +135,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.connectionsUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -148,7 +148,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultConsumerRequestCountsList.ts b/src/funcs/vaultConsumerRequestCountsList.ts index dd49b7cf..1e60167c 100644 --- a/src/funcs/vaultConsumerRequestCountsList.ts +++ b/src/funcs/vaultConsumerRequestCountsList.ts @@ -130,7 +130,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.consumerRequestCountsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -143,7 +143,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultConsumersCreate.ts b/src/funcs/vaultConsumersCreate.ts index 4bcf9351..cf10c455 100644 --- a/src/funcs/vaultConsumersCreate.ts +++ b/src/funcs/vaultConsumersCreate.ts @@ -118,7 +118,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.consumersAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -131,7 +131,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultConsumersDelete.ts b/src/funcs/vaultConsumersDelete.ts index 7e25048e..d792b8b2 100644 --- a/src/funcs/vaultConsumersDelete.ts +++ b/src/funcs/vaultConsumersDelete.ts @@ -123,7 +123,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.consumersDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -136,7 +136,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultConsumersGet.ts b/src/funcs/vaultConsumersGet.ts index d95f1c67..1a79071e 100644 --- a/src/funcs/vaultConsumersGet.ts +++ b/src/funcs/vaultConsumersGet.ts @@ -122,7 +122,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.consumersOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -135,7 +135,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultConsumersList.ts b/src/funcs/vaultConsumersList.ts index 6bbe1cd0..47f990df 100644 --- a/src/funcs/vaultConsumersList.ts +++ b/src/funcs/vaultConsumersList.ts @@ -133,7 +133,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.consumersAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -146,7 +146,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultConsumersUpdate.ts b/src/funcs/vaultConsumersUpdate.ts index fab4ac92..eec8360d 100644 --- a/src/funcs/vaultConsumersUpdate.ts +++ b/src/funcs/vaultConsumersUpdate.ts @@ -126,7 +126,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.consumersUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -139,7 +139,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultCreateCallbackState.ts b/src/funcs/vaultCreateCallbackState.ts index 27991085..d94bd1ee 100644 --- a/src/funcs/vaultCreateCallbackState.ts +++ b/src/funcs/vaultCreateCallbackState.ts @@ -137,7 +137,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.createCallbackState", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -150,7 +150,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultCustomFieldsList.ts b/src/funcs/vaultCustomFieldsList.ts index 5235ae36..396313df 100644 --- a/src/funcs/vaultCustomFieldsList.ts +++ b/src/funcs/vaultCustomFieldsList.ts @@ -142,7 +142,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.customFieldsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -155,7 +155,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultCustomMappingsList.ts b/src/funcs/vaultCustomMappingsList.ts index 17969b3f..73836728 100644 --- a/src/funcs/vaultCustomMappingsList.ts +++ b/src/funcs/vaultCustomMappingsList.ts @@ -134,7 +134,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.customMappingsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -147,7 +147,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultLogsList.ts b/src/funcs/vaultLogsList.ts index d2183e59..963f9ba1 100644 --- a/src/funcs/vaultLogsList.ts +++ b/src/funcs/vaultLogsList.ts @@ -148,7 +148,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.logsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -161,7 +161,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultSessionsCreate.ts b/src/funcs/vaultSessionsCreate.ts index ccb8cfbf..bfb73114 100644 --- a/src/funcs/vaultSessionsCreate.ts +++ b/src/funcs/vaultSessionsCreate.ts @@ -125,7 +125,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.sessionsCreate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -138,7 +138,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/vaultValidateConnectionState.ts b/src/funcs/vaultValidateConnectionState.ts index a4180327..8b267d9e 100644 --- a/src/funcs/vaultValidateConnectionState.ts +++ b/src/funcs/vaultValidateConnectionState.ts @@ -142,7 +142,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "vault.validateConnectionState", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -155,7 +155,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/webhookEventLogsList.ts b/src/funcs/webhookEventLogsList.ts index 8f2bc86b..408a5719 100644 --- a/src/funcs/webhookEventLogsList.ts +++ b/src/funcs/webhookEventLogsList.ts @@ -144,7 +144,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "webhook.eventLogsAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -157,7 +157,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/webhookWebhooksCreate.ts b/src/funcs/webhookWebhooksCreate.ts index 1d88ee22..b203a193 100644 --- a/src/funcs/webhookWebhooksCreate.ts +++ b/src/funcs/webhookWebhooksCreate.ts @@ -118,7 +118,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "webhook.webhooksAdd", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -131,7 +131,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/webhookWebhooksDelete.ts b/src/funcs/webhookWebhooksDelete.ts index 1e733592..825d4a81 100644 --- a/src/funcs/webhookWebhooksDelete.ts +++ b/src/funcs/webhookWebhooksDelete.ts @@ -123,7 +123,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "webhook.webhooksDelete", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -136,7 +136,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/webhookWebhooksGet.ts b/src/funcs/webhookWebhooksGet.ts index b57bec64..95b74441 100644 --- a/src/funcs/webhookWebhooksGet.ts +++ b/src/funcs/webhookWebhooksGet.ts @@ -122,7 +122,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "webhook.webhooksOne", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -135,7 +135,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/webhookWebhooksList.ts b/src/funcs/webhookWebhooksList.ts index 68e0348f..4350725d 100644 --- a/src/funcs/webhookWebhooksList.ts +++ b/src/funcs/webhookWebhooksList.ts @@ -133,7 +133,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "webhook.webhooksAll", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -146,7 +146,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/funcs/webhookWebhooksUpdate.ts b/src/funcs/webhookWebhooksUpdate.ts index 5121a582..8d6baf49 100644 --- a/src/funcs/webhookWebhooksUpdate.ts +++ b/src/funcs/webhookWebhooksUpdate.ts @@ -126,7 +126,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "webhook.webhooksUpdate", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -139,7 +139,7 @@ async function $do( initialInterval: 500, maxInterval: 60000, exponent: 1.5, - maxElapsedTime: 3600000, + maxElapsedTime: 900000, }, retryConnectionErrors: true, } diff --git a/src/lib/config.ts b/src/lib/config.ts index 7d23bfd6..4e276eec 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -67,8 +67,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", - openapiDocVersion: "10.20.16", - sdkVersion: "0.29.9", - genVersion: "2.709.0", - userAgent: "speakeasy-sdk/typescript 0.29.9 2.709.0 10.20.16 @apideck/unify", + openapiDocVersion: "10.21.4", + sdkVersion: "0.30.0", + genVersion: "2.723.11", + userAgent: "speakeasy-sdk/typescript 0.30.0 2.723.11 10.21.4 @apideck/unify", } as const; diff --git a/src/lib/url.ts b/src/lib/url.ts index 6bc6356e..f3a8de6c 100644 --- a/src/lib/url.ts +++ b/src/lib/url.ts @@ -10,7 +10,7 @@ export function pathToFunc( pathPattern: string, options?: { charEncoding?: "percent" | "none" }, ): (params?: Params) => string { - const paramRE = /\{([a-zA-Z0-9_]+?)\}/g; + const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g; return function buildURLPath(params: Record = {}): string { return pathPattern.replace(paramRE, function (_, placeholder) { diff --git a/src/models/components/address.ts b/src/models/components/address.ts index b9863122..6f952cad 100644 --- a/src/models/components/address.ts +++ b/src/models/components/address.ts @@ -60,6 +60,10 @@ export type Address = { * Line 4 of the address */ line4?: string | null | undefined; + /** + * Line 5 of the address + */ + line5?: string | null | undefined; /** * Street number */ @@ -157,6 +161,7 @@ export const Address$inboundSchema: z.ZodType = line2: z.nullable(z.string()).optional(), line3: z.nullable(z.string()).optional(), line4: z.nullable(z.string()).optional(), + line5: z.nullable(z.string()).optional(), street_number: z.nullable(z.string()).optional(), city: z.nullable(z.string()).optional(), state: z.nullable(z.string()).optional(), @@ -193,6 +198,7 @@ export type Address$Outbound = { line2?: string | null | undefined; line3?: string | null | undefined; line4?: string | null | undefined; + line5?: string | null | undefined; street_number?: string | null | undefined; city?: string | null | undefined; state?: string | null | undefined; @@ -225,6 +231,7 @@ export const Address$outboundSchema: z.ZodType< line2: z.nullable(z.string()).optional(), line3: z.nullable(z.string()).optional(), line4: z.nullable(z.string()).optional(), + line5: z.nullable(z.string()).optional(), streetNumber: z.nullable(z.string()).optional(), city: z.nullable(z.string()).optional(), state: z.nullable(z.string()).optional(), diff --git a/src/models/components/balancebytransaction.ts b/src/models/components/balancebytransaction.ts index 959f5e3e..9ae63d4c 100644 --- a/src/models/components/balancebytransaction.ts +++ b/src/models/components/balancebytransaction.ts @@ -13,7 +13,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Type of the transaction. */ -export const TransactionType = { +export const BalanceByTransactionTransactionType = { Invoice: "invoice", CreditNote: "credit_note", Bill: "bill", @@ -23,7 +23,9 @@ export const TransactionType = { /** * Type of the transaction. */ -export type TransactionType = ClosedEnum; +export type BalanceByTransactionTransactionType = ClosedEnum< + typeof BalanceByTransactionTransactionType +>; export type BalanceByTransaction = { /** @@ -37,7 +39,7 @@ export type BalanceByTransaction = { /** * Type of the transaction. */ - transactionType?: TransactionType | undefined; + transactionType?: BalanceByTransactionTransactionType | undefined; /** * Due date of the transaction. */ @@ -57,24 +59,26 @@ export type BalanceByTransaction = { }; /** @internal */ -export const TransactionType$inboundSchema: z.ZodNativeEnum< - typeof TransactionType -> = z.nativeEnum(TransactionType); +export const BalanceByTransactionTransactionType$inboundSchema: z.ZodNativeEnum< + typeof BalanceByTransactionTransactionType +> = z.nativeEnum(BalanceByTransactionTransactionType); /** @internal */ -export const TransactionType$outboundSchema: z.ZodNativeEnum< - typeof TransactionType -> = TransactionType$inboundSchema; +export const BalanceByTransactionTransactionType$outboundSchema: + z.ZodNativeEnum = + BalanceByTransactionTransactionType$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace TransactionType$ { - /** @deprecated use `TransactionType$inboundSchema` instead. */ - export const inboundSchema = TransactionType$inboundSchema; - /** @deprecated use `TransactionType$outboundSchema` instead. */ - export const outboundSchema = TransactionType$outboundSchema; +export namespace BalanceByTransactionTransactionType$ { + /** @deprecated use `BalanceByTransactionTransactionType$inboundSchema` instead. */ + export const inboundSchema = + BalanceByTransactionTransactionType$inboundSchema; + /** @deprecated use `BalanceByTransactionTransactionType$outboundSchema` instead. */ + export const outboundSchema = + BalanceByTransactionTransactionType$outboundSchema; } /** @internal */ @@ -85,7 +89,8 @@ export const BalanceByTransaction$inboundSchema: z.ZodType< > = z.object({ transaction_id: z.string().optional(), transaction_date: z.string().transform(v => new RFCDate(v)).optional(), - transaction_type: TransactionType$inboundSchema.optional(), + transaction_type: BalanceByTransactionTransactionType$inboundSchema + .optional(), due_date: z.string().transform(v => new RFCDate(v)).optional(), original_amount: z.number().optional(), outstanding_balance: z.number().optional(), @@ -122,7 +127,8 @@ export const BalanceByTransaction$outboundSchema: z.ZodType< transactionId: z.string().optional(), transactionDate: z.instanceof(RFCDate).transform(v => v.toString()) .optional(), - transactionType: TransactionType$outboundSchema.optional(), + transactionType: BalanceByTransactionTransactionType$outboundSchema + .optional(), dueDate: z.instanceof(RFCDate).transform(v => v.toString()).optional(), originalAmount: z.number().optional(), outstandingBalance: z.number().optional(), diff --git a/src/models/components/categoriesfilter.ts b/src/models/components/categoriesfilter.ts index b7d7c6cb..33679c2f 100644 --- a/src/models/components/categoriesfilter.ts +++ b/src/models/components/categoriesfilter.ts @@ -15,6 +15,7 @@ export const CategoriesFilterType = { Supplier: "supplier", Expense: "expense", Revenue: "revenue", + Customer: "customer", } as const; /** * The type of the category. diff --git a/src/models/components/category.ts b/src/models/components/category.ts index 5bf8ea5c..cfef295a 100644 --- a/src/models/components/category.ts +++ b/src/models/components/category.ts @@ -22,6 +22,7 @@ export const CategoryType = { Supplier: "supplier", Expense: "expense", Revenue: "revenue", + Customer: "customer", } as const; /** * The type of the category. diff --git a/src/models/components/createprojectresponse.ts b/src/models/components/createprojectresponse.ts new file mode 100644 index 00000000..23874d3c --- /dev/null +++ b/src/models/components/createprojectresponse.ts @@ -0,0 +1,122 @@ +/* + * 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 { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + UnifiedId, + UnifiedId$inboundSchema, + UnifiedId$Outbound, + UnifiedId$outboundSchema, +} from "./unifiedid.js"; + +/** + * Projects + */ +export type CreateProjectResponse = { + /** + * HTTP Response Status Code + */ + statusCode: number; + /** + * HTTP Response Status + */ + status: string; + /** + * Apideck ID of service provider + */ + service: string; + /** + * Unified API resource name + */ + resource: string; + /** + * Operation performed + */ + operation: string; + /** + * A object containing a unique identifier for the resource that was created, updated, or deleted. + */ + data: UnifiedId; +}; + +/** @internal */ +export const CreateProjectResponse$inboundSchema: z.ZodType< + CreateProjectResponse, + z.ZodTypeDef, + unknown +> = z.object({ + status_code: z.number().int(), + status: z.string(), + service: z.string(), + resource: z.string(), + operation: z.string(), + data: UnifiedId$inboundSchema, +}).transform((v) => { + return remap$(v, { + "status_code": "statusCode", + }); +}); + +/** @internal */ +export type CreateProjectResponse$Outbound = { + status_code: number; + status: string; + service: string; + resource: string; + operation: string; + data: UnifiedId$Outbound; +}; + +/** @internal */ +export const CreateProjectResponse$outboundSchema: z.ZodType< + CreateProjectResponse$Outbound, + z.ZodTypeDef, + CreateProjectResponse +> = z.object({ + statusCode: z.number().int(), + status: z.string(), + service: z.string(), + resource: z.string(), + operation: z.string(), + data: UnifiedId$outboundSchema, +}).transform((v) => { + return remap$(v, { + statusCode: "status_code", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CreateProjectResponse$ { + /** @deprecated use `CreateProjectResponse$inboundSchema` instead. */ + export const inboundSchema = CreateProjectResponse$inboundSchema; + /** @deprecated use `CreateProjectResponse$outboundSchema` instead. */ + export const outboundSchema = CreateProjectResponse$outboundSchema; + /** @deprecated use `CreateProjectResponse$Outbound` instead. */ + export type Outbound = CreateProjectResponse$Outbound; +} + +export function createProjectResponseToJSON( + createProjectResponse: CreateProjectResponse, +): string { + return JSON.stringify( + CreateProjectResponse$outboundSchema.parse(createProjectResponse), + ); +} + +export function createProjectResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateProjectResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateProjectResponse' from JSON`, + ); +} diff --git a/src/models/components/customer.ts b/src/models/components/customer.ts index 56483bb5..9bb0dcc0 100644 --- a/src/models/components/customer.ts +++ b/src/models/components/customer.ts @@ -126,6 +126,10 @@ export type Customer = { * The company ID the transaction belongs to */ companyId?: string | null | undefined; + /** + * The category/type of the customer + */ + customerCategory?: string | null | undefined; /** * The job title of the person. */ @@ -179,6 +183,10 @@ export type Customer = { * Payment method used for the transaction, such as cash, credit card, bank transfer, or check */ paymentMethod?: string | null | undefined; + /** + * Terms of payment. + */ + terms?: string | null | undefined; /** * The channel through which the transaction is processed. */ @@ -231,6 +239,10 @@ export type CustomerInput = { * The company ID the transaction belongs to */ companyId?: string | null | undefined; + /** + * The category/type of the customer + */ + customerCategory?: string | null | undefined; /** * The job title of the person. */ @@ -284,6 +296,10 @@ export type CustomerInput = { * Payment method used for the transaction, such as cash, credit card, bank transfer, or check */ paymentMethod?: string | null | undefined; + /** + * Terms of payment. + */ + terms?: string | null | undefined; /** * The channel through which the transaction is processed. */ @@ -332,6 +348,7 @@ export const Customer$inboundSchema: z.ZodType< display_name: z.nullable(z.string()).optional(), company_name: z.nullable(z.string()).optional(), company_id: z.nullable(z.string()).optional(), + customer_category: z.nullable(z.string()).optional(), title: z.nullable(z.string()).optional(), first_name: z.nullable(z.string()).optional(), middle_name: z.nullable(z.string()).optional(), @@ -352,6 +369,7 @@ export const Customer$inboundSchema: z.ZodType< parent: z.nullable(LinkedParentCustomer$inboundSchema).optional(), status: z.nullable(CustomerStatusStatus$inboundSchema).optional(), payment_method: z.nullable(z.string()).optional(), + terms: z.nullable(z.string()).optional(), channel: z.nullable(z.string()).optional(), custom_fields: z.array(CustomField$inboundSchema).optional(), custom_mappings: z.nullable(z.record(z.any())).optional(), @@ -372,6 +390,7 @@ export const Customer$inboundSchema: z.ZodType< "display_name": "displayName", "company_name": "companyName", "company_id": "companyId", + "customer_category": "customerCategory", "first_name": "firstName", "middle_name": "middleName", "last_name": "lastName", @@ -399,6 +418,7 @@ export type Customer$Outbound = { display_name?: string | null | undefined; company_name?: string | null | undefined; company_id?: string | null | undefined; + customer_category?: string | null | undefined; title?: string | null | undefined; first_name?: string | null | undefined; middle_name?: string | null | undefined; @@ -419,6 +439,7 @@ export type Customer$Outbound = { parent?: LinkedParentCustomer$Outbound | null | undefined; status?: string | null | undefined; payment_method?: string | null | undefined; + terms?: string | null | undefined; channel?: string | null | undefined; custom_fields?: Array | undefined; custom_mappings?: { [k: string]: any } | null | undefined; @@ -442,6 +463,7 @@ export const Customer$outboundSchema: z.ZodType< displayName: z.nullable(z.string()).optional(), companyName: z.nullable(z.string()).optional(), companyId: z.nullable(z.string()).optional(), + customerCategory: z.nullable(z.string()).optional(), title: z.nullable(z.string()).optional(), firstName: z.nullable(z.string()).optional(), middleName: z.nullable(z.string()).optional(), @@ -462,6 +484,7 @@ export const Customer$outboundSchema: z.ZodType< parent: z.nullable(LinkedParentCustomer$outboundSchema).optional(), status: z.nullable(CustomerStatusStatus$outboundSchema).optional(), paymentMethod: z.nullable(z.string()).optional(), + terms: z.nullable(z.string()).optional(), channel: z.nullable(z.string()).optional(), customFields: z.array(CustomField$outboundSchema).optional(), customMappings: z.nullable(z.record(z.any())).optional(), @@ -478,6 +501,7 @@ export const Customer$outboundSchema: z.ZodType< displayName: "display_name", companyName: "company_name", companyId: "company_id", + customerCategory: "customer_category", firstName: "first_name", middleName: "middle_name", lastName: "last_name", @@ -534,6 +558,7 @@ export const CustomerInput$inboundSchema: z.ZodType< display_name: z.nullable(z.string()).optional(), company_name: z.nullable(z.string()).optional(), company_id: z.nullable(z.string()).optional(), + customer_category: z.nullable(z.string()).optional(), title: z.nullable(z.string()).optional(), first_name: z.nullable(z.string()).optional(), middle_name: z.nullable(z.string()).optional(), @@ -554,6 +579,7 @@ export const CustomerInput$inboundSchema: z.ZodType< parent: z.nullable(LinkedParentCustomer$inboundSchema).optional(), status: z.nullable(CustomerStatusStatus$inboundSchema).optional(), payment_method: z.nullable(z.string()).optional(), + terms: z.nullable(z.string()).optional(), channel: z.nullable(z.string()).optional(), custom_fields: z.array(CustomField$inboundSchema).optional(), row_version: z.nullable(z.string()).optional(), @@ -564,6 +590,7 @@ export const CustomerInput$inboundSchema: z.ZodType< "display_name": "displayName", "company_name": "companyName", "company_id": "companyId", + "customer_category": "customerCategory", "first_name": "firstName", "middle_name": "middleName", "last_name": "lastName", @@ -584,6 +611,7 @@ export type CustomerInput$Outbound = { display_name?: string | null | undefined; company_name?: string | null | undefined; company_id?: string | null | undefined; + customer_category?: string | null | undefined; title?: string | null | undefined; first_name?: string | null | undefined; middle_name?: string | null | undefined; @@ -604,6 +632,7 @@ export type CustomerInput$Outbound = { parent?: LinkedParentCustomer$Outbound | null | undefined; status?: string | null | undefined; payment_method?: string | null | undefined; + terms?: string | null | undefined; channel?: string | null | undefined; custom_fields?: Array | undefined; row_version?: string | null | undefined; @@ -620,6 +649,7 @@ export const CustomerInput$outboundSchema: z.ZodType< displayName: z.nullable(z.string()).optional(), companyName: z.nullable(z.string()).optional(), companyId: z.nullable(z.string()).optional(), + customerCategory: z.nullable(z.string()).optional(), title: z.nullable(z.string()).optional(), firstName: z.nullable(z.string()).optional(), middleName: z.nullable(z.string()).optional(), @@ -640,6 +670,7 @@ export const CustomerInput$outboundSchema: z.ZodType< parent: z.nullable(LinkedParentCustomer$outboundSchema).optional(), status: z.nullable(CustomerStatusStatus$outboundSchema).optional(), paymentMethod: z.nullable(z.string()).optional(), + terms: z.nullable(z.string()).optional(), channel: z.nullable(z.string()).optional(), customFields: z.array(CustomField$outboundSchema).optional(), rowVersion: z.nullable(z.string()).optional(), @@ -650,6 +681,7 @@ export const CustomerInput$outboundSchema: z.ZodType< displayName: "display_name", companyName: "company_name", companyId: "company_id", + customerCategory: "customer_category", firstName: "first_name", middleName: "middle_name", lastName: "last_name", diff --git a/src/models/components/deleteprojectresponse.ts b/src/models/components/deleteprojectresponse.ts new file mode 100644 index 00000000..b775192e --- /dev/null +++ b/src/models/components/deleteprojectresponse.ts @@ -0,0 +1,122 @@ +/* + * 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 { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + UnifiedId, + UnifiedId$inboundSchema, + UnifiedId$Outbound, + UnifiedId$outboundSchema, +} from "./unifiedid.js"; + +/** + * Projects + */ +export type DeleteProjectResponse = { + /** + * HTTP Response Status Code + */ + statusCode: number; + /** + * HTTP Response Status + */ + status: string; + /** + * Apideck ID of service provider + */ + service: string; + /** + * Unified API resource name + */ + resource: string; + /** + * Operation performed + */ + operation: string; + /** + * A object containing a unique identifier for the resource that was created, updated, or deleted. + */ + data: UnifiedId; +}; + +/** @internal */ +export const DeleteProjectResponse$inboundSchema: z.ZodType< + DeleteProjectResponse, + z.ZodTypeDef, + unknown +> = z.object({ + status_code: z.number().int(), + status: z.string(), + service: z.string(), + resource: z.string(), + operation: z.string(), + data: UnifiedId$inboundSchema, +}).transform((v) => { + return remap$(v, { + "status_code": "statusCode", + }); +}); + +/** @internal */ +export type DeleteProjectResponse$Outbound = { + status_code: number; + status: string; + service: string; + resource: string; + operation: string; + data: UnifiedId$Outbound; +}; + +/** @internal */ +export const DeleteProjectResponse$outboundSchema: z.ZodType< + DeleteProjectResponse$Outbound, + z.ZodTypeDef, + DeleteProjectResponse +> = z.object({ + statusCode: z.number().int(), + status: z.string(), + service: z.string(), + resource: z.string(), + operation: z.string(), + data: UnifiedId$outboundSchema, +}).transform((v) => { + return remap$(v, { + statusCode: "status_code", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace DeleteProjectResponse$ { + /** @deprecated use `DeleteProjectResponse$inboundSchema` instead. */ + export const inboundSchema = DeleteProjectResponse$inboundSchema; + /** @deprecated use `DeleteProjectResponse$outboundSchema` instead. */ + export const outboundSchema = DeleteProjectResponse$outboundSchema; + /** @deprecated use `DeleteProjectResponse$Outbound` instead. */ + export type Outbound = DeleteProjectResponse$Outbound; +} + +export function deleteProjectResponseToJSON( + deleteProjectResponse: DeleteProjectResponse, +): string { + return JSON.stringify( + DeleteProjectResponse$outboundSchema.parse(deleteProjectResponse), + ); +} + +export function deleteProjectResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => DeleteProjectResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'DeleteProjectResponse' from JSON`, + ); +} diff --git a/src/models/components/getprojectresponse.ts b/src/models/components/getprojectresponse.ts new file mode 100644 index 00000000..08e658e7 --- /dev/null +++ b/src/models/components/getprojectresponse.ts @@ -0,0 +1,119 @@ +/* + * 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 { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + Project, + Project$inboundSchema, + Project$Outbound, + Project$outboundSchema, +} from "./project.js"; + +/** + * Projects + */ +export type GetProjectResponse = { + /** + * HTTP Response Status Code + */ + statusCode: number; + /** + * HTTP Response Status + */ + status: string; + /** + * Apideck ID of service provider + */ + service: string; + /** + * Unified API resource name + */ + resource: string; + /** + * Operation performed + */ + operation: string; + data: Project; +}; + +/** @internal */ +export const GetProjectResponse$inboundSchema: z.ZodType< + GetProjectResponse, + z.ZodTypeDef, + unknown +> = z.object({ + status_code: z.number().int(), + status: z.string(), + service: z.string(), + resource: z.string(), + operation: z.string(), + data: Project$inboundSchema, +}).transform((v) => { + return remap$(v, { + "status_code": "statusCode", + }); +}); + +/** @internal */ +export type GetProjectResponse$Outbound = { + status_code: number; + status: string; + service: string; + resource: string; + operation: string; + data: Project$Outbound; +}; + +/** @internal */ +export const GetProjectResponse$outboundSchema: z.ZodType< + GetProjectResponse$Outbound, + z.ZodTypeDef, + GetProjectResponse +> = z.object({ + statusCode: z.number().int(), + status: z.string(), + service: z.string(), + resource: z.string(), + operation: z.string(), + data: Project$outboundSchema, +}).transform((v) => { + return remap$(v, { + statusCode: "status_code", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetProjectResponse$ { + /** @deprecated use `GetProjectResponse$inboundSchema` instead. */ + export const inboundSchema = GetProjectResponse$inboundSchema; + /** @deprecated use `GetProjectResponse$outboundSchema` instead. */ + export const outboundSchema = GetProjectResponse$outboundSchema; + /** @deprecated use `GetProjectResponse$Outbound` instead. */ + export type Outbound = GetProjectResponse$Outbound; +} + +export function getProjectResponseToJSON( + getProjectResponse: GetProjectResponse, +): string { + return JSON.stringify( + GetProjectResponse$outboundSchema.parse(getProjectResponse), + ); +} + +export function getProjectResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetProjectResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetProjectResponse' from JSON`, + ); +} diff --git a/src/models/components/getprojectsresponse.ts b/src/models/components/getprojectsresponse.ts new file mode 100644 index 00000000..abde6770 --- /dev/null +++ b/src/models/components/getprojectsresponse.ts @@ -0,0 +1,145 @@ +/* + * 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 { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + Links, + Links$inboundSchema, + Links$Outbound, + Links$outboundSchema, +} from "./links.js"; +import { + Meta, + Meta$inboundSchema, + Meta$Outbound, + Meta$outboundSchema, +} from "./meta.js"; +import { + Project, + Project$inboundSchema, + Project$Outbound, + Project$outboundSchema, +} from "./project.js"; + +/** + * Projects + */ +export type GetProjectsResponse = { + /** + * HTTP Response Status Code + */ + statusCode: number; + /** + * HTTP Response Status + */ + status: string; + /** + * Apideck ID of service provider + */ + service: string; + /** + * Unified API resource name + */ + resource: string; + /** + * Operation performed + */ + operation: string; + data: Array; + /** + * Response metadata + */ + meta?: Meta | undefined; + /** + * Links to navigate to previous or next pages through the API + */ + links?: Links | undefined; +}; + +/** @internal */ +export const GetProjectsResponse$inboundSchema: z.ZodType< + GetProjectsResponse, + z.ZodTypeDef, + unknown +> = z.object({ + status_code: z.number().int(), + status: z.string(), + service: z.string(), + resource: z.string(), + operation: z.string(), + data: z.array(Project$inboundSchema), + meta: Meta$inboundSchema.optional(), + links: Links$inboundSchema.optional(), +}).transform((v) => { + return remap$(v, { + "status_code": "statusCode", + }); +}); + +/** @internal */ +export type GetProjectsResponse$Outbound = { + status_code: number; + status: string; + service: string; + resource: string; + operation: string; + data: Array; + meta?: Meta$Outbound | undefined; + links?: Links$Outbound | undefined; +}; + +/** @internal */ +export const GetProjectsResponse$outboundSchema: z.ZodType< + GetProjectsResponse$Outbound, + z.ZodTypeDef, + GetProjectsResponse +> = z.object({ + statusCode: z.number().int(), + status: z.string(), + service: z.string(), + resource: z.string(), + operation: z.string(), + data: z.array(Project$outboundSchema), + meta: Meta$outboundSchema.optional(), + links: Links$outboundSchema.optional(), +}).transform((v) => { + return remap$(v, { + statusCode: "status_code", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace GetProjectsResponse$ { + /** @deprecated use `GetProjectsResponse$inboundSchema` instead. */ + export const inboundSchema = GetProjectsResponse$inboundSchema; + /** @deprecated use `GetProjectsResponse$outboundSchema` instead. */ + export const outboundSchema = GetProjectsResponse$outboundSchema; + /** @deprecated use `GetProjectsResponse$Outbound` instead. */ + export type Outbound = GetProjectsResponse$Outbound; +} + +export function getProjectsResponseToJSON( + getProjectsResponse: GetProjectsResponse, +): string { + return JSON.stringify( + GetProjectsResponse$outboundSchema.parse(getProjectsResponse), + ); +} + +export function getProjectsResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => GetProjectsResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'GetProjectsResponse' from JSON`, + ); +} diff --git a/src/models/components/index.ts b/src/models/components/index.ts index c69456ce..a0460428 100644 --- a/src/models/components/index.ts +++ b/src/models/components/index.ts @@ -123,6 +123,7 @@ export * from "./createnoteresponse.js"; export * from "./createopportunityresponse.js"; export * from "./createpaymentresponse.js"; export * from "./createpipelineresponse.js"; +export * from "./createprojectresponse.js"; export * from "./createpurchaseorderresponse.js"; export * from "./createquoteresponse.js"; export * from "./createsessionresponse.js"; @@ -192,6 +193,7 @@ export * from "./deletenoteresponse.js"; export * from "./deleteopportunityresponse.js"; export * from "./deletepaymentresponse.js"; export * from "./deletepipelineresponse.js"; +export * from "./deleteprojectresponse.js"; export * from "./deletepurchaseorderresponse.js"; export * from "./deletequoteresponse.js"; export * from "./deletesharedlinkresponse.js"; @@ -361,6 +363,8 @@ export * from "./getpipelinesresponse.js"; export * from "./getproductresponse.js"; export * from "./getproductsresponse.js"; export * from "./getprofitandlossresponse.js"; +export * from "./getprojectresponse.js"; +export * from "./getprojectsresponse.js"; export * from "./getpurchaseorderresponse.js"; export * from "./getpurchaseordersresponse.js"; export * from "./getquoteresponse.js"; @@ -471,6 +475,9 @@ export * from "./profitandloss.js"; export * from "./profitandlossfilter.js"; export * from "./profitandlossindicator.js"; export * from "./profitandlosstype.js"; +export * from "./project.js"; +export * from "./projectsfilter.js"; +export * from "./projectssort.js"; export * from "./purchaseorder.js"; export * from "./purchaseordersfilter.js"; export * from "./purchaseorderssort.js"; @@ -552,6 +559,7 @@ export * from "./updatenoteresponse.js"; export * from "./updateopportunityresponse.js"; export * from "./updatepaymentresponse.js"; export * from "./updatepipelineresponse.js"; +export * from "./updateprojectresponse.js"; export * from "./updatepurchaseorderresponse.js"; export * from "./updatequoteresponse.js"; export * from "./updatesharedlinkresponse.js"; diff --git a/src/models/components/invoiceitemfilter.ts b/src/models/components/invoiceitemfilter.ts index 0637baf1..a261bc27 100644 --- a/src/models/components/invoiceitemfilter.ts +++ b/src/models/components/invoiceitemfilter.ts @@ -3,6 +3,7 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -23,11 +24,29 @@ export type InvoiceItemFilterInvoiceItemType = ClosedEnum< typeof InvoiceItemFilterInvoiceItemType >; +/** + * The kind of transaction, indicating whether it is a sales transaction or a purchase transaction. + */ +export const InvoiceItemFilterTransactionType = { + Sale: "sale", + Purchase: "purchase", +} as const; +/** + * The kind of transaction, indicating whether it is a sales transaction or a purchase transaction. + */ +export type InvoiceItemFilterTransactionType = ClosedEnum< + typeof InvoiceItemFilterTransactionType +>; + export type InvoiceItemFilter = { /** * The type of invoice item, indicating whether it is an inventory item, a service, or another type. */ type?: InvoiceItemFilterInvoiceItemType | null | undefined; + /** + * The kind of transaction, indicating whether it is a sales transaction or a purchase transaction. + */ + transactionType?: InvoiceItemFilterTransactionType | null | undefined; }; /** @internal */ @@ -51,6 +70,27 @@ export namespace InvoiceItemFilterInvoiceItemType$ { export const outboundSchema = InvoiceItemFilterInvoiceItemType$outboundSchema; } +/** @internal */ +export const InvoiceItemFilterTransactionType$inboundSchema: z.ZodNativeEnum< + typeof InvoiceItemFilterTransactionType +> = z.nativeEnum(InvoiceItemFilterTransactionType); + +/** @internal */ +export const InvoiceItemFilterTransactionType$outboundSchema: z.ZodNativeEnum< + typeof InvoiceItemFilterTransactionType +> = InvoiceItemFilterTransactionType$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace InvoiceItemFilterTransactionType$ { + /** @deprecated use `InvoiceItemFilterTransactionType$inboundSchema` instead. */ + export const inboundSchema = InvoiceItemFilterTransactionType$inboundSchema; + /** @deprecated use `InvoiceItemFilterTransactionType$outboundSchema` instead. */ + export const outboundSchema = InvoiceItemFilterTransactionType$outboundSchema; +} + /** @internal */ export const InvoiceItemFilter$inboundSchema: z.ZodType< InvoiceItemFilter, @@ -58,11 +98,18 @@ export const InvoiceItemFilter$inboundSchema: z.ZodType< unknown > = z.object({ type: z.nullable(InvoiceItemFilterInvoiceItemType$inboundSchema).optional(), + transaction_type: z.nullable(InvoiceItemFilterTransactionType$inboundSchema) + .optional(), +}).transform((v) => { + return remap$(v, { + "transaction_type": "transactionType", + }); }); /** @internal */ export type InvoiceItemFilter$Outbound = { type?: string | null | undefined; + transaction_type?: string | null | undefined; }; /** @internal */ @@ -72,6 +119,12 @@ export const InvoiceItemFilter$outboundSchema: z.ZodType< InvoiceItemFilter > = z.object({ type: z.nullable(InvoiceItemFilterInvoiceItemType$outboundSchema).optional(), + transactionType: z.nullable(InvoiceItemFilterTransactionType$outboundSchema) + .optional(), +}).transform((v) => { + return remap$(v, { + transactionType: "transaction_type", + }); }); /** diff --git a/src/models/components/invoiceitemsfilter.ts b/src/models/components/invoiceitemsfilter.ts index 8b23d662..f4089e51 100644 --- a/src/models/components/invoiceitemsfilter.ts +++ b/src/models/components/invoiceitemsfilter.ts @@ -3,6 +3,7 @@ */ import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -21,6 +22,18 @@ export const InvoiceItemType = { */ export type InvoiceItemType = ClosedEnum; +/** + * The kind of transaction, indicating whether it is a sales transaction or a purchase transaction. + */ +export const TransactionType = { + Sale: "sale", + Purchase: "purchase", +} as const; +/** + * The kind of transaction, indicating whether it is a sales transaction or a purchase transaction. + */ +export type TransactionType = ClosedEnum; + export type InvoiceItemsFilter = { /** * Name of Invoice Items to search for @@ -30,6 +43,10 @@ export type InvoiceItemsFilter = { * The type of invoice item, indicating whether it is an inventory item, a service, or another type. */ type?: InvoiceItemType | null | undefined; + /** + * The kind of transaction, indicating whether it is a sales transaction or a purchase transaction. + */ + transactionType?: TransactionType | null | undefined; }; /** @internal */ @@ -53,6 +70,27 @@ export namespace InvoiceItemType$ { export const outboundSchema = InvoiceItemType$outboundSchema; } +/** @internal */ +export const TransactionType$inboundSchema: z.ZodNativeEnum< + typeof TransactionType +> = z.nativeEnum(TransactionType); + +/** @internal */ +export const TransactionType$outboundSchema: z.ZodNativeEnum< + typeof TransactionType +> = TransactionType$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace TransactionType$ { + /** @deprecated use `TransactionType$inboundSchema` instead. */ + export const inboundSchema = TransactionType$inboundSchema; + /** @deprecated use `TransactionType$outboundSchema` instead. */ + export const outboundSchema = TransactionType$outboundSchema; +} + /** @internal */ export const InvoiceItemsFilter$inboundSchema: z.ZodType< InvoiceItemsFilter, @@ -61,12 +99,18 @@ export const InvoiceItemsFilter$inboundSchema: z.ZodType< > = z.object({ name: z.string().optional(), type: z.nullable(InvoiceItemType$inboundSchema).optional(), + transaction_type: z.nullable(TransactionType$inboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + "transaction_type": "transactionType", + }); }); /** @internal */ export type InvoiceItemsFilter$Outbound = { name?: string | undefined; type?: string | null | undefined; + transaction_type?: string | null | undefined; }; /** @internal */ @@ -77,6 +121,11 @@ export const InvoiceItemsFilter$outboundSchema: z.ZodType< > = z.object({ name: z.string().optional(), type: z.nullable(InvoiceItemType$outboundSchema).optional(), + transactionType: z.nullable(TransactionType$outboundSchema).optional(), +}).transform((v) => { + return remap$(v, { + transactionType: "transaction_type", + }); }); /** diff --git a/src/models/components/invoicelineitem.ts b/src/models/components/invoicelineitem.ts index 1546f8d3..da969b80 100644 --- a/src/models/components/invoicelineitem.ts +++ b/src/models/components/invoicelineitem.ts @@ -7,6 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import { RFCDate } from "../../types/rfcdate.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CustomField, @@ -120,6 +121,10 @@ export type InvoiceLineItem = { * Discount amount applied to the line item when supported downstream. */ discountAmount?: number | null | undefined; + /** + * Date on which the service was provided or performed - YYYY-MM-DD. + */ + serviceDate?: RFCDate | null | undefined; /** * ID of the category of the line item */ @@ -241,6 +246,10 @@ export type InvoiceLineItemInput = { * Discount amount applied to the line item when supported downstream. */ discountAmount?: number | null | undefined; + /** + * Date on which the service was provided or performed - YYYY-MM-DD. + */ + serviceDate?: RFCDate | null | undefined; /** * ID of the category of the line item */ @@ -339,6 +348,8 @@ export const InvoiceLineItem$inboundSchema: z.ZodType< unit_of_measure: z.nullable(z.string()).optional(), discount_percentage: z.nullable(z.number()).optional(), discount_amount: z.nullable(z.number()).optional(), + service_date: z.nullable(z.string().transform(v => new RFCDate(v))) + .optional(), category_id: z.nullable(z.string()).optional(), location_id: z.nullable(z.string()).optional(), department_id: z.nullable(z.string()).optional(), @@ -376,6 +387,7 @@ export const InvoiceLineItem$inboundSchema: z.ZodType< "unit_of_measure": "unitOfMeasure", "discount_percentage": "discountPercentage", "discount_amount": "discountAmount", + "service_date": "serviceDate", "category_id": "categoryId", "location_id": "locationId", "department_id": "departmentId", @@ -411,6 +423,7 @@ export type InvoiceLineItem$Outbound = { unit_of_measure?: string | null | undefined; discount_percentage?: number | null | undefined; discount_amount?: number | null | undefined; + service_date?: string | null | undefined; category_id?: string | null | undefined; location_id?: string | null | undefined; department_id?: string | null | undefined; @@ -456,6 +469,8 @@ export const InvoiceLineItem$outboundSchema: z.ZodType< unitOfMeasure: z.nullable(z.string()).optional(), discountPercentage: z.nullable(z.number()).optional(), discountAmount: z.nullable(z.number()).optional(), + serviceDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) + .optional(), categoryId: z.nullable(z.string()).optional(), locationId: z.nullable(z.string()).optional(), departmentId: z.nullable(z.string()).optional(), @@ -489,6 +504,7 @@ export const InvoiceLineItem$outboundSchema: z.ZodType< unitOfMeasure: "unit_of_measure", discountPercentage: "discount_percentage", discountAmount: "discount_amount", + serviceDate: "service_date", categoryId: "category_id", locationId: "location_id", departmentId: "department_id", @@ -557,6 +573,8 @@ export const InvoiceLineItemInput$inboundSchema: z.ZodType< unit_of_measure: z.nullable(z.string()).optional(), discount_percentage: z.nullable(z.number()).optional(), discount_amount: z.nullable(z.number()).optional(), + service_date: z.nullable(z.string().transform(v => new RFCDate(v))) + .optional(), category_id: z.nullable(z.string()).optional(), location_id: z.nullable(z.string()).optional(), department_id: z.nullable(z.string()).optional(), @@ -586,6 +604,7 @@ export const InvoiceLineItemInput$inboundSchema: z.ZodType< "unit_of_measure": "unitOfMeasure", "discount_percentage": "discountPercentage", "discount_amount": "discountAmount", + "service_date": "serviceDate", "category_id": "categoryId", "location_id": "locationId", "department_id": "departmentId", @@ -617,6 +636,7 @@ export type InvoiceLineItemInput$Outbound = { unit_of_measure?: string | null | undefined; discount_percentage?: number | null | undefined; discount_amount?: number | null | undefined; + service_date?: string | null | undefined; category_id?: string | null | undefined; location_id?: string | null | undefined; department_id?: string | null | undefined; @@ -658,6 +678,8 @@ export const InvoiceLineItemInput$outboundSchema: z.ZodType< unitOfMeasure: z.nullable(z.string()).optional(), discountPercentage: z.nullable(z.number()).optional(), discountAmount: z.nullable(z.number()).optional(), + serviceDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) + .optional(), categoryId: z.nullable(z.string()).optional(), locationId: z.nullable(z.string()).optional(), departmentId: z.nullable(z.string()).optional(), @@ -687,6 +709,7 @@ export const InvoiceLineItemInput$outboundSchema: z.ZodType< unitOfMeasure: "unit_of_measure", discountPercentage: "discount_percentage", discountAmount: "discount_amount", + serviceDate: "service_date", categoryId: "category_id", locationId: "location_id", departmentId: "department_id", diff --git a/src/models/components/invoicesfilter.ts b/src/models/components/invoicesfilter.ts index c6f1d61d..8a288693 100644 --- a/src/models/components/invoicesfilter.ts +++ b/src/models/components/invoicesfilter.ts @@ -15,6 +15,10 @@ export type InvoicesFilter = { * Invoice number to search for */ number?: string | undefined; + /** + * Supplier ID to filter invoices by + */ + supplierId?: string | undefined; }; /** @internal */ @@ -30,10 +34,12 @@ export const InvoicesFilter$inboundSchema: z.ZodType< new Date(v) ).optional(), number: z.string().optional(), + supplier_id: z.string().optional(), }).transform((v) => { return remap$(v, { "updated_since": "updatedSince", "created_since": "createdSince", + "supplier_id": "supplierId", }); }); @@ -42,6 +48,7 @@ export type InvoicesFilter$Outbound = { updated_since?: string | undefined; created_since?: string | undefined; number?: string | undefined; + supplier_id?: string | undefined; }; /** @internal */ @@ -53,10 +60,12 @@ export const InvoicesFilter$outboundSchema: z.ZodType< updatedSince: z.date().transform(v => v.toISOString()).optional(), createdSince: z.date().transform(v => v.toISOString()).optional(), number: z.string().optional(), + supplierId: z.string().optional(), }).transform((v) => { return remap$(v, { updatedSince: "updated_since", createdSince: "created_since", + supplierId: "supplier_id", }); }); diff --git a/src/models/components/journalentry.ts b/src/models/components/journalentry.ts index 8c08ce57..2a97c23c 100644 --- a/src/models/components/journalentry.ts +++ b/src/models/components/journalentry.ts @@ -65,6 +65,10 @@ export type JournalEntry = { * A unique identifier for an object. */ id?: string | undefined; + /** + * The third-party API ID of original entity + */ + downstreamId?: string | null | undefined; /** * Journal entry title */ @@ -121,6 +125,18 @@ export type JournalEntry = { * Accounting period */ accountingPeriod?: string | null | undefined; + /** + * Amounts are including tax + */ + taxInclusive?: boolean | null | undefined; + /** + * The source type of the journal entry + */ + sourceType?: string | null | undefined; + /** + * A unique identifier for the source of the journal entry + */ + sourceId?: string | null | undefined; /** * When custom mappings are configured on the resource, the result is included here. */ @@ -209,6 +225,18 @@ export type JournalEntryInput = { * Accounting period */ accountingPeriod?: string | null | undefined; + /** + * Amounts are including tax + */ + taxInclusive?: boolean | null | undefined; + /** + * The source type of the journal entry + */ + sourceType?: string | null | undefined; + /** + * A unique identifier for the source of the journal entry + */ + sourceId?: string | null | undefined; /** * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. */ @@ -248,6 +276,7 @@ export const JournalEntry$inboundSchema: z.ZodType< unknown > = z.object({ id: z.string().optional(), + downstream_id: z.nullable(z.string()).optional(), title: z.nullable(z.string()).optional(), currency_rate: z.nullable(z.number()).optional(), currency: z.nullable(Currency$inboundSchema).optional(), @@ -265,6 +294,9 @@ export const JournalEntry$inboundSchema: z.ZodType< z.array(z.nullable(LinkedTrackingCategory$inboundSchema)), ).optional(), accounting_period: z.nullable(z.string()).optional(), + tax_inclusive: z.nullable(z.boolean()).optional(), + source_type: z.nullable(z.string()).optional(), + source_id: z.nullable(z.string()).optional(), custom_mappings: z.nullable(z.record(z.any())).optional(), updated_by: z.nullable(z.string()).optional(), created_by: z.nullable(z.string()).optional(), @@ -279,6 +311,7 @@ export const JournalEntry$inboundSchema: z.ZodType< pass_through: z.array(PassThroughBody$inboundSchema).optional(), }).transform((v) => { return remap$(v, { + "downstream_id": "downstreamId", "currency_rate": "currencyRate", "company_id": "companyId", "line_items": "lineItems", @@ -288,6 +321,9 @@ export const JournalEntry$inboundSchema: z.ZodType< "tax_code": "taxCode", "tracking_categories": "trackingCategories", "accounting_period": "accountingPeriod", + "tax_inclusive": "taxInclusive", + "source_type": "sourceType", + "source_id": "sourceId", "custom_mappings": "customMappings", "updated_by": "updatedBy", "created_by": "createdBy", @@ -302,6 +338,7 @@ export const JournalEntry$inboundSchema: z.ZodType< /** @internal */ export type JournalEntry$Outbound = { id?: string | undefined; + downstream_id?: string | null | undefined; title?: string | null | undefined; currency_rate?: number | null | undefined; currency?: string | null | undefined; @@ -319,6 +356,9 @@ export type JournalEntry$Outbound = { | null | undefined; accounting_period?: string | null | undefined; + tax_inclusive?: boolean | null | undefined; + source_type?: string | null | undefined; + source_id?: string | null | undefined; custom_mappings?: { [k: string]: any } | null | undefined; updated_by?: string | null | undefined; created_by?: string | null | undefined; @@ -336,6 +376,7 @@ export const JournalEntry$outboundSchema: z.ZodType< JournalEntry > = z.object({ id: z.string().optional(), + downstreamId: z.nullable(z.string()).optional(), title: z.nullable(z.string()).optional(), currencyRate: z.nullable(z.number()).optional(), currency: z.nullable(Currency$outboundSchema).optional(), @@ -352,6 +393,9 @@ export const JournalEntry$outboundSchema: z.ZodType< z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), ).optional(), accountingPeriod: z.nullable(z.string()).optional(), + taxInclusive: z.nullable(z.boolean()).optional(), + sourceType: z.nullable(z.string()).optional(), + sourceId: z.nullable(z.string()).optional(), customMappings: z.nullable(z.record(z.any())).optional(), updatedBy: z.nullable(z.string()).optional(), createdBy: z.nullable(z.string()).optional(), @@ -362,6 +406,7 @@ export const JournalEntry$outboundSchema: z.ZodType< passThrough: z.array(PassThroughBody$outboundSchema).optional(), }).transform((v) => { return remap$(v, { + downstreamId: "downstream_id", currencyRate: "currency_rate", companyId: "company_id", lineItems: "line_items", @@ -371,6 +416,9 @@ export const JournalEntry$outboundSchema: z.ZodType< taxCode: "tax_code", trackingCategories: "tracking_categories", accountingPeriod: "accounting_period", + taxInclusive: "tax_inclusive", + sourceType: "source_type", + sourceId: "source_id", customMappings: "custom_mappings", updatedBy: "updated_by", createdBy: "created_by", @@ -432,6 +480,9 @@ export const JournalEntryInput$inboundSchema: z.ZodType< z.array(z.nullable(LinkedTrackingCategory$inboundSchema)), ).optional(), accounting_period: z.nullable(z.string()).optional(), + tax_inclusive: z.nullable(z.boolean()).optional(), + source_type: z.nullable(z.string()).optional(), + source_id: z.nullable(z.string()).optional(), row_version: z.nullable(z.string()).optional(), custom_fields: z.array(CustomField$inboundSchema).optional(), pass_through: z.array(PassThroughBody$inboundSchema).optional(), @@ -446,6 +497,9 @@ export const JournalEntryInput$inboundSchema: z.ZodType< "tax_code": "taxCode", "tracking_categories": "trackingCategories", "accounting_period": "accountingPeriod", + "tax_inclusive": "taxInclusive", + "source_type": "sourceType", + "source_id": "sourceId", "row_version": "rowVersion", "custom_fields": "customFields", "pass_through": "passThrough", @@ -471,6 +525,9 @@ export type JournalEntryInput$Outbound = { | null | undefined; accounting_period?: string | null | undefined; + tax_inclusive?: boolean | null | undefined; + source_type?: string | null | undefined; + source_id?: string | null | undefined; row_version?: string | null | undefined; custom_fields?: Array | undefined; pass_through?: Array | undefined; @@ -498,6 +555,9 @@ export const JournalEntryInput$outboundSchema: z.ZodType< z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), ).optional(), accountingPeriod: z.nullable(z.string()).optional(), + taxInclusive: z.nullable(z.boolean()).optional(), + sourceType: z.nullable(z.string()).optional(), + sourceId: z.nullable(z.string()).optional(), rowVersion: z.nullable(z.string()).optional(), customFields: z.array(CustomField$outboundSchema).optional(), passThrough: z.array(PassThroughBody$outboundSchema).optional(), @@ -512,6 +572,9 @@ export const JournalEntryInput$outboundSchema: z.ZodType< taxCode: "tax_code", trackingCategories: "tracking_categories", accountingPeriod: "accounting_period", + taxInclusive: "tax_inclusive", + sourceType: "source_type", + sourceId: "source_id", rowVersion: "row_version", customFields: "custom_fields", passThrough: "pass_through", diff --git a/src/models/components/ledgeraccount.ts b/src/models/components/ledgeraccount.ts index b6783caf..a65bf79d 100644 --- a/src/models/components/ledgeraccount.ts +++ b/src/models/components/ledgeraccount.ts @@ -71,25 +71,25 @@ export type LedgerAccountClassification = ClosedEnum< * The type of account. */ export const LedgerAccountType = { + AccountsPayable: "accounts_payable", AccountsReceivable: "accounts_receivable", - Revenue: "revenue", - Sales: "sales", - OtherIncome: "other_income", + Balancesheet: "balancesheet", Bank: "bank", + CostsOfSales: "costs_of_sales", + CreditCard: "credit_card", CurrentAsset: "current_asset", + CurrentLiability: "current_liability", + Equity: "equity", + Expense: "expense", FixedAsset: "fixed_asset", NonCurrentAsset: "non_current_asset", + NonCurrentLiability: "non_current_liability", OtherAsset: "other_asset", - Balancesheet: "balancesheet", - Equity: "equity", - Expense: "expense", OtherExpense: "other_expense", - CostsOfSales: "costs_of_sales", - AccountsPayable: "accounts_payable", - CreditCard: "credit_card", - CurrentLiability: "current_liability", - NonCurrentLiability: "non_current_liability", + OtherIncome: "other_income", OtherLiability: "other_liability", + Revenue: "revenue", + Sales: "sales", Other: "other", } as const; /** diff --git a/src/models/components/project.ts b/src/models/components/project.ts new file mode 100644 index 00000000..01bd2020 --- /dev/null +++ b/src/models/components/project.ts @@ -0,0 +1,1189 @@ +/* + * 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 { ClosedEnum } from "../../types/enums.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { RFCDate } from "../../types/rfcdate.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + Address, + Address$inboundSchema, + Address$Outbound, + Address$outboundSchema, +} from "./address.js"; +import { + Currency, + Currency$inboundSchema, + Currency$outboundSchema, +} from "./currency.js"; +import { + CustomField, + CustomField$inboundSchema, + CustomField$Outbound, + CustomField$outboundSchema, +} from "./customfield.js"; +import { + LinkedCustomer, + LinkedCustomer$inboundSchema, + LinkedCustomer$Outbound, + LinkedCustomer$outboundSchema, +} from "./linkedcustomer.js"; +import { + LinkedCustomerInput, + LinkedCustomerInput$inboundSchema, + LinkedCustomerInput$Outbound, + LinkedCustomerInput$outboundSchema, +} from "./linkedcustomerinput.js"; +import { + LinkedTaxRate, + LinkedTaxRate$inboundSchema, + LinkedTaxRate$Outbound, + LinkedTaxRate$outboundSchema, +} from "./linkedtaxrate.js"; +import { + LinkedTaxRateInput, + LinkedTaxRateInput$inboundSchema, + LinkedTaxRateInput$Outbound, + LinkedTaxRateInput$outboundSchema, +} from "./linkedtaxrateinput.js"; +import { + LinkedTrackingCategory, + LinkedTrackingCategory$inboundSchema, + LinkedTrackingCategory$Outbound, + LinkedTrackingCategory$outboundSchema, +} from "./linkedtrackingcategory.js"; + +/** + * Current status of the project + */ +export const ProjectProjectStatus = { + Active: "active", + Completed: "completed", + OnHold: "on_hold", + Cancelled: "cancelled", + Draft: "draft", + InProgress: "in_progress", + Approved: "approved", + Other: "other", +} as const; +/** + * Current status of the project + */ +export type ProjectProjectStatus = ClosedEnum; + +/** + * Type or category of the project + */ +export const ProjectType = { + ClientProject: "client_project", + InternalProject: "internal_project", + Maintenance: "maintenance", + ResearchDevelopment: "research_development", + Training: "training", + Other: "other", +} as const; +/** + * Type or category of the project + */ +export type ProjectType = ClosedEnum; + +/** + * Priority level of the project + */ +export const Priority = { + Low: "low", + Medium: "medium", + High: "high", + Critical: "critical", +} as const; +/** + * Priority level of the project + */ +export type Priority = ClosedEnum; + +/** + * Department or organizational unit associated with the project + */ +export type ProjectDepartment = { + /** + * Unique identifier for the department + */ + id?: string | undefined; + /** + * Name of the department + */ + name?: string | undefined; +}; + +/** + * Parent project if this is a subproject + */ +export type ParentProject = { + /** + * Unique identifier for the parent project + */ + id?: string | undefined; + /** + * Name of the parent project + */ + name?: string | undefined; +}; + +/** + * Method used for billing this project + */ +export const BillingMethod = { + FixedPrice: "fixed_price", + TimeAndMaterials: "time_and_materials", + MilestoneBased: "milestone_based", + Retainer: "retainer", + NonBillable: "non_billable", +} as const; +/** + * Method used for billing this project + */ +export type BillingMethod = ClosedEnum; + +/** + * Current phase of the project lifecycle + */ +export const ProjectPhase = { + Initiation: "initiation", + Planning: "planning", + Execution: "execution", + Monitoring: "monitoring", + Closure: "closure", + Other: "other", +} as const; +/** + * Current phase of the project lifecycle + */ +export type ProjectPhase = ClosedEnum; + +/** + * Current status of project schedule compared to plan + */ +export const ScheduleStatus = { + AheadOfSchedule: "ahead_of_schedule", + OnSchedule: "on_schedule", + BehindSchedule: "behind_schedule", + CriticalDelay: "critical_delay", +} as const; +/** + * Current status of project schedule compared to plan + */ +export type ScheduleStatus = ClosedEnum; + +export type Project = { + /** + * A unique identifier for an object. + */ + id?: string | undefined; + /** + * The third-party API ID of original entity + */ + downstreamId?: string | null | undefined; + /** + * Name of the project + */ + name: string; + /** + * User-friendly project identifier + */ + displayId?: string | null | undefined; + /** + * External reference identifier for the project + */ + referenceId?: string | null | undefined; + /** + * Detailed description of the project + */ + description?: string | null | undefined; + /** + * Current status of the project + */ + status?: ProjectProjectStatus | null | undefined; + /** + * Indicates whether the project is currently active or inactive + */ + active?: boolean | null | undefined; + /** + * Type or category of the project + */ + projectType?: ProjectType | null | undefined; + /** + * Priority level of the project + */ + priority?: Priority | null | undefined; + /** + * Percentage of project completion (0-100) + */ + completionPercentage?: number | null | undefined; + /** + * Start date of the project + */ + startDate?: RFCDate | null | undefined; + /** + * Expected or actual end date of the project + */ + endDate?: RFCDate | null | undefined; + /** + * The customer this entity is linked to. + */ + customer?: LinkedCustomer | null | undefined; + /** + * Department or organizational unit associated with the project + */ + department?: ProjectDepartment | null | undefined; + /** + * The company ID the transaction belongs to + */ + companyId?: string | null | undefined; + /** + * ID of the user who owns/manages this project + */ + ownerId?: string | null | undefined; + /** + * Parent project if this is a subproject + */ + parentProject?: ParentProject | null | undefined; + /** + * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). + */ + currency?: Currency | null | undefined; + /** + * Total budgeted amount for the project + */ + budgetAmount?: number | null | undefined; + /** + * Approved budget amount for the project + */ + approvedAmount?: number | null | undefined; + /** + * Total actual amount spent on the project + */ + actualAmount?: number | null | undefined; + /** + * Total budgeted hours for the project + */ + budgetHours?: number | null | undefined; + /** + * Total actual hours worked on the project + */ + actualHours?: number | null | undefined; + /** + * Default hourly rate for project work + */ + hourlyRate?: number | null | undefined; + /** + * Method used for billing this project + */ + billingMethod?: BillingMethod | null | undefined; + /** + * Indicates if the project is billable to the customer + */ + isBillable?: boolean | null | undefined; + /** + * Current phase of the project lifecycle + */ + phase?: ProjectPhase | null | undefined; + taxRate?: LinkedTaxRate | undefined; + /** + * A list of linked tracking categories. + */ + trackingCategories?: Array | null | undefined; + /** + * Tags associated with the project + */ + tags?: Array | undefined; + /** + * Additional notes about the project + */ + notes?: string | null | undefined; + /** + * Contract or agreement number associated with the project + */ + contractNumber?: string | null | undefined; + /** + * Expected profit margin percentage for the project + */ + profitMargin?: number | null | undefined; + /** + * Current status of project schedule compared to plan + */ + scheduleStatus?: ScheduleStatus | null | undefined; + /** + * An array of addresses associated with the project (billing, job site, etc.) + */ + addresses?: Array
| undefined; + /** + * Number of team members assigned to the project + */ + teamSize?: number | null | undefined; + customFields?: Array | undefined; + /** + * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. + */ + rowVersion?: string | null | undefined; + /** + * The user who last updated the object. + */ + updatedBy?: string | null | undefined; + /** + * The user who created the object. + */ + createdBy?: string | null | undefined; + /** + * The date and time when the object was created. + */ + createdAt?: Date | null | undefined; + /** + * The date and time when the object was last updated. + */ + updatedAt?: Date | null | undefined; +}; + +export type ProjectInput = { + /** + * Name of the project + */ + name: string; + /** + * User-friendly project identifier + */ + displayId?: string | null | undefined; + /** + * External reference identifier for the project + */ + referenceId?: string | null | undefined; + /** + * Detailed description of the project + */ + description?: string | null | undefined; + /** + * Current status of the project + */ + status?: ProjectProjectStatus | null | undefined; + /** + * Indicates whether the project is currently active or inactive + */ + active?: boolean | null | undefined; + /** + * Type or category of the project + */ + projectType?: ProjectType | null | undefined; + /** + * Priority level of the project + */ + priority?: Priority | null | undefined; + /** + * Percentage of project completion (0-100) + */ + completionPercentage?: number | null | undefined; + /** + * Start date of the project + */ + startDate?: RFCDate | null | undefined; + /** + * Expected or actual end date of the project + */ + endDate?: RFCDate | null | undefined; + /** + * The customer this entity is linked to. + */ + customer?: LinkedCustomerInput | null | undefined; + /** + * Department or organizational unit associated with the project + */ + department?: ProjectDepartment | null | undefined; + /** + * The company ID the transaction belongs to + */ + companyId?: string | null | undefined; + /** + * ID of the user who owns/manages this project + */ + ownerId?: string | null | undefined; + /** + * Parent project if this is a subproject + */ + parentProject?: ParentProject | null | undefined; + /** + * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). + */ + currency?: Currency | null | undefined; + /** + * Total budgeted amount for the project + */ + budgetAmount?: number | null | undefined; + /** + * Approved budget amount for the project + */ + approvedAmount?: number | null | undefined; + /** + * Total budgeted hours for the project + */ + budgetHours?: number | null | undefined; + /** + * Default hourly rate for project work + */ + hourlyRate?: number | null | undefined; + /** + * Method used for billing this project + */ + billingMethod?: BillingMethod | null | undefined; + /** + * Indicates if the project is billable to the customer + */ + isBillable?: boolean | null | undefined; + /** + * Current phase of the project lifecycle + */ + phase?: ProjectPhase | null | undefined; + taxRate?: LinkedTaxRateInput | undefined; + /** + * A list of linked tracking categories. + */ + trackingCategories?: Array | null | undefined; + /** + * Tags associated with the project + */ + tags?: Array | undefined; + /** + * Additional notes about the project + */ + notes?: string | null | undefined; + /** + * Contract or agreement number associated with the project + */ + contractNumber?: string | null | undefined; + /** + * Expected profit margin percentage for the project + */ + profitMargin?: number | null | undefined; + /** + * Current status of project schedule compared to plan + */ + scheduleStatus?: ScheduleStatus | null | undefined; + /** + * An array of addresses associated with the project (billing, job site, etc.) + */ + addresses?: Array
| undefined; + /** + * Number of team members assigned to the project + */ + teamSize?: number | null | undefined; + customFields?: Array | undefined; + /** + * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. + */ + rowVersion?: string | null | undefined; +}; + +/** @internal */ +export const ProjectProjectStatus$inboundSchema: z.ZodNativeEnum< + typeof ProjectProjectStatus +> = z.nativeEnum(ProjectProjectStatus); + +/** @internal */ +export const ProjectProjectStatus$outboundSchema: z.ZodNativeEnum< + typeof ProjectProjectStatus +> = ProjectProjectStatus$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ProjectProjectStatus$ { + /** @deprecated use `ProjectProjectStatus$inboundSchema` instead. */ + export const inboundSchema = ProjectProjectStatus$inboundSchema; + /** @deprecated use `ProjectProjectStatus$outboundSchema` instead. */ + export const outboundSchema = ProjectProjectStatus$outboundSchema; +} + +/** @internal */ +export const ProjectType$inboundSchema: z.ZodNativeEnum = z + .nativeEnum(ProjectType); + +/** @internal */ +export const ProjectType$outboundSchema: z.ZodNativeEnum = + ProjectType$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ProjectType$ { + /** @deprecated use `ProjectType$inboundSchema` instead. */ + export const inboundSchema = ProjectType$inboundSchema; + /** @deprecated use `ProjectType$outboundSchema` instead. */ + export const outboundSchema = ProjectType$outboundSchema; +} + +/** @internal */ +export const Priority$inboundSchema: z.ZodNativeEnum = z + .nativeEnum(Priority); + +/** @internal */ +export const Priority$outboundSchema: z.ZodNativeEnum = + Priority$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Priority$ { + /** @deprecated use `Priority$inboundSchema` instead. */ + export const inboundSchema = Priority$inboundSchema; + /** @deprecated use `Priority$outboundSchema` instead. */ + export const outboundSchema = Priority$outboundSchema; +} + +/** @internal */ +export const ProjectDepartment$inboundSchema: z.ZodType< + ProjectDepartment, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string().optional(), + name: z.string().optional(), +}); + +/** @internal */ +export type ProjectDepartment$Outbound = { + id?: string | undefined; + name?: string | undefined; +}; + +/** @internal */ +export const ProjectDepartment$outboundSchema: z.ZodType< + ProjectDepartment$Outbound, + z.ZodTypeDef, + ProjectDepartment +> = z.object({ + id: z.string().optional(), + name: z.string().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ProjectDepartment$ { + /** @deprecated use `ProjectDepartment$inboundSchema` instead. */ + export const inboundSchema = ProjectDepartment$inboundSchema; + /** @deprecated use `ProjectDepartment$outboundSchema` instead. */ + export const outboundSchema = ProjectDepartment$outboundSchema; + /** @deprecated use `ProjectDepartment$Outbound` instead. */ + export type Outbound = ProjectDepartment$Outbound; +} + +export function projectDepartmentToJSON( + projectDepartment: ProjectDepartment, +): string { + return JSON.stringify( + ProjectDepartment$outboundSchema.parse(projectDepartment), + ); +} + +export function projectDepartmentFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ProjectDepartment$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ProjectDepartment' from JSON`, + ); +} + +/** @internal */ +export const ParentProject$inboundSchema: z.ZodType< + ParentProject, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string().optional(), + name: z.string().optional(), +}); + +/** @internal */ +export type ParentProject$Outbound = { + id?: string | undefined; + name?: string | undefined; +}; + +/** @internal */ +export const ParentProject$outboundSchema: z.ZodType< + ParentProject$Outbound, + z.ZodTypeDef, + ParentProject +> = z.object({ + id: z.string().optional(), + name: z.string().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ParentProject$ { + /** @deprecated use `ParentProject$inboundSchema` instead. */ + export const inboundSchema = ParentProject$inboundSchema; + /** @deprecated use `ParentProject$outboundSchema` instead. */ + export const outboundSchema = ParentProject$outboundSchema; + /** @deprecated use `ParentProject$Outbound` instead. */ + export type Outbound = ParentProject$Outbound; +} + +export function parentProjectToJSON(parentProject: ParentProject): string { + return JSON.stringify(ParentProject$outboundSchema.parse(parentProject)); +} + +export function parentProjectFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ParentProject$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ParentProject' from JSON`, + ); +} + +/** @internal */ +export const BillingMethod$inboundSchema: z.ZodNativeEnum< + typeof BillingMethod +> = z.nativeEnum(BillingMethod); + +/** @internal */ +export const BillingMethod$outboundSchema: z.ZodNativeEnum< + typeof BillingMethod +> = BillingMethod$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace BillingMethod$ { + /** @deprecated use `BillingMethod$inboundSchema` instead. */ + export const inboundSchema = BillingMethod$inboundSchema; + /** @deprecated use `BillingMethod$outboundSchema` instead. */ + export const outboundSchema = BillingMethod$outboundSchema; +} + +/** @internal */ +export const ProjectPhase$inboundSchema: z.ZodNativeEnum = + z.nativeEnum(ProjectPhase); + +/** @internal */ +export const ProjectPhase$outboundSchema: z.ZodNativeEnum = + ProjectPhase$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ProjectPhase$ { + /** @deprecated use `ProjectPhase$inboundSchema` instead. */ + export const inboundSchema = ProjectPhase$inboundSchema; + /** @deprecated use `ProjectPhase$outboundSchema` instead. */ + export const outboundSchema = ProjectPhase$outboundSchema; +} + +/** @internal */ +export const ScheduleStatus$inboundSchema: z.ZodNativeEnum< + typeof ScheduleStatus +> = z.nativeEnum(ScheduleStatus); + +/** @internal */ +export const ScheduleStatus$outboundSchema: z.ZodNativeEnum< + typeof ScheduleStatus +> = ScheduleStatus$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ScheduleStatus$ { + /** @deprecated use `ScheduleStatus$inboundSchema` instead. */ + export const inboundSchema = ScheduleStatus$inboundSchema; + /** @deprecated use `ScheduleStatus$outboundSchema` instead. */ + export const outboundSchema = ScheduleStatus$outboundSchema; +} + +/** @internal */ +export const Project$inboundSchema: z.ZodType = + z.object({ + id: z.string().optional(), + downstream_id: z.nullable(z.string()).optional(), + name: z.string(), + display_id: z.nullable(z.string()).optional(), + reference_id: z.nullable(z.string()).optional(), + description: z.nullable(z.string()).optional(), + status: z.nullable(ProjectProjectStatus$inboundSchema).optional(), + active: z.nullable(z.boolean()).optional(), + project_type: z.nullable(ProjectType$inboundSchema).optional(), + priority: z.nullable(Priority$inboundSchema).optional(), + completion_percentage: z.nullable(z.number()).optional(), + start_date: z.nullable(z.string().transform(v => new RFCDate(v))) + .optional(), + end_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), + customer: z.nullable(LinkedCustomer$inboundSchema).optional(), + department: z.nullable(z.lazy(() => ProjectDepartment$inboundSchema)) + .optional(), + company_id: z.nullable(z.string()).optional(), + owner_id: z.nullable(z.string()).optional(), + parent_project: z.nullable(z.lazy(() => ParentProject$inboundSchema)) + .optional(), + currency: z.nullable(Currency$inboundSchema).optional(), + budget_amount: z.nullable(z.number()).optional(), + approved_amount: z.nullable(z.number()).optional(), + actual_amount: z.nullable(z.number()).optional(), + budget_hours: z.nullable(z.number()).optional(), + actual_hours: z.nullable(z.number()).optional(), + hourly_rate: z.nullable(z.number()).optional(), + billing_method: z.nullable(BillingMethod$inboundSchema).optional(), + is_billable: z.nullable(z.boolean().default(true)), + phase: z.nullable(ProjectPhase$inboundSchema).optional(), + tax_rate: LinkedTaxRate$inboundSchema.optional(), + tracking_categories: z.nullable( + z.array(z.nullable(LinkedTrackingCategory$inboundSchema)), + ).optional(), + tags: z.array(z.string()).optional(), + notes: z.nullable(z.string()).optional(), + contract_number: z.nullable(z.string()).optional(), + profit_margin: z.nullable(z.number()).optional(), + schedule_status: z.nullable(ScheduleStatus$inboundSchema).optional(), + addresses: z.array(Address$inboundSchema).optional(), + team_size: z.nullable(z.number().int()).optional(), + custom_fields: z.array(CustomField$inboundSchema).optional(), + row_version: z.nullable(z.string()).optional(), + updated_by: z.nullable(z.string()).optional(), + created_by: z.nullable(z.string()).optional(), + created_at: z.nullable( + z.string().datetime({ offset: true }).transform(v => new Date(v)), + ).optional(), + updated_at: z.nullable( + z.string().datetime({ offset: true }).transform(v => new Date(v)), + ).optional(), + }).transform((v) => { + return remap$(v, { + "downstream_id": "downstreamId", + "display_id": "displayId", + "reference_id": "referenceId", + "project_type": "projectType", + "completion_percentage": "completionPercentage", + "start_date": "startDate", + "end_date": "endDate", + "company_id": "companyId", + "owner_id": "ownerId", + "parent_project": "parentProject", + "budget_amount": "budgetAmount", + "approved_amount": "approvedAmount", + "actual_amount": "actualAmount", + "budget_hours": "budgetHours", + "actual_hours": "actualHours", + "hourly_rate": "hourlyRate", + "billing_method": "billingMethod", + "is_billable": "isBillable", + "tax_rate": "taxRate", + "tracking_categories": "trackingCategories", + "contract_number": "contractNumber", + "profit_margin": "profitMargin", + "schedule_status": "scheduleStatus", + "team_size": "teamSize", + "custom_fields": "customFields", + "row_version": "rowVersion", + "updated_by": "updatedBy", + "created_by": "createdBy", + "created_at": "createdAt", + "updated_at": "updatedAt", + }); + }); + +/** @internal */ +export type Project$Outbound = { + id?: string | undefined; + downstream_id?: string | null | undefined; + name: string; + display_id?: string | null | undefined; + reference_id?: string | null | undefined; + description?: string | null | undefined; + status?: string | null | undefined; + active?: boolean | null | undefined; + project_type?: string | null | undefined; + priority?: string | null | undefined; + completion_percentage?: number | null | undefined; + start_date?: string | null | undefined; + end_date?: string | null | undefined; + customer?: LinkedCustomer$Outbound | null | undefined; + department?: ProjectDepartment$Outbound | null | undefined; + company_id?: string | null | undefined; + owner_id?: string | null | undefined; + parent_project?: ParentProject$Outbound | null | undefined; + currency?: string | null | undefined; + budget_amount?: number | null | undefined; + approved_amount?: number | null | undefined; + actual_amount?: number | null | undefined; + budget_hours?: number | null | undefined; + actual_hours?: number | null | undefined; + hourly_rate?: number | null | undefined; + billing_method?: string | null | undefined; + is_billable: boolean | null; + phase?: string | null | undefined; + tax_rate?: LinkedTaxRate$Outbound | undefined; + tracking_categories?: + | Array + | null + | undefined; + tags?: Array | undefined; + notes?: string | null | undefined; + contract_number?: string | null | undefined; + profit_margin?: number | null | undefined; + schedule_status?: string | null | undefined; + addresses?: Array | undefined; + team_size?: number | null | undefined; + custom_fields?: Array | undefined; + row_version?: string | null | undefined; + updated_by?: string | null | undefined; + created_by?: string | null | undefined; + created_at?: string | null | undefined; + updated_at?: string | null | undefined; +}; + +/** @internal */ +export const Project$outboundSchema: z.ZodType< + Project$Outbound, + z.ZodTypeDef, + Project +> = z.object({ + id: z.string().optional(), + downstreamId: z.nullable(z.string()).optional(), + name: z.string(), + displayId: z.nullable(z.string()).optional(), + referenceId: z.nullable(z.string()).optional(), + description: z.nullable(z.string()).optional(), + status: z.nullable(ProjectProjectStatus$outboundSchema).optional(), + active: z.nullable(z.boolean()).optional(), + projectType: z.nullable(ProjectType$outboundSchema).optional(), + priority: z.nullable(Priority$outboundSchema).optional(), + completionPercentage: z.nullable(z.number()).optional(), + startDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) + .optional(), + endDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) + .optional(), + customer: z.nullable(LinkedCustomer$outboundSchema).optional(), + department: z.nullable(z.lazy(() => ProjectDepartment$outboundSchema)) + .optional(), + companyId: z.nullable(z.string()).optional(), + ownerId: z.nullable(z.string()).optional(), + parentProject: z.nullable(z.lazy(() => ParentProject$outboundSchema)) + .optional(), + currency: z.nullable(Currency$outboundSchema).optional(), + budgetAmount: z.nullable(z.number()).optional(), + approvedAmount: z.nullable(z.number()).optional(), + actualAmount: z.nullable(z.number()).optional(), + budgetHours: z.nullable(z.number()).optional(), + actualHours: z.nullable(z.number()).optional(), + hourlyRate: z.nullable(z.number()).optional(), + billingMethod: z.nullable(BillingMethod$outboundSchema).optional(), + isBillable: z.nullable(z.boolean().default(true)), + phase: z.nullable(ProjectPhase$outboundSchema).optional(), + taxRate: LinkedTaxRate$outboundSchema.optional(), + trackingCategories: z.nullable( + z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), + ).optional(), + tags: z.array(z.string()).optional(), + notes: z.nullable(z.string()).optional(), + contractNumber: z.nullable(z.string()).optional(), + profitMargin: z.nullable(z.number()).optional(), + scheduleStatus: z.nullable(ScheduleStatus$outboundSchema).optional(), + addresses: z.array(Address$outboundSchema).optional(), + teamSize: z.nullable(z.number().int()).optional(), + customFields: z.array(CustomField$outboundSchema).optional(), + rowVersion: z.nullable(z.string()).optional(), + updatedBy: z.nullable(z.string()).optional(), + createdBy: z.nullable(z.string()).optional(), + createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), + updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), +}).transform((v) => { + return remap$(v, { + downstreamId: "downstream_id", + displayId: "display_id", + referenceId: "reference_id", + projectType: "project_type", + completionPercentage: "completion_percentage", + startDate: "start_date", + endDate: "end_date", + companyId: "company_id", + ownerId: "owner_id", + parentProject: "parent_project", + budgetAmount: "budget_amount", + approvedAmount: "approved_amount", + actualAmount: "actual_amount", + budgetHours: "budget_hours", + actualHours: "actual_hours", + hourlyRate: "hourly_rate", + billingMethod: "billing_method", + isBillable: "is_billable", + taxRate: "tax_rate", + trackingCategories: "tracking_categories", + contractNumber: "contract_number", + profitMargin: "profit_margin", + scheduleStatus: "schedule_status", + teamSize: "team_size", + customFields: "custom_fields", + rowVersion: "row_version", + updatedBy: "updated_by", + createdBy: "created_by", + createdAt: "created_at", + updatedAt: "updated_at", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace Project$ { + /** @deprecated use `Project$inboundSchema` instead. */ + export const inboundSchema = Project$inboundSchema; + /** @deprecated use `Project$outboundSchema` instead. */ + export const outboundSchema = Project$outboundSchema; + /** @deprecated use `Project$Outbound` instead. */ + export type Outbound = Project$Outbound; +} + +export function projectToJSON(project: Project): string { + return JSON.stringify(Project$outboundSchema.parse(project)); +} + +export function projectFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => Project$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Project' from JSON`, + ); +} + +/** @internal */ +export const ProjectInput$inboundSchema: z.ZodType< + ProjectInput, + z.ZodTypeDef, + unknown +> = z.object({ + name: z.string(), + display_id: z.nullable(z.string()).optional(), + reference_id: z.nullable(z.string()).optional(), + description: z.nullable(z.string()).optional(), + status: z.nullable(ProjectProjectStatus$inboundSchema).optional(), + active: z.nullable(z.boolean()).optional(), + project_type: z.nullable(ProjectType$inboundSchema).optional(), + priority: z.nullable(Priority$inboundSchema).optional(), + completion_percentage: z.nullable(z.number()).optional(), + start_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), + end_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(), + customer: z.nullable(LinkedCustomerInput$inboundSchema).optional(), + department: z.nullable(z.lazy(() => ProjectDepartment$inboundSchema)) + .optional(), + company_id: z.nullable(z.string()).optional(), + owner_id: z.nullable(z.string()).optional(), + parent_project: z.nullable(z.lazy(() => ParentProject$inboundSchema)) + .optional(), + currency: z.nullable(Currency$inboundSchema).optional(), + budget_amount: z.nullable(z.number()).optional(), + approved_amount: z.nullable(z.number()).optional(), + budget_hours: z.nullable(z.number()).optional(), + hourly_rate: z.nullable(z.number()).optional(), + billing_method: z.nullable(BillingMethod$inboundSchema).optional(), + is_billable: z.nullable(z.boolean().default(true)), + phase: z.nullable(ProjectPhase$inboundSchema).optional(), + tax_rate: LinkedTaxRateInput$inboundSchema.optional(), + tracking_categories: z.nullable( + z.array(z.nullable(LinkedTrackingCategory$inboundSchema)), + ).optional(), + tags: z.array(z.string()).optional(), + notes: z.nullable(z.string()).optional(), + contract_number: z.nullable(z.string()).optional(), + profit_margin: z.nullable(z.number()).optional(), + schedule_status: z.nullable(ScheduleStatus$inboundSchema).optional(), + addresses: z.array(Address$inboundSchema).optional(), + team_size: z.nullable(z.number().int()).optional(), + custom_fields: z.array(CustomField$inboundSchema).optional(), + row_version: z.nullable(z.string()).optional(), +}).transform((v) => { + return remap$(v, { + "display_id": "displayId", + "reference_id": "referenceId", + "project_type": "projectType", + "completion_percentage": "completionPercentage", + "start_date": "startDate", + "end_date": "endDate", + "company_id": "companyId", + "owner_id": "ownerId", + "parent_project": "parentProject", + "budget_amount": "budgetAmount", + "approved_amount": "approvedAmount", + "budget_hours": "budgetHours", + "hourly_rate": "hourlyRate", + "billing_method": "billingMethod", + "is_billable": "isBillable", + "tax_rate": "taxRate", + "tracking_categories": "trackingCategories", + "contract_number": "contractNumber", + "profit_margin": "profitMargin", + "schedule_status": "scheduleStatus", + "team_size": "teamSize", + "custom_fields": "customFields", + "row_version": "rowVersion", + }); +}); + +/** @internal */ +export type ProjectInput$Outbound = { + name: string; + display_id?: string | null | undefined; + reference_id?: string | null | undefined; + description?: string | null | undefined; + status?: string | null | undefined; + active?: boolean | null | undefined; + project_type?: string | null | undefined; + priority?: string | null | undefined; + completion_percentage?: number | null | undefined; + start_date?: string | null | undefined; + end_date?: string | null | undefined; + customer?: LinkedCustomerInput$Outbound | null | undefined; + department?: ProjectDepartment$Outbound | null | undefined; + company_id?: string | null | undefined; + owner_id?: string | null | undefined; + parent_project?: ParentProject$Outbound | null | undefined; + currency?: string | null | undefined; + budget_amount?: number | null | undefined; + approved_amount?: number | null | undefined; + budget_hours?: number | null | undefined; + hourly_rate?: number | null | undefined; + billing_method?: string | null | undefined; + is_billable: boolean | null; + phase?: string | null | undefined; + tax_rate?: LinkedTaxRateInput$Outbound | undefined; + tracking_categories?: + | Array + | null + | undefined; + tags?: Array | undefined; + notes?: string | null | undefined; + contract_number?: string | null | undefined; + profit_margin?: number | null | undefined; + schedule_status?: string | null | undefined; + addresses?: Array | undefined; + team_size?: number | null | undefined; + custom_fields?: Array | undefined; + row_version?: string | null | undefined; +}; + +/** @internal */ +export const ProjectInput$outboundSchema: z.ZodType< + ProjectInput$Outbound, + z.ZodTypeDef, + ProjectInput +> = z.object({ + name: z.string(), + displayId: z.nullable(z.string()).optional(), + referenceId: z.nullable(z.string()).optional(), + description: z.nullable(z.string()).optional(), + status: z.nullable(ProjectProjectStatus$outboundSchema).optional(), + active: z.nullable(z.boolean()).optional(), + projectType: z.nullable(ProjectType$outboundSchema).optional(), + priority: z.nullable(Priority$outboundSchema).optional(), + completionPercentage: z.nullable(z.number()).optional(), + startDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) + .optional(), + endDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) + .optional(), + customer: z.nullable(LinkedCustomerInput$outboundSchema).optional(), + department: z.nullable(z.lazy(() => ProjectDepartment$outboundSchema)) + .optional(), + companyId: z.nullable(z.string()).optional(), + ownerId: z.nullable(z.string()).optional(), + parentProject: z.nullable(z.lazy(() => ParentProject$outboundSchema)) + .optional(), + currency: z.nullable(Currency$outboundSchema).optional(), + budgetAmount: z.nullable(z.number()).optional(), + approvedAmount: z.nullable(z.number()).optional(), + budgetHours: z.nullable(z.number()).optional(), + hourlyRate: z.nullable(z.number()).optional(), + billingMethod: z.nullable(BillingMethod$outboundSchema).optional(), + isBillable: z.nullable(z.boolean().default(true)), + phase: z.nullable(ProjectPhase$outboundSchema).optional(), + taxRate: LinkedTaxRateInput$outboundSchema.optional(), + trackingCategories: z.nullable( + z.array(z.nullable(LinkedTrackingCategory$outboundSchema)), + ).optional(), + tags: z.array(z.string()).optional(), + notes: z.nullable(z.string()).optional(), + contractNumber: z.nullable(z.string()).optional(), + profitMargin: z.nullable(z.number()).optional(), + scheduleStatus: z.nullable(ScheduleStatus$outboundSchema).optional(), + addresses: z.array(Address$outboundSchema).optional(), + teamSize: z.nullable(z.number().int()).optional(), + customFields: z.array(CustomField$outboundSchema).optional(), + rowVersion: z.nullable(z.string()).optional(), +}).transform((v) => { + return remap$(v, { + displayId: "display_id", + referenceId: "reference_id", + projectType: "project_type", + completionPercentage: "completion_percentage", + startDate: "start_date", + endDate: "end_date", + companyId: "company_id", + ownerId: "owner_id", + parentProject: "parent_project", + budgetAmount: "budget_amount", + approvedAmount: "approved_amount", + budgetHours: "budget_hours", + hourlyRate: "hourly_rate", + billingMethod: "billing_method", + isBillable: "is_billable", + taxRate: "tax_rate", + trackingCategories: "tracking_categories", + contractNumber: "contract_number", + profitMargin: "profit_margin", + scheduleStatus: "schedule_status", + teamSize: "team_size", + customFields: "custom_fields", + rowVersion: "row_version", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ProjectInput$ { + /** @deprecated use `ProjectInput$inboundSchema` instead. */ + export const inboundSchema = ProjectInput$inboundSchema; + /** @deprecated use `ProjectInput$outboundSchema` instead. */ + export const outboundSchema = ProjectInput$outboundSchema; + /** @deprecated use `ProjectInput$Outbound` instead. */ + export type Outbound = ProjectInput$Outbound; +} + +export function projectInputToJSON(projectInput: ProjectInput): string { + return JSON.stringify(ProjectInput$outboundSchema.parse(projectInput)); +} + +export function projectInputFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ProjectInput$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ProjectInput' from JSON`, + ); +} diff --git a/src/models/components/projectsfilter.ts b/src/models/components/projectsfilter.ts new file mode 100644 index 00000000..a080d86b --- /dev/null +++ b/src/models/components/projectsfilter.ts @@ -0,0 +1,136 @@ +/* + * 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 { ClosedEnum } from "../../types/enums.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * Status of projects to filter by + */ +export const ProjectStatus = { + Active: "active", + Completed: "completed", + OnHold: "on_hold", + Cancelled: "cancelled", + Draft: "draft", +} as const; +/** + * Status of projects to filter by + */ +export type ProjectStatus = ClosedEnum; + +export type ProjectsFilter = { + /** + * Name of project to search for + */ + name?: string | undefined; + /** + * Status of projects to filter by + */ + status?: ProjectStatus | undefined; + /** + * Filter projects by customer ID + */ + customerId?: string | undefined; + /** + * Return projects modified after this date + */ + updatedSince?: Date | undefined; +}; + +/** @internal */ +export const ProjectStatus$inboundSchema: z.ZodNativeEnum< + typeof ProjectStatus +> = z.nativeEnum(ProjectStatus); + +/** @internal */ +export const ProjectStatus$outboundSchema: z.ZodNativeEnum< + typeof ProjectStatus +> = ProjectStatus$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ProjectStatus$ { + /** @deprecated use `ProjectStatus$inboundSchema` instead. */ + export const inboundSchema = ProjectStatus$inboundSchema; + /** @deprecated use `ProjectStatus$outboundSchema` instead. */ + export const outboundSchema = ProjectStatus$outboundSchema; +} + +/** @internal */ +export const ProjectsFilter$inboundSchema: z.ZodType< + ProjectsFilter, + z.ZodTypeDef, + unknown +> = z.object({ + name: z.string().optional(), + status: ProjectStatus$inboundSchema.optional(), + customer_id: z.string().optional(), + updated_since: z.string().datetime({ offset: true }).transform(v => + new Date(v) + ).optional(), +}).transform((v) => { + return remap$(v, { + "customer_id": "customerId", + "updated_since": "updatedSince", + }); +}); + +/** @internal */ +export type ProjectsFilter$Outbound = { + name?: string | undefined; + status?: string | undefined; + customer_id?: string | undefined; + updated_since?: string | undefined; +}; + +/** @internal */ +export const ProjectsFilter$outboundSchema: z.ZodType< + ProjectsFilter$Outbound, + z.ZodTypeDef, + ProjectsFilter +> = z.object({ + name: z.string().optional(), + status: ProjectStatus$outboundSchema.optional(), + customerId: z.string().optional(), + updatedSince: z.date().transform(v => v.toISOString()).optional(), +}).transform((v) => { + return remap$(v, { + customerId: "customer_id", + updatedSince: "updated_since", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ProjectsFilter$ { + /** @deprecated use `ProjectsFilter$inboundSchema` instead. */ + export const inboundSchema = ProjectsFilter$inboundSchema; + /** @deprecated use `ProjectsFilter$outboundSchema` instead. */ + export const outboundSchema = ProjectsFilter$outboundSchema; + /** @deprecated use `ProjectsFilter$Outbound` instead. */ + export type Outbound = ProjectsFilter$Outbound; +} + +export function projectsFilterToJSON(projectsFilter: ProjectsFilter): string { + return JSON.stringify(ProjectsFilter$outboundSchema.parse(projectsFilter)); +} + +export function projectsFilterFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ProjectsFilter$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ProjectsFilter' from JSON`, + ); +} diff --git a/src/models/components/projectssort.ts b/src/models/components/projectssort.ts new file mode 100644 index 00000000..dfd665d8 --- /dev/null +++ b/src/models/components/projectssort.ts @@ -0,0 +1,117 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { safeParse } from "../../lib/schemas.js"; +import { ClosedEnum } from "../../types/enums.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + SortDirection, + SortDirection$inboundSchema, + SortDirection$outboundSchema, +} from "./sortdirection.js"; + +/** + * The field to sort by + */ +export const ProjectsSortSortBy = { + Name: "name", + Status: "status", + StartDate: "start_date", + EndDate: "end_date", + BudgetAmount: "budget_amount", + ActualAmount: "actual_amount", + CreatedAt: "created_at", + UpdatedAt: "updated_at", +} as const; +/** + * The field to sort by + */ +export type ProjectsSortSortBy = ClosedEnum; + +export type ProjectsSort = { + /** + * The field to sort by + */ + by?: ProjectsSortSortBy | undefined; + /** + * The direction in which to sort the results + */ + direction?: SortDirection | undefined; +}; + +/** @internal */ +export const ProjectsSortSortBy$inboundSchema: z.ZodNativeEnum< + typeof ProjectsSortSortBy +> = z.nativeEnum(ProjectsSortSortBy); + +/** @internal */ +export const ProjectsSortSortBy$outboundSchema: z.ZodNativeEnum< + typeof ProjectsSortSortBy +> = ProjectsSortSortBy$inboundSchema; + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ProjectsSortSortBy$ { + /** @deprecated use `ProjectsSortSortBy$inboundSchema` instead. */ + export const inboundSchema = ProjectsSortSortBy$inboundSchema; + /** @deprecated use `ProjectsSortSortBy$outboundSchema` instead. */ + export const outboundSchema = ProjectsSortSortBy$outboundSchema; +} + +/** @internal */ +export const ProjectsSort$inboundSchema: z.ZodType< + ProjectsSort, + z.ZodTypeDef, + unknown +> = z.object({ + by: ProjectsSortSortBy$inboundSchema.optional(), + direction: SortDirection$inboundSchema.default("asc"), +}); + +/** @internal */ +export type ProjectsSort$Outbound = { + by?: string | undefined; + direction: string; +}; + +/** @internal */ +export const ProjectsSort$outboundSchema: z.ZodType< + ProjectsSort$Outbound, + z.ZodTypeDef, + ProjectsSort +> = z.object({ + by: ProjectsSortSortBy$outboundSchema.optional(), + direction: SortDirection$outboundSchema.default("asc"), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace ProjectsSort$ { + /** @deprecated use `ProjectsSort$inboundSchema` instead. */ + export const inboundSchema = ProjectsSort$inboundSchema; + /** @deprecated use `ProjectsSort$outboundSchema` instead. */ + export const outboundSchema = ProjectsSort$outboundSchema; + /** @deprecated use `ProjectsSort$Outbound` instead. */ + export type Outbound = ProjectsSort$Outbound; +} + +export function projectsSortToJSON(projectsSort: ProjectsSort): string { + return JSON.stringify(ProjectsSort$outboundSchema.parse(projectsSort)); +} + +export function projectsSortFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ProjectsSort$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ProjectsSort' from JSON`, + ); +} diff --git a/src/models/components/quotelineitem.ts b/src/models/components/quotelineitem.ts index fecc0db0..934b4ce1 100644 --- a/src/models/components/quotelineitem.ts +++ b/src/models/components/quotelineitem.ts @@ -7,6 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; +import { RFCDate } from "../../types/rfcdate.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CustomField, @@ -114,6 +115,10 @@ export type QuoteLineItem = { * Discount amount applied to the line item when supported downstream. */ discountAmount?: number | null | undefined; + /** + * Date on which the service was provided or performed - YYYY-MM-DD. + */ + serviceDate?: RFCDate | null | undefined; /** * ID of the category of the line item */ @@ -203,6 +208,10 @@ export type QuoteLineItemInput = { * Discount amount applied to the line item when supported downstream. */ discountAmount?: number | null | undefined; + /** + * Date on which the service was provided or performed - YYYY-MM-DD. + */ + serviceDate?: RFCDate | null | undefined; /** * ID of the category of the line item */ @@ -269,6 +278,8 @@ export const QuoteLineItem$inboundSchema: z.ZodType< unit_of_measure: z.nullable(z.string()).optional(), discount_percentage: z.nullable(z.number()).optional(), discount_amount: z.nullable(z.number()).optional(), + service_date: z.nullable(z.string().transform(v => new RFCDate(v))) + .optional(), category_id: z.nullable(z.string()).optional(), location_id: z.nullable(z.string()).optional(), department_id: z.nullable(z.string()).optional(), @@ -298,6 +309,7 @@ export const QuoteLineItem$inboundSchema: z.ZodType< "unit_of_measure": "unitOfMeasure", "discount_percentage": "discountPercentage", "discount_amount": "discountAmount", + "service_date": "serviceDate", "category_id": "categoryId", "location_id": "locationId", "department_id": "departmentId", @@ -328,6 +340,7 @@ export type QuoteLineItem$Outbound = { unit_of_measure?: string | null | undefined; discount_percentage?: number | null | undefined; discount_amount?: number | null | undefined; + service_date?: string | null | undefined; category_id?: string | null | undefined; location_id?: string | null | undefined; department_id?: string | null | undefined; @@ -365,6 +378,8 @@ export const QuoteLineItem$outboundSchema: z.ZodType< unitOfMeasure: z.nullable(z.string()).optional(), discountPercentage: z.nullable(z.number()).optional(), discountAmount: z.nullable(z.number()).optional(), + serviceDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) + .optional(), categoryId: z.nullable(z.string()).optional(), locationId: z.nullable(z.string()).optional(), departmentId: z.nullable(z.string()).optional(), @@ -390,6 +405,7 @@ export const QuoteLineItem$outboundSchema: z.ZodType< unitOfMeasure: "unit_of_measure", discountPercentage: "discount_percentage", discountAmount: "discount_amount", + serviceDate: "service_date", categoryId: "category_id", locationId: "location_id", departmentId: "department_id", @@ -451,6 +467,8 @@ export const QuoteLineItemInput$inboundSchema: z.ZodType< unit_of_measure: z.nullable(z.string()).optional(), discount_percentage: z.nullable(z.number()).optional(), discount_amount: z.nullable(z.number()).optional(), + service_date: z.nullable(z.string().transform(v => new RFCDate(v))) + .optional(), category_id: z.nullable(z.string()).optional(), location_id: z.nullable(z.string()).optional(), department_id: z.nullable(z.string()).optional(), @@ -472,6 +490,7 @@ export const QuoteLineItemInput$inboundSchema: z.ZodType< "unit_of_measure": "unitOfMeasure", "discount_percentage": "discountPercentage", "discount_amount": "discountAmount", + "service_date": "serviceDate", "category_id": "categoryId", "location_id": "locationId", "department_id": "departmentId", @@ -498,6 +517,7 @@ export type QuoteLineItemInput$Outbound = { unit_of_measure?: string | null | undefined; discount_percentage?: number | null | undefined; discount_amount?: number | null | undefined; + service_date?: string | null | undefined; category_id?: string | null | undefined; location_id?: string | null | undefined; department_id?: string | null | undefined; @@ -531,6 +551,8 @@ export const QuoteLineItemInput$outboundSchema: z.ZodType< unitOfMeasure: z.nullable(z.string()).optional(), discountPercentage: z.nullable(z.number()).optional(), discountAmount: z.nullable(z.number()).optional(), + serviceDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())) + .optional(), categoryId: z.nullable(z.string()).optional(), locationId: z.nullable(z.string()).optional(), departmentId: z.nullable(z.string()).optional(), @@ -552,6 +574,7 @@ export const QuoteLineItemInput$outboundSchema: z.ZodType< unitOfMeasure: "unit_of_measure", discountPercentage: "discount_percentage", discountAmount: "discount_amount", + serviceDate: "service_date", categoryId: "category_id", locationId: "location_id", departmentId: "department_id", diff --git a/src/models/components/ticket.ts b/src/models/components/ticket.ts index 60f652a4..6a01867e 100644 --- a/src/models/components/ticket.ts +++ b/src/models/components/ticket.ts @@ -42,7 +42,7 @@ import { /** * Priority of the ticket */ -export const Priority = { +export const TicketPriority = { Low: "low", Normal: "normal", High: "high", @@ -51,7 +51,7 @@ export const Priority = { /** * Priority of the ticket */ -export type Priority = ClosedEnum; +export type TicketPriority = ClosedEnum; export type Ticket = { /** @@ -85,7 +85,7 @@ export type Ticket = { /** * Priority of the ticket */ - priority?: Priority | null | undefined; + priority?: TicketPriority | null | undefined; assignees?: Array | undefined; /** * The date and time when the object was last updated. @@ -142,7 +142,7 @@ export type TicketInput = { /** * Priority of the ticket */ - priority?: Priority | null | undefined; + priority?: TicketPriority | null | undefined; assignees?: Array | undefined; /** * Due date of the ticket @@ -156,22 +156,24 @@ export type TicketInput = { }; /** @internal */ -export const Priority$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(Priority); +export const TicketPriority$inboundSchema: z.ZodNativeEnum< + typeof TicketPriority +> = z.nativeEnum(TicketPriority); /** @internal */ -export const Priority$outboundSchema: z.ZodNativeEnum = - Priority$inboundSchema; +export const TicketPriority$outboundSchema: z.ZodNativeEnum< + typeof TicketPriority +> = TicketPriority$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace Priority$ { - /** @deprecated use `Priority$inboundSchema` instead. */ - export const inboundSchema = Priority$inboundSchema; - /** @deprecated use `Priority$outboundSchema` instead. */ - export const outboundSchema = Priority$outboundSchema; +export namespace TicketPriority$ { + /** @deprecated use `TicketPriority$inboundSchema` instead. */ + export const inboundSchema = TicketPriority$inboundSchema; + /** @deprecated use `TicketPriority$outboundSchema` instead. */ + export const outboundSchema = TicketPriority$outboundSchema; } /** @internal */ @@ -184,7 +186,7 @@ export const Ticket$inboundSchema: z.ZodType = z subject: z.nullable(z.string()).optional(), description: z.nullable(z.string()).optional(), status: z.nullable(z.string()).optional(), - priority: z.nullable(Priority$inboundSchema).optional(), + priority: z.nullable(TicketPriority$inboundSchema).optional(), assignees: z.array(Assignee$inboundSchema).optional(), updated_at: z.nullable( z.string().datetime({ offset: true }).transform(v => new Date(v)), @@ -250,7 +252,7 @@ export const Ticket$outboundSchema: z.ZodType< subject: z.nullable(z.string()).optional(), description: z.nullable(z.string()).optional(), status: z.nullable(z.string()).optional(), - priority: z.nullable(Priority$outboundSchema).optional(), + priority: z.nullable(TicketPriority$outboundSchema).optional(), assignees: z.array(Assignee$outboundSchema).optional(), updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), @@ -312,7 +314,7 @@ export const TicketInput$inboundSchema: z.ZodType< subject: z.nullable(z.string()).optional(), description: z.nullable(z.string()).optional(), status: z.nullable(z.string()).optional(), - priority: z.nullable(Priority$inboundSchema).optional(), + priority: z.nullable(TicketPriority$inboundSchema).optional(), assignees: z.array(AssigneeInput$inboundSchema).optional(), due_date: z.nullable( z.string().datetime({ offset: true }).transform(v => new Date(v)), @@ -352,7 +354,7 @@ export const TicketInput$outboundSchema: z.ZodType< subject: z.nullable(z.string()).optional(), description: z.nullable(z.string()).optional(), status: z.nullable(z.string()).optional(), - priority: z.nullable(Priority$outboundSchema).optional(), + priority: z.nullable(TicketPriority$outboundSchema).optional(), assignees: z.array(AssigneeInput$outboundSchema).optional(), dueDate: z.nullable(z.date().transform(v => v.toISOString())).optional(), tags: z.array(CollectionTagInput$outboundSchema).optional(), diff --git a/src/models/components/updateprojectresponse.ts b/src/models/components/updateprojectresponse.ts new file mode 100644 index 00000000..44083386 --- /dev/null +++ b/src/models/components/updateprojectresponse.ts @@ -0,0 +1,122 @@ +/* + * 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 { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + UnifiedId, + UnifiedId$inboundSchema, + UnifiedId$Outbound, + UnifiedId$outboundSchema, +} from "./unifiedid.js"; + +/** + * Projects + */ +export type UpdateProjectResponse = { + /** + * HTTP Response Status Code + */ + statusCode: number; + /** + * HTTP Response Status + */ + status: string; + /** + * Apideck ID of service provider + */ + service: string; + /** + * Unified API resource name + */ + resource: string; + /** + * Operation performed + */ + operation: string; + /** + * A object containing a unique identifier for the resource that was created, updated, or deleted. + */ + data: UnifiedId; +}; + +/** @internal */ +export const UpdateProjectResponse$inboundSchema: z.ZodType< + UpdateProjectResponse, + z.ZodTypeDef, + unknown +> = z.object({ + status_code: z.number().int(), + status: z.string(), + service: z.string(), + resource: z.string(), + operation: z.string(), + data: UnifiedId$inboundSchema, +}).transform((v) => { + return remap$(v, { + "status_code": "statusCode", + }); +}); + +/** @internal */ +export type UpdateProjectResponse$Outbound = { + status_code: number; + status: string; + service: string; + resource: string; + operation: string; + data: UnifiedId$Outbound; +}; + +/** @internal */ +export const UpdateProjectResponse$outboundSchema: z.ZodType< + UpdateProjectResponse$Outbound, + z.ZodTypeDef, + UpdateProjectResponse +> = z.object({ + statusCode: z.number().int(), + status: z.string(), + service: z.string(), + resource: z.string(), + operation: z.string(), + data: UnifiedId$outboundSchema, +}).transform((v) => { + return remap$(v, { + statusCode: "status_code", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace UpdateProjectResponse$ { + /** @deprecated use `UpdateProjectResponse$inboundSchema` instead. */ + export const inboundSchema = UpdateProjectResponse$inboundSchema; + /** @deprecated use `UpdateProjectResponse$outboundSchema` instead. */ + export const outboundSchema = UpdateProjectResponse$outboundSchema; + /** @deprecated use `UpdateProjectResponse$Outbound` instead. */ + export type Outbound = UpdateProjectResponse$Outbound; +} + +export function updateProjectResponseToJSON( + updateProjectResponse: UpdateProjectResponse, +): string { + return JSON.stringify( + UpdateProjectResponse$outboundSchema.parse(updateProjectResponse), + ); +} + +export function updateProjectResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UpdateProjectResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UpdateProjectResponse' from JSON`, + ); +} diff --git a/src/models/components/webhookeventtype.ts b/src/models/components/webhookeventtype.ts index 3192eaba..3add9ef1 100644 --- a/src/models/components/webhookeventtype.ts +++ b/src/models/components/webhookeventtype.ts @@ -127,6 +127,9 @@ export const WebhookEventType = { AccountingQuoteCreated: "accounting.quote.created", AccountingQuoteUpdated: "accounting.quote.updated", AccountingQuoteDeleted: "accounting.quote.deleted", + AccountingProjectCreated: "accounting.project.created", + AccountingProjectUpdated: "accounting.project.updated", + AccountingProjectDeleted: "accounting.project.deleted", } as const; export type WebhookEventType = ClosedEnum; diff --git a/src/models/operations/accountingprojectsadd.ts b/src/models/operations/accountingprojectsadd.ts new file mode 100644 index 00000000..7ed7afcd --- /dev/null +++ b/src/models/operations/accountingprojectsadd.ts @@ -0,0 +1,268 @@ +/* + * 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 AccountingProjectsAddGlobals = { + /** + * ID of the consumer which you want to get or push data from + */ + consumerId?: string | undefined; + /** + * The ID of your Unify application + */ + appId?: string | undefined; +}; + +export type AccountingProjectsAddRequest = { + /** + * Include raw response. Mostly used for debugging purposes + */ + raw?: boolean | undefined; + /** + * ID of the consumer which you want to get or push data from + */ + consumerId?: string | undefined; + /** + * The ID of your Unify application + */ + appId?: string | undefined; + /** + * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. + */ + serviceId?: string | undefined; + project: components.ProjectInput; +}; + +export type AccountingProjectsAddResponse = { + httpMeta: components.HTTPMetadata; + /** + * Projects + */ + createProjectResponse?: components.CreateProjectResponse | undefined; + /** + * Unexpected error + */ + unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; +}; + +/** @internal */ +export const AccountingProjectsAddGlobals$inboundSchema: z.ZodType< + AccountingProjectsAddGlobals, + z.ZodTypeDef, + unknown +> = z.object({ + consumerId: z.string().optional(), + appId: z.string().optional(), +}); + +/** @internal */ +export type AccountingProjectsAddGlobals$Outbound = { + consumerId?: string | undefined; + appId?: string | undefined; +}; + +/** @internal */ +export const AccountingProjectsAddGlobals$outboundSchema: z.ZodType< + AccountingProjectsAddGlobals$Outbound, + z.ZodTypeDef, + AccountingProjectsAddGlobals +> = z.object({ + consumerId: z.string().optional(), + appId: z.string().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AccountingProjectsAddGlobals$ { + /** @deprecated use `AccountingProjectsAddGlobals$inboundSchema` instead. */ + export const inboundSchema = AccountingProjectsAddGlobals$inboundSchema; + /** @deprecated use `AccountingProjectsAddGlobals$outboundSchema` instead. */ + export const outboundSchema = AccountingProjectsAddGlobals$outboundSchema; + /** @deprecated use `AccountingProjectsAddGlobals$Outbound` instead. */ + export type Outbound = AccountingProjectsAddGlobals$Outbound; +} + +export function accountingProjectsAddGlobalsToJSON( + accountingProjectsAddGlobals: AccountingProjectsAddGlobals, +): string { + return JSON.stringify( + AccountingProjectsAddGlobals$outboundSchema.parse( + accountingProjectsAddGlobals, + ), + ); +} + +export function accountingProjectsAddGlobalsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AccountingProjectsAddGlobals$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AccountingProjectsAddGlobals' from JSON`, + ); +} + +/** @internal */ +export const AccountingProjectsAddRequest$inboundSchema: z.ZodType< + AccountingProjectsAddRequest, + z.ZodTypeDef, + unknown +> = z.object({ + raw: z.boolean().default(false), + consumerId: z.string().optional(), + appId: z.string().optional(), + serviceId: z.string().optional(), + Project: components.ProjectInput$inboundSchema, +}).transform((v) => { + return remap$(v, { + "Project": "project", + }); +}); + +/** @internal */ +export type AccountingProjectsAddRequest$Outbound = { + raw: boolean; + consumerId?: string | undefined; + appId?: string | undefined; + serviceId?: string | undefined; + Project: components.ProjectInput$Outbound; +}; + +/** @internal */ +export const AccountingProjectsAddRequest$outboundSchema: z.ZodType< + AccountingProjectsAddRequest$Outbound, + z.ZodTypeDef, + AccountingProjectsAddRequest +> = z.object({ + raw: z.boolean().default(false), + consumerId: z.string().optional(), + appId: z.string().optional(), + serviceId: z.string().optional(), + project: components.ProjectInput$outboundSchema, +}).transform((v) => { + return remap$(v, { + project: "Project", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AccountingProjectsAddRequest$ { + /** @deprecated use `AccountingProjectsAddRequest$inboundSchema` instead. */ + export const inboundSchema = AccountingProjectsAddRequest$inboundSchema; + /** @deprecated use `AccountingProjectsAddRequest$outboundSchema` instead. */ + export const outboundSchema = AccountingProjectsAddRequest$outboundSchema; + /** @deprecated use `AccountingProjectsAddRequest$Outbound` instead. */ + export type Outbound = AccountingProjectsAddRequest$Outbound; +} + +export function accountingProjectsAddRequestToJSON( + accountingProjectsAddRequest: AccountingProjectsAddRequest, +): string { + return JSON.stringify( + AccountingProjectsAddRequest$outboundSchema.parse( + accountingProjectsAddRequest, + ), + ); +} + +export function accountingProjectsAddRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AccountingProjectsAddRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AccountingProjectsAddRequest' from JSON`, + ); +} + +/** @internal */ +export const AccountingProjectsAddResponse$inboundSchema: z.ZodType< + AccountingProjectsAddResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + CreateProjectResponse: components.CreateProjectResponse$inboundSchema + .optional(), + UnexpectedErrorResponse: components.UnexpectedErrorResponse$inboundSchema + .optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + "CreateProjectResponse": "createProjectResponse", + "UnexpectedErrorResponse": "unexpectedErrorResponse", + }); +}); + +/** @internal */ +export type AccountingProjectsAddResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + CreateProjectResponse?: components.CreateProjectResponse$Outbound | undefined; + UnexpectedErrorResponse?: + | components.UnexpectedErrorResponse$Outbound + | undefined; +}; + +/** @internal */ +export const AccountingProjectsAddResponse$outboundSchema: z.ZodType< + AccountingProjectsAddResponse$Outbound, + z.ZodTypeDef, + AccountingProjectsAddResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + createProjectResponse: components.CreateProjectResponse$outboundSchema + .optional(), + unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema + .optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + createProjectResponse: "CreateProjectResponse", + unexpectedErrorResponse: "UnexpectedErrorResponse", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AccountingProjectsAddResponse$ { + /** @deprecated use `AccountingProjectsAddResponse$inboundSchema` instead. */ + export const inboundSchema = AccountingProjectsAddResponse$inboundSchema; + /** @deprecated use `AccountingProjectsAddResponse$outboundSchema` instead. */ + export const outboundSchema = AccountingProjectsAddResponse$outboundSchema; + /** @deprecated use `AccountingProjectsAddResponse$Outbound` instead. */ + export type Outbound = AccountingProjectsAddResponse$Outbound; +} + +export function accountingProjectsAddResponseToJSON( + accountingProjectsAddResponse: AccountingProjectsAddResponse, +): string { + return JSON.stringify( + AccountingProjectsAddResponse$outboundSchema.parse( + accountingProjectsAddResponse, + ), + ); +} + +export function accountingProjectsAddResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AccountingProjectsAddResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AccountingProjectsAddResponse' from JSON`, + ); +} diff --git a/src/models/operations/accountingprojectsall.ts b/src/models/operations/accountingprojectsall.ts new file mode 100644 index 00000000..45c407f9 --- /dev/null +++ b/src/models/operations/accountingprojectsall.ts @@ -0,0 +1,304 @@ +/* + * 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 AccountingProjectsAllGlobals = { + /** + * ID of the consumer which you want to get or push data from + */ + consumerId?: string | undefined; + /** + * The ID of your Unify application + */ + appId?: string | undefined; +}; + +export type AccountingProjectsAllRequest = { + /** + * Include raw response. Mostly used for debugging purposes + */ + raw?: boolean | undefined; + /** + * ID of the consumer which you want to get or push data from + */ + consumerId?: string | undefined; + /** + * The ID of your Unify application + */ + appId?: string | undefined; + /** + * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. + */ + serviceId?: string | undefined; + /** + * Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. + */ + cursor?: string | null | undefined; + /** + * Number of results to return. Minimum 1, Maximum 200, Default 20 + */ + limit?: number | undefined; + /** + * Apply filters + */ + filter?: components.ProjectsFilter | undefined; + /** + * Apply sorting + */ + sort?: components.ProjectsSort | undefined; + /** + * Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads + */ + passThrough?: { [k: string]: any } | undefined; + /** + * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. + */ + fields?: string | null | undefined; +}; + +export type AccountingProjectsAllResponse = { + httpMeta: components.HTTPMetadata; + /** + * Projects + */ + getProjectsResponse?: components.GetProjectsResponse | undefined; + /** + * Unexpected error + */ + unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; +}; + +/** @internal */ +export const AccountingProjectsAllGlobals$inboundSchema: z.ZodType< + AccountingProjectsAllGlobals, + z.ZodTypeDef, + unknown +> = z.object({ + consumerId: z.string().optional(), + appId: z.string().optional(), +}); + +/** @internal */ +export type AccountingProjectsAllGlobals$Outbound = { + consumerId?: string | undefined; + appId?: string | undefined; +}; + +/** @internal */ +export const AccountingProjectsAllGlobals$outboundSchema: z.ZodType< + AccountingProjectsAllGlobals$Outbound, + z.ZodTypeDef, + AccountingProjectsAllGlobals +> = z.object({ + consumerId: z.string().optional(), + appId: z.string().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AccountingProjectsAllGlobals$ { + /** @deprecated use `AccountingProjectsAllGlobals$inboundSchema` instead. */ + export const inboundSchema = AccountingProjectsAllGlobals$inboundSchema; + /** @deprecated use `AccountingProjectsAllGlobals$outboundSchema` instead. */ + export const outboundSchema = AccountingProjectsAllGlobals$outboundSchema; + /** @deprecated use `AccountingProjectsAllGlobals$Outbound` instead. */ + export type Outbound = AccountingProjectsAllGlobals$Outbound; +} + +export function accountingProjectsAllGlobalsToJSON( + accountingProjectsAllGlobals: AccountingProjectsAllGlobals, +): string { + return JSON.stringify( + AccountingProjectsAllGlobals$outboundSchema.parse( + accountingProjectsAllGlobals, + ), + ); +} + +export function accountingProjectsAllGlobalsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AccountingProjectsAllGlobals$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AccountingProjectsAllGlobals' from JSON`, + ); +} + +/** @internal */ +export const AccountingProjectsAllRequest$inboundSchema: z.ZodType< + AccountingProjectsAllRequest, + z.ZodTypeDef, + unknown +> = z.object({ + raw: z.boolean().default(false), + consumerId: z.string().optional(), + appId: z.string().optional(), + serviceId: z.string().optional(), + cursor: z.nullable(z.string()).optional(), + limit: z.number().int().default(20), + filter: components.ProjectsFilter$inboundSchema.optional(), + sort: components.ProjectsSort$inboundSchema.optional(), + pass_through: z.record(z.any()).optional(), + fields: z.nullable(z.string()).optional(), +}).transform((v) => { + return remap$(v, { + "pass_through": "passThrough", + }); +}); + +/** @internal */ +export type AccountingProjectsAllRequest$Outbound = { + raw: boolean; + consumerId?: string | undefined; + appId?: string | undefined; + serviceId?: string | undefined; + cursor?: string | null | undefined; + limit: number; + filter?: components.ProjectsFilter$Outbound | undefined; + sort?: components.ProjectsSort$Outbound | undefined; + pass_through?: { [k: string]: any } | undefined; + fields?: string | null | undefined; +}; + +/** @internal */ +export const AccountingProjectsAllRequest$outboundSchema: z.ZodType< + AccountingProjectsAllRequest$Outbound, + z.ZodTypeDef, + AccountingProjectsAllRequest +> = z.object({ + raw: z.boolean().default(false), + consumerId: z.string().optional(), + appId: z.string().optional(), + serviceId: z.string().optional(), + cursor: z.nullable(z.string()).optional(), + limit: z.number().int().default(20), + filter: components.ProjectsFilter$outboundSchema.optional(), + sort: components.ProjectsSort$outboundSchema.optional(), + passThrough: z.record(z.any()).optional(), + fields: z.nullable(z.string()).optional(), +}).transform((v) => { + return remap$(v, { + passThrough: "pass_through", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AccountingProjectsAllRequest$ { + /** @deprecated use `AccountingProjectsAllRequest$inboundSchema` instead. */ + export const inboundSchema = AccountingProjectsAllRequest$inboundSchema; + /** @deprecated use `AccountingProjectsAllRequest$outboundSchema` instead. */ + export const outboundSchema = AccountingProjectsAllRequest$outboundSchema; + /** @deprecated use `AccountingProjectsAllRequest$Outbound` instead. */ + export type Outbound = AccountingProjectsAllRequest$Outbound; +} + +export function accountingProjectsAllRequestToJSON( + accountingProjectsAllRequest: AccountingProjectsAllRequest, +): string { + return JSON.stringify( + AccountingProjectsAllRequest$outboundSchema.parse( + accountingProjectsAllRequest, + ), + ); +} + +export function accountingProjectsAllRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AccountingProjectsAllRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AccountingProjectsAllRequest' from JSON`, + ); +} + +/** @internal */ +export const AccountingProjectsAllResponse$inboundSchema: z.ZodType< + AccountingProjectsAllResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + GetProjectsResponse: components.GetProjectsResponse$inboundSchema.optional(), + UnexpectedErrorResponse: components.UnexpectedErrorResponse$inboundSchema + .optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + "GetProjectsResponse": "getProjectsResponse", + "UnexpectedErrorResponse": "unexpectedErrorResponse", + }); +}); + +/** @internal */ +export type AccountingProjectsAllResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + GetProjectsResponse?: components.GetProjectsResponse$Outbound | undefined; + UnexpectedErrorResponse?: + | components.UnexpectedErrorResponse$Outbound + | undefined; +}; + +/** @internal */ +export const AccountingProjectsAllResponse$outboundSchema: z.ZodType< + AccountingProjectsAllResponse$Outbound, + z.ZodTypeDef, + AccountingProjectsAllResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + getProjectsResponse: components.GetProjectsResponse$outboundSchema.optional(), + unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema + .optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + getProjectsResponse: "GetProjectsResponse", + unexpectedErrorResponse: "UnexpectedErrorResponse", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AccountingProjectsAllResponse$ { + /** @deprecated use `AccountingProjectsAllResponse$inboundSchema` instead. */ + export const inboundSchema = AccountingProjectsAllResponse$inboundSchema; + /** @deprecated use `AccountingProjectsAllResponse$outboundSchema` instead. */ + export const outboundSchema = AccountingProjectsAllResponse$outboundSchema; + /** @deprecated use `AccountingProjectsAllResponse$Outbound` instead. */ + export type Outbound = AccountingProjectsAllResponse$Outbound; +} + +export function accountingProjectsAllResponseToJSON( + accountingProjectsAllResponse: AccountingProjectsAllResponse, +): string { + return JSON.stringify( + AccountingProjectsAllResponse$outboundSchema.parse( + accountingProjectsAllResponse, + ), + ); +} + +export function accountingProjectsAllResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AccountingProjectsAllResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AccountingProjectsAllResponse' from JSON`, + ); +} diff --git a/src/models/operations/accountingprojectsdelete.ts b/src/models/operations/accountingprojectsdelete.ts new file mode 100644 index 00000000..d8601ad7 --- /dev/null +++ b/src/models/operations/accountingprojectsdelete.ts @@ -0,0 +1,263 @@ +/* + * 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 AccountingProjectsDeleteGlobals = { + /** + * ID of the consumer which you want to get or push data from + */ + consumerId?: string | undefined; + /** + * The ID of your Unify application + */ + appId?: string | undefined; +}; + +export type AccountingProjectsDeleteRequest = { + /** + * ID of the record you are acting upon. + */ + id: string; + /** + * ID of the consumer which you want to get or push data from + */ + consumerId?: string | undefined; + /** + * The ID of your Unify application + */ + appId?: string | undefined; + /** + * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. + */ + serviceId?: string | undefined; + /** + * Include raw response. Mostly used for debugging purposes + */ + raw?: boolean | undefined; +}; + +export type AccountingProjectsDeleteResponse = { + httpMeta: components.HTTPMetadata; + /** + * Projects + */ + deleteProjectResponse?: components.DeleteProjectResponse | undefined; + /** + * Unexpected error + */ + unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; +}; + +/** @internal */ +export const AccountingProjectsDeleteGlobals$inboundSchema: z.ZodType< + AccountingProjectsDeleteGlobals, + z.ZodTypeDef, + unknown +> = z.object({ + consumerId: z.string().optional(), + appId: z.string().optional(), +}); + +/** @internal */ +export type AccountingProjectsDeleteGlobals$Outbound = { + consumerId?: string | undefined; + appId?: string | undefined; +}; + +/** @internal */ +export const AccountingProjectsDeleteGlobals$outboundSchema: z.ZodType< + AccountingProjectsDeleteGlobals$Outbound, + z.ZodTypeDef, + AccountingProjectsDeleteGlobals +> = z.object({ + consumerId: z.string().optional(), + appId: z.string().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AccountingProjectsDeleteGlobals$ { + /** @deprecated use `AccountingProjectsDeleteGlobals$inboundSchema` instead. */ + export const inboundSchema = AccountingProjectsDeleteGlobals$inboundSchema; + /** @deprecated use `AccountingProjectsDeleteGlobals$outboundSchema` instead. */ + export const outboundSchema = AccountingProjectsDeleteGlobals$outboundSchema; + /** @deprecated use `AccountingProjectsDeleteGlobals$Outbound` instead. */ + export type Outbound = AccountingProjectsDeleteGlobals$Outbound; +} + +export function accountingProjectsDeleteGlobalsToJSON( + accountingProjectsDeleteGlobals: AccountingProjectsDeleteGlobals, +): string { + return JSON.stringify( + AccountingProjectsDeleteGlobals$outboundSchema.parse( + accountingProjectsDeleteGlobals, + ), + ); +} + +export function accountingProjectsDeleteGlobalsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AccountingProjectsDeleteGlobals$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AccountingProjectsDeleteGlobals' from JSON`, + ); +} + +/** @internal */ +export const AccountingProjectsDeleteRequest$inboundSchema: z.ZodType< + AccountingProjectsDeleteRequest, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), + consumerId: z.string().optional(), + appId: z.string().optional(), + serviceId: z.string().optional(), + raw: z.boolean().default(false), +}); + +/** @internal */ +export type AccountingProjectsDeleteRequest$Outbound = { + id: string; + consumerId?: string | undefined; + appId?: string | undefined; + serviceId?: string | undefined; + raw: boolean; +}; + +/** @internal */ +export const AccountingProjectsDeleteRequest$outboundSchema: z.ZodType< + AccountingProjectsDeleteRequest$Outbound, + z.ZodTypeDef, + AccountingProjectsDeleteRequest +> = z.object({ + id: z.string(), + consumerId: z.string().optional(), + appId: z.string().optional(), + serviceId: z.string().optional(), + raw: z.boolean().default(false), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AccountingProjectsDeleteRequest$ { + /** @deprecated use `AccountingProjectsDeleteRequest$inboundSchema` instead. */ + export const inboundSchema = AccountingProjectsDeleteRequest$inboundSchema; + /** @deprecated use `AccountingProjectsDeleteRequest$outboundSchema` instead. */ + export const outboundSchema = AccountingProjectsDeleteRequest$outboundSchema; + /** @deprecated use `AccountingProjectsDeleteRequest$Outbound` instead. */ + export type Outbound = AccountingProjectsDeleteRequest$Outbound; +} + +export function accountingProjectsDeleteRequestToJSON( + accountingProjectsDeleteRequest: AccountingProjectsDeleteRequest, +): string { + return JSON.stringify( + AccountingProjectsDeleteRequest$outboundSchema.parse( + accountingProjectsDeleteRequest, + ), + ); +} + +export function accountingProjectsDeleteRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AccountingProjectsDeleteRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AccountingProjectsDeleteRequest' from JSON`, + ); +} + +/** @internal */ +export const AccountingProjectsDeleteResponse$inboundSchema: z.ZodType< + AccountingProjectsDeleteResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + DeleteProjectResponse: components.DeleteProjectResponse$inboundSchema + .optional(), + UnexpectedErrorResponse: components.UnexpectedErrorResponse$inboundSchema + .optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + "DeleteProjectResponse": "deleteProjectResponse", + "UnexpectedErrorResponse": "unexpectedErrorResponse", + }); +}); + +/** @internal */ +export type AccountingProjectsDeleteResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + DeleteProjectResponse?: components.DeleteProjectResponse$Outbound | undefined; + UnexpectedErrorResponse?: + | components.UnexpectedErrorResponse$Outbound + | undefined; +}; + +/** @internal */ +export const AccountingProjectsDeleteResponse$outboundSchema: z.ZodType< + AccountingProjectsDeleteResponse$Outbound, + z.ZodTypeDef, + AccountingProjectsDeleteResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + deleteProjectResponse: components.DeleteProjectResponse$outboundSchema + .optional(), + unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema + .optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + deleteProjectResponse: "DeleteProjectResponse", + unexpectedErrorResponse: "UnexpectedErrorResponse", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AccountingProjectsDeleteResponse$ { + /** @deprecated use `AccountingProjectsDeleteResponse$inboundSchema` instead. */ + export const inboundSchema = AccountingProjectsDeleteResponse$inboundSchema; + /** @deprecated use `AccountingProjectsDeleteResponse$outboundSchema` instead. */ + export const outboundSchema = AccountingProjectsDeleteResponse$outboundSchema; + /** @deprecated use `AccountingProjectsDeleteResponse$Outbound` instead. */ + export type Outbound = AccountingProjectsDeleteResponse$Outbound; +} + +export function accountingProjectsDeleteResponseToJSON( + accountingProjectsDeleteResponse: AccountingProjectsDeleteResponse, +): string { + return JSON.stringify( + AccountingProjectsDeleteResponse$outboundSchema.parse( + accountingProjectsDeleteResponse, + ), + ); +} + +export function accountingProjectsDeleteResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AccountingProjectsDeleteResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AccountingProjectsDeleteResponse' from JSON`, + ); +} diff --git a/src/models/operations/accountingprojectsone.ts b/src/models/operations/accountingprojectsone.ts new file mode 100644 index 00000000..68b79fae --- /dev/null +++ b/src/models/operations/accountingprojectsone.ts @@ -0,0 +1,261 @@ +/* + * 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 AccountingProjectsOneGlobals = { + /** + * ID of the consumer which you want to get or push data from + */ + consumerId?: string | undefined; + /** + * The ID of your Unify application + */ + appId?: string | undefined; +}; + +export type AccountingProjectsOneRequest = { + /** + * ID of the record you are acting upon. + */ + id: string; + /** + * ID of the consumer which you want to get or push data from + */ + consumerId?: string | undefined; + /** + * The ID of your Unify application + */ + appId?: string | undefined; + /** + * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. + */ + serviceId?: string | undefined; + /** + * Include raw response. Mostly used for debugging purposes + */ + raw?: boolean | undefined; +}; + +export type AccountingProjectsOneResponse = { + httpMeta: components.HTTPMetadata; + /** + * Projects + */ + getProjectResponse?: components.GetProjectResponse | undefined; + /** + * Unexpected error + */ + unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; +}; + +/** @internal */ +export const AccountingProjectsOneGlobals$inboundSchema: z.ZodType< + AccountingProjectsOneGlobals, + z.ZodTypeDef, + unknown +> = z.object({ + consumerId: z.string().optional(), + appId: z.string().optional(), +}); + +/** @internal */ +export type AccountingProjectsOneGlobals$Outbound = { + consumerId?: string | undefined; + appId?: string | undefined; +}; + +/** @internal */ +export const AccountingProjectsOneGlobals$outboundSchema: z.ZodType< + AccountingProjectsOneGlobals$Outbound, + z.ZodTypeDef, + AccountingProjectsOneGlobals +> = z.object({ + consumerId: z.string().optional(), + appId: z.string().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AccountingProjectsOneGlobals$ { + /** @deprecated use `AccountingProjectsOneGlobals$inboundSchema` instead. */ + export const inboundSchema = AccountingProjectsOneGlobals$inboundSchema; + /** @deprecated use `AccountingProjectsOneGlobals$outboundSchema` instead. */ + export const outboundSchema = AccountingProjectsOneGlobals$outboundSchema; + /** @deprecated use `AccountingProjectsOneGlobals$Outbound` instead. */ + export type Outbound = AccountingProjectsOneGlobals$Outbound; +} + +export function accountingProjectsOneGlobalsToJSON( + accountingProjectsOneGlobals: AccountingProjectsOneGlobals, +): string { + return JSON.stringify( + AccountingProjectsOneGlobals$outboundSchema.parse( + accountingProjectsOneGlobals, + ), + ); +} + +export function accountingProjectsOneGlobalsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AccountingProjectsOneGlobals$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AccountingProjectsOneGlobals' from JSON`, + ); +} + +/** @internal */ +export const AccountingProjectsOneRequest$inboundSchema: z.ZodType< + AccountingProjectsOneRequest, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), + consumerId: z.string().optional(), + appId: z.string().optional(), + serviceId: z.string().optional(), + raw: z.boolean().default(false), +}); + +/** @internal */ +export type AccountingProjectsOneRequest$Outbound = { + id: string; + consumerId?: string | undefined; + appId?: string | undefined; + serviceId?: string | undefined; + raw: boolean; +}; + +/** @internal */ +export const AccountingProjectsOneRequest$outboundSchema: z.ZodType< + AccountingProjectsOneRequest$Outbound, + z.ZodTypeDef, + AccountingProjectsOneRequest +> = z.object({ + id: z.string(), + consumerId: z.string().optional(), + appId: z.string().optional(), + serviceId: z.string().optional(), + raw: z.boolean().default(false), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AccountingProjectsOneRequest$ { + /** @deprecated use `AccountingProjectsOneRequest$inboundSchema` instead. */ + export const inboundSchema = AccountingProjectsOneRequest$inboundSchema; + /** @deprecated use `AccountingProjectsOneRequest$outboundSchema` instead. */ + export const outboundSchema = AccountingProjectsOneRequest$outboundSchema; + /** @deprecated use `AccountingProjectsOneRequest$Outbound` instead. */ + export type Outbound = AccountingProjectsOneRequest$Outbound; +} + +export function accountingProjectsOneRequestToJSON( + accountingProjectsOneRequest: AccountingProjectsOneRequest, +): string { + return JSON.stringify( + AccountingProjectsOneRequest$outboundSchema.parse( + accountingProjectsOneRequest, + ), + ); +} + +export function accountingProjectsOneRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AccountingProjectsOneRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AccountingProjectsOneRequest' from JSON`, + ); +} + +/** @internal */ +export const AccountingProjectsOneResponse$inboundSchema: z.ZodType< + AccountingProjectsOneResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + GetProjectResponse: components.GetProjectResponse$inboundSchema.optional(), + UnexpectedErrorResponse: components.UnexpectedErrorResponse$inboundSchema + .optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + "GetProjectResponse": "getProjectResponse", + "UnexpectedErrorResponse": "unexpectedErrorResponse", + }); +}); + +/** @internal */ +export type AccountingProjectsOneResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + GetProjectResponse?: components.GetProjectResponse$Outbound | undefined; + UnexpectedErrorResponse?: + | components.UnexpectedErrorResponse$Outbound + | undefined; +}; + +/** @internal */ +export const AccountingProjectsOneResponse$outboundSchema: z.ZodType< + AccountingProjectsOneResponse$Outbound, + z.ZodTypeDef, + AccountingProjectsOneResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + getProjectResponse: components.GetProjectResponse$outboundSchema.optional(), + unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema + .optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + getProjectResponse: "GetProjectResponse", + unexpectedErrorResponse: "UnexpectedErrorResponse", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AccountingProjectsOneResponse$ { + /** @deprecated use `AccountingProjectsOneResponse$inboundSchema` instead. */ + export const inboundSchema = AccountingProjectsOneResponse$inboundSchema; + /** @deprecated use `AccountingProjectsOneResponse$outboundSchema` instead. */ + export const outboundSchema = AccountingProjectsOneResponse$outboundSchema; + /** @deprecated use `AccountingProjectsOneResponse$Outbound` instead. */ + export type Outbound = AccountingProjectsOneResponse$Outbound; +} + +export function accountingProjectsOneResponseToJSON( + accountingProjectsOneResponse: AccountingProjectsOneResponse, +): string { + return JSON.stringify( + AccountingProjectsOneResponse$outboundSchema.parse( + accountingProjectsOneResponse, + ), + ); +} + +export function accountingProjectsOneResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AccountingProjectsOneResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AccountingProjectsOneResponse' from JSON`, + ); +} diff --git a/src/models/operations/accountingprojectsupdate.ts b/src/models/operations/accountingprojectsupdate.ts new file mode 100644 index 00000000..6c5c3823 --- /dev/null +++ b/src/models/operations/accountingprojectsupdate.ts @@ -0,0 +1,275 @@ +/* + * 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 AccountingProjectsUpdateGlobals = { + /** + * ID of the consumer which you want to get or push data from + */ + consumerId?: string | undefined; + /** + * The ID of your Unify application + */ + appId?: string | undefined; +}; + +export type AccountingProjectsUpdateRequest = { + /** + * ID of the record you are acting upon. + */ + id: string; + /** + * ID of the consumer which you want to get or push data from + */ + consumerId?: string | undefined; + /** + * The ID of your Unify application + */ + appId?: string | undefined; + /** + * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. + */ + serviceId?: string | undefined; + /** + * Include raw response. Mostly used for debugging purposes + */ + raw?: boolean | undefined; + project: components.ProjectInput; +}; + +export type AccountingProjectsUpdateResponse = { + httpMeta: components.HTTPMetadata; + /** + * Projects + */ + updateProjectResponse?: components.UpdateProjectResponse | undefined; + /** + * Unexpected error + */ + unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined; +}; + +/** @internal */ +export const AccountingProjectsUpdateGlobals$inboundSchema: z.ZodType< + AccountingProjectsUpdateGlobals, + z.ZodTypeDef, + unknown +> = z.object({ + consumerId: z.string().optional(), + appId: z.string().optional(), +}); + +/** @internal */ +export type AccountingProjectsUpdateGlobals$Outbound = { + consumerId?: string | undefined; + appId?: string | undefined; +}; + +/** @internal */ +export const AccountingProjectsUpdateGlobals$outboundSchema: z.ZodType< + AccountingProjectsUpdateGlobals$Outbound, + z.ZodTypeDef, + AccountingProjectsUpdateGlobals +> = z.object({ + consumerId: z.string().optional(), + appId: z.string().optional(), +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AccountingProjectsUpdateGlobals$ { + /** @deprecated use `AccountingProjectsUpdateGlobals$inboundSchema` instead. */ + export const inboundSchema = AccountingProjectsUpdateGlobals$inboundSchema; + /** @deprecated use `AccountingProjectsUpdateGlobals$outboundSchema` instead. */ + export const outboundSchema = AccountingProjectsUpdateGlobals$outboundSchema; + /** @deprecated use `AccountingProjectsUpdateGlobals$Outbound` instead. */ + export type Outbound = AccountingProjectsUpdateGlobals$Outbound; +} + +export function accountingProjectsUpdateGlobalsToJSON( + accountingProjectsUpdateGlobals: AccountingProjectsUpdateGlobals, +): string { + return JSON.stringify( + AccountingProjectsUpdateGlobals$outboundSchema.parse( + accountingProjectsUpdateGlobals, + ), + ); +} + +export function accountingProjectsUpdateGlobalsFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AccountingProjectsUpdateGlobals$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AccountingProjectsUpdateGlobals' from JSON`, + ); +} + +/** @internal */ +export const AccountingProjectsUpdateRequest$inboundSchema: z.ZodType< + AccountingProjectsUpdateRequest, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), + consumerId: z.string().optional(), + appId: z.string().optional(), + serviceId: z.string().optional(), + raw: z.boolean().default(false), + Project: components.ProjectInput$inboundSchema, +}).transform((v) => { + return remap$(v, { + "Project": "project", + }); +}); + +/** @internal */ +export type AccountingProjectsUpdateRequest$Outbound = { + id: string; + consumerId?: string | undefined; + appId?: string | undefined; + serviceId?: string | undefined; + raw: boolean; + Project: components.ProjectInput$Outbound; +}; + +/** @internal */ +export const AccountingProjectsUpdateRequest$outboundSchema: z.ZodType< + AccountingProjectsUpdateRequest$Outbound, + z.ZodTypeDef, + AccountingProjectsUpdateRequest +> = z.object({ + id: z.string(), + consumerId: z.string().optional(), + appId: z.string().optional(), + serviceId: z.string().optional(), + raw: z.boolean().default(false), + project: components.ProjectInput$outboundSchema, +}).transform((v) => { + return remap$(v, { + project: "Project", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AccountingProjectsUpdateRequest$ { + /** @deprecated use `AccountingProjectsUpdateRequest$inboundSchema` instead. */ + export const inboundSchema = AccountingProjectsUpdateRequest$inboundSchema; + /** @deprecated use `AccountingProjectsUpdateRequest$outboundSchema` instead. */ + export const outboundSchema = AccountingProjectsUpdateRequest$outboundSchema; + /** @deprecated use `AccountingProjectsUpdateRequest$Outbound` instead. */ + export type Outbound = AccountingProjectsUpdateRequest$Outbound; +} + +export function accountingProjectsUpdateRequestToJSON( + accountingProjectsUpdateRequest: AccountingProjectsUpdateRequest, +): string { + return JSON.stringify( + AccountingProjectsUpdateRequest$outboundSchema.parse( + accountingProjectsUpdateRequest, + ), + ); +} + +export function accountingProjectsUpdateRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AccountingProjectsUpdateRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AccountingProjectsUpdateRequest' from JSON`, + ); +} + +/** @internal */ +export const AccountingProjectsUpdateResponse$inboundSchema: z.ZodType< + AccountingProjectsUpdateResponse, + z.ZodTypeDef, + unknown +> = z.object({ + HttpMeta: components.HTTPMetadata$inboundSchema, + UpdateProjectResponse: components.UpdateProjectResponse$inboundSchema + .optional(), + UnexpectedErrorResponse: components.UnexpectedErrorResponse$inboundSchema + .optional(), +}).transform((v) => { + return remap$(v, { + "HttpMeta": "httpMeta", + "UpdateProjectResponse": "updateProjectResponse", + "UnexpectedErrorResponse": "unexpectedErrorResponse", + }); +}); + +/** @internal */ +export type AccountingProjectsUpdateResponse$Outbound = { + HttpMeta: components.HTTPMetadata$Outbound; + UpdateProjectResponse?: components.UpdateProjectResponse$Outbound | undefined; + UnexpectedErrorResponse?: + | components.UnexpectedErrorResponse$Outbound + | undefined; +}; + +/** @internal */ +export const AccountingProjectsUpdateResponse$outboundSchema: z.ZodType< + AccountingProjectsUpdateResponse$Outbound, + z.ZodTypeDef, + AccountingProjectsUpdateResponse +> = z.object({ + httpMeta: components.HTTPMetadata$outboundSchema, + updateProjectResponse: components.UpdateProjectResponse$outboundSchema + .optional(), + unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema + .optional(), +}).transform((v) => { + return remap$(v, { + httpMeta: "HttpMeta", + updateProjectResponse: "UpdateProjectResponse", + unexpectedErrorResponse: "UnexpectedErrorResponse", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace AccountingProjectsUpdateResponse$ { + /** @deprecated use `AccountingProjectsUpdateResponse$inboundSchema` instead. */ + export const inboundSchema = AccountingProjectsUpdateResponse$inboundSchema; + /** @deprecated use `AccountingProjectsUpdateResponse$outboundSchema` instead. */ + export const outboundSchema = AccountingProjectsUpdateResponse$outboundSchema; + /** @deprecated use `AccountingProjectsUpdateResponse$Outbound` instead. */ + export type Outbound = AccountingProjectsUpdateResponse$Outbound; +} + +export function accountingProjectsUpdateResponseToJSON( + accountingProjectsUpdateResponse: AccountingProjectsUpdateResponse, +): string { + return JSON.stringify( + AccountingProjectsUpdateResponse$outboundSchema.parse( + accountingProjectsUpdateResponse, + ), + ); +} + +export function accountingProjectsUpdateResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => AccountingProjectsUpdateResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'AccountingProjectsUpdateResponse' from JSON`, + ); +} diff --git a/src/models/operations/index.ts b/src/models/operations/index.ts index dd8c2fb6..78318e41 100644 --- a/src/models/operations/index.ts +++ b/src/models/operations/index.ts @@ -89,6 +89,11 @@ export * from "./accountingpaymentsdelete.js"; export * from "./accountingpaymentsone.js"; export * from "./accountingpaymentsupdate.js"; export * from "./accountingprofitandlossone.js"; +export * from "./accountingprojectsadd.js"; +export * from "./accountingprojectsall.js"; +export * from "./accountingprojectsdelete.js"; +export * from "./accountingprojectsone.js"; +export * from "./accountingprojectsupdate.js"; export * from "./accountingpurchaseordersadd.js"; export * from "./accountingpurchaseordersall.js"; export * from "./accountingpurchaseordersdelete.js"; diff --git a/src/sdk/accounting.ts b/src/sdk/accounting.ts index c27ae9f6..540ea0e4 100644 --- a/src/sdk/accounting.ts +++ b/src/sdk/accounting.ts @@ -25,6 +25,7 @@ import { LedgerAccounts } from "./ledgeraccounts.js"; import { Locations } from "./locations.js"; import { Payments } from "./payments.js"; import { ProfitAndLoss } from "./profitandloss.js"; +import { Projects } from "./projects.js"; import { PurchaseOrders } from "./purchaseorders.js"; import { Quotes } from "./quotes.js"; import { Subsidiaries } from "./subsidiaries.js"; @@ -172,4 +173,9 @@ export class Accounting extends ClientSDK { get quotes(): Quotes { return (this._quotes ??= new Quotes(this._options)); } + + private _projects?: Projects; + get projects(): Projects { + return (this._projects ??= new Projects(this._options)); + } } diff --git a/src/sdk/projects.ts b/src/sdk/projects.ts new file mode 100644 index 00000000..65503b70 --- /dev/null +++ b/src/sdk/projects.ts @@ -0,0 +1,102 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { accountingProjectsCreate } from "../funcs/accountingProjectsCreate.js"; +import { accountingProjectsDelete } from "../funcs/accountingProjectsDelete.js"; +import { accountingProjectsGet } from "../funcs/accountingProjectsGet.js"; +import { accountingProjectsList } from "../funcs/accountingProjectsList.js"; +import { accountingProjectsUpdate } from "../funcs/accountingProjectsUpdate.js"; +import { ClientSDK, RequestOptions } from "../lib/sdks.js"; +import * as operations from "../models/operations/index.js"; +import { unwrapAsync } from "../types/fp.js"; +import { PageIterator, unwrapResultIterator } from "../types/operations.js"; + +export class Projects extends ClientSDK { + /** + * List projects + * + * @remarks + * List projects + */ + async list( + request: operations.AccountingProjectsAllRequest, + options?: RequestOptions, + ): Promise< + PageIterator + > { + return unwrapResultIterator(accountingProjectsList( + this, + request, + options, + )); + } + + /** + * Create project + * + * @remarks + * Create project + */ + async create( + request: operations.AccountingProjectsAddRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(accountingProjectsCreate( + this, + request, + options, + )); + } + + /** + * Get project + * + * @remarks + * Get project + */ + async get( + request: operations.AccountingProjectsOneRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(accountingProjectsGet( + this, + request, + options, + )); + } + + /** + * Update project + * + * @remarks + * Update project + */ + async update( + request: operations.AccountingProjectsUpdateRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(accountingProjectsUpdate( + this, + request, + options, + )); + } + + /** + * Delete project + * + * @remarks + * Delete project + */ + async delete( + request: operations.AccountingProjectsDeleteRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(accountingProjectsDelete( + this, + request, + options, + )); + } +}