@tesouro/embedded-components-react 0.3.52 → 0.3.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -44
- package/dist/index.css +0 -6
- package/dist/index.d.ts +79 -5
- package/dist/index.js +1 -1
- package/dist/lib/CardDetailsWidget.d.ts +61 -1
- package/dist/lib/CardDetailsWidget.js +1 -1
- package/dist/lib/CreditCardsWidget.d.ts +78 -4
- package/dist/lib/DebitCardsWidget.d.ts +78 -4
- package/dist/lib/WidgetSuite.d.ts +78 -4
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index.js +7 -4
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index2.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index3.js +43 -6
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index4.js +40 -14
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index5.js +5 -26
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +32 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index9.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index5.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js +17 -160
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index7.js +107 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index8.js +188 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/index.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/ActivateCardPanel.js +137 -8
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/ActivateCardSuccessView.js +27 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/FieldError.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/labels.js +55 -0
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/validation.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +37 -36
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +22 -20
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/isApiConflictError.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/isApiUnprocessableError.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +246 -225
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +170 -134
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +27 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/PinField.js +0 -5
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/labels.js
|
|
2
|
+
var e = {
|
|
3
|
+
header: {
|
|
4
|
+
title: "Activate Card",
|
|
5
|
+
closeAriaLabel: "Close activate card"
|
|
6
|
+
},
|
|
7
|
+
cardFace: { bankLogoAlt: "Bank logo" },
|
|
8
|
+
fields: {
|
|
9
|
+
expirationDate: "Expiration date",
|
|
10
|
+
expirationDatePlaceholder: "MM/YY",
|
|
11
|
+
securityCode: "Security code (CVV2)",
|
|
12
|
+
securityCodePlaceholder: "3 digits",
|
|
13
|
+
securityCodeInfoAriaLabel: "What is the security code?",
|
|
14
|
+
securityCodeInfo: "The CVV2 is the 3-digit security code printed on your card — usually near the signature strip on the back. It proves you have the physical card in hand."
|
|
15
|
+
},
|
|
16
|
+
validation: {
|
|
17
|
+
impossibleMonth: "Enter a month between 01 and 12.",
|
|
18
|
+
pastExpiration: "That expiration date has already passed.",
|
|
19
|
+
verificationRejected: "Those details don't match this card. Check the expiration date and security code printed on it, then try again."
|
|
20
|
+
},
|
|
21
|
+
status: {
|
|
22
|
+
submit: "Activate card",
|
|
23
|
+
submittingAriaLabel: "Activating card",
|
|
24
|
+
successTitle: "Card activated",
|
|
25
|
+
successDescription: "This card is ready to use.",
|
|
26
|
+
done: "Done",
|
|
27
|
+
errorDescription: "We couldn't activate this card. Check the details and try again."
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
function t(t) {
|
|
31
|
+
return {
|
|
32
|
+
header: {
|
|
33
|
+
...e.header,
|
|
34
|
+
...t?.header
|
|
35
|
+
},
|
|
36
|
+
cardFace: {
|
|
37
|
+
...e.cardFace,
|
|
38
|
+
...t?.cardFace
|
|
39
|
+
},
|
|
40
|
+
fields: {
|
|
41
|
+
...e.fields,
|
|
42
|
+
...t?.fields
|
|
43
|
+
},
|
|
44
|
+
validation: {
|
|
45
|
+
...e.validation,
|
|
46
|
+
...t?.validation
|
|
47
|
+
},
|
|
48
|
+
status: {
|
|
49
|
+
...e.status,
|
|
50
|
+
...t?.status
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
export { e as ACTIVATE_CARD_PANEL_LABELS_EN, t as resolveActivateCardPanelLabels };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/validation.js
|
|
2
|
+
var e = {
|
|
3
|
+
expirationDate: "",
|
|
4
|
+
securityCode: ""
|
|
5
|
+
}, t = {
|
|
6
|
+
ImpossibleMonth: "impossibleMonth",
|
|
7
|
+
PastExpiration: "pastExpiration"
|
|
8
|
+
}, n = { VerificationRejected: "verificationRejected" }, r = 4;
|
|
9
|
+
function i(e, t) {
|
|
10
|
+
return e.replace(/\D/g, "").slice(0, t);
|
|
11
|
+
}
|
|
12
|
+
function a(e) {
|
|
13
|
+
let t = e.replace(/\D/g, "");
|
|
14
|
+
return t.length > 0 && Number(t[0]) > 1 && (t = `0${t}`), t = t.slice(0, r), t.length <= 2 ? t : `${t.slice(0, 2)}/${t.slice(2)}`;
|
|
15
|
+
}
|
|
16
|
+
function o(e) {
|
|
17
|
+
return e.replace(/\D/g, "").slice(0, r);
|
|
18
|
+
}
|
|
19
|
+
function s(e) {
|
|
20
|
+
let t = o(e);
|
|
21
|
+
if (t.length < 2) return !0;
|
|
22
|
+
let n = Number(t.slice(0, 2));
|
|
23
|
+
return n >= 1 && n <= 12;
|
|
24
|
+
}
|
|
25
|
+
function c(e) {
|
|
26
|
+
return o(e).length === r;
|
|
27
|
+
}
|
|
28
|
+
function l(e, t = /* @__PURE__ */ new Date()) {
|
|
29
|
+
if (!c(e) || !s(e)) return !1;
|
|
30
|
+
let n = o(e), r = Number(n.slice(0, 2)), i = 2e3 + Number(n.slice(2, 4)), a = t.getFullYear(), l = t.getMonth() + 1;
|
|
31
|
+
return i < a || i === a && r < l;
|
|
32
|
+
}
|
|
33
|
+
function u(e, t = /* @__PURE__ */ new Date()) {
|
|
34
|
+
return c(e) && s(e) && !l(e, t);
|
|
35
|
+
}
|
|
36
|
+
function d(e) {
|
|
37
|
+
return (/* @__PURE__ */ RegExp("^\\d{3,4}$")).test(e);
|
|
38
|
+
}
|
|
39
|
+
function f(e, n = /* @__PURE__ */ new Date()) {
|
|
40
|
+
let r = {};
|
|
41
|
+
return s(e.expirationDate) ? l(e.expirationDate, n) && (r.expirationDate = t.PastExpiration) : r.expirationDate = t.ImpossibleMonth, {
|
|
42
|
+
errors: r,
|
|
43
|
+
isValid: u(e.expirationDate, n) && d(e.securityCode)
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
export { t as ActivateCardFieldError, n as ActivateCardFormError, e as EMPTY_ACTIVATE_CARD_FORM_VALUES, i as formatDigitsInput, a as formatExpirationDateInput, c as isExpirationDateComplete, l as isExpirationDateExpired, u as isExpirationDateValid, s as isExpirationMonthPossible, d as isSecurityCodeValid, f as validateActivateCardForm };
|
|
@@ -11,15 +11,15 @@ import { CardsList as i } from "../../ui/dist/lib/CardsList/CardsList.js";
|
|
|
11
11
|
import { CardsListDetailsSheet as a } from "../../ui/dist/lib/CardsList/CardsListDetailsSheet.js";
|
|
12
12
|
import "../../ui/dist/index.js";
|
|
13
13
|
import { useCardsWidget as o } from "./index8.js";
|
|
14
|
-
import { CardDetailsWidget as s } from "../../../card-details-widget/feature/dist/
|
|
14
|
+
import { CardDetailsWidget as s } from "../../../card-details-widget/feature/dist/index8.js";
|
|
15
15
|
import "../../../card-details-widget/feature/dist/index.js";
|
|
16
16
|
import { CreateCardWidget as c } from "../../../create-card-widget/feature/dist/index8.js";
|
|
17
17
|
import "../../../create-card-widget/feature/dist/index.js";
|
|
18
18
|
import { useCallback as l, useMemo as u, useState as d } from "react";
|
|
19
19
|
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
20
20
|
//#region ../../libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js
|
|
21
|
-
function h({ cardProgram: e, pagination: t, defaultPagination: h, onPaginationChange: g, labels: _, featureLabels: v, selectedCardId: y, defaultSelectedCardId: b, onSelectedCardIdChange: x, cardDetailsLabels: S, cardDetailsFeatureLabels: C,
|
|
22
|
-
let { selectedCardId:
|
|
21
|
+
function h({ cardProgram: e, pagination: t, defaultPagination: h, onPaginationChange: g, labels: _, featureLabels: v, selectedCardId: y, defaultSelectedCardId: b, onSelectedCardIdChange: x, cardDetailsLabels: S, cardDetailsFeatureLabels: C, cardDetailsActivateLabels: w, bankLogoSrc: T, bankLogoAlt: E, cardArtSrc: D, createCardLabels: O, createCardFeatureLabels: k, onCreateCard: A, onActivateCard: j }) {
|
|
22
|
+
let { selectedCardId: M, onSelectCard: N, onCreateCardClick: P, canCreateCard: F, canReadCards: I, ...L } = o({
|
|
23
23
|
cardProgram: e,
|
|
24
24
|
pagination: t,
|
|
25
25
|
defaultPagination: h,
|
|
@@ -28,49 +28,50 @@ function h({ cardProgram: e, pagination: t, defaultPagination: h, onPaginationCh
|
|
|
28
28
|
selectedCardId: y,
|
|
29
29
|
defaultSelectedCardId: b,
|
|
30
30
|
onSelectedCardIdChange: x,
|
|
31
|
-
onCreateCard:
|
|
32
|
-
onActivateCard:
|
|
33
|
-
cardArtSrc:
|
|
34
|
-
}),
|
|
35
|
-
|
|
36
|
-
}, [
|
|
37
|
-
|
|
38
|
-
}, [
|
|
39
|
-
|
|
40
|
-
}, [
|
|
41
|
-
|
|
42
|
-
let
|
|
31
|
+
onCreateCard: A,
|
|
32
|
+
onActivateCard: j,
|
|
33
|
+
cardArtSrc: D
|
|
34
|
+
}), R = u(() => r(_), [_]), [z, B] = d(!1), [V, H] = d(0), [U, W] = d(M), [G, K] = d(null), q = l(() => {
|
|
35
|
+
M !== null && N(null), H((e) => e + 1), B(!0);
|
|
36
|
+
}, [M, N]), J = l(() => {
|
|
37
|
+
B(!1), M !== null && N(null);
|
|
38
|
+
}, [M, N]), Y = l((e) => {
|
|
39
|
+
B(!1), N(e);
|
|
40
|
+
}, [N]), X = e === "debit" && !!D && !!F && P === void 0, Z = z && M === null && X;
|
|
41
|
+
z && (M !== null || !X) && B(!1), Z ? G !== "create" && K("create") : M !== null && (G !== "details" && K("details"), M !== U && W(M));
|
|
42
|
+
let Q = G === "create", $ = M !== null || Z;
|
|
43
43
|
return /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(i, {
|
|
44
|
-
...
|
|
45
|
-
canCreateCard:
|
|
46
|
-
onCreateCardClick:
|
|
47
|
-
labels:
|
|
44
|
+
...L,
|
|
45
|
+
canCreateCard: F,
|
|
46
|
+
onCreateCardClick: P ?? q,
|
|
47
|
+
labels: R,
|
|
48
48
|
testIds: {
|
|
49
49
|
root: n.list,
|
|
50
50
|
row: { cardFaceSwatch: { root: n.cardFaceSwatch } }
|
|
51
51
|
}
|
|
52
52
|
}), /* @__PURE__ */ p(a, {
|
|
53
|
-
isOpen:
|
|
54
|
-
labels:
|
|
55
|
-
contentClassName:
|
|
56
|
-
onClose:
|
|
57
|
-
children:
|
|
58
|
-
cardArtSrc:
|
|
59
|
-
labels:
|
|
60
|
-
featureLabels:
|
|
61
|
-
onClose:
|
|
62
|
-
onCancel:
|
|
63
|
-
onViewCard:
|
|
53
|
+
isOpen: $,
|
|
54
|
+
labels: Q ? R.createSheet : R.detailsSheet,
|
|
55
|
+
contentClassName: Q ? "ttw:overflow-hidden ttw:p-0 ttw:min-h-0" : void 0,
|
|
56
|
+
onClose: J,
|
|
57
|
+
children: Q && X && D ? /* @__PURE__ */ p(c, {
|
|
58
|
+
cardArtSrc: D,
|
|
59
|
+
labels: O,
|
|
60
|
+
featureLabels: k,
|
|
61
|
+
onClose: J,
|
|
62
|
+
onCancel: J,
|
|
63
|
+
onViewCard: I ? Y : void 0,
|
|
64
64
|
className: "ttw:min-h-0 ttw:flex-1"
|
|
65
|
-
},
|
|
66
|
-
cardId:
|
|
65
|
+
}, V) : U === null ? null : /* @__PURE__ */ p(s, {
|
|
66
|
+
cardId: U,
|
|
67
67
|
cardProgram: e,
|
|
68
68
|
labels: S,
|
|
69
|
+
activateLabels: w,
|
|
69
70
|
featureLabels: C,
|
|
70
|
-
bankLogoSrc:
|
|
71
|
-
bankLogoAlt:
|
|
72
|
-
onClose:
|
|
73
|
-
},
|
|
71
|
+
bankLogoSrc: T,
|
|
72
|
+
bankLogoAlt: E,
|
|
73
|
+
onClose: J
|
|
74
|
+
}, U)
|
|
74
75
|
})] });
|
|
75
76
|
}
|
|
76
77
|
function g({ baseUrl: n, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: m, providerLabels: g, ..._ }) {
|
|
@@ -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 {
|
|
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
|
|
14
|
-
import { useCurrentUserQuery as
|
|
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 {
|
|
17
|
-
import {
|
|
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
|
|
20
|
-
import { useUpsertUserDataMutation as
|
|
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
|
|
23
|
-
import { getAllPagesNextPageParam as
|
|
24
|
-
import { useAllBankAccountsQuery as
|
|
25
|
-
import { useAllExternalBankAccountsQuery as
|
|
26
|
-
import { useAllMerchantCategoryGroupsQuery as
|
|
27
|
-
import { useAllLedgerAccountsQuery as
|
|
28
|
-
import { usePaymentTermsQuery as
|
|
29
|
-
import { useAllOrganizationRolesQuery as
|
|
30
|
-
import { useRolePermissionsQueries as
|
|
31
|
-
import { useAllOrganizationUsersQuery as
|
|
32
|
-
import { useAcceptWidgetDisclosures as
|
|
33
|
-
import { useDisclosuresQuery as
|
|
34
|
-
export { l as EmbedApiProvider,
|
|
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/isApiUnprocessableError.js
|
|
3
|
+
function t(t) {
|
|
4
|
+
return e(t, 422);
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { t as isApiUnprocessableError };
|