@tesouro/embedded-components-react 0.5.231 → 0.5.232
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 +1 -0
- package/dist/index.css +4 -0
- package/dist/index.d.ts +104 -2
- package/dist/index.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +104 -2
- package/dist/lib/ReceivablesWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +92 -55
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +64 -142
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +186 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index13.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +45 -74
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +68 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +66 -32
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +32 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +24 -166
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +175 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +42 -95
- 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/index13.js +36 -33
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index14.js +38 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +206 -147
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +39 -58
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +53 -227
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +216 -287
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +453 -43
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +103 -126
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +122 -146
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +145 -41
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +39 -115
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +113 -90
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +81 -98
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +111 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +26 -633
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +639 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +41 -40
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index33.js +35 -74
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index34.js +73 -130
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index35.js +133 -329
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index36.js +345 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +13 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +35 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +8 -71
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +70 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +31 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +18 -30
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +12 -301
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +33 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +14 -46
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +23 -67
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +76 -485
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +392 -95
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +48 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +72 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +496 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +97 -91
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +2 -236
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +1 -249
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +89 -82
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +23 -54
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +223 -340
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +249 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +59 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +353 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +17 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +41 -41
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +75 -43
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +0 -28
package/README.md
CHANGED
|
@@ -515,6 +515,7 @@ Lists, creates, edits and acts on an organization's invoices, quotes and credit
|
|
|
515
515
|
| `screenLabels` | `ReceivablesScreenLabelOverrides` | English labels | Table, tab, filter, empty, error, action and status badge copy. |
|
|
516
516
|
| `formLabels` | `Partial<ReceivableFormSheetLabels>` | English labels | Create/edit form copy; the save and issue buttons are in `messageLabels`. |
|
|
517
517
|
| `detailsLabels` | `ReceivableDetailsPanelLabelOverrides` | English labels | Details panel copy. Status badge copy comes from `screenLabels.statusBadge`. |
|
|
518
|
+
| `auditHistoryLabels` | `Partial<ReceivableAuditHistoryLabels>` | English labels | Audit history row copy. Document and status names follow `messageLabels` and `screenLabels.statusBadge` unless overridden here. |
|
|
518
519
|
| `sendLabels` | `Partial<ReceivableSendDialogLabels>` | English labels | Send-email dialog copy. |
|
|
519
520
|
| `paymentLabels` | `Partial<ReceivablePaymentDialogLabels>` | English labels | Manual payment dialog copy. |
|
|
520
521
|
| `actionLabels` | `Partial<ReceivableActionDialogLabels>` | English labels | Confirmation dialog buttons; per-action titles come from `messageLabels`. |
|
package/dist/index.css
CHANGED
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
--ttw-color-violet-200: oklch(89.4% 0.057 293.283);
|
|
77
77
|
--ttw-color-violet-400: oklch(70.2% 0.183 293.541);
|
|
78
78
|
--ttw-color-violet-700: oklch(49.1% 0.27 292.581);
|
|
79
|
+
--ttw-color-violet-950: oklch(28.3% 0.141 291.089);
|
|
79
80
|
--ttw-color-purple-50: oklch(97.7% 0.014 308.299);
|
|
80
81
|
--ttw-color-purple-100: oklch(94.6% 0.033 307.174);
|
|
81
82
|
--ttw-color-purple-400: oklch(71.4% 0.203 305.504);
|
|
@@ -6185,6 +6186,9 @@
|
|
|
6185
6186
|
.ttw\:dark\:bg-transparent:is(.dark *):not(.tesouro-embedded-light, .tesouro-embedded-light *) {
|
|
6186
6187
|
background-color: transparent;
|
|
6187
6188
|
}
|
|
6189
|
+
.ttw\:dark\:bg-violet-950:is(.dark *):not(.tesouro-embedded-light, .tesouro-embedded-light *) {
|
|
6190
|
+
background-color: var(--ttw-color-violet-950);
|
|
6191
|
+
}
|
|
6188
6192
|
.ttw\:dark\:bg-yellow-950:is(.dark *):not(.tesouro-embedded-light, .tesouro-embedded-light *) {
|
|
6189
6193
|
background-color: var(--ttw-color-yellow-950);
|
|
6190
6194
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1243,6 +1243,47 @@ interface WidgetTokenManager {
|
|
|
1243
1243
|
declare const DOCUMENT_KINDS: readonly ["invoice", "quote", "credit_note"];
|
|
1244
1244
|
type ReceivableDocumentKind = (typeof DOCUMENT_KINDS)[number];
|
|
1245
1245
|
|
|
1246
|
+
/** Copy every audit-history formatter needs to name who acted on a row. */
|
|
1247
|
+
interface AuditHistoryActorLabels {
|
|
1248
|
+
/** A template so locales own the wording/order, e.g. "Invoice created by Jane Doe". */
|
|
1249
|
+
byActor: (title: string, actorName: string) => string;
|
|
1250
|
+
}
|
|
1251
|
+
/**
|
|
1252
|
+
* Copy and formatting the caller owns, so the Monite panel can back this with
|
|
1253
|
+
* lingui and the native widget with its labels.ts.
|
|
1254
|
+
*/
|
|
1255
|
+
interface ReceivableAuditHistoryLabels extends AuditHistoryActorLabels {
|
|
1256
|
+
dateLabel: (isoDateTime: string) => string;
|
|
1257
|
+
timeLabel: (isoDateTime: string) => string;
|
|
1258
|
+
/** The noun for a document kind; `unknown` is a kind the payload named that we do not have. */
|
|
1259
|
+
documentTypeLabel: (kind: ReceivableDocumentKind | 'unknown') => string;
|
|
1260
|
+
/** The display name of a status, with a fallback for values we do not know. */
|
|
1261
|
+
statusLabel: (status: string) => string;
|
|
1262
|
+
formatAmount: (minorUnits: number, currency: string) => string;
|
|
1263
|
+
created: (documentTypeLabel: string) => string;
|
|
1264
|
+
recurringSeriesCreated: string;
|
|
1265
|
+
duplicatedFrom: (documentNumber: string) => string;
|
|
1266
|
+
documentUpdated: string;
|
|
1267
|
+
statusUpdated: string;
|
|
1268
|
+
changedTo: (statusLabel: string) => string;
|
|
1269
|
+
/** The sheet words a quote reaching `expired` on its own, not as "Changed to". */
|
|
1270
|
+
quoteExpired: string;
|
|
1271
|
+
paymentReceived: string;
|
|
1272
|
+
received: (amountLabel: string) => string;
|
|
1273
|
+
/** Used when the event names nobody, e.g. a send recorded before addresses were kept. */
|
|
1274
|
+
sentToCustomer: (documentTypeLabel: string) => string;
|
|
1275
|
+
/** `recipients` is already a joined, display-ready list of addresses. */
|
|
1276
|
+
sentToRecipients: (documentTypeLabel: string, recipients: string) => string;
|
|
1277
|
+
/** A send the API recorded as failed: no address is claimed to have received it. */
|
|
1278
|
+
sendFailed: (documentTypeLabel: string) => string;
|
|
1279
|
+
paymentReminderSent: string;
|
|
1280
|
+
overdueReminderSent: string;
|
|
1281
|
+
/** `days` is 0 on the due date itself. */
|
|
1282
|
+
dueInDays: (days: number) => string;
|
|
1283
|
+
daysOverdue: (days: number) => string;
|
|
1284
|
+
draftDeleted: string;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1246
1287
|
interface WidgetTokenRefreshProviderProps {
|
|
1247
1288
|
fetcher: WidgetTokenFetcher;
|
|
1248
1289
|
leadSeconds?: number;
|
|
@@ -5033,7 +5074,20 @@ interface ReceivableDetailsPanelLabels {
|
|
|
5033
5074
|
paymentHistoryEmpty: string;
|
|
5034
5075
|
paymentHistoryTotalLabel: string;
|
|
5035
5076
|
customerDetailsHeading: string;
|
|
5036
|
-
|
|
5077
|
+
recurringAmountCaption: string;
|
|
5078
|
+
startsOnCaption: string;
|
|
5079
|
+
endsOnCaption: string;
|
|
5080
|
+
recurringSeriesRowLabel: string;
|
|
5081
|
+
scheduleIssueDateColumn: string;
|
|
5082
|
+
scheduleAmountColumn: string;
|
|
5083
|
+
scheduleStatusColumn: string;
|
|
5084
|
+
scheduleNumberColumn: string;
|
|
5085
|
+
scheduleEmpty: string;
|
|
5086
|
+
auditHistoryHeading: string;
|
|
5087
|
+
auditHistoryEmpty: string;
|
|
5088
|
+
auditHistoryLoading: string;
|
|
5089
|
+
auditHistoryError: string;
|
|
5090
|
+
auditHistoryNamesError: string;
|
|
5037
5091
|
billingHeading: string;
|
|
5038
5092
|
lineItemsHeading: string;
|
|
5039
5093
|
notesHeading: string;
|
|
@@ -5057,6 +5111,9 @@ interface ReceivableDetailsPanelLabels {
|
|
|
5057
5111
|
cancelButton: string;
|
|
5058
5112
|
cloneButton: string;
|
|
5059
5113
|
deleteButton: string;
|
|
5114
|
+
pauseRecurrenceButton: string;
|
|
5115
|
+
resumeRecurrenceButton: string;
|
|
5116
|
+
cancelRecurrenceButton: string;
|
|
5060
5117
|
recurringBadge: string;
|
|
5061
5118
|
}
|
|
5062
5119
|
type ReceivableDetailsPanelLabelOverrides = Partial<ReceivableDetailsPanelLabels>;
|
|
@@ -5162,6 +5219,36 @@ interface ReceivableMessageLabels {
|
|
|
5162
5219
|
detailsRemindersBefore: string;
|
|
5163
5220
|
detailsRemindersAfter: string;
|
|
5164
5221
|
detailsRemindersNone: string;
|
|
5222
|
+
detailsFrequency: string;
|
|
5223
|
+
detailsFrequencyDay: string;
|
|
5224
|
+
detailsFrequencyWeek: string;
|
|
5225
|
+
detailsFrequencyMonth: string;
|
|
5226
|
+
detailsFrequencyQuarter: string;
|
|
5227
|
+
detailsFrequencyYear: string;
|
|
5228
|
+
detailsPeriodDay: string;
|
|
5229
|
+
detailsPeriodWeek: string;
|
|
5230
|
+
detailsPeriodMonth: string;
|
|
5231
|
+
detailsPeriodQuarter: string;
|
|
5232
|
+
detailsPeriodYear: string;
|
|
5233
|
+
/** `{name}` and `{frequency}` are replaced, e.g. "Acme - Monthly". */
|
|
5234
|
+
detailsSeriesTitle: string;
|
|
5235
|
+
detailsSeriesSubtitle: string;
|
|
5236
|
+
/** `{frequency}` is replaced, e.g. "Monthly schedule". */
|
|
5237
|
+
detailsScheduleTitle: string;
|
|
5238
|
+
/** `{title}` is replaced with the series title. */
|
|
5239
|
+
detailsSeriesBack: string;
|
|
5240
|
+
/** `{number}` is replaced with the invoice number. */
|
|
5241
|
+
detailsScheduleOpenInvoice: string;
|
|
5242
|
+
detailsSeriesStatusActive: string;
|
|
5243
|
+
detailsSeriesStatusPaused: string;
|
|
5244
|
+
detailsSeriesStatusCanceled: string;
|
|
5245
|
+
detailsSeriesStatusCompleted: string;
|
|
5246
|
+
detailsIterationStatusPending: string;
|
|
5247
|
+
detailsIterationStatusSkipped: string;
|
|
5248
|
+
detailsIterationStatusCanceled: string;
|
|
5249
|
+
detailsIterationStatusIssueFailed: string;
|
|
5250
|
+
detailsIterationStatusSendFailed: string;
|
|
5251
|
+
detailsIterationStatusCompleted: string;
|
|
5165
5252
|
sendSubjectDefault: string;
|
|
5166
5253
|
sendBodyDefault: string;
|
|
5167
5254
|
issueTitle: string;
|
|
@@ -5188,6 +5275,19 @@ interface ReceivableMessageLabels {
|
|
|
5188
5275
|
markUncollectibleTitle: string;
|
|
5189
5276
|
markUncollectibleDescription: string;
|
|
5190
5277
|
markUncollectibleConfirm: string;
|
|
5278
|
+
cancelRecurrenceTitle: string;
|
|
5279
|
+
cancelRecurrenceQuestion: string;
|
|
5280
|
+
cancelRecurrenceFutureIterations: string;
|
|
5281
|
+
/** `{count}`, `{invoices}` and `{amount}` are replaced. */
|
|
5282
|
+
cancelRecurrenceTotal: string;
|
|
5283
|
+
cancelRecurrenceInvoice: string;
|
|
5284
|
+
cancelRecurrenceInvoices: string;
|
|
5285
|
+
cancelRecurrenceIrreversible: string;
|
|
5286
|
+
cancelRecurrenceConfirm: string;
|
|
5287
|
+
cancelRecurrenceClose: string;
|
|
5288
|
+
recurrencePaused: string;
|
|
5289
|
+
recurrenceResumed: string;
|
|
5290
|
+
recurrenceCanceled: string;
|
|
5191
5291
|
attachmentsEmailCaption: string;
|
|
5192
5292
|
attachmentsRecurringEmailCaption: string;
|
|
5193
5293
|
attachmentIncludeInEmail: string;
|
|
@@ -5363,6 +5463,7 @@ interface ReceivablesWidgetOwnProps {
|
|
|
5363
5463
|
screenLabels?: ReceivablesScreenLabelOverrides;
|
|
5364
5464
|
formLabels?: Partial<ReceivableFormSheetLabels>;
|
|
5365
5465
|
detailsLabels?: ReceivableDetailsPanelLabelOverrides;
|
|
5466
|
+
auditHistoryLabels?: Partial<ReceivableAuditHistoryLabels>;
|
|
5366
5467
|
sendLabels?: Partial<ReceivableSendDialogLabels>;
|
|
5367
5468
|
paymentLabels?: Partial<ReceivablePaymentDialogLabels>;
|
|
5368
5469
|
actionLabels?: Partial<ReceivableActionDialogLabels>;
|
|
@@ -5374,6 +5475,7 @@ interface ReceivablesWidgetOwnProps {
|
|
|
5374
5475
|
productMessageLabels?: Partial<ProductMessageLabels>;
|
|
5375
5476
|
counterpartMessageLabels?: Partial<CounterpartMessageLabels>;
|
|
5376
5477
|
}
|
|
5478
|
+
|
|
5377
5479
|
type ReceivablesWidgetProps = WidgetProviderProps & ReceivablesWidgetOwnProps;
|
|
5378
5480
|
|
|
5379
5481
|
declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
|
|
@@ -5805,4 +5907,4 @@ interface GapCoverageAlertProps {
|
|
|
5805
5907
|
type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
|
|
5806
5908
|
|
|
5807
5909
|
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, APPLICATION_STATUS_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 };
|
|
5808
|
-
export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccordionItemCardLabels, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, ApplicationStatusLabelValues, ApplicationStatusLabels, ApplicationStatusNoticeLabels, 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, ExpenseStatusBadgeLabels, 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, ReceivableActionsModalLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, 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 };
|
|
5910
|
+
export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccordionItemCardLabels, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, ApplicationStatusLabelValues, ApplicationStatusLabels, ApplicationStatusNoticeLabels, 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, ExpenseStatusBadgeLabels, 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, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, 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/upload-receipt-widget/feature/dist/index2.js";
|
|
28
28
|
import { ExpenseManagementWidget as z } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index19.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/index36.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";
|
|
@@ -668,6 +668,47 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
668
668
|
declare const DOCUMENT_KINDS: readonly ["invoice", "quote", "credit_note"];
|
|
669
669
|
type ReceivableDocumentKind = (typeof DOCUMENT_KINDS)[number];
|
|
670
670
|
|
|
671
|
+
/** Copy every audit-history formatter needs to name who acted on a row. */
|
|
672
|
+
interface AuditHistoryActorLabels {
|
|
673
|
+
/** A template so locales own the wording/order, e.g. "Invoice created by Jane Doe". */
|
|
674
|
+
byActor: (title: string, actorName: string) => string;
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
* Copy and formatting the caller owns, so the Monite panel can back this with
|
|
678
|
+
* lingui and the native widget with its labels.ts.
|
|
679
|
+
*/
|
|
680
|
+
interface ReceivableAuditHistoryLabels extends AuditHistoryActorLabels {
|
|
681
|
+
dateLabel: (isoDateTime: string) => string;
|
|
682
|
+
timeLabel: (isoDateTime: string) => string;
|
|
683
|
+
/** The noun for a document kind; `unknown` is a kind the payload named that we do not have. */
|
|
684
|
+
documentTypeLabel: (kind: ReceivableDocumentKind | 'unknown') => string;
|
|
685
|
+
/** The display name of a status, with a fallback for values we do not know. */
|
|
686
|
+
statusLabel: (status: string) => string;
|
|
687
|
+
formatAmount: (minorUnits: number, currency: string) => string;
|
|
688
|
+
created: (documentTypeLabel: string) => string;
|
|
689
|
+
recurringSeriesCreated: string;
|
|
690
|
+
duplicatedFrom: (documentNumber: string) => string;
|
|
691
|
+
documentUpdated: string;
|
|
692
|
+
statusUpdated: string;
|
|
693
|
+
changedTo: (statusLabel: string) => string;
|
|
694
|
+
/** The sheet words a quote reaching `expired` on its own, not as "Changed to". */
|
|
695
|
+
quoteExpired: string;
|
|
696
|
+
paymentReceived: string;
|
|
697
|
+
received: (amountLabel: string) => string;
|
|
698
|
+
/** Used when the event names nobody, e.g. a send recorded before addresses were kept. */
|
|
699
|
+
sentToCustomer: (documentTypeLabel: string) => string;
|
|
700
|
+
/** `recipients` is already a joined, display-ready list of addresses. */
|
|
701
|
+
sentToRecipients: (documentTypeLabel: string, recipients: string) => string;
|
|
702
|
+
/** A send the API recorded as failed: no address is claimed to have received it. */
|
|
703
|
+
sendFailed: (documentTypeLabel: string) => string;
|
|
704
|
+
paymentReminderSent: string;
|
|
705
|
+
overdueReminderSent: string;
|
|
706
|
+
/** `days` is 0 on the due date itself. */
|
|
707
|
+
dueInDays: (days: number) => string;
|
|
708
|
+
daysOverdue: (days: number) => string;
|
|
709
|
+
draftDeleted: string;
|
|
710
|
+
}
|
|
711
|
+
|
|
671
712
|
interface AddressFieldGroupLabels {
|
|
672
713
|
line1: string;
|
|
673
714
|
line2: string;
|
|
@@ -1092,7 +1133,20 @@ interface ReceivableDetailsPanelLabels {
|
|
|
1092
1133
|
paymentHistoryEmpty: string;
|
|
1093
1134
|
paymentHistoryTotalLabel: string;
|
|
1094
1135
|
customerDetailsHeading: string;
|
|
1095
|
-
|
|
1136
|
+
recurringAmountCaption: string;
|
|
1137
|
+
startsOnCaption: string;
|
|
1138
|
+
endsOnCaption: string;
|
|
1139
|
+
recurringSeriesRowLabel: string;
|
|
1140
|
+
scheduleIssueDateColumn: string;
|
|
1141
|
+
scheduleAmountColumn: string;
|
|
1142
|
+
scheduleStatusColumn: string;
|
|
1143
|
+
scheduleNumberColumn: string;
|
|
1144
|
+
scheduleEmpty: string;
|
|
1145
|
+
auditHistoryHeading: string;
|
|
1146
|
+
auditHistoryEmpty: string;
|
|
1147
|
+
auditHistoryLoading: string;
|
|
1148
|
+
auditHistoryError: string;
|
|
1149
|
+
auditHistoryNamesError: string;
|
|
1096
1150
|
billingHeading: string;
|
|
1097
1151
|
lineItemsHeading: string;
|
|
1098
1152
|
notesHeading: string;
|
|
@@ -1116,6 +1170,9 @@ interface ReceivableDetailsPanelLabels {
|
|
|
1116
1170
|
cancelButton: string;
|
|
1117
1171
|
cloneButton: string;
|
|
1118
1172
|
deleteButton: string;
|
|
1173
|
+
pauseRecurrenceButton: string;
|
|
1174
|
+
resumeRecurrenceButton: string;
|
|
1175
|
+
cancelRecurrenceButton: string;
|
|
1119
1176
|
recurringBadge: string;
|
|
1120
1177
|
}
|
|
1121
1178
|
type ReceivableDetailsPanelLabelOverrides = Partial<ReceivableDetailsPanelLabels>;
|
|
@@ -1221,6 +1278,36 @@ interface ReceivableMessageLabels {
|
|
|
1221
1278
|
detailsRemindersBefore: string;
|
|
1222
1279
|
detailsRemindersAfter: string;
|
|
1223
1280
|
detailsRemindersNone: string;
|
|
1281
|
+
detailsFrequency: string;
|
|
1282
|
+
detailsFrequencyDay: string;
|
|
1283
|
+
detailsFrequencyWeek: string;
|
|
1284
|
+
detailsFrequencyMonth: string;
|
|
1285
|
+
detailsFrequencyQuarter: string;
|
|
1286
|
+
detailsFrequencyYear: string;
|
|
1287
|
+
detailsPeriodDay: string;
|
|
1288
|
+
detailsPeriodWeek: string;
|
|
1289
|
+
detailsPeriodMonth: string;
|
|
1290
|
+
detailsPeriodQuarter: string;
|
|
1291
|
+
detailsPeriodYear: string;
|
|
1292
|
+
/** `{name}` and `{frequency}` are replaced, e.g. "Acme - Monthly". */
|
|
1293
|
+
detailsSeriesTitle: string;
|
|
1294
|
+
detailsSeriesSubtitle: string;
|
|
1295
|
+
/** `{frequency}` is replaced, e.g. "Monthly schedule". */
|
|
1296
|
+
detailsScheduleTitle: string;
|
|
1297
|
+
/** `{title}` is replaced with the series title. */
|
|
1298
|
+
detailsSeriesBack: string;
|
|
1299
|
+
/** `{number}` is replaced with the invoice number. */
|
|
1300
|
+
detailsScheduleOpenInvoice: string;
|
|
1301
|
+
detailsSeriesStatusActive: string;
|
|
1302
|
+
detailsSeriesStatusPaused: string;
|
|
1303
|
+
detailsSeriesStatusCanceled: string;
|
|
1304
|
+
detailsSeriesStatusCompleted: string;
|
|
1305
|
+
detailsIterationStatusPending: string;
|
|
1306
|
+
detailsIterationStatusSkipped: string;
|
|
1307
|
+
detailsIterationStatusCanceled: string;
|
|
1308
|
+
detailsIterationStatusIssueFailed: string;
|
|
1309
|
+
detailsIterationStatusSendFailed: string;
|
|
1310
|
+
detailsIterationStatusCompleted: string;
|
|
1224
1311
|
sendSubjectDefault: string;
|
|
1225
1312
|
sendBodyDefault: string;
|
|
1226
1313
|
issueTitle: string;
|
|
@@ -1247,6 +1334,19 @@ interface ReceivableMessageLabels {
|
|
|
1247
1334
|
markUncollectibleTitle: string;
|
|
1248
1335
|
markUncollectibleDescription: string;
|
|
1249
1336
|
markUncollectibleConfirm: string;
|
|
1337
|
+
cancelRecurrenceTitle: string;
|
|
1338
|
+
cancelRecurrenceQuestion: string;
|
|
1339
|
+
cancelRecurrenceFutureIterations: string;
|
|
1340
|
+
/** `{count}`, `{invoices}` and `{amount}` are replaced. */
|
|
1341
|
+
cancelRecurrenceTotal: string;
|
|
1342
|
+
cancelRecurrenceInvoice: string;
|
|
1343
|
+
cancelRecurrenceInvoices: string;
|
|
1344
|
+
cancelRecurrenceIrreversible: string;
|
|
1345
|
+
cancelRecurrenceConfirm: string;
|
|
1346
|
+
cancelRecurrenceClose: string;
|
|
1347
|
+
recurrencePaused: string;
|
|
1348
|
+
recurrenceResumed: string;
|
|
1349
|
+
recurrenceCanceled: string;
|
|
1250
1350
|
attachmentsEmailCaption: string;
|
|
1251
1351
|
attachmentsRecurringEmailCaption: string;
|
|
1252
1352
|
attachmentIncludeInEmail: string;
|
|
@@ -1422,6 +1522,7 @@ interface ReceivablesWidgetOwnProps {
|
|
|
1422
1522
|
screenLabels?: ReceivablesScreenLabelOverrides;
|
|
1423
1523
|
formLabels?: Partial<ReceivableFormSheetLabels>;
|
|
1424
1524
|
detailsLabels?: ReceivableDetailsPanelLabelOverrides;
|
|
1525
|
+
auditHistoryLabels?: Partial<ReceivableAuditHistoryLabels>;
|
|
1425
1526
|
sendLabels?: Partial<ReceivableSendDialogLabels>;
|
|
1426
1527
|
paymentLabels?: Partial<ReceivablePaymentDialogLabels>;
|
|
1427
1528
|
actionLabels?: Partial<ReceivableActionDialogLabels>;
|
|
@@ -1433,9 +1534,10 @@ interface ReceivablesWidgetOwnProps {
|
|
|
1433
1534
|
productMessageLabels?: Partial<ProductMessageLabels>;
|
|
1434
1535
|
counterpartMessageLabels?: Partial<CounterpartMessageLabels>;
|
|
1435
1536
|
}
|
|
1537
|
+
|
|
1436
1538
|
type ReceivablesWidgetProps = WidgetProviderProps & ReceivablesWidgetOwnProps;
|
|
1437
1539
|
|
|
1438
1540
|
declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
|
|
1439
1541
|
|
|
1440
1542
|
export { ReceivablesWidget };
|
|
1441
|
-
export type { CounterpartFormSheetLabels, CounterpartMessageLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, ProductFormSheetLabels, ProductMessageLabels, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab };
|
|
1543
|
+
export type { CounterpartFormSheetLabels, CounterpartMessageLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, ProductFormSheetLabels, ProductMessageLabels, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab };
|
|
@@ -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/index36.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
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { usePaymentTermsQuery as e } from "../../../shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js";
|
|
2
2
|
import "../../../shared/data-access/dist/index.js";
|
|
3
3
|
import "./index2.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import "./index8.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
4
|
+
import { useAllReceivableHistoryQuery as t } from "./index3.js";
|
|
5
|
+
import { useCreateEntityBankAccountMutation as n, usePaymentAccountsQuery as r } from "./index4.js";
|
|
6
|
+
import { useDeleteReceivableAttachmentMutation as i, useUploadReceivableAttachmentMutation as a } from "./index5.js";
|
|
7
|
+
import { useSendReceivableEmailMutation as o } from "./index7.js";
|
|
8
|
+
import { useAcceptReceivableMutation as s, useCancelReceivableMutation as c, useCloneReceivableMutation as l, useCreateReceivableMutation as u, useDeclineReceivableMutation as d, useDeleteReceivableMutation as f, useIssueReceivableMutation as p, useUpdateReceivableMutation as m } from "./index8.js";
|
|
9
|
+
import { useReceivablePaymentRecordsQuery as h } from "./index9.js";
|
|
10
|
+
import { useMarkReceivablePaidMutation as g, useMarkReceivablePartiallyPaidMutation as _, useMarkReceivableUncollectibleMutation as v } from "./index10.js";
|
|
11
|
+
import { useReceivablePdfLinkQuery as y, useReceivableQuery as b, useReceivableRequiredFieldsQuery as x, useReceivablesByIdQueries as S, useReceivablesQuery as C } from "./index11.js";
|
|
12
|
+
import { useCancelRecurrenceMutation as w, useCreateOverdueReminderMutation as T, useCreatePaymentReminderMutation as E, useCreateRecurrenceMutation as D, useOverdueRemindersQuery as O, usePauseRecurrenceMutation as k, usePaymentRemindersQuery as A, useRecurrenceQuery as j, useResumeRecurrenceMutation as M, useUpdateRecurrenceMutation as N } from "./index12.js";
|
|
13
|
+
import { useReceivablesAnalyticsQuery as P } from "./index13.js";
|
|
14
|
+
export { s as useAcceptReceivableMutation, t as useAllReceivableHistoryQuery, c as useCancelReceivableMutation, w as useCancelRecurrenceMutation, l as useCloneReceivableMutation, n as useCreateEntityBankAccountMutation, T as useCreateOverdueReminderMutation, E as useCreatePaymentReminderMutation, u as useCreateReceivableMutation, D as useCreateRecurrenceMutation, d as useDeclineReceivableMutation, i as useDeleteReceivableAttachmentMutation, f as useDeleteReceivableMutation, p as useIssueReceivableMutation, g as useMarkReceivablePaidMutation, _ as useMarkReceivablePartiallyPaidMutation, v as useMarkReceivableUncollectibleMutation, O as useOverdueRemindersQuery, k as usePauseRecurrenceMutation, r as usePaymentAccountsQuery, A as usePaymentRemindersQuery, e as usePaymentTermsQuery, h as useReceivablePaymentRecordsQuery, y as useReceivablePdfLinkQuery, b as useReceivableQuery, x as useReceivableRequiredFieldsQuery, P as useReceivablesAnalyticsQuery, S as useReceivablesByIdQueries, C as useReceivablesQuery, j as useRecurrenceQuery, M as useResumeRecurrenceMutation, o as useSendReceivableEmailMutation, m as useUpdateReceivableMutation, N as useUpdateRecurrenceMutation, a as useUploadReceivableAttachmentMutation };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js
CHANGED
|
@@ -2,68 +2,105 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { useEmbedApi as
|
|
8
|
-
import { organizationHeaders as
|
|
5
|
+
import { postReceivablesIdMarkAsPaid as e, postReceivablesIdMarkAsPartiallyPaid as t, postReceivablesIdMarkAsUncollectible as n } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { invalidateAllClients as r } from "../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as i } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as a } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../shared/data-access/dist/index.js";
|
|
10
|
-
import {
|
|
10
|
+
import { paymentRecordsInvalidationKey as o, receivableHistoryInvalidationKey as s, receivableInvalidationKey as c, receivablesAnalyticsInvalidationKey as l, receivablesInvalidationKey as u } from "./index2.js";
|
|
11
|
+
import { useMutation as d } from "@tanstack/react-query";
|
|
11
12
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
async function f({ client: e, organizationId: t, receivableId: n }) {
|
|
14
|
+
await Promise.all([
|
|
15
|
+
r(u({
|
|
16
|
+
client: e,
|
|
17
|
+
organizationId: t
|
|
18
|
+
})),
|
|
19
|
+
r(c({
|
|
20
|
+
client: e,
|
|
21
|
+
organizationId: t,
|
|
22
|
+
receivableId: n
|
|
23
|
+
})),
|
|
24
|
+
r(s({
|
|
25
|
+
client: e,
|
|
26
|
+
organizationId: t,
|
|
27
|
+
receivableId: n
|
|
28
|
+
})),
|
|
29
|
+
r(l({
|
|
30
|
+
client: e,
|
|
31
|
+
organizationId: t
|
|
32
|
+
})),
|
|
33
|
+
r(o({
|
|
34
|
+
client: e,
|
|
35
|
+
organizationId: t
|
|
36
|
+
}))
|
|
37
|
+
]);
|
|
25
38
|
}
|
|
26
|
-
function
|
|
27
|
-
let { client:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
39
|
+
function p() {
|
|
40
|
+
let { client: t, organizationId: n } = i();
|
|
41
|
+
return d({
|
|
42
|
+
mutationFn: async ({ path: r, body: i }) => {
|
|
43
|
+
let { data: o } = await e({
|
|
44
|
+
client: t,
|
|
45
|
+
headers: a(n),
|
|
46
|
+
path: r,
|
|
47
|
+
body: i,
|
|
48
|
+
throwOnError: !0
|
|
49
|
+
});
|
|
50
|
+
return o;
|
|
51
|
+
},
|
|
52
|
+
onSuccess: async (e, r) => {
|
|
53
|
+
await f({
|
|
54
|
+
client: t,
|
|
55
|
+
organizationId: n,
|
|
56
|
+
receivableId: r.path.receivable_id
|
|
57
|
+
});
|
|
58
|
+
}
|
|
38
59
|
});
|
|
39
60
|
}
|
|
40
|
-
function
|
|
41
|
-
let { client:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
61
|
+
function m() {
|
|
62
|
+
let { client: e, organizationId: n } = i();
|
|
63
|
+
return d({
|
|
64
|
+
mutationFn: async ({ path: r, body: i }) => {
|
|
65
|
+
let { data: o } = await t({
|
|
66
|
+
client: e,
|
|
67
|
+
headers: a(n),
|
|
68
|
+
path: r,
|
|
69
|
+
body: i,
|
|
70
|
+
throwOnError: !0
|
|
71
|
+
});
|
|
72
|
+
return o;
|
|
73
|
+
},
|
|
74
|
+
onSuccess: async (t, r) => {
|
|
75
|
+
await f({
|
|
76
|
+
client: e,
|
|
77
|
+
organizationId: n,
|
|
78
|
+
receivableId: r.path.receivable_id
|
|
79
|
+
});
|
|
80
|
+
}
|
|
52
81
|
});
|
|
53
82
|
}
|
|
54
|
-
function
|
|
55
|
-
let { client:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
83
|
+
function h() {
|
|
84
|
+
let { client: e, organizationId: t } = i();
|
|
85
|
+
return d({
|
|
86
|
+
mutationFn: async ({ path: r, body: i }) => {
|
|
87
|
+
let { data: o } = await n({
|
|
88
|
+
client: e,
|
|
89
|
+
headers: a(t),
|
|
90
|
+
path: r,
|
|
91
|
+
body: i,
|
|
92
|
+
throwOnError: !0
|
|
93
|
+
});
|
|
94
|
+
return o;
|
|
95
|
+
},
|
|
96
|
+
onSuccess: async (n, r) => {
|
|
97
|
+
await f({
|
|
98
|
+
client: e,
|
|
99
|
+
organizationId: t,
|
|
100
|
+
receivableId: r.path.receivable_id
|
|
101
|
+
});
|
|
102
|
+
}
|
|
66
103
|
});
|
|
67
104
|
}
|
|
68
105
|
//#endregion
|
|
69
|
-
export {
|
|
106
|
+
export { p as useMarkReceivablePaidMutation, m as useMarkReceivablePartiallyPaidMutation, h as useMarkReceivableUncollectibleMutation };
|