@tesouro/embedded-components-react 0.5.235 → 0.5.243
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/fixtures/index.d.ts +3544 -505
- package/dist/fixtures/index.js +12 -2
- package/dist/index.d.ts +112 -2
- package/dist/index.js +27 -27
- package/dist/lib/AcceptDisclosuresWidget.js +1 -1
- package/dist/lib/BalancesWidget.js +1 -1
- package/dist/lib/BankAccountOnboardingWidget.js +2 -2
- package/dist/lib/BankAccountsWidget.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/lib/CardDetailsWidget.js +1 -1
- package/dist/lib/CounterpartsWidgetPublic.js +1 -1
- package/dist/lib/CreditCardsWidget.js +1 -1
- package/dist/lib/CustomersWidget.js +1 -1
- package/dist/lib/DebitCardsWidget.js +1 -1
- package/dist/lib/ExpenseManagementWidget.js +1 -1
- package/dist/lib/InsightsWidget.js +2 -2
- package/dist/lib/InvoicingWidget.js +1 -1
- package/dist/lib/LinkedAccountsWidget.js +1 -1
- package/dist/lib/MarketingWidget.js +2 -2
- package/dist/lib/ProductsWidget.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +112 -2
- package/dist/lib/ReceivablesWidget.js +1 -1
- package/dist/lib/SettingsWidget.js +2 -2
- package/dist/lib/TransfersWidget.js +2 -2
- package/dist/lib/UploadReceiptWidget.js +1 -1
- package/dist/lib/WidgetSuite.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/{index5.js → lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js} +18 -18
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/{index3.js → lib/AcceptDisclosuresWidget/resolveAcceptDisclosuresContent.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/{index4.js → lib/AcceptDisclosuresWidget/testIds.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/{index2.js → lib/analytics/events.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/mocks/acceptDisclosures.js +62 -0
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/mocks/labels.js +21 -0
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/scenarios.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/{index3.js → lib/BalancesWidget/BalancesWidgetContext.js} +12 -12
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/{index6.js → lib/BalancesWidget/BalancesWidgetFeature.js} +10 -10
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/{index5.js → lib/BalancesWidget/SingleBalance/SingleBalance.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/{index4.js → lib/BalancesWidget/testIds.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/{index2.js → lib/analytics/events.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/mocks/balances.js +69 -0
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/mocks/labels.js +28 -0
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/scenarios.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index18.js → lib/BankAccountOnboardingWidget/AdditionalOwnersStep.js} +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index26.js → lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js} +50 -50
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index13.js → lib/BankAccountOnboardingWidget/BusinessDetailsStep.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index15.js → lib/BankAccountOnboardingWidget/PersonalDetailsStep.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index16.js → lib/BankAccountOnboardingWidget/additionalOwnerDraft.js} +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index19.js → lib/BankAccountOnboardingWidget/apiMapping.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index23.js → lib/BankAccountOnboardingWidget/applicationStatusView.js} +9 -9
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index20.js → lib/BankAccountOnboardingWidget/buildOnboardingPrefill.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index11.js → lib/BankAccountOnboardingWidget/businessDetailsPanelMapping.js} +10 -10
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index21.js → lib/BankAccountOnboardingWidget/draftApplicationMapping.js} +9 -9
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index2.js → lib/BankAccountOnboardingWidget/fieldInput/formatPhoneNumberInput.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index8.js → lib/BankAccountOnboardingWidget/fieldInput/isValidWebsiteUrl.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index6.js → lib/BankAccountOnboardingWidget/fieldInput/maskIdentifierLast4.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index4.js → lib/BankAccountOnboardingWidget/fieldInput/maskedSsnInput.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index9.js → lib/BankAccountOnboardingWidget/fieldInput/maxBirthDate.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index5.js → lib/BankAccountOnboardingWidget/fieldInput/sanitizeTaxIdInput.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index3.js → lib/BankAccountOnboardingWidget/fieldInput/sanitizeZipCodeInput.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index7.js → lib/BankAccountOnboardingWidget/fieldInput/storedIdentifier.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index25.js → lib/BankAccountOnboardingWidget/hostInitialValues.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index22.js → lib/BankAccountOnboardingWidget/labels.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index14.js → lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js} +9 -9
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index10.js → lib/BankAccountOnboardingWidget/stepSchemas.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index12.js → lib/BankAccountOnboardingWidget/testIds.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index17.js → lib/BankAccountOnboardingWidget/valuesKey.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/{index24.js → lib/analytics/events.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/mocks/bankAccountOnboarding.js +71 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/mocks/fixtures.js +36 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/mocks/labels.js +21 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/scenarios.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/{index8.js → lib/BankAccountsWidget/BankAccountsWidget.js} +11 -11
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/{index2.js → lib/BankAccountsWidget/analytics/events.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/index.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/{index3.js → lib/formatters.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/{index4.js → lib/labels.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/{index5.js → lib/permissions.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/{index6.js → lib/teamMembers.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/{index7.js → lib/useBankAccountsWidget.js} +25 -25
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/mocks/bankAccounts.js +165 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/mocks/fixtures.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/mocks/labels.js +16 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/scenarios.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/{index3.js → lib/BillPayWidgetMonite/BillPayWidgetMonite.js} +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetMonite/index.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/{index8.js → lib/BillPayWidgetNative/BillPayWidgetNative.js} +19 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/{index6.js → lib/BillPayWidgetNative/BillsTab.js} +14 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetNative/index.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/{index7.js → lib/BillPayWidgetNative/labels.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/{index5.js → lib/BillPayWidgetNative/testIds.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/{index2.js → lib/analytics/events.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/billPay.js +339 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/fixtures.js +41 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/labels.js +37 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/scenarios.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/{index13.js → lib/CardDetailsWidget.js} +27 -27
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/{index7.js → lib/activation.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/{index2.js → lib/analytics/events.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/{index10.js → lib/cardControls.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/{index4.js → lib/cardDetailsView.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/{index3.js → lib/formatters.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/{index5.js → lib/labels.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/{index6.js → lib/testIds.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/{index9.js → lib/useActivateCard.js} +16 -16
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/{index11.js → lib/useCardLock.js} +9 -9
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/{index12.js → lib/useEditCardNickname.js} +9 -9
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/{index8.js → lib/useIdScopedRequest.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/mocks/cardDetails.js +54 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/mocks/labels.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/scenarios.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/{index10.js → lib/CardsWidget.js} +14 -14
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/{index11.js → lib/CreditCardsWidget.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/{index12.js → lib/DebitCardsWidget.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/{index2.js → lib/analytics/events.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/{index6.js → lib/formatters.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/{index5.js → lib/labels.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/{index7.js → lib/permissions.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/{index8.js → lib/rows.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/{index4.js → lib/testIds.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/{index9.js → lib/useCardsWidget.js} +17 -17
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/mocks/creditCards.js +89 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/mocks/debitCards.js +182 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/mocks/labels.js +24 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/scenarios.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/{index8.js → lib/CounterpartsWidget/CounterpartsWidget.js} +16 -16
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/{index3.js → lib/CounterpartsWidget/constants.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/{index5.js → lib/CounterpartsWidget/permissions.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/{index4.js → lib/CounterpartsWidget/useCounterpartsTable.js} +10 -10
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/{index7.js → lib/CounterpartsWidget/useCounterpartsWidget.js} +21 -21
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/{index6.js → lib/CounterpartsWidget/viewModels.js} +8 -8
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/{index2.js → lib/analytics/events.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/mocks/counterparts.js +394 -0
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/mocks/labels.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/scenarios.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/{index5.js → lib/CustomersWidget/CustomersWidget.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/{index3.js → lib/CustomersWidgetMonite/CustomersWidgetMonite.js} +8 -8
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/{index4.js → lib/CustomersWidgetNative/CustomersWidgetNative.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/{index2.js → lib/analytics/events.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/scenarios.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/{index19.js → lib/ExpenseManagementWidget/ExpenseManagementWidget.js} +33 -33
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/{index16.js → lib/ExpenseManagementWidget/actionItemLabels.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/{index3.js → lib/ExpenseManagementWidget/analytics/events.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/{index13.js → lib/ExpenseManagementWidget/datePresets.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/{index4.js → lib/ExpenseManagementWidget/entityUserLabel.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/index.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/{index12.js → lib/ExpenseManagementWidget/mapTransactionRow.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/{index5.js → lib/ExpenseManagementWidget/permissions.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/{index17.js → lib/ExpenseManagementWidget/useExpenseActionItems.js} +9 -9
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/{index18.js → lib/ExpenseManagementWidget/useExpenseTabBadgeCounts.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/{index15.js → lib/ExpenseManagementWidget/useExpensesTransactions.js} +10 -10
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/{index14.js → lib/ExpenseManagementWidget/useExpensesTransactionsFilter.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/{index10.js → lib/TransactionDetails/TransactionDetailsActionsFeature.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/{index11.js → lib/TransactionDetails/TransactionDetailsFeature.js} +37 -37
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/{index7.js → lib/TransactionDetails/auditHistory/buildExpenseAuditHistory.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/{index8.js → lib/TransactionDetails/auditHistory/labels.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/{index9.js → lib/TransactionDetails/footerActions.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/{index6.js → lib/TransactionDetails/labels.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/{index2.js → lib/expenseStatus.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/mocks/expenseManagement.js +460 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/mocks/fixtures.js +60 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/mocks/labels.js +21 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/scenarios.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/{index8.js → lib/InsightsWidget/InsightsWidgetContext.js} +12 -12
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/{index12.js → lib/InsightsWidget/InsightsWidgetFeature.js} +11 -11
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/{index11.js → lib/InsightsWidget/SingleInsight/SingleInsight.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/{index4.js → lib/InsightsWidget/dismissedInsightsUserDataKey.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/{index3.js → lib/InsightsWidget/labels.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/{index9.js → lib/InsightsWidget/mapInsightToRowView.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/{index7.js → lib/InsightsWidget/permissions.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/lib/InsightsWidget/shouldShowRoutingOnboardingInsight.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/{index10.js → lib/InsightsWidget/testIds.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/{index5.js → lib/InsightsWidget/useDismissedInsightIds.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/{index2.js → lib/analytics/events.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/mocks/insights.js +90 -0
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/mocks/labels.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/scenarios.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index5.js → lib/ReceivablesWidget/ReceivableAttachmentsSection.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index36.js → lib/ReceivablesWidget/ReceivablesWidget.js} +94 -82
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index8.js → lib/ReceivablesWidget/actionsModal.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index2.js → lib/ReceivablesWidget/analytics/events.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index24.js → lib/ReceivablesWidget/apiValidationErrors.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index7.js → lib/ReceivablesWidget/attachments.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index19.js → lib/ReceivablesWidget/auditHistory/labels.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index20.js → lib/ReceivablesWidget/bankAccounts.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index4.js → lib/ReceivablesWidget/constants.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/datePresets.js +102 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index22.js → lib/ReceivablesWidget/details.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index11.js → lib/ReceivablesWidget/discount.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index13.js → lib/ReceivablesWidget/helpers.js} +58 -41
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilter.js +163 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilterLabels.js +58 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index14.js → lib/ReceivablesWidget/labels.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index6.js → lib/ReceivablesWidget/lineItems.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index10.js → lib/ReceivablesWidget/paymentTerms.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index21.js → lib/ReceivablesWidget/preview.js} +7 -7
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index9.js → lib/ReceivablesWidget/recurrence.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index15.js → lib/ReceivablesWidget/reminders.js} +8 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index32.js → lib/ReceivablesWidget/statusCards.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index12.js → lib/ReceivablesWidget/totals.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useInvoicesFilter.js +111 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +296 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index18.js → lib/ReceivablesWidget/useReceivableActionsModal.js} +13 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index25.js → lib/ReceivablesWidget/useReceivableAttachmentUploads.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index28.js → lib/ReceivablesWidget/useReceivableBankAccount.js} +9 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableCustomerNames.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index23.js → lib/ReceivablesWidget/useReceivableDetails.js} +19 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index31.js → lib/ReceivablesWidget/useReceivableForm.js} +243 -241
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableIssuePreflight.js +28 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index26.js → lib/ReceivablesWidget/useReceivablePaymentTerms.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePreview.js +37 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index27.js → lib/ReceivablesWidget/useReceivableRecurrence.js} +5 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index29.js → lib/ReceivablesWidget/useReceivableReminders.js} +10 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index33.js → lib/ReceivablesWidget/useReceivableStatusCards.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +97 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +146 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/{index3.js → lib/ReceivablesWidgetMonite/ReceivablesWidgetMonite.js} +8 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/fixtures.js +94 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/invoicing.js +242 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/labels.js +37 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/receivables.js +409 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/scenarios.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +28 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +2 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +9 -214
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +27 -159
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +234 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +48 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +214 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +153 -87
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +16 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +22 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +2 -51
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +30 -15
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +90 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +3 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +20 -69
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +51 -33
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +8 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +70 -30
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +33 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +17 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +12 -83
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index3.js +9 -121
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +28 -401
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +22 -42
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +80 -65
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +383 -473
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +2 -106
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +48 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +72 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +498 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +106 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +141 -93
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +2 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +4 -236
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +90 -239
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +24 -89
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +231 -54
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +3 -353
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +249 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index5.js +3 -40
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +59 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +355 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +121 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +100 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +38 -233
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/{index10.js → lib/LinkedAccountsWidget.js} +9 -9
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/{index2.js → lib/analytics/events.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/{index3.js → lib/forms.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/{index4.js → lib/labels.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/{index5.js → lib/permissions.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/{index6.js → lib/rows.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/{index8.js → lib/teamMembers.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/{index7.js → lib/useAdminEligibleUserIds.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/{index9.js → lib/useLinkedAccountsWidget.js} +34 -34
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/mocks/labels.js +16 -0
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/mocks/linkedAccounts.js +144 -0
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/scenarios.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/{index6.js → lib/MarketingWidget/MarketingWidget.js} +16 -16
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/{index4.js → lib/MarketingWidget/labels.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/{index5.js → lib/MarketingWidget/marketingApplicationView.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/{index2.js → lib/analytics/events.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/{index3.js → lib/testIds.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/mocks/labels.js +29 -0
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/mocks/marketing.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/scenarios.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/{index10.js → lib/ProductsWidget/ProductsWidget.js} +15 -15
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/{index3.js → lib/ProductsWidget/constants.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/{index5.js → lib/ProductsWidget/permissions.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/{index4.js → lib/ProductsWidget/testIds.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/{index6.js → lib/ProductsWidget/useProductDelete.js} +3 -3
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/{index7.js → lib/ProductsWidget/useProductDetails.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/{index8.js → lib/ProductsWidget/useProductsTable.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/{index9.js → lib/ProductsWidget/useProductsWidget.js} +12 -12
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/{index2.js → lib/analytics/events.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/mocks/labels.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/mocks/products.js +189 -0
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/scenarios.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/{index5.js → lib/ExpenseSettingsTabs/ExpenseSettingsTabs.js} +6 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/{index6.js → lib/SettingsWidget/SettingsWidget.js} +29 -29
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/{index2.js → lib/SettingsWidget/analytics/events.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/SettingsWidget/index.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/{index3.js → lib/SettingsWidget/labels.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/{index4.js → lib/SettingsWidget/sections.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/mocks/labels.js +29 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/mocks/settings.js +190 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/scenarios.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +2125 -2537
- package/dist/libs/tesouro-embedded-components-react/shared/data-access-mocks/dist/lib/fixtures.js +232 -40
- package/dist/libs/tesouro-embedded-components-react/shared/data-access-mocks/dist/mocks/scenarios/labels.js +36 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access-mocks/dist/mocks/scenarios/scenario.js +180 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access-mocks/dist/mocks/scenarios/team.js +79 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access-mocks/dist/mocks/scenarios/worlds.js +45 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/{index7.js → lib/TransfersWidget/TransfersWidgetFeature.js} +8 -8
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/{index6.js → lib/TransfersWidget/TransfersWidgetInner.js} +21 -21
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/{index3.js → lib/TransfersWidget/featureLabels.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/{index5.js → lib/TransfersWidget/testIds.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/{index4.js → lib/TransfersWidget/useTransferMoneyModalController.js} +11 -11
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/{index2.js → lib/analytics/events.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/mocks/labels.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/mocks/transfers.js +182 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/scenarios.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/{index2.js → lib/UploadReceiptWidget.js} +8 -8
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/mocks/labels.js +29 -0
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/mocks/uploadReceipt.js +57 -0
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/scenarios.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/{index16.js → lib/WidgetSuite/WidgetSuite.js} +28 -28
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/{index6.js → lib/WidgetSuite/WidgetSuiteProvider.js} +2 -2
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/{index3.js → lib/WidgetSuite/disclosureGate.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/{index4.js → lib/WidgetSuite/labels.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/AccountsSection.js +24 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/BillPaySection.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/{index9.js → lib/WidgetSuite/sections/CardsSection.js} +10 -10
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/DashboardSection.js +33 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/ExpensesSection.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/InvoicingSection.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/{index13.js → lib/WidgetSuite/sections/SettingsSection.js} +4 -4
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/TransfersSection.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/index.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/{index5.js → lib/WidgetSuite/sections/sectionIds.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/{index2.js → lib/analytics/events.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/mocks/labels.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/mocks/widgetSuite.js +70 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/scenarios.js +2 -0
- package/dist/scenarios/index.d.ts +583 -0
- package/dist/scenarios/index.js +42 -0
- package/package.json +6 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index9.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index20.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index6.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +0 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +0 -290
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +0 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index34.js +0 -82
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index35.js +0 -144
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +0 -100
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index7.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index10.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index11.js +0 -25
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index12.js +0 -20
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index14.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index15.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +0 -23
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/invoicing.js
ADDED
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { Scope as e } from "../../../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
3
|
+
import { AN_ENTITY as t, AN_ENTITY_USER as n, AN_INVOICE_LINE_ITEM as r, AN_OUTSTANDING_INVOICE as i, A_COUNTERPART_ADDRESS as a, A_CUSTOMER_COUNTERPART as o } from "../../../../shared/data-access-mocks/dist/lib/fixtures.js";
|
|
4
|
+
import { A_PAYMENT_RECORD as s } from "./fixtures.js";
|
|
5
|
+
import { INVOICING_LABELS as c } from "./labels.js";
|
|
6
|
+
import { FINOPS as l, FINOPS_PAGING as u, endpoint as d, initRoute as f, json as p, problem as m, wait as h } from "../../../../shared/data-access-mocks/dist/mocks/scenarios/scenario.js";
|
|
7
|
+
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/invoicing.js
|
|
8
|
+
var g = (e) => `00000000-0000-4000-8010-0000000002${String(e).padStart(2, "0")}`, _ = 864e5, v = (e) => new Date(Date.now() + e * _).toISOString().slice(0, 10), y = (e, t) => ({
|
|
9
|
+
...o,
|
|
10
|
+
id: g(e),
|
|
11
|
+
organization: {
|
|
12
|
+
...o.organization,
|
|
13
|
+
legal_name: t
|
|
14
|
+
}
|
|
15
|
+
}), b = o, x = y(78, "Lakeside Dental Group"), S = y(79, "Northgate Architects"), C = (e, t = 0) => ({
|
|
16
|
+
subtotal: e,
|
|
17
|
+
total_amount: e,
|
|
18
|
+
total_amount_with_credit_notes: e,
|
|
19
|
+
amount_due: e - t,
|
|
20
|
+
amount_paid: t
|
|
21
|
+
}), w = (e, t) => [{
|
|
22
|
+
...r,
|
|
23
|
+
id: `${e.slice(0, 19)}8012${e.slice(23)}`,
|
|
24
|
+
quantity: 1,
|
|
25
|
+
total_before_tax: t,
|
|
26
|
+
total_after_tax: t,
|
|
27
|
+
product: {
|
|
28
|
+
...r.product,
|
|
29
|
+
id: `${e.slice(0, 19)}8013${e.slice(23)}`,
|
|
30
|
+
name: "Consulting services",
|
|
31
|
+
measure_unit: null,
|
|
32
|
+
price: {
|
|
33
|
+
...r.product.price,
|
|
34
|
+
value: t
|
|
35
|
+
},
|
|
36
|
+
price_after_tax: {
|
|
37
|
+
...r.product.price_after_tax,
|
|
38
|
+
value: t
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}], T = (e, t, n) => ({
|
|
42
|
+
...i,
|
|
43
|
+
id: g(e),
|
|
44
|
+
document_id: `INV-${1e3 + e}`,
|
|
45
|
+
counterpart_id: t.id,
|
|
46
|
+
counterpart_name: t.organization.legal_name,
|
|
47
|
+
issue_date: v(-14),
|
|
48
|
+
due_date: v(16),
|
|
49
|
+
...n,
|
|
50
|
+
line_items: w(g(e), n.total_amount ?? 0)
|
|
51
|
+
}), E = [
|
|
52
|
+
{
|
|
53
|
+
...i,
|
|
54
|
+
issue_date: v(-5),
|
|
55
|
+
due_date: v(25),
|
|
56
|
+
subtotal: i.total_amount,
|
|
57
|
+
line_items: w(i.id, i.total_amount ?? 0)
|
|
58
|
+
},
|
|
59
|
+
T(60, x, {
|
|
60
|
+
status: "issued",
|
|
61
|
+
...C(342e3)
|
|
62
|
+
}),
|
|
63
|
+
T(61, S, {
|
|
64
|
+
status: "overdue",
|
|
65
|
+
due_date: v(-9),
|
|
66
|
+
...C(1875e3)
|
|
67
|
+
}),
|
|
68
|
+
T(62, b, {
|
|
69
|
+
status: "partially_paid",
|
|
70
|
+
...C(6e5, 25e4)
|
|
71
|
+
}),
|
|
72
|
+
T(63, x, {
|
|
73
|
+
status: "paid",
|
|
74
|
+
paid_at: `${v(-2)}T15:00:00.000Z`,
|
|
75
|
+
...C(89e3, 89e3)
|
|
76
|
+
}),
|
|
77
|
+
T(64, S, {
|
|
78
|
+
status: "paid",
|
|
79
|
+
paid_at: `${v(-20)}T15:00:00.000Z`,
|
|
80
|
+
due_date: v(-18),
|
|
81
|
+
...C(125e4, 125e4)
|
|
82
|
+
}),
|
|
83
|
+
T(65, b, {
|
|
84
|
+
status: "draft",
|
|
85
|
+
document_id: void 0,
|
|
86
|
+
issue_date: void 0,
|
|
87
|
+
due_date: void 0,
|
|
88
|
+
...C(47500)
|
|
89
|
+
})
|
|
90
|
+
], D = Array.from({ length: 14 }, (e, t) => T(60 + t, [
|
|
91
|
+
b,
|
|
92
|
+
x,
|
|
93
|
+
S
|
|
94
|
+
][t % 3], {
|
|
95
|
+
status: "issued",
|
|
96
|
+
due_date: v(30 - t * 2),
|
|
97
|
+
...C(25e3 + t * 11750)
|
|
98
|
+
})), O = (e, t) => {
|
|
99
|
+
let n = t.get("type");
|
|
100
|
+
if (n && e.type !== n) return !1;
|
|
101
|
+
let r = t.getAll("status__in");
|
|
102
|
+
if (r.length && !r.includes(e.status)) return !1;
|
|
103
|
+
let i = t.get("counterpart_id");
|
|
104
|
+
if (i && e.counterpart_id !== i) return !1;
|
|
105
|
+
let a = t.get("search_text")?.toLowerCase();
|
|
106
|
+
if (a && ![e.document_id, e.counterpart_name].some((e) => (e ?? "").toLowerCase().includes(a))) return !1;
|
|
107
|
+
let o = e.total_amount ?? 0, s = t.get("total_amount__gte");
|
|
108
|
+
if (s !== null && o < Number(s)) return !1;
|
|
109
|
+
let c = t.get("total_amount__lte");
|
|
110
|
+
if (c !== null && o > Number(c)) return !1;
|
|
111
|
+
for (let n of [
|
|
112
|
+
"due_date",
|
|
113
|
+
"issue_date",
|
|
114
|
+
"created_at"
|
|
115
|
+
]) {
|
|
116
|
+
let r = (e[n] ?? "").slice(0, 10), i = t.get(`${n}__gte`);
|
|
117
|
+
if (i && (!r || r < i.slice(0, 10))) return !1;
|
|
118
|
+
let a = t.get(`${n}__lte`);
|
|
119
|
+
if (a && (!r || r > a.slice(0, 10))) return !1;
|
|
120
|
+
}
|
|
121
|
+
return !0;
|
|
122
|
+
}, k = (e, t) => {
|
|
123
|
+
let n = t.get("sort") ?? "due_date", r = t.get("order") === "asc" ? 1 : -1, i = (e) => {
|
|
124
|
+
let t = e[n];
|
|
125
|
+
return typeof t == "number" ? t : String(t ?? "");
|
|
126
|
+
};
|
|
127
|
+
return [...e].sort((e, t) => {
|
|
128
|
+
let [n, a] = [i(e), i(t)];
|
|
129
|
+
return (typeof n == "number" && typeof a == "number" ? n - a : String(n).localeCompare(String(a))) * r;
|
|
130
|
+
});
|
|
131
|
+
}, A = (e, t) => {
|
|
132
|
+
let n = e.query.get(u.tokenParam), r = n ? new URLSearchParams(n) : e.query, i = k(t.filter((e) => O(e, r)), r), a = Number(r.get("limit") ?? 10), o = Number(r.get("offset") ?? 0), s = (e) => {
|
|
133
|
+
let t = new URLSearchParams(r);
|
|
134
|
+
return t.set("offset", String(e)), t.toString();
|
|
135
|
+
};
|
|
136
|
+
return {
|
|
137
|
+
data: i.slice(o, o + a),
|
|
138
|
+
[u.next]: o + a < i.length ? s(o + a) : null,
|
|
139
|
+
[u.prev]: o > 0 ? s(Math.max(0, o - a)) : null
|
|
140
|
+
};
|
|
141
|
+
}, j = (e, t) => {
|
|
142
|
+
let n = /* @__PURE__ */ new Map(), r = e.get("aggregation_function") === "count";
|
|
143
|
+
for (let i of t.filter((t) => O(t, e))) n.set(i.status, (n.get(i.status) ?? 0) + (r ? 1 : i.total_amount ?? 0));
|
|
144
|
+
return { data: [...n].map(([e, t]) => ({
|
|
145
|
+
dimension_value: e,
|
|
146
|
+
metric_value: t
|
|
147
|
+
})) };
|
|
148
|
+
}, M = [
|
|
149
|
+
b,
|
|
150
|
+
x,
|
|
151
|
+
S
|
|
152
|
+
], N = (e) => e && e.amount_paid > 0 ? [{
|
|
153
|
+
...s,
|
|
154
|
+
id: `${e.id.slice(0, 19)}8014${e.id.slice(23)}`,
|
|
155
|
+
amount: e.amount_paid,
|
|
156
|
+
paid_at: e.paid_at ?? `${v(-3)}T15:00:00.000Z`,
|
|
157
|
+
history: [{
|
|
158
|
+
...s.history[0],
|
|
159
|
+
timestamp: e.paid_at ?? `${v(-3)}T15:00:00.000Z`
|
|
160
|
+
}],
|
|
161
|
+
object: {
|
|
162
|
+
...s.object,
|
|
163
|
+
id: e.id,
|
|
164
|
+
new_status: e.status
|
|
165
|
+
}
|
|
166
|
+
}] : [], P = () => m(404, "Not Found", "No such record."), F = (e) => {
|
|
167
|
+
let t = `BT /F1 24 Tf 72 720 Td (${e.replace(/[\\()]/g, "\\$&")}) Tj ET`, n = [
|
|
168
|
+
"<< /Type /Catalog /Pages 2 0 R >>",
|
|
169
|
+
"<< /Type /Pages /Kids [3 0 R] /Count 1 >>",
|
|
170
|
+
"<< /Type /Page /Parent 2 0 R /MediaBox [0 0 612 792] /Contents 4 0 R /Resources << /Font << /F1 5 0 R >> >> >>",
|
|
171
|
+
`<< /Length ${t.length} >>\nstream\n${t}\nendstream`,
|
|
172
|
+
"<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica >>"
|
|
173
|
+
], r = "%PDF-1.4\n", i = n.map((e, t) => {
|
|
174
|
+
let n = r.length;
|
|
175
|
+
return r += `${t + 1} 0 obj\n${e}\nendobj\n`, n;
|
|
176
|
+
}), a = r.length;
|
|
177
|
+
return r += `xref\n0 ${n.length + 1}\n0000000000 65535 f \n`, r += i.map((e) => `${String(e).padStart(10, "0")} 00000 n \n`).join(""), r += `trailer\n<< /Size ${n.length + 1} /Root 1 0 R >>\nstartxref\n${a}\n%%EOF`, r;
|
|
178
|
+
}, I = /* @__PURE__ */ new Map(), L = (e, t) => {
|
|
179
|
+
if (typeof URL.createObjectURL != "function") return null;
|
|
180
|
+
let n = I.get(e);
|
|
181
|
+
if (!n) {
|
|
182
|
+
let r = new Blob([F(t)], { type: "application/pdf" });
|
|
183
|
+
n = URL.createObjectURL(r), I.set(e, n);
|
|
184
|
+
}
|
|
185
|
+
return n;
|
|
186
|
+
}, R = () => p({
|
|
187
|
+
data: [],
|
|
188
|
+
next_pagination_token: null
|
|
189
|
+
}), z = ({ invoices: e, holdAnalytics: r }) => [
|
|
190
|
+
d("GET", `${l}/internal/currencies`, () => p({ USD: {
|
|
191
|
+
symbol: "$",
|
|
192
|
+
name: "US dollar",
|
|
193
|
+
minor_units: 2
|
|
194
|
+
} })),
|
|
195
|
+
d("GET", `${l}/analytics/receivables`, async ({ query: t }) => (r && await h(6e4), p(j(t, e)))),
|
|
196
|
+
d("GET", `${l}/receivables`, (t) => p(A(t, e))),
|
|
197
|
+
d("GET", `${l}/receivables/required-fields`, () => p({})),
|
|
198
|
+
d("GET", `${l}/receivables/:id`, (t, { id: n }) => {
|
|
199
|
+
let r = e.find((e) => e.id === n);
|
|
200
|
+
return r ? p(r) : P();
|
|
201
|
+
}),
|
|
202
|
+
d("GET", `${l}/entity-users/my-entity`, () => p(t)),
|
|
203
|
+
d("GET", `${l}/entities/:id/settings`, () => p({})),
|
|
204
|
+
d("GET", `${l}/bank-details`, R),
|
|
205
|
+
d("GET", `${l}/entity-users/me`, () => p(n)),
|
|
206
|
+
d("GET", `${l}/receivables/:id/history`, R),
|
|
207
|
+
d("GET", `${l}/payment-records`, ({ query: t }) => p({
|
|
208
|
+
data: N(e.find((e) => e.id === t.get("object_id"))),
|
|
209
|
+
next_pagination_token: null
|
|
210
|
+
})),
|
|
211
|
+
d("GET", `${l}/receivables/:id/pdf-link`, (t, { id: n }) => {
|
|
212
|
+
let r = L(n, e.find((e) => e.id === n)?.document_id ?? n);
|
|
213
|
+
return p({
|
|
214
|
+
file_url: r,
|
|
215
|
+
original_file_url: r
|
|
216
|
+
});
|
|
217
|
+
}),
|
|
218
|
+
d("GET", `${l}/counterparts/:id`, (e, { id: t }) => {
|
|
219
|
+
let n = M.find((e) => e.id === t);
|
|
220
|
+
return n ? p(n) : P();
|
|
221
|
+
}),
|
|
222
|
+
d("GET", `${l}/counterparts/:id/addresses`, (e, { id: t }) => M.some((e) => e.id === t) ? p({ data: [{
|
|
223
|
+
...a,
|
|
224
|
+
id: `${t.slice(0, 19)}8011${t.slice(23)}`,
|
|
225
|
+
counterpart_id: t
|
|
226
|
+
}] }) : P())
|
|
227
|
+
], B = [e.InvoiceReadOrg], V = (e, t, n) => ({
|
|
228
|
+
key: e,
|
|
229
|
+
...c.scenarios[e],
|
|
230
|
+
routes: [f(t), ...z(n)]
|
|
231
|
+
}), H = [
|
|
232
|
+
V("populated", B, { invoices: E }),
|
|
233
|
+
V("empty", B, { invoices: [] }),
|
|
234
|
+
V("access-restricted", [e.CounterpartReadOrg], { invoices: E }),
|
|
235
|
+
V("paginated", B, { invoices: D }),
|
|
236
|
+
V("loading", B, {
|
|
237
|
+
invoices: E,
|
|
238
|
+
holdAnalytics: !0
|
|
239
|
+
})
|
|
240
|
+
];
|
|
241
|
+
//#endregion
|
|
242
|
+
export { H as invoicingScenarios };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/labels.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/labels.js
|
|
2
|
+
var e = { scenarios: {
|
|
3
|
+
populated: {
|
|
4
|
+
label: "Populated",
|
|
5
|
+
blurb: "Seven invoices in five statuses, with a status card per status above the table and its count and total. Click a status card to filter the table to that status and All invoices to clear it, search by number or customer, or open any invoice for its details panel. Create Invoice is disabled because init returns no invoice:write:org."
|
|
6
|
+
},
|
|
7
|
+
empty: {
|
|
8
|
+
label: "Empty",
|
|
9
|
+
blurb: "The organization has no invoices: the status cards show only All invoices at 0, and the table shows the No Invoices empty state."
|
|
10
|
+
},
|
|
11
|
+
"access-restricted": {
|
|
12
|
+
label: "Access restricted",
|
|
13
|
+
blurb: "Init returns no invoice:read:org, so the widget makes no invoice reads and says access is restricted instead of showing the table."
|
|
14
|
+
},
|
|
15
|
+
paginated: {
|
|
16
|
+
label: "Paginated",
|
|
17
|
+
blurb: "Fourteen issued invoices, ten to a page. Press the next-page arrow under the table for the last four, and the previous-page arrow to go back."
|
|
18
|
+
},
|
|
19
|
+
loading: {
|
|
20
|
+
label: "Loading",
|
|
21
|
+
blurb: "The status analytics are held open, so skeleton cards stay on screen above the table."
|
|
22
|
+
}
|
|
23
|
+
} }, t = {
|
|
24
|
+
blurbs: {
|
|
25
|
+
populated: "Eight invoices across draft, issued, overdue, partially paid, paid and canceled. Search, filter by status, sort a column, or click a row to open it. Create builds a new draft from a customer and catalogue items; the row menu issues a draft, sends, records a payment, marks paid, clones, cancels or deletes. Changes last until you switch scenario.",
|
|
26
|
+
empty: "No invoices yet, but the organization has customers and a catalogue. Press Create, pick a customer and add an item. Optionally choose payment terms (Due on receipt, a custom date, or Net 15 or Net 30) and switch on Payment reminders to pick a saved reminder, or save a new one, for before the due date and after it; enter a tax rate for the lines ticked Taxable, pick the account the customer pays into (an embedded, a linked or a bank-details account) or add a new one, and attach a file. Create the draft: it opens in its sheet and joins the list, and Edit brings every choice back. Issuing a draft with a reminder needs a customer with reminders turned on and an email: Rivermill Supply Co. has both, and any other customer is refused with a message.",
|
|
27
|
+
loading: "The invoices read is held open, so the table skeleton stays on screen.",
|
|
28
|
+
error: "The invoices read fails with a 500, so the table shows Failed to load receivables. Try again re-issues the read, which fails again.",
|
|
29
|
+
paginated: "Sixteen invoices at ten a page. The next and previous arrows follow the pagination token; a search, status filter or new page size starts again from page one."
|
|
30
|
+
},
|
|
31
|
+
scenarios: { "no-customers": {
|
|
32
|
+
label: "No customers yet",
|
|
33
|
+
blurb: "No invoices and no customers. Press Create, open the Customer picker and choose to create one, give it a name, email and address, and it is selected for the invoice; add an item and create."
|
|
34
|
+
} }
|
|
35
|
+
};
|
|
36
|
+
//#endregion
|
|
37
|
+
export { e as INVOICING_LABELS, t as RECEIVABLES_LABELS };
|
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
import { Scope as e } from "../../../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
3
|
+
import { AN_EXTERNAL_BANK_ACCOUNT as t, AN_OUTSTANDING_INVOICE as n, A_BANK_ACCOUNT as r } from "../../../../shared/data-access-mocks/dist/lib/fixtures.js";
|
|
4
|
+
import { AN_ENTITY_BANK_ACCOUNT as i, AN_OVERDUE_REMINDER as a, A_FILE as o, A_PAYMENT_REMINDER as s, A_PAYMENT_TERMS as c, A_RECEIVABLE_HISTORY_ENTRY as l, A_RECEIVABLE_MAIL as u } from "./fixtures.js";
|
|
5
|
+
import { RECEIVABLES_LABELS as d } from "./labels.js";
|
|
6
|
+
import { SCENARIO_LABELS as f } from "../../../../shared/data-access-mocks/dist/mocks/scenarios/labels.js";
|
|
7
|
+
import { EMBEDDED_PAGING as p, FINOPS as m, PROXY as h, bodyOf as g, endpoint as _, initRoute as v, json as y, noContent as b, problem as x } from "../../../../shared/data-access-mocks/dist/mocks/scenarios/scenario.js";
|
|
8
|
+
import { MintKind as S, finopsOffsetPage as C, listOverride as w, minter as T, notFound as E } from "../../../../shared/data-access-mocks/dist/mocks/scenarios/worlds.js";
|
|
9
|
+
import { CUSTOMERS as D, CUSTOMER_ADDRESSES as O, CUSTOMER_INVOICES as k, billTo as A, customerRoutes as j, customerWorld as ee, filterInvoices as te, id as M, invoice as N, lineItem as P } from "../../../../counterparts-widget/feature/dist/mocks/counterparts.js";
|
|
10
|
+
import "../../../../counterparts-widget/feature/dist/scenarios.js";
|
|
11
|
+
import { productRoutes as F, productWorld as I } from "../../../../products-widget/feature/dist/mocks/products.js";
|
|
12
|
+
import "../../../../products-widget/feature/dist/scenarios.js";
|
|
13
|
+
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/receivables.js
|
|
14
|
+
var L = [
|
|
15
|
+
e.InvoiceReadOrg,
|
|
16
|
+
e.InvoiceWriteOrg,
|
|
17
|
+
e.CounterpartReadOrg,
|
|
18
|
+
e.CounterpartWriteOrg,
|
|
19
|
+
e.ProductReadOrg,
|
|
20
|
+
e.ProductWriteOrg,
|
|
21
|
+
e.BankAccountReadOrg,
|
|
22
|
+
e.BankAccountWriteOrg,
|
|
23
|
+
e.ExternalBankAccountReadOrg
|
|
24
|
+
], R = {
|
|
25
|
+
...c,
|
|
26
|
+
id: M(350)
|
|
27
|
+
}, z = [{
|
|
28
|
+
...R,
|
|
29
|
+
id: M(351),
|
|
30
|
+
name: "Net 15",
|
|
31
|
+
description: "Payment due 15 days after the issue date.",
|
|
32
|
+
term_final: { number_of_days: 15 }
|
|
33
|
+
}, R], B = [
|
|
34
|
+
"Copywriting",
|
|
35
|
+
"Photo retouching",
|
|
36
|
+
"Event staffing",
|
|
37
|
+
"Illustration",
|
|
38
|
+
"Packaging design",
|
|
39
|
+
"Social media audit",
|
|
40
|
+
"Training video",
|
|
41
|
+
"Signage install"
|
|
42
|
+
].map((e, t) => {
|
|
43
|
+
let n = D[t % D.length];
|
|
44
|
+
return N(352 + t, n, [P(352 + t, e, 4 + t, 8e3, "hour")], {
|
|
45
|
+
document_id: `INV-10${String(10 + t)}`,
|
|
46
|
+
status: "paid",
|
|
47
|
+
amount_paid: (4 + t) * 8e3,
|
|
48
|
+
issue_date: `2026-03-${String(2 + t * 3).padStart(2, "0")}`,
|
|
49
|
+
due_date: `2026-04-${String(2 + t * 3).padStart(2, "0")}`,
|
|
50
|
+
created_at: `2026-03-${String(2 + t * 3).padStart(2, "0")}T09:00:00.000Z`
|
|
51
|
+
});
|
|
52
|
+
}), V = () => (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), H = (e, t) => {
|
|
53
|
+
let n = /* @__PURE__ */ new Date(`${e}T00:00:00.000Z`);
|
|
54
|
+
return n.setUTCDate(n.getUTCDate() + t), n.toISOString().slice(0, 10);
|
|
55
|
+
};
|
|
56
|
+
function U(e, t) {
|
|
57
|
+
return e.flatMap((e) => {
|
|
58
|
+
let n = {
|
|
59
|
+
...l,
|
|
60
|
+
id: t(S.HistoryEvent),
|
|
61
|
+
receivable_id: e.id,
|
|
62
|
+
timestamp: e.created_at
|
|
63
|
+
};
|
|
64
|
+
return e.status === "draft" ? [n] : [n, {
|
|
65
|
+
...n,
|
|
66
|
+
id: t(S.HistoryEvent),
|
|
67
|
+
event_type: "status_changed",
|
|
68
|
+
event_data: {
|
|
69
|
+
old_status: "draft",
|
|
70
|
+
new_status: e.status
|
|
71
|
+
},
|
|
72
|
+
timestamp: e.updated_at
|
|
73
|
+
}];
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function W(e) {
|
|
77
|
+
let t = e.line_items.filter((e) => e.tax_status === "taxable"), n = (e) => e.reduce((e, t) => e + t.total_before_tax, 0), r = n(e.line_items), i = n(t), a = e.discount, o = a ? Math.min(r, a.type === "amount" ? a.amount : Math.round(r * a.amount / 1e4)) : 0, s = i - (r > 0 ? Math.round(i / r * o) : 0), c = t.reduce((e, t) => e + t.total_before_tax * (t.product.tax_rate?.value ?? 0), 0), l = a ? i > 0 ? Math.round(c * s / i / 1e4) : 0 : e.line_items.reduce((e, t) => e + t.total_after_tax - t.total_before_tax, 0), u = r - o + l;
|
|
78
|
+
return {
|
|
79
|
+
...e,
|
|
80
|
+
subtotal: r,
|
|
81
|
+
...a ? { discount: {
|
|
82
|
+
...a,
|
|
83
|
+
value: o
|
|
84
|
+
} } : {},
|
|
85
|
+
discounted_subtotal: r - o,
|
|
86
|
+
total_amount: u,
|
|
87
|
+
total_amount_with_credit_notes: u,
|
|
88
|
+
total_tax_amount: l,
|
|
89
|
+
amount_due: Math.max(0, u - e.amount_paid)
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
function G(e, t, n) {
|
|
93
|
+
return {
|
|
94
|
+
...P(n ?? e.mint(S.LineItem), t.product?.name ?? "", t.quantity ?? 1, t.product?.price?.value ?? 0, t.product?.measure_unit?.name, t.tax_rate_value ?? 0),
|
|
95
|
+
...t.tax_status ? { tax_status: t.tax_status } : {},
|
|
96
|
+
...t.discount ? { discount: t.discount } : {}
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
function K(e) {
|
|
100
|
+
let t = z.find((t) => t.id === e.payment_terms_id);
|
|
101
|
+
if (t) return t;
|
|
102
|
+
if (e.payment_terms?.term_final) return { term_final: e.payment_terms.term_final };
|
|
103
|
+
if (e.payment_terms_id === null || e.payment_terms === null) return null;
|
|
104
|
+
}
|
|
105
|
+
function q(e, t) {
|
|
106
|
+
let n = K(e)?.term_final;
|
|
107
|
+
return n?.end_date ? n.end_date : n?.number_of_days !== void 0 && n.number_of_days !== null ? H(t, n.number_of_days) : e.due_date ?? null;
|
|
108
|
+
}
|
|
109
|
+
function J(e, t) {
|
|
110
|
+
return (t ?? []).flatMap((t) => {
|
|
111
|
+
let n = e.files.find((e) => e.id === t.id);
|
|
112
|
+
return n ? [{
|
|
113
|
+
...n,
|
|
114
|
+
include_in_email: t.include_in_email
|
|
115
|
+
}] : [];
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
var Y = `${m}/receivables`;
|
|
119
|
+
function X(e) {
|
|
120
|
+
let t = g(e);
|
|
121
|
+
return {
|
|
122
|
+
paid_at: t.paid_at ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
123
|
+
...t.comment ? { comment: t.comment } : {},
|
|
124
|
+
...t.is_external == null ? {} : { is_external: t.is_external }
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function Z({ invoices: e = k, customers: c = D, list: d }) {
|
|
128
|
+
let f = T(), v = {
|
|
129
|
+
invoices: [...e],
|
|
130
|
+
history: U(e, f),
|
|
131
|
+
mails: e.some((e) => e.id === n.id) ? [{
|
|
132
|
+
receivable_id: n.id,
|
|
133
|
+
mail: u
|
|
134
|
+
}] : [],
|
|
135
|
+
bankDetails: [i],
|
|
136
|
+
files: [],
|
|
137
|
+
paymentReminders: [s],
|
|
138
|
+
overdueReminders: [a],
|
|
139
|
+
mint: f,
|
|
140
|
+
nextNumber: 1050
|
|
141
|
+
}, M = ee(c, O.filter((e) => c.some((t) => t.id === e.counterpart_id)), () => v.invoices, f), P = I(void 0, void 0, f), L = (e) => v.invoices.find((t) => t.id === e), R = (e) => (v.invoices = v.invoices.map((t) => t.id === e.id ? e : t), e), B = (e, t, n) => v.history.push({
|
|
142
|
+
...l,
|
|
143
|
+
id: f(S.HistoryEvent),
|
|
144
|
+
receivable_id: e.id,
|
|
145
|
+
event_type: t,
|
|
146
|
+
event_data: n,
|
|
147
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
148
|
+
}), Z = (e, t) => (B(e, "status_changed", {
|
|
149
|
+
old_status: e.status,
|
|
150
|
+
new_status: t
|
|
151
|
+
}), R({
|
|
152
|
+
...e,
|
|
153
|
+
status: t,
|
|
154
|
+
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
155
|
+
})), Q = (e, t, n) => _(e, `${Y}/:id${t}`, (e, { id: t }) => {
|
|
156
|
+
let r = L(t);
|
|
157
|
+
return r ? n(r, e) : E();
|
|
158
|
+
});
|
|
159
|
+
return [
|
|
160
|
+
...d ? [w(d, Y, () => v.invoices)] : [],
|
|
161
|
+
_("GET", `${m}/payment-terms`, () => y({ data: z })),
|
|
162
|
+
_("GET", `${m}/bank-details`, () => y({
|
|
163
|
+
data: v.bankDetails,
|
|
164
|
+
next_pagination_token: null
|
|
165
|
+
})),
|
|
166
|
+
_("POST", `${m}/bank-details`, (e) => {
|
|
167
|
+
let t = g(e), n = {
|
|
168
|
+
...i,
|
|
169
|
+
id: f(S.BankDetails),
|
|
170
|
+
account_holder_name: t.account_holder_name ?? null,
|
|
171
|
+
account_number: null,
|
|
172
|
+
account_number_last4: t.account_number?.slice(-4) ?? null,
|
|
173
|
+
display_name: t.display_name ?? null,
|
|
174
|
+
routing_number: t.routing_number ?? null
|
|
175
|
+
};
|
|
176
|
+
return v.bankDetails.push(n), y(n, 201);
|
|
177
|
+
}),
|
|
178
|
+
_("GET", `${m}/payment-reminders`, () => y({ data: v.paymentReminders })),
|
|
179
|
+
_("POST", `${m}/payment-reminders`, (e) => {
|
|
180
|
+
let t = g(e), n = (/* @__PURE__ */ new Date()).toISOString(), r = {
|
|
181
|
+
...s,
|
|
182
|
+
id: f(S.PaymentReminder),
|
|
183
|
+
created_at: n,
|
|
184
|
+
updated_at: n,
|
|
185
|
+
name: t.name ?? "",
|
|
186
|
+
recipients: t.recipients ?? null,
|
|
187
|
+
term_1_reminder: t.term_1_reminder ?? null,
|
|
188
|
+
term_2_reminder: t.term_2_reminder ?? null,
|
|
189
|
+
term_final_reminder: t.term_final_reminder ?? null
|
|
190
|
+
};
|
|
191
|
+
return v.paymentReminders.push(r), y(r, 201);
|
|
192
|
+
}),
|
|
193
|
+
_("GET", `${m}/overdue-reminders`, () => y({ data: v.overdueReminders })),
|
|
194
|
+
_("POST", `${m}/overdue-reminders`, (e) => {
|
|
195
|
+
let t = g(e), n = (/* @__PURE__ */ new Date()).toISOString(), r = {
|
|
196
|
+
...a,
|
|
197
|
+
id: f(S.OverdueReminder),
|
|
198
|
+
created_at: n,
|
|
199
|
+
updated_at: n,
|
|
200
|
+
name: t.name ?? "",
|
|
201
|
+
recipients: t.recipients ?? null,
|
|
202
|
+
terms: t.terms ?? null
|
|
203
|
+
};
|
|
204
|
+
return v.overdueReminders.push(r), y(r, 201);
|
|
205
|
+
}),
|
|
206
|
+
_("GET", `${h}/bank-accounts`, () => y({
|
|
207
|
+
data: [r],
|
|
208
|
+
[p.next]: null
|
|
209
|
+
})),
|
|
210
|
+
_("GET", `${h}/external-bank-accounts`, () => y({
|
|
211
|
+
data: [t],
|
|
212
|
+
[p.next]: null
|
|
213
|
+
})),
|
|
214
|
+
_("GET", Y, ({ query: e }) => y(C(te(v.invoices, e), e))),
|
|
215
|
+
_("POST", Y, (e) => {
|
|
216
|
+
let t = g(e), n = M.customers.find((e) => e.id === t.counterpart_id);
|
|
217
|
+
if (!n) return x(422, "Unprocessable Entity", "Unknown customer.");
|
|
218
|
+
let r = (/* @__PURE__ */ new Date()).toISOString(), i = W(N(f(S.Invoice), n, (t.line_items ?? []).map((e) => G(v, e)), {
|
|
219
|
+
document_id: null,
|
|
220
|
+
status: "draft",
|
|
221
|
+
currency: t.currency ?? "USD",
|
|
222
|
+
issue_date: null,
|
|
223
|
+
due_date: q(t, V()),
|
|
224
|
+
memo: t.memo || null,
|
|
225
|
+
footer: t.footer || null,
|
|
226
|
+
payment_terms: K(t) ?? null,
|
|
227
|
+
discount: t.discount ?? null,
|
|
228
|
+
bank_account_id: t.bank_account_id ?? null,
|
|
229
|
+
bank_account_type: t.bank_account_type ?? null,
|
|
230
|
+
payment_reminder_id: t.payment_reminder_id ?? null,
|
|
231
|
+
overdue_reminder_id: t.overdue_reminder_id ?? null,
|
|
232
|
+
attachments: J(v, t.attachments),
|
|
233
|
+
created_at: r,
|
|
234
|
+
updated_at: r
|
|
235
|
+
}));
|
|
236
|
+
return v.invoices.unshift(i), B(i, "receivable_created", {
|
|
237
|
+
source: "manual",
|
|
238
|
+
status: "draft"
|
|
239
|
+
}), y(i, 201);
|
|
240
|
+
}),
|
|
241
|
+
Q("GET", "", (e) => y(e)),
|
|
242
|
+
Q("PATCH", "", (e, t) => {
|
|
243
|
+
let { line_items: n, ...r } = g(t).invoice ?? {}, i = M.customers.find((t) => t.id === (r.counterpart_id ?? e.counterpart_id)), a = new Set(n?.remove ?? []), o = [...e.line_items.filter((e) => !a.has(e.id)).map((e) => {
|
|
244
|
+
let t = n?.replace?.find((t) => t.id === e.id);
|
|
245
|
+
return t ? G(v, t.data, e.id) : e;
|
|
246
|
+
}), ...(n?.add ?? []).map((e) => G(v, e))];
|
|
247
|
+
B(e, "receivable_updated", {});
|
|
248
|
+
let s = r.issue_date ?? e.issue_date;
|
|
249
|
+
return y(R(W({
|
|
250
|
+
...e,
|
|
251
|
+
...i ? A(i) : {},
|
|
252
|
+
currency: r.currency ?? e.currency,
|
|
253
|
+
issue_date: s,
|
|
254
|
+
memo: r.memo ?? e.memo,
|
|
255
|
+
..."discount" in r ? { discount: r.discount ?? null } : {},
|
|
256
|
+
footer: r.footer ?? e.footer,
|
|
257
|
+
due_date: q(r, s ?? V()) ?? e.due_date,
|
|
258
|
+
payment_terms: K(r) === void 0 ? e.payment_terms : K(r),
|
|
259
|
+
...r.bank_account_id === void 0 ? {} : {
|
|
260
|
+
bank_account_id: r.bank_account_id,
|
|
261
|
+
bank_account_type: r.bank_account_type ?? null
|
|
262
|
+
},
|
|
263
|
+
...r.payment_reminder_id === void 0 ? {} : { payment_reminder_id: r.payment_reminder_id },
|
|
264
|
+
...r.overdue_reminder_id === void 0 ? {} : { overdue_reminder_id: r.overdue_reminder_id },
|
|
265
|
+
...r.attachments === void 0 ? {} : { attachments: J(v, r.attachments) },
|
|
266
|
+
line_items: o,
|
|
267
|
+
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
268
|
+
})));
|
|
269
|
+
}),
|
|
270
|
+
_("DELETE", `${Y}/:id`, (e, { id: t }) => (v.invoices = v.invoices.filter((e) => e.id !== t), b())),
|
|
271
|
+
_("GET", `${Y}/:id/history`, ({ query: e }, { id: t }) => y(C(v.history.filter((e) => e.receivable_id === t).sort((e, t) => t.timestamp.localeCompare(e.timestamp)), e))),
|
|
272
|
+
_("GET", `${Y}/:id/mails`, ({ query: e }, { id: t }) => y(C(v.mails.filter((e) => e.receivable_id === t).map((e) => e.mail), e))),
|
|
273
|
+
_("GET", `${Y}/:id/pdf-link`, () => y({
|
|
274
|
+
file_url: null,
|
|
275
|
+
original_file_url: null
|
|
276
|
+
})),
|
|
277
|
+
Q("POST", "/issue", (e) => {
|
|
278
|
+
let t = Z(e, "issued"), n = e.issue_date ?? V();
|
|
279
|
+
return y(R({
|
|
280
|
+
...t,
|
|
281
|
+
document_id: `INV-${v.nextNumber++}`,
|
|
282
|
+
issue_date: n,
|
|
283
|
+
due_date: e.due_date ?? H(n, 30)
|
|
284
|
+
}));
|
|
285
|
+
}),
|
|
286
|
+
Q("POST", "/cancel", (e) => y(Z(e, "canceled"))),
|
|
287
|
+
Q("POST", "/mark-as-uncollectible", (e, t) => {
|
|
288
|
+
let { comment: n } = g(t);
|
|
289
|
+
return y(Z(n ? {
|
|
290
|
+
...e,
|
|
291
|
+
comment: n
|
|
292
|
+
} : e, "uncollectible"));
|
|
293
|
+
}),
|
|
294
|
+
Q("POST", "/mark-as-paid", (e, t) => {
|
|
295
|
+
let n = X(t), r = e.total_amount ?? 0;
|
|
296
|
+
B(e, "payment_received", {
|
|
297
|
+
amount_paid: r - e.amount_paid,
|
|
298
|
+
amount_due: 0,
|
|
299
|
+
...n
|
|
300
|
+
});
|
|
301
|
+
let i = Z(e, "paid");
|
|
302
|
+
return y(R({
|
|
303
|
+
...i,
|
|
304
|
+
amount_paid: r,
|
|
305
|
+
amount_due: 0,
|
|
306
|
+
paid_at: n.paid_at
|
|
307
|
+
}));
|
|
308
|
+
}),
|
|
309
|
+
Q("POST", "/mark-as-partially-paid", (e, t) => {
|
|
310
|
+
let n = g(t).amount_paid ?? 0, r = Math.min(e.total_amount ?? 0, e.amount_paid + n), i = W({
|
|
311
|
+
...e,
|
|
312
|
+
amount_paid: r
|
|
313
|
+
});
|
|
314
|
+
return B(e, "payment_received", {
|
|
315
|
+
amount_paid: n,
|
|
316
|
+
amount_due: i.amount_due,
|
|
317
|
+
...X(t)
|
|
318
|
+
}), y(R({
|
|
319
|
+
...Z(e, i.amount_due === 0 ? "paid" : "partially_paid"),
|
|
320
|
+
amount_paid: i.amount_paid,
|
|
321
|
+
amount_due: i.amount_due
|
|
322
|
+
}));
|
|
323
|
+
}),
|
|
324
|
+
Q("POST", "/clone", (e) => {
|
|
325
|
+
let t = (/* @__PURE__ */ new Date()).toISOString(), n = {
|
|
326
|
+
...e,
|
|
327
|
+
id: f(S.Invoice),
|
|
328
|
+
document_id: null,
|
|
329
|
+
status: "draft",
|
|
330
|
+
issue_date: null,
|
|
331
|
+
amount_paid: 0,
|
|
332
|
+
amount_due: e.total_amount ?? 0,
|
|
333
|
+
paid_at: null,
|
|
334
|
+
created_at: t,
|
|
335
|
+
updated_at: t
|
|
336
|
+
};
|
|
337
|
+
return v.invoices.unshift(n), B(n, "receivable_created", {
|
|
338
|
+
source: "based_on",
|
|
339
|
+
status: "draft"
|
|
340
|
+
}), y(n, 201);
|
|
341
|
+
}),
|
|
342
|
+
Q("POST", "/send", (e, t) => {
|
|
343
|
+
let n = g(t), r = (/* @__PURE__ */ new Date()).toISOString(), i = {
|
|
344
|
+
...u,
|
|
345
|
+
id: f(S.Mail),
|
|
346
|
+
created_at: r,
|
|
347
|
+
updated_at: r,
|
|
348
|
+
recipients: { to: (n.recipients?.to ?? []).map((e) => ({
|
|
349
|
+
email: e,
|
|
350
|
+
is_success: !0
|
|
351
|
+
})) }
|
|
352
|
+
};
|
|
353
|
+
return v.mails.push({
|
|
354
|
+
receivable_id: e.id,
|
|
355
|
+
mail: i
|
|
356
|
+
}), B(e, "mail_sent", {
|
|
357
|
+
mail_id: i.id,
|
|
358
|
+
mail_status: "sent"
|
|
359
|
+
}), y({ mail_id: i.id });
|
|
360
|
+
}),
|
|
361
|
+
_("POST", `${m}/files`, (e) => {
|
|
362
|
+
let { file: t } = g(e), n = {
|
|
363
|
+
id: f(S.File),
|
|
364
|
+
name: t?.name ?? "attachment",
|
|
365
|
+
size: t?.size ?? 0,
|
|
366
|
+
mimetype: t?.type || "application/octet-stream",
|
|
367
|
+
url: `https://example.com/attachments/${encodeURIComponent(t?.name ?? "attachment")}`
|
|
368
|
+
};
|
|
369
|
+
return v.files.push(n), y({
|
|
370
|
+
...o,
|
|
371
|
+
...n,
|
|
372
|
+
file_type: "attachments"
|
|
373
|
+
}, 201);
|
|
374
|
+
}),
|
|
375
|
+
_("GET", `${m}/files`, ({ query: e }) => {
|
|
376
|
+
let t = e.getAll("id__in");
|
|
377
|
+
return y({ data: v.files.filter((e) => t.includes(e.id)).map((e) => ({
|
|
378
|
+
...o,
|
|
379
|
+
...e
|
|
380
|
+
})) });
|
|
381
|
+
}),
|
|
382
|
+
_("DELETE", `${m}/files/:id`, (e, { id: t }) => (v.files = v.files.filter((e) => e.id !== t), b())),
|
|
383
|
+
...j(M),
|
|
384
|
+
...F(P)
|
|
385
|
+
];
|
|
386
|
+
}
|
|
387
|
+
function Q(e, t, n = {}) {
|
|
388
|
+
return {
|
|
389
|
+
key: e,
|
|
390
|
+
...t,
|
|
391
|
+
routes: () => [v(L), ...Z(n)]
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
var $ = (e, t = {}) => Q(e, {
|
|
395
|
+
label: f[e].label,
|
|
396
|
+
blurb: d.blurbs[e]
|
|
397
|
+
}, t), ne = [
|
|
398
|
+
$("populated"),
|
|
399
|
+
$("empty", { invoices: [] }),
|
|
400
|
+
$("loading", { list: "held" }),
|
|
401
|
+
$("error", { list: "failing" }),
|
|
402
|
+
$("paginated", { invoices: [...k, ...B] }),
|
|
403
|
+
Q("no-customers", d.scenarios["no-customers"], {
|
|
404
|
+
invoices: [],
|
|
405
|
+
customers: []
|
|
406
|
+
})
|
|
407
|
+
];
|
|
408
|
+
//#endregion
|
|
409
|
+
export { ne as receivablesScenarios };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/scenarios.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AN_ENTITY_BANK_ACCOUNT as e, AN_OVERDUE_REMINDER as t, A_FILE as n, A_PAYMENT_RECORD as r, A_PAYMENT_REMINDER as i, A_PAYMENT_TERMS as a, A_RECEIVABLE_HISTORY_ENTRY as o, A_RECEIVABLE_MAIL as s } from "./mocks/fixtures.js";
|
|
2
|
+
import { invoicingScenarios as c } from "./mocks/invoicing.js";
|
|
3
|
+
import { receivablesScenarios as l } from "./mocks/receivables.js";
|
|
4
|
+
export { e as AN_ENTITY_BANK_ACCOUNT, t as AN_OVERDUE_REMINDER, n as A_FILE, r as A_PAYMENT_RECORD, i as A_PAYMENT_REMINDER, a as A_PAYMENT_TERMS, o as A_RECEIVABLE_HISTORY_ENTRY, s as A_RECEIVABLE_MAIL, c as invoicingScenarios, l as receivablesScenarios };
|