@tesouro/embedded-components-react 0.5.205 → 0.5.207

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.
Files changed (59) hide show
  1. package/README.md +1 -1
  2. package/dist/index.d.ts +51 -4
  3. package/dist/index.js +1 -1
  4. package/dist/lib/ReceivablesWidget.d.ts +51 -4
  5. package/dist/lib/ReceivablesWidget.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +2 -2
  7. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +84 -2
  8. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +31 -25
  9. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
  10. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +109 -193
  11. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index11.js +154 -37
  12. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +193 -135
  13. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +37 -58
  14. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index14.js +140 -86
  15. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +42 -47
  16. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +58 -313
  17. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +91 -65
  18. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +108 -102
  19. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +48 -249
  20. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +365 -0
  21. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +75 -0
  22. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +115 -0
  23. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +285 -0
  24. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index5.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +93 -407
  26. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +430 -86
  27. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +17 -12
  28. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +92 -16
  29. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +3 -1
  30. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +24 -4
  31. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +0 -10
  32. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +2 -0
  33. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +3 -264
  34. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +16 -70
  35. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +1 -424
  36. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +4 -106
  37. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +12 -93
  38. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +5 -179
  39. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +1 -344
  40. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +264 -0
  41. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +72 -0
  42. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +402 -0
  43. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +106 -0
  44. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +249 -0
  45. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +93 -0
  46. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +344 -0
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index3.js +195 -32
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +29 -202
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index5.js +183 -137
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +157 -20
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +16 -1
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +25 -3
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +4 -3
  54. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +11 -11
  55. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +38 -38
  56. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +220 -198
  57. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +124 -84
  58. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  59. package/package.json +1 -1
package/README.md CHANGED
@@ -581,7 +581,7 @@ A self-contained native widget for listing, creating, editing, and acting on cus
581
581
  | `counterpartFormLabels` | `Partial<CounterpartFormSheetLabels>` | English defaults | Overrides inline customer creation copy from the shared counterpart-management flow. |
582
582
  | `measureUnitsLabels` | `Partial<MeasureUnitsManagerLabels>` | English defaults | Overrides copy of the measure-unit manager opened from a line item's unit select. |
583
583
  | `measureUnitDeleteLabels` | `Partial<MeasureUnitDeleteDialogLabels>` | English defaults | Overrides measure-unit delete confirmation copy. |
584
- | `messageLabels` | `Partial<ReceivableMessageLabels>` | English defaults | Overrides validation, fallback, summary, activity, and action-confirmation messages generated by the feature layer. |
584
+ | `messageLabels` | `Partial<ReceivableMessageLabels>` | English defaults | Overrides validation, fallback, summary, activity, reminder, and action-confirmation messages generated by the feature layer, including the subject and body saved on a reminder created from the form. |
585
585
  | `productMessageLabels` | `Partial<ProductMessageLabels>` | English defaults | Overrides product flow validation and error messages. |
586
586
  | `counterpartMessageLabels` | `Partial<CounterpartMessageLabels>` | English defaults | Overrides customer flow validation and error messages. |
587
587
 
package/dist/index.d.ts CHANGED
@@ -4824,6 +4824,15 @@ interface ProductMessageLabels {
4824
4824
  updateMeasureUnitError: string;
4825
4825
  }
4826
4826
 
