@tesouro/embedded-components-react 0.5.214 → 0.5.215

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 (74) hide show
  1. package/dist/index.d.ts +88 -1
  2. package/dist/index.js +1 -1
  3. package/dist/lib/ReceivablesWidget.d.ts +88 -1
  4. package/dist/lib/ReceivablesWidget.js +1 -1
  5. package/dist/libs/shared/util-validation/dist/index5.js +7 -0
  6. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +7 -7
  7. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +63 -67
  8. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +160 -1
  9. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +6 -0
  10. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +32 -25
  11. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +25 -200
  12. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +175 -1
  13. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +1 -101
  14. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +92 -71
  15. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +44 -100
  17. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index11.js +93 -421
  18. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +442 -112
  19. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +166 -157
  20. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index14.js +150 -204
  21. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +202 -31
  22. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +32 -145
  23. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +145 -37
  24. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +44 -58
  25. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +113 -87
  26. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +58 -116
  27. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +83 -357
  28. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +111 -65
  29. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +449 -99
  30. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +68 -281
  31. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +115 -0
  32. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +314 -0
  33. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index5.js +1 -1
  34. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js +34 -23
  35. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +444 -92
  36. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +113 -52
  37. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +18 -14
  38. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +2 -92
  39. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +95 -3
  40. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +3 -24
  41. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +24 -1
  42. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +1 -3
  43. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +1 -1
  44. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +3 -18
  45. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +18 -1
  46. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +0 -3
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +0 -8
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +11 -0
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +1 -264
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +258 -42
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +38 -62
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +61 -463
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +457 -89
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +91 -234
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +89 -82
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +22 -338
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +236 -0
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index3.js +26 -204
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +3 -0
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +249 -0
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +93 -0
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +344 -0
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +208 -32
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index5.js +29 -202
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +183 -137
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +157 -12
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +10 -19
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +23 -2
  69. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +40 -40
  70. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +167 -156
  71. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +66 -34
  72. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  73. package/dist/packages/shared-ui-shadcn/dist/index.js +13 -13
  74. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -4833,6 +4833,34 @@ interface ReceivableBillingSectionLabels {
4833
4833
  paymentTermsCustomDate: string;
4834
4834
  }
4835
4835
 
