@apideck/unify 0.42.0 → 0.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/funcs/accountingAttachmentsList.d.ts.map +1 -1
- package/funcs/accountingAttachmentsList.js +1 -2
- package/funcs/accountingAttachmentsList.js.map +1 -1
- package/funcs/accountingBankAccountsList.d.ts.map +1 -1
- package/funcs/accountingBankAccountsList.js +1 -2
- package/funcs/accountingBankAccountsList.js.map +1 -1
- package/funcs/accountingBankFeedAccountsList.d.ts.map +1 -1
- package/funcs/accountingBankFeedAccountsList.js +1 -2
- package/funcs/accountingBankFeedAccountsList.js.map +1 -1
- package/funcs/accountingBankFeedStatementsList.d.ts.map +1 -1
- package/funcs/accountingBankFeedStatementsList.js +1 -2
- package/funcs/accountingBankFeedStatementsList.js.map +1 -1
- package/funcs/accountingBillPaymentsList.d.ts.map +1 -1
- package/funcs/accountingBillPaymentsList.js +1 -2
- package/funcs/accountingBillPaymentsList.js.map +1 -1
- package/funcs/accountingBillsList.d.ts.map +1 -1
- package/funcs/accountingBillsList.js +1 -2
- package/funcs/accountingBillsList.js.map +1 -1
- package/funcs/accountingCategoriesList.d.ts.map +1 -1
- package/funcs/accountingCategoriesList.js +1 -2
- package/funcs/accountingCategoriesList.js.map +1 -1
- package/funcs/accountingCompaniesList.d.ts.map +1 -1
- package/funcs/accountingCompaniesList.js +1 -2
- package/funcs/accountingCompaniesList.js.map +1 -1
- package/funcs/accountingCreditNotesList.d.ts.map +1 -1
- package/funcs/accountingCreditNotesList.js +1 -2
- package/funcs/accountingCreditNotesList.js.map +1 -1
- package/funcs/accountingCustomersList.d.ts.map +1 -1
- package/funcs/accountingCustomersList.js +1 -2
- package/funcs/accountingCustomersList.js.map +1 -1
- package/funcs/accountingDepartmentsList.d.ts.map +1 -1
- package/funcs/accountingDepartmentsList.js +1 -2
- package/funcs/accountingDepartmentsList.js.map +1 -1
- package/funcs/accountingEmployeesList.d.ts.map +1 -1
- package/funcs/accountingEmployeesList.js +1 -2
- package/funcs/accountingEmployeesList.js.map +1 -1
- package/funcs/accountingExpenseCategoriesList.d.ts.map +1 -1
- package/funcs/accountingExpenseCategoriesList.js +1 -2
- package/funcs/accountingExpenseCategoriesList.js.map +1 -1
- package/funcs/accountingExpenseReportsList.d.ts.map +1 -1
- package/funcs/accountingExpenseReportsList.js +1 -2
- package/funcs/accountingExpenseReportsList.js.map +1 -1
- package/funcs/accountingExpensesList.d.ts.map +1 -1
- package/funcs/accountingExpensesList.js +1 -2
- package/funcs/accountingExpensesList.js.map +1 -1
- package/funcs/accountingGeneralLedgerTransactionsGet.d.ts +18 -0
- package/funcs/accountingGeneralLedgerTransactionsGet.d.ts.map +1 -0
- package/funcs/accountingGeneralLedgerTransactionsGet.js +144 -0
- package/funcs/accountingGeneralLedgerTransactionsGet.js.map +1 -0
- package/funcs/accountingGeneralLedgerTransactionsList.d.ts +21 -0
- package/funcs/accountingGeneralLedgerTransactionsList.d.ts.map +1 -0
- package/funcs/accountingGeneralLedgerTransactionsList.js +168 -0
- package/funcs/accountingGeneralLedgerTransactionsList.js.map +1 -0
- package/funcs/accountingInvoiceItemsList.d.ts.map +1 -1
- package/funcs/accountingInvoiceItemsList.js +1 -2
- package/funcs/accountingInvoiceItemsList.js.map +1 -1
- package/funcs/accountingInvoicesList.d.ts.map +1 -1
- package/funcs/accountingInvoicesList.js +1 -2
- package/funcs/accountingInvoicesList.js.map +1 -1
- package/funcs/accountingJournalEntriesList.d.ts.map +1 -1
- package/funcs/accountingJournalEntriesList.js +1 -2
- package/funcs/accountingJournalEntriesList.js.map +1 -1
- package/funcs/accountingLedgerAccountsList.d.ts.map +1 -1
- package/funcs/accountingLedgerAccountsList.js +1 -2
- package/funcs/accountingLedgerAccountsList.js.map +1 -1
- package/funcs/accountingLocationsList.d.ts.map +1 -1
- package/funcs/accountingLocationsList.js +1 -2
- package/funcs/accountingLocationsList.js.map +1 -1
- package/funcs/accountingPaymentsList.d.ts.map +1 -1
- package/funcs/accountingPaymentsList.js +1 -2
- package/funcs/accountingPaymentsList.js.map +1 -1
- package/funcs/accountingProjectsList.d.ts.map +1 -1
- package/funcs/accountingProjectsList.js +1 -2
- package/funcs/accountingProjectsList.js.map +1 -1
- package/funcs/accountingPurchaseOrdersList.d.ts.map +1 -1
- package/funcs/accountingPurchaseOrdersList.js +1 -2
- package/funcs/accountingPurchaseOrdersList.js.map +1 -1
- package/funcs/accountingQuotesList.d.ts.map +1 -1
- package/funcs/accountingQuotesList.js +5 -4
- package/funcs/accountingQuotesList.js.map +1 -1
- package/funcs/accountingRefundsList.d.ts.map +1 -1
- package/funcs/accountingRefundsList.js +1 -2
- package/funcs/accountingRefundsList.js.map +1 -1
- package/funcs/accountingSubsidiariesList.d.ts.map +1 -1
- package/funcs/accountingSubsidiariesList.js +1 -2
- package/funcs/accountingSubsidiariesList.js.map +1 -1
- package/funcs/accountingSuppliersList.d.ts.map +1 -1
- package/funcs/accountingSuppliersList.js +1 -2
- package/funcs/accountingSuppliersList.js.map +1 -1
- package/funcs/accountingTaxRatesList.d.ts.map +1 -1
- package/funcs/accountingTaxRatesList.js +1 -2
- package/funcs/accountingTaxRatesList.js.map +1 -1
- package/funcs/accountingTrackingCategoriesList.d.ts.map +1 -1
- package/funcs/accountingTrackingCategoriesList.js +1 -2
- package/funcs/accountingTrackingCategoriesList.js.map +1 -1
- package/funcs/atsApplicantsList.d.ts.map +1 -1
- package/funcs/atsApplicantsList.js +1 -2
- package/funcs/atsApplicantsList.js.map +1 -1
- package/funcs/atsApplicationsList.d.ts.map +1 -1
- package/funcs/atsApplicationsList.js +1 -2
- package/funcs/atsApplicationsList.js.map +1 -1
- package/funcs/atsJobsList.d.ts.map +1 -1
- package/funcs/atsJobsList.js +1 -2
- package/funcs/atsJobsList.js.map +1 -1
- package/funcs/connectorApisList.d.ts.map +1 -1
- package/funcs/connectorApisList.js +1 -2
- package/funcs/connectorApisList.js.map +1 -1
- package/funcs/connectorConnectorsList.d.ts.map +1 -1
- package/funcs/connectorConnectorsList.js +1 -2
- package/funcs/connectorConnectorsList.js.map +1 -1
- package/funcs/crmActivitiesList.d.ts.map +1 -1
- package/funcs/crmActivitiesList.js +1 -2
- package/funcs/crmActivitiesList.js.map +1 -1
- package/funcs/crmCompaniesList.d.ts.map +1 -1
- package/funcs/crmCompaniesList.js +1 -2
- package/funcs/crmCompaniesList.js.map +1 -1
- package/funcs/crmContactsList.d.ts.map +1 -1
- package/funcs/crmContactsList.js +1 -2
- package/funcs/crmContactsList.js.map +1 -1
- package/funcs/crmCustomObjectSchemasList.d.ts.map +1 -1
- package/funcs/crmCustomObjectSchemasList.js +1 -2
- package/funcs/crmCustomObjectSchemasList.js.map +1 -1
- package/funcs/crmCustomObjectsList.d.ts.map +1 -1
- package/funcs/crmCustomObjectsList.js +1 -2
- package/funcs/crmCustomObjectsList.js.map +1 -1
- package/funcs/crmLeadsList.d.ts.map +1 -1
- package/funcs/crmLeadsList.js +1 -2
- package/funcs/crmLeadsList.js.map +1 -1
- package/funcs/crmNotesList.d.ts.map +1 -1
- package/funcs/crmNotesList.js +2 -2
- package/funcs/crmNotesList.js.map +1 -1
- package/funcs/crmOpportunitiesList.d.ts.map +1 -1
- package/funcs/crmOpportunitiesList.js +1 -2
- package/funcs/crmOpportunitiesList.js.map +1 -1
- package/funcs/crmPipelinesList.d.ts.map +1 -1
- package/funcs/crmPipelinesList.js +1 -2
- package/funcs/crmPipelinesList.js.map +1 -1
- package/funcs/crmUsersList.d.ts.map +1 -1
- package/funcs/crmUsersList.js +2 -2
- package/funcs/crmUsersList.js.map +1 -1
- package/funcs/ecommerceCustomersList.d.ts.map +1 -1
- package/funcs/ecommerceCustomersList.js +1 -2
- package/funcs/ecommerceCustomersList.js.map +1 -1
- package/funcs/ecommerceOrdersList.d.ts.map +1 -1
- package/funcs/ecommerceOrdersList.js +1 -2
- package/funcs/ecommerceOrdersList.js.map +1 -1
- package/funcs/ecommerceProductsList.d.ts.map +1 -1
- package/funcs/ecommerceProductsList.js +1 -2
- package/funcs/ecommerceProductsList.js.map +1 -1
- package/funcs/fileStorageDriveGroupsList.d.ts.map +1 -1
- package/funcs/fileStorageDriveGroupsList.js +1 -2
- package/funcs/fileStorageDriveGroupsList.js.map +1 -1
- package/funcs/fileStorageDrivesList.d.ts.map +1 -1
- package/funcs/fileStorageDrivesList.js +1 -2
- package/funcs/fileStorageDrivesList.js.map +1 -1
- package/funcs/fileStorageFilesList.d.ts.map +1 -1
- package/funcs/fileStorageFilesList.js +1 -2
- package/funcs/fileStorageFilesList.js.map +1 -1
- package/funcs/fileStorageSharedLinksList.d.ts.map +1 -1
- package/funcs/fileStorageSharedLinksList.js +1 -2
- package/funcs/fileStorageSharedLinksList.js.map +1 -1
- package/funcs/hrisCompaniesList.d.ts.map +1 -1
- package/funcs/hrisCompaniesList.js +1 -2
- package/funcs/hrisCompaniesList.js.map +1 -1
- package/funcs/hrisDepartmentsList.d.ts.map +1 -1
- package/funcs/hrisDepartmentsList.js +1 -2
- package/funcs/hrisDepartmentsList.js.map +1 -1
- package/funcs/hrisEmployeesList.d.ts.map +1 -1
- package/funcs/hrisEmployeesList.js +1 -2
- package/funcs/hrisEmployeesList.js.map +1 -1
- package/funcs/hrisTimeOffRequestsList.d.ts.map +1 -1
- package/funcs/hrisTimeOffRequestsList.js +1 -2
- package/funcs/hrisTimeOffRequestsList.js.map +1 -1
- package/funcs/issueTrackingCollectionTagsList.d.ts.map +1 -1
- package/funcs/issueTrackingCollectionTagsList.js +1 -2
- package/funcs/issueTrackingCollectionTagsList.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsGet.d.ts.map +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsGet.js +1 -2
- package/funcs/issueTrackingCollectionTicketCommentsGet.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsList.d.ts.map +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsList.js +1 -2
- package/funcs/issueTrackingCollectionTicketCommentsList.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketsList.d.ts.map +1 -1
- package/funcs/issueTrackingCollectionTicketsList.js +1 -2
- package/funcs/issueTrackingCollectionTicketsList.js.map +1 -1
- package/funcs/issueTrackingCollectionUsersList.d.ts.map +1 -1
- package/funcs/issueTrackingCollectionUsersList.js +1 -2
- package/funcs/issueTrackingCollectionUsersList.js.map +1 -1
- package/funcs/issueTrackingCollectionsList.d.ts.map +1 -1
- package/funcs/issueTrackingCollectionsList.js +1 -2
- package/funcs/issueTrackingCollectionsList.js.map +1 -1
- package/funcs/smsMessagesList.d.ts.map +1 -1
- package/funcs/smsMessagesList.js +1 -2
- package/funcs/smsMessagesList.js.map +1 -1
- package/funcs/vaultConsumersList.d.ts.map +1 -1
- package/funcs/vaultConsumersList.js +1 -2
- package/funcs/vaultConsumersList.js.map +1 -1
- package/funcs/vaultLogsList.d.ts.map +1 -1
- package/funcs/vaultLogsList.js +1 -2
- package/funcs/vaultLogsList.js.map +1 -1
- package/funcs/webhookEventLogsList.d.ts.map +1 -1
- package/funcs/webhookEventLogsList.js +1 -2
- package/funcs/webhookEventLogsList.js.map +1 -1
- package/funcs/webhookWebhooksList.d.ts.map +1 -1
- package/funcs/webhookWebhooksList.js +1 -2
- package/funcs/webhookWebhooksList.js.map +1 -1
- package/hooks/types.d.ts +1 -0
- package/hooks/types.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/encodings.js +12 -12
- package/lib/encodings.js.map +1 -1
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +3 -3
- package/lib/env.js.map +1 -1
- package/lib/matchers.js +2 -2
- package/lib/matchers.js.map +1 -1
- package/lib/primitives.d.ts +1 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +18 -0
- package/lib/primitives.js.map +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +50 -16
- package/lib/sdks.js.map +1 -1
- package/models/components/billsfilter.d.ts +5 -0
- package/models/components/billsfilter.d.ts.map +1 -1
- package/models/components/billsfilter.js +2 -0
- package/models/components/billsfilter.js.map +1 -1
- package/models/components/connection.d.ts +5 -0
- package/models/components/connection.d.ts.map +1 -1
- package/models/components/connection.js +3 -0
- package/models/components/connection.js.map +1 -1
- package/models/components/connectionhealth.d.ts +1 -0
- package/models/components/connectionhealth.d.ts.map +1 -1
- package/models/components/connectionhealth.js +1 -0
- package/models/components/connectionhealth.js.map +1 -1
- package/models/components/creditnotesfilter.d.ts +5 -0
- package/models/components/creditnotesfilter.d.ts.map +1 -1
- package/models/components/creditnotesfilter.js +2 -0
- package/models/components/creditnotesfilter.js.map +1 -1
- package/models/components/customersfilter.d.ts +5 -0
- package/models/components/customersfilter.d.ts.map +1 -1
- package/models/components/customersfilter.js +2 -0
- package/models/components/customersfilter.js.map +1 -1
- package/models/components/expensereportsfilter.d.ts +5 -0
- package/models/components/expensereportsfilter.d.ts.map +1 -1
- package/models/components/expensereportsfilter.js +2 -0
- package/models/components/expensereportsfilter.js.map +1 -1
- package/models/components/generalledgertransaction.d.ts +101 -0
- package/models/components/generalledgertransaction.d.ts.map +1 -0
- package/models/components/generalledgertransaction.js +104 -0
- package/models/components/generalledgertransaction.js.map +1 -0
- package/models/components/generalledgertransactionlineitem.d.ts +56 -0
- package/models/components/generalledgertransactionlineitem.d.ts.map +1 -0
- package/models/components/generalledgertransactionlineitem.js +82 -0
- package/models/components/generalledgertransactionlineitem.js.map +1 -0
- package/models/components/generalledgertransactionsfilter.d.ts +46 -0
- package/models/components/generalledgertransactionsfilter.d.ts.map +1 -0
- package/models/components/generalledgertransactionsfilter.js +75 -0
- package/models/components/generalledgertransactionsfilter.js.map +1 -0
- package/models/components/generalledgertransactionssort.d.ts +36 -0
- package/models/components/generalledgertransactionssort.d.ts.map +1 -0
- package/models/components/generalledgertransactionssort.js +62 -0
- package/models/components/generalledgertransactionssort.js.map +1 -0
- package/models/components/getgeneralledgertransactionresponse.d.ts +40 -0
- package/models/components/getgeneralledgertransactionresponse.d.ts.map +1 -0
- package/models/components/getgeneralledgertransactionresponse.js +64 -0
- package/models/components/getgeneralledgertransactionresponse.js.map +1 -0
- package/models/components/getgeneralledgertransactionsresponse.d.ts +50 -0
- package/models/components/getgeneralledgertransactionsresponse.d.ts.map +1 -0
- package/models/components/getgeneralledgertransactionsresponse.js +68 -0
- package/models/components/getgeneralledgertransactionsresponse.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/invoiceitemsfilter.d.ts +5 -0
- package/models/components/invoiceitemsfilter.d.ts.map +1 -1
- package/models/components/invoiceitemsfilter.js +2 -0
- package/models/components/invoiceitemsfilter.js.map +1 -1
- package/models/components/invoicesfilter.d.ts +5 -0
- package/models/components/invoicesfilter.d.ts.map +1 -1
- package/models/components/invoicesfilter.js +2 -0
- package/models/components/invoicesfilter.js.map +1 -1
- package/models/components/journalentriesfilter.d.ts +23 -0
- package/models/components/journalentriesfilter.d.ts.map +1 -1
- package/models/components/journalentriesfilter.js +13 -1
- package/models/components/journalentriesfilter.js.map +1 -1
- package/models/components/ledgeraccountsfilter.d.ts +5 -0
- package/models/components/ledgeraccountsfilter.d.ts.map +1 -1
- package/models/components/ledgeraccountsfilter.js +2 -0
- package/models/components/ledgeraccountsfilter.js.map +1 -1
- package/models/components/logsfilter.d.ts +49 -0
- package/models/components/logsfilter.d.ts.map +1 -1
- package/models/components/logsfilter.js +24 -1
- package/models/components/logsfilter.js.map +1 -1
- package/models/components/notesfilter.d.ts +24 -0
- package/models/components/notesfilter.d.ts.map +1 -0
- package/models/components/notesfilter.js +59 -0
- package/models/components/notesfilter.js.map +1 -0
- package/models/components/paymentsfilter.d.ts +5 -0
- package/models/components/paymentsfilter.d.ts.map +1 -1
- package/models/components/paymentsfilter.js +2 -0
- package/models/components/paymentsfilter.js.map +1 -1
- package/models/components/projectsfilter.d.ts +5 -0
- package/models/components/projectsfilter.d.ts.map +1 -1
- package/models/components/projectsfilter.js +2 -0
- package/models/components/projectsfilter.js.map +1 -1
- package/models/components/purchaseordersfilter.d.ts +5 -0
- package/models/components/purchaseordersfilter.d.ts.map +1 -1
- package/models/components/purchaseordersfilter.js +2 -0
- package/models/components/purchaseordersfilter.js.map +1 -1
- package/models/components/quotesfilter.d.ts +19 -0
- package/models/components/quotesfilter.d.ts.map +1 -0
- package/models/components/quotesfilter.js +57 -0
- package/models/components/quotesfilter.js.map +1 -0
- package/models/components/suppliersfilter.d.ts +5 -0
- package/models/components/suppliersfilter.d.ts.map +1 -1
- package/models/components/suppliersfilter.js +2 -0
- package/models/components/suppliersfilter.js.map +1 -1
- package/models/components/user.d.ts +4 -0
- package/models/components/user.d.ts.map +1 -1
- package/models/components/user.js +1 -0
- package/models/components/user.js.map +1 -1
- package/models/components/userinput.d.ts +5 -0
- package/models/components/userinput.d.ts.map +1 -1
- package/models/components/userinput.js +1 -0
- package/models/components/userinput.js.map +1 -1
- package/models/components/usersfilter.d.ts +20 -0
- package/models/components/usersfilter.d.ts.map +1 -0
- package/models/components/usersfilter.js +50 -0
- package/models/components/usersfilter.js.map +1 -0
- package/models/components/webhookeventtype.d.ts +2 -0
- package/models/components/webhookeventtype.d.ts.map +1 -1
- package/models/components/webhookeventtype.js +2 -0
- package/models/components/webhookeventtype.js.map +1 -1
- package/models/operations/accountinggeneralledgertransactionsall.d.ts +96 -0
- package/models/operations/accountinggeneralledgertransactionsall.d.ts.map +1 -0
- package/models/operations/accountinggeneralledgertransactionsall.js +84 -0
- package/models/operations/accountinggeneralledgertransactionsall.js.map +1 -0
- package/models/operations/accountinggeneralledgertransactionsone.d.ts +72 -0
- package/models/operations/accountinggeneralledgertransactionsone.d.ts.map +1 -0
- package/models/operations/accountinggeneralledgertransactionsone.js +75 -0
- package/models/operations/accountinggeneralledgertransactionsone.js.map +1 -0
- package/models/operations/accountingquotesall.d.ts +5 -0
- package/models/operations/accountingquotesall.d.ts.map +1 -1
- package/models/operations/accountingquotesall.js +1 -0
- package/models/operations/accountingquotesall.js.map +1 -1
- package/models/operations/crmnotesall.d.ts +5 -0
- package/models/operations/crmnotesall.d.ts.map +1 -1
- package/models/operations/crmnotesall.js +1 -0
- package/models/operations/crmnotesall.js.map +1 -1
- package/models/operations/crmusersall.d.ts +5 -0
- package/models/operations/crmusersall.d.ts.map +1 -1
- package/models/operations/crmusersall.js +1 -0
- package/models/operations/crmusersall.js.map +1 -1
- 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 +3 -0
- package/sdk/accounting.d.ts.map +1 -1
- package/sdk/accounting.js +4 -0
- package/sdk/accounting.js.map +1 -1
- package/sdk/generalledgertransactions.d.ts +22 -0
- package/sdk/generalledgertransactions.d.ts.map +1 -0
- package/sdk/generalledgertransactions.js +33 -0
- package/sdk/generalledgertransactions.js.map +1 -0
- package/src/__tests__/quotes.test.ts +5 -0
- package/src/funcs/accountingAttachmentsList.ts +5 -2
- package/src/funcs/accountingBankAccountsList.ts +5 -2
- package/src/funcs/accountingBankFeedAccountsList.ts +5 -2
- package/src/funcs/accountingBankFeedStatementsList.ts +5 -2
- package/src/funcs/accountingBillPaymentsList.ts +5 -2
- package/src/funcs/accountingBillsList.ts +5 -2
- package/src/funcs/accountingCategoriesList.ts +5 -2
- package/src/funcs/accountingCompaniesList.ts +5 -2
- package/src/funcs/accountingCreditNotesList.ts +5 -2
- package/src/funcs/accountingCustomersList.ts +5 -2
- package/src/funcs/accountingDepartmentsList.ts +5 -2
- package/src/funcs/accountingEmployeesList.ts +5 -2
- package/src/funcs/accountingExpenseCategoriesList.ts +5 -2
- package/src/funcs/accountingExpenseReportsList.ts +5 -2
- package/src/funcs/accountingExpensesList.ts +5 -2
- package/src/funcs/accountingGeneralLedgerTransactionsGet.ts +241 -0
- package/src/funcs/accountingGeneralLedgerTransactionsList.ts +316 -0
- package/src/funcs/accountingInvoiceItemsList.ts +5 -2
- package/src/funcs/accountingInvoicesList.ts +5 -2
- package/src/funcs/accountingJournalEntriesList.ts +5 -2
- package/src/funcs/accountingLedgerAccountsList.ts +5 -2
- package/src/funcs/accountingLocationsList.ts +5 -2
- package/src/funcs/accountingPaymentsList.ts +5 -2
- package/src/funcs/accountingProjectsList.ts +5 -2
- package/src/funcs/accountingPurchaseOrdersList.ts +5 -2
- package/src/funcs/accountingQuotesList.ts +21 -8
- package/src/funcs/accountingRefundsList.ts +5 -2
- package/src/funcs/accountingSubsidiariesList.ts +5 -2
- package/src/funcs/accountingSuppliersList.ts +5 -2
- package/src/funcs/accountingTaxRatesList.ts +5 -2
- package/src/funcs/accountingTrackingCategoriesList.ts +5 -2
- package/src/funcs/atsApplicantsList.ts +5 -2
- package/src/funcs/atsApplicationsList.ts +5 -2
- package/src/funcs/atsJobsList.ts +5 -2
- package/src/funcs/connectorApisList.ts +5 -2
- package/src/funcs/connectorConnectorsList.ts +5 -2
- package/src/funcs/crmActivitiesList.ts +5 -2
- package/src/funcs/crmCompaniesList.ts +5 -2
- package/src/funcs/crmContactsList.ts +5 -2
- package/src/funcs/crmCustomObjectSchemasList.ts +5 -2
- package/src/funcs/crmCustomObjectsList.ts +5 -2
- package/src/funcs/crmLeadsList.ts +5 -2
- package/src/funcs/crmNotesList.ts +6 -2
- package/src/funcs/crmOpportunitiesList.ts +5 -2
- package/src/funcs/crmPipelinesList.ts +5 -2
- package/src/funcs/crmUsersList.ts +6 -2
- package/src/funcs/ecommerceCustomersList.ts +5 -2
- package/src/funcs/ecommerceOrdersList.ts +5 -2
- package/src/funcs/ecommerceProductsList.ts +5 -2
- package/src/funcs/fileStorageDriveGroupsList.ts +5 -2
- package/src/funcs/fileStorageDrivesList.ts +5 -2
- package/src/funcs/fileStorageFilesList.ts +5 -2
- package/src/funcs/fileStorageSharedLinksList.ts +5 -2
- package/src/funcs/hrisCompaniesList.ts +5 -2
- package/src/funcs/hrisDepartmentsList.ts +5 -2
- package/src/funcs/hrisEmployeesList.ts +5 -2
- package/src/funcs/hrisTimeOffRequestsList.ts +5 -2
- package/src/funcs/issueTrackingCollectionTagsList.ts +5 -2
- package/src/funcs/issueTrackingCollectionTicketCommentsGet.ts +5 -2
- package/src/funcs/issueTrackingCollectionTicketCommentsList.ts +5 -2
- package/src/funcs/issueTrackingCollectionTicketsList.ts +5 -2
- package/src/funcs/issueTrackingCollectionUsersList.ts +5 -2
- package/src/funcs/issueTrackingCollectionsList.ts +5 -2
- package/src/funcs/smsMessagesList.ts +5 -2
- package/src/funcs/vaultConsumersList.ts +5 -2
- package/src/funcs/vaultLogsList.ts +5 -2
- package/src/funcs/webhookEventLogsList.ts +5 -2
- package/src/funcs/webhookWebhooksList.ts +5 -2
- package/src/hooks/types.ts +1 -0
- package/src/lib/config.ts +4 -4
- package/src/lib/encodings.ts +1 -1
- package/src/lib/env.ts +7 -3
- package/src/lib/matchers.ts +1 -1
- package/src/lib/primitives.ts +16 -0
- package/src/lib/sdks.ts +54 -17
- package/src/models/components/billsfilter.ts +7 -0
- package/src/models/components/connection.ts +7 -0
- package/src/models/components/connectionhealth.ts +1 -0
- package/src/models/components/creditnotesfilter.ts +7 -0
- package/src/models/components/customersfilter.ts +7 -0
- package/src/models/components/expensereportsfilter.ts +7 -0
- package/src/models/components/generalledgertransaction.ts +168 -0
- package/src/models/components/generalledgertransactionlineitem.ts +113 -0
- package/src/models/components/generalledgertransactionsfilter.ts +83 -0
- package/src/models/components/generalledgertransactionssort.ts +70 -0
- package/src/models/components/getgeneralledgertransactionresponse.ts +76 -0
- package/src/models/components/getgeneralledgertransactionsresponse.ts +88 -0
- package/src/models/components/index.ts +9 -0
- package/src/models/components/invoiceitemsfilter.ts +7 -0
- package/src/models/components/invoicesfilter.ts +7 -0
- package/src/models/components/journalentriesfilter.ts +34 -0
- package/src/models/components/ledgeraccountsfilter.ts +7 -0
- package/src/models/components/logsfilter.ts +67 -0
- package/src/models/components/notesfilter.ts +49 -0
- package/src/models/components/paymentsfilter.ts +7 -0
- package/src/models/components/projectsfilter.ts +7 -0
- package/src/models/components/purchaseordersfilter.ts +7 -0
- package/src/models/components/quotesfilter.ts +42 -0
- package/src/models/components/suppliersfilter.ts +7 -0
- package/src/models/components/user.ts +5 -0
- package/src/models/components/userinput.ts +6 -0
- package/src/models/components/usersfilter.ts +36 -0
- package/src/models/components/webhookeventtype.ts +2 -0
- package/src/models/operations/accountinggeneralledgertransactionsall.ts +173 -0
- package/src/models/operations/accountinggeneralledgertransactionsone.ts +144 -0
- package/src/models/operations/accountingquotesall.ts +6 -0
- package/src/models/operations/crmnotesall.ts +6 -0
- package/src/models/operations/crmusersall.ts +6 -0
- package/src/models/operations/index.ts +2 -0
- package/src/sdk/accounting.ts +8 -0
- package/src/sdk/generalledgertransactions.ts +51 -0
- package/lib/dlv.d.ts +0 -14
- package/lib/dlv.d.ts.map +0 -1
- package/lib/dlv.js +0 -49
- package/lib/dlv.js.map +0 -1
- package/lib/is-plain-object.d.ts +0 -2
- package/lib/is-plain-object.d.ts.map +0 -1
- package/lib/is-plain-object.js +0 -41
- package/lib/is-plain-object.js.map +0 -1
- package/src/lib/dlv.ts +0 -53
- package/src/lib/is-plain-object.ts +0 -43
|
@@ -116,6 +116,7 @@ export const Health = {
|
|
|
116
116
|
NeedsAuth: "needs_auth",
|
|
117
117
|
PendingRefresh: "pending_refresh",
|
|
118
118
|
Ok: "ok",
|
|
119
|
+
Degraded: "degraded",
|
|
119
120
|
} as const;
|
|
120
121
|
/**
|
|
121
122
|
* Operational health status of the connection
|
|
@@ -237,6 +238,10 @@ export type Connection = {
|
|
|
237
238
|
* Unix timestamp in milliseconds of the last failed token refresh attempt. A value of 0 indicates no recent failures. This field is used internally to enforce cooldown periods between retry attempts.
|
|
238
239
|
*/
|
|
239
240
|
lastRefreshFailedAt?: number | undefined;
|
|
241
|
+
/**
|
|
242
|
+
* Unix timestamp in milliseconds of the last downstream unreachable error (502/504 network class). A value of 0 indicates no active error. Connection remains callable while this is set; health surfaces as 'degraded'.
|
|
243
|
+
*/
|
|
244
|
+
lastDownstreamErrorAt?: number | undefined;
|
|
240
245
|
createdAt?: number | undefined;
|
|
241
246
|
updatedAt?: number | null | undefined;
|
|
242
247
|
};
|
|
@@ -467,6 +472,7 @@ export const Connection$inboundSchema: z.ZodType<
|
|
|
467
472
|
health: types.optional(Health$inboundSchema),
|
|
468
473
|
credentials_expire_at: types.optional(types.number()),
|
|
469
474
|
last_refresh_failed_at: types.optional(types.number()),
|
|
475
|
+
last_downstream_error_at: types.optional(types.number()),
|
|
470
476
|
created_at: types.optional(types.number()),
|
|
471
477
|
updated_at: z.nullable(types.number()).optional(),
|
|
472
478
|
}).transform((v) => {
|
|
@@ -493,6 +499,7 @@ export const Connection$inboundSchema: z.ZodType<
|
|
|
493
499
|
"application_data_scopes": "applicationDataScopes",
|
|
494
500
|
"credentials_expire_at": "credentialsExpireAt",
|
|
495
501
|
"last_refresh_failed_at": "lastRefreshFailedAt",
|
|
502
|
+
"last_downstream_error_at": "lastDownstreamErrorAt",
|
|
496
503
|
"created_at": "createdAt",
|
|
497
504
|
"updated_at": "updatedAt",
|
|
498
505
|
});
|
|
@@ -16,6 +16,10 @@ export type CreditNotesFilter = {
|
|
|
16
16
|
* Credit note number to search for
|
|
17
17
|
*/
|
|
18
18
|
number?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Filter by the subsidiary (legal entity) the record belongs to. Only honored on connectors that support multi-entity scoping (e.g. NetSuite OneWorld); ignored elsewhere.
|
|
21
|
+
*/
|
|
22
|
+
subsidiaryId?: string | undefined;
|
|
19
23
|
};
|
|
20
24
|
|
|
21
25
|
/** @internal */
|
|
@@ -24,6 +28,7 @@ export type CreditNotesFilter$Outbound = {
|
|
|
24
28
|
updated_since?: string | undefined;
|
|
25
29
|
created_since?: string | undefined;
|
|
26
30
|
number?: string | undefined;
|
|
31
|
+
subsidiary_id?: string | undefined;
|
|
27
32
|
};
|
|
28
33
|
|
|
29
34
|
/** @internal */
|
|
@@ -36,11 +41,13 @@ export const CreditNotesFilter$outboundSchema: z.ZodType<
|
|
|
36
41
|
updatedSince: z.date().transform(v => v.toISOString()).optional(),
|
|
37
42
|
createdSince: z.date().transform(v => v.toISOString()).optional(),
|
|
38
43
|
number: z.string().optional(),
|
|
44
|
+
subsidiaryId: z.string().optional(),
|
|
39
45
|
}).transform((v) => {
|
|
40
46
|
return remap$(v, {
|
|
41
47
|
idSince: "id_since",
|
|
42
48
|
updatedSince: "updated_since",
|
|
43
49
|
createdSince: "created_since",
|
|
50
|
+
subsidiaryId: "subsidiary_id",
|
|
44
51
|
});
|
|
45
52
|
});
|
|
46
53
|
|
|
@@ -51,6 +51,10 @@ export type CustomersFilter = {
|
|
|
51
51
|
* Supplier ID of customer to search for
|
|
52
52
|
*/
|
|
53
53
|
supplierId?: string | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Filter by the subsidiary (legal entity) the customer's primary subsidiary belongs to. Only honored on connectors that support multi-entity scoping (e.g. NetSuite OneWorld); ignored elsewhere.
|
|
56
|
+
*/
|
|
57
|
+
subsidiaryId?: string | undefined;
|
|
54
58
|
};
|
|
55
59
|
|
|
56
60
|
/** @internal */
|
|
@@ -70,6 +74,7 @@ export type CustomersFilter$Outbound = {
|
|
|
70
74
|
status?: string | null | undefined;
|
|
71
75
|
updated_since?: string | undefined;
|
|
72
76
|
supplier_id?: string | undefined;
|
|
77
|
+
subsidiary_id?: string | undefined;
|
|
73
78
|
};
|
|
74
79
|
|
|
75
80
|
/** @internal */
|
|
@@ -86,6 +91,7 @@ export const CustomersFilter$outboundSchema: z.ZodType<
|
|
|
86
91
|
status: z.nullable(CustomersFilterStatus$outboundSchema).optional(),
|
|
87
92
|
updatedSince: z.date().transform(v => v.toISOString()).optional(),
|
|
88
93
|
supplierId: z.string().optional(),
|
|
94
|
+
subsidiaryId: z.string().optional(),
|
|
89
95
|
}).transform((v) => {
|
|
90
96
|
return remap$(v, {
|
|
91
97
|
companyName: "company_name",
|
|
@@ -94,6 +100,7 @@ export const CustomersFilter$outboundSchema: z.ZodType<
|
|
|
94
100
|
lastName: "last_name",
|
|
95
101
|
updatedSince: "updated_since",
|
|
96
102
|
supplierId: "supplier_id",
|
|
103
|
+
subsidiaryId: "subsidiary_id",
|
|
97
104
|
});
|
|
98
105
|
});
|
|
99
106
|
|
|
@@ -27,6 +27,10 @@ export type ExpenseReportsFilter = {
|
|
|
27
27
|
* Filter by employee ID
|
|
28
28
|
*/
|
|
29
29
|
employeeId?: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Filter by the subsidiary (legal entity) the record belongs to. Only honored on connectors that support multi-entity scoping (e.g. NetSuite OneWorld); ignored elsewhere.
|
|
32
|
+
*/
|
|
33
|
+
subsidiaryId?: string | undefined;
|
|
30
34
|
};
|
|
31
35
|
|
|
32
36
|
/** @internal */
|
|
@@ -41,6 +45,7 @@ export type ExpenseReportsFilter$Outbound = {
|
|
|
41
45
|
updated_since?: string | undefined;
|
|
42
46
|
status?: string | undefined;
|
|
43
47
|
employee_id?: string | undefined;
|
|
48
|
+
subsidiary_id?: string | undefined;
|
|
44
49
|
};
|
|
45
50
|
|
|
46
51
|
/** @internal */
|
|
@@ -52,10 +57,12 @@ export const ExpenseReportsFilter$outboundSchema: z.ZodType<
|
|
|
52
57
|
updatedSince: z.date().transform(v => v.toISOString()).optional(),
|
|
53
58
|
status: ExpenseReportsFilterStatus$outboundSchema.optional(),
|
|
54
59
|
employeeId: z.string().optional(),
|
|
60
|
+
subsidiaryId: z.string().optional(),
|
|
55
61
|
}).transform((v) => {
|
|
56
62
|
return remap$(v, {
|
|
57
63
|
updatedSince: "updated_since",
|
|
58
64
|
employeeId: "employee_id",
|
|
65
|
+
subsidiaryId: "subsidiary_id",
|
|
59
66
|
});
|
|
60
67
|
});
|
|
61
68
|
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
10
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
|
+
import * as types from "../../types/primitives.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
|
+
import { Currency, Currency$inboundSchema } from "./currency.js";
|
|
14
|
+
import { CustomField, CustomField$inboundSchema } from "./customfield.js";
|
|
15
|
+
import {
|
|
16
|
+
GeneralLedgerTransactionLineItem,
|
|
17
|
+
GeneralLedgerTransactionLineItem$inboundSchema,
|
|
18
|
+
} from "./generalledgertransactionlineitem.js";
|
|
19
|
+
import {
|
|
20
|
+
PassThroughBody,
|
|
21
|
+
PassThroughBody$inboundSchema,
|
|
22
|
+
} from "./passthroughbody.js";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* The originating transaction type that produced this posting in the general ledger. Discriminates whether the entry came from an invoice, a bill, a payment, a manual journal, etc. This is the key field that distinguishes general-ledger-transactions from journal-entries (which only covers manually-captured entries). May be `null` when the upstream connector did not return an origin discriminator (e.g. Xero's single-record endpoint strips `SourceType` for every record; certain historical records also omit it). To recover a populated value, query the list endpoint.
|
|
26
|
+
*/
|
|
27
|
+
export const GeneralLedgerTransactionSourceType = {
|
|
28
|
+
Other: "other",
|
|
29
|
+
Invoice: "invoice",
|
|
30
|
+
Bill: "bill",
|
|
31
|
+
CreditNote: "credit_note",
|
|
32
|
+
Payment: "payment",
|
|
33
|
+
Refund: "refund",
|
|
34
|
+
Expense: "expense",
|
|
35
|
+
JournalEntry: "journal_entry",
|
|
36
|
+
Payroll: "payroll",
|
|
37
|
+
} as const;
|
|
38
|
+
/**
|
|
39
|
+
* The originating transaction type that produced this posting in the general ledger. Discriminates whether the entry came from an invoice, a bill, a payment, a manual journal, etc. This is the key field that distinguishes general-ledger-transactions from journal-entries (which only covers manually-captured entries). May be `null` when the upstream connector did not return an origin discriminator (e.g. Xero's single-record endpoint strips `SourceType` for every record; certain historical records also omit it). To recover a populated value, query the list endpoint.
|
|
40
|
+
*/
|
|
41
|
+
export type GeneralLedgerTransactionSourceType = OpenEnum<
|
|
42
|
+
typeof GeneralLedgerTransactionSourceType
|
|
43
|
+
>;
|
|
44
|
+
|
|
45
|
+
export type GeneralLedgerTransaction = {
|
|
46
|
+
/**
|
|
47
|
+
* A unique identifier for an object.
|
|
48
|
+
*/
|
|
49
|
+
id?: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* The originating transaction type that produced this posting in the general ledger. Discriminates whether the entry came from an invoice, a bill, a payment, a manual journal, etc. This is the key field that distinguishes general-ledger-transactions from journal-entries (which only covers manually-captured entries). May be `null` when the upstream connector did not return an origin discriminator (e.g. Xero's single-record endpoint strips `SourceType` for every record; certain historical records also omit it). To recover a populated value, query the list endpoint.
|
|
52
|
+
*/
|
|
53
|
+
sourceType: GeneralLedgerTransactionSourceType | null;
|
|
54
|
+
/**
|
|
55
|
+
* Identifier of the originating document in the vendor system. For example, when source_type is 'invoice', this is the id of the invoice that produced this posting. Use this id together with source_type to fetch the source document via its dedicated unified resource.
|
|
56
|
+
*/
|
|
57
|
+
sourceId?: string | null | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* The date on which the transaction was posted to the general ledger. This is the accounting date — it is what determines the period the transaction belongs to and can be earlier than the creation date for backdated postings.
|
|
60
|
+
*/
|
|
61
|
+
postedAt?: Date | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Optional reference identifier for the transaction.
|
|
64
|
+
*/
|
|
65
|
+
reference?: string | null | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Sequential number auto-assigned by the vendor system to the transaction (e.g. Xero JournalNumber). Unique per company.
|
|
68
|
+
*/
|
|
69
|
+
number?: string | null | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
|
|
72
|
+
*/
|
|
73
|
+
currency?: Currency | null | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Currency Exchange Rate at the time entity was recorded/generated.
|
|
76
|
+
*/
|
|
77
|
+
currencyRate?: number | null | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Free-text description at the header level. Typically populated when the transaction originates from a manual journal — for system-generated postings (invoice, payment, etc.) the source document carries the descriptive text.
|
|
80
|
+
*/
|
|
81
|
+
memo?: string | null | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Lines of the transaction. Each line affects one ledger account with either a debit or a credit. The signed sum of net_amount across all lines must equal zero (double-entry invariant).
|
|
84
|
+
*/
|
|
85
|
+
lineItems: Array<GeneralLedgerTransactionLineItem>;
|
|
86
|
+
customFields?: Array<CustomField> | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* The user who last updated the object.
|
|
89
|
+
*/
|
|
90
|
+
updatedBy?: string | null | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* The user who created the object.
|
|
93
|
+
*/
|
|
94
|
+
createdBy?: string | null | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* The date and time when the object was last updated.
|
|
97
|
+
*/
|
|
98
|
+
updatedAt?: Date | null | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* The date and time when the object was created.
|
|
101
|
+
*/
|
|
102
|
+
createdAt?: Date | null | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* When custom mappings are configured on the resource, the result is included here.
|
|
105
|
+
*/
|
|
106
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
109
|
+
*/
|
|
110
|
+
passThrough?: Array<PassThroughBody> | undefined;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
/** @internal */
|
|
114
|
+
export const GeneralLedgerTransactionSourceType$inboundSchema: z.ZodType<
|
|
115
|
+
GeneralLedgerTransactionSourceType,
|
|
116
|
+
z.ZodTypeDef,
|
|
117
|
+
unknown
|
|
118
|
+
> = openEnums.inboundSchema(GeneralLedgerTransactionSourceType);
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export const GeneralLedgerTransaction$inboundSchema: z.ZodType<
|
|
122
|
+
GeneralLedgerTransaction,
|
|
123
|
+
z.ZodTypeDef,
|
|
124
|
+
unknown
|
|
125
|
+
> = z.object({
|
|
126
|
+
id: types.optional(types.string()),
|
|
127
|
+
source_type: types.nullable(GeneralLedgerTransactionSourceType$inboundSchema),
|
|
128
|
+
source_id: z.nullable(types.string()).optional(),
|
|
129
|
+
posted_at: types.optional(types.date()),
|
|
130
|
+
reference: z.nullable(types.string()).optional(),
|
|
131
|
+
number: z.nullable(types.string()).optional(),
|
|
132
|
+
currency: z.nullable(Currency$inboundSchema).optional(),
|
|
133
|
+
currency_rate: z.nullable(types.number()).optional(),
|
|
134
|
+
memo: z.nullable(types.string()).optional(),
|
|
135
|
+
line_items: z.array(GeneralLedgerTransactionLineItem$inboundSchema),
|
|
136
|
+
custom_fields: types.optional(z.array(CustomField$inboundSchema)),
|
|
137
|
+
updated_by: z.nullable(types.string()).optional(),
|
|
138
|
+
created_by: z.nullable(types.string()).optional(),
|
|
139
|
+
updated_at: z.nullable(types.date()).optional(),
|
|
140
|
+
created_at: z.nullable(types.date()).optional(),
|
|
141
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
142
|
+
pass_through: types.optional(z.array(PassThroughBody$inboundSchema)),
|
|
143
|
+
}).transform((v) => {
|
|
144
|
+
return remap$(v, {
|
|
145
|
+
"source_type": "sourceType",
|
|
146
|
+
"source_id": "sourceId",
|
|
147
|
+
"posted_at": "postedAt",
|
|
148
|
+
"currency_rate": "currencyRate",
|
|
149
|
+
"line_items": "lineItems",
|
|
150
|
+
"custom_fields": "customFields",
|
|
151
|
+
"updated_by": "updatedBy",
|
|
152
|
+
"created_by": "createdBy",
|
|
153
|
+
"updated_at": "updatedAt",
|
|
154
|
+
"created_at": "createdAt",
|
|
155
|
+
"custom_mappings": "customMappings",
|
|
156
|
+
"pass_through": "passThrough",
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
export function generalLedgerTransactionFromJSON(
|
|
161
|
+
jsonString: string,
|
|
162
|
+
): SafeParseResult<GeneralLedgerTransaction, SDKValidationError> {
|
|
163
|
+
return safeParse(
|
|
164
|
+
jsonString,
|
|
165
|
+
(x) => GeneralLedgerTransaction$inboundSchema.parse(JSON.parse(x)),
|
|
166
|
+
`Failed to parse 'GeneralLedgerTransaction' from JSON`,
|
|
167
|
+
);
|
|
168
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
10
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
|
+
import * as types from "../../types/primitives.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
|
+
import {
|
|
14
|
+
LinkedLedgerAccount,
|
|
15
|
+
LinkedLedgerAccount$inboundSchema,
|
|
16
|
+
} from "./linkedledgeraccount.js";
|
|
17
|
+
import { LinkedTaxRate, LinkedTaxRate$inboundSchema } from "./linkedtaxrate.js";
|
|
18
|
+
import {
|
|
19
|
+
LinkedTrackingCategory,
|
|
20
|
+
LinkedTrackingCategory$inboundSchema,
|
|
21
|
+
} from "./linkedtrackingcategory.js";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Side of the entry. Redundant with the sign of net_amount but exposed as an explicit flag for filtering convenience.
|
|
25
|
+
*/
|
|
26
|
+
export const GeneralLedgerTransactionLineItemType = {
|
|
27
|
+
Debit: "debit",
|
|
28
|
+
Credit: "credit",
|
|
29
|
+
} as const;
|
|
30
|
+
/**
|
|
31
|
+
* Side of the entry. Redundant with the sign of net_amount but exposed as an explicit flag for filtering convenience.
|
|
32
|
+
*/
|
|
33
|
+
export type GeneralLedgerTransactionLineItemType = OpenEnum<
|
|
34
|
+
typeof GeneralLedgerTransactionLineItemType
|
|
35
|
+
>;
|
|
36
|
+
|
|
37
|
+
export type GeneralLedgerTransactionLineItem = {
|
|
38
|
+
/**
|
|
39
|
+
* A unique identifier for an object.
|
|
40
|
+
*/
|
|
41
|
+
id?: string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Free-text description of the line.
|
|
44
|
+
*/
|
|
45
|
+
description?: string | null | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* The amount posted to the ledger account, tax-exclusive. Debit entries are positive, credit entries are negative. In general-ledger views the tax component lives in its own dedicated line against a tax payable/receivable account, so net_amount is the canonical figure for reporting.
|
|
48
|
+
*/
|
|
49
|
+
netAmount?: number | null | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Side of the entry. Redundant with the sign of net_amount but exposed as an explicit flag for filtering convenience.
|
|
52
|
+
*/
|
|
53
|
+
type: GeneralLedgerTransactionLineItemType | null;
|
|
54
|
+
/**
|
|
55
|
+
* Tax embedded in the line. In GL views this is typically 0 or null because tax has its own dedicated line against a tax payable/receivable account. Exposed for completeness and for tax-inclusive setups.
|
|
56
|
+
*/
|
|
57
|
+
taxAmount?: number | null | undefined;
|
|
58
|
+
taxRate?: LinkedTaxRate | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* A list of linked tracking categories.
|
|
61
|
+
*/
|
|
62
|
+
trackingCategories?: Array<LinkedTrackingCategory | null> | null | undefined;
|
|
63
|
+
ledgerAccount: LinkedLedgerAccount | null;
|
|
64
|
+
/**
|
|
65
|
+
* Line number of the resource
|
|
66
|
+
*/
|
|
67
|
+
lineNumber?: number | null | undefined;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const GeneralLedgerTransactionLineItemType$inboundSchema: z.ZodType<
|
|
72
|
+
GeneralLedgerTransactionLineItemType,
|
|
73
|
+
z.ZodTypeDef,
|
|
74
|
+
unknown
|
|
75
|
+
> = openEnums.inboundSchema(GeneralLedgerTransactionLineItemType);
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
export const GeneralLedgerTransactionLineItem$inboundSchema: z.ZodType<
|
|
79
|
+
GeneralLedgerTransactionLineItem,
|
|
80
|
+
z.ZodTypeDef,
|
|
81
|
+
unknown
|
|
82
|
+
> = z.object({
|
|
83
|
+
id: types.optional(types.string()),
|
|
84
|
+
description: z.nullable(types.string()).optional(),
|
|
85
|
+
net_amount: z.nullable(types.number()).optional(),
|
|
86
|
+
type: types.nullable(GeneralLedgerTransactionLineItemType$inboundSchema),
|
|
87
|
+
tax_amount: z.nullable(types.number()).optional(),
|
|
88
|
+
tax_rate: types.optional(LinkedTaxRate$inboundSchema),
|
|
89
|
+
tracking_categories: z.nullable(
|
|
90
|
+
z.array(types.nullable(LinkedTrackingCategory$inboundSchema)),
|
|
91
|
+
).optional(),
|
|
92
|
+
ledger_account: types.nullable(LinkedLedgerAccount$inboundSchema),
|
|
93
|
+
line_number: z.nullable(types.number()).optional(),
|
|
94
|
+
}).transform((v) => {
|
|
95
|
+
return remap$(v, {
|
|
96
|
+
"net_amount": "netAmount",
|
|
97
|
+
"tax_amount": "taxAmount",
|
|
98
|
+
"tax_rate": "taxRate",
|
|
99
|
+
"tracking_categories": "trackingCategories",
|
|
100
|
+
"ledger_account": "ledgerAccount",
|
|
101
|
+
"line_number": "lineNumber",
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
export function generalLedgerTransactionLineItemFromJSON(
|
|
106
|
+
jsonString: string,
|
|
107
|
+
): SafeParseResult<GeneralLedgerTransactionLineItem, SDKValidationError> {
|
|
108
|
+
return safeParse(
|
|
109
|
+
jsonString,
|
|
110
|
+
(x) => GeneralLedgerTransactionLineItem$inboundSchema.parse(JSON.parse(x)),
|
|
111
|
+
`Failed to parse 'GeneralLedgerTransactionLineItem' from JSON`,
|
|
112
|
+
);
|
|
113
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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 * as openEnums from "../../types/enums.js";
|
|
8
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Filter by the originating transaction type.
|
|
12
|
+
*/
|
|
13
|
+
export const SourceType = {
|
|
14
|
+
Other: "other",
|
|
15
|
+
Invoice: "invoice",
|
|
16
|
+
Bill: "bill",
|
|
17
|
+
CreditNote: "credit_note",
|
|
18
|
+
Payment: "payment",
|
|
19
|
+
Refund: "refund",
|
|
20
|
+
Expense: "expense",
|
|
21
|
+
JournalEntry: "journal_entry",
|
|
22
|
+
Payroll: "payroll",
|
|
23
|
+
} as const;
|
|
24
|
+
/**
|
|
25
|
+
* Filter by the originating transaction type.
|
|
26
|
+
*/
|
|
27
|
+
export type SourceType = OpenEnum<typeof SourceType>;
|
|
28
|
+
|
|
29
|
+
export type GeneralLedgerTransactionsFilter = {
|
|
30
|
+
/**
|
|
31
|
+
* Filter by the originating transaction type.
|
|
32
|
+
*/
|
|
33
|
+
sourceType?: SourceType | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Return only transactions originated from the given source document id.
|
|
36
|
+
*/
|
|
37
|
+
sourceId?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Return transactions updated on or after this timestamp.
|
|
40
|
+
*/
|
|
41
|
+
updatedSince?: Date | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const SourceType$outboundSchema: z.ZodType<
|
|
46
|
+
string,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
SourceType
|
|
49
|
+
> = openEnums.outboundSchema(SourceType);
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export type GeneralLedgerTransactionsFilter$Outbound = {
|
|
53
|
+
source_type?: string | undefined;
|
|
54
|
+
source_id?: string | undefined;
|
|
55
|
+
updated_since?: string | undefined;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const GeneralLedgerTransactionsFilter$outboundSchema: z.ZodType<
|
|
60
|
+
GeneralLedgerTransactionsFilter$Outbound,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
GeneralLedgerTransactionsFilter
|
|
63
|
+
> = z.object({
|
|
64
|
+
sourceType: SourceType$outboundSchema.optional(),
|
|
65
|
+
sourceId: z.string().optional(),
|
|
66
|
+
updatedSince: z.date().transform(v => v.toISOString()).optional(),
|
|
67
|
+
}).transform((v) => {
|
|
68
|
+
return remap$(v, {
|
|
69
|
+
sourceType: "source_type",
|
|
70
|
+
sourceId: "source_id",
|
|
71
|
+
updatedSince: "updated_since",
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
export function generalLedgerTransactionsFilterToJSON(
|
|
76
|
+
generalLedgerTransactionsFilter: GeneralLedgerTransactionsFilter,
|
|
77
|
+
): string {
|
|
78
|
+
return JSON.stringify(
|
|
79
|
+
GeneralLedgerTransactionsFilter$outboundSchema.parse(
|
|
80
|
+
generalLedgerTransactionsFilter,
|
|
81
|
+
),
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
|
+
import {
|
|
9
|
+
SortDirection,
|
|
10
|
+
SortDirection$outboundSchema,
|
|
11
|
+
} from "./sortdirection.js";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The field on which to sort the General Ledger Transactions.
|
|
15
|
+
*/
|
|
16
|
+
export const GeneralLedgerTransactionsSortBy = {
|
|
17
|
+
PostedAt: "posted_at",
|
|
18
|
+
UpdatedAt: "updated_at",
|
|
19
|
+
CreatedAt: "created_at",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* The field on which to sort the General Ledger Transactions.
|
|
23
|
+
*/
|
|
24
|
+
export type GeneralLedgerTransactionsSortBy = OpenEnum<
|
|
25
|
+
typeof GeneralLedgerTransactionsSortBy
|
|
26
|
+
>;
|
|
27
|
+
|
|
28
|
+
export type GeneralLedgerTransactionsSort = {
|
|
29
|
+
/**
|
|
30
|
+
* The field on which to sort the General Ledger Transactions.
|
|
31
|
+
*/
|
|
32
|
+
by?: GeneralLedgerTransactionsSortBy | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* The direction in which to sort the results
|
|
35
|
+
*/
|
|
36
|
+
direction?: SortDirection | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const GeneralLedgerTransactionsSortBy$outboundSchema: z.ZodType<
|
|
41
|
+
string,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
GeneralLedgerTransactionsSortBy
|
|
44
|
+
> = openEnums.outboundSchema(GeneralLedgerTransactionsSortBy);
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type GeneralLedgerTransactionsSort$Outbound = {
|
|
48
|
+
by?: string | undefined;
|
|
49
|
+
direction: string;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const GeneralLedgerTransactionsSort$outboundSchema: z.ZodType<
|
|
54
|
+
GeneralLedgerTransactionsSort$Outbound,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
GeneralLedgerTransactionsSort
|
|
57
|
+
> = z.object({
|
|
58
|
+
by: GeneralLedgerTransactionsSortBy$outboundSchema.optional(),
|
|
59
|
+
direction: SortDirection$outboundSchema.default("asc"),
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
export function generalLedgerTransactionsSortToJSON(
|
|
63
|
+
generalLedgerTransactionsSort: GeneralLedgerTransactionsSort,
|
|
64
|
+
): string {
|
|
65
|
+
return JSON.stringify(
|
|
66
|
+
GeneralLedgerTransactionsSort$outboundSchema.parse(
|
|
67
|
+
generalLedgerTransactionsSort,
|
|
68
|
+
),
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
GeneralLedgerTransaction,
|
|
13
|
+
GeneralLedgerTransaction$inboundSchema,
|
|
14
|
+
} from "./generalledgertransaction.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* GeneralLedgerTransaction
|
|
18
|
+
*/
|
|
19
|
+
export type GetGeneralLedgerTransactionResponse = {
|
|
20
|
+
/**
|
|
21
|
+
* HTTP Response Status Code
|
|
22
|
+
*/
|
|
23
|
+
statusCode: number;
|
|
24
|
+
/**
|
|
25
|
+
* HTTP Response Status
|
|
26
|
+
*/
|
|
27
|
+
status: string;
|
|
28
|
+
/**
|
|
29
|
+
* Apideck ID of service provider
|
|
30
|
+
*/
|
|
31
|
+
service: string;
|
|
32
|
+
/**
|
|
33
|
+
* Unified API resource name
|
|
34
|
+
*/
|
|
35
|
+
resource: string;
|
|
36
|
+
/**
|
|
37
|
+
* Operation performed
|
|
38
|
+
*/
|
|
39
|
+
operation: string;
|
|
40
|
+
data: GeneralLedgerTransaction;
|
|
41
|
+
/**
|
|
42
|
+
* Raw response from the integration when raw=true query param is provided
|
|
43
|
+
*/
|
|
44
|
+
raw?: { [k: string]: any } | null | undefined;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const GetGeneralLedgerTransactionResponse$inboundSchema: z.ZodType<
|
|
49
|
+
GetGeneralLedgerTransactionResponse,
|
|
50
|
+
z.ZodTypeDef,
|
|
51
|
+
unknown
|
|
52
|
+
> = z.object({
|
|
53
|
+
status_code: types.number(),
|
|
54
|
+
status: types.string(),
|
|
55
|
+
service: types.string(),
|
|
56
|
+
resource: types.string(),
|
|
57
|
+
operation: types.string(),
|
|
58
|
+
data: GeneralLedgerTransaction$inboundSchema,
|
|
59
|
+
_raw: z.nullable(z.record(z.any())).optional(),
|
|
60
|
+
}).transform((v) => {
|
|
61
|
+
return remap$(v, {
|
|
62
|
+
"status_code": "statusCode",
|
|
63
|
+
"_raw": "raw",
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
export function getGeneralLedgerTransactionResponseFromJSON(
|
|
68
|
+
jsonString: string,
|
|
69
|
+
): SafeParseResult<GetGeneralLedgerTransactionResponse, SDKValidationError> {
|
|
70
|
+
return safeParse(
|
|
71
|
+
jsonString,
|
|
72
|
+
(x) =>
|
|
73
|
+
GetGeneralLedgerTransactionResponse$inboundSchema.parse(JSON.parse(x)),
|
|
74
|
+
`Failed to parse 'GetGeneralLedgerTransactionResponse' from JSON`,
|
|
75
|
+
);
|
|
76
|
+
}
|