@tesouro/embedded-components-react 0.5.278 → 0.5.280
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/dist/index.d.ts +21 -6
- package/dist/lib/ReceivablesWidget.d.ts +21 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +14 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +24 -168
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +173 -44
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +42 -94
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index13.js +91 -76
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index14.js +67 -173
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index15.js +186 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +11 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +42 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +28 -132
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +137 -16
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +16 -62
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +66 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +28 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableAttachmentsSection.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableCustomerSection.js +38 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +304 -287
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/auditHistory/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/customer.js +58 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentTerms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/permissions.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +62 -62
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +41 -35
- 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 +21 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +124 -124
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableAttachmentUploads.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableBankAccount.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableCustomerPicker.js +109 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +520 -476
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableIssuePreflight.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentTerms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePreview.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableRecurrence.js +92 -77
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js +11 -11
- 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 +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +79 -75
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useSendReceivableWithPaymentLink.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +26 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +9 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +26 -228
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +227 -52
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +50 -212
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +193 -138
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +157 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +2 -116
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +118 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +3 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +209 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +36 -7
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +53 -77
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +17 -35
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +8 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +73 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +36 -26
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +17 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +39 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +26 -33
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +20 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +34 -84
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +14 -492
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +28 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +79 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +490 -68
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +2 -487
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +41 -217
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +70 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +440 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +224 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +21 -263
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +261 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +2 -237
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +100 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +21 -242
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +226 -82
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +3 -60
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +233 -178
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +85 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +60 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +194 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +45 -0
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/CounterpartSelector.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartSelector.js +2 -51
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js +4 -80
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +10 -22
- 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/util/dist/lib/widgetDomEvents.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +0 -100
package/dist/index.d.ts
CHANGED
|
@@ -5088,6 +5088,17 @@ interface ReceivableBillingSectionLabels {
|
|
|
5088
5088
|
purchaseOrderOptional: string;
|
|
5089
5089
|
}
|
|
5090
5090
|
|
|
5091
|
+
interface ReceivableCustomerSectionLabels {
|
|
5092
|
+
customerHeading: string;
|
|
5093
|
+
customerDescription: string;
|
|
5094
|
+
customerNameLabel: string;
|
|
5095
|
+
customerListToggleButton: string;
|
|
5096
|
+
customerEmailLabel: string;
|
|
5097
|
+
addCustomerDetailsButton: string;
|
|
5098
|
+
viewCustomerDetailsButton: string;
|
|
5099
|
+
clearCustomerButton: string;
|
|
5100
|
+
}
|
|
5101
|
+
|
|
5091
5102
|
interface ReceivableRecurrenceSectionLabels {
|
|
5092
5103
|
recurrenceRepeatLabel: string;
|
|
5093
5104
|
recurrenceMonthDayLead: string;
|
|
@@ -5176,16 +5187,12 @@ interface UnsavedInvoiceDialogLabels {
|
|
|
5176
5187
|
unsavedSaveDraftButton: string;
|
|
5177
5188
|
unsavedCloseButton: string;
|
|
5178
5189
|
}
|
|
5179
|
-
interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, ReceivableRecurrenceSectionLabels, ReceivableRecurrenceEmailDialogLabels, UnsavedInvoiceDialogLabels {
|
|
5190
|
+
interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, ReceivableCustomerSectionLabels, ReceivableRecurrenceSectionLabels, ReceivableRecurrenceEmailDialogLabels, UnsavedInvoiceDialogLabels {
|
|
5180
5191
|
createTitle: string;
|
|
5181
5192
|
createDescription: string;
|
|
5182
5193
|
editTitle: string;
|
|
5183
5194
|
editDescription: string;
|
|
5184
5195
|
closeButton: string;
|
|
5185
|
-
customerHeading: string;
|
|
5186
|
-
customerDescription: string;
|
|
5187
|
-
customerEmailLabel: string;
|
|
5188
|
-
addCustomerDetailsButton: string;
|
|
5189
5196
|
dueDateLabel: string;
|
|
5190
5197
|
lineItemsHeading: string;
|
|
5191
5198
|
lineItemsDescription: string;
|
|
@@ -5421,8 +5428,16 @@ type InvoicesFilterLabelOverrides = PartialDeep<InvoicesFilterLabels>;
|
|
|
5421
5428
|
|
|
5422
5429
|
interface ReceivableMessageLabels {
|
|
5423
5430
|
customerRequired: string;
|
|
5424
|
-
customerAddressRequired: string;
|
|
5425
5431
|
customerEmailInvalid: string;
|
|
5432
|
+
customerPickerPlaceholder: string;
|
|
5433
|
+
customerPickerSearchOnlyPlaceholder: string;
|
|
5434
|
+
customerPickerEmpty: string;
|
|
5435
|
+
customerPickerSearchOnlyEmpty: string;
|
|
5436
|
+
customerPickerLoading: string;
|
|
5437
|
+
customerPickerLoadFailed: string;
|
|
5438
|
+
customerPickerMoreMatches: string;
|
|
5439
|
+
customerPickerDescription: string;
|
|
5440
|
+
customerPickerSearchOnlyDescription: string;
|
|
5426
5441
|
currencyRequired: string;
|
|
5427
5442
|
lineItemNameTooLong: string;
|
|
5428
5443
|
/** `{maxAmount}` is replaced with the formatted cap. */
|
|
@@ -1008,6 +1008,17 @@ interface ReceivableBillingSectionLabels {
|
|
|
1008
1008
|
purchaseOrderOptional: string;
|
|
1009
1009
|
}
|
|
1010
1010
|
|
|
1011
|
+
interface ReceivableCustomerSectionLabels {
|
|
1012
|
+
customerHeading: string;
|
|
1013
|
+
customerDescription: string;
|
|
1014
|
+
customerNameLabel: string;
|
|
1015
|
+
customerListToggleButton: string;
|
|
1016
|
+
customerEmailLabel: string;
|
|
1017
|
+
addCustomerDetailsButton: string;
|
|
1018
|
+
viewCustomerDetailsButton: string;
|
|
1019
|
+
clearCustomerButton: string;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1011
1022
|
interface ReceivableRecurrenceSectionLabels {
|
|
1012
1023
|
recurrenceRepeatLabel: string;
|
|
1013
1024
|
recurrenceMonthDayLead: string;
|
|
@@ -1096,16 +1107,12 @@ interface UnsavedInvoiceDialogLabels {
|
|
|
1096
1107
|
unsavedSaveDraftButton: string;
|
|
1097
1108
|
unsavedCloseButton: string;
|
|
1098
1109
|
}
|
|
1099
|
-
interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, ReceivableRecurrenceSectionLabels, ReceivableRecurrenceEmailDialogLabels, UnsavedInvoiceDialogLabels {
|
|
1110
|
+
interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, ReceivableCustomerSectionLabels, ReceivableRecurrenceSectionLabels, ReceivableRecurrenceEmailDialogLabels, UnsavedInvoiceDialogLabels {
|
|
1100
1111
|
createTitle: string;
|
|
1101
1112
|
createDescription: string;
|
|
1102
1113
|
editTitle: string;
|
|
1103
1114
|
editDescription: string;
|
|
1104
1115
|
closeButton: string;
|
|
1105
|
-
customerHeading: string;
|
|
1106
|
-
customerDescription: string;
|
|
1107
|
-
customerEmailLabel: string;
|
|
1108
|
-
addCustomerDetailsButton: string;
|
|
1109
1116
|
dueDateLabel: string;
|
|
1110
1117
|
lineItemsHeading: string;
|
|
1111
1118
|
lineItemsDescription: string;
|
|
@@ -1341,8 +1348,16 @@ type InvoicesFilterLabelOverrides = PartialDeep<InvoicesFilterLabels>;
|
|
|
1341
1348
|
|
|
1342
1349
|
interface ReceivableMessageLabels {
|
|
1343
1350
|
customerRequired: string;
|
|
1344
|
-
customerAddressRequired: string;
|
|
1345
1351
|
customerEmailInvalid: string;
|
|
1352
|
+
customerPickerPlaceholder: string;
|
|
1353
|
+
customerPickerSearchOnlyPlaceholder: string;
|
|
1354
|
+
customerPickerEmpty: string;
|
|
1355
|
+
customerPickerSearchOnlyEmpty: string;
|
|
1356
|
+
customerPickerLoading: string;
|
|
1357
|
+
customerPickerLoadFailed: string;
|
|
1358
|
+
customerPickerMoreMatches: string;
|
|
1359
|
+
customerPickerDescription: string;
|
|
1360
|
+
customerPickerSearchOnlyDescription: string;
|
|
1346
1361
|
currencyRequired: string;
|
|
1347
1362
|
lineItemNameTooLong: string;
|
|
1348
1363
|
/** `{maxAmount}` is replaced with the formatted cap. */
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
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 {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
4
|
+
import { useAllCustomersQuery as t } from "./index3.js";
|
|
5
|
+
import { useAllReceivableHistoryQuery as n } from "./index4.js";
|
|
6
|
+
import { useEntityPaymentMethodsQuery as r, useEntitySettingsQuery as i } from "./index5.js";
|
|
7
|
+
import { useCreateEntityBankAccountMutation as a, usePaymentAccountQuery as o, usePaymentAccountsQuery as s } from "./index6.js";
|
|
8
|
+
import { useCreatePaymentLinkMutation as c } from "./index7.js";
|
|
9
|
+
import { useDeleteReceivableAttachmentMutation as l, useUploadReceivableAttachmentMutation as u } from "./index8.js";
|
|
10
|
+
import { useSendReceivableEmailMutation as d } from "./index10.js";
|
|
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
|
+
import { useReceivablePaymentRecordsQuery as b } from "./index12.js";
|
|
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 "./index14.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, useResumeRecurrenceMutation as L, useUpdateRecurrenceMutation as R } from "./index15.js";
|
|
16
|
+
import { useReceivablesAnalyticsQuery as z } from "./index16.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, z as useReceivablesAnalyticsQuery, D as useReceivablesByIdQueries, O as useReceivablesQuery, I as useRecurrenceQuery, L as useResumeRecurrenceMutation, d as useSendReceivableEmailMutation, y as useUpdateReceivableMutation, R as useUpdateRecurrenceMutation, u as useUploadReceivableAttachmentMutation };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js
CHANGED
|
@@ -2,181 +2,37 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { postReceivablesIdSend as e } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { invalidateAllClients as t } from "../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
9
|
import "../../../shared/data-access/dist/index.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
10
|
+
import { receivableMailsInvalidationKey as i } from "./index2.js";
|
|
11
|
+
import { invalidateReceivable as a } from "./index9.js";
|
|
12
|
+
import { useMutation as o } from "@tanstack/react-query";
|
|
11
13
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js
|
|
12
|
-
function
|
|
13
|
-
let { client:
|
|
14
|
-
return
|
|
15
|
-
mutationFn: async ({ body:
|
|
16
|
-
let { data: i } = await
|
|
17
|
-
client:
|
|
18
|
-
headers:
|
|
19
|
-
|
|
14
|
+
function s() {
|
|
15
|
+
let { client: s, organizationId: c } = n();
|
|
16
|
+
return o({
|
|
17
|
+
mutationFn: async ({ path: t, body: n }) => {
|
|
18
|
+
let { data: i } = await e({
|
|
19
|
+
client: s,
|
|
20
|
+
headers: r(c),
|
|
21
|
+
path: t,
|
|
22
|
+
body: n,
|
|
20
23
|
throwOnError: !0
|
|
21
24
|
});
|
|
22
25
|
return i;
|
|
23
26
|
},
|
|
24
|
-
onSuccess: async () => {
|
|
25
|
-
|
|
26
|
-
client:
|
|
27
|
-
organizationId:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
function p() {
|
|
33
|
-
let { client: e, organizationId: n } = c();
|
|
34
|
-
return d({
|
|
35
|
-
mutationFn: async ({ path: r, body: i }) => {
|
|
36
|
-
let { data: a } = await t({
|
|
37
|
-
client: e,
|
|
38
|
-
headers: l(n),
|
|
39
|
-
path: r,
|
|
40
|
-
body: i,
|
|
41
|
-
throwOnError: !0
|
|
42
|
-
});
|
|
43
|
-
return a;
|
|
44
|
-
},
|
|
45
|
-
onSuccess: async (t, r) => {
|
|
46
|
-
await u({
|
|
47
|
-
client: e,
|
|
48
|
-
organizationId: n,
|
|
49
|
-
receivableId: r.path.receivable_id,
|
|
50
|
-
resetPdf: !0
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
function m() {
|
|
56
|
-
let { client: t, organizationId: n } = c();
|
|
57
|
-
return d({
|
|
58
|
-
mutationFn: async ({ path: r }) => {
|
|
59
|
-
await e({
|
|
60
|
-
client: t,
|
|
61
|
-
headers: l(n),
|
|
62
|
-
path: r,
|
|
63
|
-
throwOnError: !0
|
|
64
|
-
});
|
|
65
|
-
},
|
|
66
|
-
onSuccess: async (e, r) => {
|
|
67
|
-
await u({
|
|
68
|
-
client: t,
|
|
69
|
-
organizationId: n,
|
|
70
|
-
receivableId: r.path.receivable_id
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
function h() {
|
|
76
|
-
let { client: e, organizationId: t } = c();
|
|
77
|
-
return d({
|
|
78
|
-
mutationFn: async ({ path: n }) => {
|
|
79
|
-
let { data: r } = await s({
|
|
80
|
-
client: e,
|
|
81
|
-
headers: l(t),
|
|
82
|
-
path: n,
|
|
83
|
-
throwOnError: !0
|
|
84
|
-
});
|
|
85
|
-
return r;
|
|
86
|
-
},
|
|
87
|
-
onSuccess: async (n, r) => {
|
|
88
|
-
await u({
|
|
89
|
-
client: e,
|
|
90
|
-
organizationId: t,
|
|
91
|
-
receivableId: r.path.receivable_id,
|
|
92
|
-
resetPdf: !0
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
function g() {
|
|
98
|
-
let { client: e, organizationId: t } = c();
|
|
99
|
-
return d({
|
|
100
|
-
mutationFn: async ({ path: n }) => {
|
|
101
|
-
await i({
|
|
102
|
-
client: e,
|
|
103
|
-
headers: l(t),
|
|
104
|
-
path: n,
|
|
105
|
-
throwOnError: !0
|
|
106
|
-
});
|
|
107
|
-
},
|
|
108
|
-
onSuccess: async (n, r) => {
|
|
109
|
-
await u({
|
|
110
|
-
client: e,
|
|
111
|
-
organizationId: t,
|
|
112
|
-
receivableId: r.path.receivable_id
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
function _() {
|
|
118
|
-
let { client: e, organizationId: t } = c();
|
|
119
|
-
return d({
|
|
120
|
-
mutationFn: async ({ path: n }) => {
|
|
121
|
-
let { data: r } = await a({
|
|
122
|
-
client: e,
|
|
123
|
-
headers: l(t),
|
|
124
|
-
path: n,
|
|
125
|
-
throwOnError: !0
|
|
126
|
-
});
|
|
127
|
-
return r;
|
|
128
|
-
},
|
|
129
|
-
onSuccess: async () => {
|
|
130
|
-
await u({
|
|
131
|
-
client: e,
|
|
132
|
-
organizationId: t
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
function v() {
|
|
138
|
-
let { client: e, organizationId: t } = c();
|
|
139
|
-
return d({
|
|
140
|
-
mutationFn: async ({ path: n, body: i }) => {
|
|
141
|
-
let { data: a } = await r({
|
|
142
|
-
client: e,
|
|
143
|
-
headers: l(t),
|
|
144
|
-
path: n,
|
|
145
|
-
body: i,
|
|
146
|
-
throwOnError: !0
|
|
147
|
-
});
|
|
148
|
-
return a;
|
|
149
|
-
},
|
|
150
|
-
onSuccess: async (n, r) => {
|
|
151
|
-
await u({
|
|
152
|
-
client: e,
|
|
153
|
-
organizationId: t,
|
|
154
|
-
receivableId: r.path.receivable_id
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
function y() {
|
|
160
|
-
let { client: e, organizationId: t } = c();
|
|
161
|
-
return d({
|
|
162
|
-
mutationFn: async ({ path: n, body: r }) => {
|
|
163
|
-
let { data: i } = await o({
|
|
164
|
-
client: e,
|
|
165
|
-
headers: l(t),
|
|
166
|
-
path: n,
|
|
167
|
-
body: r,
|
|
168
|
-
throwOnError: !0
|
|
169
|
-
});
|
|
170
|
-
return i;
|
|
171
|
-
},
|
|
172
|
-
onSuccess: async (n, r) => {
|
|
173
|
-
await u({
|
|
174
|
-
client: e,
|
|
175
|
-
organizationId: t,
|
|
176
|
-
receivableId: r.path.receivable_id
|
|
177
|
-
});
|
|
27
|
+
onSuccess: async (e, n) => {
|
|
28
|
+
let r = {
|
|
29
|
+
client: s,
|
|
30
|
+
organizationId: c,
|
|
31
|
+
receivableId: n.path.receivable_id
|
|
32
|
+
};
|
|
33
|
+
await Promise.all([t(i(r)), a(r)]);
|
|
178
34
|
}
|
|
179
35
|
});
|
|
180
36
|
}
|
|
181
37
|
//#endregion
|
|
182
|
-
export {
|
|
38
|
+
export { s as useSendReceivableEmailMutation };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js
CHANGED
|
@@ -2,52 +2,181 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { useEmbedApi as r } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
9
|
-
import { organizationHeaders as i } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
5
|
+
import { deleteReceivablesId as e, patchReceivablesId as t, postReceivables as n, postReceivablesIdAccept as r, postReceivablesIdCancel as i, postReceivablesIdClone as a, postReceivablesIdDecline as o, postReceivablesIdIssue as s } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { useEmbedApi as c } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as l } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
10
8
|
import "../../../shared/data-access/dist/index.js";
|
|
11
|
-
import {
|
|
9
|
+
import { invalidateReceivable as u } from "./index9.js";
|
|
10
|
+
import { useMutation as d } from "@tanstack/react-query";
|
|
12
11
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
12
|
+
function f() {
|
|
13
|
+
let { client: e, organizationId: t } = c();
|
|
14
|
+
return d({
|
|
15
|
+
mutationFn: async ({ body: r }) => {
|
|
16
|
+
let { data: i } = await n({
|
|
17
|
+
client: e,
|
|
18
|
+
headers: l(t),
|
|
19
|
+
body: r,
|
|
20
|
+
throwOnError: !0
|
|
21
|
+
});
|
|
22
|
+
return i;
|
|
23
|
+
},
|
|
24
|
+
onSuccess: async () => {
|
|
25
|
+
await u({
|
|
26
|
+
client: e,
|
|
27
|
+
organizationId: t
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function p() {
|
|
33
|
+
let { client: e, organizationId: n } = c();
|
|
34
|
+
return d({
|
|
35
|
+
mutationFn: async ({ path: r, body: i }) => {
|
|
36
|
+
let { data: a } = await t({
|
|
37
|
+
client: e,
|
|
38
|
+
headers: l(n),
|
|
39
|
+
path: r,
|
|
40
|
+
body: i,
|
|
41
|
+
throwOnError: !0
|
|
42
|
+
});
|
|
43
|
+
return a;
|
|
44
|
+
},
|
|
45
|
+
onSuccess: async (t, r) => {
|
|
46
|
+
await u({
|
|
47
|
+
client: e,
|
|
48
|
+
organizationId: n,
|
|
49
|
+
receivableId: r.path.receivable_id,
|
|
50
|
+
resetPdf: !0
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function m() {
|
|
56
|
+
let { client: t, organizationId: n } = c();
|
|
57
|
+
return d({
|
|
58
|
+
mutationFn: async ({ path: r }) => {
|
|
59
|
+
await e({
|
|
60
|
+
client: t,
|
|
61
|
+
headers: l(n),
|
|
62
|
+
path: r,
|
|
63
|
+
throwOnError: !0
|
|
64
|
+
});
|
|
65
|
+
},
|
|
66
|
+
onSuccess: async (e, r) => {
|
|
67
|
+
await u({
|
|
68
|
+
client: t,
|
|
69
|
+
organizationId: n,
|
|
70
|
+
receivableId: r.path.receivable_id
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function h() {
|
|
76
|
+
let { client: e, organizationId: t } = c();
|
|
77
|
+
return d({
|
|
78
|
+
mutationFn: async ({ path: n }) => {
|
|
79
|
+
let { data: r } = await s({
|
|
80
|
+
client: e,
|
|
81
|
+
headers: l(t),
|
|
82
|
+
path: n,
|
|
83
|
+
throwOnError: !0
|
|
84
|
+
});
|
|
85
|
+
return r;
|
|
86
|
+
},
|
|
87
|
+
onSuccess: async (n, r) => {
|
|
88
|
+
await u({
|
|
89
|
+
client: e,
|
|
90
|
+
organizationId: t,
|
|
91
|
+
receivableId: r.path.receivable_id,
|
|
92
|
+
resetPdf: !0
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
function g() {
|
|
98
|
+
let { client: e, organizationId: t } = c();
|
|
99
|
+
return d({
|
|
100
|
+
mutationFn: async ({ path: n }) => {
|
|
101
|
+
await i({
|
|
102
|
+
client: e,
|
|
103
|
+
headers: l(t),
|
|
104
|
+
path: n,
|
|
105
|
+
throwOnError: !0
|
|
106
|
+
});
|
|
107
|
+
},
|
|
108
|
+
onSuccess: async (n, r) => {
|
|
109
|
+
await u({
|
|
110
|
+
client: e,
|
|
111
|
+
organizationId: t,
|
|
112
|
+
receivableId: r.path.receivable_id
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
function _() {
|
|
118
|
+
let { client: e, organizationId: t } = c();
|
|
119
|
+
return d({
|
|
120
|
+
mutationFn: async ({ path: n }) => {
|
|
121
|
+
let { data: r } = await a({
|
|
122
|
+
client: e,
|
|
123
|
+
headers: l(t),
|
|
124
|
+
path: n,
|
|
125
|
+
throwOnError: !0
|
|
126
|
+
});
|
|
127
|
+
return r;
|
|
128
|
+
},
|
|
129
|
+
onSuccess: async () => {
|
|
130
|
+
await u({
|
|
131
|
+
client: e,
|
|
132
|
+
organizationId: t
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
function v() {
|
|
138
|
+
let { client: e, organizationId: t } = c();
|
|
139
|
+
return d({
|
|
140
|
+
mutationFn: async ({ path: n, body: i }) => {
|
|
141
|
+
let { data: a } = await r({
|
|
142
|
+
client: e,
|
|
143
|
+
headers: l(t),
|
|
144
|
+
path: n,
|
|
145
|
+
body: i,
|
|
146
|
+
throwOnError: !0
|
|
147
|
+
});
|
|
148
|
+
return a;
|
|
149
|
+
},
|
|
150
|
+
onSuccess: async (n, r) => {
|
|
151
|
+
await u({
|
|
152
|
+
client: e,
|
|
153
|
+
organizationId: t,
|
|
154
|
+
receivableId: r.path.receivable_id
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function y() {
|
|
160
|
+
let { client: e, organizationId: t } = c();
|
|
161
|
+
return d({
|
|
162
|
+
mutationFn: async ({ path: n, body: r }) => {
|
|
163
|
+
let { data: i } = await o({
|
|
164
|
+
client: e,
|
|
165
|
+
headers: l(t),
|
|
166
|
+
path: n,
|
|
167
|
+
body: r,
|
|
168
|
+
throwOnError: !0
|
|
169
|
+
});
|
|
170
|
+
return i;
|
|
171
|
+
},
|
|
172
|
+
onSuccess: async (n, r) => {
|
|
173
|
+
await u({
|
|
174
|
+
client: e,
|
|
175
|
+
organizationId: t,
|
|
176
|
+
receivableId: r.path.receivable_id
|
|
177
|
+
});
|
|
178
|
+
}
|
|
50
179
|
});
|
|
51
180
|
}
|
|
52
181
|
//#endregion
|
|
53
|
-
export {
|
|
182
|
+
export { v as useAcceptReceivableMutation, g as useCancelReceivableMutation, _ as useCloneReceivableMutation, f as useCreateReceivableMutation, y as useDeclineReceivableMutation, m as useDeleteReceivableMutation, h as useIssueReceivableMutation, p as useUpdateReceivableMutation };
|