@apideck/unify 0.39.0 → 0.39.2
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/funcs/accountingAttachmentsDelete.js.map +1 -1
- package/funcs/accountingAttachmentsDownload.js.map +1 -1
- package/funcs/accountingAttachmentsGet.js.map +1 -1
- package/funcs/accountingAttachmentsList.js.map +1 -1
- package/funcs/accountingAttachmentsUpload.js.map +1 -1
- package/funcs/accountingBankAccountsDelete.js.map +1 -1
- package/funcs/accountingBankAccountsGet.js.map +1 -1
- package/funcs/accountingBankAccountsUpdate.js.map +1 -1
- package/funcs/accountingBankFeedAccountsDelete.js.map +1 -1
- package/funcs/accountingBankFeedAccountsGet.js.map +1 -1
- package/funcs/accountingBankFeedAccountsUpdate.js.map +1 -1
- package/funcs/accountingBankFeedStatementsDelete.js.map +1 -1
- package/funcs/accountingBankFeedStatementsGet.js.map +1 -1
- package/funcs/accountingBankFeedStatementsUpdate.js.map +1 -1
- package/funcs/accountingBillPaymentsDelete.js.map +1 -1
- package/funcs/accountingBillPaymentsGet.js.map +1 -1
- package/funcs/accountingBillPaymentsUpdate.js.map +1 -1
- package/funcs/accountingBillsDelete.js.map +1 -1
- package/funcs/accountingBillsGet.js.map +1 -1
- package/funcs/accountingBillsUpdate.js.map +1 -1
- package/funcs/accountingCategoriesGet.js.map +1 -1
- package/funcs/accountingCreditNotesDelete.js.map +1 -1
- package/funcs/accountingCreditNotesGet.js.map +1 -1
- package/funcs/accountingCreditNotesUpdate.js.map +1 -1
- package/funcs/accountingCustomersDelete.js.map +1 -1
- package/funcs/accountingCustomersGet.js.map +1 -1
- package/funcs/accountingCustomersUpdate.js.map +1 -1
- package/funcs/accountingDepartmentsDelete.js.map +1 -1
- package/funcs/accountingDepartmentsGet.js.map +1 -1
- package/funcs/accountingDepartmentsUpdate.js.map +1 -1
- package/funcs/accountingEmployeesDelete.js.map +1 -1
- package/funcs/accountingEmployeesGet.js.map +1 -1
- package/funcs/accountingEmployeesUpdate.js.map +1 -1
- package/funcs/accountingExpenseCategoriesDelete.js.map +1 -1
- package/funcs/accountingExpenseCategoriesGet.js.map +1 -1
- package/funcs/accountingExpenseCategoriesUpdate.js.map +1 -1
- package/funcs/accountingExpenseReportsDelete.js.map +1 -1
- package/funcs/accountingExpenseReportsGet.js.map +1 -1
- package/funcs/accountingExpenseReportsUpdate.js.map +1 -1
- package/funcs/accountingExpensesDelete.js.map +1 -1
- package/funcs/accountingExpensesGet.js.map +1 -1
- package/funcs/accountingExpensesUpdate.js.map +1 -1
- package/funcs/accountingInvoiceItemsDelete.js.map +1 -1
- package/funcs/accountingInvoiceItemsGet.js.map +1 -1
- package/funcs/accountingInvoiceItemsUpdate.js.map +1 -1
- package/funcs/accountingInvoicesDelete.js.map +1 -1
- package/funcs/accountingInvoicesGet.js.map +1 -1
- package/funcs/accountingInvoicesUpdate.js.map +1 -1
- package/funcs/accountingJournalEntriesDelete.js.map +1 -1
- package/funcs/accountingJournalEntriesGet.js.map +1 -1
- package/funcs/accountingJournalEntriesUpdate.js.map +1 -1
- package/funcs/accountingLedgerAccountsDelete.js.map +1 -1
- package/funcs/accountingLedgerAccountsGet.js.map +1 -1
- package/funcs/accountingLedgerAccountsUpdate.js.map +1 -1
- package/funcs/accountingLocationsDelete.js.map +1 -1
- package/funcs/accountingLocationsGet.js.map +1 -1
- package/funcs/accountingLocationsUpdate.js.map +1 -1
- package/funcs/accountingPaymentsDelete.js.map +1 -1
- package/funcs/accountingPaymentsGet.js.map +1 -1
- package/funcs/accountingPaymentsUpdate.js.map +1 -1
- package/funcs/accountingProjectsDelete.js.map +1 -1
- package/funcs/accountingProjectsGet.js.map +1 -1
- package/funcs/accountingProjectsUpdate.js.map +1 -1
- package/funcs/accountingPurchaseOrdersDelete.js.map +1 -1
- package/funcs/accountingPurchaseOrdersGet.js.map +1 -1
- package/funcs/accountingPurchaseOrdersUpdate.js.map +1 -1
- package/funcs/accountingQuotesDelete.js.map +1 -1
- package/funcs/accountingQuotesGet.js.map +1 -1
- package/funcs/accountingQuotesUpdate.js.map +1 -1
- package/funcs/accountingRefundsDelete.js.map +1 -1
- package/funcs/accountingRefundsGet.js.map +1 -1
- package/funcs/accountingRefundsUpdate.js.map +1 -1
- package/funcs/accountingSubsidiariesDelete.js.map +1 -1
- package/funcs/accountingSubsidiariesGet.js.map +1 -1
- package/funcs/accountingSubsidiariesUpdate.js.map +1 -1
- package/funcs/accountingSuppliersDelete.js.map +1 -1
- package/funcs/accountingSuppliersGet.js.map +1 -1
- package/funcs/accountingSuppliersUpdate.js.map +1 -1
- package/funcs/accountingTaxRatesDelete.js.map +1 -1
- package/funcs/accountingTaxRatesGet.js.map +1 -1
- package/funcs/accountingTaxRatesUpdate.js.map +1 -1
- package/funcs/accountingTrackingCategoriesDelete.js.map +1 -1
- package/funcs/accountingTrackingCategoriesGet.js.map +1 -1
- package/funcs/accountingTrackingCategoriesUpdate.js.map +1 -1
- package/funcs/atsApplicantsDelete.js.map +1 -1
- package/funcs/atsApplicantsGet.js.map +1 -1
- package/funcs/atsApplicantsUpdate.js.map +1 -1
- package/funcs/atsApplicationsDelete.js.map +1 -1
- package/funcs/atsApplicationsGet.js.map +1 -1
- package/funcs/atsApplicationsUpdate.js.map +1 -1
- package/funcs/atsJobsDelete.js.map +1 -1
- package/funcs/atsJobsGet.js.map +1 -1
- package/funcs/atsJobsUpdate.js.map +1 -1
- package/funcs/connectorApiResourceCoverageGet.js.map +1 -1
- package/funcs/connectorApiResourcesGet.js.map +1 -1
- package/funcs/connectorApisGet.js.map +1 -1
- package/funcs/connectorConnectorDocsGet.js.map +1 -1
- package/funcs/connectorConnectorResourcesGet.js.map +1 -1
- package/funcs/connectorConnectorsGet.js.map +1 -1
- package/funcs/crmActivitiesDelete.js.map +1 -1
- package/funcs/crmActivitiesGet.js.map +1 -1
- package/funcs/crmActivitiesUpdate.js.map +1 -1
- package/funcs/crmCompaniesDelete.js.map +1 -1
- package/funcs/crmCompaniesGet.js.map +1 -1
- package/funcs/crmCompaniesUpdate.js.map +1 -1
- package/funcs/crmContactsDelete.js.map +1 -1
- package/funcs/crmContactsGet.js.map +1 -1
- package/funcs/crmContactsUpdate.js.map +1 -1
- package/funcs/crmCustomObjectSchemasDelete.js.map +1 -1
- package/funcs/crmCustomObjectSchemasGet.js.map +1 -1
- package/funcs/crmCustomObjectSchemasUpdate.js.map +1 -1
- package/funcs/crmCustomObjectsCreate.js.map +1 -1
- package/funcs/crmCustomObjectsDelete.js.map +1 -1
- package/funcs/crmCustomObjectsGet.js.map +1 -1
- package/funcs/crmCustomObjectsList.js.map +1 -1
- package/funcs/crmCustomObjectsUpdate.js.map +1 -1
- package/funcs/crmLeadsDelete.js.map +1 -1
- package/funcs/crmLeadsGet.js.map +1 -1
- package/funcs/crmLeadsUpdate.js.map +1 -1
- package/funcs/crmNotesDelete.js.map +1 -1
- package/funcs/crmNotesGet.js.map +1 -1
- package/funcs/crmNotesUpdate.js.map +1 -1
- package/funcs/crmOpportunitiesDelete.js.map +1 -1
- package/funcs/crmOpportunitiesGet.js.map +1 -1
- package/funcs/crmOpportunitiesUpdate.js.map +1 -1
- package/funcs/crmPipelinesDelete.js.map +1 -1
- package/funcs/crmPipelinesGet.js.map +1 -1
- package/funcs/crmPipelinesUpdate.js.map +1 -1
- package/funcs/crmUsersDelete.js.map +1 -1
- package/funcs/crmUsersGet.js.map +1 -1
- package/funcs/crmUsersUpdate.js.map +1 -1
- package/funcs/ecommerceCustomersGet.js.map +1 -1
- package/funcs/ecommerceOrdersGet.js.map +1 -1
- package/funcs/ecommerceProductsGet.js.map +1 -1
- package/funcs/fileStorageDriveGroupsDelete.js.map +1 -1
- package/funcs/fileStorageDriveGroupsGet.js.map +1 -1
- package/funcs/fileStorageDriveGroupsUpdate.js.map +1 -1
- package/funcs/fileStorageDrivesDelete.js.map +1 -1
- package/funcs/fileStorageDrivesGet.js.map +1 -1
- package/funcs/fileStorageDrivesUpdate.js.map +1 -1
- package/funcs/fileStorageFilesDelete.js.map +1 -1
- package/funcs/fileStorageFilesDownload.js.map +1 -1
- package/funcs/fileStorageFilesExport.js.map +1 -1
- package/funcs/fileStorageFilesGet.js.map +1 -1
- package/funcs/fileStorageFilesUpdate.js.map +1 -1
- package/funcs/fileStorageFoldersCopy.js.map +1 -1
- package/funcs/fileStorageFoldersDelete.js.map +1 -1
- package/funcs/fileStorageFoldersGet.js.map +1 -1
- package/funcs/fileStorageFoldersUpdate.js.map +1 -1
- package/funcs/fileStorageSharedLinksDelete.js.map +1 -1
- package/funcs/fileStorageSharedLinksGet.js.map +1 -1
- package/funcs/fileStorageSharedLinksUpdate.js.map +1 -1
- package/funcs/fileStorageUploadSessionsDelete.js.map +1 -1
- package/funcs/fileStorageUploadSessionsFinish.js.map +1 -1
- package/funcs/fileStorageUploadSessionsGet.js.map +1 -1
- package/funcs/fileStorageUploadSessionsUpload.js.map +1 -1
- package/funcs/hrisCompaniesDelete.js.map +1 -1
- package/funcs/hrisCompaniesGet.js.map +1 -1
- package/funcs/hrisCompaniesUpdate.js.map +1 -1
- package/funcs/hrisDepartmentsDelete.js.map +1 -1
- package/funcs/hrisDepartmentsGet.js.map +1 -1
- package/funcs/hrisDepartmentsUpdate.js.map +1 -1
- package/funcs/hrisEmployeePayrollsGet.js.map +1 -1
- package/funcs/hrisEmployeePayrollsList.js.map +1 -1
- package/funcs/hrisEmployeeSchedulesList.js.map +1 -1
- package/funcs/hrisEmployeesDelete.js.map +1 -1
- package/funcs/hrisEmployeesGet.js.map +1 -1
- package/funcs/hrisEmployeesUpdate.js.map +1 -1
- package/funcs/hrisPayrollsGet.js.map +1 -1
- package/funcs/hrisTimeOffRequestsDelete.js.map +1 -1
- package/funcs/hrisTimeOffRequestsGet.js.map +1 -1
- package/funcs/hrisTimeOffRequestsUpdate.js.map +1 -1
- package/funcs/issueTrackingCollectionTagsList.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsCreate.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsDelete.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsGet.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsList.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsUpdate.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketsCreate.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketsDelete.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketsGet.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketsList.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketsUpdate.js.map +1 -1
- package/funcs/issueTrackingCollectionUsersGet.js.map +1 -1
- package/funcs/issueTrackingCollectionUsersList.js.map +1 -1
- package/funcs/issueTrackingCollectionsGet.js.map +1 -1
- package/funcs/smsMessagesDelete.js.map +1 -1
- package/funcs/smsMessagesGet.js.map +1 -1
- package/funcs/smsMessagesUpdate.js.map +1 -1
- package/funcs/vaultConnectionConsentUpdate.js.map +1 -1
- package/funcs/vaultConnectionConsentsList.js.map +1 -1
- package/funcs/vaultConnectionCustomMappingsList.js.map +1 -1
- package/funcs/vaultConnectionSettingsList.js.map +1 -1
- package/funcs/vaultConnectionSettingsUpdate.js.map +1 -1
- package/funcs/vaultConnectionsDelete.js.map +1 -1
- package/funcs/vaultConnectionsGet.js.map +1 -1
- package/funcs/vaultConnectionsImports.js.map +1 -1
- package/funcs/vaultConnectionsToken.js.map +1 -1
- package/funcs/vaultConnectionsUpdate.js.map +1 -1
- package/funcs/vaultConsumerRequestCountsList.js.map +1 -1
- package/funcs/vaultConsumersDelete.js.map +1 -1
- package/funcs/vaultConsumersGet.js.map +1 -1
- package/funcs/vaultConsumersUpdate.js.map +1 -1
- package/funcs/vaultCreateCallbackState.js.map +1 -1
- package/funcs/vaultCustomFieldsList.js.map +1 -1
- package/funcs/vaultCustomMappingsList.js.map +1 -1
- package/funcs/vaultValidateConnectionState.js.map +1 -1
- package/funcs/webhookWebhooksDelete.js.map +1 -1
- package/funcs/webhookWebhooksGet.js.map +1 -1
- package/funcs/webhookWebhooksUpdate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/config.js.map +1 -1
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +20 -5
- package/lib/encodings.js.map +1 -1
- package/lib/files.d.ts +13 -0
- package/lib/files.d.ts.map +1 -1
- package/lib/files.js +19 -0
- package/lib/files.js.map +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +8 -4
- package/lib/sdks.js.map +1 -1
- package/lib/url.d.ts.map +1 -1
- package/lib/url.js +4 -2
- package/lib/url.js.map +1 -1
- package/models/components/accountingemployee.d.ts +4 -0
- package/models/components/accountingemployee.d.ts.map +1 -1
- package/models/components/accountingemployee.js +5 -0
- package/models/components/accountingemployee.js.map +1 -1
- package/models/components/expense.d.ts +2 -2
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/journalentry.d.ts +6 -2
- package/models/components/journalentry.d.ts.map +1 -1
- package/models/components/journalentry.js.map +1 -1
- package/models/components/journalentrylineitem.d.ts +37 -3
- package/models/components/journalentrylineitem.d.ts.map +1 -1
- package/models/components/journalentrylineitem.js +21 -3
- package/models/components/journalentrylineitem.js.map +1 -1
- package/models/components/linkedemployee.d.ts +33 -0
- package/models/components/linkedemployee.d.ts.map +1 -0
- package/models/components/linkedemployee.js +74 -0
- package/models/components/linkedemployee.js.map +1 -0
- package/models/components/linkedfinancialaccount.d.ts +3 -2
- package/models/components/linkedfinancialaccount.d.ts.map +1 -1
- package/models/components/linkedfinancialaccount.js +1 -0
- package/models/components/linkedfinancialaccount.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/employees.test.ts +42 -0
- package/src/funcs/accountingAttachmentsDelete.ts +0 -1
- package/src/funcs/accountingAttachmentsDownload.ts +0 -1
- package/src/funcs/accountingAttachmentsGet.ts +0 -1
- package/src/funcs/accountingAttachmentsList.ts +0 -1
- package/src/funcs/accountingAttachmentsUpload.ts +0 -1
- package/src/funcs/accountingBankAccountsDelete.ts +0 -1
- package/src/funcs/accountingBankAccountsGet.ts +0 -1
- package/src/funcs/accountingBankAccountsUpdate.ts +0 -1
- package/src/funcs/accountingBankFeedAccountsDelete.ts +0 -1
- package/src/funcs/accountingBankFeedAccountsGet.ts +0 -1
- package/src/funcs/accountingBankFeedAccountsUpdate.ts +0 -1
- package/src/funcs/accountingBankFeedStatementsDelete.ts +0 -1
- package/src/funcs/accountingBankFeedStatementsGet.ts +0 -1
- package/src/funcs/accountingBankFeedStatementsUpdate.ts +0 -1
- package/src/funcs/accountingBillPaymentsDelete.ts +0 -1
- package/src/funcs/accountingBillPaymentsGet.ts +0 -1
- package/src/funcs/accountingBillPaymentsUpdate.ts +0 -1
- package/src/funcs/accountingBillsDelete.ts +0 -1
- package/src/funcs/accountingBillsGet.ts +0 -1
- package/src/funcs/accountingBillsUpdate.ts +0 -1
- package/src/funcs/accountingCategoriesGet.ts +0 -1
- package/src/funcs/accountingCreditNotesDelete.ts +0 -1
- package/src/funcs/accountingCreditNotesGet.ts +0 -1
- package/src/funcs/accountingCreditNotesUpdate.ts +0 -1
- package/src/funcs/accountingCustomersDelete.ts +0 -1
- package/src/funcs/accountingCustomersGet.ts +0 -1
- package/src/funcs/accountingCustomersUpdate.ts +0 -1
- package/src/funcs/accountingDepartmentsDelete.ts +0 -1
- package/src/funcs/accountingDepartmentsGet.ts +0 -1
- package/src/funcs/accountingDepartmentsUpdate.ts +0 -1
- package/src/funcs/accountingEmployeesDelete.ts +0 -1
- package/src/funcs/accountingEmployeesGet.ts +0 -1
- package/src/funcs/accountingEmployeesUpdate.ts +0 -1
- package/src/funcs/accountingExpenseCategoriesDelete.ts +0 -1
- package/src/funcs/accountingExpenseCategoriesGet.ts +0 -1
- package/src/funcs/accountingExpenseCategoriesUpdate.ts +0 -1
- package/src/funcs/accountingExpenseReportsDelete.ts +0 -1
- package/src/funcs/accountingExpenseReportsGet.ts +0 -1
- package/src/funcs/accountingExpenseReportsUpdate.ts +0 -1
- package/src/funcs/accountingExpensesDelete.ts +0 -1
- package/src/funcs/accountingExpensesGet.ts +0 -1
- package/src/funcs/accountingExpensesUpdate.ts +0 -1
- package/src/funcs/accountingInvoiceItemsDelete.ts +0 -1
- package/src/funcs/accountingInvoiceItemsGet.ts +0 -1
- package/src/funcs/accountingInvoiceItemsUpdate.ts +0 -1
- package/src/funcs/accountingInvoicesDelete.ts +0 -1
- package/src/funcs/accountingInvoicesGet.ts +0 -1
- package/src/funcs/accountingInvoicesUpdate.ts +0 -1
- package/src/funcs/accountingJournalEntriesDelete.ts +0 -1
- package/src/funcs/accountingJournalEntriesGet.ts +0 -1
- package/src/funcs/accountingJournalEntriesUpdate.ts +0 -1
- package/src/funcs/accountingLedgerAccountsDelete.ts +0 -1
- package/src/funcs/accountingLedgerAccountsGet.ts +0 -1
- package/src/funcs/accountingLedgerAccountsUpdate.ts +0 -1
- package/src/funcs/accountingLocationsDelete.ts +0 -1
- package/src/funcs/accountingLocationsGet.ts +0 -1
- package/src/funcs/accountingLocationsUpdate.ts +0 -1
- package/src/funcs/accountingPaymentsDelete.ts +0 -1
- package/src/funcs/accountingPaymentsGet.ts +0 -1
- package/src/funcs/accountingPaymentsUpdate.ts +0 -1
- package/src/funcs/accountingProjectsDelete.ts +0 -1
- package/src/funcs/accountingProjectsGet.ts +0 -1
- package/src/funcs/accountingProjectsUpdate.ts +0 -1
- package/src/funcs/accountingPurchaseOrdersDelete.ts +0 -1
- package/src/funcs/accountingPurchaseOrdersGet.ts +0 -1
- package/src/funcs/accountingPurchaseOrdersUpdate.ts +0 -1
- package/src/funcs/accountingQuotesDelete.ts +0 -1
- package/src/funcs/accountingQuotesGet.ts +0 -1
- package/src/funcs/accountingQuotesUpdate.ts +0 -1
- package/src/funcs/accountingRefundsDelete.ts +0 -1
- package/src/funcs/accountingRefundsGet.ts +0 -1
- package/src/funcs/accountingRefundsUpdate.ts +0 -1
- package/src/funcs/accountingSubsidiariesDelete.ts +0 -1
- package/src/funcs/accountingSubsidiariesGet.ts +0 -1
- package/src/funcs/accountingSubsidiariesUpdate.ts +0 -1
- package/src/funcs/accountingSuppliersDelete.ts +0 -1
- package/src/funcs/accountingSuppliersGet.ts +0 -1
- package/src/funcs/accountingSuppliersUpdate.ts +0 -1
- package/src/funcs/accountingTaxRatesDelete.ts +0 -1
- package/src/funcs/accountingTaxRatesGet.ts +0 -1
- package/src/funcs/accountingTaxRatesUpdate.ts +0 -1
- package/src/funcs/accountingTrackingCategoriesDelete.ts +0 -1
- package/src/funcs/accountingTrackingCategoriesGet.ts +0 -1
- package/src/funcs/accountingTrackingCategoriesUpdate.ts +0 -1
- package/src/funcs/atsApplicantsDelete.ts +0 -1
- package/src/funcs/atsApplicantsGet.ts +0 -1
- package/src/funcs/atsApplicantsUpdate.ts +0 -1
- package/src/funcs/atsApplicationsDelete.ts +0 -1
- package/src/funcs/atsApplicationsGet.ts +0 -1
- package/src/funcs/atsApplicationsUpdate.ts +0 -1
- package/src/funcs/atsJobsDelete.ts +0 -1
- package/src/funcs/atsJobsGet.ts +0 -1
- package/src/funcs/atsJobsUpdate.ts +0 -1
- package/src/funcs/connectorApiResourceCoverageGet.ts +0 -1
- package/src/funcs/connectorApiResourcesGet.ts +0 -1
- package/src/funcs/connectorApisGet.ts +0 -1
- package/src/funcs/connectorConnectorDocsGet.ts +0 -1
- package/src/funcs/connectorConnectorResourcesGet.ts +0 -1
- package/src/funcs/connectorConnectorsGet.ts +0 -1
- package/src/funcs/crmActivitiesDelete.ts +0 -1
- package/src/funcs/crmActivitiesGet.ts +0 -1
- package/src/funcs/crmActivitiesUpdate.ts +0 -1
- package/src/funcs/crmCompaniesDelete.ts +0 -1
- package/src/funcs/crmCompaniesGet.ts +0 -1
- package/src/funcs/crmCompaniesUpdate.ts +0 -1
- package/src/funcs/crmContactsDelete.ts +0 -1
- package/src/funcs/crmContactsGet.ts +0 -1
- package/src/funcs/crmContactsUpdate.ts +0 -1
- package/src/funcs/crmCustomObjectSchemasDelete.ts +0 -1
- package/src/funcs/crmCustomObjectSchemasGet.ts +0 -1
- package/src/funcs/crmCustomObjectSchemasUpdate.ts +0 -1
- package/src/funcs/crmCustomObjectsCreate.ts +0 -1
- package/src/funcs/crmCustomObjectsDelete.ts +0 -1
- package/src/funcs/crmCustomObjectsGet.ts +0 -1
- package/src/funcs/crmCustomObjectsList.ts +0 -1
- package/src/funcs/crmCustomObjectsUpdate.ts +0 -1
- package/src/funcs/crmLeadsDelete.ts +0 -1
- package/src/funcs/crmLeadsGet.ts +0 -1
- package/src/funcs/crmLeadsUpdate.ts +0 -1
- package/src/funcs/crmNotesDelete.ts +0 -1
- package/src/funcs/crmNotesGet.ts +0 -1
- package/src/funcs/crmNotesUpdate.ts +0 -1
- package/src/funcs/crmOpportunitiesDelete.ts +0 -1
- package/src/funcs/crmOpportunitiesGet.ts +0 -1
- package/src/funcs/crmOpportunitiesUpdate.ts +0 -1
- package/src/funcs/crmPipelinesDelete.ts +0 -1
- package/src/funcs/crmPipelinesGet.ts +0 -1
- package/src/funcs/crmPipelinesUpdate.ts +0 -1
- package/src/funcs/crmUsersDelete.ts +0 -1
- package/src/funcs/crmUsersGet.ts +0 -1
- package/src/funcs/crmUsersUpdate.ts +0 -1
- package/src/funcs/ecommerceCustomersGet.ts +0 -1
- package/src/funcs/ecommerceOrdersGet.ts +0 -1
- package/src/funcs/ecommerceProductsGet.ts +0 -1
- package/src/funcs/fileStorageDriveGroupsDelete.ts +0 -1
- package/src/funcs/fileStorageDriveGroupsGet.ts +0 -1
- package/src/funcs/fileStorageDriveGroupsUpdate.ts +0 -1
- package/src/funcs/fileStorageDrivesDelete.ts +0 -1
- package/src/funcs/fileStorageDrivesGet.ts +0 -1
- package/src/funcs/fileStorageDrivesUpdate.ts +0 -1
- package/src/funcs/fileStorageFilesDelete.ts +0 -1
- package/src/funcs/fileStorageFilesDownload.ts +0 -1
- package/src/funcs/fileStorageFilesExport.ts +0 -1
- package/src/funcs/fileStorageFilesGet.ts +0 -1
- package/src/funcs/fileStorageFilesUpdate.ts +0 -1
- package/src/funcs/fileStorageFoldersCopy.ts +0 -1
- package/src/funcs/fileStorageFoldersDelete.ts +0 -1
- package/src/funcs/fileStorageFoldersGet.ts +0 -1
- package/src/funcs/fileStorageFoldersUpdate.ts +0 -1
- package/src/funcs/fileStorageSharedLinksDelete.ts +0 -1
- package/src/funcs/fileStorageSharedLinksGet.ts +0 -1
- package/src/funcs/fileStorageSharedLinksUpdate.ts +0 -1
- package/src/funcs/fileStorageUploadSessionsDelete.ts +0 -1
- package/src/funcs/fileStorageUploadSessionsFinish.ts +0 -1
- package/src/funcs/fileStorageUploadSessionsGet.ts +0 -1
- package/src/funcs/fileStorageUploadSessionsUpload.ts +0 -1
- package/src/funcs/hrisCompaniesDelete.ts +0 -1
- package/src/funcs/hrisCompaniesGet.ts +0 -1
- package/src/funcs/hrisCompaniesUpdate.ts +0 -1
- package/src/funcs/hrisDepartmentsDelete.ts +0 -1
- package/src/funcs/hrisDepartmentsGet.ts +0 -1
- package/src/funcs/hrisDepartmentsUpdate.ts +0 -1
- package/src/funcs/hrisEmployeePayrollsGet.ts +0 -1
- package/src/funcs/hrisEmployeePayrollsList.ts +0 -1
- package/src/funcs/hrisEmployeeSchedulesList.ts +0 -1
- package/src/funcs/hrisEmployeesDelete.ts +0 -1
- package/src/funcs/hrisEmployeesGet.ts +0 -1
- package/src/funcs/hrisEmployeesUpdate.ts +0 -1
- package/src/funcs/hrisPayrollsGet.ts +0 -1
- package/src/funcs/hrisTimeOffRequestsDelete.ts +0 -1
- package/src/funcs/hrisTimeOffRequestsGet.ts +0 -1
- package/src/funcs/hrisTimeOffRequestsUpdate.ts +0 -1
- package/src/funcs/issueTrackingCollectionTagsList.ts +0 -1
- package/src/funcs/issueTrackingCollectionTicketCommentsCreate.ts +0 -1
- package/src/funcs/issueTrackingCollectionTicketCommentsDelete.ts +0 -1
- package/src/funcs/issueTrackingCollectionTicketCommentsGet.ts +0 -1
- package/src/funcs/issueTrackingCollectionTicketCommentsList.ts +0 -1
- package/src/funcs/issueTrackingCollectionTicketCommentsUpdate.ts +0 -1
- package/src/funcs/issueTrackingCollectionTicketsCreate.ts +0 -1
- package/src/funcs/issueTrackingCollectionTicketsDelete.ts +0 -1
- package/src/funcs/issueTrackingCollectionTicketsGet.ts +0 -1
- package/src/funcs/issueTrackingCollectionTicketsList.ts +0 -1
- package/src/funcs/issueTrackingCollectionTicketsUpdate.ts +0 -1
- package/src/funcs/issueTrackingCollectionUsersGet.ts +0 -1
- package/src/funcs/issueTrackingCollectionUsersList.ts +0 -1
- package/src/funcs/issueTrackingCollectionsGet.ts +0 -1
- package/src/funcs/smsMessagesDelete.ts +0 -1
- package/src/funcs/smsMessagesGet.ts +0 -1
- package/src/funcs/smsMessagesUpdate.ts +0 -1
- package/src/funcs/vaultConnectionConsentUpdate.ts +0 -1
- package/src/funcs/vaultConnectionConsentsList.ts +0 -1
- package/src/funcs/vaultConnectionCustomMappingsList.ts +0 -1
- package/src/funcs/vaultConnectionSettingsList.ts +0 -1
- package/src/funcs/vaultConnectionSettingsUpdate.ts +0 -1
- package/src/funcs/vaultConnectionsDelete.ts +0 -1
- package/src/funcs/vaultConnectionsGet.ts +0 -1
- package/src/funcs/vaultConnectionsImports.ts +0 -1
- package/src/funcs/vaultConnectionsToken.ts +0 -1
- package/src/funcs/vaultConnectionsUpdate.ts +0 -1
- package/src/funcs/vaultConsumerRequestCountsList.ts +0 -1
- package/src/funcs/vaultConsumersDelete.ts +0 -1
- package/src/funcs/vaultConsumersGet.ts +0 -1
- package/src/funcs/vaultConsumersUpdate.ts +0 -1
- package/src/funcs/vaultCreateCallbackState.ts +0 -1
- package/src/funcs/vaultCustomFieldsList.ts +0 -1
- package/src/funcs/vaultCustomMappingsList.ts +0 -1
- package/src/funcs/vaultValidateConnectionState.ts +0 -1
- package/src/funcs/webhookWebhooksDelete.ts +0 -1
- package/src/funcs/webhookWebhooksGet.ts +0 -1
- package/src/funcs/webhookWebhooksUpdate.ts +0 -1
- package/src/lib/config.ts +4 -4
- package/src/lib/encodings.ts +23 -4
- package/src/lib/files.ts +22 -0
- package/src/lib/sdks.ts +7 -5
- package/src/lib/url.ts +16 -14
- package/src/models/components/accountingemployee.ts +13 -0
- package/src/models/components/expense.ts +2 -2
- package/src/models/components/index.ts +1 -0
- package/src/models/components/journalentry.ts +6 -2
- package/src/models/components/journalentrylineitem.ts +54 -5
- package/src/models/components/linkedemployee.ts +79 -0
- package/src/models/components/linkedfinancialaccount.ts +3 -2
package/src/lib/config.ts
CHANGED
|
@@ -67,8 +67,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
67
67
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
|
-
openapiDocVersion: "10.24.
|
|
71
|
-
sdkVersion: "0.39.
|
|
72
|
-
genVersion: "2.
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 0.39.
|
|
70
|
+
openapiDocVersion: "10.24.9",
|
|
71
|
+
sdkVersion: "0.39.2",
|
|
72
|
+
genVersion: "2.869.25",
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 0.39.2 2.869.25 10.24.9 @apideck/unify",
|
|
74
74
|
} as const;
|
package/src/lib/encodings.ts
CHANGED
|
@@ -479,6 +479,23 @@ export const encodeSpaceDelimitedQuery = queryEncoder(encodeSpaceDelimited);
|
|
|
479
479
|
export const encodePipeDelimitedQuery = queryEncoder(encodePipeDelimited);
|
|
480
480
|
export const encodeDeepObjectQuery = queryEncoder(encodeDeepObject);
|
|
481
481
|
|
|
482
|
+
function isBlobLike(val: unknown): val is Blob {
|
|
483
|
+
if (val instanceof Blob) {
|
|
484
|
+
return true;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
if (typeof val !== "object" || val == null || !(Symbol.toStringTag in val)) {
|
|
488
|
+
return false;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
const tag = val[Symbol.toStringTag];
|
|
492
|
+
if (tag !== "Blob" && tag !== "File") {
|
|
493
|
+
return false;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
return "stream" in val && typeof val.stream === "function";
|
|
497
|
+
}
|
|
498
|
+
|
|
482
499
|
export function appendForm(
|
|
483
500
|
fd: FormData,
|
|
484
501
|
key: string,
|
|
@@ -487,10 +504,12 @@ export function appendForm(
|
|
|
487
504
|
): void {
|
|
488
505
|
if (value == null) {
|
|
489
506
|
return;
|
|
490
|
-
} else if (value
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
507
|
+
} else if (isBlobLike(value)) {
|
|
508
|
+
if (fileName) {
|
|
509
|
+
fd.append(key, value as Blob, fileName);
|
|
510
|
+
} else {
|
|
511
|
+
fd.append(key, value as Blob);
|
|
512
|
+
}
|
|
494
513
|
} else {
|
|
495
514
|
fd.append(key, String(value));
|
|
496
515
|
}
|
package/src/lib/files.ts
CHANGED
|
@@ -80,3 +80,25 @@ export function getContentTypeFromFileName(fileName: string): string | null {
|
|
|
80
80
|
|
|
81
81
|
return mimeTypes[ext] || null;
|
|
82
82
|
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Creates a Blob from file content with the given MIME type.
|
|
86
|
+
*
|
|
87
|
+
* Node.js Buffers are Uint8Array subclasses that may share a pooled
|
|
88
|
+
* ArrayBuffer (byteOffset > 0, byteLength < buffer.byteLength). Passing
|
|
89
|
+
* such a Buffer directly to `new Blob([buf])` can include the entire
|
|
90
|
+
* underlying pool on some runtimes, producing a Blob with extra bytes
|
|
91
|
+
* that corrupts multipart uploads.
|
|
92
|
+
*
|
|
93
|
+
* Copying into a standalone Uint8Array ensures the Blob receives only the
|
|
94
|
+
* intended bytes regardless of runtime behaviour.
|
|
95
|
+
*/
|
|
96
|
+
export function bytesToBlob(
|
|
97
|
+
content: Uint8Array<ArrayBufferLike> | ArrayBuffer | Blob | string,
|
|
98
|
+
contentType: string,
|
|
99
|
+
): Blob {
|
|
100
|
+
if (content instanceof Uint8Array) {
|
|
101
|
+
return new Blob([new Uint8Array(content)], { type: contentType });
|
|
102
|
+
}
|
|
103
|
+
return new Blob([content as BlobPart], { type: contentType });
|
|
104
|
+
}
|
package/src/lib/sdks.ts
CHANGED
|
@@ -128,13 +128,15 @@ export class ClientSDK {
|
|
|
128
128
|
if (!base) {
|
|
129
129
|
return ERR(new InvalidRequestError("No base URL provided for operation"));
|
|
130
130
|
}
|
|
131
|
-
const
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
const baseURL = new URL(base);
|
|
132
|
+
let reqURL: URL;
|
|
134
133
|
if (path) {
|
|
135
|
-
|
|
136
|
-
reqURL
|
|
134
|
+
baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
|
|
135
|
+
reqURL = new URL(path, baseURL);
|
|
136
|
+
} else {
|
|
137
|
+
reqURL = baseURL;
|
|
137
138
|
}
|
|
139
|
+
reqURL.hash = "";
|
|
138
140
|
|
|
139
141
|
let finalQuery = query || "";
|
|
140
142
|
|
package/src/lib/url.ts
CHANGED
|
@@ -13,21 +13,23 @@ export function pathToFunc(
|
|
|
13
13
|
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
14
14
|
|
|
15
15
|
return function buildURLPath(params: Record<string, unknown> = {}): string {
|
|
16
|
-
return pathPattern
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
return pathPattern
|
|
17
|
+
.replace(paramRE, function (_, placeholder) {
|
|
18
|
+
if (!hasOwn.call(params, placeholder)) {
|
|
19
|
+
throw new Error(`Parameter '${placeholder}' is required`);
|
|
20
|
+
}
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
const value = params[placeholder];
|
|
23
|
+
if (typeof value !== "string" && typeof value !== "number") {
|
|
24
|
+
throw new Error(
|
|
25
|
+
`Parameter '${placeholder}' must be a string or number`,
|
|
26
|
+
);
|
|
27
|
+
}
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
return options?.charEncoding === "percent"
|
|
30
|
+
? encodeURIComponent(`${value}`)
|
|
31
|
+
: `${value}`;
|
|
32
|
+
})
|
|
33
|
+
.replace(/^\/+/, "");
|
|
32
34
|
};
|
|
33
35
|
}
|
|
@@ -16,6 +16,12 @@ import {
|
|
|
16
16
|
Address$Outbound,
|
|
17
17
|
Address$outboundSchema,
|
|
18
18
|
} from "./address.js";
|
|
19
|
+
import {
|
|
20
|
+
BankAccount,
|
|
21
|
+
BankAccount$inboundSchema,
|
|
22
|
+
BankAccount$Outbound,
|
|
23
|
+
BankAccount$outboundSchema,
|
|
24
|
+
} from "./bankaccount.js";
|
|
19
25
|
import {
|
|
20
26
|
Currency,
|
|
21
27
|
Currency$inboundSchema,
|
|
@@ -199,6 +205,7 @@ export type AccountingEmployee = {
|
|
|
199
205
|
* Phone numbers of the employee.
|
|
200
206
|
*/
|
|
201
207
|
phoneNumbers?: Array<PhoneNumber> | undefined;
|
|
208
|
+
bankAccount?: BankAccount | undefined;
|
|
202
209
|
customFields?: Array<CustomField> | undefined;
|
|
203
210
|
/**
|
|
204
211
|
* When custom mappings are configured on the resource, the result is included here.
|
|
@@ -302,6 +309,7 @@ export type AccountingEmployeeInput = {
|
|
|
302
309
|
* Phone numbers of the employee.
|
|
303
310
|
*/
|
|
304
311
|
phoneNumbers?: Array<PhoneNumber> | undefined;
|
|
312
|
+
bankAccount?: BankAccount | undefined;
|
|
305
313
|
customFields?: Array<CustomField> | undefined;
|
|
306
314
|
/**
|
|
307
315
|
* A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object.
|
|
@@ -402,6 +410,7 @@ export const AccountingEmployee$inboundSchema: z.ZodType<
|
|
|
402
410
|
notes: z.nullable(types.string()).optional(),
|
|
403
411
|
addresses: types.optional(z.array(Address$inboundSchema)),
|
|
404
412
|
phone_numbers: types.optional(z.array(PhoneNumber$inboundSchema)),
|
|
413
|
+
bank_account: types.optional(BankAccount$inboundSchema),
|
|
405
414
|
custom_fields: types.optional(z.array(CustomField$inboundSchema)),
|
|
406
415
|
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
407
416
|
row_version: z.nullable(types.string()).optional(),
|
|
@@ -423,6 +432,7 @@ export const AccountingEmployee$inboundSchema: z.ZodType<
|
|
|
423
432
|
"birth_date": "birthDate",
|
|
424
433
|
"tracking_categories": "trackingCategories",
|
|
425
434
|
"phone_numbers": "phoneNumbers",
|
|
435
|
+
"bank_account": "bankAccount",
|
|
426
436
|
"custom_fields": "customFields",
|
|
427
437
|
"custom_mappings": "customMappings",
|
|
428
438
|
"row_version": "rowVersion",
|
|
@@ -469,6 +479,7 @@ export type AccountingEmployeeInput$Outbound = {
|
|
|
469
479
|
notes?: string | null | undefined;
|
|
470
480
|
addresses?: Array<Address$Outbound> | undefined;
|
|
471
481
|
phone_numbers?: Array<PhoneNumber$Outbound> | undefined;
|
|
482
|
+
bank_account?: BankAccount$Outbound | undefined;
|
|
472
483
|
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
473
484
|
row_version?: string | null | undefined;
|
|
474
485
|
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
@@ -510,6 +521,7 @@ export const AccountingEmployeeInput$outboundSchema: z.ZodType<
|
|
|
510
521
|
notes: z.nullable(z.string()).optional(),
|
|
511
522
|
addresses: z.array(Address$outboundSchema).optional(),
|
|
512
523
|
phoneNumbers: z.array(PhoneNumber$outboundSchema).optional(),
|
|
524
|
+
bankAccount: BankAccount$outboundSchema.optional(),
|
|
513
525
|
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
514
526
|
rowVersion: z.nullable(z.string()).optional(),
|
|
515
527
|
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
@@ -527,6 +539,7 @@ export const AccountingEmployeeInput$outboundSchema: z.ZodType<
|
|
|
527
539
|
birthDate: "birth_date",
|
|
528
540
|
trackingCategories: "tracking_categories",
|
|
529
541
|
phoneNumbers: "phone_numbers",
|
|
542
|
+
bankAccount: "bank_account",
|
|
530
543
|
customFields: "custom_fields",
|
|
531
544
|
rowVersion: "row_version",
|
|
532
545
|
passThrough: "pass_through",
|
|
@@ -146,7 +146,7 @@ export type Expense = {
|
|
|
146
146
|
*/
|
|
147
147
|
accountId?: string | undefined;
|
|
148
148
|
/**
|
|
149
|
-
* A flexible account reference that can represent
|
|
149
|
+
* A flexible account reference that can represent a ledger account (GL account), a bank account, or an employee payable account, depending on the connector's requirements.
|
|
150
150
|
*/
|
|
151
151
|
account?: LinkedFinancialAccount | null | undefined;
|
|
152
152
|
/**
|
|
@@ -277,7 +277,7 @@ export type ExpenseInput = {
|
|
|
277
277
|
*/
|
|
278
278
|
accountId?: string | undefined;
|
|
279
279
|
/**
|
|
280
|
-
* A flexible account reference that can represent
|
|
280
|
+
* A flexible account reference that can represent a ledger account (GL account), a bank account, or an employee payable account, depending on the connector's requirements.
|
|
281
281
|
*/
|
|
282
282
|
account?: LinkedFinancialAccountInput | null | undefined;
|
|
283
283
|
/**
|
|
@@ -457,6 +457,7 @@ export * from "./linkeddepartment.js";
|
|
|
457
457
|
export * from "./linkeddepartmentinput.js";
|
|
458
458
|
export * from "./linkedecommercecustomer.js";
|
|
459
459
|
export * from "./linkedecommerceorder.js";
|
|
460
|
+
export * from "./linkedemployee.js";
|
|
460
461
|
export * from "./linkedexpensecategory.js";
|
|
461
462
|
export * from "./linkedfinancialaccount.js";
|
|
462
463
|
export * from "./linkedfolder.js";
|
|
@@ -109,7 +109,9 @@ export type JournalEntry = {
|
|
|
109
109
|
*/
|
|
110
110
|
journalSymbol?: string | null | undefined;
|
|
111
111
|
/**
|
|
112
|
-
*
|
|
112
|
+
* Deprecated — use line_items[].tax_type for per-line tax applicability. Kept as fallback: applies to all lines that do not set their own tax_type.
|
|
113
|
+
*
|
|
114
|
+
* @deprecated field: Deprecated — use line_items[]..
|
|
113
115
|
*/
|
|
114
116
|
taxType?: string | null | undefined;
|
|
115
117
|
/**
|
|
@@ -213,7 +215,9 @@ export type JournalEntryInput = {
|
|
|
213
215
|
*/
|
|
214
216
|
journalSymbol?: string | null | undefined;
|
|
215
217
|
/**
|
|
216
|
-
*
|
|
218
|
+
* Deprecated — use line_items[].tax_type for per-line tax applicability. Kept as fallback: applies to all lines that do not set their own tax_type.
|
|
219
|
+
*
|
|
220
|
+
* @deprecated field: Deprecated — use line_items[]..
|
|
217
221
|
*/
|
|
218
222
|
taxType?: string | null | undefined;
|
|
219
223
|
/**
|
|
@@ -25,6 +25,12 @@ import {
|
|
|
25
25
|
LinkedCustomerInput$Outbound,
|
|
26
26
|
LinkedCustomerInput$outboundSchema,
|
|
27
27
|
} from "./linkedcustomerinput.js";
|
|
28
|
+
import {
|
|
29
|
+
LinkedEmployee,
|
|
30
|
+
LinkedEmployee$inboundSchema,
|
|
31
|
+
LinkedEmployee$Outbound,
|
|
32
|
+
LinkedEmployee$outboundSchema,
|
|
33
|
+
} from "./linkedemployee.js";
|
|
28
34
|
import {
|
|
29
35
|
LinkedLedgerAccount,
|
|
30
36
|
LinkedLedgerAccount$inboundSchema,
|
|
@@ -73,6 +79,18 @@ export type JournalEntryLineItemType = OpenEnum<
|
|
|
73
79
|
typeof JournalEntryLineItemType
|
|
74
80
|
>;
|
|
75
81
|
|
|
82
|
+
/**
|
|
83
|
+
* The tax applicability of this line item. Overrides the root-level tax_type for this line.
|
|
84
|
+
*/
|
|
85
|
+
export const TaxType = {
|
|
86
|
+
Sales: "sales",
|
|
87
|
+
Purchase: "purchase",
|
|
88
|
+
} as const;
|
|
89
|
+
/**
|
|
90
|
+
* The tax applicability of this line item. Overrides the root-level tax_type for this line.
|
|
91
|
+
*/
|
|
92
|
+
export type TaxType = OpenEnum<typeof TaxType>;
|
|
93
|
+
|
|
76
94
|
export type JournalEntryLineItem = {
|
|
77
95
|
/**
|
|
78
96
|
* A unique identifier for an object.
|
|
@@ -97,8 +115,12 @@ export type JournalEntryLineItem = {
|
|
|
97
115
|
/**
|
|
98
116
|
* Debit entries are considered positive, and credit entries are considered negative.
|
|
99
117
|
*/
|
|
100
|
-
type: JournalEntryLineItemType;
|
|
118
|
+
type: JournalEntryLineItemType | null;
|
|
101
119
|
taxRate?: LinkedTaxRate | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* The tax applicability of this line item. Overrides the root-level tax_type for this line.
|
|
122
|
+
*/
|
|
123
|
+
taxType?: TaxType | null | undefined;
|
|
102
124
|
/**
|
|
103
125
|
* @deprecated field: This field is deprecated and may be removed in a future version..
|
|
104
126
|
*/
|
|
@@ -116,6 +138,10 @@ export type JournalEntryLineItem = {
|
|
|
116
138
|
* The supplier this entity is linked to.
|
|
117
139
|
*/
|
|
118
140
|
supplier?: LinkedSupplier | null | undefined;
|
|
141
|
+
/**
|
|
142
|
+
* The employee this entity is linked to.
|
|
143
|
+
*/
|
|
144
|
+
employee?: LinkedEmployee | null | undefined;
|
|
119
145
|
/**
|
|
120
146
|
* The ID of the department
|
|
121
147
|
*/
|
|
@@ -154,8 +180,12 @@ export type JournalEntryLineItemInput = {
|
|
|
154
180
|
/**
|
|
155
181
|
* Debit entries are considered positive, and credit entries are considered negative.
|
|
156
182
|
*/
|
|
157
|
-
type: JournalEntryLineItemType;
|
|
183
|
+
type: JournalEntryLineItemType | null;
|
|
158
184
|
taxRate?: LinkedTaxRateInput | undefined;
|
|
185
|
+
/**
|
|
186
|
+
* The tax applicability of this line item. Overrides the root-level tax_type for this line.
|
|
187
|
+
*/
|
|
188
|
+
taxType?: TaxType | null | undefined;
|
|
159
189
|
/**
|
|
160
190
|
* @deprecated field: This field is deprecated and may be removed in a future version..
|
|
161
191
|
*/
|
|
@@ -173,6 +203,10 @@ export type JournalEntryLineItemInput = {
|
|
|
173
203
|
* The supplier this entity is linked to.
|
|
174
204
|
*/
|
|
175
205
|
supplier?: LinkedSupplierInput | null | undefined;
|
|
206
|
+
/**
|
|
207
|
+
* The employee this entity is linked to.
|
|
208
|
+
*/
|
|
209
|
+
employee?: LinkedEmployee | null | undefined;
|
|
176
210
|
/**
|
|
177
211
|
* The ID of the department
|
|
178
212
|
*/
|
|
@@ -204,6 +238,13 @@ export const JournalEntryLineItemType$outboundSchema: z.ZodType<
|
|
|
204
238
|
JournalEntryLineItemType
|
|
205
239
|
> = openEnums.outboundSchema(JournalEntryLineItemType);
|
|
206
240
|
|
|
241
|
+
/** @internal */
|
|
242
|
+
export const TaxType$inboundSchema: z.ZodType<TaxType, z.ZodTypeDef, unknown> =
|
|
243
|
+
openEnums.inboundSchema(TaxType);
|
|
244
|
+
/** @internal */
|
|
245
|
+
export const TaxType$outboundSchema: z.ZodType<string, z.ZodTypeDef, TaxType> =
|
|
246
|
+
openEnums.outboundSchema(TaxType);
|
|
247
|
+
|
|
207
248
|
/** @internal */
|
|
208
249
|
export const JournalEntryLineItem$inboundSchema: z.ZodType<
|
|
209
250
|
JournalEntryLineItem,
|
|
@@ -215,8 +256,9 @@ export const JournalEntryLineItem$inboundSchema: z.ZodType<
|
|
|
215
256
|
tax_amount: z.nullable(types.number()).optional(),
|
|
216
257
|
sub_total: z.nullable(types.number()).optional(),
|
|
217
258
|
total_amount: z.nullable(types.number()).optional(),
|
|
218
|
-
type: JournalEntryLineItemType$inboundSchema,
|
|
259
|
+
type: types.nullable(JournalEntryLineItemType$inboundSchema),
|
|
219
260
|
tax_rate: types.optional(LinkedTaxRate$inboundSchema),
|
|
261
|
+
tax_type: z.nullable(TaxType$inboundSchema).optional(),
|
|
220
262
|
tracking_category: z.nullable(DeprecatedLinkedTrackingCategory$inboundSchema)
|
|
221
263
|
.optional(),
|
|
222
264
|
tracking_categories: z.nullable(
|
|
@@ -225,6 +267,7 @@ export const JournalEntryLineItem$inboundSchema: z.ZodType<
|
|
|
225
267
|
ledger_account: types.nullable(LinkedLedgerAccount$inboundSchema),
|
|
226
268
|
customer: z.nullable(LinkedCustomer$inboundSchema).optional(),
|
|
227
269
|
supplier: z.nullable(LinkedSupplier$inboundSchema).optional(),
|
|
270
|
+
employee: z.nullable(LinkedEmployee$inboundSchema).optional(),
|
|
228
271
|
department_id: z.nullable(types.string()).optional(),
|
|
229
272
|
location_id: z.nullable(types.string()).optional(),
|
|
230
273
|
line_number: z.nullable(types.number()).optional(),
|
|
@@ -237,6 +280,7 @@ export const JournalEntryLineItem$inboundSchema: z.ZodType<
|
|
|
237
280
|
"sub_total": "subTotal",
|
|
238
281
|
"total_amount": "totalAmount",
|
|
239
282
|
"tax_rate": "taxRate",
|
|
283
|
+
"tax_type": "taxType",
|
|
240
284
|
"tracking_category": "trackingCategory",
|
|
241
285
|
"tracking_categories": "trackingCategories",
|
|
242
286
|
"ledger_account": "ledgerAccount",
|
|
@@ -262,8 +306,9 @@ export type JournalEntryLineItemInput$Outbound = {
|
|
|
262
306
|
tax_amount?: number | null | undefined;
|
|
263
307
|
sub_total?: number | null | undefined;
|
|
264
308
|
total_amount?: number | null | undefined;
|
|
265
|
-
type: string;
|
|
309
|
+
type: string | null;
|
|
266
310
|
tax_rate?: LinkedTaxRateInput$Outbound | undefined;
|
|
311
|
+
tax_type?: string | null | undefined;
|
|
267
312
|
tracking_category?:
|
|
268
313
|
| DeprecatedLinkedTrackingCategory$Outbound
|
|
269
314
|
| null
|
|
@@ -275,6 +320,7 @@ export type JournalEntryLineItemInput$Outbound = {
|
|
|
275
320
|
ledger_account: LinkedLedgerAccount$Outbound | null;
|
|
276
321
|
customer?: LinkedCustomerInput$Outbound | null | undefined;
|
|
277
322
|
supplier?: LinkedSupplierInput$Outbound | null | undefined;
|
|
323
|
+
employee?: LinkedEmployee$Outbound | null | undefined;
|
|
278
324
|
department_id?: string | null | undefined;
|
|
279
325
|
location_id?: string | null | undefined;
|
|
280
326
|
line_number?: number | null | undefined;
|
|
@@ -291,8 +337,9 @@ export const JournalEntryLineItemInput$outboundSchema: z.ZodType<
|
|
|
291
337
|
taxAmount: z.nullable(z.number()).optional(),
|
|
292
338
|
subTotal: z.nullable(z.number()).optional(),
|
|
293
339
|
totalAmount: z.nullable(z.number()).optional(),
|
|
294
|
-
type: JournalEntryLineItemType$outboundSchema,
|
|
340
|
+
type: z.nullable(JournalEntryLineItemType$outboundSchema),
|
|
295
341
|
taxRate: LinkedTaxRateInput$outboundSchema.optional(),
|
|
342
|
+
taxType: z.nullable(TaxType$outboundSchema).optional(),
|
|
296
343
|
trackingCategory: z.nullable(DeprecatedLinkedTrackingCategory$outboundSchema)
|
|
297
344
|
.optional(),
|
|
298
345
|
trackingCategories: z.nullable(
|
|
@@ -301,6 +348,7 @@ export const JournalEntryLineItemInput$outboundSchema: z.ZodType<
|
|
|
301
348
|
ledgerAccount: z.nullable(LinkedLedgerAccount$outboundSchema),
|
|
302
349
|
customer: z.nullable(LinkedCustomerInput$outboundSchema).optional(),
|
|
303
350
|
supplier: z.nullable(LinkedSupplierInput$outboundSchema).optional(),
|
|
351
|
+
employee: z.nullable(LinkedEmployee$outboundSchema).optional(),
|
|
304
352
|
departmentId: z.nullable(z.string()).optional(),
|
|
305
353
|
locationId: z.nullable(z.string()).optional(),
|
|
306
354
|
lineNumber: z.nullable(z.number().int()).optional(),
|
|
@@ -311,6 +359,7 @@ export const JournalEntryLineItemInput$outboundSchema: z.ZodType<
|
|
|
311
359
|
subTotal: "sub_total",
|
|
312
360
|
totalAmount: "total_amount",
|
|
313
361
|
taxRate: "tax_rate",
|
|
362
|
+
taxType: "tax_type",
|
|
314
363
|
trackingCategory: "tracking_category",
|
|
315
364
|
trackingCategories: "tracking_categories",
|
|
316
365
|
ledgerAccount: "ledger_account",
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The employee this entity is linked to.
|
|
14
|
+
*/
|
|
15
|
+
export type LinkedEmployee = {
|
|
16
|
+
/**
|
|
17
|
+
* A unique identifier for an object.
|
|
18
|
+
*/
|
|
19
|
+
id?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* The display ID of the employee. For best performance, send this field (the employee number) instead of the GUID in the id field.
|
|
22
|
+
*/
|
|
23
|
+
displayId?: string | null | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* The display name of the employee.
|
|
26
|
+
*/
|
|
27
|
+
displayName?: string | null | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const LinkedEmployee$inboundSchema: z.ZodType<
|
|
32
|
+
LinkedEmployee,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({
|
|
36
|
+
id: types.optional(types.string()),
|
|
37
|
+
display_id: z.nullable(types.string()).optional(),
|
|
38
|
+
display_name: z.nullable(types.string()).optional(),
|
|
39
|
+
}).transform((v) => {
|
|
40
|
+
return remap$(v, {
|
|
41
|
+
"display_id": "displayId",
|
|
42
|
+
"display_name": "displayName",
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type LinkedEmployee$Outbound = {
|
|
47
|
+
id?: string | undefined;
|
|
48
|
+
display_id?: string | null | undefined;
|
|
49
|
+
display_name?: string | null | undefined;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const LinkedEmployee$outboundSchema: z.ZodType<
|
|
54
|
+
LinkedEmployee$Outbound,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
LinkedEmployee
|
|
57
|
+
> = z.object({
|
|
58
|
+
id: z.string().optional(),
|
|
59
|
+
displayId: z.nullable(z.string()).optional(),
|
|
60
|
+
displayName: z.nullable(z.string()).optional(),
|
|
61
|
+
}).transform((v) => {
|
|
62
|
+
return remap$(v, {
|
|
63
|
+
displayId: "display_id",
|
|
64
|
+
displayName: "display_name",
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
export function linkedEmployeeToJSON(linkedEmployee: LinkedEmployee): string {
|
|
69
|
+
return JSON.stringify(LinkedEmployee$outboundSchema.parse(linkedEmployee));
|
|
70
|
+
}
|
|
71
|
+
export function linkedEmployeeFromJSON(
|
|
72
|
+
jsonString: string,
|
|
73
|
+
): SafeParseResult<LinkedEmployee, SDKValidationError> {
|
|
74
|
+
return safeParse(
|
|
75
|
+
jsonString,
|
|
76
|
+
(x) => LinkedEmployee$inboundSchema.parse(JSON.parse(x)),
|
|
77
|
+
`Failed to parse 'LinkedEmployee' from JSON`,
|
|
78
|
+
);
|
|
79
|
+
}
|
|
@@ -17,6 +17,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
17
17
|
export const LinkedFinancialAccountAccountType = {
|
|
18
18
|
LedgerAccount: "ledger_account",
|
|
19
19
|
BankAccount: "bank_account",
|
|
20
|
+
Employee: "employee",
|
|
20
21
|
} as const;
|
|
21
22
|
/**
|
|
22
23
|
* The type of account being referenced. Use `ledger_account` for GL accounts from the chart of accounts, or `bank_account` for bank account entities. When not specified, the connector will use its default behavior.
|
|
@@ -26,7 +27,7 @@ export type LinkedFinancialAccountAccountType = OpenEnum<
|
|
|
26
27
|
>;
|
|
27
28
|
|
|
28
29
|
/**
|
|
29
|
-
* A flexible account reference that can represent
|
|
30
|
+
* A flexible account reference that can represent a ledger account (GL account), a bank account, or an employee payable account, depending on the connector's requirements.
|
|
30
31
|
*/
|
|
31
32
|
export type LinkedFinancialAccount = {
|
|
32
33
|
/**
|
|
@@ -60,7 +61,7 @@ export type LinkedFinancialAccount = {
|
|
|
60
61
|
};
|
|
61
62
|
|
|
62
63
|
/**
|
|
63
|
-
* A flexible account reference that can represent
|
|
64
|
+
* A flexible account reference that can represent a ledger account (GL account), a bank account, or an employee payable account, depending on the connector's requirements.
|
|
64
65
|
*/
|
|
65
66
|
export type LinkedFinancialAccountInput = {
|
|
66
67
|
/**
|