@tesouro/embedded-components-react 0.3.52 → 0.3.55

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 (43) hide show
  1. package/README.md +47 -64
  2. package/dist/index.css +0 -6
  3. package/dist/index.d.ts +80 -26
  4. package/dist/index.js +45 -49
  5. package/dist/lib/CardDetailsWidget.d.ts +61 -1
  6. package/dist/lib/CardDetailsWidget.js +1 -1
  7. package/dist/lib/CreditCardsWidget.d.ts +78 -4
  8. package/dist/lib/DebitCardsWidget.d.ts +78 -4
  9. package/dist/lib/WidgetSuite.d.ts +78 -4
  10. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index.js +7 -4
  11. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index2.js +20 -0
  12. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index3.js +43 -6
  13. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index4.js +40 -14
  14. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index5.js +5 -26
  15. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +4 -4
  16. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +32 -0
  17. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +25 -0
  18. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index9.js +27 -0
  19. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index.js +2 -1
  20. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index5.js +1 -0
  21. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js +17 -160
  22. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index7.js +107 -0
  23. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index8.js +188 -0
  24. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/index.js +4 -2
  25. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/ActivateCardPanel.js +137 -8
  26. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/ActivateCardSuccessView.js +27 -2
  27. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/FieldError.js +12 -1
  28. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/labels.js +55 -0
  29. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/validation.js +47 -0
  30. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +37 -36
  31. package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index.js +4 -4
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +1 -1
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +47 -29
  34. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +22 -20
  35. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/isApiConflictError.js +7 -0
  36. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/isApiUnprocessableError.js +7 -0
  37. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +246 -225
  38. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +170 -134
  39. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  40. package/package.json +27 -2
  41. package/dist/lib/CreateCardWidget.d.ts +0 -823
  42. package/dist/lib/CreateCardWidget.js +0 -5
  43. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/PinField.js +0 -5
@@ -76,7 +76,7 @@ var a = (e) => t, o = (e) => i.object({
76
76
  })).default([]),
77
77
  ...m().shape
