@unified-api/typescript-sdk 2.85.37 → 2.85.38
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 +12 -0
- package/dist/commonjs/funcs/accountingCreateAccountingPaymentterm.d.ts +15 -0
- package/dist/commonjs/funcs/accountingCreateAccountingPaymentterm.d.ts.map +1 -0
- package/dist/commonjs/funcs/accountingCreateAccountingPaymentterm.js +125 -0
- package/dist/commonjs/funcs/accountingCreateAccountingPaymentterm.js.map +1 -0
- package/dist/commonjs/funcs/accountingGetAccountingPaymentterm.d.ts +15 -0
- package/dist/commonjs/funcs/accountingGetAccountingPaymentterm.d.ts.map +1 -0
- package/dist/commonjs/funcs/accountingGetAccountingPaymentterm.js +126 -0
- package/dist/commonjs/funcs/accountingGetAccountingPaymentterm.js.map +1 -0
- package/dist/commonjs/funcs/accountingListAccountingPaymentterms.d.ts +15 -0
- package/dist/commonjs/funcs/accountingListAccountingPaymentterms.d.ts.map +1 -0
- package/dist/commonjs/funcs/accountingListAccountingPaymentterms.js +131 -0
- package/dist/commonjs/funcs/accountingListAccountingPaymentterms.js.map +1 -0
- package/dist/commonjs/funcs/accountingPatchAccountingPaymentterm.d.ts +15 -0
- package/dist/commonjs/funcs/accountingPatchAccountingPaymentterm.d.ts.map +1 -0
- package/dist/commonjs/funcs/accountingPatchAccountingPaymentterm.js +129 -0
- package/dist/commonjs/funcs/accountingPatchAccountingPaymentterm.js.map +1 -0
- package/dist/commonjs/funcs/accountingRemoveAccountingPaymentterm.d.ts +14 -0
- package/dist/commonjs/funcs/accountingRemoveAccountingPaymentterm.d.ts.map +1 -0
- package/dist/commonjs/funcs/accountingRemoveAccountingPaymentterm.js +123 -0
- package/dist/commonjs/funcs/accountingRemoveAccountingPaymentterm.js.map +1 -0
- package/dist/commonjs/funcs/accountingUpdateAccountingPaymentterm.d.ts +15 -0
- package/dist/commonjs/funcs/accountingUpdateAccountingPaymentterm.d.ts.map +1 -0
- package/dist/commonjs/funcs/accountingUpdateAccountingPaymentterm.js +129 -0
- package/dist/commonjs/funcs/accountingUpdateAccountingPaymentterm.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/sdk/accounting.d.ts +24 -0
- package/dist/commonjs/sdk/accounting.d.ts.map +1 -1
- package/dist/commonjs/sdk/accounting.js +42 -0
- package/dist/commonjs/sdk/accounting.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/createaccountingbill.d.ts +1 -0
- package/dist/commonjs/sdk/models/operations/createaccountingbill.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/createaccountingbill.js +1 -0
- package/dist/commonjs/sdk/models/operations/createaccountingbill.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/createaccountingcontact.d.ts +1 -0
- package/dist/commonjs/sdk/models/operations/createaccountingcontact.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/createaccountingcontact.js +1 -0
- package/dist/commonjs/sdk/models/operations/createaccountingcontact.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/createaccountinginvoice.d.ts +1 -0
- package/dist/commonjs/sdk/models/operations/createaccountinginvoice.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/createaccountinginvoice.js +1 -0
- package/dist/commonjs/sdk/models/operations/createaccountinginvoice.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/createaccountingpaymentterm.d.ts +51 -0
- package/dist/commonjs/sdk/models/operations/createaccountingpaymentterm.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/createaccountingpaymentterm.js +82 -0
- package/dist/commonjs/sdk/models/operations/createaccountingpaymentterm.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getaccountingbill.d.ts +1 -0
- package/dist/commonjs/sdk/models/operations/getaccountingbill.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getaccountingbill.js +1 -0
- package/dist/commonjs/sdk/models/operations/getaccountingbill.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getaccountingcontact.d.ts +1 -0
- package/dist/commonjs/sdk/models/operations/getaccountingcontact.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getaccountingcontact.js +1 -0
- package/dist/commonjs/sdk/models/operations/getaccountingcontact.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getaccountinginvoice.d.ts +1 -0
- package/dist/commonjs/sdk/models/operations/getaccountinginvoice.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getaccountinginvoice.js +1 -0
- package/dist/commonjs/sdk/models/operations/getaccountinginvoice.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getaccountingpaymentterm.d.ts +53 -0
- package/dist/commonjs/sdk/models/operations/getaccountingpaymentterm.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getaccountingpaymentterm.js +80 -0
- package/dist/commonjs/sdk/models/operations/getaccountingpaymentterm.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts +6 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/index.js +6 -0
- package/dist/commonjs/sdk/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listaccountingbills.d.ts +1 -0
- package/dist/commonjs/sdk/models/operations/listaccountingbills.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/listaccountingbills.js +1 -0
- package/dist/commonjs/sdk/models/operations/listaccountingbills.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listaccountingcontacts.d.ts +1 -0
- package/dist/commonjs/sdk/models/operations/listaccountingcontacts.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/listaccountingcontacts.js +1 -0
- package/dist/commonjs/sdk/models/operations/listaccountingcontacts.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listaccountinginvoices.d.ts +1 -0
- package/dist/commonjs/sdk/models/operations/listaccountinginvoices.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/listaccountinginvoices.js +1 -0
- package/dist/commonjs/sdk/models/operations/listaccountinginvoices.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listaccountingpaymentterms.d.ts +73 -0
- package/dist/commonjs/sdk/models/operations/listaccountingpaymentterms.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/listaccountingpaymentterms.js +89 -0
- package/dist/commonjs/sdk/models/operations/listaccountingpaymentterms.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/patchaccountingbill.d.ts +1 -0
- package/dist/commonjs/sdk/models/operations/patchaccountingbill.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchaccountingbill.js +1 -0
- package/dist/commonjs/sdk/models/operations/patchaccountingbill.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchaccountingcontact.d.ts +1 -0
- package/dist/commonjs/sdk/models/operations/patchaccountingcontact.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchaccountingcontact.js +1 -0
- package/dist/commonjs/sdk/models/operations/patchaccountingcontact.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchaccountinginvoice.d.ts +1 -0
- package/dist/commonjs/sdk/models/operations/patchaccountinginvoice.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchaccountinginvoice.js +1 -0
- package/dist/commonjs/sdk/models/operations/patchaccountinginvoice.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchaccountingpaymentterm.d.ts +56 -0
- package/dist/commonjs/sdk/models/operations/patchaccountingpaymentterm.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/patchaccountingpaymentterm.js +83 -0
- package/dist/commonjs/sdk/models/operations/patchaccountingpaymentterm.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/removeaccountingpaymentterm.d.ts +30 -0
- package/dist/commonjs/sdk/models/operations/removeaccountingpaymentterm.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/removeaccountingpaymentterm.js +68 -0
- package/dist/commonjs/sdk/models/operations/removeaccountingpaymentterm.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/updateaccountingbill.d.ts +1 -0
- package/dist/commonjs/sdk/models/operations/updateaccountingbill.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/updateaccountingbill.js +1 -0
- package/dist/commonjs/sdk/models/operations/updateaccountingbill.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/updateaccountingcontact.d.ts +1 -0
- package/dist/commonjs/sdk/models/operations/updateaccountingcontact.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/updateaccountingcontact.js +1 -0
- package/dist/commonjs/sdk/models/operations/updateaccountingcontact.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/updateaccountinginvoice.d.ts +1 -0
- package/dist/commonjs/sdk/models/operations/updateaccountinginvoice.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/updateaccountinginvoice.js +1 -0
- package/dist/commonjs/sdk/models/operations/updateaccountinginvoice.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/updateaccountingpaymentterm.d.ts +56 -0
- package/dist/commonjs/sdk/models/operations/updateaccountingpaymentterm.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/updateaccountingpaymentterm.js +83 -0
- package/dist/commonjs/sdk/models/operations/updateaccountingpaymentterm.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/accountingbill.d.ts +2 -0
- package/dist/commonjs/sdk/models/shared/accountingbill.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/accountingbill.js +4 -0
- package/dist/commonjs/sdk/models/shared/accountingbill.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/accountingcontact.d.ts +2 -0
- package/dist/commonjs/sdk/models/shared/accountingcontact.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/accountingcontact.js +4 -0
- package/dist/commonjs/sdk/models/shared/accountingcontact.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/accountinginvoice.d.ts +2 -0
- package/dist/commonjs/sdk/models/shared/accountinginvoice.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/accountinginvoice.js +4 -0
- package/dist/commonjs/sdk/models/shared/accountinginvoice.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/accountingpaymentterm.d.ts +83 -0
- package/dist/commonjs/sdk/models/shared/accountingpaymentterm.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/accountingpaymentterm.js +147 -0
- package/dist/commonjs/sdk/models/shared/accountingpaymentterm.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts +1 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.js +1 -0
- package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.d.ts +2 -0
- package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.js +2 -0
- package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/webhook.d.ts +1 -0
- package/dist/commonjs/sdk/models/shared/webhook.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/webhook.js +1 -0
- package/dist/commonjs/sdk/models/shared/webhook.js.map +1 -1
- package/dist/commonjs/sdk/paymentterm.d.ts +30 -0
- package/dist/commonjs/sdk/paymentterm.d.ts.map +1 -0
- package/dist/commonjs/sdk/paymentterm.js +54 -0
- package/dist/commonjs/sdk/paymentterm.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/accountingCreateAccountingPaymentterm.d.ts +15 -0
- package/dist/esm/funcs/accountingCreateAccountingPaymentterm.d.ts.map +1 -0
- package/dist/esm/funcs/accountingCreateAccountingPaymentterm.js +89 -0
- package/dist/esm/funcs/accountingCreateAccountingPaymentterm.js.map +1 -0
- package/dist/esm/funcs/accountingGetAccountingPaymentterm.d.ts +15 -0
- package/dist/esm/funcs/accountingGetAccountingPaymentterm.d.ts.map +1 -0
- package/dist/esm/funcs/accountingGetAccountingPaymentterm.js +90 -0
- package/dist/esm/funcs/accountingGetAccountingPaymentterm.js.map +1 -0
- package/dist/esm/funcs/accountingListAccountingPaymentterms.d.ts +15 -0
- package/dist/esm/funcs/accountingListAccountingPaymentterms.d.ts.map +1 -0
- package/dist/esm/funcs/accountingListAccountingPaymentterms.js +95 -0
- package/dist/esm/funcs/accountingListAccountingPaymentterms.js.map +1 -0
- package/dist/esm/funcs/accountingPatchAccountingPaymentterm.d.ts +15 -0
- package/dist/esm/funcs/accountingPatchAccountingPaymentterm.d.ts.map +1 -0
- package/dist/esm/funcs/accountingPatchAccountingPaymentterm.js +93 -0
- package/dist/esm/funcs/accountingPatchAccountingPaymentterm.js.map +1 -0
- package/dist/esm/funcs/accountingRemoveAccountingPaymentterm.d.ts +14 -0
- package/dist/esm/funcs/accountingRemoveAccountingPaymentterm.d.ts.map +1 -0
- package/dist/esm/funcs/accountingRemoveAccountingPaymentterm.js +87 -0
- package/dist/esm/funcs/accountingRemoveAccountingPaymentterm.js.map +1 -0
- package/dist/esm/funcs/accountingUpdateAccountingPaymentterm.d.ts +15 -0
- package/dist/esm/funcs/accountingUpdateAccountingPaymentterm.d.ts.map +1 -0
- package/dist/esm/funcs/accountingUpdateAccountingPaymentterm.js +93 -0
- package/dist/esm/funcs/accountingUpdateAccountingPaymentterm.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/sdk/accounting.d.ts +24 -0
- package/dist/esm/sdk/accounting.d.ts.map +1 -1
- package/dist/esm/sdk/accounting.js +42 -0
- package/dist/esm/sdk/accounting.js.map +1 -1
- package/dist/esm/sdk/models/operations/createaccountingbill.d.ts +1 -0
- package/dist/esm/sdk/models/operations/createaccountingbill.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/createaccountingbill.js +1 -0
- package/dist/esm/sdk/models/operations/createaccountingbill.js.map +1 -1
- package/dist/esm/sdk/models/operations/createaccountingcontact.d.ts +1 -0
- package/dist/esm/sdk/models/operations/createaccountingcontact.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/createaccountingcontact.js +1 -0
- package/dist/esm/sdk/models/operations/createaccountingcontact.js.map +1 -1
- package/dist/esm/sdk/models/operations/createaccountinginvoice.d.ts +1 -0
- package/dist/esm/sdk/models/operations/createaccountinginvoice.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/createaccountinginvoice.js +1 -0
- package/dist/esm/sdk/models/operations/createaccountinginvoice.js.map +1 -1
- package/dist/esm/sdk/models/operations/createaccountingpaymentterm.d.ts +51 -0
- package/dist/esm/sdk/models/operations/createaccountingpaymentterm.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/createaccountingpaymentterm.js +45 -0
- package/dist/esm/sdk/models/operations/createaccountingpaymentterm.js.map +1 -0
- package/dist/esm/sdk/models/operations/getaccountingbill.d.ts +1 -0
- package/dist/esm/sdk/models/operations/getaccountingbill.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getaccountingbill.js +1 -0
- package/dist/esm/sdk/models/operations/getaccountingbill.js.map +1 -1
- package/dist/esm/sdk/models/operations/getaccountingcontact.d.ts +1 -0
- package/dist/esm/sdk/models/operations/getaccountingcontact.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getaccountingcontact.js +1 -0
- package/dist/esm/sdk/models/operations/getaccountingcontact.js.map +1 -1
- package/dist/esm/sdk/models/operations/getaccountinginvoice.d.ts +1 -0
- package/dist/esm/sdk/models/operations/getaccountinginvoice.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getaccountinginvoice.js +1 -0
- package/dist/esm/sdk/models/operations/getaccountinginvoice.js.map +1 -1
- package/dist/esm/sdk/models/operations/getaccountingpaymentterm.d.ts +53 -0
- package/dist/esm/sdk/models/operations/getaccountingpaymentterm.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getaccountingpaymentterm.js +43 -0
- package/dist/esm/sdk/models/operations/getaccountingpaymentterm.js.map +1 -0
- package/dist/esm/sdk/models/operations/index.d.ts +6 -0
- package/dist/esm/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/index.js +6 -0
- package/dist/esm/sdk/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/models/operations/listaccountingbills.d.ts +1 -0
- package/dist/esm/sdk/models/operations/listaccountingbills.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/listaccountingbills.js +1 -0
- package/dist/esm/sdk/models/operations/listaccountingbills.js.map +1 -1
- package/dist/esm/sdk/models/operations/listaccountingcontacts.d.ts +1 -0
- package/dist/esm/sdk/models/operations/listaccountingcontacts.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/listaccountingcontacts.js +1 -0
- package/dist/esm/sdk/models/operations/listaccountingcontacts.js.map +1 -1
- package/dist/esm/sdk/models/operations/listaccountinginvoices.d.ts +1 -0
- package/dist/esm/sdk/models/operations/listaccountinginvoices.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/listaccountinginvoices.js +1 -0
- package/dist/esm/sdk/models/operations/listaccountinginvoices.js.map +1 -1
- package/dist/esm/sdk/models/operations/listaccountingpaymentterms.d.ts +73 -0
- package/dist/esm/sdk/models/operations/listaccountingpaymentterms.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/listaccountingpaymentterms.js +52 -0
- package/dist/esm/sdk/models/operations/listaccountingpaymentterms.js.map +1 -0
- package/dist/esm/sdk/models/operations/patchaccountingbill.d.ts +1 -0
- package/dist/esm/sdk/models/operations/patchaccountingbill.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/patchaccountingbill.js +1 -0
- package/dist/esm/sdk/models/operations/patchaccountingbill.js.map +1 -1
- package/dist/esm/sdk/models/operations/patchaccountingcontact.d.ts +1 -0
- package/dist/esm/sdk/models/operations/patchaccountingcontact.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/patchaccountingcontact.js +1 -0
- package/dist/esm/sdk/models/operations/patchaccountingcontact.js.map +1 -1
- package/dist/esm/sdk/models/operations/patchaccountinginvoice.d.ts +1 -0
- package/dist/esm/sdk/models/operations/patchaccountinginvoice.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/patchaccountinginvoice.js +1 -0
- package/dist/esm/sdk/models/operations/patchaccountinginvoice.js.map +1 -1
- package/dist/esm/sdk/models/operations/patchaccountingpaymentterm.d.ts +56 -0
- package/dist/esm/sdk/models/operations/patchaccountingpaymentterm.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/patchaccountingpaymentterm.js +46 -0
- package/dist/esm/sdk/models/operations/patchaccountingpaymentterm.js.map +1 -0
- package/dist/esm/sdk/models/operations/removeaccountingpaymentterm.d.ts +30 -0
- package/dist/esm/sdk/models/operations/removeaccountingpaymentterm.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/removeaccountingpaymentterm.js +30 -0
- package/dist/esm/sdk/models/operations/removeaccountingpaymentterm.js.map +1 -0
- package/dist/esm/sdk/models/operations/updateaccountingbill.d.ts +1 -0
- package/dist/esm/sdk/models/operations/updateaccountingbill.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/updateaccountingbill.js +1 -0
- package/dist/esm/sdk/models/operations/updateaccountingbill.js.map +1 -1
- package/dist/esm/sdk/models/operations/updateaccountingcontact.d.ts +1 -0
- package/dist/esm/sdk/models/operations/updateaccountingcontact.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/updateaccountingcontact.js +1 -0
- package/dist/esm/sdk/models/operations/updateaccountingcontact.js.map +1 -1
- package/dist/esm/sdk/models/operations/updateaccountinginvoice.d.ts +1 -0
- package/dist/esm/sdk/models/operations/updateaccountinginvoice.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/updateaccountinginvoice.js +1 -0
- package/dist/esm/sdk/models/operations/updateaccountinginvoice.js.map +1 -1
- package/dist/esm/sdk/models/operations/updateaccountingpaymentterm.d.ts +56 -0
- package/dist/esm/sdk/models/operations/updateaccountingpaymentterm.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/updateaccountingpaymentterm.js +46 -0
- package/dist/esm/sdk/models/operations/updateaccountingpaymentterm.js.map +1 -0
- package/dist/esm/sdk/models/shared/accountingbill.d.ts +2 -0
- package/dist/esm/sdk/models/shared/accountingbill.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/accountingbill.js +4 -0
- package/dist/esm/sdk/models/shared/accountingbill.js.map +1 -1
- package/dist/esm/sdk/models/shared/accountingcontact.d.ts +2 -0
- package/dist/esm/sdk/models/shared/accountingcontact.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/accountingcontact.js +4 -0
- package/dist/esm/sdk/models/shared/accountingcontact.js.map +1 -1
- package/dist/esm/sdk/models/shared/accountinginvoice.d.ts +2 -0
- package/dist/esm/sdk/models/shared/accountinginvoice.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/accountinginvoice.js +4 -0
- package/dist/esm/sdk/models/shared/accountinginvoice.js.map +1 -1
- package/dist/esm/sdk/models/shared/accountingpaymentterm.d.ts +83 -0
- package/dist/esm/sdk/models/shared/accountingpaymentterm.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/accountingpaymentterm.js +109 -0
- package/dist/esm/sdk/models/shared/accountingpaymentterm.js.map +1 -0
- package/dist/esm/sdk/models/shared/index.d.ts +1 -0
- package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/index.js +1 -0
- package/dist/esm/sdk/models/shared/index.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertyconnectionpermissions.d.ts +2 -0
- package/dist/esm/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertyconnectionpermissions.js +2 -0
- package/dist/esm/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
- package/dist/esm/sdk/models/shared/webhook.d.ts +1 -0
- package/dist/esm/sdk/models/shared/webhook.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/webhook.js +1 -0
- package/dist/esm/sdk/models/shared/webhook.js.map +1 -1
- package/dist/esm/sdk/paymentterm.d.ts +30 -0
- package/dist/esm/sdk/paymentterm.d.ts.map +1 -0
- package/dist/esm/sdk/paymentterm.js +50 -0
- package/dist/esm/sdk/paymentterm.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/accountingCreateAccountingPaymentterm.ts +176 -0
- package/src/funcs/accountingGetAccountingPaymentterm.ts +177 -0
- package/src/funcs/accountingListAccountingPaymentterms.ts +182 -0
- package/src/funcs/accountingPatchAccountingPaymentterm.ts +180 -0
- package/src/funcs/accountingRemoveAccountingPaymentterm.ts +182 -0
- package/src/funcs/accountingUpdateAccountingPaymentterm.ts +180 -0
- package/src/lib/config.ts +2 -2
- package/src/sdk/accounting.ts +90 -0
- package/src/sdk/models/operations/createaccountingbill.ts +1 -0
- package/src/sdk/models/operations/createaccountingcontact.ts +1 -0
- package/src/sdk/models/operations/createaccountinginvoice.ts +1 -0
- package/src/sdk/models/operations/createaccountingpaymentterm.ts +88 -0
- package/src/sdk/models/operations/getaccountingbill.ts +1 -0
- package/src/sdk/models/operations/getaccountingcontact.ts +1 -0
- package/src/sdk/models/operations/getaccountinginvoice.ts +1 -0
- package/src/sdk/models/operations/getaccountingpaymentterm.ts +89 -0
- package/src/sdk/models/operations/index.ts +6 -0
- package/src/sdk/models/operations/listaccountingbills.ts +1 -0
- package/src/sdk/models/operations/listaccountingcontacts.ts +1 -0
- package/src/sdk/models/operations/listaccountinginvoices.ts +1 -0
- package/src/sdk/models/operations/listaccountingpaymentterms.ts +118 -0
- package/src/sdk/models/operations/patchaccountingbill.ts +1 -0
- package/src/sdk/models/operations/patchaccountingcontact.ts +1 -0
- package/src/sdk/models/operations/patchaccountinginvoice.ts +1 -0
- package/src/sdk/models/operations/patchaccountingpaymentterm.ts +94 -0
- package/src/sdk/models/operations/removeaccountingpaymentterm.ts +78 -0
- package/src/sdk/models/operations/updateaccountingbill.ts +1 -0
- package/src/sdk/models/operations/updateaccountingcontact.ts +1 -0
- package/src/sdk/models/operations/updateaccountinginvoice.ts +1 -0
- package/src/sdk/models/operations/updateaccountingpaymentterm.ts +94 -0
- package/src/sdk/models/shared/accountingbill.ts +6 -0
- package/src/sdk/models/shared/accountingcontact.ts +6 -0
- package/src/sdk/models/shared/accountinginvoice.ts +6 -0
- package/src/sdk/models/shared/accountingpaymentterm.ts +202 -0
- package/src/sdk/models/shared/index.ts +1 -0
- package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -0
- package/src/sdk/models/shared/webhook.ts +1 -0
- package/src/sdk/paymentterm.ts +100 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { UnifiedToCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../sdk/models/errors/httpclienterrors.js";
|
|
21
|
+
import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js";
|
|
22
|
+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
|
23
|
+
import { UnifiedToError } from "../sdk/models/errors/unifiedtoerror.js";
|
|
24
|
+
import * as operations from "../sdk/models/operations/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../sdk/types/async.js";
|
|
26
|
+
import { Result } from "../sdk/types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Remove a paymentterm
|
|
30
|
+
*/
|
|
31
|
+
export function accountingRemoveAccountingPaymentterm(
|
|
32
|
+
client: UnifiedToCore,
|
|
33
|
+
request: operations.RemoveAccountingPaymenttermRequest,
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): APIPromise<
|
|
36
|
+
Result<
|
|
37
|
+
operations.RemoveAccountingPaymenttermResponse | undefined,
|
|
38
|
+
| UnifiedToError
|
|
39
|
+
| ResponseValidationError
|
|
40
|
+
| ConnectionError
|
|
41
|
+
| RequestAbortedError
|
|
42
|
+
| RequestTimeoutError
|
|
43
|
+
| InvalidRequestError
|
|
44
|
+
| UnexpectedClientError
|
|
45
|
+
| SDKValidationError
|
|
46
|
+
>
|
|
47
|
+
> {
|
|
48
|
+
return new APIPromise($do(
|
|
49
|
+
client,
|
|
50
|
+
request,
|
|
51
|
+
options,
|
|
52
|
+
));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
async function $do(
|
|
56
|
+
client: UnifiedToCore,
|
|
57
|
+
request: operations.RemoveAccountingPaymenttermRequest,
|
|
58
|
+
options?: RequestOptions,
|
|
59
|
+
): Promise<
|
|
60
|
+
[
|
|
61
|
+
Result<
|
|
62
|
+
operations.RemoveAccountingPaymenttermResponse | undefined,
|
|
63
|
+
| UnifiedToError
|
|
64
|
+
| ResponseValidationError
|
|
65
|
+
| ConnectionError
|
|
66
|
+
| RequestAbortedError
|
|
67
|
+
| RequestTimeoutError
|
|
68
|
+
| InvalidRequestError
|
|
69
|
+
| UnexpectedClientError
|
|
70
|
+
| SDKValidationError
|
|
71
|
+
>,
|
|
72
|
+
APICall,
|
|
73
|
+
]
|
|
74
|
+
> {
|
|
75
|
+
const parsed = safeParse(
|
|
76
|
+
request,
|
|
77
|
+
(value) =>
|
|
78
|
+
operations.RemoveAccountingPaymenttermRequest$outboundSchema.parse(value),
|
|
79
|
+
"Input validation failed",
|
|
80
|
+
);
|
|
81
|
+
if (!parsed.ok) {
|
|
82
|
+
return [parsed, { status: "invalid" }];
|
|
83
|
+
}
|
|
84
|
+
const payload = parsed.value;
|
|
85
|
+
const body = null;
|
|
86
|
+
|
|
87
|
+
const pathParams = {
|
|
88
|
+
connection_id: encodeSimple("connection_id", payload.connection_id, {
|
|
89
|
+
explode: false,
|
|
90
|
+
charEncoding: "percent",
|
|
91
|
+
}),
|
|
92
|
+
id: encodeSimple("id", payload.id, {
|
|
93
|
+
explode: false,
|
|
94
|
+
charEncoding: "percent",
|
|
95
|
+
}),
|
|
96
|
+
};
|
|
97
|
+
const path = pathToFunc("/accounting/{connection_id}/paymentterm/{id}")(
|
|
98
|
+
pathParams,
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
const headers = new Headers(compactMap({
|
|
102
|
+
Accept: "*/*",
|
|
103
|
+
}));
|
|
104
|
+
|
|
105
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
106
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
107
|
+
|
|
108
|
+
const context = {
|
|
109
|
+
options: client._options,
|
|
110
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
111
|
+
operationID: "removeAccountingPaymentterm",
|
|
112
|
+
oAuth2Scopes: null,
|
|
113
|
+
|
|
114
|
+
resolvedSecurity: requestSecurity,
|
|
115
|
+
|
|
116
|
+
securitySource: client._options.security,
|
|
117
|
+
retryConfig: options?.retries
|
|
118
|
+
|| client._options.retryConfig
|
|
119
|
+
|| { strategy: "none" },
|
|
120
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
const requestRes = client._createRequest(context, {
|
|
124
|
+
security: requestSecurity,
|
|
125
|
+
method: "DELETE",
|
|
126
|
+
baseURL: options?.serverURL,
|
|
127
|
+
path: path,
|
|
128
|
+
headers: headers,
|
|
129
|
+
body: body,
|
|
130
|
+
userAgent: client._options.userAgent,
|
|
131
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
132
|
+
}, options);
|
|
133
|
+
if (!requestRes.ok) {
|
|
134
|
+
return [requestRes, { status: "invalid" }];
|
|
135
|
+
}
|
|
136
|
+
const req = requestRes.value;
|
|
137
|
+
|
|
138
|
+
const doResult = await client._do(req, {
|
|
139
|
+
context,
|
|
140
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
141
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
142
|
+
retryConfig: context.retryConfig,
|
|
143
|
+
retryCodes: context.retryCodes,
|
|
144
|
+
});
|
|
145
|
+
if (!doResult.ok) {
|
|
146
|
+
return [doResult, { status: "request-error", request: req }];
|
|
147
|
+
}
|
|
148
|
+
const response = doResult.value;
|
|
149
|
+
|
|
150
|
+
const responseFields = {
|
|
151
|
+
HttpMeta: { Response: response, Request: req },
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
const [result] = await M.match<
|
|
155
|
+
operations.RemoveAccountingPaymenttermResponse | undefined,
|
|
156
|
+
| UnifiedToError
|
|
157
|
+
| ResponseValidationError
|
|
158
|
+
| ConnectionError
|
|
159
|
+
| RequestAbortedError
|
|
160
|
+
| RequestTimeoutError
|
|
161
|
+
| InvalidRequestError
|
|
162
|
+
| UnexpectedClientError
|
|
163
|
+
| SDKValidationError
|
|
164
|
+
>(
|
|
165
|
+
M.nil(
|
|
166
|
+
200,
|
|
167
|
+
operations.RemoveAccountingPaymenttermResponse$inboundSchema.optional(),
|
|
168
|
+
),
|
|
169
|
+
M.fail("4XX"),
|
|
170
|
+
M.fail("5XX"),
|
|
171
|
+
M.nil(
|
|
172
|
+
"default",
|
|
173
|
+
operations.RemoveAccountingPaymenttermResponse$inboundSchema.optional(),
|
|
174
|
+
{ hdrs: true },
|
|
175
|
+
),
|
|
176
|
+
)(response, req, { extraFields: responseFields });
|
|
177
|
+
if (!result.ok) {
|
|
178
|
+
return [result, { status: "complete", request: req, response }];
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
return [result, { status: "complete", request: req, response }];
|
|
182
|
+
}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { UnifiedToCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../sdk/models/errors/httpclienterrors.js";
|
|
21
|
+
import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js";
|
|
22
|
+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
|
23
|
+
import { UnifiedToError } from "../sdk/models/errors/unifiedtoerror.js";
|
|
24
|
+
import * as operations from "../sdk/models/operations/index.js";
|
|
25
|
+
import * as shared from "../sdk/models/shared/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../sdk/types/async.js";
|
|
27
|
+
import { Result } from "../sdk/types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Update a paymentterm
|
|
31
|
+
*/
|
|
32
|
+
export function accountingUpdateAccountingPaymentterm(
|
|
33
|
+
client: UnifiedToCore,
|
|
34
|
+
request: operations.UpdateAccountingPaymenttermRequest,
|
|
35
|
+
options?: RequestOptions,
|
|
36
|
+
): APIPromise<
|
|
37
|
+
Result<
|
|
38
|
+
shared.AccountingPaymentterm,
|
|
39
|
+
| UnifiedToError
|
|
40
|
+
| ResponseValidationError
|
|
41
|
+
| ConnectionError
|
|
42
|
+
| RequestAbortedError
|
|
43
|
+
| RequestTimeoutError
|
|
44
|
+
| InvalidRequestError
|
|
45
|
+
| UnexpectedClientError
|
|
46
|
+
| SDKValidationError
|
|
47
|
+
>
|
|
48
|
+
> {
|
|
49
|
+
return new APIPromise($do(
|
|
50
|
+
client,
|
|
51
|
+
request,
|
|
52
|
+
options,
|
|
53
|
+
));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
async function $do(
|
|
57
|
+
client: UnifiedToCore,
|
|
58
|
+
request: operations.UpdateAccountingPaymenttermRequest,
|
|
59
|
+
options?: RequestOptions,
|
|
60
|
+
): Promise<
|
|
61
|
+
[
|
|
62
|
+
Result<
|
|
63
|
+
shared.AccountingPaymentterm,
|
|
64
|
+
| UnifiedToError
|
|
65
|
+
| ResponseValidationError
|
|
66
|
+
| ConnectionError
|
|
67
|
+
| RequestAbortedError
|
|
68
|
+
| RequestTimeoutError
|
|
69
|
+
| InvalidRequestError
|
|
70
|
+
| UnexpectedClientError
|
|
71
|
+
| SDKValidationError
|
|
72
|
+
>,
|
|
73
|
+
APICall,
|
|
74
|
+
]
|
|
75
|
+
> {
|
|
76
|
+
const parsed = safeParse(
|
|
77
|
+
request,
|
|
78
|
+
(value) =>
|
|
79
|
+
operations.UpdateAccountingPaymenttermRequest$outboundSchema.parse(value),
|
|
80
|
+
"Input validation failed",
|
|
81
|
+
);
|
|
82
|
+
if (!parsed.ok) {
|
|
83
|
+
return [parsed, { status: "invalid" }];
|
|
84
|
+
}
|
|
85
|
+
const payload = parsed.value;
|
|
86
|
+
const body = encodeJSON("body", payload.AccountingPaymentterm, {
|
|
87
|
+
explode: true,
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
const pathParams = {
|
|
91
|
+
connection_id: encodeSimple("connection_id", payload.connection_id, {
|
|
92
|
+
explode: false,
|
|
93
|
+
charEncoding: "percent",
|
|
94
|
+
}),
|
|
95
|
+
id: encodeSimple("id", payload.id, {
|
|
96
|
+
explode: false,
|
|
97
|
+
charEncoding: "percent",
|
|
98
|
+
}),
|
|
99
|
+
};
|
|
100
|
+
const path = pathToFunc("/accounting/{connection_id}/paymentterm/{id}")(
|
|
101
|
+
pathParams,
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
const query = encodeFormQuery({
|
|
105
|
+
"fields": payload.fields,
|
|
106
|
+
"raw": payload.raw,
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
const headers = new Headers(compactMap({
|
|
110
|
+
"Content-Type": "application/json",
|
|
111
|
+
Accept: "application/json",
|
|
112
|
+
}));
|
|
113
|
+
|
|
114
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
115
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
116
|
+
|
|
117
|
+
const context = {
|
|
118
|
+
options: client._options,
|
|
119
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
120
|
+
operationID: "updateAccountingPaymentterm",
|
|
121
|
+
oAuth2Scopes: null,
|
|
122
|
+
|
|
123
|
+
resolvedSecurity: requestSecurity,
|
|
124
|
+
|
|
125
|
+
securitySource: client._options.security,
|
|
126
|
+
retryConfig: options?.retries
|
|
127
|
+
|| client._options.retryConfig
|
|
128
|
+
|| { strategy: "none" },
|
|
129
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
const requestRes = client._createRequest(context, {
|
|
133
|
+
security: requestSecurity,
|
|
134
|
+
method: "PUT",
|
|
135
|
+
baseURL: options?.serverURL,
|
|
136
|
+
path: path,
|
|
137
|
+
headers: headers,
|
|
138
|
+
query: query,
|
|
139
|
+
body: body,
|
|
140
|
+
userAgent: client._options.userAgent,
|
|
141
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
142
|
+
}, options);
|
|
143
|
+
if (!requestRes.ok) {
|
|
144
|
+
return [requestRes, { status: "invalid" }];
|
|
145
|
+
}
|
|
146
|
+
const req = requestRes.value;
|
|
147
|
+
|
|
148
|
+
const doResult = await client._do(req, {
|
|
149
|
+
context,
|
|
150
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
151
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
152
|
+
retryConfig: context.retryConfig,
|
|
153
|
+
retryCodes: context.retryCodes,
|
|
154
|
+
});
|
|
155
|
+
if (!doResult.ok) {
|
|
156
|
+
return [doResult, { status: "request-error", request: req }];
|
|
157
|
+
}
|
|
158
|
+
const response = doResult.value;
|
|
159
|
+
|
|
160
|
+
const [result] = await M.match<
|
|
161
|
+
shared.AccountingPaymentterm,
|
|
162
|
+
| UnifiedToError
|
|
163
|
+
| ResponseValidationError
|
|
164
|
+
| ConnectionError
|
|
165
|
+
| RequestAbortedError
|
|
166
|
+
| RequestTimeoutError
|
|
167
|
+
| InvalidRequestError
|
|
168
|
+
| UnexpectedClientError
|
|
169
|
+
| SDKValidationError
|
|
170
|
+
>(
|
|
171
|
+
M.json(200, shared.AccountingPaymentterm$inboundSchema),
|
|
172
|
+
M.fail("4XX"),
|
|
173
|
+
M.fail("5XX"),
|
|
174
|
+
)(response, req);
|
|
175
|
+
if (!result.ok) {
|
|
176
|
+
return [result, { status: "complete", request: req, response }];
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
return [result, { status: "complete", request: req, response }];
|
|
180
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -73,8 +73,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
73
73
|
export const SDK_METADATA = {
|
|
74
74
|
language: "typescript",
|
|
75
75
|
openapiDocVersion: "1.0",
|
|
76
|
-
sdkVersion: "2.85.
|
|
76
|
+
sdkVersion: "2.85.38",
|
|
77
77
|
genVersion: "2.932.9",
|
|
78
78
|
userAgent:
|
|
79
|
-
"speakeasy-sdk/typescript 2.85.
|
|
79
|
+
"speakeasy-sdk/typescript 2.85.38 2.932.9 1.0 @unified-api/typescript-sdk",
|
|
80
80
|
} as const;
|
package/src/sdk/accounting.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { accountingCreateAccountingExpense } from "../funcs/accountingCreateAcco
|
|
|
13
13
|
import { accountingCreateAccountingInvoice } from "../funcs/accountingCreateAccountingInvoice.js";
|
|
14
14
|
import { accountingCreateAccountingJournal } from "../funcs/accountingCreateAccountingJournal.js";
|
|
15
15
|
import { accountingCreateAccountingOrder } from "../funcs/accountingCreateAccountingOrder.js";
|
|
16
|
+
import { accountingCreateAccountingPaymentterm } from "../funcs/accountingCreateAccountingPaymentterm.js";
|
|
16
17
|
import { accountingCreateAccountingProject } from "../funcs/accountingCreateAccountingProject.js";
|
|
17
18
|
import { accountingCreateAccountingPurchaseorder } from "../funcs/accountingCreateAccountingPurchaseorder.js";
|
|
18
19
|
import { accountingCreateAccountingQuote } from "../funcs/accountingCreateAccountingQuote.js";
|
|
@@ -36,6 +37,7 @@ import { accountingGetAccountingInvoice } from "../funcs/accountingGetAccounting
|
|
|
36
37
|
import { accountingGetAccountingJournal } from "../funcs/accountingGetAccountingJournal.js";
|
|
37
38
|
import { accountingGetAccountingOrder } from "../funcs/accountingGetAccountingOrder.js";
|
|
38
39
|
import { accountingGetAccountingOrganization } from "../funcs/accountingGetAccountingOrganization.js";
|
|
40
|
+
import { accountingGetAccountingPaymentterm } from "../funcs/accountingGetAccountingPaymentterm.js";
|
|
39
41
|
import { accountingGetAccountingProfitloss } from "../funcs/accountingGetAccountingProfitloss.js";
|
|
40
42
|
import { accountingGetAccountingProject } from "../funcs/accountingGetAccountingProject.js";
|
|
41
43
|
import { accountingGetAccountingPurchaseorder } from "../funcs/accountingGetAccountingPurchaseorder.js";
|
|
@@ -62,6 +64,7 @@ import { accountingListAccountingInvoices } from "../funcs/accountingListAccount
|
|
|
62
64
|
import { accountingListAccountingJournals } from "../funcs/accountingListAccountingJournals.js";
|
|
63
65
|
import { accountingListAccountingOrders } from "../funcs/accountingListAccountingOrders.js";
|
|
64
66
|
import { accountingListAccountingOrganizations } from "../funcs/accountingListAccountingOrganizations.js";
|
|
67
|
+
import { accountingListAccountingPaymentterms } from "../funcs/accountingListAccountingPaymentterms.js";
|
|
65
68
|
import { accountingListAccountingProfitlosses } from "../funcs/accountingListAccountingProfitlosses.js";
|
|
66
69
|
import { accountingListAccountingProjects } from "../funcs/accountingListAccountingProjects.js";
|
|
67
70
|
import { accountingListAccountingPurchaseorders } from "../funcs/accountingListAccountingPurchaseorders.js";
|
|
@@ -83,6 +86,7 @@ import { accountingPatchAccountingExpense } from "../funcs/accountingPatchAccoun
|
|
|
83
86
|
import { accountingPatchAccountingInvoice } from "../funcs/accountingPatchAccountingInvoice.js";
|
|
84
87
|
import { accountingPatchAccountingJournal } from "../funcs/accountingPatchAccountingJournal.js";
|
|
85
88
|
import { accountingPatchAccountingOrder } from "../funcs/accountingPatchAccountingOrder.js";
|
|
89
|
+
import { accountingPatchAccountingPaymentterm } from "../funcs/accountingPatchAccountingPaymentterm.js";
|
|
86
90
|
import { accountingPatchAccountingProject } from "../funcs/accountingPatchAccountingProject.js";
|
|
87
91
|
import { accountingPatchAccountingPurchaseorder } from "../funcs/accountingPatchAccountingPurchaseorder.js";
|
|
88
92
|
import { accountingPatchAccountingQuote } from "../funcs/accountingPatchAccountingQuote.js";
|
|
@@ -101,6 +105,7 @@ import { accountingRemoveAccountingExpense } from "../funcs/accountingRemoveAcco
|
|
|
101
105
|
import { accountingRemoveAccountingInvoice } from "../funcs/accountingRemoveAccountingInvoice.js";
|
|
102
106
|
import { accountingRemoveAccountingJournal } from "../funcs/accountingRemoveAccountingJournal.js";
|
|
103
107
|
import { accountingRemoveAccountingOrder } from "../funcs/accountingRemoveAccountingOrder.js";
|
|
108
|
+
import { accountingRemoveAccountingPaymentterm } from "../funcs/accountingRemoveAccountingPaymentterm.js";
|
|
104
109
|
import { accountingRemoveAccountingProject } from "../funcs/accountingRemoveAccountingProject.js";
|
|
105
110
|
import { accountingRemoveAccountingPurchaseorder } from "../funcs/accountingRemoveAccountingPurchaseorder.js";
|
|
106
111
|
import { accountingRemoveAccountingQuote } from "../funcs/accountingRemoveAccountingQuote.js";
|
|
@@ -119,6 +124,7 @@ import { accountingUpdateAccountingExpense } from "../funcs/accountingUpdateAcco
|
|
|
119
124
|
import { accountingUpdateAccountingInvoice } from "../funcs/accountingUpdateAccountingInvoice.js";
|
|
120
125
|
import { accountingUpdateAccountingJournal } from "../funcs/accountingUpdateAccountingJournal.js";
|
|
121
126
|
import { accountingUpdateAccountingOrder } from "../funcs/accountingUpdateAccountingOrder.js";
|
|
127
|
+
import { accountingUpdateAccountingPaymentterm } from "../funcs/accountingUpdateAccountingPaymentterm.js";
|
|
122
128
|
import { accountingUpdateAccountingProject } from "../funcs/accountingUpdateAccountingProject.js";
|
|
123
129
|
import { accountingUpdateAccountingPurchaseorder } from "../funcs/accountingUpdateAccountingPurchaseorder.js";
|
|
124
130
|
import { accountingUpdateAccountingQuote } from "../funcs/accountingUpdateAccountingQuote.js";
|
|
@@ -286,6 +292,20 @@ export class Accounting extends ClientSDK {
|
|
|
286
292
|
));
|
|
287
293
|
}
|
|
288
294
|
|
|
295
|
+
/**
|
|
296
|
+
* Create a paymentterm
|
|
297
|
+
*/
|
|
298
|
+
async createAccountingPaymentterm(
|
|
299
|
+
request: operations.CreateAccountingPaymenttermRequest,
|
|
300
|
+
options?: RequestOptions,
|
|
301
|
+
): Promise<shared.AccountingPaymentterm> {
|
|
302
|
+
return unwrapAsync(accountingCreateAccountingPaymentterm(
|
|
303
|
+
this,
|
|
304
|
+
request,
|
|
305
|
+
options,
|
|
306
|
+
));
|
|
307
|
+
}
|
|
308
|
+
|
|
289
309
|
/**
|
|
290
310
|
* Create a project
|
|
291
311
|
*/
|
|
@@ -608,6 +628,20 @@ export class Accounting extends ClientSDK {
|
|
|
608
628
|
));
|
|
609
629
|
}
|
|
610
630
|
|
|
631
|
+
/**
|
|
632
|
+
* Retrieve a paymentterm
|
|
633
|
+
*/
|
|
634
|
+
async getAccountingPaymentterm(
|
|
635
|
+
request: operations.GetAccountingPaymenttermRequest,
|
|
636
|
+
options?: RequestOptions,
|
|
637
|
+
): Promise<shared.AccountingPaymentterm> {
|
|
638
|
+
return unwrapAsync(accountingGetAccountingPaymentterm(
|
|
639
|
+
this,
|
|
640
|
+
request,
|
|
641
|
+
options,
|
|
642
|
+
));
|
|
643
|
+
}
|
|
644
|
+
|
|
611
645
|
/**
|
|
612
646
|
* Retrieve a profitloss
|
|
613
647
|
*/
|
|
@@ -972,6 +1006,20 @@ export class Accounting extends ClientSDK {
|
|
|
972
1006
|
));
|
|
973
1007
|
}
|
|
974
1008
|
|
|
1009
|
+
/**
|
|
1010
|
+
* List all paymentterms
|
|
1011
|
+
*/
|
|
1012
|
+
async listAccountingPaymentterms(
|
|
1013
|
+
request: operations.ListAccountingPaymenttermsRequest,
|
|
1014
|
+
options?: RequestOptions,
|
|
1015
|
+
): Promise<Array<shared.AccountingPaymentterm>> {
|
|
1016
|
+
return unwrapAsync(accountingListAccountingPaymentterms(
|
|
1017
|
+
this,
|
|
1018
|
+
request,
|
|
1019
|
+
options,
|
|
1020
|
+
));
|
|
1021
|
+
}
|
|
1022
|
+
|
|
975
1023
|
/**
|
|
976
1024
|
* List all profitlosses
|
|
977
1025
|
*/
|
|
@@ -1266,6 +1314,20 @@ export class Accounting extends ClientSDK {
|
|
|
1266
1314
|
));
|
|
1267
1315
|
}
|
|
1268
1316
|
|
|
1317
|
+
/**
|
|
1318
|
+
* Update a paymentterm
|
|
1319
|
+
*/
|
|
1320
|
+
async patchAccountingPaymentterm(
|
|
1321
|
+
request: operations.PatchAccountingPaymenttermRequest,
|
|
1322
|
+
options?: RequestOptions,
|
|
1323
|
+
): Promise<shared.AccountingPaymentterm> {
|
|
1324
|
+
return unwrapAsync(accountingPatchAccountingPaymentterm(
|
|
1325
|
+
this,
|
|
1326
|
+
request,
|
|
1327
|
+
options,
|
|
1328
|
+
));
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1269
1331
|
/**
|
|
1270
1332
|
* Update a project
|
|
1271
1333
|
*/
|
|
@@ -1520,6 +1582,20 @@ export class Accounting extends ClientSDK {
|
|
|
1520
1582
|
));
|
|
1521
1583
|
}
|
|
1522
1584
|
|
|
1585
|
+
/**
|
|
1586
|
+
* Remove a paymentterm
|
|
1587
|
+
*/
|
|
1588
|
+
async removeAccountingPaymentterm(
|
|
1589
|
+
request: operations.RemoveAccountingPaymenttermRequest,
|
|
1590
|
+
options?: RequestOptions,
|
|
1591
|
+
): Promise<operations.RemoveAccountingPaymenttermResponse | undefined> {
|
|
1592
|
+
return unwrapAsync(accountingRemoveAccountingPaymentterm(
|
|
1593
|
+
this,
|
|
1594
|
+
request,
|
|
1595
|
+
options,
|
|
1596
|
+
));
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1523
1599
|
/**
|
|
1524
1600
|
* Remove a project
|
|
1525
1601
|
*/
|
|
@@ -1772,6 +1848,20 @@ export class Accounting extends ClientSDK {
|
|
|
1772
1848
|
));
|
|
1773
1849
|
}
|
|
1774
1850
|
|
|
1851
|
+
/**
|
|
1852
|
+
* Update a paymentterm
|
|
1853
|
+
*/
|
|
1854
|
+
async updateAccountingPaymentterm(
|
|
1855
|
+
request: operations.UpdateAccountingPaymenttermRequest,
|
|
1856
|
+
options?: RequestOptions,
|
|
1857
|
+
): Promise<shared.AccountingPaymentterm> {
|
|
1858
|
+
return unwrapAsync(accountingUpdateAccountingPaymentterm(
|
|
1859
|
+
this,
|
|
1860
|
+
request,
|
|
1861
|
+
options,
|
|
1862
|
+
));
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1775
1865
|
/**
|
|
1776
1866
|
* Update a project
|
|
1777
1867
|
*/
|
|
@@ -36,6 +36,7 @@ export const CreateAccountingBillQueryParamFields = {
|
|
|
36
36
|
OrganizationId: "organization_id",
|
|
37
37
|
Term: "term",
|
|
38
38
|
PaymentTerms: "payment_terms",
|
|
39
|
+
PaymenttermId: "paymentterm_id",
|
|
39
40
|
Payments: "payments",
|
|
40
41
|
CategoryIds: "category_ids",
|
|
41
42
|
ProjectId: "project_id",
|
|
@@ -31,6 +31,7 @@ export const CreateAccountingContactQueryParamFields = {
|
|
|
31
31
|
AssociatedContacts: "associated_contacts",
|
|
32
32
|
OrganizationId: "organization_id",
|
|
33
33
|
PaymentTerms: "payment_terms",
|
|
34
|
+
PaymenttermId: "paymentterm_id",
|
|
34
35
|
Raw: "raw",
|
|
35
36
|
} as const;
|
|
36
37
|
export type CreateAccountingContactQueryParamFields = ClosedEnum<
|
|
@@ -0,0 +1,88 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import * as shared from "../shared/index.js";
|
|
9
|
+
|
|
10
|
+
export const CreateAccountingPaymenttermQueryParamFields = {
|
|
11
|
+
Id: "id",
|
|
12
|
+
CreatedAt: "created_at",
|
|
13
|
+
UpdatedAt: "updated_at",
|
|
14
|
+
Name: "name",
|
|
15
|
+
Description: "description",
|
|
16
|
+
Type: "type",
|
|
17
|
+
Category: "category",
|
|
18
|
+
IsActive: "is_active",
|
|
19
|
+
DueDays: "due_days",
|
|
20
|
+
DiscountDays: "discount_days",
|
|
21
|
+
DiscountPercent: "discount_percent",
|
|
22
|
+
DayOfMonthDue: "day_of_month_due",
|
|
23
|
+
DiscountDayOfMonth: "discount_day_of_month",
|
|
24
|
+
DueNextMonthDays: "due_next_month_days",
|
|
25
|
+
OrganizationId: "organization_id",
|
|
26
|
+
Metadata: "metadata",
|
|
27
|
+
Raw: "raw",
|
|
28
|
+
} as const;
|
|
29
|
+
export type CreateAccountingPaymenttermQueryParamFields = ClosedEnum<
|
|
30
|
+
typeof CreateAccountingPaymenttermQueryParamFields
|
|
31
|
+
>;
|
|
32
|
+
|
|
33
|
+
export type CreateAccountingPaymenttermRequest = {
|
|
34
|
+
accountingPaymentterm: shared.AccountingPaymentterm;
|
|
35
|
+
/**
|
|
36
|
+
* ID of the connection
|
|
37
|
+
*/
|
|
38
|
+
connectionId: string;
|
|
39
|
+
/**
|
|
40
|
+
* Fields to return
|
|
41
|
+
*/
|
|
42
|
+
fields?: Array<CreateAccountingPaymenttermQueryParamFields> | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
45
|
+
*/
|
|
46
|
+
raw?: string | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const CreateAccountingPaymenttermQueryParamFields$outboundSchema:
|
|
51
|
+
z.ZodNativeEnum<typeof CreateAccountingPaymenttermQueryParamFields> = z
|
|
52
|
+
.nativeEnum(CreateAccountingPaymenttermQueryParamFields);
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export type CreateAccountingPaymenttermRequest$Outbound = {
|
|
56
|
+
AccountingPaymentterm: shared.AccountingPaymentterm$Outbound;
|
|
57
|
+
connection_id: string;
|
|
58
|
+
fields?: Array<string> | undefined;
|
|
59
|
+
raw?: string | undefined;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const CreateAccountingPaymenttermRequest$outboundSchema: z.ZodType<
|
|
64
|
+
CreateAccountingPaymenttermRequest$Outbound,
|
|
65
|
+
z.ZodTypeDef,
|
|
66
|
+
CreateAccountingPaymenttermRequest
|
|
67
|
+
> = z.object({
|
|
68
|
+
accountingPaymentterm: shared.AccountingPaymentterm$outboundSchema,
|
|
69
|
+
connectionId: z.string(),
|
|
70
|
+
fields: z.array(CreateAccountingPaymenttermQueryParamFields$outboundSchema)
|
|
71
|
+
.optional(),
|
|
72
|
+
raw: z.string().optional(),
|
|
73
|
+
}).transform((v) => {
|
|
74
|
+
return remap$(v, {
|
|
75
|
+
accountingPaymentterm: "AccountingPaymentterm",
|
|
76
|
+
connectionId: "connection_id",
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
export function createAccountingPaymenttermRequestToJSON(
|
|
81
|
+
createAccountingPaymenttermRequest: CreateAccountingPaymenttermRequest,
|
|
82
|
+
): string {
|
|
83
|
+
return JSON.stringify(
|
|
84
|
+
CreateAccountingPaymenttermRequest$outboundSchema.parse(
|
|
85
|
+
createAccountingPaymenttermRequest,
|
|
86
|
+
),
|
|
87
|
+
);
|
|
88
|
+
}
|
|
@@ -30,6 +30,7 @@ export const GetAccountingContactQueryParamFields = {
|
|
|
30
30
|
AssociatedContacts: "associated_contacts",
|
|
31
31
|
OrganizationId: "organization_id",
|
|
32
32
|
PaymentTerms: "payment_terms",
|
|
33
|
+
PaymenttermId: "paymentterm_id",
|
|
33
34
|
Raw: "raw",
|
|
34
35
|
} as const;
|
|
35
36
|
export type GetAccountingContactQueryParamFields = ClosedEnum<
|