@apideck/unify 0.11.6 → 0.13.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/FUNCTIONS.md +4 -2
- package/README.md +100 -27
- package/docs/sdks/activities/README.md +8 -4
- package/docs/sdks/agedcreditors/README.md +113 -0
- package/docs/sdks/ageddebtors/README.md +113 -0
- package/docs/sdks/apideckcompanies/README.md +8 -4
- package/docs/sdks/apideckcustomers/README.md +8 -4
- package/docs/sdks/apideckdepartments/README.md +8 -4
- package/docs/sdks/apis/README.md +8 -4
- package/docs/sdks/applicants/README.md +8 -4
- package/docs/sdks/applications/README.md +8 -4
- package/docs/sdks/attachments/README.md +8 -4
- package/docs/sdks/billpayments/README.md +8 -4
- package/docs/sdks/bills/README.md +8 -4
- package/docs/sdks/collections/README.md +8 -4
- package/docs/sdks/collectiontags/README.md +8 -4
- package/docs/sdks/collectionticketcomments/README.md +16 -8
- package/docs/sdks/collectiontickets/README.md +8 -4
- package/docs/sdks/collectionusers/README.md +8 -4
- package/docs/sdks/companies/README.md +8 -4
- package/docs/sdks/connectors/README.md +8 -4
- package/docs/sdks/consumers/README.md +8 -4
- package/docs/sdks/contacts/README.md +8 -4
- package/docs/sdks/creditnotes/README.md +8 -4
- package/docs/sdks/customers/README.md +8 -4
- package/docs/sdks/departments/README.md +8 -4
- package/docs/sdks/drivegroups/README.md +8 -4
- package/docs/sdks/drives/README.md +8 -4
- package/docs/sdks/employees/README.md +8 -4
- package/docs/sdks/eventlogs/README.md +8 -4
- package/docs/sdks/expenses/README.md +8 -4
- package/docs/sdks/files/README.md +8 -4
- package/docs/sdks/invoiceitems/README.md +8 -4
- package/docs/sdks/invoices/README.md +8 -4
- package/docs/sdks/jobs/README.md +8 -4
- package/docs/sdks/journalentries/README.md +8 -4
- package/docs/sdks/leads/README.md +8 -4
- package/docs/sdks/ledgeraccounts/README.md +8 -4
- package/docs/sdks/locations/README.md +8 -4
- package/docs/sdks/logs/README.md +8 -4
- package/docs/sdks/messages/README.md +8 -4
- package/docs/sdks/notes/README.md +8 -4
- package/docs/sdks/opportunities/README.md +8 -4
- package/docs/sdks/orders/README.md +8 -4
- package/docs/sdks/payments/README.md +8 -4
- package/docs/sdks/pipelines/README.md +8 -4
- package/docs/sdks/products/README.md +8 -4
- package/docs/sdks/purchaseorders/README.md +8 -4
- package/docs/sdks/sharedlinks/README.md +8 -4
- package/docs/sdks/subsidiaries/README.md +8 -4
- package/docs/sdks/suppliers/README.md +8 -4
- package/docs/sdks/taxrates/README.md +8 -4
- package/docs/sdks/timeoffrequests/README.md +8 -4
- package/docs/sdks/trackingcategories/README.md +8 -4
- package/docs/sdks/users/README.md +8 -4
- package/docs/sdks/webhooks/README.md +8 -4
- package/funcs/accountingAgedCreditorsGet.d.ts +16 -0
- package/funcs/accountingAgedCreditorsGet.d.ts.map +1 -0
- package/funcs/accountingAgedCreditorsGet.js +121 -0
- package/funcs/accountingAgedCreditorsGet.js.map +1 -0
- package/funcs/accountingAgedDebtorsGet.d.ts +16 -0
- package/funcs/accountingAgedDebtorsGet.d.ts.map +1 -0
- package/funcs/accountingAgedDebtorsGet.js +121 -0
- package/funcs/accountingAgedDebtorsGet.js.map +1 -0
- package/funcs/accountingAttachmentsList.d.ts +4 -1
- package/funcs/accountingAttachmentsList.d.ts.map +1 -1
- package/funcs/accountingAttachmentsList.js +20 -6
- package/funcs/accountingAttachmentsList.js.map +1 -1
- package/funcs/accountingBillPaymentsList.d.ts +4 -1
- package/funcs/accountingBillPaymentsList.d.ts.map +1 -1
- package/funcs/accountingBillPaymentsList.js +20 -6
- package/funcs/accountingBillPaymentsList.js.map +1 -1
- package/funcs/accountingBillsList.d.ts +4 -1
- package/funcs/accountingBillsList.d.ts.map +1 -1
- package/funcs/accountingBillsList.js +20 -6
- package/funcs/accountingBillsList.js.map +1 -1
- package/funcs/accountingCreditNotesList.d.ts +4 -1
- package/funcs/accountingCreditNotesList.d.ts.map +1 -1
- package/funcs/accountingCreditNotesList.js +20 -6
- package/funcs/accountingCreditNotesList.js.map +1 -1
- package/funcs/accountingCustomersList.d.ts +4 -1
- package/funcs/accountingCustomersList.d.ts.map +1 -1
- package/funcs/accountingCustomersList.js +20 -6
- package/funcs/accountingCustomersList.js.map +1 -1
- package/funcs/accountingDepartmentsList.d.ts +4 -1
- package/funcs/accountingDepartmentsList.d.ts.map +1 -1
- package/funcs/accountingDepartmentsList.js +20 -6
- package/funcs/accountingDepartmentsList.js.map +1 -1
- package/funcs/accountingExpensesList.d.ts +4 -1
- package/funcs/accountingExpensesList.d.ts.map +1 -1
- package/funcs/accountingExpensesList.js +20 -6
- package/funcs/accountingExpensesList.js.map +1 -1
- package/funcs/accountingInvoiceItemsList.d.ts +4 -1
- package/funcs/accountingInvoiceItemsList.d.ts.map +1 -1
- package/funcs/accountingInvoiceItemsList.js +20 -6
- package/funcs/accountingInvoiceItemsList.js.map +1 -1
- package/funcs/accountingInvoicesList.d.ts +4 -1
- package/funcs/accountingInvoicesList.d.ts.map +1 -1
- package/funcs/accountingInvoicesList.js +20 -6
- package/funcs/accountingInvoicesList.js.map +1 -1
- package/funcs/accountingJournalEntriesList.d.ts +4 -1
- package/funcs/accountingJournalEntriesList.d.ts.map +1 -1
- package/funcs/accountingJournalEntriesList.js +20 -6
- package/funcs/accountingJournalEntriesList.js.map +1 -1
- package/funcs/accountingLedgerAccountsList.d.ts +4 -1
- package/funcs/accountingLedgerAccountsList.d.ts.map +1 -1
- package/funcs/accountingLedgerAccountsList.js +20 -6
- package/funcs/accountingLedgerAccountsList.js.map +1 -1
- package/funcs/accountingLocationsList.d.ts +4 -1
- package/funcs/accountingLocationsList.d.ts.map +1 -1
- package/funcs/accountingLocationsList.js +20 -6
- package/funcs/accountingLocationsList.js.map +1 -1
- package/funcs/accountingPaymentsList.d.ts +4 -1
- package/funcs/accountingPaymentsList.d.ts.map +1 -1
- package/funcs/accountingPaymentsList.js +20 -6
- package/funcs/accountingPaymentsList.js.map +1 -1
- package/funcs/accountingPurchaseOrdersList.d.ts +4 -1
- package/funcs/accountingPurchaseOrdersList.d.ts.map +1 -1
- package/funcs/accountingPurchaseOrdersList.js +20 -6
- package/funcs/accountingPurchaseOrdersList.js.map +1 -1
- package/funcs/accountingSubsidiariesList.d.ts +4 -1
- package/funcs/accountingSubsidiariesList.d.ts.map +1 -1
- package/funcs/accountingSubsidiariesList.js +20 -6
- package/funcs/accountingSubsidiariesList.js.map +1 -1
- package/funcs/accountingSuppliersList.d.ts +4 -1
- package/funcs/accountingSuppliersList.d.ts.map +1 -1
- package/funcs/accountingSuppliersList.js +20 -6
- package/funcs/accountingSuppliersList.js.map +1 -1
- package/funcs/accountingTaxRatesList.d.ts +4 -1
- package/funcs/accountingTaxRatesList.d.ts.map +1 -1
- package/funcs/accountingTaxRatesList.js +20 -6
- package/funcs/accountingTaxRatesList.js.map +1 -1
- package/funcs/accountingTrackingCategoriesList.d.ts +4 -1
- package/funcs/accountingTrackingCategoriesList.d.ts.map +1 -1
- package/funcs/accountingTrackingCategoriesList.js +20 -6
- package/funcs/accountingTrackingCategoriesList.js.map +1 -1
- package/funcs/atsApplicantsList.d.ts +4 -1
- package/funcs/atsApplicantsList.d.ts.map +1 -1
- package/funcs/atsApplicantsList.js +20 -6
- package/funcs/atsApplicantsList.js.map +1 -1
- package/funcs/atsApplicationsList.d.ts +4 -1
- package/funcs/atsApplicationsList.d.ts.map +1 -1
- package/funcs/atsApplicationsList.js +20 -6
- package/funcs/atsApplicationsList.js.map +1 -1
- package/funcs/atsJobsList.d.ts +4 -1
- package/funcs/atsJobsList.d.ts.map +1 -1
- package/funcs/atsJobsList.js +20 -6
- package/funcs/atsJobsList.js.map +1 -1
- package/funcs/connectorApisList.d.ts +4 -1
- package/funcs/connectorApisList.d.ts.map +1 -1
- package/funcs/connectorApisList.js +20 -6
- package/funcs/connectorApisList.js.map +1 -1
- package/funcs/connectorConnectorsList.d.ts +4 -1
- package/funcs/connectorConnectorsList.d.ts.map +1 -1
- package/funcs/connectorConnectorsList.js +20 -6
- package/funcs/connectorConnectorsList.js.map +1 -1
- package/funcs/crmActivitiesList.d.ts +4 -1
- package/funcs/crmActivitiesList.d.ts.map +1 -1
- package/funcs/crmActivitiesList.js +20 -6
- package/funcs/crmActivitiesList.js.map +1 -1
- package/funcs/crmCompaniesList.d.ts +4 -1
- package/funcs/crmCompaniesList.d.ts.map +1 -1
- package/funcs/crmCompaniesList.js +20 -6
- package/funcs/crmCompaniesList.js.map +1 -1
- package/funcs/crmContactsList.d.ts +4 -1
- package/funcs/crmContactsList.d.ts.map +1 -1
- package/funcs/crmContactsList.js +20 -6
- package/funcs/crmContactsList.js.map +1 -1
- package/funcs/crmLeadsList.d.ts +4 -1
- package/funcs/crmLeadsList.d.ts.map +1 -1
- package/funcs/crmLeadsList.js +20 -6
- package/funcs/crmLeadsList.js.map +1 -1
- package/funcs/crmNotesList.d.ts +4 -1
- package/funcs/crmNotesList.d.ts.map +1 -1
- package/funcs/crmNotesList.js +20 -6
- package/funcs/crmNotesList.js.map +1 -1
- package/funcs/crmOpportunitiesList.d.ts +4 -1
- package/funcs/crmOpportunitiesList.d.ts.map +1 -1
- package/funcs/crmOpportunitiesList.js +20 -6
- package/funcs/crmOpportunitiesList.js.map +1 -1
- package/funcs/crmPipelinesList.d.ts +4 -1
- package/funcs/crmPipelinesList.d.ts.map +1 -1
- package/funcs/crmPipelinesList.js +20 -6
- package/funcs/crmPipelinesList.js.map +1 -1
- package/funcs/crmUsersList.d.ts +4 -1
- package/funcs/crmUsersList.d.ts.map +1 -1
- package/funcs/crmUsersList.js +20 -6
- package/funcs/crmUsersList.js.map +1 -1
- package/funcs/ecommerceCustomersList.d.ts +4 -1
- package/funcs/ecommerceCustomersList.d.ts.map +1 -1
- package/funcs/ecommerceCustomersList.js +20 -6
- package/funcs/ecommerceCustomersList.js.map +1 -1
- package/funcs/ecommerceOrdersList.d.ts +4 -1
- package/funcs/ecommerceOrdersList.d.ts.map +1 -1
- package/funcs/ecommerceOrdersList.js +20 -6
- package/funcs/ecommerceOrdersList.js.map +1 -1
- package/funcs/ecommerceProductsList.d.ts +4 -1
- package/funcs/ecommerceProductsList.d.ts.map +1 -1
- package/funcs/ecommerceProductsList.js +20 -6
- package/funcs/ecommerceProductsList.js.map +1 -1
- package/funcs/fileStorageDriveGroupsList.d.ts +4 -1
- package/funcs/fileStorageDriveGroupsList.d.ts.map +1 -1
- package/funcs/fileStorageDriveGroupsList.js +20 -6
- package/funcs/fileStorageDriveGroupsList.js.map +1 -1
- package/funcs/fileStorageDrivesList.d.ts +4 -1
- package/funcs/fileStorageDrivesList.d.ts.map +1 -1
- package/funcs/fileStorageDrivesList.js +20 -6
- package/funcs/fileStorageDrivesList.js.map +1 -1
- package/funcs/fileStorageFilesList.d.ts +4 -1
- package/funcs/fileStorageFilesList.d.ts.map +1 -1
- package/funcs/fileStorageFilesList.js +20 -6
- package/funcs/fileStorageFilesList.js.map +1 -1
- package/funcs/fileStorageSharedLinksList.d.ts +4 -1
- package/funcs/fileStorageSharedLinksList.d.ts.map +1 -1
- package/funcs/fileStorageSharedLinksList.js +20 -6
- package/funcs/fileStorageSharedLinksList.js.map +1 -1
- package/funcs/hrisCompaniesList.d.ts +4 -1
- package/funcs/hrisCompaniesList.d.ts.map +1 -1
- package/funcs/hrisCompaniesList.js +20 -6
- package/funcs/hrisCompaniesList.js.map +1 -1
- package/funcs/hrisDepartmentsList.d.ts +4 -1
- package/funcs/hrisDepartmentsList.d.ts.map +1 -1
- package/funcs/hrisDepartmentsList.js +20 -6
- package/funcs/hrisDepartmentsList.js.map +1 -1
- package/funcs/hrisEmployeesList.d.ts +4 -1
- package/funcs/hrisEmployeesList.d.ts.map +1 -1
- package/funcs/hrisEmployeesList.js +20 -6
- package/funcs/hrisEmployeesList.js.map +1 -1
- package/funcs/hrisTimeOffRequestsList.d.ts +4 -1
- package/funcs/hrisTimeOffRequestsList.d.ts.map +1 -1
- package/funcs/hrisTimeOffRequestsList.js +20 -6
- package/funcs/hrisTimeOffRequestsList.js.map +1 -1
- package/funcs/issueTrackingCollectionTagsList.d.ts +4 -1
- package/funcs/issueTrackingCollectionTagsList.d.ts.map +1 -1
- package/funcs/issueTrackingCollectionTagsList.js +20 -6
- package/funcs/issueTrackingCollectionTagsList.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsGet.d.ts +4 -1
- package/funcs/issueTrackingCollectionTicketCommentsGet.d.ts.map +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsGet.js +20 -6
- package/funcs/issueTrackingCollectionTicketCommentsGet.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsList.d.ts +4 -1
- package/funcs/issueTrackingCollectionTicketCommentsList.d.ts.map +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsList.js +20 -6
- package/funcs/issueTrackingCollectionTicketCommentsList.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketsList.d.ts +4 -1
- package/funcs/issueTrackingCollectionTicketsList.d.ts.map +1 -1
- package/funcs/issueTrackingCollectionTicketsList.js +20 -6
- package/funcs/issueTrackingCollectionTicketsList.js.map +1 -1
- package/funcs/issueTrackingCollectionUsersList.d.ts +4 -1
- package/funcs/issueTrackingCollectionUsersList.d.ts.map +1 -1
- package/funcs/issueTrackingCollectionUsersList.js +20 -6
- package/funcs/issueTrackingCollectionUsersList.js.map +1 -1
- package/funcs/issueTrackingCollectionsList.d.ts +4 -1
- package/funcs/issueTrackingCollectionsList.d.ts.map +1 -1
- package/funcs/issueTrackingCollectionsList.js +20 -6
- package/funcs/issueTrackingCollectionsList.js.map +1 -1
- package/funcs/smsMessagesList.d.ts +4 -1
- package/funcs/smsMessagesList.d.ts.map +1 -1
- package/funcs/smsMessagesList.js +20 -6
- package/funcs/smsMessagesList.js.map +1 -1
- package/funcs/vaultConsumersList.d.ts +4 -1
- package/funcs/vaultConsumersList.d.ts.map +1 -1
- package/funcs/vaultConsumersList.js +20 -6
- package/funcs/vaultConsumersList.js.map +1 -1
- package/funcs/vaultLogsList.d.ts +4 -1
- package/funcs/vaultLogsList.d.ts.map +1 -1
- package/funcs/vaultLogsList.js +20 -6
- package/funcs/vaultLogsList.js.map +1 -1
- package/funcs/webhookEventLogsList.d.ts +4 -1
- package/funcs/webhookEventLogsList.d.ts.map +1 -1
- package/funcs/webhookEventLogsList.js +20 -6
- package/funcs/webhookEventLogsList.js.map +1 -1
- package/funcs/webhookWebhooksList.d.ts +4 -1
- package/funcs/webhookWebhooksList.d.ts.map +1 -1
- package/funcs/webhookWebhooksList.js +20 -6
- package/funcs/webhookWebhooksList.js.map +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/models/components/agedcreditors.d.ts +51 -0
- package/models/components/agedcreditors.d.ts.map +1 -0
- package/models/components/agedcreditors.js +86 -0
- package/models/components/agedcreditors.js.map +1 -0
- package/models/components/ageddebtors.d.ts +51 -0
- package/models/components/ageddebtors.d.ts.map +1 -0
- package/models/components/ageddebtors.js +86 -0
- package/models/components/ageddebtors.js.map +1 -0
- package/models/components/agedreportfilter.d.ts +47 -0
- package/models/components/agedreportfilter.d.ts.map +1 -0
- package/models/components/agedreportfilter.js +80 -0
- package/models/components/agedreportfilter.js.map +1 -0
- package/models/components/balancebyperiod.d.ts +46 -0
- package/models/components/balancebyperiod.d.ts.map +1 -0
- package/models/components/balancebyperiod.js +84 -0
- package/models/components/balancebyperiod.js.map +1 -0
- package/models/components/balancebytransaction.d.ts +99 -0
- package/models/components/balancebytransaction.d.ts.map +1 -0
- package/models/components/balancebytransaction.js +115 -0
- package/models/components/balancebytransaction.js.map +1 -0
- package/models/components/getagedcreditorsresponse.d.ts +58 -0
- package/models/components/getagedcreditorsresponse.d.ts.map +1 -0
- package/models/components/getagedcreditorsresponse.js +79 -0
- package/models/components/getagedcreditorsresponse.js.map +1 -0
- package/models/components/getageddebtorsresponse.d.ts +58 -0
- package/models/components/getageddebtorsresponse.d.ts.map +1 -0
- package/models/components/getageddebtorsresponse.js +79 -0
- package/models/components/getageddebtorsresponse.js.map +1 -0
- package/models/components/index.d.ts +9 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +9 -0
- package/models/components/index.js.map +1 -1
- package/models/components/outstandingbalance.d.ts +40 -0
- package/models/components/outstandingbalance.d.ts.map +1 -0
- package/models/components/outstandingbalance.js +77 -0
- package/models/components/outstandingbalance.js.map +1 -0
- package/models/components/outstandingbalancebycurrency.d.ts +36 -0
- package/models/components/outstandingbalancebycurrency.d.ts.map +1 -0
- package/models/components/outstandingbalancebycurrency.js +72 -0
- package/models/components/outstandingbalancebycurrency.js.map +1 -0
- package/models/operations/accountingagedcreditorsone.d.ts +125 -0
- package/models/operations/accountingagedcreditorsone.d.ts.map +1 -0
- package/models/operations/accountingagedcreditorsone.js +153 -0
- package/models/operations/accountingagedcreditorsone.js.map +1 -0
- package/models/operations/accountingageddebtorsone.d.ts +125 -0
- package/models/operations/accountingageddebtorsone.d.ts.map +1 -0
- package/models/operations/accountingageddebtorsone.js +153 -0
- package/models/operations/accountingageddebtorsone.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/accounting.d.ts +6 -0
- package/sdk/accounting.d.ts.map +1 -1
- package/sdk/accounting.js +10 -0
- package/sdk/accounting.js.map +1 -1
- package/sdk/activities.d.ts +4 -1
- package/sdk/activities.d.ts.map +1 -1
- package/sdk/activities.js +2 -1
- package/sdk/activities.js.map +1 -1
- package/sdk/agedcreditors.d.ts +12 -0
- package/sdk/agedcreditors.d.ts.map +1 -0
- package/sdk/agedcreditors.js +22 -0
- package/sdk/agedcreditors.js.map +1 -0
- package/sdk/ageddebtors.d.ts +12 -0
- package/sdk/ageddebtors.d.ts.map +1 -0
- package/sdk/ageddebtors.js +22 -0
- package/sdk/ageddebtors.js.map +1 -0
- package/sdk/apideckcompanies.d.ts +4 -1
- package/sdk/apideckcompanies.d.ts.map +1 -1
- package/sdk/apideckcompanies.js +2 -1
- package/sdk/apideckcompanies.js.map +1 -1
- package/sdk/apideckcustomers.d.ts +4 -1
- package/sdk/apideckcustomers.d.ts.map +1 -1
- package/sdk/apideckcustomers.js +2 -1
- package/sdk/apideckcustomers.js.map +1 -1
- package/sdk/apideckdepartments.d.ts +4 -1
- package/sdk/apideckdepartments.d.ts.map +1 -1
- package/sdk/apideckdepartments.js +2 -1
- package/sdk/apideckdepartments.js.map +1 -1
- package/sdk/apis.d.ts +4 -1
- package/sdk/apis.d.ts.map +1 -1
- package/sdk/apis.js +2 -1
- package/sdk/apis.js.map +1 -1
- package/sdk/applicants.d.ts +4 -1
- package/sdk/applicants.d.ts.map +1 -1
- package/sdk/applicants.js +2 -1
- package/sdk/applicants.js.map +1 -1
- package/sdk/applications.d.ts +4 -1
- package/sdk/applications.d.ts.map +1 -1
- package/sdk/applications.js +2 -1
- package/sdk/applications.js.map +1 -1
- package/sdk/attachments.d.ts +4 -1
- package/sdk/attachments.d.ts.map +1 -1
- package/sdk/attachments.js +2 -1
- package/sdk/attachments.js.map +1 -1
- package/sdk/billpayments.d.ts +4 -1
- package/sdk/billpayments.d.ts.map +1 -1
- package/sdk/billpayments.js +2 -1
- package/sdk/billpayments.js.map +1 -1
- package/sdk/bills.d.ts +4 -1
- package/sdk/bills.d.ts.map +1 -1
- package/sdk/bills.js +2 -1
- package/sdk/bills.js.map +1 -1
- package/sdk/collections.d.ts +4 -1
- package/sdk/collections.d.ts.map +1 -1
- package/sdk/collections.js +2 -1
- package/sdk/collections.js.map +1 -1
- package/sdk/collectiontags.d.ts +4 -1
- package/sdk/collectiontags.d.ts.map +1 -1
- package/sdk/collectiontags.js +2 -2
- package/sdk/collectiontags.js.map +1 -1
- package/sdk/collectionticketcomments.d.ts +7 -2
- package/sdk/collectionticketcomments.d.ts.map +1 -1
- package/sdk/collectionticketcomments.js +3 -2
- package/sdk/collectionticketcomments.js.map +1 -1
- package/sdk/collectiontickets.d.ts +4 -1
- package/sdk/collectiontickets.d.ts.map +1 -1
- package/sdk/collectiontickets.js +2 -1
- package/sdk/collectiontickets.js.map +1 -1
- package/sdk/collectionusers.d.ts +4 -1
- package/sdk/collectionusers.d.ts.map +1 -1
- package/sdk/collectionusers.js +2 -1
- package/sdk/collectionusers.js.map +1 -1
- package/sdk/companies.d.ts +4 -1
- package/sdk/companies.d.ts.map +1 -1
- package/sdk/companies.js +2 -1
- package/sdk/companies.js.map +1 -1
- package/sdk/connectors.d.ts +4 -1
- package/sdk/connectors.d.ts.map +1 -1
- package/sdk/connectors.js +2 -1
- package/sdk/connectors.js.map +1 -1
- package/sdk/consumers.d.ts +4 -1
- package/sdk/consumers.d.ts.map +1 -1
- package/sdk/consumers.js +2 -1
- package/sdk/consumers.js.map +1 -1
- package/sdk/contacts.d.ts +4 -1
- package/sdk/contacts.d.ts.map +1 -1
- package/sdk/contacts.js +2 -1
- package/sdk/contacts.js.map +1 -1
- package/sdk/creditnotes.d.ts +4 -1
- package/sdk/creditnotes.d.ts.map +1 -1
- package/sdk/creditnotes.js +2 -1
- package/sdk/creditnotes.js.map +1 -1
- package/sdk/customers.d.ts +4 -1
- package/sdk/customers.d.ts.map +1 -1
- package/sdk/customers.js +2 -1
- package/sdk/customers.js.map +1 -1
- package/sdk/departments.d.ts +4 -1
- package/sdk/departments.d.ts.map +1 -1
- package/sdk/departments.js +2 -1
- package/sdk/departments.js.map +1 -1
- package/sdk/drivegroups.d.ts +4 -1
- package/sdk/drivegroups.d.ts.map +1 -1
- package/sdk/drivegroups.js +2 -1
- package/sdk/drivegroups.js.map +1 -1
- package/sdk/drives.d.ts +4 -1
- package/sdk/drives.d.ts.map +1 -1
- package/sdk/drives.js +2 -1
- package/sdk/drives.js.map +1 -1
- package/sdk/employees.d.ts +4 -1
- package/sdk/employees.d.ts.map +1 -1
- package/sdk/employees.js +2 -1
- package/sdk/employees.js.map +1 -1
- package/sdk/eventlogs.d.ts +4 -1
- package/sdk/eventlogs.d.ts.map +1 -1
- package/sdk/eventlogs.js +2 -2
- package/sdk/eventlogs.js.map +1 -1
- package/sdk/expenses.d.ts +4 -1
- package/sdk/expenses.d.ts.map +1 -1
- package/sdk/expenses.js +2 -1
- package/sdk/expenses.js.map +1 -1
- package/sdk/files.d.ts +4 -1
- package/sdk/files.d.ts.map +1 -1
- package/sdk/files.js +2 -1
- package/sdk/files.js.map +1 -1
- package/sdk/invoiceitems.d.ts +4 -1
- package/sdk/invoiceitems.d.ts.map +1 -1
- package/sdk/invoiceitems.js +2 -1
- package/sdk/invoiceitems.js.map +1 -1
- package/sdk/invoices.d.ts +4 -1
- package/sdk/invoices.d.ts.map +1 -1
- package/sdk/invoices.js +2 -1
- package/sdk/invoices.js.map +1 -1
- package/sdk/jobs.d.ts +4 -1
- package/sdk/jobs.d.ts.map +1 -1
- package/sdk/jobs.js +2 -1
- package/sdk/jobs.js.map +1 -1
- package/sdk/journalentries.d.ts +4 -1
- package/sdk/journalentries.d.ts.map +1 -1
- package/sdk/journalentries.js +2 -1
- package/sdk/journalentries.js.map +1 -1
- package/sdk/leads.d.ts +4 -1
- package/sdk/leads.d.ts.map +1 -1
- package/sdk/leads.js +2 -1
- package/sdk/leads.js.map +1 -1
- package/sdk/ledgeraccounts.d.ts +4 -1
- package/sdk/ledgeraccounts.d.ts.map +1 -1
- package/sdk/ledgeraccounts.js +2 -1
- package/sdk/ledgeraccounts.js.map +1 -1
- package/sdk/locations.d.ts +4 -1
- package/sdk/locations.d.ts.map +1 -1
- package/sdk/locations.js +2 -1
- package/sdk/locations.js.map +1 -1
- package/sdk/logs.d.ts +4 -1
- package/sdk/logs.d.ts.map +1 -1
- package/sdk/logs.js +2 -2
- package/sdk/logs.js.map +1 -1
- package/sdk/messages.d.ts +4 -1
- package/sdk/messages.d.ts.map +1 -1
- package/sdk/messages.js +2 -1
- package/sdk/messages.js.map +1 -1
- package/sdk/notes.d.ts +4 -1
- package/sdk/notes.d.ts.map +1 -1
- package/sdk/notes.js +2 -1
- package/sdk/notes.js.map +1 -1
- package/sdk/opportunities.d.ts +4 -1
- package/sdk/opportunities.d.ts.map +1 -1
- package/sdk/opportunities.js +2 -1
- package/sdk/opportunities.js.map +1 -1
- package/sdk/orders.d.ts +4 -1
- package/sdk/orders.d.ts.map +1 -1
- package/sdk/orders.js +2 -1
- package/sdk/orders.js.map +1 -1
- package/sdk/payments.d.ts +4 -1
- package/sdk/payments.d.ts.map +1 -1
- package/sdk/payments.js +2 -1
- package/sdk/payments.js.map +1 -1
- package/sdk/pipelines.d.ts +4 -1
- package/sdk/pipelines.d.ts.map +1 -1
- package/sdk/pipelines.js +2 -1
- package/sdk/pipelines.js.map +1 -1
- package/sdk/products.d.ts +4 -1
- package/sdk/products.d.ts.map +1 -1
- package/sdk/products.js +2 -1
- package/sdk/products.js.map +1 -1
- package/sdk/purchaseorders.d.ts +4 -1
- package/sdk/purchaseorders.d.ts.map +1 -1
- package/sdk/purchaseorders.js +2 -1
- package/sdk/purchaseorders.js.map +1 -1
- package/sdk/sharedlinks.d.ts +4 -1
- package/sdk/sharedlinks.d.ts.map +1 -1
- package/sdk/sharedlinks.js +2 -1
- package/sdk/sharedlinks.js.map +1 -1
- package/sdk/subsidiaries.d.ts +4 -1
- package/sdk/subsidiaries.d.ts.map +1 -1
- package/sdk/subsidiaries.js +2 -1
- package/sdk/subsidiaries.js.map +1 -1
- package/sdk/suppliers.d.ts +4 -1
- package/sdk/suppliers.d.ts.map +1 -1
- package/sdk/suppliers.js +2 -1
- package/sdk/suppliers.js.map +1 -1
- package/sdk/taxrates.d.ts +4 -1
- package/sdk/taxrates.d.ts.map +1 -1
- package/sdk/taxrates.js +2 -1
- package/sdk/taxrates.js.map +1 -1
- package/sdk/timeoffrequests.d.ts +4 -1
- package/sdk/timeoffrequests.d.ts.map +1 -1
- package/sdk/timeoffrequests.js +2 -1
- package/sdk/timeoffrequests.js.map +1 -1
- package/sdk/trackingcategories.d.ts +4 -1
- package/sdk/trackingcategories.d.ts.map +1 -1
- package/sdk/trackingcategories.js +2 -1
- package/sdk/trackingcategories.js.map +1 -1
- package/sdk/users.d.ts +4 -1
- package/sdk/users.d.ts.map +1 -1
- package/sdk/users.js +2 -1
- package/sdk/users.js.map +1 -1
- package/sdk/webhooks.d.ts +4 -1
- package/sdk/webhooks.d.ts.map +1 -1
- package/sdk/webhooks.js +2 -1
- package/sdk/webhooks.js.map +1 -1
- package/src/funcs/accountingAgedCreditorsGet.ts +192 -0
- package/src/funcs/accountingAgedDebtorsGet.ts +192 -0
- package/src/funcs/accountingAttachmentsList.ts +71 -20
- package/src/funcs/accountingBillPaymentsList.ts +71 -20
- package/src/funcs/accountingBillsList.ts +71 -20
- package/src/funcs/accountingCreditNotesList.ts +71 -20
- package/src/funcs/accountingCustomersList.ts +71 -20
- package/src/funcs/accountingDepartmentsList.ts +71 -20
- package/src/funcs/accountingExpensesList.ts +71 -20
- package/src/funcs/accountingInvoiceItemsList.ts +71 -20
- package/src/funcs/accountingInvoicesList.ts +71 -20
- package/src/funcs/accountingJournalEntriesList.ts +71 -20
- package/src/funcs/accountingLedgerAccountsList.ts +71 -20
- package/src/funcs/accountingLocationsList.ts +71 -20
- package/src/funcs/accountingPaymentsList.ts +71 -20
- package/src/funcs/accountingPurchaseOrdersList.ts +71 -20
- package/src/funcs/accountingSubsidiariesList.ts +71 -20
- package/src/funcs/accountingSuppliersList.ts +71 -20
- package/src/funcs/accountingTaxRatesList.ts +71 -20
- package/src/funcs/accountingTrackingCategoriesList.ts +71 -20
- package/src/funcs/atsApplicantsList.ts +71 -20
- package/src/funcs/atsApplicationsList.ts +71 -20
- package/src/funcs/atsJobsList.ts +71 -20
- package/src/funcs/connectorApisList.ts +67 -18
- package/src/funcs/connectorConnectorsList.ts +67 -18
- package/src/funcs/crmActivitiesList.ts +71 -20
- package/src/funcs/crmCompaniesList.ts +71 -20
- package/src/funcs/crmContactsList.ts +71 -20
- package/src/funcs/crmLeadsList.ts +71 -20
- package/src/funcs/crmNotesList.ts +71 -20
- package/src/funcs/crmOpportunitiesList.ts +71 -20
- package/src/funcs/crmPipelinesList.ts +71 -20
- package/src/funcs/crmUsersList.ts +71 -20
- package/src/funcs/ecommerceCustomersList.ts +71 -20
- package/src/funcs/ecommerceOrdersList.ts +71 -20
- package/src/funcs/ecommerceProductsList.ts +71 -20
- package/src/funcs/fileStorageDriveGroupsList.ts +71 -20
- package/src/funcs/fileStorageDrivesList.ts +71 -20
- package/src/funcs/fileStorageFilesList.ts +71 -20
- package/src/funcs/fileStorageSharedLinksList.ts +71 -20
- package/src/funcs/hrisCompaniesList.ts +71 -20
- package/src/funcs/hrisDepartmentsList.ts +71 -20
- package/src/funcs/hrisEmployeesList.ts +71 -20
- package/src/funcs/hrisTimeOffRequestsList.ts +71 -20
- package/src/funcs/issueTrackingCollectionTagsList.ts +71 -20
- package/src/funcs/issueTrackingCollectionTicketCommentsGet.ts +71 -20
- package/src/funcs/issueTrackingCollectionTicketCommentsList.ts +71 -20
- package/src/funcs/issueTrackingCollectionTicketsList.ts +71 -20
- package/src/funcs/issueTrackingCollectionUsersList.ts +71 -20
- package/src/funcs/issueTrackingCollectionsList.ts +71 -20
- package/src/funcs/smsMessagesList.ts +71 -20
- package/src/funcs/vaultConsumersList.ts +71 -20
- package/src/funcs/vaultLogsList.ts +71 -20
- package/src/funcs/webhookEventLogsList.ts +71 -20
- package/src/funcs/webhookWebhooksList.ts +71 -20
- package/src/lib/config.ts +4 -4
- package/src/models/components/agedcreditors.ts +116 -0
- package/src/models/components/ageddebtors.ts +116 -0
- package/src/models/components/agedreportfilter.ts +105 -0
- package/src/models/components/balancebyperiod.ts +109 -0
- package/src/models/components/balancebytransaction.ts +162 -0
- package/src/models/components/getagedcreditorsresponse.ts +119 -0
- package/src/models/components/getageddebtorsresponse.ts +119 -0
- package/src/models/components/index.ts +9 -0
- package/src/models/components/outstandingbalance.ts +107 -0
- package/src/models/components/outstandingbalancebycurrency.ts +95 -0
- package/src/models/operations/accountingagedcreditorsone.ts +277 -0
- package/src/models/operations/accountingageddebtorsone.ts +273 -0
- package/src/models/operations/index.ts +2 -0
- package/src/sdk/accounting.ts +12 -0
- package/src/sdk/activities.ts +5 -2
- package/src/sdk/agedcreditors.ts +27 -0
- package/src/sdk/ageddebtors.ts +27 -0
- package/src/sdk/apideckcompanies.ts +5 -2
- package/src/sdk/apideckcustomers.ts +5 -2
- package/src/sdk/apideckdepartments.ts +5 -2
- package/src/sdk/apis.ts +5 -2
- package/src/sdk/applicants.ts +5 -2
- package/src/sdk/applications.ts +5 -2
- package/src/sdk/attachments.ts +8 -2
- package/src/sdk/billpayments.ts +8 -2
- package/src/sdk/bills.ts +5 -2
- package/src/sdk/collections.ts +8 -2
- package/src/sdk/collectiontags.ts +8 -3
- package/src/sdk/collectionticketcomments.ts +15 -4
- package/src/sdk/collectiontickets.ts +8 -2
- package/src/sdk/collectionusers.ts +8 -2
- package/src/sdk/companies.ts +5 -2
- package/src/sdk/connectors.ts +5 -2
- package/src/sdk/consumers.ts +5 -2
- package/src/sdk/contacts.ts +5 -2
- package/src/sdk/creditnotes.ts +8 -2
- package/src/sdk/customers.ts +5 -2
- package/src/sdk/departments.ts +8 -2
- package/src/sdk/drivegroups.ts +8 -2
- package/src/sdk/drives.ts +5 -2
- package/src/sdk/employees.ts +5 -2
- package/src/sdk/eventlogs.ts +5 -3
- package/src/sdk/expenses.ts +5 -2
- package/src/sdk/files.ts +5 -2
- package/src/sdk/invoiceitems.ts +8 -2
- package/src/sdk/invoices.ts +5 -2
- package/src/sdk/jobs.ts +3 -2
- package/src/sdk/journalentries.ts +8 -2
- package/src/sdk/leads.ts +3 -2
- package/src/sdk/ledgeraccounts.ts +8 -2
- package/src/sdk/locations.ts +5 -2
- package/src/sdk/logs.ts +5 -3
- package/src/sdk/messages.ts +5 -2
- package/src/sdk/notes.ts +3 -2
- package/src/sdk/opportunities.ts +5 -2
- package/src/sdk/orders.ts +5 -2
- package/src/sdk/payments.ts +5 -2
- package/src/sdk/pipelines.ts +5 -2
- package/src/sdk/products.ts +5 -2
- package/src/sdk/purchaseorders.ts +8 -2
- package/src/sdk/sharedlinks.ts +8 -2
- package/src/sdk/subsidiaries.ts +8 -2
- package/src/sdk/suppliers.ts +5 -2
- package/src/sdk/taxrates.ts +5 -2
- package/src/sdk/timeoffrequests.ts +5 -2
- package/src/sdk/trackingcategories.ts +8 -2
- package/src/sdk/users.ts +3 -2
- package/src/sdk/webhooks.ts +5 -2
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
BalanceByPeriod,
|
|
12
|
+
BalanceByPeriod$inboundSchema,
|
|
13
|
+
BalanceByPeriod$Outbound,
|
|
14
|
+
BalanceByPeriod$outboundSchema,
|
|
15
|
+
} from "./balancebyperiod.js";
|
|
16
|
+
import {
|
|
17
|
+
Currency,
|
|
18
|
+
Currency$inboundSchema,
|
|
19
|
+
Currency$outboundSchema,
|
|
20
|
+
} from "./currency.js";
|
|
21
|
+
|
|
22
|
+
export type OutstandingBalanceByCurrency = {
|
|
23
|
+
/**
|
|
24
|
+
* Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
|
|
25
|
+
*/
|
|
26
|
+
currency?: Currency | null | undefined;
|
|
27
|
+
balancesByPeriod?: Array<BalanceByPeriod> | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const OutstandingBalanceByCurrency$inboundSchema: z.ZodType<
|
|
32
|
+
OutstandingBalanceByCurrency,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({
|
|
36
|
+
currency: z.nullable(Currency$inboundSchema).optional(),
|
|
37
|
+
balances_by_period: z.array(BalanceByPeriod$inboundSchema).optional(),
|
|
38
|
+
}).transform((v) => {
|
|
39
|
+
return remap$(v, {
|
|
40
|
+
"balances_by_period": "balancesByPeriod",
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type OutstandingBalanceByCurrency$Outbound = {
|
|
46
|
+
currency?: string | null | undefined;
|
|
47
|
+
balances_by_period?: Array<BalanceByPeriod$Outbound> | undefined;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const OutstandingBalanceByCurrency$outboundSchema: z.ZodType<
|
|
52
|
+
OutstandingBalanceByCurrency$Outbound,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
OutstandingBalanceByCurrency
|
|
55
|
+
> = z.object({
|
|
56
|
+
currency: z.nullable(Currency$outboundSchema).optional(),
|
|
57
|
+
balancesByPeriod: z.array(BalanceByPeriod$outboundSchema).optional(),
|
|
58
|
+
}).transform((v) => {
|
|
59
|
+
return remap$(v, {
|
|
60
|
+
balancesByPeriod: "balances_by_period",
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
+
*/
|
|
68
|
+
export namespace OutstandingBalanceByCurrency$ {
|
|
69
|
+
/** @deprecated use `OutstandingBalanceByCurrency$inboundSchema` instead. */
|
|
70
|
+
export const inboundSchema = OutstandingBalanceByCurrency$inboundSchema;
|
|
71
|
+
/** @deprecated use `OutstandingBalanceByCurrency$outboundSchema` instead. */
|
|
72
|
+
export const outboundSchema = OutstandingBalanceByCurrency$outboundSchema;
|
|
73
|
+
/** @deprecated use `OutstandingBalanceByCurrency$Outbound` instead. */
|
|
74
|
+
export type Outbound = OutstandingBalanceByCurrency$Outbound;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function outstandingBalanceByCurrencyToJSON(
|
|
78
|
+
outstandingBalanceByCurrency: OutstandingBalanceByCurrency,
|
|
79
|
+
): string {
|
|
80
|
+
return JSON.stringify(
|
|
81
|
+
OutstandingBalanceByCurrency$outboundSchema.parse(
|
|
82
|
+
outstandingBalanceByCurrency,
|
|
83
|
+
),
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function outstandingBalanceByCurrencyFromJSON(
|
|
88
|
+
jsonString: string,
|
|
89
|
+
): SafeParseResult<OutstandingBalanceByCurrency, SDKValidationError> {
|
|
90
|
+
return safeParse(
|
|
91
|
+
jsonString,
|
|
92
|
+
(x) => OutstandingBalanceByCurrency$inboundSchema.parse(JSON.parse(x)),
|
|
93
|
+
`Failed to parse 'OutstandingBalanceByCurrency' from JSON`,
|
|
94
|
+
);
|
|
95
|
+
}
|
|
@@ -0,0 +1,277 @@
|
|
|
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 * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type AccountingAgedCreditorsOneGlobals = {
|
|
13
|
+
/**
|
|
14
|
+
* ID of the consumer which you want to get or push data from
|
|
15
|
+
*/
|
|
16
|
+
consumerId?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The ID of your Unify application
|
|
19
|
+
*/
|
|
20
|
+
appId?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type AccountingAgedCreditorsOneRequest = {
|
|
24
|
+
/**
|
|
25
|
+
* Include raw response. Mostly used for debugging purposes
|
|
26
|
+
*/
|
|
27
|
+
raw?: boolean | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
|
|
30
|
+
*/
|
|
31
|
+
serviceId?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Apply filters
|
|
34
|
+
*/
|
|
35
|
+
filter?: components.AgedReportFilter | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads
|
|
38
|
+
*/
|
|
39
|
+
passThrough?: { [k: string]: any } | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded.
|
|
42
|
+
*/
|
|
43
|
+
fields?: string | null | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export type AccountingAgedCreditorsOneResponse = {
|
|
47
|
+
httpMeta: components.HTTPMetadata;
|
|
48
|
+
/**
|
|
49
|
+
* Aged Creditors
|
|
50
|
+
*/
|
|
51
|
+
getAgedCreditorsResponse?: components.GetAgedCreditorsResponse | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Unexpected error
|
|
54
|
+
*/
|
|
55
|
+
unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const AccountingAgedCreditorsOneGlobals$inboundSchema: z.ZodType<
|
|
60
|
+
AccountingAgedCreditorsOneGlobals,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
unknown
|
|
63
|
+
> = z.object({
|
|
64
|
+
consumerId: z.string().optional(),
|
|
65
|
+
appId: z.string().optional(),
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export type AccountingAgedCreditorsOneGlobals$Outbound = {
|
|
70
|
+
consumerId?: string | undefined;
|
|
71
|
+
appId?: string | undefined;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const AccountingAgedCreditorsOneGlobals$outboundSchema: z.ZodType<
|
|
76
|
+
AccountingAgedCreditorsOneGlobals$Outbound,
|
|
77
|
+
z.ZodTypeDef,
|
|
78
|
+
AccountingAgedCreditorsOneGlobals
|
|
79
|
+
> = z.object({
|
|
80
|
+
consumerId: z.string().optional(),
|
|
81
|
+
appId: z.string().optional(),
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
87
|
+
*/
|
|
88
|
+
export namespace AccountingAgedCreditorsOneGlobals$ {
|
|
89
|
+
/** @deprecated use `AccountingAgedCreditorsOneGlobals$inboundSchema` instead. */
|
|
90
|
+
export const inboundSchema = AccountingAgedCreditorsOneGlobals$inboundSchema;
|
|
91
|
+
/** @deprecated use `AccountingAgedCreditorsOneGlobals$outboundSchema` instead. */
|
|
92
|
+
export const outboundSchema =
|
|
93
|
+
AccountingAgedCreditorsOneGlobals$outboundSchema;
|
|
94
|
+
/** @deprecated use `AccountingAgedCreditorsOneGlobals$Outbound` instead. */
|
|
95
|
+
export type Outbound = AccountingAgedCreditorsOneGlobals$Outbound;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function accountingAgedCreditorsOneGlobalsToJSON(
|
|
99
|
+
accountingAgedCreditorsOneGlobals: AccountingAgedCreditorsOneGlobals,
|
|
100
|
+
): string {
|
|
101
|
+
return JSON.stringify(
|
|
102
|
+
AccountingAgedCreditorsOneGlobals$outboundSchema.parse(
|
|
103
|
+
accountingAgedCreditorsOneGlobals,
|
|
104
|
+
),
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function accountingAgedCreditorsOneGlobalsFromJSON(
|
|
109
|
+
jsonString: string,
|
|
110
|
+
): SafeParseResult<AccountingAgedCreditorsOneGlobals, SDKValidationError> {
|
|
111
|
+
return safeParse(
|
|
112
|
+
jsonString,
|
|
113
|
+
(x) => AccountingAgedCreditorsOneGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
114
|
+
`Failed to parse 'AccountingAgedCreditorsOneGlobals' from JSON`,
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/** @internal */
|
|
119
|
+
export const AccountingAgedCreditorsOneRequest$inboundSchema: z.ZodType<
|
|
120
|
+
AccountingAgedCreditorsOneRequest,
|
|
121
|
+
z.ZodTypeDef,
|
|
122
|
+
unknown
|
|
123
|
+
> = z.object({
|
|
124
|
+
raw: z.boolean().default(false),
|
|
125
|
+
serviceId: z.string().optional(),
|
|
126
|
+
filter: components.AgedReportFilter$inboundSchema.optional(),
|
|
127
|
+
pass_through: z.record(z.any()).optional(),
|
|
128
|
+
fields: z.nullable(z.string()).optional(),
|
|
129
|
+
}).transform((v) => {
|
|
130
|
+
return remap$(v, {
|
|
131
|
+
"pass_through": "passThrough",
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
/** @internal */
|
|
136
|
+
export type AccountingAgedCreditorsOneRequest$Outbound = {
|
|
137
|
+
raw: boolean;
|
|
138
|
+
serviceId?: string | undefined;
|
|
139
|
+
filter?: components.AgedReportFilter$Outbound | undefined;
|
|
140
|
+
pass_through?: { [k: string]: any } | undefined;
|
|
141
|
+
fields?: string | null | undefined;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
/** @internal */
|
|
145
|
+
export const AccountingAgedCreditorsOneRequest$outboundSchema: z.ZodType<
|
|
146
|
+
AccountingAgedCreditorsOneRequest$Outbound,
|
|
147
|
+
z.ZodTypeDef,
|
|
148
|
+
AccountingAgedCreditorsOneRequest
|
|
149
|
+
> = z.object({
|
|
150
|
+
raw: z.boolean().default(false),
|
|
151
|
+
serviceId: z.string().optional(),
|
|
152
|
+
filter: components.AgedReportFilter$outboundSchema.optional(),
|
|
153
|
+
passThrough: z.record(z.any()).optional(),
|
|
154
|
+
fields: z.nullable(z.string()).optional(),
|
|
155
|
+
}).transform((v) => {
|
|
156
|
+
return remap$(v, {
|
|
157
|
+
passThrough: "pass_through",
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @internal
|
|
163
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
164
|
+
*/
|
|
165
|
+
export namespace AccountingAgedCreditorsOneRequest$ {
|
|
166
|
+
/** @deprecated use `AccountingAgedCreditorsOneRequest$inboundSchema` instead. */
|
|
167
|
+
export const inboundSchema = AccountingAgedCreditorsOneRequest$inboundSchema;
|
|
168
|
+
/** @deprecated use `AccountingAgedCreditorsOneRequest$outboundSchema` instead. */
|
|
169
|
+
export const outboundSchema =
|
|
170
|
+
AccountingAgedCreditorsOneRequest$outboundSchema;
|
|
171
|
+
/** @deprecated use `AccountingAgedCreditorsOneRequest$Outbound` instead. */
|
|
172
|
+
export type Outbound = AccountingAgedCreditorsOneRequest$Outbound;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export function accountingAgedCreditorsOneRequestToJSON(
|
|
176
|
+
accountingAgedCreditorsOneRequest: AccountingAgedCreditorsOneRequest,
|
|
177
|
+
): string {
|
|
178
|
+
return JSON.stringify(
|
|
179
|
+
AccountingAgedCreditorsOneRequest$outboundSchema.parse(
|
|
180
|
+
accountingAgedCreditorsOneRequest,
|
|
181
|
+
),
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export function accountingAgedCreditorsOneRequestFromJSON(
|
|
186
|
+
jsonString: string,
|
|
187
|
+
): SafeParseResult<AccountingAgedCreditorsOneRequest, SDKValidationError> {
|
|
188
|
+
return safeParse(
|
|
189
|
+
jsonString,
|
|
190
|
+
(x) => AccountingAgedCreditorsOneRequest$inboundSchema.parse(JSON.parse(x)),
|
|
191
|
+
`Failed to parse 'AccountingAgedCreditorsOneRequest' from JSON`,
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/** @internal */
|
|
196
|
+
export const AccountingAgedCreditorsOneResponse$inboundSchema: z.ZodType<
|
|
197
|
+
AccountingAgedCreditorsOneResponse,
|
|
198
|
+
z.ZodTypeDef,
|
|
199
|
+
unknown
|
|
200
|
+
> = z.object({
|
|
201
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
202
|
+
GetAgedCreditorsResponse: components.GetAgedCreditorsResponse$inboundSchema
|
|
203
|
+
.optional(),
|
|
204
|
+
UnexpectedErrorResponse: components.UnexpectedErrorResponse$inboundSchema
|
|
205
|
+
.optional(),
|
|
206
|
+
}).transform((v) => {
|
|
207
|
+
return remap$(v, {
|
|
208
|
+
"HttpMeta": "httpMeta",
|
|
209
|
+
"GetAgedCreditorsResponse": "getAgedCreditorsResponse",
|
|
210
|
+
"UnexpectedErrorResponse": "unexpectedErrorResponse",
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
/** @internal */
|
|
215
|
+
export type AccountingAgedCreditorsOneResponse$Outbound = {
|
|
216
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
217
|
+
GetAgedCreditorsResponse?:
|
|
218
|
+
| components.GetAgedCreditorsResponse$Outbound
|
|
219
|
+
| undefined;
|
|
220
|
+
UnexpectedErrorResponse?:
|
|
221
|
+
| components.UnexpectedErrorResponse$Outbound
|
|
222
|
+
| undefined;
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
/** @internal */
|
|
226
|
+
export const AccountingAgedCreditorsOneResponse$outboundSchema: z.ZodType<
|
|
227
|
+
AccountingAgedCreditorsOneResponse$Outbound,
|
|
228
|
+
z.ZodTypeDef,
|
|
229
|
+
AccountingAgedCreditorsOneResponse
|
|
230
|
+
> = z.object({
|
|
231
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
232
|
+
getAgedCreditorsResponse: components.GetAgedCreditorsResponse$outboundSchema
|
|
233
|
+
.optional(),
|
|
234
|
+
unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema
|
|
235
|
+
.optional(),
|
|
236
|
+
}).transform((v) => {
|
|
237
|
+
return remap$(v, {
|
|
238
|
+
httpMeta: "HttpMeta",
|
|
239
|
+
getAgedCreditorsResponse: "GetAgedCreditorsResponse",
|
|
240
|
+
unexpectedErrorResponse: "UnexpectedErrorResponse",
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* @internal
|
|
246
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
247
|
+
*/
|
|
248
|
+
export namespace AccountingAgedCreditorsOneResponse$ {
|
|
249
|
+
/** @deprecated use `AccountingAgedCreditorsOneResponse$inboundSchema` instead. */
|
|
250
|
+
export const inboundSchema = AccountingAgedCreditorsOneResponse$inboundSchema;
|
|
251
|
+
/** @deprecated use `AccountingAgedCreditorsOneResponse$outboundSchema` instead. */
|
|
252
|
+
export const outboundSchema =
|
|
253
|
+
AccountingAgedCreditorsOneResponse$outboundSchema;
|
|
254
|
+
/** @deprecated use `AccountingAgedCreditorsOneResponse$Outbound` instead. */
|
|
255
|
+
export type Outbound = AccountingAgedCreditorsOneResponse$Outbound;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export function accountingAgedCreditorsOneResponseToJSON(
|
|
259
|
+
accountingAgedCreditorsOneResponse: AccountingAgedCreditorsOneResponse,
|
|
260
|
+
): string {
|
|
261
|
+
return JSON.stringify(
|
|
262
|
+
AccountingAgedCreditorsOneResponse$outboundSchema.parse(
|
|
263
|
+
accountingAgedCreditorsOneResponse,
|
|
264
|
+
),
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export function accountingAgedCreditorsOneResponseFromJSON(
|
|
269
|
+
jsonString: string,
|
|
270
|
+
): SafeParseResult<AccountingAgedCreditorsOneResponse, SDKValidationError> {
|
|
271
|
+
return safeParse(
|
|
272
|
+
jsonString,
|
|
273
|
+
(x) =>
|
|
274
|
+
AccountingAgedCreditorsOneResponse$inboundSchema.parse(JSON.parse(x)),
|
|
275
|
+
`Failed to parse 'AccountingAgedCreditorsOneResponse' from JSON`,
|
|
276
|
+
);
|
|
277
|
+
}
|
|
@@ -0,0 +1,273 @@
|
|
|
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 * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type AccountingAgedDebtorsOneGlobals = {
|
|
13
|
+
/**
|
|
14
|
+
* ID of the consumer which you want to get or push data from
|
|
15
|
+
*/
|
|
16
|
+
consumerId?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The ID of your Unify application
|
|
19
|
+
*/
|
|
20
|
+
appId?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type AccountingAgedDebtorsOneRequest = {
|
|
24
|
+
/**
|
|
25
|
+
* Include raw response. Mostly used for debugging purposes
|
|
26
|
+
*/
|
|
27
|
+
raw?: boolean | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
|
|
30
|
+
*/
|
|
31
|
+
serviceId?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Apply filters
|
|
34
|
+
*/
|
|
35
|
+
filter?: components.AgedReportFilter | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads
|
|
38
|
+
*/
|
|
39
|
+
passThrough?: { [k: string]: any } | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded.
|
|
42
|
+
*/
|
|
43
|
+
fields?: string | null | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export type AccountingAgedDebtorsOneResponse = {
|
|
47
|
+
httpMeta: components.HTTPMetadata;
|
|
48
|
+
/**
|
|
49
|
+
* Aged Debtors
|
|
50
|
+
*/
|
|
51
|
+
getAgedDebtorsResponse?: components.GetAgedDebtorsResponse | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Unexpected error
|
|
54
|
+
*/
|
|
55
|
+
unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const AccountingAgedDebtorsOneGlobals$inboundSchema: z.ZodType<
|
|
60
|
+
AccountingAgedDebtorsOneGlobals,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
unknown
|
|
63
|
+
> = z.object({
|
|
64
|
+
consumerId: z.string().optional(),
|
|
65
|
+
appId: z.string().optional(),
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export type AccountingAgedDebtorsOneGlobals$Outbound = {
|
|
70
|
+
consumerId?: string | undefined;
|
|
71
|
+
appId?: string | undefined;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const AccountingAgedDebtorsOneGlobals$outboundSchema: z.ZodType<
|
|
76
|
+
AccountingAgedDebtorsOneGlobals$Outbound,
|
|
77
|
+
z.ZodTypeDef,
|
|
78
|
+
AccountingAgedDebtorsOneGlobals
|
|
79
|
+
> = z.object({
|
|
80
|
+
consumerId: z.string().optional(),
|
|
81
|
+
appId: z.string().optional(),
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
87
|
+
*/
|
|
88
|
+
export namespace AccountingAgedDebtorsOneGlobals$ {
|
|
89
|
+
/** @deprecated use `AccountingAgedDebtorsOneGlobals$inboundSchema` instead. */
|
|
90
|
+
export const inboundSchema = AccountingAgedDebtorsOneGlobals$inboundSchema;
|
|
91
|
+
/** @deprecated use `AccountingAgedDebtorsOneGlobals$outboundSchema` instead. */
|
|
92
|
+
export const outboundSchema = AccountingAgedDebtorsOneGlobals$outboundSchema;
|
|
93
|
+
/** @deprecated use `AccountingAgedDebtorsOneGlobals$Outbound` instead. */
|
|
94
|
+
export type Outbound = AccountingAgedDebtorsOneGlobals$Outbound;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function accountingAgedDebtorsOneGlobalsToJSON(
|
|
98
|
+
accountingAgedDebtorsOneGlobals: AccountingAgedDebtorsOneGlobals,
|
|
99
|
+
): string {
|
|
100
|
+
return JSON.stringify(
|
|
101
|
+
AccountingAgedDebtorsOneGlobals$outboundSchema.parse(
|
|
102
|
+
accountingAgedDebtorsOneGlobals,
|
|
103
|
+
),
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function accountingAgedDebtorsOneGlobalsFromJSON(
|
|
108
|
+
jsonString: string,
|
|
109
|
+
): SafeParseResult<AccountingAgedDebtorsOneGlobals, SDKValidationError> {
|
|
110
|
+
return safeParse(
|
|
111
|
+
jsonString,
|
|
112
|
+
(x) => AccountingAgedDebtorsOneGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
113
|
+
`Failed to parse 'AccountingAgedDebtorsOneGlobals' from JSON`,
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export const AccountingAgedDebtorsOneRequest$inboundSchema: z.ZodType<
|
|
119
|
+
AccountingAgedDebtorsOneRequest,
|
|
120
|
+
z.ZodTypeDef,
|
|
121
|
+
unknown
|
|
122
|
+
> = z.object({
|
|
123
|
+
raw: z.boolean().default(false),
|
|
124
|
+
serviceId: z.string().optional(),
|
|
125
|
+
filter: components.AgedReportFilter$inboundSchema.optional(),
|
|
126
|
+
pass_through: z.record(z.any()).optional(),
|
|
127
|
+
fields: z.nullable(z.string()).optional(),
|
|
128
|
+
}).transform((v) => {
|
|
129
|
+
return remap$(v, {
|
|
130
|
+
"pass_through": "passThrough",
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
/** @internal */
|
|
135
|
+
export type AccountingAgedDebtorsOneRequest$Outbound = {
|
|
136
|
+
raw: boolean;
|
|
137
|
+
serviceId?: string | undefined;
|
|
138
|
+
filter?: components.AgedReportFilter$Outbound | undefined;
|
|
139
|
+
pass_through?: { [k: string]: any } | undefined;
|
|
140
|
+
fields?: string | null | undefined;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
/** @internal */
|
|
144
|
+
export const AccountingAgedDebtorsOneRequest$outboundSchema: z.ZodType<
|
|
145
|
+
AccountingAgedDebtorsOneRequest$Outbound,
|
|
146
|
+
z.ZodTypeDef,
|
|
147
|
+
AccountingAgedDebtorsOneRequest
|
|
148
|
+
> = z.object({
|
|
149
|
+
raw: z.boolean().default(false),
|
|
150
|
+
serviceId: z.string().optional(),
|
|
151
|
+
filter: components.AgedReportFilter$outboundSchema.optional(),
|
|
152
|
+
passThrough: z.record(z.any()).optional(),
|
|
153
|
+
fields: z.nullable(z.string()).optional(),
|
|
154
|
+
}).transform((v) => {
|
|
155
|
+
return remap$(v, {
|
|
156
|
+
passThrough: "pass_through",
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @internal
|
|
162
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
163
|
+
*/
|
|
164
|
+
export namespace AccountingAgedDebtorsOneRequest$ {
|
|
165
|
+
/** @deprecated use `AccountingAgedDebtorsOneRequest$inboundSchema` instead. */
|
|
166
|
+
export const inboundSchema = AccountingAgedDebtorsOneRequest$inboundSchema;
|
|
167
|
+
/** @deprecated use `AccountingAgedDebtorsOneRequest$outboundSchema` instead. */
|
|
168
|
+
export const outboundSchema = AccountingAgedDebtorsOneRequest$outboundSchema;
|
|
169
|
+
/** @deprecated use `AccountingAgedDebtorsOneRequest$Outbound` instead. */
|
|
170
|
+
export type Outbound = AccountingAgedDebtorsOneRequest$Outbound;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export function accountingAgedDebtorsOneRequestToJSON(
|
|
174
|
+
accountingAgedDebtorsOneRequest: AccountingAgedDebtorsOneRequest,
|
|
175
|
+
): string {
|
|
176
|
+
return JSON.stringify(
|
|
177
|
+
AccountingAgedDebtorsOneRequest$outboundSchema.parse(
|
|
178
|
+
accountingAgedDebtorsOneRequest,
|
|
179
|
+
),
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export function accountingAgedDebtorsOneRequestFromJSON(
|
|
184
|
+
jsonString: string,
|
|
185
|
+
): SafeParseResult<AccountingAgedDebtorsOneRequest, SDKValidationError> {
|
|
186
|
+
return safeParse(
|
|
187
|
+
jsonString,
|
|
188
|
+
(x) => AccountingAgedDebtorsOneRequest$inboundSchema.parse(JSON.parse(x)),
|
|
189
|
+
`Failed to parse 'AccountingAgedDebtorsOneRequest' from JSON`,
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/** @internal */
|
|
194
|
+
export const AccountingAgedDebtorsOneResponse$inboundSchema: z.ZodType<
|
|
195
|
+
AccountingAgedDebtorsOneResponse,
|
|
196
|
+
z.ZodTypeDef,
|
|
197
|
+
unknown
|
|
198
|
+
> = z.object({
|
|
199
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
200
|
+
GetAgedDebtorsResponse: components.GetAgedDebtorsResponse$inboundSchema
|
|
201
|
+
.optional(),
|
|
202
|
+
UnexpectedErrorResponse: components.UnexpectedErrorResponse$inboundSchema
|
|
203
|
+
.optional(),
|
|
204
|
+
}).transform((v) => {
|
|
205
|
+
return remap$(v, {
|
|
206
|
+
"HttpMeta": "httpMeta",
|
|
207
|
+
"GetAgedDebtorsResponse": "getAgedDebtorsResponse",
|
|
208
|
+
"UnexpectedErrorResponse": "unexpectedErrorResponse",
|
|
209
|
+
});
|
|
210
|
+
});
|
|
211
|
+
|
|
212
|
+
/** @internal */
|
|
213
|
+
export type AccountingAgedDebtorsOneResponse$Outbound = {
|
|
214
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
215
|
+
GetAgedDebtorsResponse?:
|
|
216
|
+
| components.GetAgedDebtorsResponse$Outbound
|
|
217
|
+
| undefined;
|
|
218
|
+
UnexpectedErrorResponse?:
|
|
219
|
+
| components.UnexpectedErrorResponse$Outbound
|
|
220
|
+
| undefined;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
/** @internal */
|
|
224
|
+
export const AccountingAgedDebtorsOneResponse$outboundSchema: z.ZodType<
|
|
225
|
+
AccountingAgedDebtorsOneResponse$Outbound,
|
|
226
|
+
z.ZodTypeDef,
|
|
227
|
+
AccountingAgedDebtorsOneResponse
|
|
228
|
+
> = z.object({
|
|
229
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
230
|
+
getAgedDebtorsResponse: components.GetAgedDebtorsResponse$outboundSchema
|
|
231
|
+
.optional(),
|
|
232
|
+
unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema
|
|
233
|
+
.optional(),
|
|
234
|
+
}).transform((v) => {
|
|
235
|
+
return remap$(v, {
|
|
236
|
+
httpMeta: "HttpMeta",
|
|
237
|
+
getAgedDebtorsResponse: "GetAgedDebtorsResponse",
|
|
238
|
+
unexpectedErrorResponse: "UnexpectedErrorResponse",
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* @internal
|
|
244
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
245
|
+
*/
|
|
246
|
+
export namespace AccountingAgedDebtorsOneResponse$ {
|
|
247
|
+
/** @deprecated use `AccountingAgedDebtorsOneResponse$inboundSchema` instead. */
|
|
248
|
+
export const inboundSchema = AccountingAgedDebtorsOneResponse$inboundSchema;
|
|
249
|
+
/** @deprecated use `AccountingAgedDebtorsOneResponse$outboundSchema` instead. */
|
|
250
|
+
export const outboundSchema = AccountingAgedDebtorsOneResponse$outboundSchema;
|
|
251
|
+
/** @deprecated use `AccountingAgedDebtorsOneResponse$Outbound` instead. */
|
|
252
|
+
export type Outbound = AccountingAgedDebtorsOneResponse$Outbound;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export function accountingAgedDebtorsOneResponseToJSON(
|
|
256
|
+
accountingAgedDebtorsOneResponse: AccountingAgedDebtorsOneResponse,
|
|
257
|
+
): string {
|
|
258
|
+
return JSON.stringify(
|
|
259
|
+
AccountingAgedDebtorsOneResponse$outboundSchema.parse(
|
|
260
|
+
accountingAgedDebtorsOneResponse,
|
|
261
|
+
),
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export function accountingAgedDebtorsOneResponseFromJSON(
|
|
266
|
+
jsonString: string,
|
|
267
|
+
): SafeParseResult<AccountingAgedDebtorsOneResponse, SDKValidationError> {
|
|
268
|
+
return safeParse(
|
|
269
|
+
jsonString,
|
|
270
|
+
(x) => AccountingAgedDebtorsOneResponse$inboundSchema.parse(JSON.parse(x)),
|
|
271
|
+
`Failed to parse 'AccountingAgedDebtorsOneResponse' from JSON`,
|
|
272
|
+
);
|
|
273
|
+
}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
export * from "./accountingagedcreditorsone.js";
|
|
6
|
+
export * from "./accountingageddebtorsone.js";
|
|
5
7
|
export * from "./accountingattachmentsall.js";
|
|
6
8
|
export * from "./accountingattachmentsdelete.js";
|
|
7
9
|
export * from "./accountingattachmentsdownload.js";
|
package/src/sdk/accounting.ts
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { ClientSDK } from "../lib/sdks.js";
|
|
6
|
+
import { AgedCreditors } from "./agedcreditors.js";
|
|
7
|
+
import { AgedDebtors } from "./ageddebtors.js";
|
|
6
8
|
import { Attachments } from "./attachments.js";
|
|
7
9
|
import { BalanceSheet } from "./balancesheet.js";
|
|
8
10
|
import { BillPayments } from "./billpayments.js";
|
|
@@ -130,4 +132,14 @@ export class Accounting extends ClientSDK {
|
|
|
130
132
|
get expenses(): Expenses {
|
|
131
133
|
return (this._expenses ??= new Expenses(this._options));
|
|
132
134
|
}
|
|
135
|
+
|
|
136
|
+
private _agedCreditors?: AgedCreditors;
|
|
137
|
+
get agedCreditors(): AgedCreditors {
|
|
138
|
+
return (this._agedCreditors ??= new AgedCreditors(this._options));
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
private _agedDebtors?: AgedDebtors;
|
|
142
|
+
get agedDebtors(): AgedDebtors {
|
|
143
|
+
return (this._agedDebtors ??= new AgedDebtors(this._options));
|
|
144
|
+
}
|
|
133
145
|
}
|
package/src/sdk/activities.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { crmActivitiesUpdate } from "../funcs/crmActivitiesUpdate.js";
|
|
|
10
10
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
11
|
import * as operations from "../models/operations/index.js";
|
|
12
12
|
import { unwrapAsync } from "../types/fp.js";
|
|
13
|
+
import { PageIterator, unwrapResultIterator } from "../types/operations.js";
|
|
13
14
|
|
|
14
15
|
export class Activities extends ClientSDK {
|
|
15
16
|
/**
|
|
@@ -21,8 +22,10 @@ export class Activities extends ClientSDK {
|
|
|
21
22
|
async list(
|
|
22
23
|
request: operations.CrmActivitiesAllRequest,
|
|
23
24
|
options?: RequestOptions,
|
|
24
|
-
): Promise<
|
|
25
|
-
|
|
25
|
+
): Promise<
|
|
26
|
+
PageIterator<operations.CrmActivitiesAllResponse, { cursor: string }>
|
|
27
|
+
> {
|
|
28
|
+
return unwrapResultIterator(crmActivitiesList(
|
|
26
29
|
this,
|
|
27
30
|
request,
|
|
28
31
|
options,
|