@tesouro/embedded-components-react 0.5.201 → 0.5.203
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 +20 -6
- package/dist/index.css +3 -0
- package/dist/index.d.ts +82 -7
- package/dist/index.js +8 -7
- package/dist/lib/MarketingWidget.d.ts +66 -7
- package/dist/lib/MarketingWidget.js +5 -4
- package/dist/lib/ReceivablesWidget.d.ts +16 -0
- package/dist/lib/ReceivablesWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +24 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +65 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +188 -45
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index11.js +30 -265
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +144 -64
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +47 -109
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index14.js +293 -216
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +75 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +114 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +237 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index4.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index5.js +28 -243
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js +212 -375
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index7.js +64 -62
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +409 -187
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +73 -40
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +0 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +10 -263
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +1 -72
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +241 -398
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +66 -100
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +406 -76
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +92 -330
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +344 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +6 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +157 -20
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index5.js +24 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +3 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +18 -4
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index4.js +33 -81
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index5.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index6.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index7.js +161 -0
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index3.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index8.js +34 -81
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index9.js +92 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +38 -37
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +54 -54
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +115 -94
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationApplicationStatus.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -513,15 +513,29 @@ A self-contained widget that walks an applicant through the embedded bank-accoun
|
|
|
513
513
|
|
|
514
514
|
A self-contained marketing card and modal that presents host-supplied banking product copy (logo, captions, "How it works" steps, benefits, colors). The card renders two CTAs — Apply now and Learn more — and the modal's own CTA. The host wires all three to whatever should happen next — typically opening `BankAccountOnboardingWidget`.
|
|
515
515
|
|
|
516
|
-
The widget renders nothing until widget init
|
|
516
|
+
The widget renders nothing until widget init and the organization's `application-status` read resolve. It hides itself when the caller is already onboarded (`ACTIVE` / `INACTIVE`), invited (`INVITED`), or their organization's bank-account application is `COMPLETE`.
|
|
517
|
+
|
|
518
|
+
Otherwise the card follows the organization's bank-account application:
|
|
519
|
+
|
|
520
|
+
| Application status | Started by the caller | Started by a colleague |
|
|
521
|
+
| ---------------------- | ------------------------------------------ | ------------------------------ |
|
|
522
|
+
| none | Normal offer | Normal offer |
|
|
523
|
+
| `DRAFT` | Normal offer, CTA reads Resume application | Status chip + message, no CTAs |
|
|
524
|
+
| `SUBMITTED` | Status chip + message, no CTAs | Status chip + message, no CTAs |
|
|
525
|
+
| `DENIED` | Status chip + message, no CTAs | Status chip + message, no CTAs |
|
|
526
|
+
| `DELETED` / `CANCELED` | Normal offer | Normal offer |
|
|
527
|
+
| `COMPLETE` | Hidden | Hidden |
|
|
528
|
+
|
|
529
|
+
Resume application calls the same `onPrimaryCtaClick`: `BankAccountOnboardingWidget` resumes the caller's own draft by itself. The bank's name in the messages comes from widget init (`bankName`). Tenant-specific assets and copy are always passed in as `content` — the published package does not look up white-label or bank maps.
|
|
517
530
|
|
|
518
531
|
#### Props
|
|
519
532
|
|
|
520
|
-
| Prop | Type
|
|
521
|
-
| ------------------- |
|
|
522
|
-
| `content` | `MarketingWidgetContent`
|
|
523
|
-
| `onPrimaryCtaClick` | `() => void`
|
|
524
|
-
| `labels` | `PartialDeep<MarketingWidgetLabels>`
|
|
533
|
+
| Prop | Type | Required | Description |
|
|
534
|
+
| ------------------- | ------------------------------------------ | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
535
|
+
| `content` | `MarketingWidgetContent` | Yes | Host-resolved card and modal copy, images, "How it works" steps, benefits, and appearance. |
|
|
536
|
+
| `onPrimaryCtaClick` | `() => void` | Yes | Called when the applicant clicks Apply now on the card or the modal CTA (default label: Start application). Closes the modal first. |
|
|
537
|
+
| `labels` | `PartialDeep<MarketingWidgetLabels>` | No | Override Apply now, Learn more, the modal CTA + subtext, and the modal dismiss `aria-label`. |
|
|
538
|
+
| `statusLabels` | `PartialDeep<MarketingWidgetStatusLabels>` | No | Override the Resume application label and the chip, heading and body copy of each application-status message. Heading and body are functions of `{ bankName }`. |
|
|
525
539
|
|
|
526
540
|
### ProductsWidget
|
|
527
541
|
|
package/dist/index.css
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -4935,6 +4935,11 @@ interface ReceivableFormSheetLabels {
|
|
|
4935
4935
|
closingNoteLabel: string;
|
|
4936
4936
|
closingNotePlaceholder: string;
|
|
4937
4937
|
closingNoteDescription: string;
|
|
4938
|
+
attachmentsHeading: string;
|
|
4939
|
+
attachmentsDescription: string;
|
|
4940
|
+
attachmentsDropPrompt: string;
|
|
4941
|
+
attachmentsBrowseLink: string;
|
|
4942
|
+
attachmentsFormatsHint: string;
|
|
4938
4943
|
}
|
|
4939
4944
|
interface ReceivableDetailsSheetLabels {
|
|
4940
4945
|
hiddenDescription: string;
|
|
@@ -5061,6 +5066,17 @@ interface ReceivableMessageLabels {
|
|
|
5061
5066
|
markUncollectibleTitle: string;
|
|
5062
5067
|
markUncollectibleDescription: string;
|
|
5063
5068
|
markUncollectibleConfirm: string;
|
|
5069
|
+
attachmentsEmailCaption: string;
|
|
5070
|
+
attachmentsRecurringEmailCaption: string;
|
|
5071
|
+
attachmentIncludeInEmail: string;
|
|
5072
|
+
attachmentRemove: string;
|
|
5073
|
+
attachmentUploading: string;
|
|
5074
|
+
attachmentUploadFailed: string;
|
|
5075
|
+
attachmentTooLarge: string;
|
|
5076
|
+
attachmentUnsupportedType: string;
|
|
5077
|
+
attachmentsCountLimit: string;
|
|
5078
|
+
attachmentIncludedInEmail: string;
|
|
5079
|
+
attachmentNotIncludedInEmail: string;
|
|
5064
5080
|
}
|
|
5065
5081
|
|
|
5066
5082
|
interface ReceivablesWidgetOwnProps {
|
|
@@ -5147,10 +5163,63 @@ interface MarketingWidgetContent {
|
|
|
5147
5163
|
appearance: MarketingWidgetAppearance;
|
|
5148
5164
|
}
|
|
5149
5165
|
|
|
5166
|
+
/**
|
|
5167
|
+
* Values a status label can interpolate. The bank name comes from widget init
|
|
5168
|
+
* and already has its fallback applied, so a label never sees null. The rest
|
|
5169
|
+
* come from the `application-status` read, already formatted, and are absent
|
|
5170
|
+
* when it does not carry them (the dates are null for applications that
|
|
5171
|
+
* predate the backend recording them), so every label has copy for both.
|
|
5172
|
+
*
|
|
5173
|
+
* There is no applicant email: the read does not return one, so the denied
|
|
5174
|
+
* copy for the applicant's own application says "your email" instead of the
|
|
5175
|
+
* spec's "[applicant email]".
|
|
5176
|
+
*/
|
|
5177
|
+
interface MarketingStatusLabelValues {
|
|
5178
|
+
bankName: string;
|
|
5179
|
+
/** The applicant's full name, for either ownership. */
|
|
5180
|
+
applicantName?: string;
|
|
5181
|
+
/** When the application was started, formatted by `formatDate`. */
|
|
5182
|
+
startedOn?: string;
|
|
5183
|
+
/** When the application was submitted, formatted by `formatDate`. */
|
|
5184
|
+
submittedOn?: string;
|
|
5185
|
+
/** When the application was denied, formatted by `formatDate`. */
|
|
5186
|
+
deniedOn?: string;
|
|
5187
|
+
}
|
|
5188
|
+
/**
|
|
5189
|
+
* Copy for one application state: the status chip, an optional brand-colored
|
|
5190
|
+
* heading, and the lines under it.
|
|
5191
|
+
*/
|
|
5192
|
+
interface MarketingStatusNoticeLabels {
|
|
5193
|
+
chipLabel: string;
|
|
5194
|
+
/** Omit for a state whose mock has no heading (the denied states). */
|
|
5195
|
+
heading?: (values: MarketingStatusLabelValues) => string;
|
|
5196
|
+
body: (values: MarketingStatusLabelValues) => string[];
|
|
5197
|
+
}
|
|
5198
|
+
interface MarketingWidgetStatusLabels {
|
|
5199
|
+
/** Replaces the Apply CTA (card and modal) while the caller's own application is a draft. */
|
|
5200
|
+
resumeApplication: string;
|
|
5201
|
+
/** Stands in for the bank's name when widget init does not carry one. */
|
|
5202
|
+
bankNameFallback: string;
|
|
5203
|
+
/**
|
|
5204
|
+
* Formats an application date (an ISO date-time from the status read) for
|
|
5205
|
+
* the `startedOn` / `submittedOn` / `deniedOn` values. A label, not a
|
|
5206
|
+
* hardcoded formatter, so a host can localize it with the copy.
|
|
5207
|
+
*/
|
|
5208
|
+
formatDate: (isoDateTime: string) => string;
|
|
5209
|
+
draftStartedByOther: MarketingStatusNoticeLabels;
|
|
5210
|
+
submittedByYou: MarketingStatusNoticeLabels;
|
|
5211
|
+
submittedByOther: MarketingStatusNoticeLabels;
|
|
5212
|
+
deniedByYou: MarketingStatusNoticeLabels;
|
|
5213
|
+
deniedByOther: MarketingStatusNoticeLabels;
|
|
5214
|
+
}
|
|
5215
|
+
declare const MARKETING_WIDGET_STATUS_LABELS_EN: MarketingWidgetStatusLabels;
|
|
5216
|
+
|
|
5150
5217
|
type InnerProps = {
|
|
5151
5218
|
content: MarketingWidgetContent;
|
|
5152
5219
|
onPrimaryCtaClick: () => void;
|
|
5153
5220
|
labels?: PartialDeep<MarketingWidgetLabels>;
|
|
5221
|
+
/** Overrides for the copy shown when the organization already has an application. */
|
|
5222
|
+
statusLabels?: PartialDeep<MarketingWidgetStatusLabels>;
|
|
5154
5223
|
};
|
|
5155
5224
|
type MarketingWidgetProps = WidgetProviderProps & InnerProps;
|
|
5156
5225
|
/**
|
|
@@ -5158,11 +5227,17 @@ type MarketingWidgetProps = WidgetProviderProps & InnerProps;
|
|
|
5158
5227
|
* `content` (logos, copy, colors) and wire `onPrimaryCtaClick` to whatever
|
|
5159
5228
|
* should happen next — typically opening bank-account onboarding.
|
|
5160
5229
|
*
|
|
5161
|
-
* Renders nothing until widget init
|
|
5162
|
-
*
|
|
5163
|
-
*
|
|
5164
|
-
*
|
|
5165
|
-
*
|
|
5230
|
+
* Renders nothing until widget init and the organization's application
|
|
5231
|
+
* status resolve, and hides itself when the caller is already onboarded
|
|
5232
|
+
* (`ACTIVE` / `INACTIVE`), invited (`INVITED`), or their organization's
|
|
5233
|
+
* bank-account application is `COMPLETE`.
|
|
5234
|
+
*
|
|
5235
|
+
* Otherwise it follows that application's status (EMBD-6173): the caller's own
|
|
5236
|
+
* `DRAFT` renames Apply to "Resume application"; a colleague's `DRAFT`, any
|
|
5237
|
+
* `SUBMITTED` and any `DENIED` application replace the captions and CTAs
|
|
5238
|
+
* with a status chip and message; no application, or a `DELETED` / `CANCELED` one, shows the
|
|
5239
|
+
* normal offer. A `DENIED` message hides itself 30 days after the denial, and
|
|
5240
|
+
* a status this widget does not know hides the card.
|
|
5166
5241
|
*/
|
|
5167
5242
|
declare function MarketingWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: MarketingWidgetProps): React.JSX.Element;
|
|
5168
5243
|
|
|
@@ -5382,5 +5457,5 @@ interface CheckAmountAndDetailScreenProps {
|
|
|
5382
5457
|
|
|
5383
5458
|
type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
|
|
5384
5459
|
|
|
5385
|
-
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, CustomersWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, ReceivablesWidgetMonite as InvoicingWidget, LinkedAccountsWidget, MARKETING_WIDGET_LABELS_EN, MarketingBenefitIcon, MarketingWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, Scope, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, UploadReceiptWidget, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, isScope, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
|
|
5386
|
-
export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccordionItemCardLabels, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CustomersWidgetOwnProps, CustomersWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$2 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, FileViewerLabels, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, ReceivablesWidgetMoniteProps as InvoicingWidgetProps, LinkComponent, LinkComponentProps, FeatureLabels$2 as LinkedAccountsWidgetFeatureLabels, Labels$1 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MarketingWidgetAppearance, MarketingWidgetBenefit, MarketingWidgetContent, MarketingWidgetHowItWorksStep, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceiptMatchSummary, ReceivableActionDialogLabels, ReceivableDetailsSheetLabelOverrides, ReceivableDetailsSheetLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$1 as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, TransactionDetailsActionsLabels, TransactionDetailsLabels, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, UploadReceiptWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
|
|
5460
|
+
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, CustomersWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, ReceivablesWidgetMonite as InvoicingWidget, LinkedAccountsWidget, MARKETING_WIDGET_LABELS_EN, MARKETING_WIDGET_STATUS_LABELS_EN, MarketingBenefitIcon, MarketingWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, Scope, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, UploadReceiptWidget, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, isScope, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
|
|
5461
|
+
export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccordionItemCardLabels, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CustomersWidgetOwnProps, CustomersWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$2 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, FileViewerLabels, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, ReceivablesWidgetMoniteProps as InvoicingWidgetProps, LinkComponent, LinkComponentProps, FeatureLabels$2 as LinkedAccountsWidgetFeatureLabels, Labels$1 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MarketingStatusLabelValues, MarketingStatusNoticeLabels, MarketingWidgetAppearance, MarketingWidgetBenefit, MarketingWidgetContent, MarketingWidgetHowItWorksStep, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps, MarketingWidgetStatusLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceiptMatchSummary, ReceivableActionDialogLabels, ReceivableDetailsSheetLabelOverrides, ReceivableDetailsSheetLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$1 as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, TransactionDetailsActionsLabels, TransactionDetailsLabels, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, UploadReceiptWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import { InsightsWidget as L } from "./libs/tesouro-embedded-components-react/in
|
|
|
27
27
|
import { UploadReceiptWidget as R } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index2.js";
|
|
28
28
|
import { ExpenseManagementWidget as z } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index21.js";
|
|
29
29
|
import { InvoicingWidget as B } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js";
|
|
30
|
-
import { ReceivablesWidget as V } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/
|
|
30
|
+
import { ReceivablesWidget as V } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js";
|
|
31
31
|
import { SettingsSection as H } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index4.js";
|
|
32
32
|
import { HELP_FAQ_EN as U } from "./libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index3.js";
|
|
33
33
|
import { SettingsWidget as W } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js";
|
|
@@ -61,16 +61,17 @@ import "./lib/InsightsWidget.js";
|
|
|
61
61
|
import "./lib/InvoicingWidget.js";
|
|
62
62
|
import "./lib/LinkedAccountsWidget.js";
|
|
63
63
|
import "./lib/BankAccountOnboardingWidget.js";
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
64
|
+
import { MARKETING_WIDGET_STATUS_LABELS_EN as ae } from "./libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index4.js";
|
|
65
|
+
import { MARKETING_WIDGET_LABELS_EN as oe } from "./libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index2.js";
|
|
66
|
+
import { MarketingBenefitIcon as se } from "./libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index3.js";
|
|
67
|
+
import { MarketingWidget as ce } from "./libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index7.js";
|
|
67
68
|
import "./lib/MarketingWidget.js";
|
|
68
|
-
import { ProductsWidget as
|
|
69
|
+
import { ProductsWidget as le } from "./libs/tesouro-embedded-components-react/products-widget/feature/dist/index8.js";
|
|
69
70
|
import "./lib/ProductsWidget.js";
|
|
70
71
|
import "./lib/ReceivablesWidget.js";
|
|
71
72
|
import "./lib/SettingsWidget.js";
|
|
72
73
|
import "./lib/TransfersWidget.js";
|
|
73
|
-
import { WidgetProvider as
|
|
74
|
+
import { WidgetProvider as ue } from "./lib/WidgetProviderPublic.js";
|
|
74
75
|
import "./lib/WidgetProvider.js";
|
|
75
76
|
import "./packages/tesouro-embedded-components-react/src/scopes.js";
|
|
76
|
-
export { Y as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, Z as ADDITIONAL_OWNERS_LABELS_EN, X as AcceptDisclosuresWidget, M as BALANCES_WIDGET_LABELS_EN, Q as BUSINESS_DETAILS_LABELS_EN, N as BalancesWidget, te as BankAccountOnboardingWidget, D as BankAccountsWidget, O as BillPayWidget, k as CardDetailsWidget, re as CounterpartsWidget, A as CreditCardsWidget, ie as CustomersWidget, j as DebitCardsWidget, l as ERROR_STATE_ID, z as ExpenseManagementWidget, U as HELP_FAQ_EN, P as INSIGHTS_FEATURE_LABELS_EN, F as INSIGHTS_WIDGET_LABELS_EN, u as Implementation, L as InsightsWidget, B as InvoicingWidget, G as LinkedAccountsWidget,
|
|
77
|
+
export { Y as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, Z as ADDITIONAL_OWNERS_LABELS_EN, X as AcceptDisclosuresWidget, M as BALANCES_WIDGET_LABELS_EN, Q as BUSINESS_DETAILS_LABELS_EN, N as BalancesWidget, te as BankAccountOnboardingWidget, D as BankAccountsWidget, O as BillPayWidget, k as CardDetailsWidget, re as CounterpartsWidget, A as CreditCardsWidget, ie as CustomersWidget, j as DebitCardsWidget, l as ERROR_STATE_ID, z as ExpenseManagementWidget, U as HELP_FAQ_EN, P as INSIGHTS_FEATURE_LABELS_EN, F as INSIGHTS_WIDGET_LABELS_EN, u as Implementation, L as InsightsWidget, B as InvoicingWidget, G as LinkedAccountsWidget, oe as MARKETING_WIDGET_LABELS_EN, ae as MARKETING_WIDGET_STATUS_LABELS_EN, se as MarketingBenefitIcon, ce as MarketingWidget, $ as PERSONAL_DETAILS_LABELS_EN, le as ProductsWidget, ee as RESULT_LABELS_EN, V as ReceivablesWidget, y as RefreshingRootWidgetProvider, g as RootWidgetProvider, I as SINGLE_INSIGHT_LABELS_EN, i as Scope, H as SettingsSection, W as SettingsWidget, K as TRANSFERS_FEATURE_LABELS_EN, q as TRANSFERS_WIDGET_LABELS_EN, J as TransfersWidget, o as UIFramework, R as UploadReceiptWidget, t as WIDGET_SUITE_DEFAULT_SECTIONS, e as WIDGET_SUITE_LABELS_EN, ue as WidgetProvider, ne as WidgetSuite, n as WidgetSuiteSectionId, _ as WidgetTokenRefreshProvider, r as cloneEmbeddedClient, d as getGlobalWidgetConfig, m as getGlobalWidgetInitState, a as isScope, s as registerDesignSystemEnsurer, c as registerUIRenderers, f as setGlobalWidgetConfig, h as subscribeToGlobalWidgetInitState, p as updateGlobalWidgetConfig, b as useDisclosuresAcceptanceSurface, x as useOwnWidgetConfig, S as useRefetchWidget, C as useWidgetConfig, w as useWidgetError, T as useWidgetInitStaleForToken, E as useWidgetLoading, v as useWidgetToken };
|
|
@@ -688,10 +688,63 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
688
688
|
providerLabels?: Partial<WidgetProviderLabels>;
|
|
689
689
|
}
|
|
690
690
|
|
|
691
|
+
/**
|
|
692
|
+
* Values a status label can interpolate. The bank name comes from widget init
|
|
693
|
+
* and already has its fallback applied, so a label never sees null. The rest
|
|
694
|
+
* come from the `application-status` read, already formatted, and are absent
|
|
695
|
+
* when it does not carry them (the dates are null for applications that
|
|
696
|
+
* predate the backend recording them), so every label has copy for both.
|
|
697
|
+
*
|
|
698
|
+
* There is no applicant email: the read does not return one, so the denied
|
|
699
|
+
* copy for the applicant's own application says "your email" instead of the
|
|
700
|
+
* spec's "[applicant email]".
|
|
701
|
+
*/
|
|
702
|
+
interface MarketingStatusLabelValues {
|
|
703
|
+
bankName: string;
|
|
704
|
+
/** The applicant's full name, for either ownership. */
|
|
705
|
+
applicantName?: string;
|
|
706
|
+
/** When the application was started, formatted by `formatDate`. */
|
|
707
|
+
startedOn?: string;
|
|
708
|
+
/** When the application was submitted, formatted by `formatDate`. */
|
|
709
|
+
submittedOn?: string;
|
|
710
|
+
/** When the application was denied, formatted by `formatDate`. */
|
|
711
|
+
deniedOn?: string;
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
* Copy for one application state: the status chip, an optional brand-colored
|
|
715
|
+
* heading, and the lines under it.
|
|
716
|
+
*/
|
|
717
|
+
interface MarketingStatusNoticeLabels {
|
|
718
|
+
chipLabel: string;
|
|
719
|
+
/** Omit for a state whose mock has no heading (the denied states). */
|
|
720
|
+
heading?: (values: MarketingStatusLabelValues) => string;
|
|
721
|
+
body: (values: MarketingStatusLabelValues) => string[];
|
|
722
|
+
}
|
|
723
|
+
interface MarketingWidgetStatusLabels {
|
|
724
|
+
/** Replaces the Apply CTA (card and modal) while the caller's own application is a draft. */
|
|
725
|
+
resumeApplication: string;
|
|
726
|
+
/** Stands in for the bank's name when widget init does not carry one. */
|
|
727
|
+
bankNameFallback: string;
|
|
728
|
+
/**
|
|
729
|
+
* Formats an application date (an ISO date-time from the status read) for
|
|
730
|
+
* the `startedOn` / `submittedOn` / `deniedOn` values. A label, not a
|
|
731
|
+
* hardcoded formatter, so a host can localize it with the copy.
|
|
732
|
+
*/
|
|
733
|
+
formatDate: (isoDateTime: string) => string;
|
|
734
|
+
draftStartedByOther: MarketingStatusNoticeLabels;
|
|
735
|
+
submittedByYou: MarketingStatusNoticeLabels;
|
|
736
|
+
submittedByOther: MarketingStatusNoticeLabels;
|
|
737
|
+
deniedByYou: MarketingStatusNoticeLabels;
|
|
738
|
+
deniedByOther: MarketingStatusNoticeLabels;
|
|
739
|
+
}
|
|
740
|
+
declare const MARKETING_WIDGET_STATUS_LABELS_EN: MarketingWidgetStatusLabels;
|
|
741
|
+
|
|
691
742
|
type InnerProps = {
|
|
692
743
|
content: MarketingWidgetContent;
|
|
693
744
|
onPrimaryCtaClick: () => void;
|
|
694
745
|
labels?: PartialDeep<MarketingWidgetLabels>;
|
|
746
|
+
/** Overrides for the copy shown when the organization already has an application. */
|
|
747
|
+
statusLabels?: PartialDeep<MarketingWidgetStatusLabels>;
|
|
695
748
|
};
|
|
696
749
|
type MarketingWidgetProps = WidgetProviderProps & InnerProps;
|
|
697
750
|
/**
|
|
@@ -699,13 +752,19 @@ type MarketingWidgetProps = WidgetProviderProps & InnerProps;
|
|
|
699
752
|
* `content` (logos, copy, colors) and wire `onPrimaryCtaClick` to whatever
|
|
700
753
|
* should happen next — typically opening bank-account onboarding.
|
|
701
754
|
*
|
|
702
|
-
* Renders nothing until widget init
|
|
703
|
-
*
|
|
704
|
-
*
|
|
705
|
-
*
|
|
706
|
-
*
|
|
755
|
+
* Renders nothing until widget init and the organization's application
|
|
756
|
+
* status resolve, and hides itself when the caller is already onboarded
|
|
757
|
+
* (`ACTIVE` / `INACTIVE`), invited (`INVITED`), or their organization's
|
|
758
|
+
* bank-account application is `COMPLETE`.
|
|
759
|
+
*
|
|
760
|
+
* Otherwise it follows that application's status (EMBD-6173): the caller's own
|
|
761
|
+
* `DRAFT` renames Apply to "Resume application"; a colleague's `DRAFT`, any
|
|
762
|
+
* `SUBMITTED` and any `DENIED` application replace the captions and CTAs
|
|
763
|
+
* with a status chip and message; no application, or a `DELETED` / `CANCELED` one, shows the
|
|
764
|
+
* normal offer. A `DENIED` message hides itself 30 days after the denial, and
|
|
765
|
+
* a status this widget does not know hides the card.
|
|
707
766
|
*/
|
|
708
767
|
declare function MarketingWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: MarketingWidgetProps): React.JSX.Element;
|
|
709
768
|
|
|
710
|
-
export { MARKETING_WIDGET_LABELS_EN, MarketingBenefitIcon, MarketingWidget };
|
|
711
|
-
export type { MarketingWidgetAppearance, MarketingWidgetBenefit, MarketingWidgetContent, MarketingWidgetHowItWorksStep, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps };
|
|
769
|
+
export { MARKETING_WIDGET_LABELS_EN, MARKETING_WIDGET_STATUS_LABELS_EN, MarketingBenefitIcon, MarketingWidget };
|
|
770
|
+
export type { MarketingStatusLabelValues, MarketingStatusNoticeLabels, MarketingWidgetAppearance, MarketingWidgetBenefit, MarketingWidgetContent, MarketingWidgetHowItWorksStep, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps, MarketingWidgetStatusLabels };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { MARKETING_WIDGET_STATUS_LABELS_EN as e } from "../libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index4.js";
|
|
2
|
+
import { MARKETING_WIDGET_LABELS_EN as t } from "../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index2.js";
|
|
3
|
+
import { MarketingBenefitIcon as n } from "../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index3.js";
|
|
4
|
+
import { MarketingWidget as r } from "../libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index7.js";
|
|
4
5
|
import "../libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index.js";
|
|
5
|
-
export {
|
|
6
|
+
export { t as MARKETING_WIDGET_LABELS_EN, e as MARKETING_WIDGET_STATUS_LABELS_EN, n as MarketingBenefitIcon, r as MarketingWidget };
|
|
@@ -979,6 +979,11 @@ interface ReceivableFormSheetLabels {
|
|
|
979
979
|
closingNoteLabel: string;
|
|
980
980
|
closingNotePlaceholder: string;
|
|
981
981
|
closingNoteDescription: string;
|
|
982
|
+
attachmentsHeading: string;
|
|
983
|
+
attachmentsDescription: string;
|
|
984
|
+
attachmentsDropPrompt: string;
|
|
985
|
+
attachmentsBrowseLink: string;
|
|
986
|
+
attachmentsFormatsHint: string;
|
|
982
987
|
}
|
|
983
988
|
interface ReceivableDetailsSheetLabels {
|
|
984
989
|
hiddenDescription: string;
|
|
@@ -1105,6 +1110,17 @@ interface ReceivableMessageLabels {
|
|
|
1105
1110
|
markUncollectibleTitle: string;
|
|
1106
1111
|
markUncollectibleDescription: string;
|
|
1107
1112
|
markUncollectibleConfirm: string;
|
|
1113
|
+
attachmentsEmailCaption: string;
|
|
1114
|
+
attachmentsRecurringEmailCaption: string;
|
|
1115
|
+
attachmentIncludeInEmail: string;
|
|
1116
|
+
attachmentRemove: string;
|
|
1117
|
+
attachmentUploading: string;
|
|
1118
|
+
attachmentUploadFailed: string;
|
|
1119
|
+
attachmentTooLarge: string;
|
|
1120
|
+
attachmentUnsupportedType: string;
|
|
1121
|
+
attachmentsCountLimit: string;
|
|
1122
|
+
attachmentIncludedInEmail: string;
|
|
1123
|
+
attachmentNotIncludedInEmail: string;
|
|
1108
1124
|
}
|
|
1109
1125
|
|
|
1110
1126
|
interface ReceivablesWidgetOwnProps {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ReceivablesWidget as e } from "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/
|
|
1
|
+
import { ReceivablesWidget as e } from "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js";
|
|
2
2
|
import "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js";
|
|
3
3
|
export { e as ReceivablesWidget };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js
CHANGED
|
@@ -2,12 +2,12 @@ import { usePaymentTermsQuery as e } from "../../../shared/data-access/dist/lib/
|
|
|
2
2
|
import "../../../shared/data-access/dist/index.js";
|
|
3
3
|
import "./index2.js";
|
|
4
4
|
import "./index3.js";
|
|
5
|
-
import "./index4.js";
|
|
6
|
-
import { useSendReceivableEmailMutation as
|
|
7
|
-
import { useAcceptReceivableMutation as
|
|
5
|
+
import { useDeleteReceivableAttachmentMutation as t, useUploadReceivableAttachmentMutation as n } from "./index4.js";
|
|
6
|
+
import { useSendReceivableEmailMutation as r } from "./index5.js";
|
|
7
|
+
import { useAcceptReceivableMutation as i, useCancelReceivableMutation as a, useCloneReceivableMutation as o, useCreateReceivableMutation as s, useDeclineReceivableMutation as c, useDeleteReceivableMutation as l, useIssueReceivableMutation as u, useUpdateReceivableMutation as d } from "./index6.js";
|
|
8
8
|
import "./index7.js";
|
|
9
|
-
import { useMarkReceivablePaidMutation as
|
|
10
|
-
import { useReceivableHistoryQuery as
|
|
9
|
+
import { useMarkReceivablePaidMutation as f, useMarkReceivablePartiallyPaidMutation as p, useMarkReceivableUncollectibleMutation as m } from "./index8.js";
|
|
10
|
+
import { useReceivableHistoryQuery as h, useReceivableMailsQuery as g, useReceivablePdfLinkQuery as _, useReceivableQuery as v, useReceivablesQuery as y } from "./index9.js";
|
|
11
11
|
import "./index10.js";
|
|
12
12
|
import "./index11.js";
|
|
13
|
-
export {
|
|
13
|
+
export { i as useAcceptReceivableMutation, a as useCancelReceivableMutation, o as useCloneReceivableMutation, s as useCreateReceivableMutation, c as useDeclineReceivableMutation, t as useDeleteReceivableAttachmentMutation, l as useDeleteReceivableMutation, u as useIssueReceivableMutation, f as useMarkReceivablePaidMutation, p as useMarkReceivablePartiallyPaidMutation, m as useMarkReceivableUncollectibleMutation, e as usePaymentTermsQuery, h as useReceivableHistoryQuery, g as useReceivableMailsQuery, _ as useReceivablePdfLinkQuery, v as useReceivableQuery, y as useReceivablesQuery, r as useSendReceivableEmailMutation, d as useUpdateReceivableMutation, n as useUploadReceivableAttachmentMutation };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js
CHANGED
|
@@ -1,42 +1,48 @@
|
|
|
1
|
-
import { getAnalyticsReceivablesQueryKey as e,
|
|
2
|
-
import { organizationHeaders as
|
|
1
|
+
import { getAnalyticsReceivablesQueryKey as e, getFilesQueryKey as t, getPaymentRecordsQueryKey as n, getReceivablesIdHistoryQueryKey as r, getReceivablesIdMailsQueryKey as i, getReceivablesIdPdfLinkQueryKey as a, getReceivablesIdQueryKey as o, getReceivablesQueryKey as s } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
2
|
+
import { organizationHeaders as c } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
3
3
|
import "../../../shared/data-access/dist/index.js";
|
|
4
4
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js
|
|
5
|
-
var
|
|
6
|
-
let [n] =
|
|
5
|
+
var l = ({ client: e, organizationId: t }) => {
|
|
6
|
+
let [n] = s({
|
|
7
7
|
client: e,
|
|
8
|
-
headers:
|
|
8
|
+
headers: c(t)
|
|
9
9
|
}), r = { ...n };
|
|
10
10
|
return delete r.query, [r];
|
|
11
|
-
},
|
|
11
|
+
}, u = ({ client: e, organizationId: t, receivableId: n }) => o({
|
|
12
12
|
client: e,
|
|
13
|
-
headers:
|
|
13
|
+
headers: c(t),
|
|
14
14
|
path: { receivable_id: n }
|
|
15
|
-
}), u = ({ client: e, organizationId: t, receivableId: r }) => n({
|
|
16
|
-
client: e,
|
|
17
|
-
headers: s(t),
|
|
18
|
-
path: { receivable_id: r }
|
|
19
15
|
}), d = ({ client: e, organizationId: t, receivableId: n }) => r({
|
|
20
16
|
client: e,
|
|
21
|
-
headers:
|
|
17
|
+
headers: c(t),
|
|
22
18
|
path: { receivable_id: n }
|
|
23
19
|
}), f = ({ client: e, organizationId: t, receivableId: n }) => i({
|
|
24
20
|
client: e,
|
|
25
|
-
headers:
|
|
21
|
+
headers: c(t),
|
|
22
|
+
path: { receivable_id: n }
|
|
23
|
+
}), p = ({ client: e, organizationId: t, receivableId: n }) => a({
|
|
24
|
+
client: e,
|
|
25
|
+
headers: c(t),
|
|
26
26
|
path: { receivable_id: n }
|
|
27
|
-
}),
|
|
27
|
+
}), m = ({ client: e, organizationId: n }) => {
|
|
28
28
|
let [r] = t({
|
|
29
29
|
client: e,
|
|
30
|
-
headers:
|
|
30
|
+
headers: c(n)
|
|
31
|
+
}), i = { ...r };
|
|
32
|
+
return delete i.query, [i];
|
|
33
|
+
}, h = ({ client: e, organizationId: t }) => {
|
|
34
|
+
let [r] = n({
|
|
35
|
+
client: e,
|
|
36
|
+
headers: c(t)
|
|
31
37
|
}), i = { ...r };
|
|
32
38
|
return delete i.query, [i];
|
|
33
|
-
},
|
|
39
|
+
}, g = ({ client: t, organizationId: n }) => {
|
|
34
40
|
let [r] = e({
|
|
35
41
|
client: t,
|
|
36
|
-
headers:
|
|
42
|
+
headers: c(n),
|
|
37
43
|
query: {}
|
|
38
44
|
}), i = { ...r };
|
|
39
45
|
return delete i.query, [i];
|
|
40
46
|
};
|
|
41
47
|
//#endregion
|
|
42
|
-
export {
|
|
48
|
+
export { h as paymentRecordsInvalidationKey, m as receivableAttachmentsInvalidationKey, d as receivableHistoryInvalidationKey, u as receivableInvalidationKey, f as receivableMailsInvalidationKey, p as receivablePdfInvalidationKey, g as receivablesAnalyticsInvalidationKey, l as receivablesInvalidationKey };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js
CHANGED
|
@@ -2,6 +2,69 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
+
import { deleteFilesId as e, postFiles as t } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { invalidateAllClients as n } from "../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as r } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as i } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
5
9
|
import "../../../shared/data-access/dist/index.js";
|
|
6
|
-
import "./index2.js";
|
|
7
|
-
import "@tanstack/react-query";
|
|
10
|
+
import { receivableAttachmentsInvalidationKey as a, receivableInvalidationKey as o } from "./index2.js";
|
|
11
|
+
import { useMutation as s } from "@tanstack/react-query";
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js
|
|
13
|
+
var c = "attachments";
|
|
14
|
+
async function l({ client: e, organizationId: t, receivableId: r }) {
|
|
15
|
+
let i = [a({
|
|
16
|
+
client: e,
|
|
17
|
+
organizationId: t
|
|
18
|
+
}), ...r ? [o({
|
|
19
|
+
client: e,
|
|
20
|
+
organizationId: t,
|
|
21
|
+
receivableId: r
|
|
22
|
+
})] : []];
|
|
23
|
+
await Promise.all(i.map((e) => n(e)));
|
|
24
|
+
}
|
|
25
|
+
function u() {
|
|
26
|
+
let { client: e, organizationId: n } = r();
|
|
27
|
+
return s({
|
|
28
|
+
mutationFn: async ({ file: r }) => {
|
|
29
|
+
let { data: a } = await t({
|
|
30
|
+
client: e,
|
|
31
|
+
headers: i(n),
|
|
32
|
+
body: {
|
|
33
|
+
file: r,
|
|
34
|
+
file_type: c
|
|
35
|
+
},
|
|
36
|
+
throwOnError: !0
|
|
37
|
+
});
|
|
38
|
+
return a;
|
|
39
|
+
},
|
|
40
|
+
onSuccess: async (t, r) => {
|
|
41
|
+
await l({
|
|
42
|
+
client: e,
|
|
43
|
+
organizationId: n,
|
|
44
|
+
receivableId: r.receivableId
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function d() {
|
|
50
|
+
let { client: t, organizationId: n } = r();
|
|
51
|
+
return s({
|
|
52
|
+
mutationFn: async ({ path: r }) => {
|
|
53
|
+
await e({
|
|
54
|
+
client: t,
|
|
55
|
+
headers: i(n),
|
|
56
|
+
path: r,
|
|
57
|
+
throwOnError: !0
|
|
58
|
+
});
|
|
59
|
+
},
|
|
60
|
+
onSuccess: async (e, r) => {
|
|
61
|
+
await l({
|
|
62
|
+
client: t,
|
|
63
|
+
organizationId: n,
|
|
64
|
+
receivableId: r.receivableId
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
export { d as useDeleteReceivableAttachmentMutation, u as useUploadReceivableAttachmentMutation };
|