@tesouro/embedded-components-react 0.5.128 → 0.5.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fixtures/index.d.ts +245 -0
- package/dist/fixtures/index.js +2 -0
- package/dist/index.d.ts +102 -1
- package/dist/index.js +50 -48
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +20 -30
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/scopes.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/withAuthEpoch.js +27 -9
- package/dist/libs/tesouro-embedded-components-react/shared/data-access-mocks/dist/lib/fixtures.js +133 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index2.js +1 -1
- package/dist/packages/tesouro-embedded-components-react/src/scopes.js +3 -0
- package/dist/scopes.d.ts +32 -0
- package/package.json +11 -2
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Output model for address information in responses.
|
|
3
|
+
*/
|
|
4
|
+
type AddressOutput = {
|
|
5
|
+
/**
|
|
6
|
+
* The first line of the address.
|
|
7
|
+
*/
|
|
8
|
+
address1?: null | string;
|
|
9
|
+
/**
|
|
10
|
+
* The second line of the address, if applicable.
|
|
11
|
+
*/
|
|
12
|
+
address2?: null | string;
|
|
13
|
+
/**
|
|
14
|
+
* The third line of the address, if applicable.
|
|
15
|
+
*/
|
|
16
|
+
address3?: null | string;
|
|
17
|
+
/**
|
|
18
|
+
* City, town, or village.
|
|
19
|
+
*/
|
|
20
|
+
city?: null | string;
|
|
21
|
+
countryCode?: null | CountryCode;
|
|
22
|
+
/**
|
|
23
|
+
* Postal or ZIP code.
|
|
24
|
+
*/
|
|
25
|
+
postalCode?: null | string;
|
|
26
|
+
/**
|
|
27
|
+
* State or province.
|
|
28
|
+
*/
|
|
29
|
+
state?: null | string;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Output model representing a monetary amount in minor units alongside its ISO 4217 currency.
|
|
33
|
+
*/
|
|
34
|
+
type AmountOutput = {
|
|
35
|
+
/**
|
|
36
|
+
* The ISO 4217 three-letter currency code (e.g. `"USD"`).
|
|
37
|
+
*/
|
|
38
|
+
currencyCode: string;
|
|
39
|
+
/**
|
|
40
|
+
* The monetary value in the currency's minor units (e.g. cents for USD).
|
|
41
|
+
* For example, USD $12.34 is represented as `1234`.
|
|
42
|
+
*/
|
|
43
|
+
value: number | string;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* The card network (brand) an issued card runs on, such as Visa or Mastercard.
|
|
47
|
+
*/
|
|
48
|
+
type CardBrand = 'UNKNOWN' | 'VISA' | 'MASTERCARD' | 'DISCOVER' | 'AMERICAN_EXPRESS';
|
|
49
|
+
type CountryCode = 'AFG' | 'ALB' | 'DZA' | 'ASM' | 'ALA' | 'AND' | 'AGO' | 'AIA' | 'ATA' | 'ATG' | 'ARG' | 'ARM' | 'ABW' | 'AUS' | 'AUT' | 'AZE' | 'BHS' | 'BHR' | 'BGD' | 'BRB' | 'BLR' | 'BEL' | 'BLZ' | 'BEN' | 'BES' | 'BMU' | 'BTN' | 'BOL' | 'BIH' | 'BWA' | 'BVT' | 'BRA' | 'IOT' | 'BRN' | 'BGR' | 'BFA' | 'BDI' | 'CPV' | 'KHM' | 'CMR' | 'CAN' | 'CYM' | 'CAF' | 'TCD' | 'CHL' | 'CHN' | 'CXR' | 'CCK' | 'COL' | 'COM' | 'COD' | 'COG' | 'CIV' | 'COK' | 'CRI' | 'HRV' | 'CUB' | 'CUW' | 'CYP' | 'CZE' | 'DNK' | 'DJI' | 'DMA' | 'DOM' | 'ECU' | 'EGY' | 'SLV' | 'GNQ' | 'ERI' | 'EST' | 'SWZ' | 'ETH' | 'FLK' | 'FRO' | 'FJI' | 'FIN' | 'FRA' | 'GUF' | 'PYF' | 'ATF' | 'GAB' | 'GMB' | 'GEO' | 'DEU' | 'GHA' | 'GIB' | 'GRC' | 'GRL' | 'GRD' | 'GLP' | 'GUM' | 'GTM' | 'GGY' | 'GIN' | 'GNB' | 'GUY' | 'HTI' | 'HMD' | 'HND' | 'HKG' | 'HUN' | 'ISL' | 'IND' | 'IDN' | 'IRL' | 'IRN' | 'IRQ' | 'IMN' | 'ISR' | 'ITA' | 'JAM' | 'JPN' | 'JEY' | 'JOR' | 'KAZ' | 'KEN' | 'KIR' | 'KOR' | 'KWT' | 'KGZ' | 'LAO' | 'LVA' | 'LBN' | 'LSO' | 'LBR' | 'LBY' | 'LIE' | 'LTU' | 'LUX' | 'MDG' | 'MWI' | 'MYS' | 'MDV' | 'MLI' | 'MLT' | 'MHL' | 'MTQ' | 'MRT' | 'MUS' | 'MYT' | 'MEX' | 'FSM' | 'MDA' | 'MCO' | 'MNG' | 'MNE' | 'MSR' | 'MAR' | 'MOZ' | 'MMR' | 'NAM' | 'NRU' | 'NPL' | 'NLD' | 'NCL' | 'NZL' | 'NIC' | 'NER' | 'NGA' | 'NIU' | 'NFK' | 'MAC' | 'MKD' | 'MNP' | 'NOR' | 'OMN' | 'PAK' | 'PLW' | 'PSE' | 'PAN' | 'PNG' | 'PRY' | 'PER' | 'PHL' | 'PCN' | 'POL' | 'PRT' | 'PRI' | 'PRK' | 'QAT' | 'REU' | 'ROU' | 'RUS' | 'RWA' | 'BLM' | 'SHN' | 'KNA' | 'LCA' | 'MAF' | 'SPM' | 'VCT' | 'WSM' | 'SMR' | 'STP' | 'SAU' | 'SEN' | 'SRB' | 'SYC' | 'SLE' | 'SGP' | 'SXM' | 'SVK' | 'SVN' | 'SLB' | 'SOM' | 'ZAF' | 'SGS' | 'SSD' | 'ESP' | 'LKA' | 'SDN' | 'SUR' | 'SJM' | 'SWE' | 'SYR' | 'CHE' | 'TCA' | 'TWN' | 'TJK' | 'TZA' | 'THA' | 'TLS' | 'TGO' | 'TKL' | 'TON' | 'TTO' | 'TUN' | 'TUR' | 'TKM' | 'TUV' | 'UGA' | 'UKR' | 'UMI' | 'ARE' | 'GBR' | 'USA' | 'URY' | 'UZB' | 'VUT' | 'VAT' | 'VEN' | 'VIR' | 'VGB' | 'VNM' | 'WLF' | 'ESH' | 'YEM' | 'ZMB' | 'ZWE';
|
|
50
|
+
type CreditCardResponse = {
|
|
51
|
+
id: string;
|
|
52
|
+
cardLimit?: null | number | string;
|
|
53
|
+
cardStatus: CreditCardStatus;
|
|
54
|
+
cardType: CreditCardType;
|
|
55
|
+
cardholderName: string;
|
|
56
|
+
createdAt: string;
|
|
57
|
+
currentBalance: AmountOutput;
|
|
58
|
+
description?: null | string;
|
|
59
|
+
lastFourDigits: string;
|
|
60
|
+
nickname?: null | string;
|
|
61
|
+
updatedAt: string;
|
|
62
|
+
userId: string;
|
|
63
|
+
};
|
|
64
|
+
type CreditCardStatus = 'PENDING_ACTIVATION' | 'ACTIVE' | 'LOCKED' | 'CLOSED';
|
|
65
|
+
type CreditCardType = 'DIGITAL' | 'PHYSICAL';
|
|
66
|
+
type DebitCardCredentialsResponse = {
|
|
67
|
+
cvv: string;
|
|
68
|
+
expirationDate: string;
|
|
69
|
+
pan: string;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* The detail view of a single debit card. Extends the fields returned by the list endpoint
|
|
73
|
+
* (DebitCardResponse).
|
|
74
|
+
*/
|
|
75
|
+
type DebitCardDetailResponse = {
|
|
76
|
+
id: string;
|
|
77
|
+
bankAccountId: string;
|
|
78
|
+
/**
|
|
79
|
+
* The billing address the issuer holds for this card.
|
|
80
|
+
*/
|
|
81
|
+
billingAddress: AddressOutput;
|
|
82
|
+
cardBrand: CardBrand;
|
|
83
|
+
cardStatus: DebitCardStatus;
|
|
84
|
+
cardType: DebitCardType;
|
|
85
|
+
cardholderName: string;
|
|
86
|
+
createdAt: string;
|
|
87
|
+
description?: null | string;
|
|
88
|
+
expirationDate: string;
|
|
89
|
+
lastFourDigits: string;
|
|
90
|
+
/**
|
|
91
|
+
* The MCC groups allowed on this card.
|
|
92
|
+
*/
|
|
93
|
+
mccGroups: Array<MccGroupResponse>;
|
|
94
|
+
nickname?: null | string;
|
|
95
|
+
reference: string;
|
|
96
|
+
updatedAt: string;
|
|
97
|
+
userId: string;
|
|
98
|
+
/**
|
|
99
|
+
* Velocity controls scoped to this card. Single-purchase, daily, and monthly limits appear here as
|
|
100
|
+
* controls with a `TRANSACTION`, `DAY`, and `MONTH` window respectively.
|
|
101
|
+
*/
|
|
102
|
+
velocityControls: Array<VelocityControlResponse>;
|
|
103
|
+
};
|
|
104
|
+
type DebitCardStatus = 'PENDING_ACTIVATION' | 'ACTIVE' | 'LOCKED' | 'CLOSED';
|
|
105
|
+
type DebitCardType = 'DIGITAL' | 'PHYSICAL';
|
|
106
|
+
type DisclosureRequirement = 'NOT_REQUIRED' | 'REQUIRED';
|
|
107
|
+
/**
|
|
108
|
+
* A caller-managed Merchant Category Code group applied as an authorization control at the debit
|
|
109
|
+
* card issuer. Exactly one of Guid? MccGroupResponse.OrganizationId (organization-scoped) or
|
|
110
|
+
* Guid? MccGroupResponse.CardId (card-scoped) is set.
|
|
111
|
+
*/
|
|
112
|
+
type MccGroupResponse = {
|
|
113
|
+
id: string;
|
|
114
|
+
active: boolean;
|
|
115
|
+
cardId?: null | string;
|
|
116
|
+
createdAt: string;
|
|
117
|
+
mccs: Array<string>;
|
|
118
|
+
name: string;
|
|
119
|
+
organizationId?: null | string;
|
|
120
|
+
updatedAt: string;
|
|
121
|
+
};
|
|
122
|
+
type OrganizationType = 'BANK' | 'EMBEDDED' | 'PLATFORM' | 'TRANSACTOR' | 'VERTICAL_SOFTWARE_PROVIDER';
|
|
123
|
+
/**
|
|
124
|
+
* A velocity control. Exactly one of Guid? VelocityControlResponse.OrganizationId (organization-scoped) or
|
|
125
|
+
* Guid? VelocityControlResponse.CardId (card-scoped) is set.
|
|
126
|
+
*/
|
|
127
|
+
type VelocityControlResponse = {
|
|
128
|
+
id: string;
|
|
129
|
+
active: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Maximum spend within the window, in the currency's minor units (e.g. cents).
|
|
132
|
+
*/
|
|
133
|
+
amountLimit: number | string;
|
|
134
|
+
cardId?: null | string;
|
|
135
|
+
createdAt: string;
|
|
136
|
+
/**
|
|
137
|
+
* ISO 4217 currency code (e.g. `USD`).
|
|
138
|
+
*/
|
|
139
|
+
currencyCode: string;
|
|
140
|
+
mcc?: null | string;
|
|
141
|
+
mccGroup?: null | string;
|
|
142
|
+
name: string;
|
|
143
|
+
organizationId?: null | string;
|
|
144
|
+
updatedAt: string;
|
|
145
|
+
usageLimit?: null | number | string;
|
|
146
|
+
velocityWindow: VelocityWindow;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* The rolling period a velocity control's amount and usage limits are evaluated over.
|
|
150
|
+
* `TRANSACTION` applies the limit per-transaction and therefore carries no usage limit.
|
|
151
|
+
*/
|
|
152
|
+
type VelocityWindow = 'DAY' | 'LIFETIME' | 'MONTH' | 'TRANSACTION' | 'WEEK';
|
|
153
|
+
type WidgetInitResponse = {
|
|
154
|
+
bankName?: null | string;
|
|
155
|
+
/**
|
|
156
|
+
* Whether the user has accepted the version currently in force. False for a user who accepted an
|
|
157
|
+
* earlier version, which is what makes publishing a new one prompt them again, and false when
|
|
158
|
+
* there is no user yet. Prompt on this rather than on `status`, which cannot answer it: an
|
|
159
|
+
* already-active user can owe a re-acceptance while never being invited again.
|
|
160
|
+
*/
|
|
161
|
+
disclosuresAccepted?: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* Whether embedded banking requires this widget session's user to accept disclosures.
|
|
164
|
+
* Resolved through the organization hierarchy, nearest owner first: the organization asked about,
|
|
165
|
+
* then its VSP, then its parent platform, then the bank, defaulting to NOT_REQUIRED.
|
|
166
|
+
* Resolved for the user when there is one, which is the rung the acceptance writes against.
|
|
167
|
+
* It falls back to the organization owning the widget application in the two cases where the user
|
|
168
|
+
* cannot answer: before the user exists, which is what an onboarding widget needs, and when their
|
|
169
|
+
* organization's settings chain resolves nothing at all. In that second case the acceptance
|
|
170
|
+
* refuses rather than reporting the user clear, so a prompt shown here is never one the widget
|
|
171
|
+
* can silently fail to record.
|
|
172
|
+
*/
|
|
173
|
+
disclosuresRequired?: DisclosureRequirement;
|
|
174
|
+
organizationId?: null | string;
|
|
175
|
+
organizationTypes?: null | Array<OrganizationType>;
|
|
176
|
+
scopes: Array<string>;
|
|
177
|
+
status?: WidgetUserStatus;
|
|
178
|
+
userId?: null | string;
|
|
179
|
+
vspName?: null | string;
|
|
180
|
+
};
|
|
181
|
+
type WidgetUserStatus = 'ACTIVE' | 'INACTIVE' | 'INVITED' | 'NOT_FOUND';
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* A widget-init response that renders the widget rather than a gate.
|
|
185
|
+
*
|
|
186
|
+
* `disclosuresRequired`/`disclosuresAccepted` are set explicitly because
|
|
187
|
+
* `WidgetProvider` replaces its whole subtree with the disclosures gate when
|
|
188
|
+
* init says acceptance is owed: mock the data perfectly, get the init wrong, and
|
|
189
|
+
* every story renders the gate instead of the widget.
|
|
190
|
+
*
|
|
191
|
+
* **`scopes` is empty on purpose.** A widget gates its surfaces on the session's
|
|
192
|
+
* scopes, and which ones it needs is the consumer's business, so supply them at
|
|
193
|
+
* the composition site rather than inheriting a broad default that would hide a
|
|
194
|
+
* real scope-gating bug:
|
|
195
|
+
*
|
|
196
|
+
* ```ts
|
|
197
|
+
* handleGetApiWidgetGatewayInit({
|
|
198
|
+
* body: { ...A_WIDGET_INIT, scopes: [Scope.CreditCardReadOrg] },
|
|
199
|
+
* });
|
|
200
|
+
* ```
|
|
201
|
+
*/
|
|
202
|
+
declare const A_WIDGET_INIT: WidgetInitResponse;
|
|
203
|
+
/** An active physical credit card with a balance. */
|
|
204
|
+
declare const A_CREDIT_CARD: CreditCardResponse;
|
|
205
|
+
/**
|
|
206
|
+
* The same credit card before anyone has activated it.
|
|
207
|
+
*
|
|
208
|
+
* A second fixture for one operation rather than a speculative extra: the
|
|
209
|
+
* activation flow's whole subject is `PENDING_ACTIVATION`, which the happy-path
|
|
210
|
+
* fixture cannot express, and it is the *only* status that flow accepts.
|
|
211
|
+
*
|
|
212
|
+
* It lives here rather than being spread in a story so this override is type
|
|
213
|
+
* checked. Nothing checks a story file: `tsconfig.lib.json` excludes them by
|
|
214
|
+
* filename, `tsconfig.spec.json` does not include them, and the Storybook build
|
|
215
|
+
* only transpiles. A `cardStatus` the spec had renamed would compile there and
|
|
216
|
+
* quietly serve a state the API can no longer return.
|
|
217
|
+
*/
|
|
218
|
+
declare const A_PENDING_CREDIT_CARD: CreditCardResponse;
|
|
219
|
+
/**
|
|
220
|
+
* An active physical debit card, drawn on a bank account.
|
|
221
|
+
*
|
|
222
|
+
* Typed as the **detail** response, which is the richer of the two shapes: it
|
|
223
|
+
* carries the billing address, MCC groups and velocity controls that
|
|
224
|
+
* `GET /debit-cards/{id}` gained and that `GET /debit-cards` does not return.
|
|
225
|
+
* One fixture serves both, because a detail response satisfies the list shape
|
|
226
|
+
* structurally.
|
|
227
|
+
*
|
|
228
|
+
* The three detail-only fields render nothing today — `CardDetailsWidget` does
|
|
229
|
+
* not pass them down yet — so they are here to satisfy the contract rather than
|
|
230
|
+
* to be shown, and are deliberately unremarkable.
|
|
231
|
+
*/
|
|
232
|
+
declare const A_DEBIT_CARD: DebitCardDetailResponse;
|
|
233
|
+
/**
|
|
234
|
+
* What {@link A_DEBIT_CARD} reveals.
|
|
235
|
+
*
|
|
236
|
+
* The PAN is the Visa test number every payments toolchain recognises as
|
|
237
|
+
* synthetic, which matters more here than in the other fixtures: these ship to a
|
|
238
|
+
* public storybook, and a plausible-looking card number is the one fixture value
|
|
239
|
+
* a reader might mistake for a real one.
|
|
240
|
+
*/
|
|
241
|
+
declare const A_DEBIT_CARD_CREDENTIALS: DebitCardCredentialsResponse;
|
|
242
|
+
/** Debit counterpart of {@link A_PENDING_CREDIT_CARD}, and typed for the same reason. */
|
|
243
|
+
declare const A_PENDING_DEBIT_CARD: DebitCardDetailResponse;
|
|
244
|
+
|
|
245
|
+
export { A_CREDIT_CARD, A_DEBIT_CARD, A_DEBIT_CARD_CREDENTIALS, A_PENDING_CREDIT_CARD, A_PENDING_DEBIT_CARD, A_WIDGET_INIT };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { A_CREDIT_CARD as e, A_DEBIT_CARD as t, A_DEBIT_CARD_CREDENTIALS as n, A_PENDING_CREDIT_CARD as r, A_PENDING_DEBIT_CARD as i, A_WIDGET_INIT as a } from "../libs/tesouro-embedded-components-react/shared/data-access-mocks/dist/lib/fixtures.js";
|
|
2
|
+
export { e as A_CREDIT_CARD, t as A_DEBIT_CARD, n as A_DEBIT_CARD_CREDENTIALS, r as A_PENDING_CREDIT_CARD, i as A_PENDING_DEBIT_CARD, a as A_WIDGET_INIT };
|
package/dist/index.d.ts
CHANGED
|
@@ -390,6 +390,107 @@ type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
|
|
|
390
390
|
*/
|
|
391
391
|
declare function cloneEmbeddedClient(source: EmbeddedClient): EmbeddedClient;
|
|
392
392
|
|
|
393
|
+
declare const Scope: {
|
|
394
|
+
readonly AcceptorApplicationRead: "acceptor:application:read";
|
|
395
|
+
readonly AcceptorApplicationSecondaryapproval: "acceptor:application:secondaryapproval";
|
|
396
|
+
readonly AcceptorApplicationWrite: "acceptor:application:write";
|
|
397
|
+
readonly AccountingConfigReadOrg: "accounting_config:read:org";
|
|
398
|
+
readonly AccountingConfigWriteOrg: "accounting_config:write:org";
|
|
399
|
+
readonly AcquiringReportRead: "acquiring:report:read";
|
|
400
|
+
readonly ApprovalPolicyReadOrg: "approval_policy:read:org";
|
|
401
|
+
readonly ApprovalPolicyWriteOrg: "approval_policy:write:org";
|
|
402
|
+
readonly ApprovalRequestCreateOrg: "approval_request:create:org";
|
|
403
|
+
readonly ApprovalRequestDeleteOrg: "approval_request:delete:org";
|
|
404
|
+
readonly ApprovalRequestReadOrg: "approval_request:read:org";
|
|
405
|
+
readonly ApprovalRequestUpdateOrg: "approval_request:update:org";
|
|
406
|
+
readonly AuthorizationControlReadOrg: "authorization_control:read:org";
|
|
407
|
+
readonly AuthorizationControlWriteOrg: "authorization_control:write:org";
|
|
408
|
+
readonly BankAccountApplicationReadOrg: "bank_account_application:read:org";
|
|
409
|
+
readonly BankAccountApplicationWriteOrg: "bank_account_application:write:org";
|
|
410
|
+
readonly BankAccountReadOrg: "bank_account:read:org";
|
|
411
|
+
readonly BankAccountWriteOrg: "bank_account:write:org";
|
|
412
|
+
readonly BeneficialOwnerReadOrg: "beneficial_owner:read:org";
|
|
413
|
+
readonly CheckDepositWriteOrg: "check_deposit:write:org";
|
|
414
|
+
readonly CommentReadOrg: "comment:read:org";
|
|
415
|
+
readonly CommentWriteOrg: "comment:write:org";
|
|
416
|
+
readonly CounterpartReadOrg: "counterpart:read:org";
|
|
417
|
+
readonly CounterpartWriteOrg: "counterpart:write:org";
|
|
418
|
+
readonly CreditCardApplicationReadOrg: "credit_card_application:read:org";
|
|
419
|
+
readonly CreditCardApplicationWriteOrg: "credit_card_application:write:org";
|
|
420
|
+
readonly CreditCardActivateOrg: "credit_card:activate:org";
|
|
421
|
+
readonly CreditCardIssueOrg: "credit_card:issue:org";
|
|
422
|
+
readonly CreditCardReadOrg: "credit_card:read:org";
|
|
423
|
+
readonly DebitCardActivateOrg: "debit_card:activate:org";
|
|
424
|
+
readonly DebitCardCloseOrg: "debit_card:close:org";
|
|
425
|
+
readonly DebitCardIssueOrg: "debit_card:issue:org";
|
|
426
|
+
readonly DebitCardLockOrg: "debit_card:lock:org";
|
|
427
|
+
readonly DebitCardReadOrg: "debit_card:read:org";
|
|
428
|
+
readonly DeveloperPortal: "developer_portal";
|
|
429
|
+
readonly DisputeRead: "dispute:read";
|
|
430
|
+
readonly DisputeWrite: "dispute:write";
|
|
431
|
+
readonly Email: "email";
|
|
432
|
+
readonly ExpenseApproveOrg: "expense:approve:org";
|
|
433
|
+
readonly ExpenseReadOrg: "expense:read:org";
|
|
434
|
+
readonly ExpenseReadSelf: "expense:read:self";
|
|
435
|
+
readonly ExpenseWriteOrg: "expense:write:org";
|
|
436
|
+
readonly ExpenseWriteSelf: "expense:write:self";
|
|
437
|
+
readonly ExportReadOrg: "export:read:org";
|
|
438
|
+
readonly ExportWriteOrg: "export:write:org";
|
|
439
|
+
readonly ExternalBankAccountMicroDepositOrg: "external_bank_account:micro_deposit:org";
|
|
440
|
+
readonly ExternalBankAccountReadOrg: "external_bank_account:read:org";
|
|
441
|
+
readonly ExternalBankAccountSetVerificationOrg: "external_bank_account:set_verification:org";
|
|
442
|
+
readonly ExternalBankAccountWriteOrg: "external_bank_account:write:org";
|
|
443
|
+
readonly InvoiceReadOrg: "invoice:read:org";
|
|
444
|
+
readonly InvoiceWriteOrg: "invoice:write:org";
|
|
445
|
+
readonly MailboxReadOrg: "mailbox:read:org";
|
|
446
|
+
readonly MailboxWriteOrg: "mailbox:write:org";
|
|
447
|
+
readonly NotificationSubscriptionRead: "notification:subscription:read";
|
|
448
|
+
readonly NotificationSubscriptionWrite: "notification:subscription:write";
|
|
449
|
+
readonly OcrTaskReadOrg: "ocr_task:read:org";
|
|
450
|
+
readonly OcrTaskWriteOrg: "ocr_task:write:org";
|
|
451
|
+
readonly OfflineAccess: "offline_access";
|
|
452
|
+
readonly OidcAppManage: "oidc:app:manage";
|
|
453
|
+
readonly OidcAppRead: "oidc:app:read";
|
|
454
|
+
readonly OidcAppWrite: "oidc:app:write";
|
|
455
|
+
readonly Openid: "openid";
|
|
456
|
+
readonly OrgWriteAll: "org:write:all";
|
|
457
|
+
readonly OrganizationSettingsReadOrg: "organization_settings:read:org";
|
|
458
|
+
readonly OrganizationSettingsWriteOrg: "organization_settings:write:org";
|
|
459
|
+
readonly OrganizationReadOrg: "organization:read:org";
|
|
460
|
+
readonly OrganizationWriteOrg: "organization:write:org";
|
|
461
|
+
readonly PartnerPortal: "partner_portal";
|
|
462
|
+
readonly PayableApproveOrg: "payable:approve:org";
|
|
463
|
+
readonly PayablePayOrg: "payable:pay:org";
|
|
464
|
+
readonly PayableReadOrg: "payable:read:org";
|
|
465
|
+
readonly PayableWriteOrg: "payable:write:org";
|
|
466
|
+
readonly PaymentLinkWrite: "payment_link:write";
|
|
467
|
+
readonly PaymentProcessing: "payment_processing";
|
|
468
|
+
readonly PaymentRailAch: "payment_rail:ach";
|
|
469
|
+
readonly PaymentRailFednow: "payment_rail:fednow";
|
|
470
|
+
readonly PaymentRailRtp: "payment_rail:rtp";
|
|
471
|
+
readonly PaymentRecordReadOrg: "payment_record:read:org";
|
|
472
|
+
readonly PaymentRecordWriteOrg: "payment_record:write:org";
|
|
473
|
+
readonly PaymentCollectOrg: "payment:collect:org";
|
|
474
|
+
readonly ProductReadOrg: "product:read:org";
|
|
475
|
+
readonly ProductWriteOrg: "product:write:org";
|
|
476
|
+
readonly Profile: "profile";
|
|
477
|
+
readonly RoleReadOrg: "role:read:org";
|
|
478
|
+
readonly RoleWriteOrg: "role:write:org";
|
|
479
|
+
readonly TransferWriteOrg: "transfer:write:org";
|
|
480
|
+
readonly UnderwritingApplicationApprovalEscalation: "underwriting:application:approval:escalation";
|
|
481
|
+
readonly UnderwritingApplicationApprovalSecondary: "underwriting:application:approval:secondary";
|
|
482
|
+
readonly UnderwritingApplicationRead: "underwriting:application:read";
|
|
483
|
+
readonly UnderwritingApplicationWrite: "underwriting:application:write";
|
|
484
|
+
readonly UserProfileWriteAll: "user_profile:write:all";
|
|
485
|
+
readonly UserProfileWriteSelf: "user_profile:write:self";
|
|
486
|
+
readonly UserReadOrg: "user:read:org";
|
|
487
|
+
readonly UserReadSelf: "user:read:self";
|
|
488
|
+
readonly UserWriteAll: "user:write:all";
|
|
489
|
+
readonly UserWriteOrg: "user:write:org";
|
|
490
|
+
};
|
|
491
|
+
type Scope = (typeof Scope)[keyof typeof Scope];
|
|
492
|
+
declare function isScope(value: unknown): value is Scope;
|
|
493
|
+
|
|
393
494
|
interface LabelLabels {
|
|
394
495
|
/**
|
|
395
496
|
* How the field name and its requirement fragment compose. `{label}` is the
|
|
@@ -4948,5 +5049,5 @@ interface CheckAmountAndDetailScreenProps {
|
|
|
4948
5049
|
|
|
4949
5050
|
type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
|
|
4950
5051
|
|
|
4951
|
-
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, ReceivablesWidgetMonite as InvoicingWidget, LinkedAccountsWidget, MARKETING_WIDGET_LABELS_EN, MarketingBenefitIcon, MarketingWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, UploadReceiptWidget, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
|
|
5052
|
+
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, ReceivablesWidgetMonite as InvoicingWidget, LinkedAccountsWidget, MARKETING_WIDGET_LABELS_EN, MarketingBenefitIcon, MarketingWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, Scope, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, UploadReceiptWidget, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, isScope, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
|
|
4952
5053
|
export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$1 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, ReceivablesWidgetMoniteProps as InvoicingWidgetProps, LinkComponent, LinkComponentProps, FeatureLabels as LinkedAccountsWidgetFeatureLabels, Labels as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MarketingWidgetAppearance, MarketingWidgetBenefit, MarketingWidgetContent, MarketingWidgetHowItWorksStep, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceiptMatchSummary, ReceivableActionDialogLabels, ReceivableDetailsSheetLabelOverrides, ReceivableDetailsSheetLabels, ReceivableDocumentType, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivableSendDialogLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, ReceivablesWidgetTab, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$2 as SettingsWidgetFeatureLabels, Labels$2 as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, FeatureLabels$1 as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, UploadReceiptWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
|
package/dist/index.js
CHANGED
|
@@ -1,47 +1,48 @@
|
|
|
1
1
|
import { WIDGET_SUITE_LABELS_EN as e } from "./libs/tesouro-embedded-components-react/widget-suite/feature/dist/index4.js";
|
|
2
2
|
import { WIDGET_SUITE_DEFAULT_SECTIONS as t, WidgetSuiteSectionId as n } from "./libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js";
|
|
3
3
|
import { cloneEmbeddedClient as r } from "./libs/tesouro-embedded-components-react/shared/data-access/dist/lib/createEmbeddedClient.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
4
|
+
import { Scope as i, isScope as a } from "./libs/tesouro-embedded-components-react/shared/data-access/dist/lib/scopes.js";
|
|
5
|
+
import { UIFramework as o } from "./libs/tesouro-embedded-components-react/shared/ui/dist/lib/UIContext/UIContext.js";
|
|
6
|
+
import { registerDesignSystemEnsurer as s, registerUIRenderers as c } from "./libs/tesouro-embedded-components-react/shared/ui/dist/lib/UIContext/uiRendererRegistry.js";
|
|
7
|
+
import { ERROR_STATE_ID as l } from "./libs/tesouro-embedded-components-react/shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
8
|
+
import { Implementation as u } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/types.js";
|
|
9
|
+
import { getGlobalWidgetConfig as d, setGlobalWidgetConfig as f, updateGlobalWidgetConfig as p } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/globalStore.js";
|
|
10
|
+
import { getGlobalWidgetInitState as m, subscribeToGlobalWidgetInitState as h } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/widgetInitChannel.js";
|
|
11
|
+
import { RootWidgetProvider as g } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js";
|
|
12
|
+
import { WidgetTokenRefreshProvider as _ } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetTokenRefreshProvider.js";
|
|
13
|
+
import { useWidgetToken as v } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useWidgetToken.js";
|
|
14
|
+
import { RefreshingRootWidgetProvider as y } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RefreshingRootWidgetProvider.js";
|
|
15
|
+
import { useDisclosuresAcceptanceSurface as b, useOwnWidgetConfig as x, useRefetchWidget as S, useWidgetConfig as C, useWidgetError as w, useWidgetInitStaleForToken as T, useWidgetLoading as E } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
16
|
+
import { BankAccountsWidget as D } from "./libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js";
|
|
17
|
+
import { CounterpartsWidget as O } from "./libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js";
|
|
18
|
+
import { BillPayWidget as k } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js";
|
|
19
|
+
import { CardDetailsWidget as A } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js";
|
|
20
|
+
import { CreditCardsWidget as j } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index10.js";
|
|
21
|
+
import { DebitCardsWidget as M } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index11.js";
|
|
22
|
+
import { BALANCES_WIDGET_LABELS_EN as N } from "./libs/tesouro-embedded-components-react/balances-widget/ui/dist/lib/BalancesWidget/labels.js";
|
|
23
|
+
import { BalancesWidget as P } from "./libs/tesouro-embedded-components-react/balances-widget/feature/dist/index6.js";
|
|
24
|
+
import { INSIGHTS_FEATURE_LABELS_EN as F } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/index3.js";
|
|
25
|
+
import { INSIGHTS_WIDGET_LABELS_EN as I } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/labels.js";
|
|
26
|
+
import { SINGLE_INSIGHT_LABELS_EN as L } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/labels.js";
|
|
27
|
+
import { InsightsWidget as R } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/index12.js";
|
|
28
|
+
import { InvoicingWidget as z } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js";
|
|
29
|
+
import { ReceivablesWidget as B } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js";
|
|
30
|
+
import { SettingsSection as V } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index4.js";
|
|
31
|
+
import { UploadReceiptWidget as H } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index7.js";
|
|
32
|
+
import { ExpenseManagementWidget as U } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index13.js";
|
|
33
|
+
import { HELP_FAQ_EN as W } from "./libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index3.js";
|
|
34
|
+
import { SettingsWidget as G } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js";
|
|
35
|
+
import { DEFAULT_FEATURE_LABELS as K } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index3.js";
|
|
36
|
+
import { TRANSFERS_WIDGET_LABELS_EN as q } from "./libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js";
|
|
37
|
+
import { TransfersWidget as J } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index7.js";
|
|
38
|
+
import { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN as Y } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/labels.js";
|
|
39
|
+
import { AcceptDisclosuresWidget as X } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index5.js";
|
|
40
|
+
import { ADDITIONAL_OWNERS_LABELS_EN as Z } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js";
|
|
41
|
+
import { BUSINESS_DETAILS_LABELS_EN as Q } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js";
|
|
42
|
+
import { PERSONAL_DETAILS_LABELS_EN as $ } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js";
|
|
43
|
+
import { RESULT_LABELS_EN as ee } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js";
|
|
44
|
+
import { BankAccountOnboardingWidget as te } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js";
|
|
45
|
+
import { WidgetSuite as ne } from "./libs/tesouro-embedded-components-react/widget-suite/feature/dist/index16.js";
|
|
45
46
|
import "./lib/WidgetSuite.js";
|
|
46
47
|
import "./lib/AcceptDisclosuresWidget.js";
|
|
47
48
|
import "./lib/BankAccountsWidget.js";
|
|
@@ -55,18 +56,19 @@ import "./lib/UploadReceiptWidget.js";
|
|
|
55
56
|
import "./lib/BalancesWidget.js";
|
|
56
57
|
import "./lib/InsightsWidget.js";
|
|
57
58
|
import "./lib/InvoicingWidget.js";
|
|
58
|
-
import { LinkedAccountsWidget as
|
|
59
|
+
import { LinkedAccountsWidget as re } from "./libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index10.js";
|
|
59
60
|
import "./lib/LinkedAccountsWidget.js";
|
|
60
61
|
import "./lib/BankAccountOnboardingWidget.js";
|
|
61
|
-
import { MARKETING_WIDGET_LABELS_EN as
|
|
62
|
-
import { MarketingBenefitIcon as
|
|
63
|
-
import { MarketingWidget as
|
|
62
|
+
import { MARKETING_WIDGET_LABELS_EN as ie } from "./libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index2.js";
|
|
63
|
+
import { MarketingBenefitIcon as ae } from "./libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index3.js";
|
|
64
|
+
import { MarketingWidget as oe } from "./libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index4.js";
|
|
64
65
|
import "./lib/MarketingWidget.js";
|
|
65
|
-
import { ProductsWidget as
|
|
66
|
+
import { ProductsWidget as se } from "./libs/tesouro-embedded-components-react/products-widget/feature/dist/index8.js";
|
|
66
67
|
import "./lib/ProductsWidget.js";
|
|
67
68
|
import "./lib/ReceivablesWidget.js";
|
|
68
69
|
import "./lib/SettingsWidget.js";
|
|
69
70
|
import "./lib/TransfersWidget.js";
|
|
70
|
-
import { WidgetProvider as
|
|
71
|
+
import { WidgetProvider as ce } from "./lib/WidgetProviderPublic.js";
|
|
71
72
|
import "./lib/WidgetProvider.js";
|
|
72
|
-
|
|
73
|
+
import "./packages/tesouro-embedded-components-react/src/scopes.js";
|
|
74
|
+
export { Y as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, Z as ADDITIONAL_OWNERS_LABELS_EN, X as AcceptDisclosuresWidget, N as BALANCES_WIDGET_LABELS_EN, Q as BUSINESS_DETAILS_LABELS_EN, P as BalancesWidget, te as BankAccountOnboardingWidget, D as BankAccountsWidget, k as BillPayWidget, A as CardDetailsWidget, O as CounterpartsWidget, j as CreditCardsWidget, M as DebitCardsWidget, l as ERROR_STATE_ID, U as ExpenseManagementWidget, W as HELP_FAQ_EN, F as INSIGHTS_FEATURE_LABELS_EN, I as INSIGHTS_WIDGET_LABELS_EN, u as Implementation, R as InsightsWidget, z as InvoicingWidget, re as LinkedAccountsWidget, ie as MARKETING_WIDGET_LABELS_EN, ae as MarketingBenefitIcon, oe as MarketingWidget, $ as PERSONAL_DETAILS_LABELS_EN, se as ProductsWidget, ee as RESULT_LABELS_EN, B as ReceivablesWidget, y as RefreshingRootWidgetProvider, g as RootWidgetProvider, L as SINGLE_INSIGHT_LABELS_EN, i as Scope, V as SettingsSection, G as SettingsWidget, K as TRANSFERS_FEATURE_LABELS_EN, q as TRANSFERS_WIDGET_LABELS_EN, J as TransfersWidget, o as UIFramework, H as UploadReceiptWidget, t as WIDGET_SUITE_DEFAULT_SECTIONS, e as WIDGET_SUITE_LABELS_EN, ce as WidgetProvider, ne as WidgetSuite, n as WidgetSuiteSectionId, _ as WidgetTokenRefreshProvider, r as cloneEmbeddedClient, d as getGlobalWidgetConfig, m as getGlobalWidgetInitState, a as isScope, s as registerDesignSystemEnsurer, c as registerUIRenderers, f as setGlobalWidgetConfig, h as subscribeToGlobalWidgetInitState, p as updateGlobalWidgetConfig, b as useDisclosuresAcceptanceSurface, x as useOwnWidgetConfig, S as useRefetchWidget, C as useWidgetConfig, w as useWidgetError, T as useWidgetInitStaleForToken, E as useWidgetLoading, v as useWidgetToken };
|
|
@@ -24,18 +24,18 @@ import "./lib/isUserDataNotFoundError.js";
|
|
|
24
24
|
import { useGetUserDataQuery as wr } from "./lib/useGetUserDataQuery.js";
|
|
25
25
|
import { useUpsertUserDataMutation as Tr } from "./lib/useUpsertUserDataMutation.js";
|
|
26
26
|
import "./lib/rest/zod.gen.js";
|
|
27
|
-
import { Scope as Er } from "./lib/scopes.js";
|
|
28
|
-
import { getAllPagesNextPageParam as
|
|
29
|
-
import { useAllBankAccountsQuery as
|
|
30
|
-
import { useAllExternalBankAccountsQuery as
|
|
31
|
-
import { useAllMerchantCategoryGroupsQuery as
|
|
32
|
-
import { useAllLedgerAccountsQuery as
|
|
33
|
-
import { usePaymentTermsQuery as
|
|
34
|
-
import { useAllOrganizationRolesQuery as
|
|
35
|
-
import { useRolePermissionsQueries as
|
|
36
|
-
import { useAllOrganizationUsersQuery as
|
|
37
|
-
import { useAcceptWidgetDisclosures as
|
|
38
|
-
import { useDisclosuresQuery as
|
|
39
|
-
import { OnboardingSuppressionReason as
|
|
40
|
-
import { useOrganizationOnboardingSuppression as
|
|
41
|
-
export { pr as EmbedApiProvider,
|
|
27
|
+
import { Scope as Er, isScope as Dr } from "./lib/scopes.js";
|
|
28
|
+
import { getAllPagesNextPageParam as Or, getAllPagesNextPaginationTokenParam as kr, isAllPagesResolving as Ar, useAutoFetchNextPage as jr } from "./lib/allPages.js";
|
|
29
|
+
import { useAllBankAccountsQuery as Mr } from "./lib/bank-account/useAllBankAccountsQuery.js";
|
|
30
|
+
import { useAllExternalBankAccountsQuery as Nr } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
|
|
31
|
+
import { useAllMerchantCategoryGroupsQuery as Pr } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
|
|
32
|
+
import { useAllLedgerAccountsQuery as Fr, useLedgerAccountsQuery as Ir } from "./lib/reference-data/useLedgerAccountsQuery.js";
|
|
33
|
+
import { usePaymentTermsQuery as Lr } from "./lib/reference-data/usePaymentTermsQuery.js";
|
|
34
|
+
import { useAllOrganizationRolesQuery as Rr } from "./lib/role/useAllOrganizationRolesQuery.js";
|
|
35
|
+
import { useRolePermissionsQueries as zr } from "./lib/role/useRolePermissionsQueries.js";
|
|
36
|
+
import { useAllOrganizationUsersQuery as Br } from "./lib/user/useAllOrganizationUsersQuery.js";
|
|
37
|
+
import { useAcceptWidgetDisclosures as Vr } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
|
|
38
|
+
import { useDisclosuresQuery as Hr } from "./lib/disclosures/useDisclosuresQuery.js";
|
|
39
|
+
import { OnboardingSuppressionReason as Ur } from "./lib/onboardingSuppressionReason.js";
|
|
40
|
+
import { useOrganizationOnboardingSuppression as Wr } from "./lib/useOrganizationOnboardingSuppression.js";
|
|
41
|
+
export { pr as EmbedApiProvider, Ur as OnboardingSuppressionReason, Er as Scope, je as activateCreditCardMutation, Me as activateDebitCardMutation, tr as applicationStatusInvalidationKey, nr as applicationStatusQueryOptions, fr as attachTransportInterceptors, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, ir as cancelAllClients, ur as cloneEmbeddedClient, Ne as connectExternalBankAccountMutation, Pe as createAchMoneyMovementMutation, Fe as createApplicationMutation, Ie as createBankAccountMutation, Le as createBookTransferMutation, Re as createCheckDepositMutation, rr as createClientSecretInstaller, ze as createDebitCardMutation, r as createDepartment, dr as createEmbeddedClient, i as createLocation, a as createUser, Be as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, Ve as deleteApprovalPoliciesIdMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, He as deleteLedgerAccountsIdMutation, d as deleteMeasureUnitsId, f as deletePayablesId, p as deletePayablesIdFile, m as deleteProductsId, Ue as deleteReceiptsIdMutation, h as deleteReceivablesId, g as deleteTagsId, We as disableUserMutation, _ as downloadBankAccountTransactions, _r as fetchWidgetInit, Or as getAllPagesNextPageParam, kr as getAllPagesNextPaginationTokenParam, Ge as getAnalyticsPayablesOptions, Ke as getAnalyticsPayablesQueryKey, qe as getAnalyticsReceivablesOptions, v as getApplicationStatus, y as getApprovalPolicies, Je as getApprovalPoliciesOptions, Ye as getApprovalPoliciesQueryKey, b as getApprovalRequests, Xe as getApprovalRequestsOptions, Ze as getApprovalRequestsQueryKey, x as getBankAccountAccess, Qe as getBankAccountAccessQueryKey, $e as getBankAccountApplicationOptions, et as getBankAccountOptions, tt as getBankAccountQueryKey, nt as getBankAccountTransactionsOptions, rt as getBankAccountTransactionsQueryKey, it as getBankAccountTransfersOptions, at as getBankAccountTransfersQueryKey, ot as getBankAccountsQueryKey, S as getCounterparts, st as getCounterpartsIdAddressesOptions, ct as getCounterpartsIdAddressesQueryKey, lt as getCounterpartsIdBankAccountsOptions, ut as getCounterpartsIdBankAccountsQueryKey, dt as getCounterpartsIdOptions, ft as getCounterpartsIdQueryKey, pt as getCounterpartsOptions, mt as getCounterpartsQueryKey, ht as getCreditCardByIdOptions, gt as getCreditCardByIdQueryKey, _t as getCreditCardsOptions, vt as getCreditCardsQueryKey, yt as getDebitCardByIdOptions, bt as getDebitCardByIdQueryKey, xt as getDebitCardCredentialsOptions, St as getDebitCardsOptions, Ct as getDebitCardsQueryKey, C as getDepartment, wt as getDepartmentOptions, Tt as getDepartmentQueryKey, w as getDepositableBankAccounts, Et as getDepositableBankAccountsOptions, Dt as getDocumentsIdNextNumbersOptions, Ot as getDocumentsIdNextNumbersQueryKey, kt as getEntitiesIdSettingsOptions, At as getEntitiesIdSettingsQueryKey, jt as getEntitiesMeOptions, Mt as getEntityUsersMyEntityOptions, Nt as getEntityUsersMyEntityQueryKey, Pt as getEntityUsersOptions, T as getExternalBankAccountAccess, Ft as getExternalBankAccountAccessQueryKey, It as getExternalBankAccountsOptions, Lt as getExternalBankAccountsQueryKey, Rt as getLedgerAccountsQueryKey, E as getLocation, zt as getLocationOptions, Bt as getLocationQueryKey, Vt as getMeasureUnitsOptions, Ht as getMeasureUnitsQueryKey, Ut as getOrganizationOptions, D as getPayables, O as getPayablesId, k as getPayablesIdHistory, Wt as getPayablesIdHistoryOptions, Gt as getPayablesIdHistoryQueryKey, A as getPayablesIdLineItems, Kt as getPayablesIdLineItemsOptions, qt as getPayablesIdLineItemsQueryKey, Jt as getPayablesIdOptions, Yt as getPayablesIdQueryKey, Xt as getPayablesIdSuggestionsOptions, Zt as getPayablesOptions, Qt as getPayablesQueryKey, j 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, M as getReceivables, 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, N as getUsers, En as getUsersOptions, Dn as getUsersQueryKey, On as getVelocityControlsQueryKey, kn as grantBankAccountAccessMutation, An as grantExternalBankAccountAccessMutation, vr as hasAnyScope, ar as invalidateAllClients, Ar as isAllPagesResolving, br as isApiConflictError, xr as isApiForbiddenError, Sr as isApiNotFoundError, Cr as isApiUnprocessableError, Dr as isScope, jn as linkExternalBankAccountMutation, P as listDepartments, Mn as listDepartmentsOptions, Nn as listDepartmentsQueryKey, F as listLocations, Pn as listLocationsOptions, Fn as listLocationsQueryKey, I as listRoles, In as listRolesQueryKey, L as manageBankAccountAccess, Ln as manageDebitCardAccessMutation, hr as optionalOrganizationHeaders, gr as organizationHeaders, Rn as patchApprovalPoliciesIdMutation, R as patchCounterpartsId, z as patchCounterpartsIdAddressesId, B as patchCounterpartsIdBankAccountsId, V as patchEntitiesIdSettings, zn as patchEntitiesIdSettingsMutation, Bn as patchLedgerAccountsIdMutation, H as patchMeasureUnitsId, U as patchPayablesId, W as patchProductsId, Vn as patchReceiptsIdMutation, G as patchReceivablesId, K as patchTagsId, Hn as postApprovalPoliciesMutation, q as postApprovalRequestsIdApprove, J as postApprovalRequestsIdReject, Y as postCounterparts, X as postCounterpartsIdAddresses, Z as postCounterpartsIdBankAccounts, Q as postCounterpartsIdBankAccountsIdMakeDefault, Un as postLedgerAccountsMutation, $ as postMeasureUnits, ee as postPayables, te as postPayablesIdApprovePaymentOperation, ne as postPayablesIdAttachFile, re as postPayablesIdCancel, ie as postPayablesIdDuplicatesIdConfirm, ae as postPayablesIdDuplicatesIdDismiss, oe as postPayablesIdMarkAsPaid, se as postPayablesIdReject, ce as postPayablesIdReopen, le as postPayablesIdSchedulePayment, ue as postPayablesIdSubmitForApproval, de as postPayablesIdValidate, fe as postPayablesUploadFromFile, pe as postPaymentIntentsIdCancel, me as postProducts, he as postReceivables, ge as postReceivablesIdAccept, _e as postReceivablesIdCancel, ve as postReceivablesIdClone, ye as postReceivablesIdDecline, be as postReceivablesIdIssue, xe as postReceivablesIdMarkAsPaid, Se as postReceivablesIdMarkAsPartiallyPaid, Ce as postReceivablesIdMarkAsUncollectible, we as postReceivablesIdSend, Te as postTags, Ee as putEntitiesIdLogo, De as putPayablesIdLineItems, Wn as putTransactionsValidationsMutation, or as registerQueryClient, sr as removeInactiveFromAllClients, cr as setAllClientsQueriesData, Gn as setDebitCardLockStatusMutation, Kn as submitApplicationMutation, qn as unlinkExternalBankAccountMutation, lr as unregisterQueryClient, Jn as updateApplicationMutation, Yn as updateBankAccountMutation, Xn as updateDebitCardMutation, Oe as updateDepartment, Zn as updateExternalBankAccountMutation, ke as updateLocation, Ae as updateUser, Vr as useAcceptWidgetDisclosures, Mr as useAllBankAccountsQuery, Nr as useAllExternalBankAccountsQuery, Fr as useAllLedgerAccountsQuery, Pr as useAllMerchantCategoryGroupsQuery, Rr as useAllOrganizationRolesQuery, Br as useAllOrganizationUsersQuery, jr as useAutoFetchNextPage, yr as useCurrentUserQuery, Hr as useDisclosuresQuery, mr as useEmbedApi, wr as useGetUserDataQuery, Ir as useLedgerAccountsQuery, Wr as useOrganizationOnboardingSuppression, Lr as usePaymentTermsQuery, zr as useRolePermissionsQueries, Tr as useUpsertUserDataMutation, Qn as validateExternalBankAccountMutation, $n as verifyDebitCardMutation, er as withAuthEpoch };
|
|
@@ -7,12 +7,15 @@ function i({ client: t }) {
|
|
|
7
7
|
return e({ client: t }).queryKey;
|
|
8
8
|
}
|
|
9
9
|
function a({ client: i, widgetToken: a, authEpoch: o }) {
|
|
10
|
-
let { queryFn: s, queryKey: c } = e({ client: i });
|
|
10
|
+
let { queryFn: s, queryKey: c } = e({ client: i }), { placeholderData: l } = t({ queryKey: c }, o);
|
|
11
11
|
return {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
queryKey: [
|
|
13
|
+
c[0],
|
|
14
|
+
{ authEpoch: o },
|
|
15
|
+
{ widgetTokenId: n(a) }
|
|
16
|
+
],
|
|
17
|
+
queryFn: s,
|
|
18
|
+
placeholderData: l,
|
|
16
19
|
retry: 2,
|
|
17
20
|
retryDelay: 300,
|
|
18
21
|
staleTime: r
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { getBankAccounts as e } from "../rest/sdk.gen.js";
|
|
6
6
|
import { getBankAccountsOptions as t } from "../rest/@tanstack/react-query.gen.js";
|
|
7
|
-
import {
|
|
7
|
+
import { authEpochPlaceholder as n } from "../withAuthEpoch.js";
|
|
8
8
|
import { useEmbedApi as r } from "../EmbedApiContext.js";
|
|
9
9
|
import { organizationHeaders as i } from "../organizationHeaders.js";
|
|
10
10
|
import { getAllPagesNextPageParam as a, useAutoFetchNextPage as o } from "../allPages.js";
|
|
@@ -17,9 +17,9 @@ function u({ enabled: u } = {}) {
|
|
|
17
17
|
client: d,
|
|
18
18
|
headers: h,
|
|
19
19
|
query: { limit: l }
|
|
20
|
-
}).queryKey, "all"], v =
|
|
20
|
+
}).queryKey, "all"], v = c({
|
|
21
21
|
queryKey: [..._, { authEpoch: m }],
|
|
22
|
-
placeholderData:
|
|
22
|
+
placeholderData: n(_),
|
|
23
23
|
enabled: g,
|
|
24
24
|
initialPageParam: void 0,
|
|
25
25
|
queryFn: async ({ signal: t, pageParam: n }) => {
|
|
@@ -37,17 +37,17 @@ function u({ enabled: u } = {}) {
|
|
|
37
37
|
},
|
|
38
38
|
getNextPageParam: a
|
|
39
39
|
});
|
|
40
|
-
o(
|
|
41
|
-
let
|
|
42
|
-
if (
|
|
43
|
-
data:
|
|
40
|
+
o(v, g);
|
|
41
|
+
let y = s(() => {
|
|
42
|
+
if (v.data) return {
|
|
43
|
+
data: v.data.pages.flatMap((e) => e.data ?? []),
|
|
44
44
|
nextPaginationToken: null,
|
|
45
45
|
prevPaginationToken: null
|
|
46
46
|
};
|
|
47
|
-
}, [
|
|
47
|
+
}, [v.data]);
|
|
48
48
|
return {
|
|
49
|
-
...
|
|
50
|
-
data:
|
|
49
|
+
...v,
|
|
50
|
+
data: y
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
//#endregion
|
|
@@ -12,44 +12,34 @@ function i(e) {
|
|
|
12
12
|
for (let n = 0; n < e.length; n += 1) t ^= e.charCodeAt(n), t = Math.imul(t, 16777619);
|
|
13
13
|
return (t >>> 0).toString(16);
|
|
14
14
|
}
|
|
15
|
-
function a(
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
var o = [];
|
|
19
|
-
function s(e, t) {
|
|
20
|
-
if (e !== void 0 && t !== void 0 && a(t.queryKey, o)) return e;
|
|
21
|
-
}
|
|
22
|
-
function c({ invitationToken: a, userId: c, enabled: l } = {}) {
|
|
23
|
-
let { client: u, widgetToken: d, authEpoch: f } = n(), p = a && c ? {
|
|
15
|
+
function a({ invitationToken: a, userId: o, enabled: s } = {}) {
|
|
16
|
+
let { client: c, widgetToken: l, authEpoch: u } = n(), d = a && o ? {
|
|
24
17
|
invitationToken: a,
|
|
25
|
-
userId:
|
|
26
|
-
} : void 0,
|
|
18
|
+
userId: o
|
|
19
|
+
} : void 0, f = async ({ signal: t }) => {
|
|
27
20
|
let { data: n } = await e({
|
|
28
|
-
client:
|
|
29
|
-
headers: { "X-Widget-Token":
|
|
30
|
-
...
|
|
21
|
+
client: c,
|
|
22
|
+
headers: { "X-Widget-Token": l ?? "" },
|
|
23
|
+
...d ? { query: d } : {},
|
|
31
24
|
signal: t,
|
|
32
25
|
throwOnError: !0
|
|
33
26
|
});
|
|
34
27
|
if (!n) throw Error("Unexpected disclosures response from widget gateway");
|
|
35
28
|
return n;
|
|
36
|
-
},
|
|
37
|
-
baseUrl:
|
|
38
|
-
...
|
|
39
|
-
...
|
|
40
|
-
}]
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
queryFn: m,
|
|
45
|
-
placeholderData: void 0
|
|
46
|
-
}, f);
|
|
29
|
+
}, p = ["getDisclosures", {
|
|
30
|
+
baseUrl: c.getConfig().baseUrl,
|
|
31
|
+
...o ? { userId: o } : {},
|
|
32
|
+
...d ? { invitationTokenFingerprint: i(d.invitationToken) } : {}
|
|
33
|
+
}], { queryKey: m, placeholderData: h } = t({
|
|
34
|
+
queryKey: p,
|
|
35
|
+
queryFn: f
|
|
36
|
+
}, u);
|
|
47
37
|
return r({
|
|
48
|
-
queryKey:
|
|
49
|
-
queryFn:
|
|
50
|
-
placeholderData:
|
|
51
|
-
enabled: !!
|
|
38
|
+
queryKey: m,
|
|
39
|
+
queryFn: f,
|
|
40
|
+
placeholderData: h,
|
|
41
|
+
enabled: !!l && (s === !0 || s === void 0)
|
|
52
42
|
});
|
|
53
43
|
}
|
|
54
44
|
//#endregion
|
|
55
|
-
export {
|
|
45
|
+
export { a as useDisclosuresQuery };
|
|
@@ -97,5 +97,8 @@ var e = {
|
|
|
97
97
|
UserWriteAll: "user:write:all",
|
|
98
98
|
UserWriteOrg: "user:write:org"
|
|
99
99
|
};
|
|
100
|
+
function t(t) {
|
|
101
|
+
return typeof t == "string" && Object.values(e).includes(t);
|
|
102
|
+
}
|
|
100
103
|
//#endregion
|
|
101
|
-
export { e as Scope };
|
|
104
|
+
export { e as Scope, t as isScope };
|
package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/withAuthEpoch.js
CHANGED
|
@@ -1,16 +1,34 @@
|
|
|
1
|
-
import { useMemo as e } from "react";
|
|
2
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/withAuthEpoch.js
|
|
3
|
-
var t = (e) => e
|
|
4
|
-
|
|
5
|
-
let
|
|
6
|
-
return
|
|
2
|
+
var e = "x-organization-id", t = (e) => typeof e == "object" && !!e && !Array.isArray(e), n = (n) => t(n.headers) ? n.headers[e] : void 0, r = ([n, ...r]) => {
|
|
3
|
+
if (!t(n) || !t(n.headers)) return [n, ...r];
|
|
4
|
+
let i = { ...n.headers };
|
|
5
|
+
return delete i[e], [{
|
|
6
|
+
...n,
|
|
7
|
+
headers: i
|
|
8
|
+
}, ...r];
|
|
9
|
+
}, i = (e) => JSON.stringify(e, (e, n) => t(n) ? Object.fromEntries(Object.keys(n).sort().map((e) => [e, n[e]])) : n);
|
|
10
|
+
function a(e, a, o) {
|
|
11
|
+
let s = o ? r(e) : e, [c] = s;
|
|
12
|
+
return i(a && t(c) ? [c.baseUrl, n(c)] : s);
|
|
7
13
|
}
|
|
8
|
-
function
|
|
14
|
+
function o(n) {
|
|
15
|
+
let [r] = n;
|
|
16
|
+
return t(r) && t(r.headers) && e in r.headers && !r.headers[e];
|
|
17
|
+
}
|
|
18
|
+
var s = /* @__PURE__ */ new Map(), c = 500;
|
|
19
|
+
function l(e, t) {
|
|
20
|
+
let n = o(e), r = a(e, t, n), i = `${t}:${n}:${e.length}:${r}`, l = s.get(i);
|
|
21
|
+
if (l) return s.delete(i), s.set(i, l), l;
|
|
22
|
+
let u = (i, o) => o && a(o.queryKey.slice(0, e.length), t, n) === r ? i : void 0;
|
|
23
|
+
return s.size >= c && s.delete(s.keys().next().value), s.set(i, u), u;
|
|
24
|
+
}
|
|
25
|
+
var u = (e) => l(e, !1);
|
|
26
|
+
function d(e, t, { carryWithinOrg: n = !1 } = {}) {
|
|
9
27
|
return {
|
|
10
|
-
placeholderData:
|
|
28
|
+
placeholderData: l(e.queryKey, n),
|
|
11
29
|
...e,
|
|
12
|
-
queryKey: [...e.queryKey, { authEpoch:
|
|
30
|
+
queryKey: [...e.queryKey, { authEpoch: t }]
|
|
13
31
|
};
|
|
14
32
|
}
|
|
15
33
|
//#endregion
|
|
16
|
-
export {
|
|
34
|
+
export { u as authEpochPlaceholder, d as withAuthEpoch };
|
package/dist/libs/tesouro-embedded-components-react/shared/data-access-mocks/dist/lib/fixtures.js
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/shared/data-access-mocks/dist/lib/fixtures.js
|
|
2
|
+
var e = "00000000-0000-4000-8000-000000000002", t = "00000000-0000-4000-8000-000000000001", n = {
|
|
3
|
+
id: t,
|
|
4
|
+
displayName: "Example Organization",
|
|
5
|
+
legalName: "Example Organization, Inc.",
|
|
6
|
+
shortName: "example",
|
|
7
|
+
isEnabled: !0,
|
|
8
|
+
types: ["EMBEDDED"],
|
|
9
|
+
address: {
|
|
10
|
+
address1: "1 Example Street",
|
|
11
|
+
city: "Springfield",
|
|
12
|
+
stateOrProvince: "IL",
|
|
13
|
+
postalCode: "62701",
|
|
14
|
+
country: "USA"
|
|
15
|
+
}
|
|
16
|
+
}, r = {
|
|
17
|
+
id: "00000000-0000-4000-8000-000000000020",
|
|
18
|
+
key: "embedded:admin",
|
|
19
|
+
name: "Company admin",
|
|
20
|
+
description: "Full access to this organization.",
|
|
21
|
+
organizationId: t,
|
|
22
|
+
sortOrdinal: 1,
|
|
23
|
+
status: "ACTIVE",
|
|
24
|
+
createdDateTime: "2026-01-15T09:00:00.000Z",
|
|
25
|
+
updatedDateTime: "2026-01-15T09:00:00.000Z"
|
|
26
|
+
};
|
|
27
|
+
r.key;
|
|
28
|
+
var i = {
|
|
29
|
+
organizationId: t,
|
|
30
|
+
userId: e,
|
|
31
|
+
scopes: [],
|
|
32
|
+
status: "ACTIVE",
|
|
33
|
+
disclosuresRequired: "NOT_REQUIRED",
|
|
34
|
+
disclosuresAccepted: !0
|
|
35
|
+
}, a = {
|
|
36
|
+
id: "00000000-0000-4000-8000-000000000010",
|
|
37
|
+
userId: e,
|
|
38
|
+
cardholderName: "Ada Example",
|
|
39
|
+
cardStatus: "ACTIVE",
|
|
40
|
+
cardType: "PHYSICAL",
|
|
41
|
+
lastFourDigits: "4242",
|
|
42
|
+
nickname: "Team card",
|
|
43
|
+
cardLimit: 5e5,
|
|
44
|
+
currentBalance: {
|
|
45
|
+
currencyCode: "USD",
|
|
46
|
+
value: 125075
|
|
47
|
+
},
|
|
48
|
+
createdAt: "2026-01-15T09:00:00.000Z",
|
|
49
|
+
updatedAt: "2026-02-01T09:00:00.000Z"
|
|
50
|
+
}, o = {
|
|
51
|
+
...a,
|
|
52
|
+
cardStatus: "PENDING_ACTIVATION"
|
|
53
|
+
}, s = {
|
|
54
|
+
id: "00000000-0000-4000-8000-000000000011",
|
|
55
|
+
userId: e,
|
|
56
|
+
bankAccountId: "00000000-0000-4000-8000-000000000012",
|
|
57
|
+
reference: "DBT-0001",
|
|
58
|
+
cardholderName: "Ada Example",
|
|
59
|
+
cardStatus: "ACTIVE",
|
|
60
|
+
cardType: "PHYSICAL",
|
|
61
|
+
cardBrand: "VISA",
|
|
62
|
+
lastFourDigits: "1111",
|
|
63
|
+
expirationDate: "09/29",
|
|
64
|
+
nickname: "Travel card",
|
|
65
|
+
billingAddress: {
|
|
66
|
+
address1: "1 Example Street",
|
|
67
|
+
city: "Springfield",
|
|
68
|
+
state: "IL",
|
|
69
|
+
postalCode: "62701",
|
|
70
|
+
countryCode: "USA"
|
|
71
|
+
},
|
|
72
|
+
mccGroups: [],
|
|
73
|
+
velocityControls: [],
|
|
74
|
+
createdAt: "2026-01-15T09:00:00.000Z",
|
|
75
|
+
updatedAt: "2026-02-01T09:00:00.000Z"
|
|
76
|
+
}, c = {
|
|
77
|
+
pan: "4111111111111111",
|
|
78
|
+
cvv: "123",
|
|
79
|
+
expirationDate: "09/29"
|
|
80
|
+
}, l = {
|
|
81
|
+
...s,
|
|
82
|
+
cardStatus: "PENDING_ACTIVATION"
|
|
83
|
+
};
|
|
84
|
+
s.id;
|
|
85
|
+
var u = {
|
|
86
|
+
id: s.bankAccountId,
|
|
87
|
+
accountNumber: "000000006789",
|
|
88
|
+
routingNumber: "000000000",
|
|
89
|
+
balance: {
|
|
90
|
+
currencyCode: "USD",
|
|
91
|
+
value: 4210075
|
|
92
|
+
},
|
|
93
|
+
nameOnAccount: "Acme Inc",
|
|
94
|
+
nickname: "Operating account",
|
|
95
|
+
status: "ACTIVE",
|
|
96
|
+
createdDateTime: "2026-01-15T09:00:00.000Z"
|
|
97
|
+
};
|
|
98
|
+
u.balance;
|
|
99
|
+
var d = {
|
|
100
|
+
id: "00000000-0000-4000-8000-000000000040",
|
|
101
|
+
amount: {
|
|
102
|
+
currencyCode: "USD",
|
|
103
|
+
value: 25e4
|
|
104
|
+
},
|
|
105
|
+
date: "2026-02-01T09:00:00.000Z",
|
|
106
|
+
fromAccount: {
|
|
107
|
+
id: u.id,
|
|
108
|
+
nickname: u.nickname
|
|
109
|
+
},
|
|
110
|
+
toAccount: {
|
|
111
|
+
id: "00000000-0000-4000-8000-000000000041",
|
|
112
|
+
nickname: "Reserve account"
|
|
113
|
+
},
|
|
114
|
+
network: "BOOK",
|
|
115
|
+
status: "COMPLETED",
|
|
116
|
+
type: "INTERNAL_TO_INTERNAL"
|
|
117
|
+
};
|
|
118
|
+
d.amount, d.date, d.fromAccount, d.toAccount, a.lastFourDigits, r.id;
|
|
119
|
+
var f = {
|
|
120
|
+
id: "00000000-0000-4000-8000-000000000040",
|
|
121
|
+
created_at: "2026-01-15T09:00:00.000Z",
|
|
122
|
+
updated_at: "2026-01-15T09:00:00.000Z",
|
|
123
|
+
is_customer: !0,
|
|
124
|
+
is_vendor: !1,
|
|
125
|
+
type: "organization",
|
|
126
|
+
organization: {
|
|
127
|
+
legal_name: "Rivermill Supply Co.",
|
|
128
|
+
email: "ap@rivermill.example"
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
f.id, f.organization.legal_name, u.id, n.legalName;
|
|
132
|
+
//#endregion
|
|
133
|
+
export { n as AN_ORGANIZATION, r as AN_ORGANIZATION_ROLE, u as A_BANK_ACCOUNT, d as A_BANK_ACCOUNT_TRANSFER, a as A_CREDIT_CARD, f as A_CUSTOMER_COUNTERPART, s as A_DEBIT_CARD, c as A_DEBIT_CARD_CREDENTIALS, o as A_PENDING_CREDIT_CARD, l as A_PENDING_DEBIT_CARD, i as A_WIDGET_INIT };
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.5.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.5.130", n = "08efe6ee4062e5ab3ba36fac6c167ff0f1ab112d", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
package/dist/scopes.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The scope strings a widget session can carry, as a `const` map plus the union
|
|
3
|
+
* type derived from it.
|
|
4
|
+
*
|
|
5
|
+
* Widgets resolve their own scopes from the `widgetToken` and never take them as
|
|
6
|
+
* a prop, so this is not something to pass in. It is here for the two places a
|
|
7
|
+
* consumer legitimately needs the names: minting a token on your backend with
|
|
8
|
+
* the right scopes on it, and typing a test double's init response, which is why
|
|
9
|
+
* it ships alongside `./fixtures`.
|
|
10
|
+
*
|
|
11
|
+
* ```ts
|
|
12
|
+
* import { Scope } from '@tesouro/embedded-components-react';
|
|
13
|
+
* import { A_WIDGET_INIT } from '@tesouro/embedded-components-react/fixtures';
|
|
14
|
+
*
|
|
15
|
+
* const init = { ...A_WIDGET_INIT, scopes: [Scope.DebitCardReadOrg] };
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* **Not every key here is assignable to one of your users.** The set is one flat
|
|
19
|
+
* list shared with the partner-facing admin surfaces, so it also carries
|
|
20
|
+
* cross-organization scopes (the `:all` suffix) and acquiring and acceptor keys
|
|
21
|
+
* that belong to those surfaces rather than to an embedded session. Read the
|
|
22
|
+
* suffix as the breadth signal: `:self` covers a user's own objects and their
|
|
23
|
+
* direct reports', `:org` covers one organization, and anything broader is not
|
|
24
|
+
* something an embedded widget should require or offer. A widget that appears to
|
|
25
|
+
* need one is a widget with the wrong design for an embedded surface.
|
|
26
|
+
*
|
|
27
|
+
* **Expect these strings to change.** There is an active proposal to condense
|
|
28
|
+
* and rename the set. Reference a capability through `Scope.X` rather than
|
|
29
|
+
* inlining the literal, so that migration is a rename rather than a search.
|
|
30
|
+
*/
|
|
31
|
+
export { isScope, Scope, } from '@tesouro-fe/tesouro-embedded-components-react-shared-data-access';
|
|
32
|
+
//# sourceMappingURL=scopes.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tesouro/embedded-components-react",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.130",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageDepSync": {
|
|
7
7
|
"prune": true,
|
|
8
|
-
"keep": []
|
|
8
|
+
"keep": [],
|
|
9
|
+
"ignore": [
|
|
10
|
+
"msw",
|
|
11
|
+
"@mswjs/interceptors"
|
|
12
|
+
]
|
|
9
13
|
},
|
|
10
14
|
"repository": {
|
|
11
15
|
"type": "git",
|
|
@@ -48,6 +52,11 @@
|
|
|
48
52
|
"import": "./dist/experimental/*.js",
|
|
49
53
|
"default": "./dist/experimental/*.js"
|
|
50
54
|
},
|
|
55
|
+
"./fixtures": {
|
|
56
|
+
"types": "./dist/fixtures/index.d.ts",
|
|
57
|
+
"import": "./dist/fixtures/index.js",
|
|
58
|
+
"default": "./dist/fixtures/index.js"
|
|
59
|
+
},
|
|
51
60
|
"./monite-sdk": {
|
|
52
61
|
"types": "./dist/lib/monite-sdk.d.ts",
|
|
53
62
|
"import": "./dist/lib/monite-sdk.js",
|