@unified-api/typescript-sdk 2.54.0 → 2.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/docs/sdks/comment/README.md +512 -0
- package/docs/sdks/connection/README.md +4 -4
- package/docs/sdks/recording/README.md +500 -0
- package/docs/sdks/uc/README.md +1054 -42
- package/docs/sdks/unified/README.md +10 -10
- package/docs/sdks/webhook/README.md +6 -6
- package/funcs/accountingListAccountingReports.js +2 -0
- package/funcs/accountingListAccountingReports.js.map +1 -1
- package/funcs/commentCreateUcComment.d.ts +14 -0
- package/funcs/commentCreateUcComment.d.ts.map +1 -0
- package/funcs/commentCreateUcComment.js +109 -0
- package/funcs/commentCreateUcComment.js.map +1 -0
- package/funcs/commentGetUcComment.d.ts +14 -0
- package/funcs/commentGetUcComment.d.ts.map +1 -0
- package/funcs/commentGetUcComment.js +112 -0
- package/funcs/commentGetUcComment.js.map +1 -0
- package/funcs/commentListUcComments.d.ts +14 -0
- package/funcs/commentListUcComments.d.ts.map +1 -0
- package/funcs/commentListUcComments.js +117 -0
- package/funcs/commentListUcComments.js.map +1 -0
- package/funcs/commentPatchUcComment.d.ts +14 -0
- package/funcs/commentPatchUcComment.d.ts.map +1 -0
- package/funcs/commentPatchUcComment.js +113 -0
- package/funcs/commentPatchUcComment.js.map +1 -0
- package/funcs/commentRemoveUcComment.d.ts +13 -0
- package/funcs/commentRemoveUcComment.d.ts.map +1 -0
- package/funcs/commentRemoveUcComment.js +110 -0
- package/funcs/commentRemoveUcComment.js.map +1 -0
- package/funcs/commentUpdateUcComment.d.ts +14 -0
- package/funcs/commentUpdateUcComment.d.ts.map +1 -0
- package/funcs/commentUpdateUcComment.js +113 -0
- package/funcs/commentUpdateUcComment.js.map +1 -0
- package/funcs/passthroughCreatePassthroughJson.js +4 -0
- package/funcs/passthroughCreatePassthroughJson.js.map +1 -1
- package/funcs/passthroughCreatePassthroughRaw.js +4 -0
- package/funcs/passthroughCreatePassthroughRaw.js.map +1 -1
- package/funcs/passthroughListPassthroughs.js +4 -0
- package/funcs/passthroughListPassthroughs.js.map +1 -1
- package/funcs/passthroughPatchPassthroughJson.js +4 -0
- package/funcs/passthroughPatchPassthroughJson.js.map +1 -1
- package/funcs/passthroughPatchPassthroughRaw.js +4 -0
- package/funcs/passthroughPatchPassthroughRaw.js.map +1 -1
- package/funcs/passthroughRemovePassthrough.js +4 -0
- package/funcs/passthroughRemovePassthrough.js.map +1 -1
- package/funcs/passthroughUpdatePassthroughJson.js +4 -0
- package/funcs/passthroughUpdatePassthroughJson.js.map +1 -1
- package/funcs/passthroughUpdatePassthroughRaw.js +4 -0
- package/funcs/passthroughUpdatePassthroughRaw.js.map +1 -1
- package/funcs/recordingCreateUcRecording.d.ts +14 -0
- package/funcs/recordingCreateUcRecording.d.ts.map +1 -0
- package/funcs/recordingCreateUcRecording.js +109 -0
- package/funcs/recordingCreateUcRecording.js.map +1 -0
- package/funcs/recordingGetUcRecording.d.ts +14 -0
- package/funcs/recordingGetUcRecording.d.ts.map +1 -0
- package/funcs/recordingGetUcRecording.js +112 -0
- package/funcs/recordingGetUcRecording.js.map +1 -0
- package/funcs/recordingListUcRecordings.d.ts +14 -0
- package/funcs/recordingListUcRecordings.d.ts.map +1 -0
- package/funcs/recordingListUcRecordings.js +119 -0
- package/funcs/recordingListUcRecordings.js.map +1 -0
- package/funcs/recordingPatchUcRecording.d.ts +14 -0
- package/funcs/recordingPatchUcRecording.d.ts.map +1 -0
- package/funcs/recordingPatchUcRecording.js +113 -0
- package/funcs/recordingPatchUcRecording.js.map +1 -0
- package/funcs/recordingRemoveUcRecording.d.ts +13 -0
- package/funcs/recordingRemoveUcRecording.d.ts.map +1 -0
- package/funcs/recordingRemoveUcRecording.js +110 -0
- package/funcs/recordingRemoveUcRecording.js.map +1 -0
- package/funcs/recordingUpdateUcRecording.d.ts +14 -0
- package/funcs/recordingUpdateUcRecording.d.ts.map +1 -0
- package/funcs/recordingUpdateUcRecording.js +113 -0
- package/funcs/recordingUpdateUcRecording.js.map +1 -0
- package/funcs/reportListAccountingReports.js +2 -0
- package/funcs/reportListAccountingReports.js.map +1 -1
- package/funcs/ucCreateUcComment.d.ts +14 -0
- package/funcs/ucCreateUcComment.d.ts.map +1 -0
- package/funcs/ucCreateUcComment.js +109 -0
- package/funcs/ucCreateUcComment.js.map +1 -0
- package/funcs/ucCreateUcRecording.d.ts +14 -0
- package/funcs/ucCreateUcRecording.d.ts.map +1 -0
- package/funcs/ucCreateUcRecording.js +109 -0
- package/funcs/ucCreateUcRecording.js.map +1 -0
- package/funcs/ucGetUcComment.d.ts +14 -0
- package/funcs/ucGetUcComment.d.ts.map +1 -0
- package/funcs/ucGetUcComment.js +112 -0
- package/funcs/ucGetUcComment.js.map +1 -0
- package/funcs/ucGetUcRecording.d.ts +14 -0
- package/funcs/ucGetUcRecording.d.ts.map +1 -0
- package/funcs/ucGetUcRecording.js +112 -0
- package/funcs/ucGetUcRecording.js.map +1 -0
- package/funcs/ucListUcComments.d.ts +14 -0
- package/funcs/ucListUcComments.d.ts.map +1 -0
- package/funcs/ucListUcComments.js +117 -0
- package/funcs/ucListUcComments.js.map +1 -0
- package/funcs/ucListUcRecordings.d.ts +14 -0
- package/funcs/ucListUcRecordings.d.ts.map +1 -0
- package/funcs/ucListUcRecordings.js +119 -0
- package/funcs/ucListUcRecordings.js.map +1 -0
- package/funcs/ucPatchUcComment.d.ts +14 -0
- package/funcs/ucPatchUcComment.d.ts.map +1 -0
- package/funcs/ucPatchUcComment.js +113 -0
- package/funcs/ucPatchUcComment.js.map +1 -0
- package/funcs/ucPatchUcRecording.d.ts +14 -0
- package/funcs/ucPatchUcRecording.d.ts.map +1 -0
- package/funcs/ucPatchUcRecording.js +113 -0
- package/funcs/ucPatchUcRecording.js.map +1 -0
- package/funcs/ucRemoveUcComment.d.ts +13 -0
- package/funcs/ucRemoveUcComment.d.ts.map +1 -0
- package/funcs/ucRemoveUcComment.js +110 -0
- package/funcs/ucRemoveUcComment.js.map +1 -0
- package/funcs/ucRemoveUcRecording.d.ts +13 -0
- package/funcs/ucRemoveUcRecording.d.ts.map +1 -0
- package/funcs/ucRemoveUcRecording.js +110 -0
- package/funcs/ucRemoveUcRecording.js.map +1 -0
- package/funcs/ucUpdateUcComment.d.ts +14 -0
- package/funcs/ucUpdateUcComment.d.ts.map +1 -0
- package/funcs/ucUpdateUcComment.js +113 -0
- package/funcs/ucUpdateUcComment.js.map +1 -0
- package/funcs/ucUpdateUcRecording.d.ts +14 -0
- package/funcs/ucUpdateUcRecording.d.ts.map +1 -0
- package/funcs/ucUpdateUcRecording.js +113 -0
- package/funcs/ucUpdateUcRecording.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/package.json +1 -1
- package/sdk/comment.d.ts +24 -0
- package/sdk/comment.d.ts.map +1 -1
- package/sdk/comment.js +42 -0
- package/sdk/comment.js.map +1 -1
- package/sdk/models/operations/createpassthroughjson.d.ts +6 -0
- package/sdk/models/operations/createpassthroughjson.d.ts.map +1 -1
- package/sdk/models/operations/createpassthroughjson.js +2 -0
- package/sdk/models/operations/createpassthroughjson.js.map +1 -1
- package/sdk/models/operations/createpassthroughraw.d.ts +6 -0
- package/sdk/models/operations/createpassthroughraw.d.ts.map +1 -1
- package/sdk/models/operations/createpassthroughraw.js +2 -0
- package/sdk/models/operations/createpassthroughraw.js.map +1 -1
- package/sdk/models/operations/createuccomment.d.ts +40 -0
- package/sdk/models/operations/createuccomment.d.ts.map +1 -0
- package/sdk/models/operations/createuccomment.js +75 -0
- package/sdk/models/operations/createuccomment.js.map +1 -0
- package/sdk/models/operations/createucrecording.d.ts +40 -0
- package/sdk/models/operations/createucrecording.d.ts.map +1 -0
- package/sdk/models/operations/createucrecording.js +75 -0
- package/sdk/models/operations/createucrecording.js.map +1 -0
- package/sdk/models/operations/getuccomment.d.ts +42 -0
- package/sdk/models/operations/getuccomment.d.ts.map +1 -0
- package/sdk/models/operations/getuccomment.js +72 -0
- package/sdk/models/operations/getuccomment.js.map +1 -0
- package/sdk/models/operations/getucrecording.d.ts +42 -0
- package/sdk/models/operations/getucrecording.d.ts.map +1 -0
- package/sdk/models/operations/getucrecording.js +72 -0
- package/sdk/models/operations/getucrecording.js.map +1 -0
- package/sdk/models/operations/index.d.ts +12 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +12 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listaccountingreports.d.ts +4 -0
- package/sdk/models/operations/listaccountingreports.d.ts.map +1 -1
- package/sdk/models/operations/listaccountingreports.js +8 -0
- package/sdk/models/operations/listaccountingreports.js.map +1 -1
- package/sdk/models/operations/listpassthroughs.d.ts +6 -0
- package/sdk/models/operations/listpassthroughs.d.ts.map +1 -1
- package/sdk/models/operations/listpassthroughs.js +2 -0
- package/sdk/models/operations/listpassthroughs.js.map +1 -1
- package/sdk/models/operations/listuccomments.d.ts +59 -0
- package/sdk/models/operations/listuccomments.d.ts.map +1 -0
- package/sdk/models/operations/listuccomments.js +93 -0
- package/sdk/models/operations/listuccomments.js.map +1 -0
- package/sdk/models/operations/listucrecordings.d.ts +63 -0
- package/sdk/models/operations/listucrecordings.d.ts.map +1 -0
- package/sdk/models/operations/listucrecordings.js +101 -0
- package/sdk/models/operations/listucrecordings.js.map +1 -0
- package/sdk/models/operations/patchpassthroughjson.d.ts +6 -0
- package/sdk/models/operations/patchpassthroughjson.d.ts.map +1 -1
- package/sdk/models/operations/patchpassthroughjson.js +2 -0
- package/sdk/models/operations/patchpassthroughjson.js.map +1 -1
- package/sdk/models/operations/patchpassthroughraw.d.ts +6 -0
- package/sdk/models/operations/patchpassthroughraw.d.ts.map +1 -1
- package/sdk/models/operations/patchpassthroughraw.js +2 -0
- package/sdk/models/operations/patchpassthroughraw.js.map +1 -1
- package/sdk/models/operations/patchuccomment.d.ts +45 -0
- package/sdk/models/operations/patchuccomment.d.ts.map +1 -0
- package/sdk/models/operations/patchuccomment.js +77 -0
- package/sdk/models/operations/patchuccomment.js.map +1 -0
- package/sdk/models/operations/patchucrecording.d.ts +45 -0
- package/sdk/models/operations/patchucrecording.d.ts.map +1 -0
- package/sdk/models/operations/patchucrecording.js +77 -0
- package/sdk/models/operations/patchucrecording.js.map +1 -0
- package/sdk/models/operations/removepassthrough.d.ts +6 -0
- package/sdk/models/operations/removepassthrough.d.ts.map +1 -1
- package/sdk/models/operations/removepassthrough.js +2 -0
- package/sdk/models/operations/removepassthrough.js.map +1 -1
- package/sdk/models/operations/removeuccomment.d.ts +66 -0
- package/sdk/models/operations/removeuccomment.d.ts.map +1 -0
- package/sdk/models/operations/removeuccomment.js +105 -0
- package/sdk/models/operations/removeuccomment.js.map +1 -0
- package/sdk/models/operations/removeucrecording.d.ts +66 -0
- package/sdk/models/operations/removeucrecording.d.ts.map +1 -0
- package/sdk/models/operations/removeucrecording.js +105 -0
- package/sdk/models/operations/removeucrecording.js.map +1 -0
- package/sdk/models/operations/updatepassthroughjson.d.ts +6 -0
- package/sdk/models/operations/updatepassthroughjson.d.ts.map +1 -1
- package/sdk/models/operations/updatepassthroughjson.js +2 -0
- package/sdk/models/operations/updatepassthroughjson.js.map +1 -1
- package/sdk/models/operations/updatepassthroughraw.d.ts +6 -0
- package/sdk/models/operations/updatepassthroughraw.d.ts.map +1 -1
- package/sdk/models/operations/updatepassthroughraw.js +2 -0
- package/sdk/models/operations/updatepassthroughraw.js.map +1 -1
- package/sdk/models/operations/updateuccomment.d.ts +45 -0
- package/sdk/models/operations/updateuccomment.d.ts.map +1 -0
- package/sdk/models/operations/updateuccomment.js +77 -0
- package/sdk/models/operations/updateuccomment.js.map +1 -0
- package/sdk/models/operations/updateucrecording.d.ts +45 -0
- package/sdk/models/operations/updateucrecording.d.ts.map +1 -0
- package/sdk/models/operations/updateucrecording.js +77 -0
- package/sdk/models/operations/updateucrecording.js.map +1 -0
- package/sdk/models/shared/accountingattachment.d.ts +6 -6
- package/sdk/models/shared/accountingattachment.d.ts.map +1 -1
- package/sdk/models/shared/accountingattachment.js +6 -6
- package/sdk/models/shared/accountingattachment.js.map +1 -1
- package/sdk/models/shared/accountingbalancesheetitem.d.ts +36 -0
- package/sdk/models/shared/accountingbalancesheetitem.d.ts.map +1 -0
- package/sdk/models/shared/accountingbalancesheetitem.js +79 -0
- package/sdk/models/shared/accountingbalancesheetitem.js.map +1 -0
- package/sdk/models/shared/accountingprofitandlosscategory.d.ts +34 -0
- package/sdk/models/shared/accountingprofitandlosscategory.d.ts.map +1 -0
- package/sdk/models/shared/accountingprofitandlosscategory.js +75 -0
- package/sdk/models/shared/accountingprofitandlosscategory.js.map +1 -0
- package/sdk/models/shared/accountingprofitandlosssubcategory.d.ts +33 -0
- package/sdk/models/shared/accountingprofitandlosssubcategory.d.ts.map +1 -0
- package/sdk/models/shared/accountingprofitandlosssubcategory.js +72 -0
- package/sdk/models/shared/accountingprofitandlosssubcategory.js.map +1 -0
- package/sdk/models/shared/accountingreport.d.ts +17 -10
- package/sdk/models/shared/accountingreport.d.ts.map +1 -1
- package/sdk/models/shared/accountingreport.js +31 -14
- package/sdk/models/shared/accountingreport.js.map +1 -1
- package/sdk/models/shared/accountingtrialbalancesubitem.d.ts +33 -0
- package/sdk/models/shared/accountingtrialbalancesubitem.d.ts.map +1 -0
- package/sdk/models/shared/accountingtrialbalancesubitem.js +74 -0
- package/sdk/models/shared/accountingtrialbalancesubitem.js.map +1 -0
- package/sdk/models/shared/index.d.ts +12 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +12 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/integrationsupport.d.ts +30 -0
- package/sdk/models/shared/integrationsupport.d.ts.map +1 -1
- package/sdk/models/shared/integrationsupport.js +31 -6
- package/sdk/models/shared/integrationsupport.js.map +1 -1
- package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.d.ts +25 -0
- package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.js +55 -0
- package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.js.map +1 -0
- package/sdk/models/shared/propertyaccountingreportbalancesheet.d.ts +36 -0
- package/sdk/models/shared/propertyaccountingreportbalancesheet.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingreportbalancesheet.js +75 -0
- package/sdk/models/shared/propertyaccountingreportbalancesheet.js.map +1 -0
- package/sdk/models/shared/propertyaccountingreportprofitandloss.d.ts +38 -0
- package/sdk/models/shared/propertyaccountingreportprofitandloss.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingreportprofitandloss.js +83 -0
- package/sdk/models/shared/propertyaccountingreportprofitandloss.js.map +1 -0
- package/sdk/models/shared/propertyaccountingreporttrialbalance.d.ts +34 -0
- package/sdk/models/shared/propertyaccountingreporttrialbalance.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingreporttrialbalance.js +77 -0
- package/sdk/models/shared/propertyaccountingreporttrialbalance.js.map +1 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts +9 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.js +3 -0
- package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
- package/sdk/models/shared/uccall.d.ts +0 -3
- package/sdk/models/shared/uccall.d.ts.map +1 -1
- package/sdk/models/shared/uccall.js.map +1 -1
- package/sdk/models/shared/uccomment.d.ts +43 -0
- package/sdk/models/shared/uccomment.d.ts.map +1 -0
- package/sdk/models/shared/uccomment.js +82 -0
- package/sdk/models/shared/uccomment.js.map +1 -0
- package/sdk/models/shared/uccontact.d.ts +0 -3
- package/sdk/models/shared/uccontact.d.ts.map +1 -1
- package/sdk/models/shared/uccontact.js.map +1 -1
- package/sdk/models/shared/ucrecording.d.ts +60 -0
- package/sdk/models/shared/ucrecording.d.ts.map +1 -0
- package/sdk/models/shared/ucrecording.js +120 -0
- package/sdk/models/shared/ucrecording.js.map +1 -0
- package/sdk/models/shared/ucrecordingmedia.d.ts +40 -0
- package/sdk/models/shared/ucrecordingmedia.d.ts.map +1 -0
- package/sdk/models/shared/ucrecordingmedia.js +87 -0
- package/sdk/models/shared/ucrecordingmedia.js.map +1 -0
- package/sdk/models/shared/ucrecordingtranscript.d.ts +37 -0
- package/sdk/models/shared/ucrecordingtranscript.d.ts.map +1 -0
- package/sdk/models/shared/ucrecordingtranscript.js +84 -0
- package/sdk/models/shared/ucrecordingtranscript.js.map +1 -0
- package/sdk/models/shared/webhook.d.ts +6 -0
- package/sdk/models/shared/webhook.d.ts.map +1 -1
- package/sdk/models/shared/webhook.js +2 -0
- package/sdk/models/shared/webhook.js.map +1 -1
- package/sdk/recording.d.ts +24 -0
- package/sdk/recording.d.ts.map +1 -1
- package/sdk/recording.js +42 -0
- package/sdk/recording.js.map +1 -1
- package/sdk/uc.d.ts +48 -0
- package/sdk/uc.d.ts.map +1 -1
- package/sdk/uc.js +84 -0
- package/sdk/uc.js.map +1 -1
- package/src/funcs/accountingListAccountingReports.ts +2 -0
- package/src/funcs/commentCreateUcComment.ts +163 -0
- package/src/funcs/commentGetUcComment.ts +166 -0
- package/src/funcs/commentListUcComments.ts +171 -0
- package/src/funcs/commentPatchUcComment.ts +167 -0
- package/src/funcs/commentRemoveUcComment.ts +169 -0
- package/src/funcs/commentUpdateUcComment.ts +167 -0
- package/src/funcs/passthroughCreatePassthroughJson.ts +6 -1
- package/src/funcs/passthroughCreatePassthroughRaw.ts +6 -1
- package/src/funcs/passthroughListPassthroughs.ts +6 -1
- package/src/funcs/passthroughPatchPassthroughJson.ts +6 -1
- package/src/funcs/passthroughPatchPassthroughRaw.ts +6 -1
- package/src/funcs/passthroughRemovePassthrough.ts +6 -1
- package/src/funcs/passthroughUpdatePassthroughJson.ts +6 -1
- package/src/funcs/passthroughUpdatePassthroughRaw.ts +6 -1
- package/src/funcs/recordingCreateUcRecording.ts +163 -0
- package/src/funcs/recordingGetUcRecording.ts +166 -0
- package/src/funcs/recordingListUcRecordings.ts +173 -0
- package/src/funcs/recordingPatchUcRecording.ts +167 -0
- package/src/funcs/recordingRemoveUcRecording.ts +169 -0
- package/src/funcs/recordingUpdateUcRecording.ts +167 -0
- package/src/funcs/reportListAccountingReports.ts +2 -0
- package/src/funcs/ucCreateUcComment.ts +163 -0
- package/src/funcs/ucCreateUcRecording.ts +163 -0
- package/src/funcs/ucGetUcComment.ts +166 -0
- package/src/funcs/ucGetUcRecording.ts +166 -0
- package/src/funcs/ucListUcComments.ts +171 -0
- package/src/funcs/ucListUcRecordings.ts +173 -0
- package/src/funcs/ucPatchUcComment.ts +167 -0
- package/src/funcs/ucPatchUcRecording.ts +167 -0
- package/src/funcs/ucRemoveUcComment.ts +169 -0
- package/src/funcs/ucRemoveUcRecording.ts +169 -0
- package/src/funcs/ucUpdateUcComment.ts +167 -0
- package/src/funcs/ucUpdateUcRecording.ts +167 -0
- package/src/lib/config.ts +2 -2
- package/src/sdk/comment.ts +90 -0
- package/src/sdk/models/operations/createpassthroughjson.ts +4 -0
- package/src/sdk/models/operations/createpassthroughraw.ts +4 -0
- package/src/sdk/models/operations/createuccomment.ts +92 -0
- package/src/sdk/models/operations/createucrecording.ts +92 -0
- package/src/sdk/models/operations/getuccomment.ts +92 -0
- package/src/sdk/models/operations/getucrecording.ts +92 -0
- package/src/sdk/models/operations/index.ts +12 -0
- package/src/sdk/models/operations/listaccountingreports.ts +12 -0
- package/src/sdk/models/operations/listpassthroughs.ts +4 -0
- package/src/sdk/models/operations/listuccomments.ts +130 -0
- package/src/sdk/models/operations/listucrecordings.ts +142 -0
- package/src/sdk/models/operations/patchpassthroughjson.ts +4 -0
- package/src/sdk/models/operations/patchpassthroughraw.ts +4 -0
- package/src/sdk/models/operations/patchuccomment.ts +99 -0
- package/src/sdk/models/operations/patchucrecording.ts +99 -0
- package/src/sdk/models/operations/removepassthrough.ts +4 -0
- package/src/sdk/models/operations/removeuccomment.ts +151 -0
- package/src/sdk/models/operations/removeucrecording.ts +151 -0
- package/src/sdk/models/operations/updatepassthroughjson.ts +4 -0
- package/src/sdk/models/operations/updatepassthroughraw.ts +4 -0
- package/src/sdk/models/operations/updateuccomment.ts +99 -0
- package/src/sdk/models/operations/updateucrecording.ts +99 -0
- package/src/sdk/models/shared/accountingattachment.ts +12 -12
- package/src/sdk/models/shared/accountingbalancesheetitem.ts +99 -0
- package/src/sdk/models/shared/accountingprofitandlosscategory.ts +93 -0
- package/src/sdk/models/shared/accountingprofitandlosssubcategory.ts +87 -0
- package/src/sdk/models/shared/accountingreport.ts +60 -24
- package/src/sdk/models/shared/accountingtrialbalancesubitem.ts +87 -0
- package/src/sdk/models/shared/index.ts +12 -0
- package/src/sdk/models/shared/integrationsupport.ts +32 -0
- package/src/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.ts +68 -0
- package/src/sdk/models/shared/propertyaccountingreportbalancesheet.ts +98 -0
- package/src/sdk/models/shared/propertyaccountingreportprofitandloss.ts +110 -0
- package/src/sdk/models/shared/propertyaccountingreporttrialbalance.ts +98 -0
- package/src/sdk/models/shared/propertyconnectionpermissions.ts +3 -0
- package/src/sdk/models/shared/uccall.ts +0 -3
- package/src/sdk/models/shared/uccomment.ts +95 -0
- package/src/sdk/models/shared/uccontact.ts +0 -3
- package/src/sdk/models/shared/ucrecording.ts +154 -0
- package/src/sdk/models/shared/ucrecordingmedia.ts +109 -0
- package/src/sdk/models/shared/ucrecordingtranscript.ts +99 -0
- package/src/sdk/models/shared/webhook.ts +2 -0
- package/src/sdk/recording.ts +90 -0
- package/src/sdk/uc.ts +180 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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
|
+
|
|
11
|
+
export type RemoveUcRecordingRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* ID of the connection
|
|
14
|
+
*/
|
|
15
|
+
connectionId: string;
|
|
16
|
+
/**
|
|
17
|
+
* ID of the Recording
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type RemoveUcRecordingResponse = {
|
|
23
|
+
headers: { [k: string]: Array<string> };
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const RemoveUcRecordingRequest$inboundSchema: z.ZodType<
|
|
28
|
+
RemoveUcRecordingRequest,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
connection_id: z.string(),
|
|
33
|
+
id: z.string(),
|
|
34
|
+
}).transform((v) => {
|
|
35
|
+
return remap$(v, {
|
|
36
|
+
"connection_id": "connectionId",
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type RemoveUcRecordingRequest$Outbound = {
|
|
42
|
+
connection_id: string;
|
|
43
|
+
id: string;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const RemoveUcRecordingRequest$outboundSchema: z.ZodType<
|
|
48
|
+
RemoveUcRecordingRequest$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
RemoveUcRecordingRequest
|
|
51
|
+
> = z.object({
|
|
52
|
+
connectionId: z.string(),
|
|
53
|
+
id: z.string(),
|
|
54
|
+
}).transform((v) => {
|
|
55
|
+
return remap$(v, {
|
|
56
|
+
connectionId: "connection_id",
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
+
*/
|
|
64
|
+
export namespace RemoveUcRecordingRequest$ {
|
|
65
|
+
/** @deprecated use `RemoveUcRecordingRequest$inboundSchema` instead. */
|
|
66
|
+
export const inboundSchema = RemoveUcRecordingRequest$inboundSchema;
|
|
67
|
+
/** @deprecated use `RemoveUcRecordingRequest$outboundSchema` instead. */
|
|
68
|
+
export const outboundSchema = RemoveUcRecordingRequest$outboundSchema;
|
|
69
|
+
/** @deprecated use `RemoveUcRecordingRequest$Outbound` instead. */
|
|
70
|
+
export type Outbound = RemoveUcRecordingRequest$Outbound;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function removeUcRecordingRequestToJSON(
|
|
74
|
+
removeUcRecordingRequest: RemoveUcRecordingRequest,
|
|
75
|
+
): string {
|
|
76
|
+
return JSON.stringify(
|
|
77
|
+
RemoveUcRecordingRequest$outboundSchema.parse(removeUcRecordingRequest),
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function removeUcRecordingRequestFromJSON(
|
|
82
|
+
jsonString: string,
|
|
83
|
+
): SafeParseResult<RemoveUcRecordingRequest, SDKValidationError> {
|
|
84
|
+
return safeParse(
|
|
85
|
+
jsonString,
|
|
86
|
+
(x) => RemoveUcRecordingRequest$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
+
`Failed to parse 'RemoveUcRecordingRequest' from JSON`,
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const RemoveUcRecordingResponse$inboundSchema: z.ZodType<
|
|
93
|
+
RemoveUcRecordingResponse,
|
|
94
|
+
z.ZodTypeDef,
|
|
95
|
+
unknown
|
|
96
|
+
> = z.object({
|
|
97
|
+
Headers: z.record(z.array(z.string())),
|
|
98
|
+
}).transform((v) => {
|
|
99
|
+
return remap$(v, {
|
|
100
|
+
"Headers": "headers",
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
/** @internal */
|
|
105
|
+
export type RemoveUcRecordingResponse$Outbound = {
|
|
106
|
+
Headers: { [k: string]: Array<string> };
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/** @internal */
|
|
110
|
+
export const RemoveUcRecordingResponse$outboundSchema: z.ZodType<
|
|
111
|
+
RemoveUcRecordingResponse$Outbound,
|
|
112
|
+
z.ZodTypeDef,
|
|
113
|
+
RemoveUcRecordingResponse
|
|
114
|
+
> = z.object({
|
|
115
|
+
headers: z.record(z.array(z.string())),
|
|
116
|
+
}).transform((v) => {
|
|
117
|
+
return remap$(v, {
|
|
118
|
+
headers: "Headers",
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @internal
|
|
124
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
125
|
+
*/
|
|
126
|
+
export namespace RemoveUcRecordingResponse$ {
|
|
127
|
+
/** @deprecated use `RemoveUcRecordingResponse$inboundSchema` instead. */
|
|
128
|
+
export const inboundSchema = RemoveUcRecordingResponse$inboundSchema;
|
|
129
|
+
/** @deprecated use `RemoveUcRecordingResponse$outboundSchema` instead. */
|
|
130
|
+
export const outboundSchema = RemoveUcRecordingResponse$outboundSchema;
|
|
131
|
+
/** @deprecated use `RemoveUcRecordingResponse$Outbound` instead. */
|
|
132
|
+
export type Outbound = RemoveUcRecordingResponse$Outbound;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function removeUcRecordingResponseToJSON(
|
|
136
|
+
removeUcRecordingResponse: RemoveUcRecordingResponse,
|
|
137
|
+
): string {
|
|
138
|
+
return JSON.stringify(
|
|
139
|
+
RemoveUcRecordingResponse$outboundSchema.parse(removeUcRecordingResponse),
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function removeUcRecordingResponseFromJSON(
|
|
144
|
+
jsonString: string,
|
|
145
|
+
): SafeParseResult<RemoveUcRecordingResponse, SDKValidationError> {
|
|
146
|
+
return safeParse(
|
|
147
|
+
jsonString,
|
|
148
|
+
(x) => RemoveUcRecordingResponse$inboundSchema.parse(JSON.parse(x)),
|
|
149
|
+
`Failed to parse 'RemoveUcRecordingResponse' from JSON`,
|
|
150
|
+
);
|
|
151
|
+
}
|
|
@@ -18,6 +18,7 @@ export type UpdatePassthroughJsonRequest = {
|
|
|
18
18
|
*/
|
|
19
19
|
connectionId: string;
|
|
20
20
|
path: string;
|
|
21
|
+
query?: { [k: string]: any } | undefined;
|
|
21
22
|
};
|
|
22
23
|
|
|
23
24
|
export type UpdatePassthroughJsonResponseResult =
|
|
@@ -47,6 +48,7 @@ export const UpdatePassthroughJsonRequest$inboundSchema: z.ZodType<
|
|
|
47
48
|
RequestBody: z.any().optional(),
|
|
48
49
|
connection_id: z.string(),
|
|
49
50
|
path: z.string(),
|
|
51
|
+
query: z.record(z.any()).optional(),
|
|
50
52
|
}).transform((v) => {
|
|
51
53
|
return remap$(v, {
|
|
52
54
|
"RequestBody": "requestBody",
|
|
@@ -59,6 +61,7 @@ export type UpdatePassthroughJsonRequest$Outbound = {
|
|
|
59
61
|
RequestBody?: any | undefined;
|
|
60
62
|
connection_id: string;
|
|
61
63
|
path: string;
|
|
64
|
+
query?: { [k: string]: any } | undefined;
|
|
62
65
|
};
|
|
63
66
|
|
|
64
67
|
/** @internal */
|
|
@@ -70,6 +73,7 @@ export const UpdatePassthroughJsonRequest$outboundSchema: z.ZodType<
|
|
|
70
73
|
requestBody: z.any().optional(),
|
|
71
74
|
connectionId: z.string(),
|
|
72
75
|
path: z.string(),
|
|
76
|
+
query: z.record(z.any()).optional(),
|
|
73
77
|
}).transform((v) => {
|
|
74
78
|
return remap$(v, {
|
|
75
79
|
requestBody: "RequestBody",
|
|
@@ -23,6 +23,7 @@ export type UpdatePassthroughRawRequest = {
|
|
|
23
23
|
*/
|
|
24
24
|
connectionId: string;
|
|
25
25
|
path: string;
|
|
26
|
+
query?: { [k: string]: any } | undefined;
|
|
26
27
|
};
|
|
27
28
|
|
|
28
29
|
export type UpdatePassthroughRawResponseResult =
|
|
@@ -57,6 +58,7 @@ export const UpdatePassthroughRawRequest$inboundSchema: z.ZodType<
|
|
|
57
58
|
]).optional(),
|
|
58
59
|
connection_id: z.string(),
|
|
59
60
|
path: z.string(),
|
|
61
|
+
query: z.record(z.any()).optional(),
|
|
60
62
|
}).transform((v) => {
|
|
61
63
|
return remap$(v, {
|
|
62
64
|
"RequestBody": "requestBody",
|
|
@@ -74,6 +76,7 @@ export type UpdatePassthroughRawRequest$Outbound = {
|
|
|
74
76
|
| undefined;
|
|
75
77
|
connection_id: string;
|
|
76
78
|
path: string;
|
|
79
|
+
query?: { [k: string]: any } | undefined;
|
|
77
80
|
};
|
|
78
81
|
|
|
79
82
|
/** @internal */
|
|
@@ -90,6 +93,7 @@ export const UpdatePassthroughRawRequest$outboundSchema: z.ZodType<
|
|
|
90
93
|
]).optional(),
|
|
91
94
|
connectionId: z.string(),
|
|
92
95
|
path: z.string(),
|
|
96
|
+
query: z.record(z.any()).optional(),
|
|
93
97
|
}).transform((v) => {
|
|
94
98
|
return remap$(v, {
|
|
95
99
|
requestBody: "RequestBody",
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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 * as shared from "../shared/index.js";
|
|
11
|
+
|
|
12
|
+
export type UpdateUcCommentRequest = {
|
|
13
|
+
ucComment: shared.UcComment;
|
|
14
|
+
/**
|
|
15
|
+
* ID of the connection
|
|
16
|
+
*/
|
|
17
|
+
connectionId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Comma-delimited fields to return
|
|
20
|
+
*/
|
|
21
|
+
fields?: Array<string> | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* ID of the Comment
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const UpdateUcCommentRequest$inboundSchema: z.ZodType<
|
|
30
|
+
UpdateUcCommentRequest,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
UcComment: shared.UcComment$inboundSchema,
|
|
35
|
+
connection_id: z.string(),
|
|
36
|
+
fields: z.array(z.string()).optional(),
|
|
37
|
+
id: z.string(),
|
|
38
|
+
}).transform((v) => {
|
|
39
|
+
return remap$(v, {
|
|
40
|
+
"UcComment": "ucComment",
|
|
41
|
+
"connection_id": "connectionId",
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type UpdateUcCommentRequest$Outbound = {
|
|
47
|
+
UcComment: shared.UcComment$Outbound;
|
|
48
|
+
connection_id: string;
|
|
49
|
+
fields?: Array<string> | undefined;
|
|
50
|
+
id: string;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const UpdateUcCommentRequest$outboundSchema: z.ZodType<
|
|
55
|
+
UpdateUcCommentRequest$Outbound,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
UpdateUcCommentRequest
|
|
58
|
+
> = z.object({
|
|
59
|
+
ucComment: shared.UcComment$outboundSchema,
|
|
60
|
+
connectionId: z.string(),
|
|
61
|
+
fields: z.array(z.string()).optional(),
|
|
62
|
+
id: z.string(),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return remap$(v, {
|
|
65
|
+
ucComment: "UcComment",
|
|
66
|
+
connectionId: "connection_id",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
+
*/
|
|
74
|
+
export namespace UpdateUcCommentRequest$ {
|
|
75
|
+
/** @deprecated use `UpdateUcCommentRequest$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema = UpdateUcCommentRequest$inboundSchema;
|
|
77
|
+
/** @deprecated use `UpdateUcCommentRequest$outboundSchema` instead. */
|
|
78
|
+
export const outboundSchema = UpdateUcCommentRequest$outboundSchema;
|
|
79
|
+
/** @deprecated use `UpdateUcCommentRequest$Outbound` instead. */
|
|
80
|
+
export type Outbound = UpdateUcCommentRequest$Outbound;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function updateUcCommentRequestToJSON(
|
|
84
|
+
updateUcCommentRequest: UpdateUcCommentRequest,
|
|
85
|
+
): string {
|
|
86
|
+
return JSON.stringify(
|
|
87
|
+
UpdateUcCommentRequest$outboundSchema.parse(updateUcCommentRequest),
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function updateUcCommentRequestFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<UpdateUcCommentRequest, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) => UpdateUcCommentRequest$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'UpdateUcCommentRequest' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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 * as shared from "../shared/index.js";
|
|
11
|
+
|
|
12
|
+
export type UpdateUcRecordingRequest = {
|
|
13
|
+
ucRecording: shared.UcRecording;
|
|
14
|
+
/**
|
|
15
|
+
* ID of the connection
|
|
16
|
+
*/
|
|
17
|
+
connectionId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Comma-delimited fields to return
|
|
20
|
+
*/
|
|
21
|
+
fields?: Array<string> | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* ID of the Recording
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const UpdateUcRecordingRequest$inboundSchema: z.ZodType<
|
|
30
|
+
UpdateUcRecordingRequest,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
UcRecording: shared.UcRecording$inboundSchema,
|
|
35
|
+
connection_id: z.string(),
|
|
36
|
+
fields: z.array(z.string()).optional(),
|
|
37
|
+
id: z.string(),
|
|
38
|
+
}).transform((v) => {
|
|
39
|
+
return remap$(v, {
|
|
40
|
+
"UcRecording": "ucRecording",
|
|
41
|
+
"connection_id": "connectionId",
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type UpdateUcRecordingRequest$Outbound = {
|
|
47
|
+
UcRecording: shared.UcRecording$Outbound;
|
|
48
|
+
connection_id: string;
|
|
49
|
+
fields?: Array<string> | undefined;
|
|
50
|
+
id: string;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const UpdateUcRecordingRequest$outboundSchema: z.ZodType<
|
|
55
|
+
UpdateUcRecordingRequest$Outbound,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
UpdateUcRecordingRequest
|
|
58
|
+
> = z.object({
|
|
59
|
+
ucRecording: shared.UcRecording$outboundSchema,
|
|
60
|
+
connectionId: z.string(),
|
|
61
|
+
fields: z.array(z.string()).optional(),
|
|
62
|
+
id: z.string(),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return remap$(v, {
|
|
65
|
+
ucRecording: "UcRecording",
|
|
66
|
+
connectionId: "connection_id",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
+
*/
|
|
74
|
+
export namespace UpdateUcRecordingRequest$ {
|
|
75
|
+
/** @deprecated use `UpdateUcRecordingRequest$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema = UpdateUcRecordingRequest$inboundSchema;
|
|
77
|
+
/** @deprecated use `UpdateUcRecordingRequest$outboundSchema` instead. */
|
|
78
|
+
export const outboundSchema = UpdateUcRecordingRequest$outboundSchema;
|
|
79
|
+
/** @deprecated use `UpdateUcRecordingRequest$Outbound` instead. */
|
|
80
|
+
export type Outbound = UpdateUcRecordingRequest$Outbound;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function updateUcRecordingRequestToJSON(
|
|
84
|
+
updateUcRecordingRequest: UpdateUcRecordingRequest,
|
|
85
|
+
): string {
|
|
86
|
+
return JSON.stringify(
|
|
87
|
+
UpdateUcRecordingRequest$outboundSchema.parse(updateUcRecordingRequest),
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function updateUcRecordingRequestFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<UpdateUcRecordingRequest, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) => UpdateUcRecordingRequest$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'UpdateUcRecordingRequest' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
@@ -9,10 +9,10 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type AccountingAttachment = {
|
|
12
|
-
downloadUrl
|
|
13
|
-
id
|
|
12
|
+
downloadUrl?: string | undefined;
|
|
13
|
+
id?: string | undefined;
|
|
14
14
|
mimeType?: string | undefined;
|
|
15
|
-
name
|
|
15
|
+
name?: string | undefined;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
/** @internal */
|
|
@@ -21,10 +21,10 @@ export const AccountingAttachment$inboundSchema: z.ZodType<
|
|
|
21
21
|
z.ZodTypeDef,
|
|
22
22
|
unknown
|
|
23
23
|
> = z.object({
|
|
24
|
-
download_url: z.string(),
|
|
25
|
-
id: z.string(),
|
|
24
|
+
download_url: z.string().optional(),
|
|
25
|
+
id: z.string().optional(),
|
|
26
26
|
mime_type: z.string().optional(),
|
|
27
|
-
name: z.string(),
|
|
27
|
+
name: z.string().optional(),
|
|
28
28
|
}).transform((v) => {
|
|
29
29
|
return remap$(v, {
|
|
30
30
|
"download_url": "downloadUrl",
|
|
@@ -34,10 +34,10 @@ export const AccountingAttachment$inboundSchema: z.ZodType<
|
|
|
34
34
|
|
|
35
35
|
/** @internal */
|
|
36
36
|
export type AccountingAttachment$Outbound = {
|
|
37
|
-
download_url
|
|
38
|
-
id
|
|
37
|
+
download_url?: string | undefined;
|
|
38
|
+
id?: string | undefined;
|
|
39
39
|
mime_type?: string | undefined;
|
|
40
|
-
name
|
|
40
|
+
name?: string | undefined;
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
/** @internal */
|
|
@@ -46,10 +46,10 @@ export const AccountingAttachment$outboundSchema: z.ZodType<
|
|
|
46
46
|
z.ZodTypeDef,
|
|
47
47
|
AccountingAttachment
|
|
48
48
|
> = z.object({
|
|
49
|
-
downloadUrl: z.string(),
|
|
50
|
-
id: z.string(),
|
|
49
|
+
downloadUrl: z.string().optional(),
|
|
50
|
+
id: z.string().optional(),
|
|
51
51
|
mimeType: z.string().optional(),
|
|
52
|
-
name: z.string(),
|
|
52
|
+
name: z.string().optional(),
|
|
53
53
|
}).transform((v) => {
|
|
54
54
|
return remap$(v, {
|
|
55
55
|
downloadUrl: "download_url",
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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
|
+
PropertyAccountingBalanceSheetItemSubItems,
|
|
12
|
+
PropertyAccountingBalanceSheetItemSubItems$inboundSchema,
|
|
13
|
+
PropertyAccountingBalanceSheetItemSubItems$Outbound,
|
|
14
|
+
PropertyAccountingBalanceSheetItemSubItems$outboundSchema,
|
|
15
|
+
} from "./propertyaccountingbalancesheetitemsubitems.js";
|
|
16
|
+
|
|
17
|
+
export type AccountingBalanceSheetItem = {
|
|
18
|
+
accountId?: string | undefined;
|
|
19
|
+
amount?: number | undefined;
|
|
20
|
+
name?: string | undefined;
|
|
21
|
+
subItems?: Array<PropertyAccountingBalanceSheetItemSubItems> | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const AccountingBalanceSheetItem$inboundSchema: z.ZodType<
|
|
26
|
+
AccountingBalanceSheetItem,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
account_id: z.string().optional(),
|
|
31
|
+
amount: z.number().optional(),
|
|
32
|
+
name: z.string().optional(),
|
|
33
|
+
sub_items: z.array(PropertyAccountingBalanceSheetItemSubItems$inboundSchema)
|
|
34
|
+
.optional(),
|
|
35
|
+
}).transform((v) => {
|
|
36
|
+
return remap$(v, {
|
|
37
|
+
"account_id": "accountId",
|
|
38
|
+
"sub_items": "subItems",
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export type AccountingBalanceSheetItem$Outbound = {
|
|
44
|
+
account_id?: string | undefined;
|
|
45
|
+
amount?: number | undefined;
|
|
46
|
+
name?: string | undefined;
|
|
47
|
+
sub_items?:
|
|
48
|
+
| Array<PropertyAccountingBalanceSheetItemSubItems$Outbound>
|
|
49
|
+
| undefined;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const AccountingBalanceSheetItem$outboundSchema: z.ZodType<
|
|
54
|
+
AccountingBalanceSheetItem$Outbound,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
AccountingBalanceSheetItem
|
|
57
|
+
> = z.object({
|
|
58
|
+
accountId: z.string().optional(),
|
|
59
|
+
amount: z.number().optional(),
|
|
60
|
+
name: z.string().optional(),
|
|
61
|
+
subItems: z.array(PropertyAccountingBalanceSheetItemSubItems$outboundSchema)
|
|
62
|
+
.optional(),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return remap$(v, {
|
|
65
|
+
accountId: "account_id",
|
|
66
|
+
subItems: "sub_items",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
+
*/
|
|
74
|
+
export namespace AccountingBalanceSheetItem$ {
|
|
75
|
+
/** @deprecated use `AccountingBalanceSheetItem$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema = AccountingBalanceSheetItem$inboundSchema;
|
|
77
|
+
/** @deprecated use `AccountingBalanceSheetItem$outboundSchema` instead. */
|
|
78
|
+
export const outboundSchema = AccountingBalanceSheetItem$outboundSchema;
|
|
79
|
+
/** @deprecated use `AccountingBalanceSheetItem$Outbound` instead. */
|
|
80
|
+
export type Outbound = AccountingBalanceSheetItem$Outbound;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function accountingBalanceSheetItemToJSON(
|
|
84
|
+
accountingBalanceSheetItem: AccountingBalanceSheetItem,
|
|
85
|
+
): string {
|
|
86
|
+
return JSON.stringify(
|
|
87
|
+
AccountingBalanceSheetItem$outboundSchema.parse(accountingBalanceSheetItem),
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function accountingBalanceSheetItemFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<AccountingBalanceSheetItem, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) => AccountingBalanceSheetItem$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'AccountingBalanceSheetItem' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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
|
+
AccountingProfitAndLossSubcategory,
|
|
12
|
+
AccountingProfitAndLossSubcategory$inboundSchema,
|
|
13
|
+
AccountingProfitAndLossSubcategory$Outbound,
|
|
14
|
+
AccountingProfitAndLossSubcategory$outboundSchema,
|
|
15
|
+
} from "./accountingprofitandlosssubcategory.js";
|
|
16
|
+
|
|
17
|
+
export type AccountingProfitAndLossCategory = {
|
|
18
|
+
amount?: number | undefined;
|
|
19
|
+
name?: string | undefined;
|
|
20
|
+
subItems?: Array<AccountingProfitAndLossSubcategory> | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const AccountingProfitAndLossCategory$inboundSchema: z.ZodType<
|
|
25
|
+
AccountingProfitAndLossCategory,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
amount: z.number().optional(),
|
|
30
|
+
name: z.string().optional(),
|
|
31
|
+
sub_items: z.array(AccountingProfitAndLossSubcategory$inboundSchema)
|
|
32
|
+
.optional(),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
"sub_items": "subItems",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type AccountingProfitAndLossCategory$Outbound = {
|
|
41
|
+
amount?: number | undefined;
|
|
42
|
+
name?: string | undefined;
|
|
43
|
+
sub_items?: Array<AccountingProfitAndLossSubcategory$Outbound> | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const AccountingProfitAndLossCategory$outboundSchema: z.ZodType<
|
|
48
|
+
AccountingProfitAndLossCategory$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
AccountingProfitAndLossCategory
|
|
51
|
+
> = z.object({
|
|
52
|
+
amount: z.number().optional(),
|
|
53
|
+
name: z.string().optional(),
|
|
54
|
+
subItems: z.array(AccountingProfitAndLossSubcategory$outboundSchema)
|
|
55
|
+
.optional(),
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
subItems: "sub_items",
|
|
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 AccountingProfitAndLossCategory$ {
|
|
67
|
+
/** @deprecated use `AccountingProfitAndLossCategory$inboundSchema` instead. */
|
|
68
|
+
export const inboundSchema = AccountingProfitAndLossCategory$inboundSchema;
|
|
69
|
+
/** @deprecated use `AccountingProfitAndLossCategory$outboundSchema` instead. */
|
|
70
|
+
export const outboundSchema = AccountingProfitAndLossCategory$outboundSchema;
|
|
71
|
+
/** @deprecated use `AccountingProfitAndLossCategory$Outbound` instead. */
|
|
72
|
+
export type Outbound = AccountingProfitAndLossCategory$Outbound;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function accountingProfitAndLossCategoryToJSON(
|
|
76
|
+
accountingProfitAndLossCategory: AccountingProfitAndLossCategory,
|
|
77
|
+
): string {
|
|
78
|
+
return JSON.stringify(
|
|
79
|
+
AccountingProfitAndLossCategory$outboundSchema.parse(
|
|
80
|
+
accountingProfitAndLossCategory,
|
|
81
|
+
),
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function accountingProfitAndLossCategoryFromJSON(
|
|
86
|
+
jsonString: string,
|
|
87
|
+
): SafeParseResult<AccountingProfitAndLossCategory, SDKValidationError> {
|
|
88
|
+
return safeParse(
|
|
89
|
+
jsonString,
|
|
90
|
+
(x) => AccountingProfitAndLossCategory$inboundSchema.parse(JSON.parse(x)),
|
|
91
|
+
`Failed to parse 'AccountingProfitAndLossCategory' from JSON`,
|
|
92
|
+
);
|
|
93
|
+
}
|