rutter-ts 0.1.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/dist/chunk-HSUL4OZU.js +21854 -0
- package/dist/chunk-JCJXW7AE.cjs +22900 -0
- package/dist/generated.cjs +4217 -0
- package/dist/generated.d.cts +126438 -0
- package/dist/generated.d.ts +126438 -0
- package/dist/generated.js +113 -0
- package/dist/index.cjs +294 -0
- package/dist/index.d.cts +92 -0
- package/dist/index.d.ts +92 -0
- package/dist/index.js +281 -0
- package/package.json +51 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
export { zAccessToken, zAccount, zAccountResponse, zAccountResponseWithConnection, zAccountingCustomer, zAccountingCustomerRefund, zAccountingCustomerRefundResponse, zAccountingCustomerRefundResponseWithConnection, zAccountingCustomerResponse, zAccountingCustomerResponseWithConnection, zAccountingItem, zAccountingItemResponse, zAccountingItemResponseWithConnection, zAccountingMetricPathParam, zAccountingStatementQuery, zAccountingTransaction, zAccountingTransactionResponseWithConnection, zAcpCancelCheckoutSessionRequest, zAcpCheckoutSession, zAcpCheckoutSessionPathParams, zAcpCompleteCheckoutSessionRequest, zAcpCompleteCheckoutSessionResponse, zAcpCreateCheckoutSessionPathParams, zAcpCreateCheckoutSessionRequest, zAcpUpdateCheckoutSessionRequest, zAdsAccount, zAdsAccountResponseWithConnection, zAggregateAccountingMetricResponse, zAggregateCommerceMetricResponse, zAggregateMetric, zAmazonCredentials, zAsyncDeleteAccountingCustomerRefundResponse, zAsyncDeleteBankDepositResponse, zAsyncDeleteBankFeedAccountResponse, zAsyncDeleteBankTransferResponse, zAsyncDeleteBillCreditMemoResponse, zAsyncDeleteBillPaymentResponse, zAsyncDeleteBillResponse, zAsyncDeleteExpenseResponse, zAsyncDeleteInvoiceCreditMemoResponse, zAsyncDeleteInvoicePaymentResponse, zAsyncDeleteInvoiceResponse, zAsyncDeleteItemResponse, zAsyncDeleteJournalEntryResponse, zAsyncDeletePaymentTermResponse, zAsyncDeletePurchaseOrderResponseResponse, zAsyncDeleteVendorResponse, zAsyncResponsePayload, zAsyncWriteParams, zAsynchronousJob, zAttachment, zAttachmentFileResponse, zAttachmentResponse, zBalance, zBalanceSheet, zBalanceSheetResultWithConnection, zBankAccount, zBankAccountBalance, zBankAccountBalanceResponseWithConnection, zBankAccountDetails, zBankAccountDetailsResponseWithConnection, zBankAccountResponseWithConnection, zBankDeposit, zBankDepositAttachmentsResponse, zBankDepositResponse, zBankDepositResponseWithConnection, zBankFeedAccount, zBankFeedAccountMappingUi, zBankFeedAccountMappingUiResponse, zBankFeedAccountResponse, zBankFeedAccountResponseWithConnection, zBankFeedOtp, zBankFeedOtpResponse, zBankFeedTransaction, zBankFeedTransactionResponse, zBankFeedTransactionResponseWithConnection, zBankTransaction, zBankTransactionResponseWithConnection, zBankTransfer, zBankTransferAttachmentsResponse, zBankTransferResponse, zBankTransferResponseWithConnection, zBigCommerceCredentials, zBill, zBillAttachmentsResponse, zBillCreditApplication, zBillCreditApplicationResponse, zBillCreditMemo, zBillCreditMemoResponse, zBillCreditMemoResponseWithConnection, zBillCreditUnapplication, zBillCreditUnapplicationRequest, zBillCreditUnapplicationResponse, zBillPayment, zBillPaymentResponse, zBillPaymentResponseWithConnection, zBillResponse, zBillResponseWithConnection, zCampaign, zCampaignDailiesParams, zCampaignDaily, zCampaignResponseWithConnection, zCancelCommerceCheckoutSessionData, zCancelCommerceCheckoutSessionResponse, zCancelCommerceCheckoutSessionUcpData, zCancelCommerceCheckoutSessionUcpResponse, zCashFlowStatement, zClass, zClassResponse, zClassResponseWithConnection, zClassicListParams, zCommerceMetricPathParam, zCommonGetParams, zCommonGetParamsWithExpand, zCommonGetParamsWithIdType, zCompanyInfo20230207, zCompanyInfo20240430, zCompanyInfo20240430ResponseWithConnection, zCompleteCommerceCheckoutSessionData, zCompleteCommerceCheckoutSessionResponse, zCompleteCommerceCheckoutSessionUcpData, zCompleteCommerceCheckoutSessionUcpResponse, zConnection, zConnectionResponse, zCreateAccount, zCreateAccountData, zCreateAccountResponse, zCreateAccountResponse2, zCreateAccountingCustomer, zCreateAccountingCustomerRefund, zCreateAccountingCustomerRefundResponse, zCreateAccountingCustomerResponse, zCreateAccountingItemResponse, zCreateAttachmentBody, zCreateBankDeposit, zCreateBankDepositAttachmentData, zCreateBankDepositAttachmentResponse, zCreateBankDepositData, zCreateBankDepositResponse, zCreateBankDepositResponse2, zCreateBankFeedAccount, zCreateBankFeedAccountData, zCreateBankFeedAccountMappingLink, zCreateBankFeedAccountMappingLinkData, zCreateBankFeedAccountMappingLinkResponse, zCreateBankFeedAccountResponse, zCreateBankFeedAccountResponse2, zCreateBankFeedOtp, zCreateBankFeedOtpData, zCreateBankFeedOtpResponse, zCreateBankFeedTransactionData, zCreateBankFeedTransactionResponse, zCreateBankFeedTransactions, zCreateBankTransfer, zCreateBankTransferAttachmentData, zCreateBankTransferAttachmentResponse, zCreateBankTransferData, zCreateBankTransferResponse, zCreateBankTransferResponse2, zCreateBill, zCreateBillAttachmentData, zCreateBillAttachmentResponse, zCreateBillCreditApplication, zCreateBillCreditApplicationData, zCreateBillCreditApplicationResponse, zCreateBillCreditApplicationResponse2, zCreateBillCreditApplicationUnapplyData, zCreateBillCreditApplicationUnapplyResponse, zCreateBillCreditMemo, zCreateBillCreditMemoData, zCreateBillCreditMemoResponse, zCreateBillCreditMemoResponse2, zCreateBillCreditUnapplication, zCreateBillData, zCreateBillPayment, zCreateBillPaymentData, zCreateBillPaymentResponse, zCreateBillPaymentResponse2, zCreateBillResponse, zCreateBillResponse2, zCreateClass, zCreateClassData, zCreateClassResponse, zCreateClassResponse2, zCreateCommerceCheckoutSessionData, zCreateCommerceCheckoutSessionResponse, zCreateCommerceCheckoutSessionUcpData, zCreateCommerceCheckoutSessionUcpResponse, zCreateCommerceOrderData, zCreateCommerceOrderResponse, zCreateCommerceProductData, zCreateCommerceProductResponse, zCreateCommerceProductVariantData, zCreateCommerceProductVariantResponse, zCreateConnectionBackfillBody, zCreateConnectionBackfillResponse, zCreateConnectionBody, zCreateConnectionData, zCreateConnectionIncrementalSyncRequest, zCreateConnectionIncrementalSyncResponse, zCreateConnectionPlatforms, zCreateConnectionResponse, zCreateConnectionSyncConfigData, zCreateConnectionSyncConfigResponse, zCreateCreateAccountRequest, zCreateCreateAccountingCustomerRefundRequest, zCreateCreateAccountingCustomerRequest, zCreateCreateBankDepositRequest, zCreateCreateBankFeedAccountRequest, zCreateCreateBankFeedTransactionsRequest, zCreateCreateBankTransferRequest, zCreateCreateBillCreditApplicationRequest, zCreateCreateBillCreditMemoRequest, zCreateCreateBillPaymentRequest, zCreateCreateBillRequest, zCreateCreateClassRequest, zCreateCreateDepartmentRequest, zCreateCreateExpenseRequest, zCreateCreateInvoiceCreditApplicationRequest, zCreateCreateInvoiceCreditMemoRequest, zCreateCreateInvoiceCreditUnapplicationRequest, zCreateCreateInvoicePaymentRequest, zCreateCreateInvoiceRequest, zCreateCreateItemRequest, zCreateCreateJournalEntryRequest, zCreateCreatePaymentTermRequest, zCreateCreatePurchaseOrderRequest, zCreateCreateSalesOrderRequest, zCreateCreateSalesReceiptRequest, zCreateCreateTaxRateRequest, zCreateCreateVendorRequest, zCreateCustomFieldsData, zCreateCustomFieldsResponse, zCreateCustomerData, zCreateCustomerRefundData, zCreateCustomerRefundResponse, zCreateCustomerResponse, zCreateDepartment, zCreateDepartmentData, zCreateDepartmentResponse, zCreateDepartmentResponse2, zCreateEntityWithCustomFieldsPage, zCreateEntityWithCustomFieldsPageResponse, zCreateExpense, zCreateExpenseAttachmentData, zCreateExpenseAttachmentResponse, zCreateExpenseData, zCreateExpenseResponse, zCreateExpenseResponse2, zCreateFulfillmentPathParams, zCreateInvoice, zCreateInvoiceAttachmentData, zCreateInvoiceAttachmentResponse, zCreateInvoiceCreditApplication, zCreateInvoiceCreditApplicationData, zCreateInvoiceCreditApplicationResponse, zCreateInvoiceCreditApplicationResponse2, zCreateInvoiceCreditApplicationUnapplyData, zCreateInvoiceCreditApplicationUnapplyResponse, zCreateInvoiceCreditMemo, zCreateInvoiceCreditMemoData, zCreateInvoiceCreditMemoResponse, zCreateInvoiceCreditMemoResponse2, zCreateInvoiceCreditUnapplication, zCreateInvoiceCreditUnapplicationResponse, zCreateInvoiceData, zCreateInvoicePayment, zCreateInvoicePaymentData, zCreateInvoicePaymentResponse, zCreateInvoicePaymentResponse2, zCreateInvoiceResponse, zCreateInvoiceResponse2, zCreateItem, zCreateItemData, zCreateItemResponse, zCreateJournalEntry, zCreateJournalEntryAttachmentData, zCreateJournalEntryAttachmentResponse, zCreateJournalEntryData, zCreateJournalEntryResponse, zCreateJournalEntryResponse2, zCreateOrderBody, zCreateOrderFulfillmentBody, zCreateOrderFulfillmentResponse, zCreateOrderResponse, zCreatePaymentTerm, zCreatePaymentTermData, zCreatePaymentTermResponse, zCreatePaymentTermResponse2, zCreateProduct, zCreateProductBody, zCreateProductResponse, zCreatePurchaseOrder, zCreatePurchaseOrder20230207Response, zCreatePurchaseOrderData, zCreatePurchaseOrderResponse, zCreateSaleOrderData, zCreateSaleOrderResponse, zCreateSaleReceiptData, zCreateSaleReceiptResponse, zCreateSalesOrder, zCreateSalesOrderResponse, zCreateSalesReceipt, zCreateSalesReceiptResponse, zCreateSupplierEnablementCardActivationData, zCreateSupplierEnablementCardActivationJobData, zCreateSupplierEnablementCardActivationJobResponse, zCreateSupplierEnablementCardActivationResponse, zCreateSupplierEnablementEnrichmentData, zCreateSupplierEnablementEnrichmentResponse, zCreateSupplierEnablementEnrichmentResponseResponse, zCreateSupplierEnablementMerchantCardActivation, zCreateSupplierEnablementMerchantCardActivationRequest, zCreateSupplierEnablementVendorCardActivation, zCreateSupplierEnablementVendorCardActivationRequest, zCreateSyncPlatformsPlatformByPlatformData, zCreateSyncPlatformsPlatformByPlatformResponse, zCreateTaxRate, zCreateTaxRateData, zCreateTaxRateResponse, zCreateTaxRateResponse2, zCreateUpdateAccountRequest, zCreateUpdateAccountingCustomerRequest, zCreateUpdateBankDepositRequest, zCreateUpdateBankFeedAccountRequest, zCreateUpdateBankTransferRequest, zCreateUpdateBillCreditMemoRequest, zCreateUpdateBillPaymentRequest, zCreateUpdateBillRequest, zCreateUpdateExpenseRequest, zCreateUpdateInvoiceCreditMemoRequest, zCreateUpdateInvoicePaymentRequest, zCreateUpdateInvoiceRequest, zCreateUpdateItemRequest, zCreateUpdateJournalEntryRequest, zCreateUpdatePurchaseOrderRequest, zCreateUpdateSalesOrderRequest, zCreateUpdateVendorRequest, zCreateVariantBody, zCreateVendor, zCreateVendorData, zCreateVendorResponse, zCreateVendorResponse2, zCurrency, zCurrencyResponseWithConnection, zCustomField, zCustomFieldsGetParams, zCustomFieldsPageGenericEntity, zCustomFieldsPageGenericEntityResponse, zCustomFieldsPagePathParams, zCustomer, zCustomerGroup, zCustomerGroups, zCustomers, zCustomersParams, zDeleteAccountingCustomerRefundResponse, zDeleteBankDepositData, zDeleteBankDepositResponse, zDeleteBankDepositResponse2, zDeleteBankFeedAccountData, zDeleteBankFeedAccountResponse, zDeleteBankFeedAccountResponse2, zDeleteBankTransferData, zDeleteBankTransferResponse, zDeleteBankTransferResponse2, zDeleteBillCreditMemoData, zDeleteBillCreditMemoResponse, zDeleteBillCreditMemoResponse2, zDeleteBillData, zDeleteBillPaymentData, zDeleteBillPaymentResponse, zDeleteBillPaymentResponse2, zDeleteBillResponse, zDeleteBillResponse2, zDeleteCommerceProductData, zDeleteCommerceProductResponse, zDeleteCommerceProductVariantData, zDeleteCommerceProductVariantResponse, zDeleteConnectionData, zDeleteConnectionPathParams, zDeleteConnectionResponse, zDeleteConnectionResponse2, zDeleteConnectionSyncConfigData, zDeleteCustomerRefundData, zDeleteCustomerRefundResponse, zDeleteExpenseData, zDeleteExpenseResponse, zDeleteExpenseResponse2, zDeleteInvoiceCreditMemoData, zDeleteInvoiceCreditMemoResponse, zDeleteInvoiceCreditMemoResponse2, zDeleteInvoiceData, zDeleteInvoicePaymentData, zDeleteInvoicePaymentResponse, zDeleteInvoicePaymentResponse2, zDeleteInvoiceResponse, zDeleteInvoiceResponse2, zDeleteItemData, zDeleteItemResponse, zDeleteItemResponse2, zDeleteJournalEntryData, zDeleteJournalEntryResponse, zDeleteJournalEntryResponse2, zDeletePaymentTermData, zDeletePaymentTermResponse, zDeletePaymentTermResponse2, zDeleteProductResponse, zDeletePurchaseOrderData, zDeletePurchaseOrderResponse, zDeletePurchaseOrderResponseResponse, zDeleteSyncPlatformsPlatformByPlatformData, zDeleteVariantPathParams, zDeleteVariantResponse, zDeleteVendorData, zDeleteVendorResponse, zDeleteVendorResponse2, zDepartment, zDepartmentResponse, zDepartmentResponseWithConnection, zDownloadBankDepositAttachmentData, zDownloadBankDepositAttachmentResponse, zDownloadBankTransferAttachmentData, zDownloadBankTransferAttachmentResponse, zDownloadBillAttachmentData, zDownloadBillAttachmentResponse, zDownloadExpenseAttachmentData, zDownloadExpenseAttachmentResponse, zDownloadInvoiceAttachmentData, zDownloadInvoiceAttachmentResponse, zDownloadJournalEntryAttachmentData, zDownloadJournalEntryAttachmentResponse, zEbayCredentials, zEvent, zExchangeTokenBody, zExchangeTokenData, zExchangeTokenResponse, zExchangeTokenResponse2, zExpense, zExpenseAttachmentsResponse, zExpenseResponse, zExpenseResponseWithConnection, zFetchAccountData, zFetchAccountResponse, zFetchAdsAccountData, zFetchAdsAccountResponse, zFetchAdsCampaignData, zFetchAdsCampaignResponse, zFetchBankDepositAttachmentData, zFetchBankDepositAttachmentResponse, zFetchBankDepositData, zFetchBankDepositResponse, zFetchBankFeedAccountData, zFetchBankFeedAccountResponse, zFetchBankFeedTransactionData, zFetchBankFeedTransactionResponse, zFetchBankTransferAttachmentData, zFetchBankTransferAttachmentResponse, zFetchBankTransferData, zFetchBankTransferResponse, zFetchBankingBankAccountBalanceData, zFetchBankingBankAccountBalanceResponse, zFetchBankingBankAccountData, zFetchBankingBankAccountDetailsData, zFetchBankingBankAccountDetailsResponse, zFetchBankingBankAccountResponse, zFetchBankingBankTransactionData, zFetchBankingBankTransactionResponse, zFetchBillCreditMemoData, zFetchBillCreditMemoResponse, zFetchBillData, zFetchBillPaymentData, zFetchBillPaymentResponse, zFetchBillResponse, zFetchClassData, zFetchClassResponse, zFetchCommerceCheckoutSessionData, zFetchCommerceCheckoutSessionResponse, zFetchCommerceCheckoutSessionUcpData, zFetchCommerceCheckoutSessionUcpResponse, zFetchCommerceCustomerData, zFetchCommerceCustomerGroupData, zFetchCommerceCustomerGroupResponse, zFetchCommerceCustomerResponse, zFetchCommerceHriDepartmentData, zFetchCommerceHriDepartmentResponse, zFetchCommerceHriEmployeeData, zFetchCommerceHriEmployeeResponse, zFetchCommerceHriOrganizationData, zFetchCommerceHriOrganizationResponse, zFetchCommerceMetricData, zFetchCommerceMetricResponse, zFetchCommerceOrderData, zFetchCommerceOrderResponse, zFetchCommerceProductData, zFetchCommerceProductResponse, zFetchCommerceTransactionData, zFetchCommerceTransactionResponse, zFetchConnectionData, zFetchConnectionResponse, zFetchConnectionStatusData, zFetchConnectionStatusResponse, zFetchConnectionSyncConfigData, zFetchConnectionSyncConfigResponse, zFetchCurrencyData, zFetchCurrencyResponse, zFetchCustomerData, zFetchCustomerRefundData, zFetchCustomerRefundResponse, zFetchCustomerResponse, zFetchDepartmentData, zFetchDepartmentResponse, zFetchExpenseAttachmentData, zFetchExpenseAttachmentResponse, zFetchExpenseData, zFetchExpenseResponse, zFetchInvoiceAttachmentData, zFetchInvoiceAttachmentResponse, zFetchInvoiceCreditMemoData, zFetchInvoiceCreditMemoResponse, zFetchInvoiceData, zFetchInvoicePaymentData, zFetchInvoicePaymentResponse, zFetchInvoicePdfLinkData, zFetchInvoicePdfLinkResponse, zFetchInvoiceResponse, zFetchItemData, zFetchItemResponse, zFetchJobData, zFetchJobResponse, zFetchJournalEntryAttachmentData, zFetchJournalEntryAttachmentResponse, zFetchJournalEntryData, zFetchJournalEntryResponse, zFetchLocationData, zFetchLocationResponse, zFetchMetricData, zFetchMetricResponse, zFetchPaymentMethodData, zFetchPaymentMethodResponse, zFetchPaymentTermData, zFetchPaymentTermResponse, zFetchProjectData, zFetchProjectResponse, zFetchPurchaseOrderData, zFetchPurchaseOrderResponse, zFetchSaleOrderData, zFetchSaleOrderResponse, zFetchSaleReceiptData, zFetchSaleReceiptResponse, zFetchSubsidiaryData, zFetchSubsidiaryResponse, zFetchSupplierEnablementCardActivationData, zFetchSupplierEnablementCardActivationResponse, zFetchSupplierEnablementMerchantData, zFetchSupplierEnablementMerchantResponse, zFetchSyncPlatformsPlatformByPlatformData, zFetchSyncPlatformsPlatformByPlatformResponse, zFetchTaskData, zFetchTaskResponse, zFetchTaxAgencyData, zFetchTaxAgencyResponse, zFetchTaxAreaData, zFetchTaxAreaResponse, zFetchTaxRateData, zFetchTaxRateResponse, zFetchTransactionData, zFetchTransactionResponse, zFetchVendorData, zFetchVendorResponse, zFetchWebhooksIdByIdData, zFetchWebhooksIdByIdResponse, zFetchWebhooksIdPlatformDataConfigPlatformDataConfigData, zFetchWebhooksIdPlatformDataConfigPlatformDataConfigResponse, zFinancialReport, zFnacCredentials, zFulfillCommerceOrderData, zFulfillCommerceOrderResponse, zGeneralLedgerLineItem, zGetAccessTokenConnectionResponse, zGetAsyncJobPathParams, zGetAttachmentFilePathParams, zGetAttachmentPathParams, zGetAttachmentQueryParams, zGetBalanceResponse, zGetConnectionStatusResponse, zGetCustomerGroupResponseWithConnection, zGetCustomerResponse, zGetJsonPathConfigPathParams, zGetJsonPathConfigResponse, zGetOrderQuery, zGetOrderResponse, zGetProductResponse, zGetProductsQuery, zGetStoreResponse, zGetSupplierEnablementEnrichmentsResponse, zGetSupplierEnablementMerchantEnrichmentResponse, zGetTransactionPdfLinkParams, zGetTransactionsResponse, zGetWebhookConfigPathParams, zHrisDepartment, zHrisDepartmentResponseWithConnection, zHrisEmployee, zHrisEmployeeResponseWithConnection, zHrisOrganization, zHrisOrganizationResponseWithConnection, zIdPathParam, zIncomeStatement, zInvalidateAccessTokenData, zInvalidateAccessTokenResponse, zInvalidateAccessTokenResponse2, zInvoice, zInvoiceAttachmentsResponse, zInvoiceCreditApplication, zInvoiceCreditApplicationResponse, zInvoiceCreditMemo, zInvoiceCreditMemoResponse, zInvoiceCreditMemoResponseWithConnection, zInvoiceCreditUnapplication, zInvoiceCreditUnapplicationResponse, zInvoicePayment, zInvoicePaymentResponse, zInvoicePaymentResponseWithConnection, zInvoiceResponse, zInvoiceResponseWithConnection, zInvoiceTransactionPdfLinkResponse, zInvoicesParams, zJournalEntry, zJournalEntryAttachmentsResponse, zJournalEntryResponse, zJournalEntryResponseWithConnection, zLazadaCredentials, zListAccountResponseWithConnection, zListAccountingCustomerRefundResponseWithConnection, zListAccountingCustomerResponseWithConnection, zListAccountingItemResponseWithConnection, zListAccountingTransactionResponseWithConnection, zListAccountsData, zListAccountsParams, zListAccountsResponse, zListAdsAccountResponseWithConnection, zListAdsAccountsData, zListAdsAccountsResponse, zListAdsCampaignDailiesData, zListAdsCampaignDailiesResponse, zListAdsCampaignsData, zListAdsCampaignsResponse, zListAttachmentsByEntityPathParams, zListAttachmentsByEntityQueryParams, zListAttachmentsForABankDepositData, zListAttachmentsForABankDepositResponse, zListAttachmentsForABankTransferData, zListAttachmentsForABankTransferResponse, zListAttachmentsForABillData, zListAttachmentsForABillResponse, zListAttachmentsForAExpenseData, zListAttachmentsForAExpenseResponse, zListAttachmentsForAInvoiceData, zListAttachmentsForAInvoiceResponse, zListAttachmentsForAJournalEntryData, zListAttachmentsForAJournalEntryResponse, zListBalanceSheetResultResponse, zListBalanceSheetsData, zListBalanceSheetsResponse, zListBankAccountResponseWithConnection, zListBankDepositResponseWithConnection, zListBankDepositsData, zListBankDepositsResponse, zListBankFeedAccountResponseWithConnection, zListBankFeedAccountsData, zListBankFeedAccountsResponse, zListBankFeedTransactionResponseResponse, zListBankFeedTransactionResponseWithConnection, zListBankFeedTransactionsData, zListBankFeedTransactionsResponse, zListBankTransactionResponseWithConnection, zListBankTransferResponseWithConnection, zListBankTransfersData, zListBankTransfersResponse, zListBankingBankAccountsData, zListBankingBankAccountsResponse, zListBankingBankTransactionsData, zListBankingBankTransactionsResponse, zListBillCreditMemoResponseWithConnection, zListBillCreditMemosData, zListBillCreditMemosResponse, zListBillPaymentResponseWithConnection, zListBillPaymentsData, zListBillPaymentsResponse, zListBillResponseWithConnection, zListBillsData, zListBillsParams, zListBillsResponse, zListCampaignDailyResponseWithConnection, zListCampaignResponseWithConnection, zListCashFlowStatementResponseWithConnection, zListCashFlowStatementsData, zListCashFlowStatementsResponse, zListClassResponseWithConnection, zListClassesData, zListClassesResponse, zListCommerceBalancesData, zListCommerceBalancesResponse, zListCommerceCustomerGroupsData, zListCommerceCustomerGroupsResponse, zListCommerceCustomersData, zListCommerceCustomersResponse, zListCommerceHriDepartmentsData, zListCommerceHriDepartmentsResponse, zListCommerceHriEmployeesData, zListCommerceHriEmployeesResponse, zListCommerceHriOrganizationsData, zListCommerceHriOrganizationsResponse, zListCommerceOrdersData, zListCommerceOrdersResponse, zListCommercePayoutsData, zListCommercePayoutsResponse, zListCommerceProductCategoriesData, zListCommerceProductCategoriesResponse, zListCommerceProductsData, zListCommerceProductsResponse, zListCommerceStoresData, zListCommerceStoresResponse, zListCommerceSubscriptionsData, zListCommerceSubscriptionsResponse, zListCommerceSupplierEnablementEnrichmentsData, zListCommerceSupplierEnablementEnrichmentsResponse, zListCommerceTransactionsData, zListCommerceTransactionsResponse, zListCompanyInfosData, zListCompanyInfosResponse, zListConnectionsData, zListConnectionsQueryParams, zListConnectionsResponse, zListConnectionsResponse2, zListCurrenciesData, zListCurrenciesResponse, zListCurrencyResponseWithConnection, zListCustomFieldsData, zListCustomFieldsResponse, zListCustomerGroupsQuery, zListCustomerGroupsResponseWithConnection, zListCustomerRefundsData, zListCustomerRefundsResponse, zListCustomersData, zListCustomersQuery, zListCustomersResponse, zListCustomersResponse2, zListDepartmentResponseWithConnection, zListDepartmentsData, zListDepartmentsResponse, zListEventResponse, zListEventsData, zListEventsParams, zListEventsResponse, zListExpenseResponseWithConnection, zListExpensesData, zListExpensesParams, zListExpensesResponse, zListHrisDepartmentResponseWithConnection, zListHrisEmployeeResponseWithConnection, zListHrisOrganizationResponseWithConnection, zListIncomeStatementResponseWithConnection, zListIncomeStatementsData, zListIncomeStatementsResponse, zListInvoiceCreditMemoResponseWithConnection, zListInvoiceCreditMemosData, zListInvoiceCreditMemosResponse, zListInvoicePaymentResponseWithConnection, zListInvoicePaymentsData, zListInvoicePaymentsResponse, zListInvoiceResponseWithConnection, zListInvoicesData, zListInvoicesResponse, zListItemsData, zListItemsParams, zListItemsResponse, zListJournalEntriesData, zListJournalEntriesResponse, zListJournalEntryResponseWithConnection, zListListCashFlowStatementResponseResponse, zListListIncomeStatementResponseResponse, zListLocationResponseWithConnection, zListLocationsData, zListLocationsResponse, zListOrdersQuery, zListOrdersResponse, zListParams, zListParamsWithClassicFilters, zListPaymentMethodResponseWithConnection, zListPaymentMethodsData, zListPaymentMethodsResponse, zListPaymentTermResponseWithConnection, zListPaymentTermsData, zListPaymentTermsResponse, zListPayoutsQuery, zListPayoutsResponse, zListProductCategoriesQuery, zListProductCategoriesResponse, zListProductsQuery, zListProductsResponse, zListProjectResponseWithConnection, zListProjectsData, zListProjectsResponse, zListPurchaseOrderResponseWithConnection, zListPurchaseOrdersData, zListPurchaseOrdersResponse, zListReportsData, zListReportsResponse, zListSaleOrdersData, zListSaleOrdersResponse, zListSaleReceiptsData, zListSaleReceiptsResponse, zListSalesOrderResponseWithConnection, zListSalesReceiptResponseWithConnection, zListSubscriptionsResponse, zListSubsidiariesData, zListSubsidiariesResponse, zListSubsidiaryResponseWithConnection, zListSupplierEnablementCardActivationResponse, zListSupplierEnablementCardActivationsData, zListSupplierEnablementCardActivationsResponse, zListSupplierEnablementEnrichmentsData, zListSupplierEnablementEnrichmentsResponse, zListSupplierEnablementEnrichmentsResponse2, zListTaskResponseWithConnection, zListTasksData, zListTasksResponse, zListTaxAgenciesData, zListTaxAgenciesResponse, zListTaxAgencyResponseWithConnection, zListTaxAreaResponseWithConnection, zListTaxAreasData, zListTaxAreasResponse, zListTaxRateResponseWithConnection, zListTaxRatesData, zListTaxRatesResponse, zListTransactionsData, zListTransactionsQuery, zListTransactionsResponse, zListTransactionsResponse2, zListVendorResponseWithConnection, zListVendorsData, zListVendorsResponse, zListWebhooksData, zListWebhooksResponse, zLocation, zLocationResponseWithConnection, zMagentoCredentials, zNetsuiteCredentials, zOrder, zOrderTransaction, zOrders, zPatchConnectionSyncConfigRequest, zPatchPlatformSyncConfigRequest, zPatchProductResponse, zPaymentMethod, zPaymentMethodResponseWithConnection, zPaymentTerm, zPaymentTermResponse, zPaymentTermResponseWithConnection, zPayout, zPayouts, zPlatform, zPlatformSyncConfigPathParams, zPostAttachmentPathParams, zPostAttachmentResponse, zPostPlatformSyncConfigRequest, zPrestaShopCredentials, zProduct, zProductCategory, zProject, zProjectResponseWithConnection, zPurchaseOrder, zPurchaseOrder20230207, zPurchaseOrder20230207Response, zPurchaseOrderResponseWithConnection, zQuickbooksCredentials, zReportQuery, zRutterIdPathParams, zSageIntacctV2Credentials, zSalesOrder, zSalesOrderResponse, zSalesOrderResponseWithConnection, zSalesReceipt, zSalesReceiptResponse, zSalesReceiptResponseWithConnection, zScheduleBackfillData, zScheduleBackfillResponse, zScheduleIncrementalSyncData, zScheduleIncrementalSyncResponse, zShoperCredentials, zShopifyCredentials, zShopifyPrivateCredentials, zShopifyPublicCredentials, zSmartSyncSupportedPlatform, zSquareCredentials, zStore, zStripeCredentials, zSubscription, zSubscriptionItem, zSubscriptions, zSubsidiary, zSubsidiaryResponseWithConnection, zSupplierEnablementCardActivationResponse, zSupplierEnablementEnrichmentResponse, zSupplierEnablementEnrichmentResponseResponse, zSyncConfiguration, zSyncPlatformsPlatformData, zSyncPlatformsPlatformResponse, zTask, zTaskResponseWithConnection, zTaxAgency, zTaxAgencyResponseWithConnection, zTaxArea, zTaxAreaResponseWithConnection, zTaxRate, zTaxRateResponse, zTaxRateResponseWithConnection, zTransaction, zTransactions, zUcpCancelCheckoutSessionRequest, zUcpCancelCheckoutSessionResponse, zUcpCheckoutSessionPathParams, zUcpCompleteCheckoutSessionRequest, zUcpCompleteCheckoutSessionResponse, zUcpCreateCheckoutSessionPathParams, zUcpCreateCheckoutSessionRequest, zUcpCreateCheckoutSessionResponse, zUcpGetCheckoutSessionResponse, zUcpUpdateCheckoutSessionRequest, zUcpUpdateCheckoutSessionResponse, zUpdateAccount, zUpdateAccountData, zUpdateAccountResponse, zUpdateAccountingCustomer, zUpdateBankDeposit, zUpdateBankDepositData, zUpdateBankDepositResponse, zUpdateBankFeedAccount, zUpdateBankFeedAccountData, zUpdateBankFeedAccountResponse, zUpdateBankTransfer, zUpdateBankTransferData, zUpdateBankTransferResponse, zUpdateBill, zUpdateBillCreditMemo, zUpdateBillCreditMemoData, zUpdateBillCreditMemoResponse, zUpdateBillData, zUpdateBillPayment, zUpdateBillPaymentData, zUpdateBillPaymentResponse, zUpdateBillResponse, zUpdateCommerceCheckoutSessionData, zUpdateCommerceCheckoutSessionResponse, zUpdateCommerceCheckoutSessionUcpData, zUpdateCommerceCheckoutSessionUcpResponse, zUpdateCommerceOrderData, zUpdateCommerceOrderResponse, zUpdateCommerceProductData, zUpdateCommerceProductResponse, zUpdateCommerceProductVariantData, zUpdateCommerceProductVariantResponse, zUpdateConnectionBody, zUpdateConnectionData, zUpdateConnectionResponse, zUpdateConnectionSyncConfigData, zUpdateConnectionSyncConfigResponse, zUpdateCustomerData, zUpdateCustomerResponse, zUpdateExpense, zUpdateExpenseData, zUpdateExpenseResponse, zUpdateInvoice, zUpdateInvoiceCreditMemo, zUpdateInvoiceCreditMemoData, zUpdateInvoiceCreditMemoResponse, zUpdateInvoiceData, zUpdateInvoicePayment, zUpdateInvoicePaymentData, zUpdateInvoicePaymentResponse, zUpdateInvoiceResponse, zUpdateItem, zUpdateItemData, zUpdateItemResponse, zUpdateJournalEntry, zUpdateJournalEntryData, zUpdateJournalEntryResponse, zUpdateJsonPathConfigPathParams, zUpdateJsonPathConfigQueryParams, zUpdateJsonPathConfigRequest, zUpdateJsonPathConfigResponse, zUpdateOrderBody, zUpdateProduct, zUpdateProductBody, zUpdatePurchaseOrder, zUpdatePurchaseOrderData, zUpdatePurchaseOrderResponse, zUpdateSaleOrderData, zUpdateSaleOrderResponse, zUpdateSalesOrder, zUpdateSupplierEnablementCardActivation, zUpdateSupplierEnablementCardActivationData, zUpdateSupplierEnablementCardActivationRequest, zUpdateSupplierEnablementCardActivationResponse, zUpdateSupplierEnablementMerchantCardActivationData, zUpdateSupplierEnablementMerchantCardActivationResponse, zUpdateVariantBody, zUpdateVariantPathParams, zUpdateVendor, zUpdateVendorData, zUpdateVendorResponse, zUpdateWebhooksIdPlatformDataConfigPlatformDataConfigData, zUpdateWebhooksIdPlatformDataConfigPlatformDataConfigResponse, zVariantResponse, zVendor, zVendorResponse, zVendorResponseWithConnection, zVendorsParams, zWalmartCredentials, zWebhookConfigListResponse, zWebhookConfigResponse, zWooCommerceCredentials, zXeroCredentials, zZohoBooksCredentials } from './chunk-HSUL4OZU.js';
|
|
2
|
+
|
|
3
|
+
// src/generated/types.gen.ts
|
|
4
|
+
var Platform = /* @__PURE__ */ ((Platform2) => {
|
|
5
|
+
Platform2["AMAZON"] = "AMAZON";
|
|
6
|
+
Platform2["EBAY"] = "EBAY";
|
|
7
|
+
Platform2["ETSY"] = "ETSY";
|
|
8
|
+
Platform2["FNAC"] = "FNAC";
|
|
9
|
+
Platform2["WALMART"] = "WALMART";
|
|
10
|
+
Platform2["SHOPEE"] = "SHOPEE";
|
|
11
|
+
Platform2["LAZADA"] = "LAZADA";
|
|
12
|
+
Platform2["MERCADOLIBRE"] = "MERCADOLIBRE";
|
|
13
|
+
Platform2["ALIBABA"] = "ALIBABA";
|
|
14
|
+
Platform2["SHOPLINE"] = "SHOPLINE";
|
|
15
|
+
Platform2["PRESTASHOP"] = "PRESTASHOP";
|
|
16
|
+
Platform2["SHOPIFY"] = "SHOPIFY";
|
|
17
|
+
Platform2["MAGENTO"] = "MAGENTO";
|
|
18
|
+
Platform2["WOO_COMMERCE"] = "WOO_COMMERCE";
|
|
19
|
+
Platform2["SQUARESPACE"] = "SQUARESPACE";
|
|
20
|
+
Platform2["WIX"] = "WIX";
|
|
21
|
+
Platform2["SHOPER"] = "SHOPER";
|
|
22
|
+
Platform2["SHOPLAZZA"] = "SHOPLAZZA";
|
|
23
|
+
Platform2["BIG_COMMERCE"] = "BIG_COMMERCE";
|
|
24
|
+
Platform2["SALLA"] = "SALLA";
|
|
25
|
+
Platform2["ZID"] = "ZID";
|
|
26
|
+
Platform2["COMMERCELAYER"] = "COMMERCELAYER";
|
|
27
|
+
Platform2["WEBFLOW"] = "WEBFLOW";
|
|
28
|
+
Platform2["GUMROAD"] = "GUMROAD";
|
|
29
|
+
Platform2["ECWID"] = "ECWID";
|
|
30
|
+
Platform2["PAYPAL"] = "PAYPAL";
|
|
31
|
+
Platform2["SQUARE"] = "SQUARE";
|
|
32
|
+
Platform2["STRIPE"] = "STRIPE";
|
|
33
|
+
Platform2["CLOVER"] = "CLOVER";
|
|
34
|
+
Platform2["MOLLIE"] = "MOLLIE";
|
|
35
|
+
Platform2["PAYNL"] = "PAYNL";
|
|
36
|
+
Platform2["AUTHORIZENET"] = "AUTHORIZENET";
|
|
37
|
+
Platform2["RECHARGE"] = "RECHARGE";
|
|
38
|
+
Platform2["CHARGIFY"] = "CHARGIFY";
|
|
39
|
+
Platform2["CHARGEBEE"] = "CHARGEBEE";
|
|
40
|
+
Platform2["RECURLY"] = "RECURLY";
|
|
41
|
+
Platform2["KASHFLOW"] = "KASHFLOW";
|
|
42
|
+
Platform2["SAGE_INTACCT"] = "SAGE_INTACCT";
|
|
43
|
+
Platform2["SAGE_INTACCT_V2"] = "SAGE_INTACCT_V2";
|
|
44
|
+
Platform2["DYNAMICS365"] = "DYNAMICS365";
|
|
45
|
+
Platform2["ZOHOBOOKS"] = "ZOHOBOOKS";
|
|
46
|
+
Platform2["EXACTONLINE"] = "EXACTONLINE";
|
|
47
|
+
Platform2["FREEAGENT"] = "FREEAGENT";
|
|
48
|
+
Platform2["QUICKBOOKS"] = "QUICKBOOKS";
|
|
49
|
+
Platform2["QUICKBOOKS_DESKTOP"] = "QUICKBOOKS_DESKTOP";
|
|
50
|
+
Platform2["FRESHBOOKS"] = "FRESHBOOKS";
|
|
51
|
+
Platform2["XERO"] = "XERO";
|
|
52
|
+
Platform2["SAGE_BUSINESS_CLOUD"] = "SAGE_BUSINESS_CLOUD";
|
|
53
|
+
Platform2["SAGE_50"] = "SAGE_50";
|
|
54
|
+
Platform2["NETSUITE"] = "NETSUITE";
|
|
55
|
+
Platform2["WAVE"] = "WAVE";
|
|
56
|
+
Platform2["DUALENTRY"] = "DUALENTRY";
|
|
57
|
+
Platform2["MONEYBIRD"] = "MONEYBIRD";
|
|
58
|
+
Platform2["SAGE200CLOUD"] = "SAGE200CLOUD";
|
|
59
|
+
Platform2["MX"] = "MX";
|
|
60
|
+
Platform2["PLAID"] = "PLAID";
|
|
61
|
+
Platform2["TELLER"] = "TELLER";
|
|
62
|
+
Platform2["ODOO"] = "ODOO";
|
|
63
|
+
Platform2["TALLY"] = "TALLY";
|
|
64
|
+
Platform2["GOOGLE"] = "GOOGLE";
|
|
65
|
+
Platform2["FACEBOOK"] = "FACEBOOK";
|
|
66
|
+
Platform2["TIKTOK"] = "TIKTOK";
|
|
67
|
+
Platform2["INTUIT_BANK_FEEDS"] = "INTUIT_BANK_FEEDS";
|
|
68
|
+
Platform2["SAGE"] = "SAGE";
|
|
69
|
+
Platform2["SAGE_BANK_FEEDS"] = "SAGE_BANK_FEEDS";
|
|
70
|
+
Platform2["QUICKBOOKS_HRIS"] = "QUICKBOOKS_HRIS";
|
|
71
|
+
Platform2["BAMBOO_HR"] = "BAMBOO_HR";
|
|
72
|
+
Platform2["GUSTO"] = "GUSTO";
|
|
73
|
+
return Platform2;
|
|
74
|
+
})(Platform || {});
|
|
75
|
+
var SmartSyncSupportedPlatform = /* @__PURE__ */ ((SmartSyncSupportedPlatform2) => {
|
|
76
|
+
SmartSyncSupportedPlatform2["QUICKBOOKS"] = "QUICKBOOKS";
|
|
77
|
+
SmartSyncSupportedPlatform2["XERO"] = "XERO";
|
|
78
|
+
SmartSyncSupportedPlatform2["NETSUITE"] = "NETSUITE";
|
|
79
|
+
SmartSyncSupportedPlatform2["ZOHOBOOKS"] = "ZOHOBOOKS";
|
|
80
|
+
SmartSyncSupportedPlatform2["SAGE_BUSINESS_CLOUD"] = "SAGE_BUSINESS_CLOUD";
|
|
81
|
+
SmartSyncSupportedPlatform2["FRESHBOOKS"] = "FRESHBOOKS";
|
|
82
|
+
SmartSyncSupportedPlatform2["QUICKBOOKS_DESKTOP"] = "QUICKBOOKS_DESKTOP";
|
|
83
|
+
SmartSyncSupportedPlatform2["DYNAMICS365"] = "DYNAMICS365";
|
|
84
|
+
SmartSyncSupportedPlatform2["MONEYBIRD"] = "MONEYBIRD";
|
|
85
|
+
SmartSyncSupportedPlatform2["SAGE_INTACCT_V2"] = "SAGE_INTACCT_V2";
|
|
86
|
+
SmartSyncSupportedPlatform2["STRIPE"] = "STRIPE";
|
|
87
|
+
return SmartSyncSupportedPlatform2;
|
|
88
|
+
})(SmartSyncSupportedPlatform || {});
|
|
89
|
+
var CreateConnectionPlatforms = /* @__PURE__ */ ((CreateConnectionPlatforms2) => {
|
|
90
|
+
CreateConnectionPlatforms2["BIG_COMMERCE"] = "BIG_COMMERCE";
|
|
91
|
+
CreateConnectionPlatforms2["AMAZON"] = "AMAZON";
|
|
92
|
+
CreateConnectionPlatforms2["SHOPIFY"] = "SHOPIFY";
|
|
93
|
+
CreateConnectionPlatforms2["PRESTASHOP"] = "PRESTASHOP";
|
|
94
|
+
CreateConnectionPlatforms2["SHOPER"] = "SHOPER";
|
|
95
|
+
CreateConnectionPlatforms2["WOO_COMMERCE"] = "WOO_COMMERCE";
|
|
96
|
+
CreateConnectionPlatforms2["MAGENTO"] = "MAGENTO";
|
|
97
|
+
CreateConnectionPlatforms2["EBAY"] = "EBAY";
|
|
98
|
+
CreateConnectionPlatforms2["LAZADA"] = "LAZADA";
|
|
99
|
+
CreateConnectionPlatforms2["FNAC"] = "FNAC";
|
|
100
|
+
CreateConnectionPlatforms2["SQUARE"] = "SQUARE";
|
|
101
|
+
CreateConnectionPlatforms2["STRIPE"] = "STRIPE";
|
|
102
|
+
CreateConnectionPlatforms2["QUICKBOOKS"] = "QUICKBOOKS";
|
|
103
|
+
CreateConnectionPlatforms2["NETSUITE"] = "NETSUITE";
|
|
104
|
+
CreateConnectionPlatforms2["WALMART"] = "WALMART";
|
|
105
|
+
CreateConnectionPlatforms2["XERO"] = "XERO";
|
|
106
|
+
CreateConnectionPlatforms2["ZOHOBOOKS"] = "ZOHOBOOKS";
|
|
107
|
+
CreateConnectionPlatforms2["SAGE_INTACCT_V2"] = "SAGE_INTACCT_V2";
|
|
108
|
+
CreateConnectionPlatforms2["INTUIT_BANK_FEEDS"] = "INTUIT_BANK_FEEDS";
|
|
109
|
+
CreateConnectionPlatforms2["SAGE_BANK_FEEDS"] = "SAGE_BANK_FEEDS";
|
|
110
|
+
return CreateConnectionPlatforms2;
|
|
111
|
+
})(CreateConnectionPlatforms || {});
|
|
112
|
+
|
|
113
|
+
export { CreateConnectionPlatforms, Platform, SmartSyncSupportedPlatform };
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkJCJXW7AE_cjs = require('./chunk-JCJXW7AE.cjs');
|
|
4
|
+
var z2 = require('zod');
|
|
5
|
+
|
|
6
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
7
|
+
|
|
8
|
+
var z2__default = /*#__PURE__*/_interopDefault(z2);
|
|
9
|
+
|
|
10
|
+
// src/constants.ts
|
|
11
|
+
var RUTTER_SANDBOX_BASE_URL = "https://sandbox.rutterapi.com/versioned";
|
|
12
|
+
var RUTTER_PRODUCTION_BASE_URL = "https://production.rutterapi.com/versioned";
|
|
13
|
+
var RUTTER_API_VERSION = "2024-08-31";
|
|
14
|
+
|
|
15
|
+
// src/errors.ts
|
|
16
|
+
var RutterError = class extends Error {
|
|
17
|
+
status;
|
|
18
|
+
errorType;
|
|
19
|
+
errorCode;
|
|
20
|
+
metadata;
|
|
21
|
+
constructor(body, status) {
|
|
22
|
+
super(body.error_message);
|
|
23
|
+
this.name = "RutterError";
|
|
24
|
+
this.status = status;
|
|
25
|
+
this.errorType = body.error_type;
|
|
26
|
+
this.errorCode = body.error_code;
|
|
27
|
+
this.metadata = body.error_metadata;
|
|
28
|
+
}
|
|
29
|
+
get isRateLimited() {
|
|
30
|
+
return this.status === 429 || this.status === 452;
|
|
31
|
+
}
|
|
32
|
+
get isUserActionable() {
|
|
33
|
+
return this.status === 400 || this.status === 409 || this.status === 410 || this.status === 450;
|
|
34
|
+
}
|
|
35
|
+
get humanReadableMessage() {
|
|
36
|
+
return this.metadata?.human_readable ?? this.message;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
var RutterSchemaMismatchError = class extends Error {
|
|
40
|
+
endpoint;
|
|
41
|
+
constructor(endpoint, issues) {
|
|
42
|
+
super(
|
|
43
|
+
`Rutter response from ${endpoint} failed schema validation: ${issues}`
|
|
44
|
+
);
|
|
45
|
+
this.name = "RutterSchemaMismatchError";
|
|
46
|
+
this.endpoint = endpoint;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
// src/client.ts
|
|
51
|
+
var RutterClient = class {
|
|
52
|
+
baseUrl;
|
|
53
|
+
clientId;
|
|
54
|
+
clientSecret;
|
|
55
|
+
constructor(baseUrl, clientId, clientSecret) {
|
|
56
|
+
this.baseUrl = baseUrl;
|
|
57
|
+
this.clientId = clientId;
|
|
58
|
+
this.clientSecret = clientSecret;
|
|
59
|
+
}
|
|
60
|
+
get authHeader() {
|
|
61
|
+
return {
|
|
62
|
+
Authorization: `Basic ${btoa(`${this.clientId}:${this.clientSecret}`)}`
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
async request(method, path, body, options) {
|
|
66
|
+
const url = `${this.baseUrl}${path}`;
|
|
67
|
+
const headers = {
|
|
68
|
+
...this.authHeader,
|
|
69
|
+
"X-Rutter-Version": RUTTER_API_VERSION
|
|
70
|
+
};
|
|
71
|
+
if (options?.idempotencyKey) {
|
|
72
|
+
headers["Idempotency-Key"] = options.idempotencyKey;
|
|
73
|
+
}
|
|
74
|
+
let requestBody;
|
|
75
|
+
if (body !== void 0) {
|
|
76
|
+
headers["Content-Type"] = "application/json";
|
|
77
|
+
requestBody = JSON.stringify(body);
|
|
78
|
+
}
|
|
79
|
+
const response = await fetch(url, {
|
|
80
|
+
method,
|
|
81
|
+
headers,
|
|
82
|
+
body: requestBody
|
|
83
|
+
});
|
|
84
|
+
if (!response.ok) {
|
|
85
|
+
let error;
|
|
86
|
+
try {
|
|
87
|
+
error = await response.json();
|
|
88
|
+
} catch {
|
|
89
|
+
throw new RutterError(
|
|
90
|
+
{
|
|
91
|
+
error_type: "HTTP_ERROR",
|
|
92
|
+
error_code: "non_json_response",
|
|
93
|
+
error_message: `Rutter API returned ${response.status}`
|
|
94
|
+
},
|
|
95
|
+
response.status
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
throw new RutterError(error, response.status);
|
|
99
|
+
}
|
|
100
|
+
return response.json();
|
|
101
|
+
}
|
|
102
|
+
buildPath(path, params) {
|
|
103
|
+
if (!params) return path;
|
|
104
|
+
const query = new URLSearchParams();
|
|
105
|
+
for (const [key, value] of Object.entries(params)) {
|
|
106
|
+
if (value !== void 0) query.set(key, String(value));
|
|
107
|
+
}
|
|
108
|
+
const qs = query.toString();
|
|
109
|
+
return qs ? `${path}?${qs}` : path;
|
|
110
|
+
}
|
|
111
|
+
get(path, params) {
|
|
112
|
+
return this.request("GET", this.buildPath(path, params));
|
|
113
|
+
}
|
|
114
|
+
post(path, body, options) {
|
|
115
|
+
return this.request("POST", path, body, options);
|
|
116
|
+
}
|
|
117
|
+
patch(path, body, options) {
|
|
118
|
+
return this.request("PATCH", path, body, options);
|
|
119
|
+
}
|
|
120
|
+
delete(path, params) {
|
|
121
|
+
return this.request("DELETE", this.buildPath(path, params));
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
var RutterConnectionsApi = class {
|
|
125
|
+
constructor(client) {
|
|
126
|
+
this.client = client;
|
|
127
|
+
}
|
|
128
|
+
async create(params) {
|
|
129
|
+
const endpoint = "/connections";
|
|
130
|
+
const response = await this.client.post(endpoint, params);
|
|
131
|
+
const result = chunkJCJXW7AE_cjs.zConnectionResponse.safeParse(response);
|
|
132
|
+
if (!result.success) {
|
|
133
|
+
throw new RutterSchemaMismatchError(
|
|
134
|
+
endpoint,
|
|
135
|
+
z2__default.default.prettifyError(result.error)
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
return result.data;
|
|
139
|
+
}
|
|
140
|
+
async list() {
|
|
141
|
+
const endpoint = "/connections";
|
|
142
|
+
const response = await this.client.get(endpoint);
|
|
143
|
+
const result = chunkJCJXW7AE_cjs.zListConnectionsResponse.safeParse(response);
|
|
144
|
+
if (!result.success) {
|
|
145
|
+
throw new RutterSchemaMismatchError(
|
|
146
|
+
endpoint,
|
|
147
|
+
z2__default.default.prettifyError(result.error)
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
return result.data;
|
|
151
|
+
}
|
|
152
|
+
async get(accessToken) {
|
|
153
|
+
const endpoint = "/connections";
|
|
154
|
+
const response = await this.client.get(endpoint, {
|
|
155
|
+
access_token: accessToken
|
|
156
|
+
});
|
|
157
|
+
const result = chunkJCJXW7AE_cjs.zGetAccessTokenConnectionResponse.safeParse(response);
|
|
158
|
+
if (!result.success) {
|
|
159
|
+
throw new RutterSchemaMismatchError(
|
|
160
|
+
endpoint,
|
|
161
|
+
z2__default.default.prettifyError(result.error)
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
return result.data;
|
|
165
|
+
}
|
|
166
|
+
async exchangeToken(params) {
|
|
167
|
+
const endpoint = "/item/public_token/exchange";
|
|
168
|
+
const response = await this.client.post(endpoint, params);
|
|
169
|
+
const result = chunkJCJXW7AE_cjs.zExchangeTokenResponse.safeParse(response);
|
|
170
|
+
if (!result.success) {
|
|
171
|
+
throw new RutterSchemaMismatchError(
|
|
172
|
+
endpoint,
|
|
173
|
+
z2__default.default.prettifyError(result.error)
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
return result.data;
|
|
177
|
+
}
|
|
178
|
+
async delete(accessToken) {
|
|
179
|
+
const endpoint = "/connections";
|
|
180
|
+
const response = await this.client.delete(endpoint, {
|
|
181
|
+
access_token: accessToken
|
|
182
|
+
});
|
|
183
|
+
const result = chunkJCJXW7AE_cjs.zDeleteConnectionResponse.safeParse(response);
|
|
184
|
+
if (!result.success) {
|
|
185
|
+
throw new RutterSchemaMismatchError(
|
|
186
|
+
endpoint,
|
|
187
|
+
z2__default.default.prettifyError(result.error)
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
return result.data;
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
var RutterAccountingApi = class {
|
|
194
|
+
constructor(client) {
|
|
195
|
+
this.client = client;
|
|
196
|
+
}
|
|
197
|
+
async getCompanyInfo(accessToken) {
|
|
198
|
+
const endpoint = "/accounting/company_info";
|
|
199
|
+
const response = await this.client.get(endpoint, {
|
|
200
|
+
access_token: accessToken
|
|
201
|
+
});
|
|
202
|
+
const result = chunkJCJXW7AE_cjs.zCompanyInfo20240430ResponseWithConnection.safeParse(response);
|
|
203
|
+
if (!result.success) {
|
|
204
|
+
throw new RutterSchemaMismatchError(
|
|
205
|
+
endpoint,
|
|
206
|
+
z2__default.default.prettifyError(result.error)
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
return result.data;
|
|
210
|
+
}
|
|
211
|
+
async listAccounts(accessToken, params) {
|
|
212
|
+
const endpoint = "/accounting/accounts";
|
|
213
|
+
const response = await this.client.get(endpoint, {
|
|
214
|
+
access_token: accessToken,
|
|
215
|
+
...params
|
|
216
|
+
});
|
|
217
|
+
const result = chunkJCJXW7AE_cjs.zListAccountResponseWithConnection.safeParse(response);
|
|
218
|
+
if (!result.success) {
|
|
219
|
+
throw new RutterSchemaMismatchError(
|
|
220
|
+
endpoint,
|
|
221
|
+
z2__default.default.prettifyError(result.error)
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
return result.data;
|
|
225
|
+
}
|
|
226
|
+
async getAccount(accessToken, id) {
|
|
227
|
+
const endpoint = `/accounting/accounts/${id}`;
|
|
228
|
+
const response = await this.client.get(endpoint, {
|
|
229
|
+
access_token: accessToken
|
|
230
|
+
});
|
|
231
|
+
const result = chunkJCJXW7AE_cjs.zAccountResponseWithConnection.safeParse(response);
|
|
232
|
+
if (!result.success) {
|
|
233
|
+
throw new RutterSchemaMismatchError(
|
|
234
|
+
endpoint,
|
|
235
|
+
z2__default.default.prettifyError(result.error)
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
return result.data;
|
|
239
|
+
}
|
|
240
|
+
async listInvoices(accessToken, params) {
|
|
241
|
+
const endpoint = "/accounting/invoices";
|
|
242
|
+
const response = await this.client.get(endpoint, {
|
|
243
|
+
access_token: accessToken,
|
|
244
|
+
...params
|
|
245
|
+
});
|
|
246
|
+
const result = chunkJCJXW7AE_cjs.zListInvoiceResponseWithConnection.safeParse(response);
|
|
247
|
+
if (!result.success) {
|
|
248
|
+
throw new RutterSchemaMismatchError(
|
|
249
|
+
endpoint,
|
|
250
|
+
z2__default.default.prettifyError(result.error)
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
return result.data;
|
|
254
|
+
}
|
|
255
|
+
async getInvoice(accessToken, id) {
|
|
256
|
+
const endpoint = `/accounting/invoices/${id}`;
|
|
257
|
+
const response = await this.client.get(endpoint, {
|
|
258
|
+
access_token: accessToken
|
|
259
|
+
});
|
|
260
|
+
const result = chunkJCJXW7AE_cjs.zInvoiceResponseWithConnection.safeParse(response);
|
|
261
|
+
if (!result.success) {
|
|
262
|
+
throw new RutterSchemaMismatchError(
|
|
263
|
+
endpoint,
|
|
264
|
+
z2__default.default.prettifyError(result.error)
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
return result.data;
|
|
268
|
+
}
|
|
269
|
+
async createInvoice(accessToken, params, idempotencyKey) {
|
|
270
|
+
const endpoint = "/accounting/invoices";
|
|
271
|
+
const response = await this.client.post(
|
|
272
|
+
`${endpoint}?access_token=${encodeURIComponent(accessToken)}`,
|
|
273
|
+
params,
|
|
274
|
+
idempotencyKey ? { idempotencyKey } : void 0
|
|
275
|
+
);
|
|
276
|
+
const result = chunkJCJXW7AE_cjs.zCreateInvoiceResponse.safeParse(response);
|
|
277
|
+
if (!result.success) {
|
|
278
|
+
throw new RutterSchemaMismatchError(
|
|
279
|
+
endpoint,
|
|
280
|
+
z2__default.default.prettifyError(result.error)
|
|
281
|
+
);
|
|
282
|
+
}
|
|
283
|
+
return result.data;
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
exports.RUTTER_API_VERSION = RUTTER_API_VERSION;
|
|
288
|
+
exports.RUTTER_PRODUCTION_BASE_URL = RUTTER_PRODUCTION_BASE_URL;
|
|
289
|
+
exports.RUTTER_SANDBOX_BASE_URL = RUTTER_SANDBOX_BASE_URL;
|
|
290
|
+
exports.RutterAccountingApi = RutterAccountingApi;
|
|
291
|
+
exports.RutterClient = RutterClient;
|
|
292
|
+
exports.RutterConnectionsApi = RutterConnectionsApi;
|
|
293
|
+
exports.RutterError = RutterError;
|
|
294
|
+
exports.RutterSchemaMismatchError = RutterSchemaMismatchError;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import z__default from 'zod';
|
|
2
|
+
import { zConnectionResponse, zListConnectionsResponse, zGetAccessTokenConnectionResponse, zExchangeTokenResponse, zDeleteConnectionResponse, zCompanyInfo20240430ResponseWithConnection, zListAccountResponseWithConnection, zAccountResponseWithConnection, zListInvoiceResponseWithConnection, zInvoiceResponseWithConnection, CreateInvoice, zCreateInvoiceResponse } from './generated.cjs';
|
|
3
|
+
|
|
4
|
+
interface RutterErrorMetadata {
|
|
5
|
+
source: 'rutter' | 'platform';
|
|
6
|
+
human_readable: string;
|
|
7
|
+
platform?: Record<string, unknown>;
|
|
8
|
+
}
|
|
9
|
+
interface RutterErrorBody {
|
|
10
|
+
error_type: string;
|
|
11
|
+
error_code: string;
|
|
12
|
+
error_message: string;
|
|
13
|
+
error_metadata?: RutterErrorMetadata;
|
|
14
|
+
}
|
|
15
|
+
type RutterPaginationParams = {
|
|
16
|
+
cursor?: string;
|
|
17
|
+
};
|
|
18
|
+
type RutterQueryParams = Record<string, string | number | boolean | undefined>;
|
|
19
|
+
interface RutterRequestOptions {
|
|
20
|
+
idempotencyKey?: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare class RutterClient {
|
|
24
|
+
readonly baseUrl: string;
|
|
25
|
+
private readonly clientId;
|
|
26
|
+
private readonly clientSecret;
|
|
27
|
+
constructor(baseUrl: string, clientId: string, clientSecret: string);
|
|
28
|
+
private get authHeader();
|
|
29
|
+
private request;
|
|
30
|
+
private buildPath;
|
|
31
|
+
get<T>(path: string, params?: RutterQueryParams): Promise<T>;
|
|
32
|
+
post<T>(path: string, body?: unknown, options?: RutterRequestOptions): Promise<T>;
|
|
33
|
+
patch<T>(path: string, body?: unknown, options?: RutterRequestOptions): Promise<T>;
|
|
34
|
+
delete<T>(path: string, params?: RutterQueryParams): Promise<T>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare class RutterError extends Error {
|
|
38
|
+
readonly status: number;
|
|
39
|
+
readonly errorType: string;
|
|
40
|
+
readonly errorCode: string;
|
|
41
|
+
readonly metadata?: RutterErrorMetadata;
|
|
42
|
+
constructor(body: RutterErrorBody, status: number);
|
|
43
|
+
get isRateLimited(): boolean;
|
|
44
|
+
get isUserActionable(): boolean;
|
|
45
|
+
get humanReadableMessage(): string;
|
|
46
|
+
}
|
|
47
|
+
declare class RutterSchemaMismatchError extends Error {
|
|
48
|
+
readonly endpoint: string;
|
|
49
|
+
constructor(endpoint: string, issues: string);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
type TConnectionResponse = z__default.infer<typeof zConnectionResponse>;
|
|
53
|
+
type TListConnectionsResponse = z__default.infer<typeof zListConnectionsResponse>;
|
|
54
|
+
type TExchangeTokenResponse = z__default.infer<typeof zExchangeTokenResponse>;
|
|
55
|
+
type TDeleteConnectionResponse = z__default.infer<typeof zDeleteConnectionResponse>;
|
|
56
|
+
type TGetAccessTokenConnectionResponse = z__default.infer<typeof zGetAccessTokenConnectionResponse>;
|
|
57
|
+
declare class RutterConnectionsApi {
|
|
58
|
+
private readonly client;
|
|
59
|
+
constructor(client: RutterClient);
|
|
60
|
+
create(params: {
|
|
61
|
+
platform: string;
|
|
62
|
+
}): Promise<TConnectionResponse>;
|
|
63
|
+
list(): Promise<TListConnectionsResponse>;
|
|
64
|
+
get(accessToken: string): Promise<TGetAccessTokenConnectionResponse>;
|
|
65
|
+
exchangeToken(params: {
|
|
66
|
+
public_token: string;
|
|
67
|
+
}): Promise<TExchangeTokenResponse>;
|
|
68
|
+
delete(accessToken: string): Promise<TDeleteConnectionResponse>;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
type TCompanyInfoResponse = z__default.infer<typeof zCompanyInfo20240430ResponseWithConnection>;
|
|
72
|
+
type TListAccountsResponse = z__default.infer<typeof zListAccountResponseWithConnection>;
|
|
73
|
+
type TAccountResponse = z__default.infer<typeof zAccountResponseWithConnection>;
|
|
74
|
+
type TListInvoicesResponse = z__default.infer<typeof zListInvoiceResponseWithConnection>;
|
|
75
|
+
type TInvoiceResponse = z__default.infer<typeof zInvoiceResponseWithConnection>;
|
|
76
|
+
type TCreateInvoiceResponse = z__default.infer<typeof zCreateInvoiceResponse>;
|
|
77
|
+
declare class RutterAccountingApi {
|
|
78
|
+
private readonly client;
|
|
79
|
+
constructor(client: RutterClient);
|
|
80
|
+
getCompanyInfo(accessToken: string): Promise<TCompanyInfoResponse>;
|
|
81
|
+
listAccounts(accessToken: string, params?: RutterPaginationParams & RutterQueryParams): Promise<TListAccountsResponse>;
|
|
82
|
+
getAccount(accessToken: string, id: string): Promise<TAccountResponse>;
|
|
83
|
+
listInvoices(accessToken: string, params?: RutterPaginationParams & RutterQueryParams): Promise<TListInvoicesResponse>;
|
|
84
|
+
getInvoice(accessToken: string, id: string): Promise<TInvoiceResponse>;
|
|
85
|
+
createInvoice(accessToken: string, params: CreateInvoice, idempotencyKey?: string): Promise<TCreateInvoiceResponse>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
declare const RUTTER_SANDBOX_BASE_URL = "https://sandbox.rutterapi.com/versioned";
|
|
89
|
+
declare const RUTTER_PRODUCTION_BASE_URL = "https://production.rutterapi.com/versioned";
|
|
90
|
+
declare const RUTTER_API_VERSION = "2024-08-31";
|
|
91
|
+
|
|
92
|
+
export { RUTTER_API_VERSION, RUTTER_PRODUCTION_BASE_URL, RUTTER_SANDBOX_BASE_URL, RutterAccountingApi, RutterClient, RutterConnectionsApi, RutterError, type RutterErrorBody, type RutterErrorMetadata, type RutterPaginationParams, type RutterQueryParams, type RutterRequestOptions, RutterSchemaMismatchError };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import z__default from 'zod';
|
|
2
|
+
import { zConnectionResponse, zListConnectionsResponse, zGetAccessTokenConnectionResponse, zExchangeTokenResponse, zDeleteConnectionResponse, zCompanyInfo20240430ResponseWithConnection, zListAccountResponseWithConnection, zAccountResponseWithConnection, zListInvoiceResponseWithConnection, zInvoiceResponseWithConnection, CreateInvoice, zCreateInvoiceResponse } from './generated.js';
|
|
3
|
+
|
|
4
|
+
interface RutterErrorMetadata {
|
|
5
|
+
source: 'rutter' | 'platform';
|
|
6
|
+
human_readable: string;
|
|
7
|
+
platform?: Record<string, unknown>;
|
|
8
|
+
}
|
|
9
|
+
interface RutterErrorBody {
|
|
10
|
+
error_type: string;
|
|
11
|
+
error_code: string;
|
|
12
|
+
error_message: string;
|
|
13
|
+
error_metadata?: RutterErrorMetadata;
|
|
14
|
+
}
|
|
15
|
+
type RutterPaginationParams = {
|
|
16
|
+
cursor?: string;
|
|
17
|
+
};
|
|
18
|
+
type RutterQueryParams = Record<string, string | number | boolean | undefined>;
|
|
19
|
+
interface RutterRequestOptions {
|
|
20
|
+
idempotencyKey?: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare class RutterClient {
|
|
24
|
+
readonly baseUrl: string;
|
|
25
|
+
private readonly clientId;
|
|
26
|
+
private readonly clientSecret;
|
|
27
|
+
constructor(baseUrl: string, clientId: string, clientSecret: string);
|
|
28
|
+
private get authHeader();
|
|
29
|
+
private request;
|
|
30
|
+
private buildPath;
|
|
31
|
+
get<T>(path: string, params?: RutterQueryParams): Promise<T>;
|
|
32
|
+
post<T>(path: string, body?: unknown, options?: RutterRequestOptions): Promise<T>;
|
|
33
|
+
patch<T>(path: string, body?: unknown, options?: RutterRequestOptions): Promise<T>;
|
|
34
|
+
delete<T>(path: string, params?: RutterQueryParams): Promise<T>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare class RutterError extends Error {
|
|
38
|
+
readonly status: number;
|
|
39
|
+
readonly errorType: string;
|
|
40
|
+
readonly errorCode: string;
|
|
41
|
+
readonly metadata?: RutterErrorMetadata;
|
|
42
|
+
constructor(body: RutterErrorBody, status: number);
|
|
43
|
+
get isRateLimited(): boolean;
|
|
44
|
+
get isUserActionable(): boolean;
|
|
45
|
+
get humanReadableMessage(): string;
|
|
46
|
+
}
|
|
47
|
+
declare class RutterSchemaMismatchError extends Error {
|
|
48
|
+
readonly endpoint: string;
|
|
49
|
+
constructor(endpoint: string, issues: string);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
type TConnectionResponse = z__default.infer<typeof zConnectionResponse>;
|
|
53
|
+
type TListConnectionsResponse = z__default.infer<typeof zListConnectionsResponse>;
|
|
54
|
+
type TExchangeTokenResponse = z__default.infer<typeof zExchangeTokenResponse>;
|
|
55
|
+
type TDeleteConnectionResponse = z__default.infer<typeof zDeleteConnectionResponse>;
|
|
56
|
+
type TGetAccessTokenConnectionResponse = z__default.infer<typeof zGetAccessTokenConnectionResponse>;
|
|
57
|
+
declare class RutterConnectionsApi {
|
|
58
|
+
private readonly client;
|
|
59
|
+
constructor(client: RutterClient);
|
|
60
|
+
create(params: {
|
|
61
|
+
platform: string;
|
|
62
|
+
}): Promise<TConnectionResponse>;
|
|
63
|
+
list(): Promise<TListConnectionsResponse>;
|
|
64
|
+
get(accessToken: string): Promise<TGetAccessTokenConnectionResponse>;
|
|
65
|
+
exchangeToken(params: {
|
|
66
|
+
public_token: string;
|
|
67
|
+
}): Promise<TExchangeTokenResponse>;
|
|
68
|
+
delete(accessToken: string): Promise<TDeleteConnectionResponse>;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
type TCompanyInfoResponse = z__default.infer<typeof zCompanyInfo20240430ResponseWithConnection>;
|
|
72
|
+
type TListAccountsResponse = z__default.infer<typeof zListAccountResponseWithConnection>;
|
|
73
|
+
type TAccountResponse = z__default.infer<typeof zAccountResponseWithConnection>;
|
|
74
|
+
type TListInvoicesResponse = z__default.infer<typeof zListInvoiceResponseWithConnection>;
|
|
75
|
+
type TInvoiceResponse = z__default.infer<typeof zInvoiceResponseWithConnection>;
|
|
76
|
+
type TCreateInvoiceResponse = z__default.infer<typeof zCreateInvoiceResponse>;
|
|
77
|
+
declare class RutterAccountingApi {
|
|
78
|
+
private readonly client;
|
|
79
|
+
constructor(client: RutterClient);
|
|
80
|
+
getCompanyInfo(accessToken: string): Promise<TCompanyInfoResponse>;
|
|
81
|
+
listAccounts(accessToken: string, params?: RutterPaginationParams & RutterQueryParams): Promise<TListAccountsResponse>;
|
|
82
|
+
getAccount(accessToken: string, id: string): Promise<TAccountResponse>;
|
|
83
|
+
listInvoices(accessToken: string, params?: RutterPaginationParams & RutterQueryParams): Promise<TListInvoicesResponse>;
|
|
84
|
+
getInvoice(accessToken: string, id: string): Promise<TInvoiceResponse>;
|
|
85
|
+
createInvoice(accessToken: string, params: CreateInvoice, idempotencyKey?: string): Promise<TCreateInvoiceResponse>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
declare const RUTTER_SANDBOX_BASE_URL = "https://sandbox.rutterapi.com/versioned";
|
|
89
|
+
declare const RUTTER_PRODUCTION_BASE_URL = "https://production.rutterapi.com/versioned";
|
|
90
|
+
declare const RUTTER_API_VERSION = "2024-08-31";
|
|
91
|
+
|
|
92
|
+
export { RUTTER_API_VERSION, RUTTER_PRODUCTION_BASE_URL, RUTTER_SANDBOX_BASE_URL, RutterAccountingApi, RutterClient, RutterConnectionsApi, RutterError, type RutterErrorBody, type RutterErrorMetadata, type RutterPaginationParams, type RutterQueryParams, type RutterRequestOptions, RutterSchemaMismatchError };
|