4836
+ interface ReceivableRecurrenceSectionLabels {
4837
+ recurrenceRepeatLabel: string;
4838
+ recurrenceMonthDayLead: string;
4839
+ recurrenceMonthDayTrail: string;
4840
+ recurrenceWeekdayLead: string;
4841
+ recurrenceStartOnLabel: string;
4842
+ recurrenceEndChoiceLead: string;
4843
+ recurrenceEndCountLead: string;
4844
+ recurrenceDatePlaceholder: string;
4845
+ recurrenceCreationModeQuestion: string;
4846
+ recurrenceCreationModeHint: string;
4847
+ recurrenceSetUpEmail: string;
4848
+ }
4849
+ interface ReceivableRecurrenceEmailDialogLabels {
4850
+ recurrenceEmailTitle: string;
4851
+ recurrenceEmailDescription: string;
4852
+ recurrenceEmailTo: string;
4853
+ recurrenceEmailCc: string;
4854
+ recurrenceEmailBcc: string;
4855
+ recurrenceEmailSubject: string;
4856
+ recurrenceEmailMessage: string;
4857
+ recurrenceEmailRecipientPlaceholder: string;
4858
+ recurrenceEmailMessagePlaceholder: string;
4859
+ recurrenceEmailFootnote: string;
4860
+ recurrenceEmailCancel: string;
4861
+ recurrenceEmailSave: string;
4862
+ }
4863
+
4836
4864
  interface ReceivableStatusBadgeLabels {
4837
4865
  draft: string;
4838
4866
  issuing: string;
@@ -4902,7 +4930,7 @@ interface ReceivablesScreenLabels {
4902
4930
  type ReceivablesScreenLabelOverrides = Partial<Omit<ReceivablesScreenLabels, 'statusBadge'>> & {
4903
4931
  statusBadge?: Partial<ReceivableStatusBadgeLabels>;
4904
4932
  };
4905
- interface ReceivableFormSheetLabels extends ReceivableBillingSectionLabels {
4933
+ interface ReceivableFormSheetLabels extends ReceivableBillingSectionLabels, ReceivableRecurrenceSectionLabels, ReceivableRecurrenceEmailDialogLabels {
4906
4934
  createTitle: string;
4907
4935
  editTitle: string;
4908
4936
  hiddenDescription: string;
@@ -5151,6 +5179,65 @@ interface ReceivableMessageLabels {
5151
5179
  attachmentsCountLimit: string;
5152
5180
  attachmentIncludedInEmail: string;
5153
5181
  attachmentNotIncludedInEmail: string;
5182
+ recurrenceSeriesPaymentTerms: string;
5183
+ recurrenceFrequencyOnce: string;
5184
+ recurrenceFrequencyDaily: string;
5185
+ recurrenceFrequencyWeekly: string;
5186
+ recurrenceFrequencyMonthly: string;
5187
+ recurrenceFrequencyQuarterly: string;
5188
+ recurrenceFrequencyAnnually: string;
5189
+ recurrenceFirstDay: string;
5190
+ recurrenceLastDay: string;
5191
+ recurrenceWeekdayMo: string;
5192
+ recurrenceWeekdayTu: string;
5193
+ recurrenceWeekdayWe: string;
5194
+ recurrenceWeekdayTh: string;
5195
+ recurrenceWeekdayFr: string;
5196
+ recurrenceWeekdaySa: string;
5197
+ recurrenceWeekdaySu: string;
5198
+ recurrenceEndAfter: string;
5199
+ recurrenceEndOn: string;
5200
+ recurrenceUnitDay: string;
5201
+ recurrenceUnitDays: string;
5202
+ recurrenceUnitWeek: string;
5203
+ recurrenceUnitWeeks: string;
5204
+ recurrenceUnitMonth: string;
5205
+ recurrenceUnitMonths: string;
5206
+ recurrenceUnitQuarter: string;
5207
+ recurrenceUnitQuarters: string;
5208
+ recurrenceUnitYear: string;
5209
+ recurrenceUnitYears: string;
5210
+ recurrenceLastDayCaption: string;
5211
+ recurrenceModeIssueAndSendTitle: string;
5212
+ recurrenceModeIssueAndSendDescription: string;
5213
+ recurrenceModeIssueTitle: string;
5214
+ recurrenceModeIssueDescription: string;
5215
+ recurrenceModeDraftTitle: string;
5216
+ recurrenceModeDraftDescription: string;
5217
+ recurrenceNoRecipients: string;
5218
+ /** `{recipient}` is replaced with the address. */
5219
+ recurrenceRemoveRecipient: string;
5220
+ recurrenceActivateButton: string;
5221
+ recurrenceUpdateButton: string;
5222
+ recurrenceStartDateRequired: string;
5223
+ recurrenceDayOfMonthRequired: string;
5224
+ recurrenceDayOfWeekRequired: string;
5225
+ recurrenceEndConditionRequired: string;
5226
+ recurrenceEndDateRequired: string;
5227
+ /** `{units}` is replaced with the plural unit, e.g. "months". */
5228
+ recurrenceOccurrencesRequired: string;
5229
+ /** `{unit}` is replaced with the singular unit, e.g. "month". */
5230
+ recurrenceOccurrencesTooFew: string;
5231
+ /** `{units}` is replaced with the plural unit. */
5232
+ recurrenceOccurrencesTooMany: string;
5233
+ recurrenceOccurrencesWhole: string;
5234
+ /** `{count}` is replaced with how many invoices the series has issued. */
5235
+ recurrenceOccurrencesBelowIssued: string;
5236
+ recurrenceSubjectRequired: string;
5237
+ recurrenceMessageRequired: string;
5238
+ recurrenceRecipientRequired: string;
5239
+ /** `{address}` is replaced with the rejected address. */
5240
+ recurrenceInvalidEmail: string;
5154
5241
  reminderUnitDay: string;
5155
5242
  reminderUnitDays: string;
5156
5243
  /** `{days}` is replaced with the number of days. */
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/index24.js";
30
+ import { ReceivablesWidget as V } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.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";
@@ -877,6 +877,34 @@ interface ReceivableBillingSectionLabels {
877
877
  paymentTermsCustomDate: string;
878
878
  }
879
879
 
880
+ interface ReceivableRecurrenceSectionLabels {
881
+ recurrenceRepeatLabel: string;
882
+ recurrenceMonthDayLead: string;
883
+ recurrenceMonthDayTrail: string;
884
+ recurrenceWeekdayLead: string;
885
+ recurrenceStartOnLabel: string;
886
+ recurrenceEndChoiceLead: string;
887
+ recurrenceEndCountLead: string;
888
+ recurrenceDatePlaceholder: string;
889
+ recurrenceCreationModeQuestion: string;
890
+ recurrenceCreationModeHint: string;
891
+ recurrenceSetUpEmail: string;
892
+ }
893
+ interface ReceivableRecurrenceEmailDialogLabels {
894
+ recurrenceEmailTitle: string;
895
+ recurrenceEmailDescription: string;
896
+ recurrenceEmailTo: string;
897
+ recurrenceEmailCc: string;
898
+ recurrenceEmailBcc: string;
899
+ recurrenceEmailSubject: string;
900
+ recurrenceEmailMessage: string;
901
+ recurrenceEmailRecipientPlaceholder: string;
902
+ recurrenceEmailMessagePlaceholder: string;
903
+ recurrenceEmailFootnote: string;
904
+ recurrenceEmailCancel: string;
905
+ recurrenceEmailSave: string;
906
+ }
907
+
880
908
  interface ReceivableStatusBadgeLabels {
881
909
  draft: string;
882
910
  issuing: string;
@@ -946,7 +974,7 @@ interface ReceivablesScreenLabels {
946
974
  type ReceivablesScreenLabelOverrides = Partial<Omit<ReceivablesScreenLabels, 'statusBadge'>> & {
947
975
  statusBadge?: Partial<ReceivableStatusBadgeLabels>;
948
976
  };
949
- interface ReceivableFormSheetLabels extends ReceivableBillingSectionLabels {
977
+ interface ReceivableFormSheetLabels extends ReceivableBillingSectionLabels, ReceivableRecurrenceSectionLabels, ReceivableRecurrenceEmailDialogLabels {
950
978
  createTitle: string;
951
979
  editTitle: string;
952
980
  hiddenDescription: string;
@@ -1195,6 +1223,65 @@ interface ReceivableMessageLabels {
1195
1223
  attachmentsCountLimit: string;
1196
1224
  attachmentIncludedInEmail: string;
1197
1225
  attachmentNotIncludedInEmail: string;
1226
+ recurrenceSeriesPaymentTerms: string;
1227
+ recurrenceFrequencyOnce: string;
1228
+ recurrenceFrequencyDaily: string;
1229
+ recurrenceFrequencyWeekly: string;
1230
+ recurrenceFrequencyMonthly: string;
1231
+ recurrenceFrequencyQuarterly: string;
1232
+ recurrenceFrequencyAnnually: string;
1233
+ recurrenceFirstDay: string;
1234
+ recurrenceLastDay: string;
1235
+ recurrenceWeekdayMo: string;
1236
+ recurrenceWeekdayTu: string;
1237
+ recurrenceWeekdayWe: string;
1238
+ recurrenceWeekdayTh: string;
1239
+ recurrenceWeekdayFr: string;
1240
+ recurrenceWeekdaySa: string;
1241
+ recurrenceWeekdaySu: string;
1242
+ recurrenceEndAfter: string;
1243
+ recurrenceEndOn: string;
1244
+ recurrenceUnitDay: string;
1245
+ recurrenceUnitDays: string;
1246
+ recurrenceUnitWeek: string;
1247
+ recurrenceUnitWeeks: string;
1248
+ recurrenceUnitMonth: string;
1249
+ recurrenceUnitMonths: string;
1250
+ recurrenceUnitQuarter: string;
1251
+ recurrenceUnitQuarters: string;
1252
+ recurrenceUnitYear: string;
1253
+ recurrenceUnitYears: string;
1254
+ recurrenceLastDayCaption: string;
1255
+ recurrenceModeIssueAndSendTitle: string;
1256
+ recurrenceModeIssueAndSendDescription: string;
1257
+ recurrenceModeIssueTitle: string;
1258
+ recurrenceModeIssueDescription: string;
1259
+ recurrenceModeDraftTitle: string;
1260
+ recurrenceModeDraftDescription: string;
1261
+ recurrenceNoRecipients: string;
1262
+ /** `{recipient}` is replaced with the address. */
1263
+ recurrenceRemoveRecipient: string;
1264
+ recurrenceActivateButton: string;
1265
+ recurrenceUpdateButton: string;
1266
+ recurrenceStartDateRequired: string;
1267
+ recurrenceDayOfMonthRequired: string;
1268
+ recurrenceDayOfWeekRequired: string;
1269
+ recurrenceEndConditionRequired: string;
1270
+ recurrenceEndDateRequired: string;
1271
+ /** `{units}` is replaced with the plural unit, e.g. "months". */
1272
+ recurrenceOccurrencesRequired: string;
1273
+ /** `{unit}` is replaced with the singular unit, e.g. "month". */
1274
+ recurrenceOccurrencesTooFew: string;
1275
+ /** `{units}` is replaced with the plural unit. */
1276
+ recurrenceOccurrencesTooMany: string;
1277
+ recurrenceOccurrencesWhole: string;
1278
+ /** `{count}` is replaced with how many invoices the series has issued. */
1279
+ recurrenceOccurrencesBelowIssued: string;
1280
+ recurrenceSubjectRequired: string;
1281
+ recurrenceMessageRequired: string;
1282
+ recurrenceRecipientRequired: string;
1283
+ /** `{address}` is replaced with the rejected address. */
1284
+ recurrenceInvalidEmail: string;
1198
1285
  reminderUnitDay: string;
1199
1286
  reminderUnitDays: string;
1200
1287
  /** `{days}` is replaced with the number of days. */
@@ -1,3 +1,3 @@
1
- import { ReceivablesWidget as e } from "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js";
1
+ import { ReceivablesWidget as e } from "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js";
2
2
  import "../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js";
3
3
  export { e as ReceivablesWidget };
@@ -0,0 +1,7 @@
1
+ //#region ../../libs/shared/util-validation/dist/index5.js
2
+ var e = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
3
+ function t(t) {
4
+ return e.test(t) && t.length <= 254;
5
+ }
6
+ //#endregion
7
+ export { t as isEmail };
@@ -4,10 +4,10 @@ import "./index2.js";
4
4
  import { useCreateEntityBankAccountMutation as t, usePaymentAccountsQuery as n } from "./index3.js";
5
5
  import { useDeleteReceivableAttachmentMutation as r, useUploadReceivableAttachmentMutation as i } from "./index4.js";
6
6
  import { useSendReceivableEmailMutation as a } from "./index5.js";
7
- import { useAcceptReceivableMutation as o, useCancelReceivableMutation as s, useCloneReceivableMutation as c, useCreateReceivableMutation as l, useDeclineReceivableMutation as u, useDeleteReceivableMutation as d, useIssueReceivableMutation as f, useUpdateReceivableMutation as p } from "./index6.js";
8
- import "./index7.js";
9
- import { useMarkReceivablePaidMutation as m, useMarkReceivablePartiallyPaidMutation as h, useMarkReceivableUncollectibleMutation as g } from "./index8.js";
10
- import { useReceivableHistoryQuery as _, useReceivableMailsQuery as v, useReceivablePdfLinkQuery as y, useReceivableQuery as b, useReceivablesQuery as x } from "./index9.js";
11
- import { useCreateOverdueReminderMutation as S, useCreatePaymentReminderMutation as C, useOverdueRemindersQuery as w, usePaymentRemindersQuery as T } from "./index10.js";
12
- import "./index11.js";
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 };
7
+ import { useAcceptReceivableMutation as o, useCancelReceivableMutation as s, useCloneReceivableMutation as c, useCreateReceivableMutation as l, useDeclineReceivableMutation as u, useDeleteReceivableMutation as d, useIssueReceivableMutation as f, useUpdateReceivableMutation as p } from "./index7.js";
8
+ import "./index8.js";
9
+ import { useMarkReceivablePaidMutation as m, useMarkReceivablePartiallyPaidMutation as h, useMarkReceivableUncollectibleMutation as g } from "./index9.js";
10
+ import { useReceivableHistoryQuery as _, useReceivableMailsQuery as v, useReceivablePdfLinkQuery as y, useReceivableQuery as b, useReceivablesQuery as x } from "./index10.js";
11
+ import { useCreateOverdueReminderMutation as S, useCreatePaymentReminderMutation as C, useCreateRecurrenceMutation as w, useOverdueRemindersQuery as T, usePaymentRemindersQuery as E, useRecurrenceQuery as D, useUpdateRecurrenceMutation as O } from "./index11.js";
12
+ import "./index12.js";
13
+ export { o as useAcceptReceivableMutation, s as useCancelReceivableMutation, c as useCloneReceivableMutation, t as useCreateEntityBankAccountMutation, S as useCreateOverdueReminderMutation, C as useCreatePaymentReminderMutation, l as useCreateReceivableMutation, w as useCreateRecurrenceMutation, u as useDeclineReceivableMutation, r as useDeleteReceivableAttachmentMutation, d as useDeleteReceivableMutation, f as useIssueReceivableMutation, m as useMarkReceivablePaidMutation, h as useMarkReceivablePartiallyPaidMutation, g as useMarkReceivableUncollectibleMutation, T as useOverdueRemindersQuery, n as usePaymentAccountsQuery, E as usePaymentRemindersQuery, e as usePaymentTermsQuery, _ as useReceivableHistoryQuery, v as useReceivableMailsQuery, y as useReceivablePdfLinkQuery, b as useReceivableQuery, x as useReceivablesQuery, D as useRecurrenceQuery, a as useSendReceivableEmailMutation, p as useUpdateReceivableMutation, O as useUpdateRecurrenceMutation, i as useUploadReceivableAttachmentMutation };
@@ -2,88 +2,84 @@
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";
5
+ import { getReceivablesIdHistoryOptions as e, getReceivablesIdMailsOptions as t, getReceivablesIdOptions as n, getReceivablesIdPdfLinkOptions as r, getReceivablesOptions as i } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { withAuthEpoch as a } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
9
7
  import { useEmbedApi as o } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
10
8
  import { organizationHeaders as s } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
11
9
  import "../../../shared/data-access/dist/index.js";
12
- import { overdueRemindersInvalidationKey as c, paymentRemindersInvalidationKey as l } from "./index2.js";
13
- import { useMutation as u, useQuery as d } from "@tanstack/react-query";
10
+ import { useQuery as c } from "@tanstack/react-query";
14
11
  //#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
- };
12
+ function l({ enabled: e, ...t } = {}) {
13
+ let { client: n, organizationId: r, widgetToken: l, authEpoch: u, organizationPending: d } = o(), f = !!(r && l) && (e === !0 || e === void 0), p = i({
14
+ client: n,
15
+ headers: s(r),
16
+ query: t
17
+ });
18
+ return c({
19
+ ...a(p, {
20
+ authEpoch: u,
21
+ organizationPending: d
22
+ }, { carryWithinOrg: !0 }),
23
+ enabled: f
24
+ });
21
25
  }
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
+ function u(e, { enabled: t = !0 } = {}) {
27
+ let { client: r, organizationId: i, widgetToken: l, authEpoch: u, organizationPending: d } = o(), f = !!(i && l && e) && t, p = n({
28
+ client: r,
29
+ headers: s(i),
30
+ path: { receivable_id: e ?? "" }
26
31
  });
27
- return d({
28
- ...i(l, {
29
- authEpoch: a,
30
- organizationPending: o
32
+ return c({
33
+ ...a(p, {
34
+ authEpoch: u,
35
+ organizationPending: d
31
36
  }),
32
- enabled: c && e
37
+ enabled: f
33
38
  });
34
39
  }
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)
40
+ function d(t, { enabled: n, ...r } = {}) {
41
+ let { client: i, organizationId: l, widgetToken: u, authEpoch: d, organizationPending: f } = o(), p = !!(l && u && t) && (n === !0 || n === void 0), m = e({
42
+ client: i,
43
+ headers: s(l),
44
+ path: { receivable_id: t ?? "" },
45
+ query: r
39
46
  });
40
- return d({
41
- ...i(l, {
42
- authEpoch: a,
43
- organizationPending: o
47
+ return c({
48
+ ...a(m, {
49
+ authEpoch: d,
50
+ organizationPending: f
44
51
  }),
45
- enabled: c && e
52
+ enabled: p
46
53
  });
47
54
  }
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
- }
55
+ function f(e, { enabled: n, ...r } = {}) {
56
+ let { client: i, organizationId: l, widgetToken: u, authEpoch: d, organizationPending: f } = o(), p = !!(l && u && e) && (n === !0 || n === void 0), m = t({
57
+ client: i,
58
+ headers: s(l),
59
+ path: { receivable_id: e ?? "" },
60
+ query: r
61
+ });
62
+ return c({
63
+ ...a(m, {
64
+ authEpoch: d,
65
+ organizationPending: f
66
+ }),
67
+ enabled: p
66
68
  });
67
69
  }
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
- }
70
+ function p(e, { enabled: t = !0 } = {}) {
71
+ let { client: n, organizationId: i, widgetToken: l, authEpoch: u, organizationPending: d } = o(), f = !!(i && l && e) && t, p = r({
72
+ client: n,
73
+ headers: s(i),
74
+ path: { receivable_id: e ?? "" }
75
+ });
76
+ return c({
77
+ ...a(p, {
78
+ authEpoch: u,
79
+ organizationPending: d
80
+ }),
81
+ enabled: f
86
82
  });
87
83
  }
88
84
  //#endregion
89
- export { g as useCreateOverdueReminderMutation, h as useCreatePaymentReminderMutation, m as useOverdueRemindersQuery, p as usePaymentRemindersQuery };
85
+ export { d as useReceivableHistoryQuery, f as useReceivableMailsQuery, p as useReceivablePdfLinkQuery, u as useReceivableQuery, l as useReceivablesQuery };
@@ -2,5 +2,164 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
+ import { patchRecurrencesId as e, postOverdueReminders as t, postPaymentReminders as n, postRecurrences as r } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { getOverdueRemindersOptions as i, getPaymentRemindersOptions as a, getRecurrencesIdOptions as o } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
+ import { withAuthEpoch as s } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
8
+ import { invalidateAllClients as c } from "../../../shared/data-access/dist/lib/clientRegistry.js";
9
+ import { useEmbedApi as l } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
10
+ import { organizationHeaders as u } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
5
11
  import "../../../shared/data-access/dist/index.js";
6
- import "@tanstack/react-query";
12
+ import { overdueRemindersInvalidationKey as d, paymentRemindersInvalidationKey as f, recurrenceInvalidationKey as p, recurrencesInvalidationKey as m } from "./index2.js";
13
+ import { invalidateReceivable as h } from "./index6.js";
14
+ import { useMutation as g, useQuery as _ } from "@tanstack/react-query";
15
+ //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js
16
+ function v() {
17
+ let e = l();
18
+ return {
19
+ ...e,
20
+ isEnabled: !!(e.organizationId && e.widgetToken)
21
+ };
22
+ }
23
+ function y({ enabled: e = !0 } = {}) {
24
+ let { client: t, organizationId: n, authEpoch: r, organizationPending: i, isEnabled: o } = v(), c = a({
25
+ client: t,
26
+ headers: u(n)
27
+ });
28
+ return _({
29
+ ...s(c, {
30
+ authEpoch: r,
31
+ organizationPending: i
32
+ }),
33
+ enabled: o && e
34
+ });
35
+ }
36
+ function b({ enabled: e = !0 } = {}) {
37
+ let { client: t, organizationId: n, authEpoch: r, organizationPending: a, isEnabled: o } = v(), c = i({
38
+ client: t,
39
+ headers: u(n)
40
+ });
41
+ return _({
42
+ ...s(c, {
43
+ authEpoch: r,
44
+ organizationPending: a
45
+ }),
46
+ enabled: o && e
47
+ });
48
+ }
49
+ function x() {
50
+ let { client: e, organizationId: t } = l();
51
+ return g({
52
+ mutationFn: async ({ body: r }) => {
53
+ let { data: i } = await n({
54
+ client: e,
55
+ headers: u(t),
56
+ body: r,
57
+ throwOnError: !0
58
+ });
59
+ return i;
60
+ },
61
+ onSuccess: async () => {
62
+ await c(f({
63
+ client: e,
64
+ organizationId: t
65
+ }));
66
+ }
67
+ });
68
+ }
69
+ function S() {
70
+ let { client: e, organizationId: n } = l();
71
+ return g({
72
+ mutationFn: async ({ body: r }) => {
73
+ let { data: i } = await t({
74
+ client: e,
75
+ headers: u(n),
76
+ body: r,
77
+ throwOnError: !0
78
+ });
79
+ return i;
80
+ },
81
+ onSuccess: async () => {
82
+ await c(d({
83
+ client: e,
84
+ organizationId: n
85
+ }));
86
+ }
87
+ });
88
+ }
89
+ async function C({ client: e, organizationId: t, recurrenceId: n, receivableId: r }) {
90
+ await Promise.all([
91
+ c(m({
92
+ client: e,
93
+ organizationId: t
94
+ })),
95
+ ...n ? [c(p({
96
+ client: e,
97
+ organizationId: t,
98
+ recurrenceId: n
99
+ }))] : [],
100
+ h({
101
+ client: e,
102
+ organizationId: t,
103
+ receivableId: r
104
+ })
105
+ ]);
106
+ }
107
+ function w(e) {
108
+ let { client: t, organizationId: n, authEpoch: r, organizationPending: i, isEnabled: a } = v(), c = o({
109
+ client: t,
110
+ headers: u(n),
111
+ path: { recurrence_id: e ?? "" }
112
+ });
113
+ return _({
114
+ ...s(c, {
115
+ authEpoch: r,
116
+ organizationPending: i
117
+ }),
118
+ enabled: a && !!e
119
+ });
120
+ }
121
+ function T() {
122
+ let { client: e, organizationId: t } = l();
123
+ return g({
124
+ mutationFn: async ({ body: n }) => {
125
+ let { data: i } = await r({
126
+ client: e,
127
+ headers: u(t),
128
+ body: n,
129
+ throwOnError: !0
130
+ });
131
+ return i;
132
+ },
133
+ onSuccess: async (n, r) => {
134
+ await C({
135
+ client: e,
136
+ organizationId: t,
137
+ receivableId: r.body.invoice_id
138
+ });
139
+ }
140
+ });
141
+ }
142
+ function E() {
143
+ let { client: t, organizationId: n } = l();
144
+ return g({
145
+ mutationFn: async ({ path: r, body: i }) => {
146
+ let { data: a } = await e({
147
+ client: t,
148
+ headers: u(n),
149
+ path: r,
150
+ body: i,
151
+ throwOnError: !0
152
+ });
153
+ return a;
154
+ },
155
+ onSuccess: async (e, r) => {
156
+ await C({
157
+ client: t,
158
+ organizationId: n,
159
+ recurrenceId: r.path.recurrence_id
160
+ });
161
+ }
162
+ });
163
+ }
164
+ //#endregion
165
+ export { S as useCreateOverdueReminderMutation, x as useCreatePaymentReminderMutation, T as useCreateRecurrenceMutation, b as useOverdueRemindersQuery, y as usePaymentRemindersQuery, w as useRecurrenceQuery, E as useUpdateRecurrenceMutation };
@@ -0,0 +1,6 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import "../../../shared/data-access/dist/index.js";
6
+ import "@tanstack/react-query";