@tesouro/embedded-components-react 0.5.231 → 0.5.233
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 +105 -2
- package/dist/index.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +105 -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 +67 -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 +28 -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 +177 -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 +395 -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 +18 -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/clientRegistry.js +6 -3
- 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;
|
|
@@ -5032,8 +5073,22 @@ interface ReceivableDetailsPanelLabels {
|
|
|
5032
5073
|
paymentHistoryHeading: string;
|
|
5033
5074
|
paymentHistoryEmpty: string;
|
|
5034
5075
|
paymentHistoryTotalLabel: string;
|
|
5076
|
+
paymentHistoryLoading: string;
|
|
5035
5077
|
customerDetailsHeading: string;
|
|
5036
|
-
|
|
5078
|
+
recurringAmountCaption: string;
|
|
5079
|
+
startsOnCaption: string;
|
|
5080
|
+
endsOnCaption: string;
|
|
5081
|
+
recurringSeriesRowLabel: string;
|
|
5082
|
+
scheduleIssueDateColumn: string;
|
|
5083
|
+
scheduleAmountColumn: string;
|
|
5084
|
+
scheduleStatusColumn: string;
|
|
5085
|
+
scheduleNumberColumn: string;
|
|
5086
|
+
scheduleEmpty: string;
|
|
5087
|
+
auditHistoryHeading: string;
|
|
5088
|
+
auditHistoryEmpty: string;
|
|
5089
|
+
auditHistoryLoading: string;
|
|
5090
|
+
auditHistoryError: string;
|
|
5091
|
+
auditHistoryNamesError: string;
|
|
5037
5092
|
billingHeading: string;
|
|
5038
5093
|
lineItemsHeading: string;
|
|
5039
5094
|
notesHeading: string;
|
|
@@ -5057,6 +5112,9 @@ interface ReceivableDetailsPanelLabels {
|
|
|
5057
5112
|
cancelButton: string;
|
|
5058
5113
|
cloneButton: string;
|
|
5059
5114
|
deleteButton: string;
|
|
5115
|
+
pauseRecurrenceButton: string;
|
|
5116
|
+
resumeRecurrenceButton: string;
|
|
5117
|
+
cancelRecurrenceButton: string;
|
|
5060
5118
|
recurringBadge: string;
|
|
5061
5119
|
}
|
|
5062
5120
|
type ReceivableDetailsPanelLabelOverrides = Partial<ReceivableDetailsPanelLabels>;
|
|
@@ -5162,6 +5220,36 @@ interface ReceivableMessageLabels {
|
|
|
5162
5220
|
detailsRemindersBefore: string;
|
|
5163
5221
|
detailsRemindersAfter: string;
|
|
5164
5222
|
detailsRemindersNone: string;
|
|
5223
|
+
detailsFrequency: string;
|
|
5224
|
+
detailsFrequencyDay: string;
|
|
5225
|
+
detailsFrequencyWeek: string;
|
|
5226
|
+
detailsFrequencyMonth: string;
|
|
5227
|
+
detailsFrequencyQuarter: string;
|
|
5228
|
+
detailsFrequencyYear: string;
|
|
5229
|
+
detailsPeriodDay: string;
|
|
5230
|
+
detailsPeriodWeek: string;
|
|
5231
|
+
detailsPeriodMonth: string;
|
|
5232
|
+
detailsPeriodQuarter: string;
|
|
5233
|
+
detailsPeriodYear: string;
|
|
5234
|
+
/** `{name}` and `{frequency}` are replaced, e.g. "Acme - Monthly". */
|
|
5235
|
+
detailsSeriesTitle: string;
|
|
5236
|
+
detailsSeriesSubtitle: string;
|
|
5237
|
+
/** `{frequency}` is replaced, e.g. "Monthly schedule". */
|
|
5238
|
+
detailsScheduleTitle: string;
|
|
5239
|
+
/** `{title}` is replaced with the series title. */
|
|
5240
|
+
detailsSeriesBack: string;
|
|
5241
|
+
/** `{number}` is replaced with the invoice number. */
|
|
5242
|
+
detailsScheduleOpenInvoice: string;
|
|
5243
|
+
detailsSeriesStatusActive: string;
|
|
5244
|
+
detailsSeriesStatusPaused: string;
|
|
5245
|
+
detailsSeriesStatusCanceled: string;
|
|
5246
|
+
detailsSeriesStatusCompleted: string;
|
|
5247
|
+
detailsIterationStatusPending: string;
|
|
5248
|
+
detailsIterationStatusSkipped: string;
|
|
5249
|
+
detailsIterationStatusCanceled: string;
|
|
5250
|
+
detailsIterationStatusIssueFailed: string;
|
|
5251
|
+
detailsIterationStatusSendFailed: string;
|
|
5252
|
+
detailsIterationStatusCompleted: string;
|
|
5165
5253
|
sendSubjectDefault: string;
|
|
5166
5254
|
sendBodyDefault: string;
|
|
5167
5255
|
issueTitle: string;
|
|
@@ -5188,6 +5276,19 @@ interface ReceivableMessageLabels {
|
|
|
5188
5276
|
markUncollectibleTitle: string;
|
|
5189
5277
|
markUncollectibleDescription: string;
|
|
5190
5278
|
markUncollectibleConfirm: string;
|
|
5279
|
+
cancelRecurrenceTitle: string;
|
|
5280
|
+
cancelRecurrenceQuestion: string;
|
|
5281
|
+
cancelRecurrenceFutureIterations: string;
|
|
5282
|
+
/** `{count}`, `{invoices}` and `{amount}` are replaced. */
|
|
5283
|
+
cancelRecurrenceTotal: string;
|
|
5284
|
+
cancelRecurrenceInvoice: string;
|
|
5285
|
+
cancelRecurrenceInvoices: string;
|
|
5286
|
+
cancelRecurrenceIrreversible: string;
|
|
5287
|
+
cancelRecurrenceConfirm: string;
|
|
5288
|
+
cancelRecurrenceClose: string;
|
|
5289
|
+
recurrencePaused: string;
|
|
5290
|
+
recurrenceResumed: string;
|
|
5291
|
+
recurrenceCanceled: string;
|
|
5191
5292
|
attachmentsEmailCaption: string;
|
|
5192
5293
|
attachmentsRecurringEmailCaption: string;
|
|
5193
5294
|
attachmentIncludeInEmail: string;
|
|
@@ -5363,6 +5464,7 @@ interface ReceivablesWidgetOwnProps {
|
|
|
5363
5464
|
screenLabels?: ReceivablesScreenLabelOverrides;
|
|
5364
5465
|
formLabels?: Partial<ReceivableFormSheetLabels>;
|
|
5365
5466
|
detailsLabels?: ReceivableDetailsPanelLabelOverrides;
|
|
5467
|
+
auditHistoryLabels?: Partial<ReceivableAuditHistoryLabels>;
|
|
5366
5468
|
sendLabels?: Partial<ReceivableSendDialogLabels>;
|
|
5367
5469
|
paymentLabels?: Partial<ReceivablePaymentDialogLabels>;
|
|
5368
5470
|
actionLabels?: Partial<ReceivableActionDialogLabels>;
|
|
@@ -5374,6 +5476,7 @@ interface ReceivablesWidgetOwnProps {
|
|
|
5374
5476
|
productMessageLabels?: Partial<ProductMessageLabels>;
|
|
5375
5477
|
counterpartMessageLabels?: Partial<CounterpartMessageLabels>;
|
|
5376
5478
|
}
|
|
5479
|
+
|
|
5377
5480
|
type ReceivablesWidgetProps = WidgetProviderProps & ReceivablesWidgetOwnProps;
|
|
5378
5481
|
|
|
5379
5482
|
declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
|
|
@@ -5805,4 +5908,4 @@ interface GapCoverageAlertProps {
|
|
|
5805
5908
|
type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
|
|
5806
5909
|
|
|
5807
5910
|
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 };
|
|
5911
|
+
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;
|
|
@@ -1091,8 +1132,22 @@ interface ReceivableDetailsPanelLabels {
|
|
|
1091
1132
|
paymentHistoryHeading: string;
|
|
1092
1133
|
paymentHistoryEmpty: string;
|
|
1093
1134
|
paymentHistoryTotalLabel: string;
|
|
1135
|
+
paymentHistoryLoading: string;
|
|
1094
1136
|
customerDetailsHeading: string;
|
|
1095
|
-
|
|
1137
|
+
recurringAmountCaption: string;
|
|
1138
|
+
startsOnCaption: string;
|
|
1139
|
+
endsOnCaption: string;
|
|
1140
|
+
recurringSeriesRowLabel: string;
|
|
1141
|
+
scheduleIssueDateColumn: string;
|
|
1142
|
+
scheduleAmountColumn: string;
|
|
1143
|
+
scheduleStatusColumn: string;
|
|
1144
|
+
scheduleNumberColumn: string;
|
|
1145
|
+
scheduleEmpty: string;
|
|
1146
|
+
auditHistoryHeading: string;
|
|
1147
|
+
auditHistoryEmpty: string;
|
|
1148
|
+
auditHistoryLoading: string;
|
|
1149
|
+
auditHistoryError: string;
|
|
1150
|
+
auditHistoryNamesError: string;
|
|
1096
1151
|
billingHeading: string;
|
|
1097
1152
|
lineItemsHeading: string;
|
|
1098
1153
|
notesHeading: string;
|
|
@@ -1116,6 +1171,9 @@ interface ReceivableDetailsPanelLabels {
|
|
|
1116
1171
|
cancelButton: string;
|
|
1117
1172
|
cloneButton: string;
|
|
1118
1173
|
deleteButton: string;
|
|
1174
|
+
pauseRecurrenceButton: string;
|
|
1175
|
+
resumeRecurrenceButton: string;
|
|
1176
|
+
cancelRecurrenceButton: string;
|
|
1119
1177
|
recurringBadge: string;
|
|
1120
1178
|
}
|
|
1121
1179
|
type ReceivableDetailsPanelLabelOverrides = Partial<ReceivableDetailsPanelLabels>;
|
|
@@ -1221,6 +1279,36 @@ interface ReceivableMessageLabels {
|
|
|
1221
1279
|
detailsRemindersBefore: string;
|
|
1222
1280
|
detailsRemindersAfter: string;
|
|
1223
1281
|
detailsRemindersNone: string;
|
|
1282
|
+
detailsFrequency: string;
|
|
1283
|
+
detailsFrequencyDay: string;
|
|
1284
|
+
detailsFrequencyWeek: string;
|
|
1285
|
+
detailsFrequencyMonth: string;
|
|
1286
|
+
detailsFrequencyQuarter: string;
|
|
1287
|
+
detailsFrequencyYear: string;
|
|
1288
|
+
detailsPeriodDay: string;
|
|
1289
|
+
detailsPeriodWeek: string;
|
|
1290
|
+
detailsPeriodMonth: string;
|
|
1291
|
+
detailsPeriodQuarter: string;
|
|
1292
|
+
detailsPeriodYear: string;
|
|
1293
|
+
/** `{name}` and `{frequency}` are replaced, e.g. "Acme - Monthly". */
|
|
1294
|
+
detailsSeriesTitle: string;
|
|
1295
|
+
detailsSeriesSubtitle: string;
|
|
1296
|
+
/** `{frequency}` is replaced, e.g. "Monthly schedule". */
|
|
1297
|
+
detailsScheduleTitle: string;
|
|
1298
|
+
/** `{title}` is replaced with the series title. */
|
|
1299
|
+
detailsSeriesBack: string;
|
|
1300
|
+
/** `{number}` is replaced with the invoice number. */
|
|
1301
|
+
detailsScheduleOpenInvoice: string;
|
|
1302
|
+
detailsSeriesStatusActive: string;
|
|
1303
|
+
detailsSeriesStatusPaused: string;
|
|
1304
|
+
detailsSeriesStatusCanceled: string;
|
|
1305
|
+
detailsSeriesStatusCompleted: string;
|
|
1306
|
+
detailsIterationStatusPending: string;
|
|
1307
|
+
detailsIterationStatusSkipped: string;
|
|
1308
|
+
detailsIterationStatusCanceled: string;
|
|
1309
|
+
detailsIterationStatusIssueFailed: string;
|
|
1310
|
+
detailsIterationStatusSendFailed: string;
|
|
1311
|
+
detailsIterationStatusCompleted: string;
|
|
1224
1312
|
sendSubjectDefault: string;
|
|
1225
1313
|
sendBodyDefault: string;
|
|
1226
1314
|
issueTitle: string;
|
|
@@ -1247,6 +1335,19 @@ interface ReceivableMessageLabels {
|
|
|
1247
1335
|
markUncollectibleTitle: string;
|
|
1248
1336
|
markUncollectibleDescription: string;
|
|
1249
1337
|
markUncollectibleConfirm: string;
|
|
1338
|
+
cancelRecurrenceTitle: string;
|
|
1339
|
+
cancelRecurrenceQuestion: string;
|
|
1340
|
+
cancelRecurrenceFutureIterations: string;
|
|
1341
|
+
/** `{count}`, `{invoices}` and `{amount}` are replaced. */
|
|
1342
|
+
cancelRecurrenceTotal: string;
|
|
1343
|
+
cancelRecurrenceInvoice: string;
|
|
1344
|
+
cancelRecurrenceInvoices: string;
|
|
1345
|
+
cancelRecurrenceIrreversible: string;
|
|
1346
|
+
cancelRecurrenceConfirm: string;
|
|
1347
|
+
cancelRecurrenceClose: string;
|
|
1348
|
+
recurrencePaused: string;
|
|
1349
|
+
recurrenceResumed: string;
|
|
1350
|
+
recurrenceCanceled: string;
|
|
1250
1351
|
attachmentsEmailCaption: string;
|
|
1251
1352
|
attachmentsRecurringEmailCaption: string;
|
|
1252
1353
|
attachmentIncludeInEmail: string;
|
|
@@ -1422,6 +1523,7 @@ interface ReceivablesWidgetOwnProps {
|
|
|
1422
1523
|
screenLabels?: ReceivablesScreenLabelOverrides;
|
|
1423
1524
|
formLabels?: Partial<ReceivableFormSheetLabels>;
|
|
1424
1525
|
detailsLabels?: ReceivableDetailsPanelLabelOverrides;
|
|
1526
|
+
auditHistoryLabels?: Partial<ReceivableAuditHistoryLabels>;
|
|
1425
1527
|
sendLabels?: Partial<ReceivableSendDialogLabels>;
|
|
1426
1528
|
paymentLabels?: Partial<ReceivablePaymentDialogLabels>;
|
|
1427
1529
|
actionLabels?: Partial<ReceivableActionDialogLabels>;
|
|
@@ -1433,9 +1535,10 @@ interface ReceivablesWidgetOwnProps {
|
|
|
1433
1535
|
productMessageLabels?: Partial<ProductMessageLabels>;
|
|
1434
1536
|
counterpartMessageLabels?: Partial<CounterpartMessageLabels>;
|
|
1435
1537
|
}
|
|
1538
|
+
|
|
1436
1539
|
type ReceivablesWidgetProps = WidgetProviderProps & ReceivablesWidgetOwnProps;
|
|
1437
1540
|
|
|
1438
1541
|
declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
|
|
1439
1542
|
|
|
1440
1543
|
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 };
|
|
1544
|
+
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 };
|