@unified-api/typescript-sdk 2.77.0 → 2.78.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/docs/sdks/accounting/README.md +158 -0
- package/docs/sdks/cashflow/README.md +165 -0
- package/docs/sdks/commit/README.md +0 -6
- package/docs/sdks/repo/README.md +0 -6
- package/examples/package-lock.json +1 -1
- package/funcs/accountingGetAccountingCashflow.d.ts +15 -0
- package/funcs/accountingGetAccountingCashflow.d.ts.map +1 -0
- package/funcs/accountingGetAccountingCashflow.js +125 -0
- package/funcs/accountingGetAccountingCashflow.js.map +1 -0
- package/funcs/accountingListAccountingCashflows.d.ts +15 -0
- package/funcs/accountingListAccountingCashflows.d.ts.map +1 -0
- package/funcs/accountingListAccountingCashflows.js +133 -0
- package/funcs/accountingListAccountingCashflows.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/package.json +1 -1
- package/sdk/accounting.d.ts +8 -0
- package/sdk/accounting.d.ts.map +1 -1
- package/sdk/accounting.js +14 -0
- package/sdk/accounting.js.map +1 -1
- package/sdk/cashflow.d.ts +14 -0
- package/sdk/cashflow.d.ts.map +1 -0
- package/sdk/cashflow.js +26 -0
- package/sdk/cashflow.js.map +1 -0
- package/sdk/models/operations/createpassthroughjson.js +1 -1
- package/sdk/models/operations/createpassthroughjson.js.map +1 -1
- package/sdk/models/operations/createpassthroughraw.js +1 -1
- package/sdk/models/operations/createpassthroughraw.js.map +1 -1
- package/sdk/models/operations/getaccountingcashflow.d.ts +47 -0
- package/sdk/models/operations/getaccountingcashflow.d.ts.map +1 -0
- package/sdk/models/operations/getaccountingcashflow.js +84 -0
- package/sdk/models/operations/getaccountingcashflow.js.map +1 -0
- package/sdk/models/operations/index.d.ts +2 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +2 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listaccountingcashflows.d.ts +85 -0
- package/sdk/models/operations/listaccountingcashflows.d.ts.map +1 -0
- package/sdk/models/operations/listaccountingcashflows.js +116 -0
- package/sdk/models/operations/listaccountingcashflows.js.map +1 -0
- package/sdk/models/operations/listpassthroughs.js +1 -1
- package/sdk/models/operations/listpassthroughs.js.map +1 -1
- package/sdk/models/operations/patchpassthroughjson.js +1 -1
- package/sdk/models/operations/patchpassthroughjson.js.map +1 -1
- package/sdk/models/operations/patchpassthroughraw.js +1 -1
- package/sdk/models/operations/patchpassthroughraw.js.map +1 -1
- package/sdk/models/operations/patchunifiedwebhooktrigger.js +1 -1
- package/sdk/models/operations/patchunifiedwebhooktrigger.js.map +1 -1
- package/sdk/models/operations/removeaccountingaccount.js +1 -1
- package/sdk/models/operations/removeaccountingaccount.js.map +1 -1
- package/sdk/models/operations/removeaccountingbill.js +1 -1
- package/sdk/models/operations/removeaccountingbill.js.map +1 -1
- package/sdk/models/operations/removeaccountingcategory.js +1 -1
- package/sdk/models/operations/removeaccountingcategory.js.map +1 -1
- package/sdk/models/operations/removeaccountingcontact.js +1 -1
- package/sdk/models/operations/removeaccountingcontact.js.map +1 -1
- package/sdk/models/operations/removeaccountingcreditmemo.js +1 -1
- package/sdk/models/operations/removeaccountingcreditmemo.js.map +1 -1
- package/sdk/models/operations/removeaccountingexpense.js +1 -1
- package/sdk/models/operations/removeaccountingexpense.js.map +1 -1
- package/sdk/models/operations/removeaccountinginvoice.js +1 -1
- package/sdk/models/operations/removeaccountinginvoice.js.map +1 -1
- package/sdk/models/operations/removeaccountingjournal.js +1 -1
- package/sdk/models/operations/removeaccountingjournal.js.map +1 -1
- package/sdk/models/operations/removeaccountingorder.js +1 -1
- package/sdk/models/operations/removeaccountingorder.js.map +1 -1
- package/sdk/models/operations/removeaccountingpurchaseorder.js +1 -1
- package/sdk/models/operations/removeaccountingpurchaseorder.js.map +1 -1
- package/sdk/models/operations/removeaccountingsalesorder.js +1 -1
- package/sdk/models/operations/removeaccountingsalesorder.js.map +1 -1
- package/sdk/models/operations/removeaccountingtaxrate.js +1 -1
- package/sdk/models/operations/removeaccountingtaxrate.js.map +1 -1
- package/sdk/models/operations/removeaccountingtransaction.js +1 -1
- package/sdk/models/operations/removeaccountingtransaction.js.map +1 -1
- package/sdk/models/operations/removeatsactivity.js +1 -1
- package/sdk/models/operations/removeatsactivity.js.map +1 -1
- package/sdk/models/operations/removeatsapplication.js +1 -1
- package/sdk/models/operations/removeatsapplication.js.map +1 -1
- package/sdk/models/operations/removeatscandidate.js +1 -1
- package/sdk/models/operations/removeatscandidate.js.map +1 -1
- package/sdk/models/operations/removeatscompany.js +1 -1
- package/sdk/models/operations/removeatscompany.js.map +1 -1
- package/sdk/models/operations/removeatsdocument.js +1 -1
- package/sdk/models/operations/removeatsdocument.js.map +1 -1
- package/sdk/models/operations/removeatsinterview.js +1 -1
- package/sdk/models/operations/removeatsinterview.js.map +1 -1
- package/sdk/models/operations/removeatsjob.js +1 -1
- package/sdk/models/operations/removeatsjob.js.map +1 -1
- package/sdk/models/operations/removeatsscorecard.js +1 -1
- package/sdk/models/operations/removeatsscorecard.js.map +1 -1
- package/sdk/models/operations/removecalendarcalendar.js +1 -1
- package/sdk/models/operations/removecalendarcalendar.js.map +1 -1
- package/sdk/models/operations/removecalendarevent.js +1 -1
- package/sdk/models/operations/removecalendarevent.js.map +1 -1
- package/sdk/models/operations/removecalendarlink.js +1 -1
- package/sdk/models/operations/removecalendarlink.js.map +1 -1
- package/sdk/models/operations/removecommercecollection.js +1 -1
- package/sdk/models/operations/removecommercecollection.js.map +1 -1
- package/sdk/models/operations/removecommerceinventory.js +1 -1
- package/sdk/models/operations/removecommerceinventory.js.map +1 -1
- package/sdk/models/operations/removecommerceitem.js +1 -1
- package/sdk/models/operations/removecommerceitem.js.map +1 -1
- package/sdk/models/operations/removecommercelocation.js +1 -1
- package/sdk/models/operations/removecommercelocation.js.map +1 -1
- package/sdk/models/operations/removecommercereview.js +1 -1
- package/sdk/models/operations/removecommercereview.js.map +1 -1
- package/sdk/models/operations/removecrmcompany.js +1 -1
- package/sdk/models/operations/removecrmcompany.js.map +1 -1
- package/sdk/models/operations/removecrmcontact.js +1 -1
- package/sdk/models/operations/removecrmcontact.js.map +1 -1
- package/sdk/models/operations/removecrmdeal.js +1 -1
- package/sdk/models/operations/removecrmdeal.js.map +1 -1
- package/sdk/models/operations/removecrmevent.js +1 -1
- package/sdk/models/operations/removecrmevent.js.map +1 -1
- package/sdk/models/operations/removecrmlead.js +1 -1
- package/sdk/models/operations/removecrmlead.js.map +1 -1
- package/sdk/models/operations/removecrmpipeline.js +1 -1
- package/sdk/models/operations/removecrmpipeline.js.map +1 -1
- package/sdk/models/operations/removehriscompany.js +1 -1
- package/sdk/models/operations/removehriscompany.js.map +1 -1
- package/sdk/models/operations/removehrisdevice.js +1 -1
- package/sdk/models/operations/removehrisdevice.js.map +1 -1
- package/sdk/models/operations/removehrisemployee.js +1 -1
- package/sdk/models/operations/removehrisemployee.js.map +1 -1
- package/sdk/models/operations/removehrisgroup.js +1 -1
- package/sdk/models/operations/removehrisgroup.js.map +1 -1
- package/sdk/models/operations/removehrislocation.js +1 -1
- package/sdk/models/operations/removehrislocation.js.map +1 -1
- package/sdk/models/operations/removehristimeshift.js +1 -1
- package/sdk/models/operations/removehristimeshift.js.map +1 -1
- package/sdk/models/operations/removekmscomment.js +1 -1
- package/sdk/models/operations/removekmscomment.js.map +1 -1
- package/sdk/models/operations/removekmspage.js +1 -1
- package/sdk/models/operations/removekmspage.js.map +1 -1
- package/sdk/models/operations/removekmsspace.js +1 -1
- package/sdk/models/operations/removekmsspace.js.map +1 -1
- package/sdk/models/operations/removelmsclass.js +1 -1
- package/sdk/models/operations/removelmsclass.js.map +1 -1
- package/sdk/models/operations/removelmscourse.js +1 -1
- package/sdk/models/operations/removelmscourse.js.map +1 -1
- package/sdk/models/operations/removelmsinstructor.js +1 -1
- package/sdk/models/operations/removelmsinstructor.js.map +1 -1
- package/sdk/models/operations/removelmsstudent.js +1 -1
- package/sdk/models/operations/removelmsstudent.js.map +1 -1
- package/sdk/models/operations/removemartechlist.js +1 -1
- package/sdk/models/operations/removemartechlist.js.map +1 -1
- package/sdk/models/operations/removemartechmember.js +1 -1
- package/sdk/models/operations/removemartechmember.js.map +1 -1
- package/sdk/models/operations/removemessagingmessage.js +1 -1
- package/sdk/models/operations/removemessagingmessage.js.map +1 -1
- package/sdk/models/operations/removemetadatametadata.js +1 -1
- package/sdk/models/operations/removemetadatametadata.js.map +1 -1
- package/sdk/models/operations/removepassthrough.js +1 -1
- package/sdk/models/operations/removepassthrough.js.map +1 -1
- package/sdk/models/operations/removepaymentlink.js +1 -1
- package/sdk/models/operations/removepaymentlink.js.map +1 -1
- package/sdk/models/operations/removepaymentpayment.js +1 -1
- package/sdk/models/operations/removepaymentpayment.js.map +1 -1
- package/sdk/models/operations/removepaymentsubscription.js +1 -1
- package/sdk/models/operations/removepaymentsubscription.js.map +1 -1
- package/sdk/models/operations/removerepobranch.js +1 -1
- package/sdk/models/operations/removerepobranch.js.map +1 -1
- package/sdk/models/operations/removerepocommit.js +1 -1
- package/sdk/models/operations/removerepocommit.js.map +1 -1
- package/sdk/models/operations/removerepoorganization.js +1 -1
- package/sdk/models/operations/removerepoorganization.js.map +1 -1
- package/sdk/models/operations/removerepopullrequest.js +1 -1
- package/sdk/models/operations/removerepopullrequest.js.map +1 -1
- package/sdk/models/operations/removereporepository.js +1 -1
- package/sdk/models/operations/removereporepository.js.map +1 -1
- package/sdk/models/operations/removescimgroups.js +1 -1
- package/sdk/models/operations/removescimgroups.js.map +1 -1
- package/sdk/models/operations/removescimusers.js +1 -1
- package/sdk/models/operations/removescimusers.js.map +1 -1
- package/sdk/models/operations/removestoragefile.js +1 -1
- package/sdk/models/operations/removestoragefile.js.map +1 -1
- package/sdk/models/operations/removetaskcomment.js +1 -1
- package/sdk/models/operations/removetaskcomment.js.map +1 -1
- package/sdk/models/operations/removetaskproject.js +1 -1
- package/sdk/models/operations/removetaskproject.js.map +1 -1
- package/sdk/models/operations/removetasktask.js +1 -1
- package/sdk/models/operations/removetasktask.js.map +1 -1
- package/sdk/models/operations/removeticketingcategory.js +1 -1
- package/sdk/models/operations/removeticketingcategory.js.map +1 -1
- package/sdk/models/operations/removeticketingcustomer.js +1 -1
- package/sdk/models/operations/removeticketingcustomer.js.map +1 -1
- package/sdk/models/operations/removeticketingnote.js +1 -1
- package/sdk/models/operations/removeticketingnote.js.map +1 -1
- package/sdk/models/operations/removeticketingticket.js +1 -1
- package/sdk/models/operations/removeticketingticket.js.map +1 -1
- package/sdk/models/operations/removeuccomment.js +1 -1
- package/sdk/models/operations/removeuccomment.js.map +1 -1
- package/sdk/models/operations/removeuccontact.js +1 -1
- package/sdk/models/operations/removeuccontact.js.map +1 -1
- package/sdk/models/operations/removeucrecording.js +1 -1
- package/sdk/models/operations/removeucrecording.js.map +1 -1
- package/sdk/models/operations/removeunifiedconnection.js +1 -1
- package/sdk/models/operations/removeunifiedconnection.js.map +1 -1
- package/sdk/models/operations/removeunifiedwebhook.js +1 -1
- package/sdk/models/operations/removeunifiedwebhook.js.map +1 -1
- package/sdk/models/operations/removeverificationrequest.js +1 -1
- package/sdk/models/operations/removeverificationrequest.js.map +1 -1
- package/sdk/models/operations/updatepassthroughjson.js +1 -1
- package/sdk/models/operations/updatepassthroughjson.js.map +1 -1
- package/sdk/models/operations/updatepassthroughraw.js +1 -1
- package/sdk/models/operations/updatepassthroughraw.js.map +1 -1
- package/sdk/models/operations/updateunifiedwebhooktrigger.js +1 -1
- package/sdk/models/operations/updateunifiedwebhooktrigger.js.map +1 -1
- package/sdk/models/shared/accountingcashflow.d.ts +67 -0
- package/sdk/models/shared/accountingcashflow.d.ts.map +1 -0
- package/sdk/models/shared/accountingcashflow.js +141 -0
- package/sdk/models/shared/accountingcashflow.js.map +1 -0
- package/sdk/models/shared/accountingcashflowitem.d.ts +41 -0
- package/sdk/models/shared/accountingcashflowitem.d.ts.map +1 -0
- package/sdk/models/shared/accountingcashflowitem.js +93 -0
- package/sdk/models/shared/accountingcashflowitem.js.map +1 -0
- package/sdk/models/shared/accountingcashflowsection.d.ts +34 -0
- package/sdk/models/shared/accountingcashflowsection.d.ts.map +1 -0
- package/sdk/models/shared/accountingcashflowsection.js +85 -0
- package/sdk/models/shared/accountingcashflowsection.js.map +1 -0
- package/sdk/models/shared/accountingjournallineitem.d.ts +6 -0
- package/sdk/models/shared/accountingjournallineitem.d.ts.map +1 -1
- package/sdk/models/shared/accountingjournallineitem.js +12 -0
- package/sdk/models/shared/accountingjournallineitem.js.map +1 -1
- package/sdk/models/shared/index.d.ts +4 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +4 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/propertyaccountingcashflowitemsubitems.d.ts +25 -0
- package/sdk/models/shared/propertyaccountingcashflowitemsubitems.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingcashflowitemsubitems.js +65 -0
- package/sdk/models/shared/propertyaccountingcashflowitemsubitems.js.map +1 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts +2 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.js +2 -0
- package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
- package/sdk/models/shared/repocommit.d.ts +2 -2
- package/sdk/models/shared/repocommit.d.ts.map +1 -1
- package/sdk/models/shared/repocommit.js +2 -2
- package/sdk/models/shared/repocommit.js.map +1 -1
- package/sdk/models/shared/webhook.d.ts +1 -0
- package/sdk/models/shared/webhook.d.ts.map +1 -1
- package/sdk/models/shared/webhook.js +1 -0
- package/sdk/models/shared/webhook.js.map +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/accountingGetAccountingCashflow.ts +176 -0
- package/src/funcs/accountingListAccountingCashflows.ts +182 -0
- package/src/lib/config.ts +3 -3
- package/src/sdk/accounting.ts +30 -0
- package/src/sdk/cashflow.ts +40 -0
- package/src/sdk/models/operations/createpassthroughjson.ts +1 -1
- package/src/sdk/models/operations/createpassthroughraw.ts +1 -1
- package/src/sdk/models/operations/getaccountingcashflow.ts +101 -0
- package/src/sdk/models/operations/index.ts +2 -0
- package/src/sdk/models/operations/listaccountingcashflows.ts +171 -0
- package/src/sdk/models/operations/listpassthroughs.ts +1 -1
- package/src/sdk/models/operations/patchpassthroughjson.ts +1 -1
- package/src/sdk/models/operations/patchpassthroughraw.ts +1 -1
- package/src/sdk/models/operations/patchunifiedwebhooktrigger.ts +1 -1
- package/src/sdk/models/operations/removeaccountingaccount.ts +1 -1
- package/src/sdk/models/operations/removeaccountingbill.ts +1 -1
- package/src/sdk/models/operations/removeaccountingcategory.ts +1 -1
- package/src/sdk/models/operations/removeaccountingcontact.ts +1 -1
- package/src/sdk/models/operations/removeaccountingcreditmemo.ts +1 -1
- package/src/sdk/models/operations/removeaccountingexpense.ts +1 -1
- package/src/sdk/models/operations/removeaccountinginvoice.ts +1 -1
- package/src/sdk/models/operations/removeaccountingjournal.ts +1 -1
- package/src/sdk/models/operations/removeaccountingorder.ts +1 -1
- package/src/sdk/models/operations/removeaccountingpurchaseorder.ts +1 -1
- package/src/sdk/models/operations/removeaccountingsalesorder.ts +1 -1
- package/src/sdk/models/operations/removeaccountingtaxrate.ts +1 -1
- package/src/sdk/models/operations/removeaccountingtransaction.ts +1 -1
- package/src/sdk/models/operations/removeatsactivity.ts +1 -1
- package/src/sdk/models/operations/removeatsapplication.ts +1 -1
- package/src/sdk/models/operations/removeatscandidate.ts +1 -1
- package/src/sdk/models/operations/removeatscompany.ts +1 -1
- package/src/sdk/models/operations/removeatsdocument.ts +1 -1
- package/src/sdk/models/operations/removeatsinterview.ts +1 -1
- package/src/sdk/models/operations/removeatsjob.ts +1 -1
- package/src/sdk/models/operations/removeatsscorecard.ts +1 -1
- package/src/sdk/models/operations/removecalendarcalendar.ts +1 -1
- package/src/sdk/models/operations/removecalendarevent.ts +1 -1
- package/src/sdk/models/operations/removecalendarlink.ts +1 -1
- package/src/sdk/models/operations/removecommercecollection.ts +1 -1
- package/src/sdk/models/operations/removecommerceinventory.ts +1 -1
- package/src/sdk/models/operations/removecommerceitem.ts +1 -1
- package/src/sdk/models/operations/removecommercelocation.ts +1 -1
- package/src/sdk/models/operations/removecommercereview.ts +1 -1
- package/src/sdk/models/operations/removecrmcompany.ts +1 -1
- package/src/sdk/models/operations/removecrmcontact.ts +1 -1
- package/src/sdk/models/operations/removecrmdeal.ts +1 -1
- package/src/sdk/models/operations/removecrmevent.ts +1 -1
- package/src/sdk/models/operations/removecrmlead.ts +1 -1
- package/src/sdk/models/operations/removecrmpipeline.ts +1 -1
- package/src/sdk/models/operations/removehriscompany.ts +1 -1
- package/src/sdk/models/operations/removehrisdevice.ts +1 -1
- package/src/sdk/models/operations/removehrisemployee.ts +1 -1
- package/src/sdk/models/operations/removehrisgroup.ts +1 -1
- package/src/sdk/models/operations/removehrislocation.ts +1 -1
- package/src/sdk/models/operations/removehristimeshift.ts +1 -1
- package/src/sdk/models/operations/removekmscomment.ts +1 -1
- package/src/sdk/models/operations/removekmspage.ts +1 -1
- package/src/sdk/models/operations/removekmsspace.ts +1 -1
- package/src/sdk/models/operations/removelmsclass.ts +1 -1
- package/src/sdk/models/operations/removelmscourse.ts +1 -1
- package/src/sdk/models/operations/removelmsinstructor.ts +1 -1
- package/src/sdk/models/operations/removelmsstudent.ts +1 -1
- package/src/sdk/models/operations/removemartechlist.ts +1 -1
- package/src/sdk/models/operations/removemartechmember.ts +1 -1
- package/src/sdk/models/operations/removemessagingmessage.ts +1 -1
- package/src/sdk/models/operations/removemetadatametadata.ts +1 -1
- package/src/sdk/models/operations/removepassthrough.ts +1 -1
- package/src/sdk/models/operations/removepaymentlink.ts +1 -1
- package/src/sdk/models/operations/removepaymentpayment.ts +1 -1
- package/src/sdk/models/operations/removepaymentsubscription.ts +1 -1
- package/src/sdk/models/operations/removerepobranch.ts +1 -1
- package/src/sdk/models/operations/removerepocommit.ts +1 -1
- package/src/sdk/models/operations/removerepoorganization.ts +1 -1
- package/src/sdk/models/operations/removerepopullrequest.ts +1 -1
- package/src/sdk/models/operations/removereporepository.ts +1 -1
- package/src/sdk/models/operations/removescimgroups.ts +1 -1
- package/src/sdk/models/operations/removescimusers.ts +1 -1
- package/src/sdk/models/operations/removestoragefile.ts +1 -1
- package/src/sdk/models/operations/removetaskcomment.ts +1 -1
- package/src/sdk/models/operations/removetaskproject.ts +1 -1
- package/src/sdk/models/operations/removetasktask.ts +1 -1
- package/src/sdk/models/operations/removeticketingcategory.ts +1 -1
- package/src/sdk/models/operations/removeticketingcustomer.ts +1 -1
- package/src/sdk/models/operations/removeticketingnote.ts +1 -1
- package/src/sdk/models/operations/removeticketingticket.ts +1 -1
- package/src/sdk/models/operations/removeuccomment.ts +1 -1
- package/src/sdk/models/operations/removeuccontact.ts +1 -1
- package/src/sdk/models/operations/removeucrecording.ts +1 -1
- package/src/sdk/models/operations/removeunifiedconnection.ts +1 -1
- package/src/sdk/models/operations/removeunifiedwebhook.ts +1 -1
- package/src/sdk/models/operations/removeverificationrequest.ts +1 -1
- package/src/sdk/models/operations/updatepassthroughjson.ts +1 -1
- package/src/sdk/models/operations/updatepassthroughraw.ts +1 -1
- package/src/sdk/models/operations/updateunifiedwebhooktrigger.ts +1 -1
- package/src/sdk/models/shared/accountingcashflow.ts +176 -0
- package/src/sdk/models/shared/accountingcashflowitem.ts +108 -0
- package/src/sdk/models/shared/accountingcashflowsection.ts +91 -0
- package/src/sdk/models/shared/accountingjournallineitem.ts +18 -0
- package/src/sdk/models/shared/index.ts +4 -0
- package/src/sdk/models/shared/propertyaccountingcashflowitemsubitems.ts +64 -0
- package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -0
- package/src/sdk/models/shared/repocommit.ts +4 -4
- package/src/sdk/models/shared/webhook.ts +1 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
AccountingCashflowSection,
|
|
12
|
+
AccountingCashflowSection$inboundSchema,
|
|
13
|
+
AccountingCashflowSection$Outbound,
|
|
14
|
+
AccountingCashflowSection$outboundSchema,
|
|
15
|
+
} from "./accountingcashflowsection.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Sections
|
|
19
|
+
*/
|
|
20
|
+
export type AccountingCashflow = {
|
|
21
|
+
cashBeginningAmount?: number | undefined;
|
|
22
|
+
cashEndingAmount?: number | undefined;
|
|
23
|
+
categoryIds?: Array<string> | undefined;
|
|
24
|
+
contactId?: string | undefined;
|
|
25
|
+
createdAt?: Date | undefined;
|
|
26
|
+
currency?: string | undefined;
|
|
27
|
+
endAt?: Date | undefined;
|
|
28
|
+
financingSections?: Array<AccountingCashflowSection> | undefined;
|
|
29
|
+
id?: string | undefined;
|
|
30
|
+
investingSections?: Array<AccountingCashflowSection> | undefined;
|
|
31
|
+
name?: string | undefined;
|
|
32
|
+
netChangeInCashAmount?: number | undefined;
|
|
33
|
+
operatingSections?: Array<AccountingCashflowSection> | undefined;
|
|
34
|
+
raw?: { [k: string]: any } | undefined;
|
|
35
|
+
startAt?: Date | undefined;
|
|
36
|
+
updatedAt?: Date | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const AccountingCashflow$inboundSchema: z.ZodType<
|
|
41
|
+
AccountingCashflow,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.object({
|
|
45
|
+
cash_beginning_amount: z.number().optional(),
|
|
46
|
+
cash_ending_amount: z.number().optional(),
|
|
47
|
+
category_ids: z.array(z.string()).optional(),
|
|
48
|
+
contact_id: z.string().optional(),
|
|
49
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
50
|
+
.optional(),
|
|
51
|
+
currency: z.string().optional(),
|
|
52
|
+
end_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
53
|
+
.optional(),
|
|
54
|
+
financing_sections: z.array(AccountingCashflowSection$inboundSchema)
|
|
55
|
+
.optional(),
|
|
56
|
+
id: z.string().optional(),
|
|
57
|
+
investing_sections: z.array(AccountingCashflowSection$inboundSchema)
|
|
58
|
+
.optional(),
|
|
59
|
+
name: z.string().optional(),
|
|
60
|
+
net_change_in_cash_amount: z.number().optional(),
|
|
61
|
+
operating_sections: z.array(AccountingCashflowSection$inboundSchema)
|
|
62
|
+
.optional(),
|
|
63
|
+
raw: z.record(z.any()).optional(),
|
|
64
|
+
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
65
|
+
.optional(),
|
|
66
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
67
|
+
.optional(),
|
|
68
|
+
}).transform((v) => {
|
|
69
|
+
return remap$(v, {
|
|
70
|
+
"cash_beginning_amount": "cashBeginningAmount",
|
|
71
|
+
"cash_ending_amount": "cashEndingAmount",
|
|
72
|
+
"category_ids": "categoryIds",
|
|
73
|
+
"contact_id": "contactId",
|
|
74
|
+
"created_at": "createdAt",
|
|
75
|
+
"end_at": "endAt",
|
|
76
|
+
"financing_sections": "financingSections",
|
|
77
|
+
"investing_sections": "investingSections",
|
|
78
|
+
"net_change_in_cash_amount": "netChangeInCashAmount",
|
|
79
|
+
"operating_sections": "operatingSections",
|
|
80
|
+
"start_at": "startAt",
|
|
81
|
+
"updated_at": "updatedAt",
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export type AccountingCashflow$Outbound = {
|
|
87
|
+
cash_beginning_amount?: number | undefined;
|
|
88
|
+
cash_ending_amount?: number | undefined;
|
|
89
|
+
category_ids?: Array<string> | undefined;
|
|
90
|
+
contact_id?: string | undefined;
|
|
91
|
+
created_at?: string | undefined;
|
|
92
|
+
currency?: string | undefined;
|
|
93
|
+
end_at?: string | undefined;
|
|
94
|
+
financing_sections?: Array<AccountingCashflowSection$Outbound> | undefined;
|
|
95
|
+
id?: string | undefined;
|
|
96
|
+
investing_sections?: Array<AccountingCashflowSection$Outbound> | undefined;
|
|
97
|
+
name?: string | undefined;
|
|
98
|
+
net_change_in_cash_amount?: number | undefined;
|
|
99
|
+
operating_sections?: Array<AccountingCashflowSection$Outbound> | undefined;
|
|
100
|
+
raw?: { [k: string]: any } | undefined;
|
|
101
|
+
start_at?: string | undefined;
|
|
102
|
+
updated_at?: string | undefined;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
/** @internal */
|
|
106
|
+
export const AccountingCashflow$outboundSchema: z.ZodType<
|
|
107
|
+
AccountingCashflow$Outbound,
|
|
108
|
+
z.ZodTypeDef,
|
|
109
|
+
AccountingCashflow
|
|
110
|
+
> = z.object({
|
|
111
|
+
cashBeginningAmount: z.number().optional(),
|
|
112
|
+
cashEndingAmount: z.number().optional(),
|
|
113
|
+
categoryIds: z.array(z.string()).optional(),
|
|
114
|
+
contactId: z.string().optional(),
|
|
115
|
+
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
116
|
+
currency: z.string().optional(),
|
|
117
|
+
endAt: z.date().transform(v => v.toISOString()).optional(),
|
|
118
|
+
financingSections: z.array(AccountingCashflowSection$outboundSchema)
|
|
119
|
+
.optional(),
|
|
120
|
+
id: z.string().optional(),
|
|
121
|
+
investingSections: z.array(AccountingCashflowSection$outboundSchema)
|
|
122
|
+
.optional(),
|
|
123
|
+
name: z.string().optional(),
|
|
124
|
+
netChangeInCashAmount: z.number().optional(),
|
|
125
|
+
operatingSections: z.array(AccountingCashflowSection$outboundSchema)
|
|
126
|
+
.optional(),
|
|
127
|
+
raw: z.record(z.any()).optional(),
|
|
128
|
+
startAt: z.date().transform(v => v.toISOString()).optional(),
|
|
129
|
+
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
130
|
+
}).transform((v) => {
|
|
131
|
+
return remap$(v, {
|
|
132
|
+
cashBeginningAmount: "cash_beginning_amount",
|
|
133
|
+
cashEndingAmount: "cash_ending_amount",
|
|
134
|
+
categoryIds: "category_ids",
|
|
135
|
+
contactId: "contact_id",
|
|
136
|
+
createdAt: "created_at",
|
|
137
|
+
endAt: "end_at",
|
|
138
|
+
financingSections: "financing_sections",
|
|
139
|
+
investingSections: "investing_sections",
|
|
140
|
+
netChangeInCashAmount: "net_change_in_cash_amount",
|
|
141
|
+
operatingSections: "operating_sections",
|
|
142
|
+
startAt: "start_at",
|
|
143
|
+
updatedAt: "updated_at",
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* @internal
|
|
149
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
150
|
+
*/
|
|
151
|
+
export namespace AccountingCashflow$ {
|
|
152
|
+
/** @deprecated use `AccountingCashflow$inboundSchema` instead. */
|
|
153
|
+
export const inboundSchema = AccountingCashflow$inboundSchema;
|
|
154
|
+
/** @deprecated use `AccountingCashflow$outboundSchema` instead. */
|
|
155
|
+
export const outboundSchema = AccountingCashflow$outboundSchema;
|
|
156
|
+
/** @deprecated use `AccountingCashflow$Outbound` instead. */
|
|
157
|
+
export type Outbound = AccountingCashflow$Outbound;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function accountingCashflowToJSON(
|
|
161
|
+
accountingCashflow: AccountingCashflow,
|
|
162
|
+
): string {
|
|
163
|
+
return JSON.stringify(
|
|
164
|
+
AccountingCashflow$outboundSchema.parse(accountingCashflow),
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function accountingCashflowFromJSON(
|
|
169
|
+
jsonString: string,
|
|
170
|
+
): SafeParseResult<AccountingCashflow, SDKValidationError> {
|
|
171
|
+
return safeParse(
|
|
172
|
+
jsonString,
|
|
173
|
+
(x) => AccountingCashflow$inboundSchema.parse(JSON.parse(x)),
|
|
174
|
+
`Failed to parse 'AccountingCashflow' from JSON`,
|
|
175
|
+
);
|
|
176
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
PropertyAccountingCashflowItemSubItems,
|
|
12
|
+
PropertyAccountingCashflowItemSubItems$inboundSchema,
|
|
13
|
+
PropertyAccountingCashflowItemSubItems$Outbound,
|
|
14
|
+
PropertyAccountingCashflowItemSubItems$outboundSchema,
|
|
15
|
+
} from "./propertyaccountingcashflowitemsubitems.js";
|
|
16
|
+
|
|
17
|
+
export type AccountingCashflowItem = {
|
|
18
|
+
accountId?: string | undefined;
|
|
19
|
+
amount?: number | undefined;
|
|
20
|
+
name?: string | undefined;
|
|
21
|
+
subItems?: Array<PropertyAccountingCashflowItemSubItems> | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Optional linkage to transactions
|
|
24
|
+
*/
|
|
25
|
+
transactionIds?: Array<string> | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const AccountingCashflowItem$inboundSchema: z.ZodType<
|
|
30
|
+
AccountingCashflowItem,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
account_id: z.string().optional(),
|
|
35
|
+
amount: z.number().optional(),
|
|
36
|
+
name: z.string().optional(),
|
|
37
|
+
sub_items: z.array(PropertyAccountingCashflowItemSubItems$inboundSchema)
|
|
38
|
+
.optional(),
|
|
39
|
+
transaction_ids: z.array(z.string()).optional(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
"account_id": "accountId",
|
|
43
|
+
"sub_items": "subItems",
|
|
44
|
+
"transaction_ids": "transactionIds",
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type AccountingCashflowItem$Outbound = {
|
|
50
|
+
account_id?: string | undefined;
|
|
51
|
+
amount?: number | undefined;
|
|
52
|
+
name?: string | undefined;
|
|
53
|
+
sub_items?:
|
|
54
|
+
| Array<PropertyAccountingCashflowItemSubItems$Outbound>
|
|
55
|
+
| undefined;
|
|
56
|
+
transaction_ids?: Array<string> | undefined;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export const AccountingCashflowItem$outboundSchema: z.ZodType<
|
|
61
|
+
AccountingCashflowItem$Outbound,
|
|
62
|
+
z.ZodTypeDef,
|
|
63
|
+
AccountingCashflowItem
|
|
64
|
+
> = z.object({
|
|
65
|
+
accountId: z.string().optional(),
|
|
66
|
+
amount: z.number().optional(),
|
|
67
|
+
name: z.string().optional(),
|
|
68
|
+
subItems: z.array(PropertyAccountingCashflowItemSubItems$outboundSchema)
|
|
69
|
+
.optional(),
|
|
70
|
+
transactionIds: z.array(z.string()).optional(),
|
|
71
|
+
}).transform((v) => {
|
|
72
|
+
return remap$(v, {
|
|
73
|
+
accountId: "account_id",
|
|
74
|
+
subItems: "sub_items",
|
|
75
|
+
transactionIds: "transaction_ids",
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
82
|
+
*/
|
|
83
|
+
export namespace AccountingCashflowItem$ {
|
|
84
|
+
/** @deprecated use `AccountingCashflowItem$inboundSchema` instead. */
|
|
85
|
+
export const inboundSchema = AccountingCashflowItem$inboundSchema;
|
|
86
|
+
/** @deprecated use `AccountingCashflowItem$outboundSchema` instead. */
|
|
87
|
+
export const outboundSchema = AccountingCashflowItem$outboundSchema;
|
|
88
|
+
/** @deprecated use `AccountingCashflowItem$Outbound` instead. */
|
|
89
|
+
export type Outbound = AccountingCashflowItem$Outbound;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function accountingCashflowItemToJSON(
|
|
93
|
+
accountingCashflowItem: AccountingCashflowItem,
|
|
94
|
+
): string {
|
|
95
|
+
return JSON.stringify(
|
|
96
|
+
AccountingCashflowItem$outboundSchema.parse(accountingCashflowItem),
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function accountingCashflowItemFromJSON(
|
|
101
|
+
jsonString: string,
|
|
102
|
+
): SafeParseResult<AccountingCashflowItem, SDKValidationError> {
|
|
103
|
+
return safeParse(
|
|
104
|
+
jsonString,
|
|
105
|
+
(x) => AccountingCashflowItem$inboundSchema.parse(JSON.parse(x)),
|
|
106
|
+
`Failed to parse 'AccountingCashflowItem' from JSON`,
|
|
107
|
+
);
|
|
108
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
AccountingCashflowItem,
|
|
12
|
+
AccountingCashflowItem$inboundSchema,
|
|
13
|
+
AccountingCashflowItem$Outbound,
|
|
14
|
+
AccountingCashflowItem$outboundSchema,
|
|
15
|
+
} from "./accountingcashflowitem.js";
|
|
16
|
+
|
|
17
|
+
export type AccountingCashflowSection = {
|
|
18
|
+
items?: Array<AccountingCashflowItem> | undefined;
|
|
19
|
+
sectionName?: string | undefined;
|
|
20
|
+
totalAmount?: number | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const AccountingCashflowSection$inboundSchema: z.ZodType<
|
|
25
|
+
AccountingCashflowSection,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
items: z.array(AccountingCashflowItem$inboundSchema).optional(),
|
|
30
|
+
section_name: z.string().optional(),
|
|
31
|
+
total_amount: z.number().optional(),
|
|
32
|
+
}).transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
"section_name": "sectionName",
|
|
35
|
+
"total_amount": "totalAmount",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type AccountingCashflowSection$Outbound = {
|
|
41
|
+
items?: Array<AccountingCashflowItem$Outbound> | undefined;
|
|
42
|
+
section_name?: string | undefined;
|
|
43
|
+
total_amount?: number | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const AccountingCashflowSection$outboundSchema: z.ZodType<
|
|
48
|
+
AccountingCashflowSection$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
AccountingCashflowSection
|
|
51
|
+
> = z.object({
|
|
52
|
+
items: z.array(AccountingCashflowItem$outboundSchema).optional(),
|
|
53
|
+
sectionName: z.string().optional(),
|
|
54
|
+
totalAmount: z.number().optional(),
|
|
55
|
+
}).transform((v) => {
|
|
56
|
+
return remap$(v, {
|
|
57
|
+
sectionName: "section_name",
|
|
58
|
+
totalAmount: "total_amount",
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
|
+
*/
|
|
66
|
+
export namespace AccountingCashflowSection$ {
|
|
67
|
+
/** @deprecated use `AccountingCashflowSection$inboundSchema` instead. */
|
|
68
|
+
export const inboundSchema = AccountingCashflowSection$inboundSchema;
|
|
69
|
+
/** @deprecated use `AccountingCashflowSection$outboundSchema` instead. */
|
|
70
|
+
export const outboundSchema = AccountingCashflowSection$outboundSchema;
|
|
71
|
+
/** @deprecated use `AccountingCashflowSection$Outbound` instead. */
|
|
72
|
+
export type Outbound = AccountingCashflowSection$Outbound;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function accountingCashflowSectionToJSON(
|
|
76
|
+
accountingCashflowSection: AccountingCashflowSection,
|
|
77
|
+
): string {
|
|
78
|
+
return JSON.stringify(
|
|
79
|
+
AccountingCashflowSection$outboundSchema.parse(accountingCashflowSection),
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function accountingCashflowSectionFromJSON(
|
|
84
|
+
jsonString: string,
|
|
85
|
+
): SafeParseResult<AccountingCashflowSection, SDKValidationError> {
|
|
86
|
+
return safeParse(
|
|
87
|
+
jsonString,
|
|
88
|
+
(x) => AccountingCashflowSection$inboundSchema.parse(JSON.parse(x)),
|
|
89
|
+
`Failed to parse 'AccountingCashflowSection' from JSON`,
|
|
90
|
+
);
|
|
91
|
+
}
|
|
@@ -10,11 +10,14 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
|
|
11
11
|
export type AccountingJournalLineitem = {
|
|
12
12
|
accountId?: string | undefined;
|
|
13
|
+
categoryIds?: Array<string> | undefined;
|
|
13
14
|
contactId?: string | undefined;
|
|
14
15
|
description?: string | undefined;
|
|
16
|
+
groupId?: string | undefined;
|
|
15
17
|
id?: string | undefined;
|
|
16
18
|
invoiceId?: string | undefined;
|
|
17
19
|
paymentId?: string | undefined;
|
|
20
|
+
projectId?: string | undefined;
|
|
18
21
|
taxAmount?: number | undefined;
|
|
19
22
|
totalAmount?: number | undefined;
|
|
20
23
|
};
|
|
@@ -26,19 +29,25 @@ export const AccountingJournalLineitem$inboundSchema: z.ZodType<
|
|
|
26
29
|
unknown
|
|
27
30
|
> = z.object({
|
|
28
31
|
account_id: z.string().optional(),
|
|
32
|
+
category_ids: z.array(z.string()).optional(),
|
|
29
33
|
contact_id: z.string().optional(),
|
|
30
34
|
description: z.string().optional(),
|
|
35
|
+
group_id: z.string().optional(),
|
|
31
36
|
id: z.string().optional(),
|
|
32
37
|
invoice_id: z.string().optional(),
|
|
33
38
|
payment_id: z.string().optional(),
|
|
39
|
+
project_id: z.string().optional(),
|
|
34
40
|
tax_amount: z.number().optional(),
|
|
35
41
|
total_amount: z.number().optional(),
|
|
36
42
|
}).transform((v) => {
|
|
37
43
|
return remap$(v, {
|
|
38
44
|
"account_id": "accountId",
|
|
45
|
+
"category_ids": "categoryIds",
|
|
39
46
|
"contact_id": "contactId",
|
|
47
|
+
"group_id": "groupId",
|
|
40
48
|
"invoice_id": "invoiceId",
|
|
41
49
|
"payment_id": "paymentId",
|
|
50
|
+
"project_id": "projectId",
|
|
42
51
|
"tax_amount": "taxAmount",
|
|
43
52
|
"total_amount": "totalAmount",
|
|
44
53
|
});
|
|
@@ -47,11 +56,14 @@ export const AccountingJournalLineitem$inboundSchema: z.ZodType<
|
|
|
47
56
|
/** @internal */
|
|
48
57
|
export type AccountingJournalLineitem$Outbound = {
|
|
49
58
|
account_id?: string | undefined;
|
|
59
|
+
category_ids?: Array<string> | undefined;
|
|
50
60
|
contact_id?: string | undefined;
|
|
51
61
|
description?: string | undefined;
|
|
62
|
+
group_id?: string | undefined;
|
|
52
63
|
id?: string | undefined;
|
|
53
64
|
invoice_id?: string | undefined;
|
|
54
65
|
payment_id?: string | undefined;
|
|
66
|
+
project_id?: string | undefined;
|
|
55
67
|
tax_amount?: number | undefined;
|
|
56
68
|
total_amount?: number | undefined;
|
|
57
69
|
};
|
|
@@ -63,19 +75,25 @@ export const AccountingJournalLineitem$outboundSchema: z.ZodType<
|
|
|
63
75
|
AccountingJournalLineitem
|
|
64
76
|
> = z.object({
|
|
65
77
|
accountId: z.string().optional(),
|
|
78
|
+
categoryIds: z.array(z.string()).optional(),
|
|
66
79
|
contactId: z.string().optional(),
|
|
67
80
|
description: z.string().optional(),
|
|
81
|
+
groupId: z.string().optional(),
|
|
68
82
|
id: z.string().optional(),
|
|
69
83
|
invoiceId: z.string().optional(),
|
|
70
84
|
paymentId: z.string().optional(),
|
|
85
|
+
projectId: z.string().optional(),
|
|
71
86
|
taxAmount: z.number().optional(),
|
|
72
87
|
totalAmount: z.number().optional(),
|
|
73
88
|
}).transform((v) => {
|
|
74
89
|
return remap$(v, {
|
|
75
90
|
accountId: "account_id",
|
|
91
|
+
categoryIds: "category_ids",
|
|
76
92
|
contactId: "contact_id",
|
|
93
|
+
groupId: "group_id",
|
|
77
94
|
invoiceId: "invoice_id",
|
|
78
95
|
paymentId: "payment_id",
|
|
96
|
+
projectId: "project_id",
|
|
79
97
|
taxAmount: "tax_amount",
|
|
80
98
|
totalAmount: "total_amount",
|
|
81
99
|
});
|
|
@@ -8,6 +8,9 @@ export * from "./accountingattachment.js";
|
|
|
8
8
|
export * from "./accountingbalancesheet.js";
|
|
9
9
|
export * from "./accountingbalancesheetitem.js";
|
|
10
10
|
export * from "./accountingbill.js";
|
|
11
|
+
export * from "./accountingcashflow.js";
|
|
12
|
+
export * from "./accountingcashflowitem.js";
|
|
13
|
+
export * from "./accountingcashflowsection.js";
|
|
11
14
|
export * from "./accountingcategory.js";
|
|
12
15
|
export * from "./accountingcontact.js";
|
|
13
16
|
export * from "./accountingcontactpaymentmethod.js";
|
|
@@ -147,6 +150,7 @@ export * from "./paymentpayout.js";
|
|
|
147
150
|
export * from "./paymentrefund.js";
|
|
148
151
|
export * from "./paymentsubscription.js";
|
|
149
152
|
export * from "./propertyaccountingbalancesheetitemsubitems.js";
|
|
153
|
+
export * from "./propertyaccountingcashflowitemsubitems.js";
|
|
150
154
|
export * from "./propertyaccountingcontactbillingaddress.js";
|
|
151
155
|
export * from "./propertyaccountingcontactshippingaddress.js";
|
|
152
156
|
export * from "./propertyaccountingorderbillingaddress.js";
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type PropertyAccountingCashflowItemSubItems = {};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const PropertyAccountingCashflowItemSubItems$inboundSchema: z.ZodType<
|
|
14
|
+
PropertyAccountingCashflowItemSubItems,
|
|
15
|
+
z.ZodTypeDef,
|
|
16
|
+
unknown
|
|
17
|
+
> = z.object({});
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type PropertyAccountingCashflowItemSubItems$Outbound = {};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const PropertyAccountingCashflowItemSubItems$outboundSchema: z.ZodType<
|
|
24
|
+
PropertyAccountingCashflowItemSubItems$Outbound,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
PropertyAccountingCashflowItemSubItems
|
|
27
|
+
> = z.object({});
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
32
|
+
*/
|
|
33
|
+
export namespace PropertyAccountingCashflowItemSubItems$ {
|
|
34
|
+
/** @deprecated use `PropertyAccountingCashflowItemSubItems$inboundSchema` instead. */
|
|
35
|
+
export const inboundSchema =
|
|
36
|
+
PropertyAccountingCashflowItemSubItems$inboundSchema;
|
|
37
|
+
/** @deprecated use `PropertyAccountingCashflowItemSubItems$outboundSchema` instead. */
|
|
38
|
+
export const outboundSchema =
|
|
39
|
+
PropertyAccountingCashflowItemSubItems$outboundSchema;
|
|
40
|
+
/** @deprecated use `PropertyAccountingCashflowItemSubItems$Outbound` instead. */
|
|
41
|
+
export type Outbound = PropertyAccountingCashflowItemSubItems$Outbound;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function propertyAccountingCashflowItemSubItemsToJSON(
|
|
45
|
+
propertyAccountingCashflowItemSubItems:
|
|
46
|
+
PropertyAccountingCashflowItemSubItems,
|
|
47
|
+
): string {
|
|
48
|
+
return JSON.stringify(
|
|
49
|
+
PropertyAccountingCashflowItemSubItems$outboundSchema.parse(
|
|
50
|
+
propertyAccountingCashflowItemSubItems,
|
|
51
|
+
),
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function propertyAccountingCashflowItemSubItemsFromJSON(
|
|
56
|
+
jsonString: string,
|
|
57
|
+
): SafeParseResult<PropertyAccountingCashflowItemSubItems, SDKValidationError> {
|
|
58
|
+
return safeParse(
|
|
59
|
+
jsonString,
|
|
60
|
+
(x) =>
|
|
61
|
+
PropertyAccountingCashflowItemSubItems$inboundSchema.parse(JSON.parse(x)),
|
|
62
|
+
`Failed to parse 'PropertyAccountingCashflowItemSubItems' from JSON`,
|
|
63
|
+
);
|
|
64
|
+
}
|
|
@@ -47,6 +47,8 @@ export const PropertyConnectionPermissions = {
|
|
|
47
47
|
AccountingCategoryWrite: "accounting_category_write",
|
|
48
48
|
PaymentPaymentRead: "payment_payment_read",
|
|
49
49
|
PaymentPaymentWrite: "payment_payment_write",
|
|
50
|
+
AccountingCashflowRead: "accounting_cashflow_read",
|
|
51
|
+
AccountingCashflowWrite: "accounting_cashflow_write",
|
|
50
52
|
PaymentPayoutRead: "payment_payout_read",
|
|
51
53
|
PaymentRefundRead: "payment_refund_read",
|
|
52
54
|
PaymentLinkRead: "payment_link_read",
|
|
@@ -16,7 +16,7 @@ export type RepoCommit = {
|
|
|
16
16
|
raw?: { [k: string]: any } | undefined;
|
|
17
17
|
repoId: string;
|
|
18
18
|
updatedAt?: Date | undefined;
|
|
19
|
-
userId
|
|
19
|
+
userId?: string | undefined;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
/** @internal */
|
|
@@ -34,7 +34,7 @@ export const RepoCommit$inboundSchema: z.ZodType<
|
|
|
34
34
|
repo_id: z.string(),
|
|
35
35
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
36
36
|
.optional(),
|
|
37
|
-
user_id: z.string(),
|
|
37
|
+
user_id: z.string().optional(),
|
|
38
38
|
}).transform((v) => {
|
|
39
39
|
return remap$(v, {
|
|
40
40
|
"branch_id": "branchId",
|
|
@@ -54,7 +54,7 @@ export type RepoCommit$Outbound = {
|
|
|
54
54
|
raw?: { [k: string]: any } | undefined;
|
|
55
55
|
repo_id: string;
|
|
56
56
|
updated_at?: string | undefined;
|
|
57
|
-
user_id
|
|
57
|
+
user_id?: string | undefined;
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
/** @internal */
|
|
@@ -70,7 +70,7 @@ export const RepoCommit$outboundSchema: z.ZodType<
|
|
|
70
70
|
raw: z.record(z.any()).optional(),
|
|
71
71
|
repoId: z.string(),
|
|
72
72
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
73
|
-
userId: z.string(),
|
|
73
|
+
userId: z.string().optional(),
|
|
74
74
|
}).transform((v) => {
|
|
75
75
|
return remap$(v, {
|
|
76
76
|
branchId: "branch_id",
|
|
@@ -48,6 +48,7 @@ export const ObjectType = {
|
|
|
48
48
|
AccountingTrialbalance: "accounting_trialbalance",
|
|
49
49
|
AccountingCategory: "accounting_category",
|
|
50
50
|
AccountingExpense: "accounting_expense",
|
|
51
|
+
AccountingCashflow: "accounting_cashflow",
|
|
51
52
|
PaymentPayment: "payment_payment",
|
|
52
53
|
PaymentLink: "payment_link",
|
|
53
54
|
PaymentPayout: "payment_payout",
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -18,6 +18,7 @@ import { Busy } from "./busy.js";
|
|
|
18
18
|
import { Calendar } from "./calendar.js";
|
|
19
19
|
import { Call } from "./call.js";
|
|
20
20
|
import { Candidate } from "./candidate.js";
|
|
21
|
+
import { Cashflow } from "./cashflow.js";
|
|
21
22
|
import { Category } from "./category.js";
|
|
22
23
|
import { Change } from "./change.js";
|
|
23
24
|
import { Channel } from "./channel.js";
|
|
@@ -132,6 +133,11 @@ export class UnifiedTo extends ClientSDK {
|
|
|
132
133
|
return (this._bill ??= new Bill(this._options));
|
|
133
134
|
}
|
|
134
135
|
|
|
136
|
+
private _cashflow?: Cashflow;
|
|
137
|
+
get cashflow(): Cashflow {
|
|
138
|
+
return (this._cashflow ??= new Cashflow(this._options));
|
|
139
|
+
}
|
|
140
|
+
|
|
135
141
|
private _category?: Category;
|
|
136
142
|
get category(): Category {
|
|
137
143
|
return (this._category ??= new Category(this._options));
|