4827
+ interface ReceivableBillingSectionLabels {
4828
+ billingHeading: string;
4829
+ billingDescription: string;
4830
+ paymentTermsLabel: string;
4831
+ paymentTermsPlaceholder: string;
4832
+ paymentTermsReceiptDue: string;
4833
+ paymentTermsCustomDate: string;
4834
+ }
4835
+
4827
4836
  interface ReceivableStatusBadgeLabels {
4828
4837
  draft: string;
4829
4838
  issuing: string;
@@ -4893,7 +4902,7 @@ interface ReceivablesScreenLabels {
4893
4902
  type ReceivablesScreenLabelOverrides = Partial<Omit<ReceivablesScreenLabels, 'statusBadge'>> & {
4894
4903
  statusBadge?: Partial<ReceivableStatusBadgeLabels>;
4895
4904
  };
4896
- interface ReceivableFormSheetLabels {
4905
+ interface ReceivableFormSheetLabels extends ReceivableBillingSectionLabels {
4897
4906
  createTitle: string;
4898
4907
  editTitle: string;
4899
4908
  hiddenDescription: string;
@@ -4905,9 +4914,6 @@ interface ReceivableFormSheetLabels {
4905
4914
  currencyLabel: string;
4906
4915
  issueDateLabel: string;
4907
4916
  dueDateLabel: string;
4908
- paymentTermsLabel: string;
4909
- paymentTermsPlaceholder: string;
4910
- paymentTermsNone: string;
4911
4917
  lineItemsHeading: string;
4912
4918
  lineItemsDescription: string;
4913
4919
  productLabel: string;
@@ -4962,6 +4968,19 @@ interface ReceivableFormSheetLabels {
4962
4968
  attachmentsDropPrompt: string;
4963
4969
  attachmentsBrowseLink: string;
4964
4970
  attachmentsFormatsHint: string;
4971
+ remindersToggleLabel: string;
4972
+ remindersDescription: string;
4973
+ remindersLibraryNote: string;
4974
+ reminderNumberOfDays: string;
4975
+ reminderBefore: string;
4976
+ reminderAfter: string;
4977
+ reminderDueDate: string;
4978
+ reminderNone: string;
4979
+ reminderBeforeDueInputLabel: string;
4980
+ reminderPlaceholder: string;
4981
+ reminderAddTermButton: string;
4982
+ reminderClearButton: string;
4983
+ reminderSaveButton: string;
4965
4984
  }
4966
4985
  interface ReceivableDetailsSheetLabels {
4967
4986
  hiddenDescription: string;
@@ -5040,6 +5059,7 @@ interface ReceivableMessageLabels {
5040
5059
  paymentAmountInvalid: string;
5041
5060
  genericError: string;
5042
5061
  lineItemsLoading: string;
5062
+ paymentTermsCustomDatePlaceholder: string;
5043
5063
  bankAccountFallbackName: string;
5044
5064
  /** `{embeddedBankName}` is replaced with the host's bank name. */
5045
5065
  bankAccountPoweredBy: string;
@@ -5115,6 +5135,33 @@ interface ReceivableMessageLabels {
5115
5135
  attachmentsCountLimit: string;
5116
5136
  attachmentIncludedInEmail: string;
5117
5137
  attachmentNotIncludedInEmail: string;
5138
+ reminderUnitDay: string;
5139
+ reminderUnitDays: string;
5140
+ /** `{days}` is replaced with the number of days. */
5141
+ reminderNameDay: string;
5142
+ /** `{days}` is replaced with the number of days. */
5143
+ reminderNameDays: string;
5144
+ reminderNameAnd: string;
5145
+ reminderBeforeDueCaption: string;
5146
+ reminderOverdueCaption: string;
5147
+ reminderOverdueEmptyCaption: string;
5148
+ /** `{index}` is replaced with the term's position, starting at 1. */
5149
+ reminderOverdueTermLabel: string;
5150
+ /** `{min}` and `{max}` are replaced with the accepted range. */
5151
+ reminderDaysRange: string;
5152
+ reminderPastDueWarning: string;
5153
+ reminderAdded: string;
5154
+ reminderBeforeDueSubject: string;
5155
+ /** `{dueDate}` is replaced with the invoice's due date. */
5156
+ reminderBeforeDueBody: string;
5157
+ reminderBeforeDueBodyNoDate: string;
5158
+ reminderOverdueSubject: string;
5159
+ /** `{dueDate}` is replaced with the invoice's due date. */
5160
+ reminderOverdueBody: string;
5161
+ reminderOverdueBodyNoDate: string;
5162
+ issueRemindersDisabled: string;
5163
+ issueRemindersNoEmail: string;
5164
+ issueRemindersDisabledNoEmail: string;
5118
5165
  }
5119
5166
 
5120
5167
  interface ReceivablesWidgetOwnProps {
package/dist/index.js CHANGED
@@ -27,7 +27,7 @@ import { InsightsWidget as L } from "./libs/tesouro-embedded-components-react/in
27
27
  import { UploadReceiptWidget as R } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index2.js";
28
28
  import { ExpenseManagementWidget as z } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index21.js";
29
29
  import { InvoicingWidget as B } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js";
30
- import { ReceivablesWidget as V } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js";
30
+ import { ReceivablesWidget as V } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.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";
@@ -868,6 +868,15 @@ interface ProductMessageLabels {
868
868
  updateMeasureUnitError: string;
869
869
  }
870
870
 
871
+ interface ReceivableBillingSectionLabels {
872
+ billingHeading: string;
873
+ billingDescription: string;
874
+ paymentTermsLabel: string;
875
+ paymentTermsPlaceholder: string;
876
+ paymentTermsReceiptDue: string;
877
+ paymentTermsCustomDate: string;
878
+ }
879
+
871
880
  interface ReceivableStatusBadgeLabels {
872
881
  draft: string;
873
882
  issuing: string;
@@ -937,7 +946,7 @@ interface ReceivablesScreenLabels {
937
946
  type ReceivablesScreenLabelOverrides = Partial<Omit<ReceivablesScreenLabels, 'statusBadge'>> & {
938
947
  statusBadge?: Partial<ReceivableStatusBadgeLabels>;
939
948
  };
940
- interface ReceivableFormSheetLabels {
949
+ interface ReceivableFormSheetLabels extends ReceivableBillingSectionLabels {
941
950
  createTitle: string;
942
951
  editTitle: string;
943
952
  hiddenDescription: string;
@@ -949,9 +958,6 @@ interface ReceivableFormSheetLabels {
949
958
  currencyLabel: string;
950
959
  issueDateLabel: string;
951
960
  dueDateLabel: string;
952
- paymentTermsLabel: string;
953
- paymentTermsPlaceholder: string;
954
- paymentTermsNone: string;
955
961
  lineItemsHeading: string;
956
962
  lineItemsDescription: string;
957
963
  productLabel: string;
@@ -1006,6 +1012,19 @@ interface ReceivableFormSheetLabels {
1006
1012
  attachmentsDropPrompt: string;
1007
1013
  attachmentsBrowseLink: string;
1008
1014
  attachmentsFormatsHint: string;
1015
+ remindersToggleLabel: string;
1016
+ remindersDescription: string;
1017
+ remindersLibraryNote: string;
1018
+ reminderNumberOfDays: string;
1019
+ reminderBefore: string;
1020
+ reminderAfter: string;
1021
+ reminderDueDate: string;
1022
+ reminderNone: string;
1023
+ reminderBeforeDueInputLabel: string;
1024
+ reminderPlaceholder: string;
1025
+ reminderAddTermButton: string;
1026
+ reminderClearButton: string;
1027
+ reminderSaveButton: string;
1009
1028
  }
1010
1029
  interface ReceivableDetailsSheetLabels {
1011
1030
  hiddenDescription: string;
@@ -1084,6 +1103,7 @@ interface ReceivableMessageLabels {
1084
1103
  paymentAmountInvalid: string;
1085
1104
  genericError: string;
1086
1105
  lineItemsLoading: string;
1106
+ paymentTermsCustomDatePlaceholder: string;
1087
1107
  bankAccountFallbackName: string;
1088
1108
  /** `{embeddedBankName}` is replaced with the host's bank name. */
1089
1109
  bankAccountPoweredBy: string;
@@ -1159,6 +1179,33 @@ interface ReceivableMessageLabels {
1159
1179
  attachmentsCountLimit: string;
1160
1180
  attachmentIncludedInEmail: string;
1161
1181
  attachmentNotIncludedInEmail: string;
1182
+ reminderUnitDay: string;
1183
+ reminderUnitDays: string;
1184
+ /** `{days}` is replaced with the number of days. */
1185
+ reminderNameDay: string;
1186
+ /** `{days}` is replaced with the number of days. */
1187
+ reminderNameDays: string;
1188
+ reminderNameAnd: string;
1189
+ reminderBeforeDueCaption: string;
1190
+ reminderOverdueCaption: string;
1191
+ reminderOverdueEmptyCaption: string;
1192
+ /** `{index}` is replaced with the term's position, starting at 1. */
1193
+ reminderOverdueTermLabel: string;
1194
+ /** `{min}` and `{max}` are replaced with the accepted range. */
1195
+ reminderDaysRange: string;
1196
+ reminderPastDueWarning: string;
1197
+ reminderAdded: string;
1198
+ reminderBeforeDueSubject: string;
1199
+ /** `{dueDate}` is replaced with the invoice's due date. */
1200
+ reminderBeforeDueBody: string;
1201
+ reminderBeforeDueBodyNoDate: string;
1202
+ reminderOverdueSubject: string;
1203
+ /** `{dueDate}` is replaced with the invoice's due date. */
1204
+ reminderOverdueBody: string;
1205
+ reminderOverdueBodyNoDate: string;
1206
+ issueRemindersDisabled: string;
1207
+ issueRemindersNoEmail: string;
1208
+ issueRemindersDisabledNoEmail: string;
1162
1209
  }
1163
1210
 
1164
1211
  interface ReceivablesWidgetOwnProps {
@@ -1,3 +1,3 @@
1
- import { ReceivablesWidget as e } from "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js";
1
+ import { ReceivablesWidget as e } from "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js";
2
2
  import "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js";
3
3
  export { e as ReceivablesWidget };
@@ -8,6 +8,6 @@ import { useAcceptReceivableMutation as o, useCancelReceivableMutation as s, use
8
8
  import "./index7.js";
9
9
  import { useMarkReceivablePaidMutation as m, useMarkReceivablePartiallyPaidMutation as h, useMarkReceivableUncollectibleMutation as g } from "./index8.js";
10
10
  import { useReceivableHistoryQuery as _, useReceivableMailsQuery as v, useReceivablePdfLinkQuery as y, useReceivableQuery as b, useReceivablesQuery as x } from "./index9.js";
11
- import "./index10.js";
11
+ import { useCreateOverdueReminderMutation as S, useCreatePaymentReminderMutation as C, useOverdueRemindersQuery as w, usePaymentRemindersQuery as T } from "./index10.js";
12
12
  import "./index11.js";
13
- export { o as useAcceptReceivableMutation, s as useCancelReceivableMutation, c as useCloneReceivableMutation, t as useCreateEntityBankAccountMutation, l as useCreateReceivableMutation, u as useDeclineReceivableMutation, r as useDeleteReceivableAttachmentMutation, d as useDeleteReceivableMutation, f as useIssueReceivableMutation, m as useMarkReceivablePaidMutation, h as useMarkReceivablePartiallyPaidMutation, g as useMarkReceivableUncollectibleMutation, n as usePaymentAccountsQuery, e as usePaymentTermsQuery, _ as useReceivableHistoryQuery, v as useReceivableMailsQuery, y as useReceivablePdfLinkQuery, b as useReceivableQuery, x as useReceivablesQuery, a as useSendReceivableEmailMutation, p as useUpdateReceivableMutation, i as useUploadReceivableAttachmentMutation };
13
+ export { o as useAcceptReceivableMutation, s as useCancelReceivableMutation, c as useCloneReceivableMutation, t as useCreateEntityBankAccountMutation, S as useCreateOverdueReminderMutation, C as useCreatePaymentReminderMutation, l as useCreateReceivableMutation, u as useDeclineReceivableMutation, r as useDeleteReceivableAttachmentMutation, d as useDeleteReceivableMutation, f as useIssueReceivableMutation, m as useMarkReceivablePaidMutation, h as useMarkReceivablePartiallyPaidMutation, g as useMarkReceivableUncollectibleMutation, w as useOverdueRemindersQuery, n as usePaymentAccountsQuery, T as usePaymentRemindersQuery, e as usePaymentTermsQuery, _ as useReceivableHistoryQuery, v as useReceivableMailsQuery, y as useReceivablePdfLinkQuery, b as useReceivableQuery, x as useReceivablesQuery, a as useSendReceivableEmailMutation, p as useUpdateReceivableMutation, i as useUploadReceivableAttachmentMutation };
@@ -2,6 +2,88 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
+ import { postOverdueReminders as e, postPaymentReminders as t } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { getOverdueRemindersOptions as n, getPaymentRemindersOptions as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
+ import { withAuthEpoch as i } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
8
+ import { invalidateAllClients as a } from "../../../shared/data-access/dist/lib/clientRegistry.js";
9
+ import { useEmbedApi as o } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
10
+ import { organizationHeaders as s } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
5
11
  import "../../../shared/data-access/dist/index.js";
6
- import "./index2.js";
7
- import "@tanstack/react-query";
12
+ import { overdueRemindersInvalidationKey as c, paymentRemindersInvalidationKey as l } from "./index2.js";
13
+ import { useMutation as u, useQuery as d } from "@tanstack/react-query";
14
+ //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js
15
+ function f() {
16
+ let e = o();
17
+ return {
18
+ ...e,
19
+ isEnabled: !!(e.organizationId && e.widgetToken)
20
+ };
21
+ }
22
+ function p({ enabled: e = !0 } = {}) {
23
+ let { client: t, organizationId: n, authEpoch: a, organizationPending: o, isEnabled: c } = f(), l = r({
24
+ client: t,
25
+ headers: s(n)
26
+ });
27
+ return d({
28
+ ...i(l, {
29
+ authEpoch: a,
30
+ organizationPending: o
31
+ }),
32
+ enabled: c && e
33
+ });
34
+ }
35
+ function m({ enabled: e = !0 } = {}) {
36
+ let { client: t, organizationId: r, authEpoch: a, organizationPending: o, isEnabled: c } = f(), l = n({
37
+ client: t,
38
+ headers: s(r)
39
+ });
40
+ return d({
41
+ ...i(l, {
42
+ authEpoch: a,
43
+ organizationPending: o
44
+ }),
45
+ enabled: c && e
46
+ });
47
+ }
48
+ function h() {
49
+ let { client: e, organizationId: n } = o();
50
+ return u({
51
+ mutationFn: async ({ body: r }) => {
52
+ let { data: i } = await t({
53
+ client: e,
54
+ headers: s(n),
55
+ body: r,
56
+ throwOnError: !0
57
+ });
58
+ return i;
59
+ },
60
+ onSuccess: async () => {
61
+ await a(l({
62
+ client: e,
63
+ organizationId: n
64
+ }));
65
+ }
66
+ });
67
+ }
68
+ function g() {
69
+ let { client: t, organizationId: n } = o();
70
+ return u({
71
+ mutationFn: async ({ body: r }) => {
72
+ let { data: i } = await e({
73
+ client: t,
74
+ headers: s(n),
75
+ body: r,
76
+ throwOnError: !0
77
+ });
78
+ return i;
79
+ },
80
+ onSuccess: async () => {
81
+ await a(c({
82
+ client: t,
83
+ organizationId: n
84
+ }));
85
+ }
86
+ });
87
+ }
88
+ //#endregion
89
+ export { g as useCreateOverdueReminderMutation, h as useCreatePaymentReminderMutation, m as useOverdueRemindersQuery, p as usePaymentRemindersQuery };
@@ -1,51 +1,57 @@
1
- import { getAnalyticsReceivablesQueryKey as e, getBankDetailsQueryKey as t, getFilesQueryKey as n, getPaymentRecordsQueryKey as r, getReceivablesIdHistoryQueryKey as i, getReceivablesIdMailsQueryKey as a, getReceivablesIdPdfLinkQueryKey as o, getReceivablesIdQueryKey as s, getReceivablesQueryKey as c } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
2
- import { organizationHeaders as l } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
1
+ import { getAnalyticsReceivablesQueryKey as e, getBankDetailsQueryKey as t, getFilesQueryKey as n, getOverdueRemindersQueryKey as r, getPaymentRecordsQueryKey as i, getPaymentRemindersQueryKey as a, getReceivablesIdHistoryQueryKey as o, getReceivablesIdMailsQueryKey as s, getReceivablesIdPdfLinkQueryKey as c, getReceivablesIdQueryKey as l, getReceivablesQueryKey as u } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
2
+ import { organizationHeaders as d } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
3
3
  import "../../../shared/data-access/dist/index.js";
4
4
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js
5
- var u = ({ client: e, organizationId: t }) => {
6
- let [n] = c({
5
+ var f = ({ client: e, organizationId: t }) => {
6
+ let [n] = u({
7
7
  client: e,
8
- headers: l(t)
8
+ headers: d(t)
9
9
  }), r = { ...n };
10
10
  return delete r.query, [r];
11
- }, d = ({ client: e, organizationId: t, receivableId: n }) => s({
11
+ }, p = ({ client: e, organizationId: t, receivableId: n }) => l({
12
12
  client: e,
13
- headers: l(t),
13
+ headers: d(t),
14
14
  path: { receivable_id: n }
15
- }), f = ({ client: e, organizationId: t, receivableId: n }) => i({
15
+ }), m = ({ client: e, organizationId: t, receivableId: n }) => o({
16
16
  client: e,
17
- headers: l(t),
17
+ headers: d(t),
18
18
  path: { receivable_id: n }
19
- }), p = ({ client: e, organizationId: t, receivableId: n }) => a({
19
+ }), h = ({ client: e, organizationId: t, receivableId: n }) => s({
20
20
  client: e,
21
- headers: l(t),
21
+ headers: d(t),
22
22
  path: { receivable_id: n }
23
- }), m = ({ client: e, organizationId: t, receivableId: n }) => o({
23
+ }), g = ({ client: e, organizationId: t, receivableId: n }) => c({
24
24
  client: e,
25
- headers: l(t),
25
+ headers: d(t),
26
26
  path: { receivable_id: n }
27
- }), h = ({ client: e, organizationId: n }) => t({
27
+ }), _ = ({ client: e, organizationId: n }) => t({
28
+ client: e,
29
+ headers: d(n)
30
+ }), v = ({ client: e, organizationId: t }) => a({
31
+ client: e,
32
+ headers: d(t)
33
+ }), y = ({ client: e, organizationId: t }) => r({
28
34
  client: e,
29
- headers: l(n)
30
- }), g = ({ client: e, organizationId: t }) => {
35
+ headers: d(t)
36
+ }), b = ({ client: e, organizationId: t }) => {
31
37
  let [r] = n({
32
38
  client: e,
33
- headers: l(t)
39
+ headers: d(t)
34
40
  }), i = { ...r };
35
41
  return delete i.query, [i];
36
- }, _ = ({ client: e, organizationId: t }) => {
37
- let [n] = r({
42
+ }, x = ({ client: e, organizationId: t }) => {
43
+ let [n] = i({
38
44
  client: e,
39
- headers: l(t)
40
- }), i = { ...n };
41
- return delete i.query, [i];
42
- }, v = ({ client: t, organizationId: n }) => {
45
+ headers: d(t)
46
+ }), r = { ...n };
47
+ return delete r.query, [r];
48
+ }, S = ({ client: t, organizationId: n }) => {
43
49
  let [r] = e({
44
50
  client: t,
45
- headers: l(n),
51
+ headers: d(n),
46
52
  query: {}
47
53
  }), i = { ...r };
48
54
  return delete i.query, [i];
49
55
  };
50
56
  //#endregion
51
- export { h as entityBankAccountsInvalidationKey, _ as paymentRecordsInvalidationKey, g as receivableAttachmentsInvalidationKey, f as receivableHistoryInvalidationKey, d as receivableInvalidationKey, p as receivableMailsInvalidationKey, m as receivablePdfInvalidationKey, v as receivablesAnalyticsInvalidationKey, u as receivablesInvalidationKey };
57
+ export { _ as entityBankAccountsInvalidationKey, y as overdueRemindersInvalidationKey, x as paymentRecordsInvalidationKey, v as paymentRemindersInvalidationKey, b as receivableAttachmentsInvalidationKey, m as receivableHistoryInvalidationKey, p as receivableInvalidationKey, h as receivableMailsInvalidationKey, g as receivablePdfInvalidationKey, S as receivablesAnalyticsInvalidationKey, f as receivablesInvalidationKey };
@@ -1,3 +1,3 @@
1
1
  import { InvoicingWidget as e } from "./index3.js";
2
- import { ReceivablesWidget as t } from "./index19.js";
2
+ import { ReceivablesWidget as t } from "./index23.js";
3
3
  export { e as InvoicingWidget, t as ReceivablesWidget };