@tesouro/embedded-components-react 0.5.293 → 0.5.295
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 -1
- package/dist/index.d.ts +26 -1
- package/dist/lib/CounterpartsWidget.d.ts +2 -0
- package/dist/lib/CounterpartsWidgetPublic.d.ts +2 -0
- package/dist/lib/CustomersWidget.d.ts +2 -0
- package/dist/lib/ReceivablesWidget.d.ts +26 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index14.js +5 -88
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index15.js +70 -173
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js +210 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index17.js +29 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +6 -7
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +142 -141
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +84 -54
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +21 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentTerms.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/reminders.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/totals.js +13 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +84 -80
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +32 -30
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +417 -414
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableIssuePreflight.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableStatusCards.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +83 -66
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +133 -129
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useSendReceivableWithPaymentLink.js +26 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useUtcDayStart.js +16 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +20 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +91 -85
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +119 -88
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +130 -96
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/labels.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +101 -98
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index9.js +34 -20
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +40 -39
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/interceptor.js +55 -41
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index6.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/widgetTokenManager.js +51 -30
- package/dist/packages/shared-ui-shadcn/dist/index.js +15 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -514,7 +514,7 @@ Lists, creates, edits and acts on an organization's invoices, including sending
|
|
|
514
514
|
| `initialView` | `'create'` | `undefined` | Opens the create-invoice form once on mount, when the user can create invoices. Closing it does not reopen it. |
|
|
515
515
|
| `initialCounterpartId` | `string` | `undefined` | With `initialView: 'create'`, preselects this customer in that first create form only. Otherwise, opens the invoice list filtered to this customer, with a chip naming them. Clear all removes it. |
|
|
516
516
|
| `pageSizeOptions` | `number[]` | `[10, 25, 50, 100]` | Rows-per-page choices. The first page loads at the first choice, or `10` when the list is empty. |
|
|
517
|
-
| `onReceivableCreated` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called after a create
|
|
517
|
+
| `onReceivableCreated` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called after a create succeeds. Not called for a duplicate. |
|
|
518
518
|
| `onReceivableOpened` | `(id: string, type: ReceivableDocumentType) => void` | `undefined` | Called when the user opens a row's details panel. |
|
|
519
519
|
| `onTemplateSettingsClick` | `() => void` | `undefined` | Shows the invoice settings button in the header, for users holding `organization_settings:write:org`, and calls this when it is clicked. |
|
|
520
520
|
| `headerStart` | `ReactNode` | `undefined` | Rendered at the start of the header row. The widget renders no heading of its own, so pass your page title here. |
|
package/dist/index.d.ts
CHANGED
|
@@ -4591,6 +4591,8 @@ interface CounterpartMessageLabels {
|
|
|
4591
4591
|
lastNameRequired: string;
|
|
4592
4592
|
emailRequired: string;
|
|
4593
4593
|
emailInvalid: string;
|
|
4594
|
+
phoneInvalid: string;
|
|
4595
|
+
taxIdInvalid: string;
|
|
4594
4596
|
addressLine1Required: string;
|
|
4595
4597
|
cityRequired: string;
|
|
4596
4598
|
stateRequired: string;
|
|
@@ -5102,7 +5104,6 @@ interface ReceivableCustomerSectionLabels {
|
|
|
5102
5104
|
interface ReceivableRecurrenceSectionLabels {
|
|
5103
5105
|
recurrenceRepeatLabel: string;
|
|
5104
5106
|
recurrenceMonthDayLead: string;
|
|
5105
|
-
recurrenceMonthDayTrail: string;
|
|
5106
5107
|
recurrenceWeekdayLead: string;
|
|
5107
5108
|
recurrenceStartOnLabel: string;
|
|
5108
5109
|
recurrenceEndChoiceLead: string;
|
|
@@ -5437,6 +5438,7 @@ interface ReceivableMessageLabels {
|
|
|
5437
5438
|
invoiceSubtotalTooHigh: string;
|
|
5438
5439
|
/** `{maxAmount}` is replaced with the formatted cap. */
|
|
5439
5440
|
invoiceTotalTooHigh: string;
|
|
5441
|
+
invoiceTotalZero: string;
|
|
5440
5442
|
paymentRecordAmountRequired: string;
|
|
5441
5443
|
paymentRecordAmountNegative: string;
|
|
5442
5444
|
paymentRecordAmountZero: string;
|
|
@@ -5469,6 +5471,11 @@ interface ReceivableMessageLabels {
|
|
|
5469
5471
|
untitledDocument: string;
|
|
5470
5472
|
/** Shown in an invoice row's number and date cells while they have no value. */
|
|
5471
5473
|
pendingValue: string;
|
|
5474
|
+
/** The Number cell of a recurring row the series has not numbered. */
|
|
5475
|
+
recurringNumber: string;
|
|
5476
|
+
/** `{days}` is replaced. Monite shows it under a draft's past due date. */
|
|
5477
|
+
listDayOverdue: string;
|
|
5478
|
+
listDaysOverdue: string;
|
|
5472
5479
|
unknownCustomer: string;
|
|
5473
5480
|
notAvailable: string;
|
|
5474
5481
|
invoiceType: string;
|
|
@@ -5488,6 +5495,8 @@ interface ReceivableMessageLabels {
|
|
|
5488
5495
|
detailsBalanceDue: string;
|
|
5489
5496
|
detailsAmountReceived: string;
|
|
5490
5497
|
detailsCancelledAmount: string;
|
|
5498
|
+
detailsSendButton: string;
|
|
5499
|
+
detailsResendButton: string;
|
|
5491
5500
|
detailsAmountWrittenOff: string;
|
|
5492
5501
|
detailsCancelledOnCaption: string;
|
|
5493
5502
|
detailsPending: string;
|
|
@@ -5544,6 +5553,8 @@ interface ReceivableMessageLabels {
|
|
|
5544
5553
|
declineDescription: string;
|
|
5545
5554
|
declineConfirm: string;
|
|
5546
5555
|
issueFailed: string;
|
|
5556
|
+
/** Monite's fallback when a failed request carries no reason. */
|
|
5557
|
+
unrecognizedError: string;
|
|
5547
5558
|
sendNoEmail: string;
|
|
5548
5559
|
cancelTitle: string;
|
|
5549
5560
|
/** `{number}` is replaced with the invoice number. */
|
|
@@ -5551,17 +5562,27 @@ interface ReceivableMessageLabels {
|
|
|
5551
5562
|
cancelClose: string;
|
|
5552
5563
|
cancelDescription: string;
|
|
5553
5564
|
cancelConfirm: string;
|
|
5565
|
+
cancelSucceeded: string;
|
|
5554
5566
|
cloneSuccess: string;
|
|
5555
5567
|
cloneError: string;
|
|
5556
5568
|
deleteTitle: string;
|
|
5569
|
+
/** `{number}` is replaced with the invoice number. */
|
|
5570
|
+
deleteNumberedTitle: string;
|
|
5557
5571
|
deleteDescription: string;
|
|
5558
5572
|
deleteConfirm: string;
|
|
5573
|
+
deleteSucceeded: string;
|
|
5559
5574
|
markPaidTitle: string;
|
|
5560
5575
|
markPaidDescription: string;
|
|
5561
5576
|
markPaidConfirm: string;
|
|
5562
5577
|
markUncollectibleTitle: string;
|
|
5563
5578
|
markUncollectibleDescription: string;
|
|
5564
5579
|
markUncollectibleConfirm: string;
|
|
5580
|
+
markUncollectibleSucceeded: string;
|
|
5581
|
+
/** `{customer}` is replaced with the customer's name. */
|
|
5582
|
+
createSucceeded: string;
|
|
5583
|
+
updateSucceeded: string;
|
|
5584
|
+
recurrenceActivated: string;
|
|
5585
|
+
recurrenceUpdated: string;
|
|
5565
5586
|
cancelRecurrenceTitle: string;
|
|
5566
5587
|
cancelRecurrenceQuestion: string;
|
|
5567
5588
|
cancelRecurrenceFutureIterations: string;
|
|
@@ -5595,6 +5616,8 @@ interface ReceivableMessageLabels {
|
|
|
5595
5616
|
recurrenceFrequencyAnnually: string;
|
|
5596
5617
|
recurrenceFirstDay: string;
|
|
5597
5618
|
recurrenceLastDay: string;
|
|
5619
|
+
recurrenceMonthDayTrail: string;
|
|
5620
|
+
recurrenceMonthEdgeTrail: string;
|
|
5598
5621
|
recurrenceWeekdayMo: string;
|
|
5599
5622
|
recurrenceWeekdayTu: string;
|
|
5600
5623
|
recurrenceWeekdayWe: string;
|
|
@@ -5705,6 +5728,8 @@ interface ReceivableMessageLabels {
|
|
|
5705
5728
|
actionsSendSucceeded: string;
|
|
5706
5729
|
actionsSendFailed: string;
|
|
5707
5730
|
actionsSendWithoutPaymentLink: string;
|
|
5731
|
+
/** A native addition: Monite has no path that sends without the payment-link scope. */
|
|
5732
|
+
actionsSendWithoutPaymentLinkScope: string;
|
|
5708
5733
|
actionsTitleSent: string;
|
|
5709
5734
|
actionsTitleIssued: string;
|
|
5710
5735
|
actionsTitleRecurrence: string;
|
|
@@ -779,6 +779,8 @@ interface CounterpartMessageLabels {
|
|
|
779
779
|
lastNameRequired: string;
|
|
780
780
|
emailRequired: string;
|
|
781
781
|
emailInvalid: string;
|
|
782
|
+
phoneInvalid: string;
|
|
783
|
+
taxIdInvalid: string;
|
|
782
784
|
addressLine1Required: string;
|
|
783
785
|
cityRequired: string;
|
|
784
786
|
stateRequired: string;
|
|
@@ -779,6 +779,8 @@ interface CounterpartMessageLabels {
|
|
|
779
779
|
lastNameRequired: string;
|
|
780
780
|
emailRequired: string;
|
|
781
781
|
emailInvalid: string;
|
|
782
|
+
phoneInvalid: string;
|
|
783
|
+
taxIdInvalid: string;
|
|
782
784
|
addressLine1Required: string;
|
|
783
785
|
cityRequired: string;
|
|
784
786
|
stateRequired: string;
|
|
@@ -760,6 +760,8 @@ interface CounterpartMessageLabels {
|
|
|
760
760
|
lastNameRequired: string;
|
|
761
761
|
emailRequired: string;
|
|
762
762
|
emailInvalid: string;
|
|
763
|
+
phoneInvalid: string;
|
|
764
|
+
taxIdInvalid: string;
|
|
763
765
|
addressLine1Required: string;
|
|
764
766
|
cityRequired: string;
|
|
765
767
|
stateRequired: string;
|
|
@@ -842,6 +842,8 @@ interface CounterpartMessageLabels {
|
|
|
842
842
|
lastNameRequired: string;
|
|
843
843
|
emailRequired: string;
|
|
844
844
|
emailInvalid: string;
|
|
845
|
+
phoneInvalid: string;
|
|
846
|
+
taxIdInvalid: string;
|
|
845
847
|
addressLine1Required: string;
|
|
846
848
|
cityRequired: string;
|
|
847
849
|
stateRequired: string;
|
|
@@ -1022,7 +1024,6 @@ interface ReceivableCustomerSectionLabels {
|
|
|
1022
1024
|
interface ReceivableRecurrenceSectionLabels {
|
|
1023
1025
|
recurrenceRepeatLabel: string;
|
|
1024
1026
|
recurrenceMonthDayLead: string;
|
|
1025
|
-
recurrenceMonthDayTrail: string;
|
|
1026
1027
|
recurrenceWeekdayLead: string;
|
|
1027
1028
|
recurrenceStartOnLabel: string;
|
|
1028
1029
|
recurrenceEndChoiceLead: string;
|
|
@@ -1357,6 +1358,7 @@ interface ReceivableMessageLabels {
|
|
|
1357
1358
|
invoiceSubtotalTooHigh: string;
|
|
1358
1359
|
/** `{maxAmount}` is replaced with the formatted cap. */
|
|
1359
1360
|
invoiceTotalTooHigh: string;
|
|
1361
|
+
invoiceTotalZero: string;
|
|
1360
1362
|
paymentRecordAmountRequired: string;
|
|
1361
1363
|
paymentRecordAmountNegative: string;
|
|
1362
1364
|
paymentRecordAmountZero: string;
|
|
@@ -1389,6 +1391,11 @@ interface ReceivableMessageLabels {
|
|
|
1389
1391
|
untitledDocument: string;
|
|
1390
1392
|
/** Shown in an invoice row's number and date cells while they have no value. */
|
|
1391
1393
|
pendingValue: string;
|
|
1394
|
+
/** The Number cell of a recurring row the series has not numbered. */
|
|
1395
|
+
recurringNumber: string;
|
|
1396
|
+
/** `{days}` is replaced. Monite shows it under a draft's past due date. */
|
|
1397
|
+
listDayOverdue: string;
|
|
1398
|
+
listDaysOverdue: string;
|
|
1392
1399
|
unknownCustomer: string;
|
|
1393
1400
|
notAvailable: string;
|
|
1394
1401
|
invoiceType: string;
|
|
@@ -1408,6 +1415,8 @@ interface ReceivableMessageLabels {
|
|
|
1408
1415
|
detailsBalanceDue: string;
|
|
1409
1416
|
detailsAmountReceived: string;
|
|
1410
1417
|
detailsCancelledAmount: string;
|
|
1418
|
+
detailsSendButton: string;
|
|
1419
|
+
detailsResendButton: string;
|
|
1411
1420
|
detailsAmountWrittenOff: string;
|
|
1412
1421
|
detailsCancelledOnCaption: string;
|
|
1413
1422
|
detailsPending: string;
|
|
@@ -1464,6 +1473,8 @@ interface ReceivableMessageLabels {
|
|
|
1464
1473
|
declineDescription: string;
|
|
1465
1474
|
declineConfirm: string;
|
|
1466
1475
|
issueFailed: string;
|
|
1476
|
+
/** Monite's fallback when a failed request carries no reason. */
|
|
1477
|
+
unrecognizedError: string;
|
|
1467
1478
|
sendNoEmail: string;
|
|
1468
1479
|
cancelTitle: string;
|
|
1469
1480
|
/** `{number}` is replaced with the invoice number. */
|
|
@@ -1471,17 +1482,27 @@ interface ReceivableMessageLabels {
|
|
|
1471
1482
|
cancelClose: string;
|
|
1472
1483
|
cancelDescription: string;
|
|
1473
1484
|
cancelConfirm: string;
|
|
1485
|
+
cancelSucceeded: string;
|
|
1474
1486
|
cloneSuccess: string;
|
|
1475
1487
|
cloneError: string;
|
|
1476
1488
|
deleteTitle: string;
|
|
1489
|
+
/** `{number}` is replaced with the invoice number. */
|
|
1490
|
+
deleteNumberedTitle: string;
|
|
1477
1491
|
deleteDescription: string;
|
|
1478
1492
|
deleteConfirm: string;
|
|
1493
|
+
deleteSucceeded: string;
|
|
1479
1494
|
markPaidTitle: string;
|
|
1480
1495
|
markPaidDescription: string;
|
|
1481
1496
|
markPaidConfirm: string;
|
|
1482
1497
|
markUncollectibleTitle: string;
|
|
1483
1498
|
markUncollectibleDescription: string;
|
|
1484
1499
|
markUncollectibleConfirm: string;
|
|
1500
|
+
markUncollectibleSucceeded: string;
|
|
1501
|
+
/** `{customer}` is replaced with the customer's name. */
|
|
1502
|
+
createSucceeded: string;
|
|
1503
|
+
updateSucceeded: string;
|
|
1504
|
+
recurrenceActivated: string;
|
|
1505
|
+
recurrenceUpdated: string;
|
|
1485
1506
|
cancelRecurrenceTitle: string;
|
|
1486
1507
|
cancelRecurrenceQuestion: string;
|
|
1487
1508
|
cancelRecurrenceFutureIterations: string;
|
|
@@ -1515,6 +1536,8 @@ interface ReceivableMessageLabels {
|
|
|
1515
1536
|
recurrenceFrequencyAnnually: string;
|
|
1516
1537
|
recurrenceFirstDay: string;
|
|
1517
1538
|
recurrenceLastDay: string;
|
|
1539
|
+
recurrenceMonthDayTrail: string;
|
|
1540
|
+
recurrenceMonthEdgeTrail: string;
|
|
1518
1541
|
recurrenceWeekdayMo: string;
|
|
1519
1542
|
recurrenceWeekdayTu: string;
|
|
1520
1543
|
recurrenceWeekdayWe: string;
|
|
@@ -1625,6 +1648,8 @@ interface ReceivableMessageLabels {
|
|
|
1625
1648
|
actionsSendSucceeded: string;
|
|
1626
1649
|
actionsSendFailed: string;
|
|
1627
1650
|
actionsSendWithoutPaymentLink: string;
|
|
1651
|
+
/** A native addition: Monite has no path that sends without the payment-link scope. */
|
|
1652
|
+
actionsSendWithoutPaymentLinkScope: string;
|
|
1628
1653
|
actionsTitleSent: string;
|
|
1629
1654
|
actionsTitleIssued: string;
|
|
1630
1655
|
actionsTitleRecurrence: string;
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { useSendReceivableEmailMutation as d } from "./index10.js";
|
|
|
11
11
|
import { useAcceptReceivableMutation as f, useCancelReceivableMutation as p, useCloneReceivableMutation as m, useCreateReceivableMutation as h, useDeclineReceivableMutation as g, useDeleteReceivableMutation as _, useIssueReceivableMutation as v, useUpdateReceivableMutation as y } from "./index11.js";
|
|
12
12
|
import { useReceivablePaymentRecordsQuery as b } from "./index12.js";
|
|
13
13
|
import { useCreateReceivablePaymentRecordMutation as x, useMarkReceivablePaidMutation as S, useMarkReceivableUncollectibleMutation as C } from "./index13.js";
|
|
14
|
-
import { useReceivablePdfLinkQuery as w, useReceivableQuery as T, useReceivableRequiredFieldsQuery as E, useReceivablesByIdQueries as D, useReceivablesQuery as O } from "./
|
|
15
|
-
import { useCancelRecurrenceMutation as k, useCreateOverdueReminderMutation as A, useCreatePaymentReminderMutation as j, useCreateRecurrenceMutation as M, useOverdueRemindersQuery as N, usePauseRecurrenceMutation as P, usePaymentRemindersQuery as F, useRecurrenceQuery as I,
|
|
16
|
-
import { useReceivablesAnalyticsQuery as
|
|
17
|
-
export { f as useAcceptReceivableMutation, t as useAllCustomersQuery, n as useAllReceivableHistoryQuery, p as useCancelReceivableMutation, k as useCancelRecurrenceMutation, m as useCloneReceivableMutation, a as useCreateEntityBankAccountMutation, A as useCreateOverdueReminderMutation, c as useCreatePaymentLinkMutation, j as useCreatePaymentReminderMutation, h as useCreateReceivableMutation, x as useCreateReceivablePaymentRecordMutation, M as useCreateRecurrenceMutation, g as useDeclineReceivableMutation, l as useDeleteReceivableAttachmentMutation, _ as useDeleteReceivableMutation, r as useEntityPaymentMethodsQuery, i as useEntitySettingsQuery, v as useIssueReceivableMutation, S as useMarkReceivablePaidMutation, C as useMarkReceivableUncollectibleMutation, N as useOverdueRemindersQuery, P as usePauseRecurrenceMutation, o as usePaymentAccountQuery, s as usePaymentAccountsQuery, F as usePaymentRemindersQuery, e as usePaymentTermsQuery, b as useReceivablePaymentRecordsQuery, w as useReceivablePdfLinkQuery, T as useReceivableQuery, E as useReceivableRequiredFieldsQuery,
|
|
14
|
+
import { useReceivablePdfLinkQuery as w, useReceivableQuery as T, useReceivableRequiredFieldsQuery as E, useReceivablesByIdQueries as D, useReceivablesQuery as O } from "./index15.js";
|
|
15
|
+
import { useCancelRecurrenceMutation as k, useCreateOverdueReminderMutation as A, useCreatePaymentReminderMutation as j, useCreateRecurrenceMutation as M, useOverdueRemindersQuery as N, usePauseRecurrenceMutation as P, usePaymentRemindersQuery as F, useRecurrenceQuery as I, useRecurrencesByIdQueries as L, useResumeRecurrenceMutation as R, useUpdateRecurrenceMutation as z } from "./index16.js";
|
|
16
|
+
import { useReceivablesAnalyticsQuery as B } from "./index17.js";
|
|
17
|
+
export { f as useAcceptReceivableMutation, t as useAllCustomersQuery, n as useAllReceivableHistoryQuery, p as useCancelReceivableMutation, k as useCancelRecurrenceMutation, m as useCloneReceivableMutation, a as useCreateEntityBankAccountMutation, A as useCreateOverdueReminderMutation, c as useCreatePaymentLinkMutation, j as useCreatePaymentReminderMutation, h as useCreateReceivableMutation, x as useCreateReceivablePaymentRecordMutation, M as useCreateRecurrenceMutation, g as useDeclineReceivableMutation, l as useDeleteReceivableAttachmentMutation, _ as useDeleteReceivableMutation, r as useEntityPaymentMethodsQuery, i as useEntitySettingsQuery, v as useIssueReceivableMutation, S as useMarkReceivablePaidMutation, C as useMarkReceivableUncollectibleMutation, N as useOverdueRemindersQuery, P as usePauseRecurrenceMutation, o as usePaymentAccountQuery, s as usePaymentAccountsQuery, F as usePaymentRemindersQuery, e as usePaymentTermsQuery, b as useReceivablePaymentRecordsQuery, w as useReceivablePdfLinkQuery, T as useReceivableQuery, E as useReceivableRequiredFieldsQuery, B as useReceivablesAnalyticsQuery, D as useReceivablesByIdQueries, O as useReceivablesQuery, I as useRecurrenceQuery, L as useRecurrencesByIdQueries, R as useResumeRecurrenceMutation, d as useSendReceivableEmailMutation, y as useUpdateReceivableMutation, z as useUpdateRecurrenceMutation, u as useUploadReceivableAttachmentMutation };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js
CHANGED
|
@@ -126,10 +126,11 @@ function _() {
|
|
|
126
126
|
});
|
|
127
127
|
return r;
|
|
128
128
|
},
|
|
129
|
-
onSuccess: async () => {
|
|
129
|
+
onSuccess: async (n, r) => {
|
|
130
130
|
await u({
|
|
131
131
|
client: e,
|
|
132
|
-
organizationId: t
|
|
132
|
+
organizationId: t,
|
|
133
|
+
receivableId: r.path.receivable_id
|
|
133
134
|
});
|
|
134
135
|
}
|
|
135
136
|
});
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index14.js
CHANGED
|
@@ -1,90 +1,7 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { getReceivablesIdOptions as e, getReceivablesIdPdfLinkOptions as t, getReceivablesOptions as n, getReceivablesRequiredFieldsOptions as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
-
import { withAuthEpoch as i } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
-
import { useEmbedApi as a } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
-
import { organizationHeaders as o } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
|
-
import "../../../shared/data-access/dist/index.js";
|
|
10
|
-
import { useQueries as s, useQuery as c } from "@tanstack/react-query";
|
|
11
1
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index14.js
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
query: t
|
|
17
|
-
});
|
|
18
|
-
return c({
|
|
19
|
-
...i(p, {
|
|
20
|
-
authEpoch: u,
|
|
21
|
-
organizationStatus: d
|
|
22
|
-
}, { carryWithinOrg: !0 }),
|
|
23
|
-
enabled: f
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
function u(t, { enabled: n = !0 } = {}) {
|
|
27
|
-
let { client: r, organizationId: s, widgetToken: l, authEpoch: u, organizationStatus: d } = a(), f = !!(s && l && t) && n, p = e({
|
|
28
|
-
client: r,
|
|
29
|
-
headers: o(s),
|
|
30
|
-
path: { receivable_id: t ?? "" }
|
|
31
|
-
});
|
|
32
|
-
return c({
|
|
33
|
-
...i(p, {
|
|
34
|
-
authEpoch: u,
|
|
35
|
-
organizationStatus: d
|
|
36
|
-
}),
|
|
37
|
-
enabled: f
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
var d = (e) => e.map((e) => e.data);
|
|
41
|
-
function f(t, { enabled: n = !0 } = {}) {
|
|
42
|
-
let { client: r, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: f } = a(), p = !!(c && l) && n;
|
|
43
|
-
return s({
|
|
44
|
-
queries: t.map((t) => ({
|
|
45
|
-
...i(e({
|
|
46
|
-
client: r,
|
|
47
|
-
headers: o(c),
|
|
48
|
-
path: { receivable_id: t }
|
|
49
|
-
}), {
|
|
50
|
-
authEpoch: u,
|
|
51
|
-
organizationStatus: f
|
|
52
|
-
}),
|
|
53
|
-
enabled: p
|
|
54
|
-
})),
|
|
55
|
-
combine: d
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
function p({ enabled: e, ...t } = {}) {
|
|
59
|
-
let { client: n, organizationId: s, widgetToken: l, authEpoch: u, organizationStatus: d } = a(), f = !!(s && l) && (e === !0 || e === void 0), p = r({
|
|
60
|
-
client: n,
|
|
61
|
-
headers: o(s),
|
|
62
|
-
query: t
|
|
63
|
-
});
|
|
64
|
-
return c({
|
|
65
|
-
...i(p, {
|
|
66
|
-
authEpoch: u,
|
|
67
|
-
organizationStatus: d
|
|
68
|
-
}),
|
|
69
|
-
enabled: f
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
var m = 1e3, h = 30;
|
|
73
|
-
function g(e, { enabled: n = !0 } = {}) {
|
|
74
|
-
let { client: r, organizationId: s, widgetToken: l, authEpoch: u, organizationStatus: d } = a(), f = !!(s && l && e) && n, p = t({
|
|
75
|
-
client: r,
|
|
76
|
-
headers: o(s),
|
|
77
|
-
path: { receivable_id: e ?? "" }
|
|
78
|
-
});
|
|
79
|
-
return c({
|
|
80
|
-
...i(p, {
|
|
81
|
-
authEpoch: u,
|
|
82
|
-
organizationStatus: d
|
|
83
|
-
}),
|
|
84
|
-
enabled: f,
|
|
85
|
-
refetchInterval: ({ state: e }) => e.data?.file_url || e.dataUpdateCount + e.errorUpdateCount > h ? !1 : m,
|
|
86
|
-
refetchIntervalInBackground: !0
|
|
87
|
-
});
|
|
88
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
staleTime: 6e4,
|
|
4
|
+
refetchOnWindowFocus: (e) => e.state.status !== "error"
|
|
5
|
+
};
|
|
89
6
|
//#endregion
|
|
90
|
-
export {
|
|
7
|
+
export { e as REFETCH_ON_RETURN };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index15.js
CHANGED
|
@@ -2,195 +2,92 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { useEmbedApi as f } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
10
|
-
import { organizationHeaders as p } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
5
|
+
import { getReceivablesIdOptions as e, getReceivablesIdPdfLinkOptions as t, getReceivablesOptions as n, getReceivablesRequiredFieldsOptions as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as i } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as a } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as o } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
11
9
|
import "../../../shared/data-access/dist/index.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { useMutation as y, useQuery as b } from "@tanstack/react-query";
|
|
10
|
+
import { REFETCH_ON_RETURN as s } from "./index14.js";
|
|
11
|
+
import { useQueries as c, useQuery as l } from "@tanstack/react-query";
|
|
15
12
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index15.js
|
|
16
|
-
function
|
|
17
|
-
let e =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function S({ enabled: e = !0 } = {}) {
|
|
24
|
-
let { client: t, organizationId: n, authEpoch: r, organizationStatus: i, isEnabled: a } = x(), o = c({
|
|
25
|
-
client: t,
|
|
26
|
-
headers: p(n)
|
|
13
|
+
function u({ enabled: e, ...t } = {}) {
|
|
14
|
+
let { client: r, organizationId: c, widgetToken: u, authEpoch: d, organizationStatus: f } = a(), p = !!(c && u) && (e === !0 || e === void 0), m = n({
|
|
15
|
+
client: r,
|
|
16
|
+
headers: o(c),
|
|
17
|
+
query: t
|
|
27
18
|
});
|
|
28
|
-
return
|
|
29
|
-
...
|
|
30
|
-
authEpoch:
|
|
31
|
-
organizationStatus:
|
|
32
|
-
}),
|
|
33
|
-
|
|
19
|
+
return l({
|
|
20
|
+
...i(m, {
|
|
21
|
+
authEpoch: d,
|
|
22
|
+
organizationStatus: f
|
|
23
|
+
}, { carryWithinOrg: !0 }),
|
|
24
|
+
...s,
|
|
25
|
+
enabled: p
|
|
34
26
|
});
|
|
35
27
|
}
|
|
36
|
-
function
|
|
37
|
-
let { client:
|
|
38
|
-
client:
|
|
39
|
-
headers:
|
|
28
|
+
function d(t, { enabled: n = !0 } = {}) {
|
|
29
|
+
let { client: r, organizationId: c, widgetToken: u, authEpoch: d, organizationStatus: f } = a(), p = !!(c && u && t) && n, m = e({
|
|
30
|
+
client: r,
|
|
31
|
+
headers: o(c),
|
|
32
|
+
path: { receivable_id: t ?? "" }
|
|
40
33
|
});
|
|
41
|
-
return
|
|
42
|
-
...
|
|
43
|
-
authEpoch:
|
|
44
|
-
organizationStatus:
|
|
34
|
+
return l({
|
|
35
|
+
...i(m, {
|
|
36
|
+
authEpoch: d,
|
|
37
|
+
organizationStatus: f
|
|
45
38
|
}),
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
function w() {
|
|
50
|
-
let { client: e, organizationId: t } = f();
|
|
51
|
-
return y({
|
|
52
|
-
mutationFn: async ({ body: r }) => {
|
|
53
|
-
let { data: i } = await n({
|
|
54
|
-
client: e,
|
|
55
|
-
headers: p(t),
|
|
56
|
-
body: r,
|
|
57
|
-
throwOnError: !0
|
|
58
|
-
});
|
|
59
|
-
return i;
|
|
60
|
-
},
|
|
61
|
-
onSuccess: async () => {
|
|
62
|
-
await d(h({
|
|
63
|
-
client: e,
|
|
64
|
-
organizationId: t
|
|
65
|
-
}));
|
|
66
|
-
}
|
|
39
|
+
...s,
|
|
40
|
+
enabled: p
|
|
67
41
|
});
|
|
68
42
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
})
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
client: e,
|
|
84
|
-
organizationId: n
|
|
85
|
-
}));
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
async function E({ client: e, organizationId: t, recurrenceId: n, receivableId: r }) {
|
|
90
|
-
await Promise.all([
|
|
91
|
-
d(_({
|
|
92
|
-
client: e,
|
|
93
|
-
organizationId: t
|
|
43
|
+
var f = (e) => e.map((e) => e.data);
|
|
44
|
+
function p(t, { enabled: n = !0 } = {}) {
|
|
45
|
+
let { client: r, organizationId: s, widgetToken: l, authEpoch: u, organizationStatus: d } = a(), p = !!(s && l) && n;
|
|
46
|
+
return c({
|
|
47
|
+
queries: t.map((t) => ({
|
|
48
|
+
...i(e({
|
|
49
|
+
client: r,
|
|
50
|
+
headers: o(s),
|
|
51
|
+
path: { receivable_id: t }
|
|
52
|
+
}), {
|
|
53
|
+
authEpoch: u,
|
|
54
|
+
organizationStatus: d
|
|
55
|
+
}),
|
|
56
|
+
enabled: p
|
|
94
57
|
})),
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
organizationId: t,
|
|
98
|
-
recurrenceId: n
|
|
99
|
-
}))] : [],
|
|
100
|
-
v({
|
|
101
|
-
client: e,
|
|
102
|
-
organizationId: t,
|
|
103
|
-
receivableId: r
|
|
104
|
-
})
|
|
105
|
-
]);
|
|
58
|
+
combine: f
|
|
59
|
+
});
|
|
106
60
|
}
|
|
107
|
-
function
|
|
108
|
-
let { client:
|
|
109
|
-
client:
|
|
110
|
-
headers:
|
|
111
|
-
|
|
61
|
+
function m({ enabled: e, ...t } = {}) {
|
|
62
|
+
let { client: n, organizationId: s, widgetToken: c, authEpoch: u, organizationStatus: d } = a(), f = !!(s && c) && (e === !0 || e === void 0), p = r({
|
|
63
|
+
client: n,
|
|
64
|
+
headers: o(s),
|
|
65
|
+
query: t
|
|
112
66
|
});
|
|
113
|
-
return
|
|
114
|
-
...
|
|
115
|
-
authEpoch:
|
|
116
|
-
organizationStatus:
|
|
67
|
+
return l({
|
|
68
|
+
...i(p, {
|
|
69
|
+
authEpoch: u,
|
|
70
|
+
organizationStatus: d
|
|
117
71
|
}),
|
|
118
|
-
enabled:
|
|
72
|
+
enabled: f
|
|
119
73
|
});
|
|
120
74
|
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
headers: p(t),
|
|
128
|
-
body: n,
|
|
129
|
-
throwOnError: !0
|
|
130
|
-
});
|
|
131
|
-
return i;
|
|
132
|
-
},
|
|
133
|
-
onSuccess: async (n, r) => {
|
|
134
|
-
await E({
|
|
135
|
-
client: e,
|
|
136
|
-
organizationId: t,
|
|
137
|
-
receivableId: r.body.invoice_id
|
|
138
|
-
});
|
|
139
|
-
}
|
|
75
|
+
var h = 1e3, g = 30;
|
|
76
|
+
function _(e, { enabled: n = !0 } = {}) {
|
|
77
|
+
let { client: r, organizationId: s, widgetToken: c, authEpoch: u, organizationStatus: d } = a(), f = !!(s && c && e) && n, p = t({
|
|
78
|
+
client: r,
|
|
79
|
+
headers: o(s),
|
|
80
|
+
path: { receivable_id: e ?? "" }
|
|
140
81
|
});
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
path: r,
|
|
150
|
-
body: i,
|
|
151
|
-
throwOnError: !0
|
|
152
|
-
});
|
|
153
|
-
return a;
|
|
154
|
-
},
|
|
155
|
-
onSuccess: async (e, r) => {
|
|
156
|
-
await E({
|
|
157
|
-
client: t,
|
|
158
|
-
organizationId: n,
|
|
159
|
-
recurrenceId: r.path.recurrence_id
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
function A(e) {
|
|
165
|
-
let { client: t, organizationId: n } = f();
|
|
166
|
-
return y({
|
|
167
|
-
mutationFn: async ({ path: r }) => {
|
|
168
|
-
let { data: i } = await e({
|
|
169
|
-
client: t,
|
|
170
|
-
headers: p(n),
|
|
171
|
-
path: r,
|
|
172
|
-
throwOnError: !0
|
|
173
|
-
});
|
|
174
|
-
return i;
|
|
175
|
-
},
|
|
176
|
-
onSuccess: async (e, r) => {
|
|
177
|
-
await E({
|
|
178
|
-
client: t,
|
|
179
|
-
organizationId: n,
|
|
180
|
-
recurrenceId: r.path.recurrence_id,
|
|
181
|
-
receivableId: r.receivableId
|
|
182
|
-
});
|
|
183
|
-
}
|
|
82
|
+
return l({
|
|
83
|
+
...i(p, {
|
|
84
|
+
authEpoch: u,
|
|
85
|
+
organizationStatus: d
|
|
86
|
+
}),
|
|
87
|
+
enabled: f,
|
|
88
|
+
refetchInterval: ({ state: e }) => e.data?.file_url || e.dataUpdateCount + e.errorUpdateCount > g ? !1 : h,
|
|
89
|
+
refetchIntervalInBackground: !0
|
|
184
90
|
});
|
|
185
91
|
}
|
|
186
|
-
function j() {
|
|
187
|
-
return A(i);
|
|
188
|
-
}
|
|
189
|
-
function M() {
|
|
190
|
-
return A(a);
|
|
191
|
-
}
|
|
192
|
-
function N() {
|
|
193
|
-
return A(o);
|
|
194
|
-
}
|
|
195
92
|
//#endregion
|
|
196
|
-
export {
|
|
93
|
+
export { _ as useReceivablePdfLinkQuery, d as useReceivableQuery, m as useReceivableRequiredFieldsQuery, p as useReceivablesByIdQueries, u as useReceivablesQuery };
|