78
78
  }).superRefine((t, i) => {
79
- _(t, i, e, r), h(t, i, e, n), g(t, i, e);
79
+ x(t, i, e, r), h(t, i, e, n), g(t, i, e);
80
80
  }), d = (e) => i.array(i.object({
81
81
  id: i.string().optional(),
82
82
  quantity: i.number().optional(),
@@ -111,7 +111,7 @@ var a = (e) => t, o = (e) => i.object({
111
111
  })).default([]),
112
112
  ...m().shape
113
113
  }).superRefine((r, i) => {
114
- _(r, i, e, n), h(r, i, e, t), g(r, i, e);
114
+ x(r, i, e, n), h(r, i, e, t), g(r, i, e);
115
115
  }), p = (e) => i.email().safeParse(e).success, m = () => i.object({
116
116
  frequency: i.enum([
117
117
  "once",
@@ -134,7 +134,7 @@ var a = (e) => t, o = (e) => i.object({
134
134
  "su"
135
135
  ]).optional(),
136
136
  recurrence_end_mode: i.enum(["after", "on"]).optional(),
137
- recurrence_max_occurrences: i.coerce.number().int().min(1).max(1e3).optional(),
137
+ recurrence_max_occurrences: i.coerce.number().optional(),
138
138
  recurrence_automation_level: i.enum([
139
139
  "draft",
140
140
  "issue",
@@ -165,7 +165,45 @@ var a = (e) => t, o = (e) => i.object({
165
165
  path: ["discount", "amount"],
166
166
  message: i._("Discount amount cannot exceed subtotal")
167
167
  });
168
- }, _ = (e, t, n, r = 0) => {
168
+ }, _ = 1, v = 1e3, y = {
169
+ day: {
170
+ required: (e) => e._("Number of days is required"),
171
+ belowMin: (e) => e._("Enter at least 1 day"),
172
+ aboveMax: (e) => e._("Enter no more than 1000 days")
173
+ },
174
+ week: {
175
+ required: (e) => e._("Number of weeks is required"),
176
+ belowMin: (e) => e._("Enter at least 1 week"),
177
+ aboveMax: (e) => e._("Enter no more than 1000 weeks")
178
+ },
179
+ month: {
180
+ required: (e) => e._("Number of months is required"),
181
+ belowMin: (e) => e._("Enter at least 1 month"),
182
+ aboveMax: (e) => e._("Enter no more than 1000 months")
183
+ },
184
+ quarter: {
185
+ required: (e) => e._("Number of quarters is required"),
186
+ belowMin: (e) => e._("Enter at least 1 quarter"),
187
+ aboveMax: (e) => e._("Enter no more than 1000 quarters")
188
+ },
189
+ year: {
190
+ required: (e) => e._("Number of years is required"),
191
+ belowMin: (e) => e._("Enter at least 1 year"),
192
+ aboveMax: (e) => e._("Enter no more than 1000 years")
193
+ }
194
+ }, b = (e, t, n, r) => {
195
+ let i = y[r], a = (() => {
196
+ if (e === void 0) return i.required(n);
197
+ if (e < _) return i.belowMin(n);
198
+ if (e > v) return i.aboveMax(n);
199
+ if (!Number.isInteger(e)) return n._("Enter a whole number");
200
+ })();
201
+ a && t.addIssue({
202
+ code: "custom",
203
+ message: a,
204
+ path: ["recurrence_max_occurrences"]
205
+ });
206
+ }, x = (e, t, n, r = 0) => {
169
207
  if (!e.frequency || e.frequency === "once") return;
170
208
  switch (e.recurrence_start_date || t.addIssue({
171
209
  code: "custom",
@@ -177,42 +215,22 @@ var a = (e) => t, o = (e) => i.object({
177
215
  code: "custom",
178
216
  message: n._("Day of month is required"),
179
217
  path: ["recurrence_issue_mode"]
180
- }), e.recurrence_max_occurrences || t.addIssue({
181
- code: "custom",
182
- message: n._("Number of months is required"),
183
- path: ["recurrence_max_occurrences"]
184
- });
218
+ }), b(e.recurrence_max_occurrences, t, n, "month");
185
219
  break;
186
220
  case "week":
187
221
  e.recurrence_days_of_week || t.addIssue({
188
222
  code: "custom",
189
223
  message: n._("Day of week is required"),
190
224
  path: ["recurrence_days_of_week"]
191
- }), e.recurrence_max_occurrences || t.addIssue({
192
- code: "custom",
193
- message: n._("Number of weeks is required"),
194
- path: ["recurrence_max_occurrences"]
195
- });
225
+ }), b(e.recurrence_max_occurrences, t, n, "week");
196
226
  break;
197
227
  case "quarter":
198
- e.recurrence_max_occurrences || t.addIssue({
199
- code: "custom",
200
- message: n._("Number of quarters is required"),
201
- path: ["recurrence_max_occurrences"]
202
- });
228
+ b(e.recurrence_max_occurrences, t, n, "quarter");
203
229
  break;
204
230
  case "year":
205
- e.recurrence_max_occurrences || t.addIssue({
206
- code: "custom",
207
- message: n._("Number of years is required"),
208
- path: ["recurrence_max_occurrences"]
209
- });
231
+ b(e.recurrence_max_occurrences, t, n, "year");
210
232
  break;
211
- case "day": e.recurrence_end_mode ? e.recurrence_end_mode === "after" && !e.recurrence_max_occurrences ? t.addIssue({
212
- code: "custom",
213
- message: n._("Number of days is required"),
214
- path: ["recurrence_max_occurrences"]
215
- }) : e.recurrence_end_mode === "on" && !e.recurrence_end_date && t.addIssue({
233
+ case "day": e.recurrence_end_mode ? e.recurrence_end_mode === "after" ? b(e.recurrence_max_occurrences, t, n, "day") : e.recurrence_end_mode === "on" && !e.recurrence_end_date && t.addIssue({
216
234
  code: "custom",
217
235
  message: n._("End date is required"),
218
236
  path: ["recurrence_end_date"]
@@ -8,27 +8,29 @@ import { optionalOrganizationHeaders as d, organizationHeaders as f } from "./li
8
8
  import { bulkUpdateDepartmentMembers as p, bulkUpdateLocationMembers as m, bulkUpdateRoleMembers as h, createDepartment as g, createLocation as _, createUser as v, deactivateDepartment as y, deactivateLocation as b, deleteCounterpartsId as x, deleteCounterpartsIdBankAccountsId as S, deleteMeasureUnitsId as C, deletePayablesId as w, deletePayablesIdFile as T, deleteProductsId as E, deleteReceivablesId as D, deleteTagsId as O, downloadBankAccountTransactions as k, getApplicationStatus as A, getApprovalPolicies as j, getApprovalRequests as M, getBankAccountAccess as N, getDepartment as P, getExternalBankAccountAccess as F, getLocation as I, getPayables as L, getPayablesId as R, getPayablesIdHistory as z, getPayablesIdLineItems as B, getPaymentRecords as V, getUsers as H, listDepartments as U, listLocations as W, listRoles as G, manageBankAccountAccess as K, patchCounterpartsId as q, patchCounterpartsIdAddressesId as J, patchCounterpartsIdBankAccountsId as Y, patchMeasureUnitsId as X, patchPayablesId as Z, patchProductsId as Q, patchReceivablesId as $, patchTagsId as ee, postApprovalRequestsIdApprove as te, postApprovalRequestsIdReject as ne, postCounterparts as re, postCounterpartsIdAddresses as ie, postCounterpartsIdBankAccounts as ae, postCounterpartsIdBankAccountsIdMakeDefault as oe, postMeasureUnits as se, postPayables as ce, postPayablesIdApprovePaymentOperation as le, postPayablesIdAttachFile as ue, postPayablesIdCancel as de, postPayablesIdDuplicatesIdConfirm as fe, postPayablesIdDuplicatesIdDismiss as pe, postPayablesIdMarkAsPaid as me, postPayablesIdReject as he, postPayablesIdReopen as ge, postPayablesIdSchedulePayment as _e, postPayablesIdSubmitForApproval as ve, postPayablesIdValidate as ye, postPayablesUploadFromFile as be, postPaymentIntentsIdCancel as xe, postProducts as Se, postReceivables as Ce, postReceivablesIdAccept as we, postReceivablesIdCancel as Te, postReceivablesIdClone as Ee, postReceivablesIdDecline as De, postReceivablesIdIssue as Oe, postReceivablesIdMarkAsPaid as ke, postReceivablesIdMarkAsPartiallyPaid as Ae, postReceivablesIdMarkAsUncollectible as je, postReceivablesIdSend as Me, postTags as Ne, putPayablesIdLineItems as Pe, putReceivablesIdLineItems as Fe, updateDepartment as Ie, updateLocation as Le, updateUser as Re } from "./lib/rest/sdk.gen.js";
9
9
  import { fetchWidgetInit as ze } from "./lib/fetchWidgetInit.js";
10
10
  import { hasAnyScope as Be } from "./lib/hasAnyScope.js";
11
- import { connectExternalBankAccountMutation as Ve, createAchMoneyMovementMutation as He, createApplicationMutation as Ue, createBankAccountMutation as We, createBookTransferMutation as Ge, createDebitCardMutation as Ke, createVelocityControlMutation as qe, deleteApprovalPoliciesIdMutation as Je, deleteLedgerAccountsIdMutation as Ye, deleteReceiptsIdMutation as Xe, disableUserMutation as Ze, getAnalyticsPayablesOptions as Qe, getAnalyticsReceivablesOptions as $e, getApplicationStatusOptions as et, getApprovalPoliciesOptions as tt, getApprovalPoliciesQueryKey as nt, getApprovalRequestsOptions as rt, getApprovalRequestsQueryKey as it, getBankAccountAccessQueryKey as at, getBankAccountOptions as ot, getBankAccountQueryKey as st, getBankAccountTransactionsOptions as ct, getBankAccountTransfersOptions as lt, getBankAccountTransfersQueryKey as ut, getBankAccountsQueryKey as dt, getCounterpartsIdAddressesOptions as ft, getCounterpartsIdAddressesQueryKey as pt, getCounterpartsIdBankAccountsOptions as mt, getCounterpartsIdBankAccountsQueryKey as ht, getCounterpartsIdOptions as gt, getCounterpartsIdQueryKey as _t, getCounterpartsOptions as vt, getCounterpartsQueryKey as yt, getCreditCardByIdOptions as bt, getCreditCardsOptions as xt, getDebitCardByIdOptions as St, getDebitCardCredentialsOptions as Ct, getDebitCardsOptions as wt, getDebitCardsQueryKey as Tt, getDepartmentOptions as Et, getDepartmentQueryKey as Dt, getEntitiesIdSettingsOptions as Ot, getEntitiesIdSettingsQueryKey as kt, getEntitiesMeOptions as At, getEntityUsersMyEntityOptions as jt, getEntityUsersOptions as Mt, getExternalBankAccountAccessQueryKey as Nt, getExternalBankAccountsOptions as Pt, getExternalBankAccountsQueryKey as Ft, getLedgerAccountsQueryKey as It, getLocationOptions as Lt, getLocationQueryKey as Rt, getMeasureUnitsOptions as zt, getMeasureUnitsQueryKey as Bt, getOrganizationOptions as Vt, getPayablesAnalyticsOptions as Ht, getPayablesAnalyticsQueryKey as Ut, getPayablesIdHistoryOptions as Wt, getPayablesIdHistoryQueryKey as Gt, getPayablesIdLineItemsOptions as Kt, getPayablesIdLineItemsQueryKey as qt, getPayablesIdOptions as Jt, getPayablesIdQueryKey as Yt, getPayablesIdSuggestionsOptions as Xt, getPayablesOptions as Zt, getPayablesQueryKey as Qt, getPaymentRecordsOptions as $t, getPaymentRecordsQueryKey as en, getProductsIdOptions as tn, getProductsIdQueryKey as nn, getProductsOptions as rn, getProductsQueryKey as an, getReceiptsIdQueryKey as on, getReceiptsOptions as sn, getReceiptsQueryKey as cn, getReceivablesIdHistoryOptions as ln, getReceivablesIdHistoryQueryKey as un, getReceivablesIdMailsOptions as dn, getReceivablesIdMailsQueryKey as fn, getReceivablesIdOptions as pn, getReceivablesIdPdfLinkOptions as mn, getReceivablesIdPdfLinkQueryKey as hn, getReceivablesIdQueryKey as gn, getReceivablesOptions as _n, getReceivablesQueryKey as vn, getTagsOptions as yn, getTagsQueryKey as bn, getTransactionsIdQueryKey as xn, getTransactionsOptions as Sn, getTransactionsQueryKey as Cn, getTransactionsValidationsOptions as wn, getTransactionsValidationsQueryKey as Tn, getUsersOptions as En, getUsersQueryKey as Dn, getVelocityControlsQueryKey as On, grantBankAccountAccessMutation as kn, grantExternalBankAccountAccessMutation as An, linkExternalBankAccountMutation as jn, listDepartmentsOptions as Mn, listDepartmentsQueryKey as Nn, listLocationsOptions as Pn, listLocationsQueryKey as Fn, listRolesQueryKey as In, manageDebitCardAccessMutation as Ln, patchApprovalPoliciesIdMutation as Rn, patchEntitiesIdSettingsMutation as zn, patchLedgerAccountsIdMutation as Bn, patchReceiptsIdMutation as Vn, postApprovalPoliciesMutation as Hn, postLedgerAccountsMutation as Un, putTransactionsValidationsMutation as Wn, submitApplicationMutation as Gn, unlinkExternalBankAccountMutation as Kn, updateApplicationMutation as qn, updateBankAccountMutation as Jn, updateExternalBankAccountMutation as Yn, validateExternalBankAccountMutation as Xn } from "./lib/rest/@tanstack/react-query.gen.js";
11
+ import { activateCreditCardMutation as Ve, activateDebitCardMutation as He, connectExternalBankAccountMutation as Ue, createAchMoneyMovementMutation as We, createApplicationMutation as Ge, createBankAccountMutation as Ke, createBookTransferMutation as qe, createDebitCardMutation as Je, createVelocityControlMutation as Ye, deleteApprovalPoliciesIdMutation as Xe, deleteLedgerAccountsIdMutation as Ze, deleteReceiptsIdMutation as Qe, disableUserMutation as $e, getAnalyticsPayablesOptions as et, getAnalyticsReceivablesOptions as tt, getApplicationStatusOptions as nt, getApprovalPoliciesOptions as rt, getApprovalPoliciesQueryKey as it, getApprovalRequestsOptions as at, getApprovalRequestsQueryKey as ot, getBankAccountAccessQueryKey as st, getBankAccountOptions as ct, getBankAccountQueryKey as lt, getBankAccountTransactionsOptions as ut, getBankAccountTransfersOptions as dt, getBankAccountTransfersQueryKey as ft, getBankAccountsQueryKey as pt, getCounterpartsIdAddressesOptions as mt, getCounterpartsIdAddressesQueryKey as ht, getCounterpartsIdBankAccountsOptions as gt, getCounterpartsIdBankAccountsQueryKey as _t, getCounterpartsIdOptions as vt, getCounterpartsIdQueryKey as yt, getCounterpartsOptions as bt, getCounterpartsQueryKey as xt, getCreditCardByIdOptions as St, getCreditCardByIdQueryKey as Ct, getCreditCardsOptions as wt, getCreditCardsQueryKey as Tt, getDebitCardByIdOptions as Et, getDebitCardByIdQueryKey as Dt, getDebitCardCredentialsOptions as Ot, getDebitCardsOptions as kt, getDebitCardsQueryKey as At, getDepartmentOptions as jt, getDepartmentQueryKey as Mt, getEntitiesIdSettingsOptions as Nt, getEntitiesIdSettingsQueryKey as Pt, getEntitiesMeOptions as Ft, getEntityUsersMyEntityOptions as It, getEntityUsersOptions as Lt, getExternalBankAccountAccessQueryKey as Rt, getExternalBankAccountsOptions as zt, getExternalBankAccountsQueryKey as Bt, getLedgerAccountsQueryKey as Vt, getLocationOptions as Ht, getLocationQueryKey as Ut, getMeasureUnitsOptions as Wt, getMeasureUnitsQueryKey as Gt, getOrganizationOptions as Kt, getPayablesAnalyticsOptions as qt, getPayablesAnalyticsQueryKey as Jt, getPayablesIdHistoryOptions as Yt, getPayablesIdHistoryQueryKey as Xt, getPayablesIdLineItemsOptions as Zt, getPayablesIdLineItemsQueryKey as Qt, getPayablesIdOptions as $t, getPayablesIdQueryKey as en, getPayablesIdSuggestionsOptions as tn, getPayablesOptions as nn, getPayablesQueryKey as rn, getPaymentRecordsOptions as an, getPaymentRecordsQueryKey as on, getProductsIdOptions as sn, getProductsIdQueryKey as cn, getProductsOptions as ln, getProductsQueryKey as un, getReceiptsIdQueryKey as dn, getReceiptsOptions as fn, getReceiptsQueryKey as pn, getReceivablesIdHistoryOptions as mn, getReceivablesIdHistoryQueryKey as hn, getReceivablesIdMailsOptions as gn, getReceivablesIdMailsQueryKey as _n, getReceivablesIdOptions as vn, getReceivablesIdPdfLinkOptions as yn, getReceivablesIdPdfLinkQueryKey as bn, getReceivablesIdQueryKey as xn, getReceivablesOptions as Sn, getReceivablesQueryKey as Cn, getTagsOptions as wn, getTagsQueryKey as Tn, getTransactionsIdQueryKey as En, getTransactionsOptions as Dn, getTransactionsQueryKey as On, getTransactionsValidationsOptions as kn, getTransactionsValidationsQueryKey as An, getUsersOptions as jn, getUsersQueryKey as Mn, getVelocityControlsQueryKey as Nn, grantBankAccountAccessMutation as Pn, grantExternalBankAccountAccessMutation as Fn, linkExternalBankAccountMutation as In, listDepartmentsOptions as Ln, listDepartmentsQueryKey as Rn, listLocationsOptions as zn, listLocationsQueryKey as Bn, listRolesQueryKey as Vn, manageDebitCardAccessMutation as Hn, patchApprovalPoliciesIdMutation as Un, patchEntitiesIdSettingsMutation as Wn, patchLedgerAccountsIdMutation as Gn, patchReceiptsIdMutation as Kn, postApprovalPoliciesMutation as qn, postLedgerAccountsMutation as Jn, putTransactionsValidationsMutation as Yn, submitApplicationMutation as Xn, unlinkExternalBankAccountMutation as Zn, updateApplicationMutation as Qn, updateBankAccountMutation as $n, updateExternalBankAccountMutation as er, validateExternalBankAccountMutation as tr, verifyDebitCardMutation as nr } from "./lib/rest/@tanstack/react-query.gen.js";
12
12
  import "./lib/queryKeys.js";
13
- import { withAuthEpoch as Zn } from "./lib/withAuthEpoch.js";
14
- import { useCurrentUserQuery as Qn } from "./lib/useCurrentUserQuery.js";
13
+ import { withAuthEpoch as rr } from "./lib/withAuthEpoch.js";
14
+ import { useCurrentUserQuery as ir } from "./lib/useCurrentUserQuery.js";
15
15
  import "./lib/apiErrorStatus.js";
16
- import { isApiForbiddenError as $n } from "./lib/isApiForbiddenError.js";
17
- import { isApiNotFoundError as er } from "./lib/isApiNotFoundError.js";
16
+ import { isApiConflictError as ar } from "./lib/isApiConflictError.js";
17
+ import { isApiForbiddenError as or } from "./lib/isApiForbiddenError.js";
18
+ import { isApiNotFoundError as sr } from "./lib/isApiNotFoundError.js";
19
+ import { isApiUnprocessableError as cr } from "./lib/isApiUnprocessableError.js";
18
20
  import "./lib/isUserDataNotFoundError.js";
19
- import { useGetUserDataQuery as tr } from "./lib/useGetUserDataQuery.js";
20
- import { useUpsertUserDataMutation as nr } from "./lib/useUpsertUserDataMutation.js";
21
+ import { useGetUserDataQuery as lr } from "./lib/useGetUserDataQuery.js";
22
+ import { useUpsertUserDataMutation as ur } from "./lib/useUpsertUserDataMutation.js";
21
23
  import "./lib/rest/zod.gen.js";
22
- import { Scope as rr } from "./lib/scopes.js";
23
- import { getAllPagesNextPageParam as ir, getAllPagesNextPaginationTokenParam as ar, isAllPagesResolving as or, useAutoFetchNextPage as sr } from "./lib/allPages.js";
24
- import { useAllBankAccountsQuery as cr } from "./lib/bank-account/useAllBankAccountsQuery.js";
25
- import { useAllExternalBankAccountsQuery as lr } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
26
- import { useAllMerchantCategoryGroupsQuery as ur } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
27
- import { useAllLedgerAccountsQuery as dr, useLedgerAccountsQuery as fr } from "./lib/reference-data/useLedgerAccountsQuery.js";
28
- import { usePaymentTermsQuery as pr } from "./lib/reference-data/usePaymentTermsQuery.js";
29
- import { useAllOrganizationRolesQuery as mr } from "./lib/role/useAllOrganizationRolesQuery.js";
30
- import { useRolePermissionsQueries as hr } from "./lib/role/useRolePermissionsQueries.js";
31
- import { useAllOrganizationUsersQuery as gr } from "./lib/user/useAllOrganizationUsersQuery.js";
32
- import { useAcceptWidgetDisclosures as _r } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
33
- import { useDisclosuresQuery as vr } from "./lib/disclosures/useDisclosuresQuery.js";
34
- export { l as EmbedApiProvider, rr as Scope, p as bulkUpdateDepartmentMembers, m as bulkUpdateLocationMembers, h as bulkUpdateRoleMembers, e as cancelAllClients, o as cloneEmbeddedClient, Ve as connectExternalBankAccountMutation, He as createAchMoneyMovementMutation, Ue as createApplicationMutation, We as createBankAccountMutation, Ge as createBookTransferMutation, Ke as createDebitCardMutation, g as createDepartment, s as createEmbeddedClient, _ as createLocation, v as createUser, qe as createVelocityControlMutation, y as deactivateDepartment, b as deactivateLocation, Je as deleteApprovalPoliciesIdMutation, x as deleteCounterpartsId, S as deleteCounterpartsIdBankAccountsId, Ye as deleteLedgerAccountsIdMutation, C as deleteMeasureUnitsId, w as deletePayablesId, T as deletePayablesIdFile, E as deleteProductsId, Xe as deleteReceiptsIdMutation, D as deleteReceivablesId, O as deleteTagsId, Ze as disableUserMutation, k as downloadBankAccountTransactions, ze as fetchWidgetInit, ir as getAllPagesNextPageParam, ar as getAllPagesNextPaginationTokenParam, Qe as getAnalyticsPayablesOptions, $e as getAnalyticsReceivablesOptions, A as getApplicationStatus, et as getApplicationStatusOptions, j as getApprovalPolicies, tt as getApprovalPoliciesOptions, nt as getApprovalPoliciesQueryKey, M as getApprovalRequests, rt as getApprovalRequestsOptions, it as getApprovalRequestsQueryKey, N as getBankAccountAccess, at as getBankAccountAccessQueryKey, ot as getBankAccountOptions, st as getBankAccountQueryKey, ct as getBankAccountTransactionsOptions, lt as getBankAccountTransfersOptions, ut as getBankAccountTransfersQueryKey, dt as getBankAccountsQueryKey, ft as getCounterpartsIdAddressesOptions, pt as getCounterpartsIdAddressesQueryKey, mt as getCounterpartsIdBankAccountsOptions, ht as getCounterpartsIdBankAccountsQueryKey, gt as getCounterpartsIdOptions, _t as getCounterpartsIdQueryKey, vt as getCounterpartsOptions, yt as getCounterpartsQueryKey, bt as getCreditCardByIdOptions, xt as getCreditCardsOptions, St as getDebitCardByIdOptions, Ct as getDebitCardCredentialsOptions, wt as getDebitCardsOptions, Tt as getDebitCardsQueryKey, P as getDepartment, Et as getDepartmentOptions, Dt as getDepartmentQueryKey, Ot as getEntitiesIdSettingsOptions, kt as getEntitiesIdSettingsQueryKey, At as getEntitiesMeOptions, jt as getEntityUsersMyEntityOptions, Mt as getEntityUsersOptions, F as getExternalBankAccountAccess, Nt as getExternalBankAccountAccessQueryKey, Pt as getExternalBankAccountsOptions, Ft as getExternalBankAccountsQueryKey, It as getLedgerAccountsQueryKey, I as getLocation, Lt as getLocationOptions, Rt as getLocationQueryKey, zt as getMeasureUnitsOptions, Bt as getMeasureUnitsQueryKey, Vt as getOrganizationOptions, L as getPayables, Ht as getPayablesAnalyticsOptions, Ut as getPayablesAnalyticsQueryKey, R as getPayablesId, z as getPayablesIdHistory, Wt as getPayablesIdHistoryOptions, Gt as getPayablesIdHistoryQueryKey, B as getPayablesIdLineItems, Kt as getPayablesIdLineItemsOptions, qt as getPayablesIdLineItemsQueryKey, Jt as getPayablesIdOptions, Yt as getPayablesIdQueryKey, Xt as getPayablesIdSuggestionsOptions, Zt as getPayablesOptions, Qt as getPayablesQueryKey, V as getPaymentRecords, $t as getPaymentRecordsOptions, en as getPaymentRecordsQueryKey, tn as getProductsIdOptions, nn as getProductsIdQueryKey, rn as getProductsOptions, an as getProductsQueryKey, on as getReceiptsIdQueryKey, sn as getReceiptsOptions, cn as getReceiptsQueryKey, ln as getReceivablesIdHistoryOptions, un as getReceivablesIdHistoryQueryKey, dn as getReceivablesIdMailsOptions, fn as getReceivablesIdMailsQueryKey, pn as getReceivablesIdOptions, mn as getReceivablesIdPdfLinkOptions, hn as getReceivablesIdPdfLinkQueryKey, gn as getReceivablesIdQueryKey, _n as getReceivablesOptions, vn as getReceivablesQueryKey, yn as getTagsOptions, bn as getTagsQueryKey, xn as getTransactionsIdQueryKey, Sn as getTransactionsOptions, Cn as getTransactionsQueryKey, wn as getTransactionsValidationsOptions, Tn as getTransactionsValidationsQueryKey, H as getUsers, En as getUsersOptions, Dn as getUsersQueryKey, On as getVelocityControlsQueryKey, kn as grantBankAccountAccessMutation, An as grantExternalBankAccountAccessMutation, Be as hasAnyScope, t as invalidateAllClients, or as isAllPagesResolving, $n as isApiForbiddenError, er as isApiNotFoundError, c as isWidgetGatewayHost, jn as linkExternalBankAccountMutation, U as listDepartments, Mn as listDepartmentsOptions, Nn as listDepartmentsQueryKey, W as listLocations, Pn as listLocationsOptions, Fn as listLocationsQueryKey, G as listRoles, In as listRolesQueryKey, K as manageBankAccountAccess, Ln as manageDebitCardAccessMutation, d as optionalOrganizationHeaders, f as organizationHeaders, Rn as patchApprovalPoliciesIdMutation, q as patchCounterpartsId, J as patchCounterpartsIdAddressesId, Y as patchCounterpartsIdBankAccountsId, zn as patchEntitiesIdSettingsMutation, Bn as patchLedgerAccountsIdMutation, X as patchMeasureUnitsId, Z as patchPayablesId, Q as patchProductsId, Vn as patchReceiptsIdMutation, $ as patchReceivablesId, ee as patchTagsId, Hn as postApprovalPoliciesMutation, te as postApprovalRequestsIdApprove, ne as postApprovalRequestsIdReject, re as postCounterparts, ie as postCounterpartsIdAddresses, ae as postCounterpartsIdBankAccounts, oe as postCounterpartsIdBankAccountsIdMakeDefault, Un as postLedgerAccountsMutation, se as postMeasureUnits, ce as postPayables, le as postPayablesIdApprovePaymentOperation, ue as postPayablesIdAttachFile, de as postPayablesIdCancel, fe as postPayablesIdDuplicatesIdConfirm, pe as postPayablesIdDuplicatesIdDismiss, me as postPayablesIdMarkAsPaid, he as postPayablesIdReject, ge as postPayablesIdReopen, _e as postPayablesIdSchedulePayment, ve as postPayablesIdSubmitForApproval, ye as postPayablesIdValidate, be as postPayablesUploadFromFile, xe as postPaymentIntentsIdCancel, Se as postProducts, Ce as postReceivables, we as postReceivablesIdAccept, Te as postReceivablesIdCancel, Ee as postReceivablesIdClone, De as postReceivablesIdDecline, Oe as postReceivablesIdIssue, ke as postReceivablesIdMarkAsPaid, Ae as postReceivablesIdMarkAsPartiallyPaid, je as postReceivablesIdMarkAsUncollectible, Me as postReceivablesIdSend, Ne as postTags, Pe as putPayablesIdLineItems, Fe as putReceivablesIdLineItems, Wn as putTransactionsValidationsMutation, n as registerQueryClient, r as removeInactiveFromAllClients, i as setAllClientsQueriesData, Gn as submitApplicationMutation, Kn as unlinkExternalBankAccountMutation, a as unregisterQueryClient, qn as updateApplicationMutation, Jn as updateBankAccountMutation, Ie as updateDepartment, Yn as updateExternalBankAccountMutation, Le as updateLocation, Re as updateUser, _r as useAcceptWidgetDisclosures, cr as useAllBankAccountsQuery, lr as useAllExternalBankAccountsQuery, dr as useAllLedgerAccountsQuery, ur as useAllMerchantCategoryGroupsQuery, mr as useAllOrganizationRolesQuery, gr as useAllOrganizationUsersQuery, sr as useAutoFetchNextPage, Qn as useCurrentUserQuery, vr as useDisclosuresQuery, u as useEmbedApi, tr as useGetUserDataQuery, fr as useLedgerAccountsQuery, pr as usePaymentTermsQuery, hr as useRolePermissionsQueries, nr as useUpsertUserDataMutation, Xn as validateExternalBankAccountMutation, Zn as withAuthEpoch };
24
+ import { Scope as dr } from "./lib/scopes.js";
25
+ import { getAllPagesNextPageParam as fr, getAllPagesNextPaginationTokenParam as pr, isAllPagesResolving as mr, useAutoFetchNextPage as hr } from "./lib/allPages.js";
26
+ import { useAllBankAccountsQuery as gr } from "./lib/bank-account/useAllBankAccountsQuery.js";
27
+ import { useAllExternalBankAccountsQuery as _r } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
28
+ import { useAllMerchantCategoryGroupsQuery as vr } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
29
+ import { useAllLedgerAccountsQuery as yr, useLedgerAccountsQuery as br } from "./lib/reference-data/useLedgerAccountsQuery.js";
30
+ import { usePaymentTermsQuery as xr } from "./lib/reference-data/usePaymentTermsQuery.js";
31
+ import { useAllOrganizationRolesQuery as Sr } from "./lib/role/useAllOrganizationRolesQuery.js";
32
+ import { useRolePermissionsQueries as Cr } from "./lib/role/useRolePermissionsQueries.js";
33
+ import { useAllOrganizationUsersQuery as wr } from "./lib/user/useAllOrganizationUsersQuery.js";
34
+ import { useAcceptWidgetDisclosures as Tr } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
35
+ import { useDisclosuresQuery as Er } from "./lib/disclosures/useDisclosuresQuery.js";
36
+ export { l as EmbedApiProvider, dr as Scope, Ve as activateCreditCardMutation, He as activateDebitCardMutation, p as bulkUpdateDepartmentMembers, m as bulkUpdateLocationMembers, h as bulkUpdateRoleMembers, e as cancelAllClients, o as cloneEmbeddedClient, Ue as connectExternalBankAccountMutation, We as createAchMoneyMovementMutation, Ge as createApplicationMutation, Ke as createBankAccountMutation, qe as createBookTransferMutation, Je as createDebitCardMutation, g as createDepartment, s as createEmbeddedClient, _ as createLocation, v as createUser, Ye as createVelocityControlMutation, y as deactivateDepartment, b as deactivateLocation, Xe as deleteApprovalPoliciesIdMutation, x as deleteCounterpartsId, S as deleteCounterpartsIdBankAccountsId, Ze as deleteLedgerAccountsIdMutation, C as deleteMeasureUnitsId, w as deletePayablesId, T as deletePayablesIdFile, E as deleteProductsId, Qe as deleteReceiptsIdMutation, D as deleteReceivablesId, O as deleteTagsId, $e as disableUserMutation, k as downloadBankAccountTransactions, ze as fetchWidgetInit, fr as getAllPagesNextPageParam, pr as getAllPagesNextPaginationTokenParam, et as getAnalyticsPayablesOptions, tt as getAnalyticsReceivablesOptions, A as getApplicationStatus, nt as getApplicationStatusOptions, j as getApprovalPolicies, rt as getApprovalPoliciesOptions, it as getApprovalPoliciesQueryKey, M as getApprovalRequests, at as getApprovalRequestsOptions, ot as getApprovalRequestsQueryKey, N as getBankAccountAccess, st as getBankAccountAccessQueryKey, ct as getBankAccountOptions, lt as getBankAccountQueryKey, ut as getBankAccountTransactionsOptions, dt as getBankAccountTransfersOptions, ft as getBankAccountTransfersQueryKey, pt as getBankAccountsQueryKey, mt as getCounterpartsIdAddressesOptions, ht as getCounterpartsIdAddressesQueryKey, gt as getCounterpartsIdBankAccountsOptions, _t as getCounterpartsIdBankAccountsQueryKey, vt as getCounterpartsIdOptions, yt as getCounterpartsIdQueryKey, bt as getCounterpartsOptions, xt as getCounterpartsQueryKey, St as getCreditCardByIdOptions, Ct as getCreditCardByIdQueryKey, wt as getCreditCardsOptions, Tt as getCreditCardsQueryKey, Et as getDebitCardByIdOptions, Dt as getDebitCardByIdQueryKey, Ot as getDebitCardCredentialsOptions, kt as getDebitCardsOptions, At as getDebitCardsQueryKey, P as getDepartment, jt as getDepartmentOptions, Mt as getDepartmentQueryKey, Nt as getEntitiesIdSettingsOptions, Pt as getEntitiesIdSettingsQueryKey, Ft as getEntitiesMeOptions, It as getEntityUsersMyEntityOptions, Lt as getEntityUsersOptions, F as getExternalBankAccountAccess, Rt as getExternalBankAccountAccessQueryKey, zt as getExternalBankAccountsOptions, Bt as getExternalBankAccountsQueryKey, Vt as getLedgerAccountsQueryKey, I as getLocation, Ht as getLocationOptions, Ut as getLocationQueryKey, Wt as getMeasureUnitsOptions, Gt as getMeasureUnitsQueryKey, Kt as getOrganizationOptions, L as getPayables, qt as getPayablesAnalyticsOptions, Jt as getPayablesAnalyticsQueryKey, R as getPayablesId, z as getPayablesIdHistory, Yt as getPayablesIdHistoryOptions, Xt as getPayablesIdHistoryQueryKey, B as getPayablesIdLineItems, Zt as getPayablesIdLineItemsOptions, Qt as getPayablesIdLineItemsQueryKey, $t as getPayablesIdOptions, en as getPayablesIdQueryKey, tn as getPayablesIdSuggestionsOptions, nn as getPayablesOptions, rn as getPayablesQueryKey, V as getPaymentRecords, an as getPaymentRecordsOptions, on as getPaymentRecordsQueryKey, sn as getProductsIdOptions, cn as getProductsIdQueryKey, ln as getProductsOptions, un as getProductsQueryKey, dn as getReceiptsIdQueryKey, fn as getReceiptsOptions, pn as getReceiptsQueryKey, mn as getReceivablesIdHistoryOptions, hn as getReceivablesIdHistoryQueryKey, gn as getReceivablesIdMailsOptions, _n as getReceivablesIdMailsQueryKey, vn as getReceivablesIdOptions, yn as getReceivablesIdPdfLinkOptions, bn as getReceivablesIdPdfLinkQueryKey, xn as getReceivablesIdQueryKey, Sn as getReceivablesOptions, Cn as getReceivablesQueryKey, wn as getTagsOptions, Tn as getTagsQueryKey, En as getTransactionsIdQueryKey, Dn as getTransactionsOptions, On as getTransactionsQueryKey, kn as getTransactionsValidationsOptions, An as getTransactionsValidationsQueryKey, H as getUsers, jn as getUsersOptions, Mn as getUsersQueryKey, Nn as getVelocityControlsQueryKey, Pn as grantBankAccountAccessMutation, Fn as grantExternalBankAccountAccessMutation, Be as hasAnyScope, t as invalidateAllClients, mr as isAllPagesResolving, ar as isApiConflictError, or as isApiForbiddenError, sr as isApiNotFoundError, cr as isApiUnprocessableError, c as isWidgetGatewayHost, In as linkExternalBankAccountMutation, U as listDepartments, Ln as listDepartmentsOptions, Rn as listDepartmentsQueryKey, W as listLocations, zn as listLocationsOptions, Bn as listLocationsQueryKey, G as listRoles, Vn as listRolesQueryKey, K as manageBankAccountAccess, Hn as manageDebitCardAccessMutation, d as optionalOrganizationHeaders, f as organizationHeaders, Un as patchApprovalPoliciesIdMutation, q as patchCounterpartsId, J as patchCounterpartsIdAddressesId, Y as patchCounterpartsIdBankAccountsId, Wn as patchEntitiesIdSettingsMutation, Gn as patchLedgerAccountsIdMutation, X as patchMeasureUnitsId, Z as patchPayablesId, Q as patchProductsId, Kn as patchReceiptsIdMutation, $ as patchReceivablesId, ee as patchTagsId, qn as postApprovalPoliciesMutation, te as postApprovalRequestsIdApprove, ne as postApprovalRequestsIdReject, re as postCounterparts, ie as postCounterpartsIdAddresses, ae as postCounterpartsIdBankAccounts, oe as postCounterpartsIdBankAccountsIdMakeDefault, Jn as postLedgerAccountsMutation, se as postMeasureUnits, ce as postPayables, le as postPayablesIdApprovePaymentOperation, ue as postPayablesIdAttachFile, de as postPayablesIdCancel, fe as postPayablesIdDuplicatesIdConfirm, pe as postPayablesIdDuplicatesIdDismiss, me as postPayablesIdMarkAsPaid, he as postPayablesIdReject, ge as postPayablesIdReopen, _e as postPayablesIdSchedulePayment, ve as postPayablesIdSubmitForApproval, ye as postPayablesIdValidate, be as postPayablesUploadFromFile, xe as postPaymentIntentsIdCancel, Se as postProducts, Ce as postReceivables, we as postReceivablesIdAccept, Te as postReceivablesIdCancel, Ee as postReceivablesIdClone, De as postReceivablesIdDecline, Oe as postReceivablesIdIssue, ke as postReceivablesIdMarkAsPaid, Ae as postReceivablesIdMarkAsPartiallyPaid, je as postReceivablesIdMarkAsUncollectible, Me as postReceivablesIdSend, Ne as postTags, Pe as putPayablesIdLineItems, Fe as putReceivablesIdLineItems, Yn as putTransactionsValidationsMutation, n as registerQueryClient, r as removeInactiveFromAllClients, i as setAllClientsQueriesData, Xn as submitApplicationMutation, Zn as unlinkExternalBankAccountMutation, a as unregisterQueryClient, Qn as updateApplicationMutation, $n as updateBankAccountMutation, Ie as updateDepartment, er as updateExternalBankAccountMutation, Le as updateLocation, Re as updateUser, Tr as useAcceptWidgetDisclosures, gr as useAllBankAccountsQuery, _r as useAllExternalBankAccountsQuery, yr as useAllLedgerAccountsQuery, vr as useAllMerchantCategoryGroupsQuery, Sr as useAllOrganizationRolesQuery, wr as useAllOrganizationUsersQuery, hr as useAutoFetchNextPage, ir as useCurrentUserQuery, Er as useDisclosuresQuery, u as useEmbedApi, lr as useGetUserDataQuery, br as useLedgerAccountsQuery, xr as usePaymentTermsQuery, Cr as useRolePermissionsQueries, ur as useUpsertUserDataMutation, tr as validateExternalBankAccountMutation, nr as verifyDebitCardMutation, rr as withAuthEpoch };
@@ -0,0 +1,7 @@
1
+ import { hasApiStatus as e } from "./apiErrorStatus.js";
2
+ //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/isApiConflictError.js
3
+ function t(t) {
4
+ return e(t, 409);
5
+ }
6
+ //#endregion
7
+ export { t as isApiConflictError };
@@ -0,0 +1,7 @@
1
+ import { hasApiStatus as e } from "./apiErrorStatus.js";
2
+ //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/isApiUnprocessableError.js
3
+ function t(t) {
4
+ return e(t, 422);
5
+ }
6
+ //#endregion
7
+ export { t as isApiUnprocessableError };