@forgeroute/ui 0.5.3 → 0.5.5
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/fesm2022/forgeroute-ui-quickbooks.mjs +0 -1
- package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-square.mjs +0 -1
- package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-stripe.mjs +0 -1
- package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
- package/fesm2022/{forgeroute-ui-ui-labels.es-DZlDY40a.mjs → forgeroute-ui-ui-labels.es-CJy5qCse.mjs} +1 -2
- package/fesm2022/{forgeroute-ui-ui-labels.es-DZlDY40a.mjs.map → forgeroute-ui-ui-labels.es-CJy5qCse.mjs.map} +1 -1
- package/fesm2022/forgeroute-ui.mjs +47 -8
- package/fesm2022/forgeroute-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/forgeroute-ui.d.ts +47 -26
package/package.json
CHANGED
package/types/forgeroute-ui.d.ts
CHANGED
|
@@ -2724,7 +2724,6 @@ export declare const UI_DEFAULT_LABELS: {
|
|
|
2724
2724
|
readonly 'paymentAttempt.offline': "You are offline. Reconnect to the internet to pay: nothing was sent.";
|
|
2725
2725
|
readonly 'paymentAttempt.timeout': "Your payment is taking longer than expected. We are checking whether it went through: do not pay again.";
|
|
2726
2726
|
readonly 'paymentAttempt.offlineInFlight': "You went offline while your payment was being sent. We are checking whether it went through: do not pay again.";
|
|
2727
|
-
readonly 'paymentAttempt.succeededAfterCheck': "Your payment went through. Thank you.";
|
|
2728
2727
|
readonly 'paymentAttempt.failedAfterCheck': "The earlier payment attempt did not go through. You can try again.";
|
|
2729
2728
|
readonly 'paymentAttempt.authRequired': "Your bank needs to verify this payment. Complete the verification window and do not close it.";
|
|
2730
2729
|
readonly 'paymentAttempt.authAbandoned': "The verification was not completed. We are checking whether the payment went through before you can try again.";
|
|
@@ -4862,7 +4861,7 @@ export declare class SidePanelComponent implements OnDestroy {
|
|
|
4862
4861
|
readonly cancelLabel: import("@angular/core").Signal<string>;
|
|
4863
4862
|
/** Right-aligned primary action button label. Empty string = hidden. */
|
|
4864
4863
|
readonly primaryLabel: import("@angular/core").InputSignal<string>;
|
|
4865
|
-
readonly primaryVariant: import("@angular/core").InputSignal<"
|
|
4864
|
+
readonly primaryVariant: import("@angular/core").InputSignal<"warning" | "primary" | "danger">;
|
|
4866
4865
|
readonly primaryLoading: import("@angular/core").InputSignal<boolean>;
|
|
4867
4866
|
readonly primaryDisabled: import("@angular/core").InputSignal<boolean>;
|
|
4868
4867
|
/** `data-testid` of the Cancel button; none when empty (default). */
|
|
@@ -5861,7 +5860,7 @@ export declare class TooltipDirective {
|
|
|
5861
5860
|
/** Tooltip text; empty or null disables the tooltip. */
|
|
5862
5861
|
readonly uiTooltip: import("@angular/core").InputSignal<string | null | undefined>;
|
|
5863
5862
|
/** Preferred side; flips to the other side when there is no room. */
|
|
5864
|
-
readonly tooltipPosition: import("@angular/core").InputSignal<"
|
|
5863
|
+
readonly tooltipPosition: import("@angular/core").InputSignal<"top" | "bottom">;
|
|
5865
5864
|
private readonly host;
|
|
5866
5865
|
private readonly doc;
|
|
5867
5866
|
private bubble;
|
|
@@ -6978,7 +6977,7 @@ export declare class CheckboxComponent implements ControlValueAccessor, Validato
|
|
|
6978
6977
|
* clicking it still toggles the box - e.g. a product name that is both the heading of its card and the label of its checkbox.
|
|
6979
6978
|
* Default null: plain label text, exactly as before. Single mode only.
|
|
6980
6979
|
*/
|
|
6981
|
-
readonly headingLevel: import("@angular/core").InputSignal<1 |
|
|
6980
|
+
readonly headingLevel: import("@angular/core").InputSignal<1 | 4 | 2 | 3 | 5 | 6 | null>;
|
|
6982
6981
|
readonly indeterminate: import("@angular/core").InputSignal<boolean>;
|
|
6983
6982
|
readonly checked: import("@angular/core").ModelSignal<boolean>;
|
|
6984
6983
|
/**
|
|
@@ -7413,7 +7412,7 @@ export declare class StepperComponent {
|
|
|
7413
7412
|
* its circle, one continuous line behind the circles that fills as steps complete; a complete step shows a check, the current step an
|
|
7414
7413
|
* accent ring with a dot, an upcoming step an empty circle (no numbers). Circles are 40px (32px with `size="sm"`).
|
|
7415
7414
|
*/
|
|
7416
|
-
readonly labelPosition: import("@angular/core").InputSignal<"
|
|
7415
|
+
readonly labelPosition: import("@angular/core").InputSignal<"below" | "beside">;
|
|
7417
7416
|
/** Viewport width in px below which a horizontal stepper is drawn vertical (labels beside the circles), e.g. `640`. null (default) = never. */
|
|
7418
7417
|
readonly stackBelow: import("@angular/core").InputSignal<number | null>;
|
|
7419
7418
|
/** CSS length (e.g. `10.5rem`): horizontal only - the list gets `min-width: calc(<step count> * <value>)`. Empty (default) = no minimum. */
|
|
@@ -7445,7 +7444,7 @@ export declare class StepperComponent {
|
|
|
7445
7444
|
protected readonly rows: import("@angular/core").Signal<{
|
|
7446
7445
|
step: StepperStep;
|
|
7447
7446
|
index: number;
|
|
7448
|
-
state: "
|
|
7447
|
+
state: "current" | "complete" | "upcoming";
|
|
7449
7448
|
error: boolean;
|
|
7450
7449
|
errorMessage: string;
|
|
7451
7450
|
selectable: boolean;
|
|
@@ -8075,7 +8074,7 @@ export declare class ButtonComponent {
|
|
|
8075
8074
|
* `ghost-start`: a ghost button for list / section toggles - a full-width row with its content aligned to the start, transparent
|
|
8076
8075
|
* background, hover tint and the normal focus ring. Pair it with `ariaExpanded` / `ariaPressed`; the label may contain a heading element.
|
|
8077
8076
|
*/
|
|
8078
|
-
readonly variant: import("@angular/core").InputSignal<"
|
|
8077
|
+
readonly variant: import("@angular/core").InputSignal<"warning" | "link" | "primary" | "danger" | "secondary" | "ghost" | "tab" | "ghost-start" | "icon" | "icon-danger">;
|
|
8079
8078
|
/** Renders an anchor to this route instead of a button (use with `variant="link"` for an inline text link). `['/settings']` or `'/settings'`. While `disabled` or `loading` it renders a non-clickable `<span role="link" aria-disabled>` with no href (like `href`). */
|
|
8080
8079
|
readonly routerLink: import("@angular/core").InputSignal<string | readonly unknown[] | null>;
|
|
8081
8080
|
/** Query params of the `routerLink` (e.g. `{ section: 'deal-defaults' }`). */
|
|
@@ -8096,7 +8095,7 @@ export declare class ButtonComponent {
|
|
|
8096
8095
|
*/
|
|
8097
8096
|
readonly href: import("@angular/core").InputSignal<string | null>;
|
|
8098
8097
|
/** Where to open the `href` (`_blank` = a new tab). */
|
|
8099
|
-
readonly target: import("@angular/core").InputSignal<"
|
|
8098
|
+
readonly target: import("@angular/core").InputSignal<"_blank" | "_self" | "_parent" | "_top" | null>;
|
|
8100
8099
|
/** `rel` of the `href` link. A `_blank` target always gets `noopener noreferrer` added. */
|
|
8101
8100
|
readonly rel: import("@angular/core").InputSignal<string | null>;
|
|
8102
8101
|
/** The href when it is allowed (http, https, mailto, tel, sms or a relative URL), else null. */
|
|
@@ -8120,7 +8119,7 @@ export declare class ButtonComponent {
|
|
|
8120
8119
|
private readonly _narrow;
|
|
8121
8120
|
readonly color: import("@angular/core").InputSignal<string | undefined>;
|
|
8122
8121
|
readonly active: import("@angular/core").InputSignal<boolean>;
|
|
8123
|
-
readonly size: import("@angular/core").InputSignal<"
|
|
8122
|
+
readonly size: import("@angular/core").InputSignal<"xs" | "sm" | "md" | "lg">;
|
|
8124
8123
|
readonly type: import("@angular/core").InputSignal<"button" | "reset" | "submit">;
|
|
8125
8124
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
8126
8125
|
readonly loading: import("@angular/core").InputSignal<boolean>;
|
|
@@ -8766,7 +8765,7 @@ export declare class ImportSourceGridComponent {
|
|
|
8766
8765
|
/** The `value` of the picked source (highlighted). `tile` only: the `card` appearance does not keep a selection. */
|
|
8767
8766
|
readonly selected: import("@angular/core").InputSignal<string>;
|
|
8768
8767
|
/** `tile`: the compact buttons of the import window. `card`: one `ui-detail-card` per source with its own select button (used on a page). */
|
|
8769
|
-
readonly appearance: import("@angular/core").InputSignal<"
|
|
8768
|
+
readonly appearance: import("@angular/core").InputSignal<"tile" | "card">;
|
|
8770
8769
|
/** `card`: disables every card's button (for example while the page is saving). */
|
|
8771
8770
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
8772
8771
|
/** `card`: the text of each card's button. */
|
|
@@ -9264,7 +9263,7 @@ export declare class TextInputComponent implements ControlValueAccessor, Validat
|
|
|
9264
9263
|
* `search`, `text`, `none`). Empty (default) = the browser's default for the field, except `type="tel"`, which keeps `tel`.
|
|
9265
9264
|
* It only picks the keyboard; it does not restrict what can be typed or pasted.
|
|
9266
9265
|
*/
|
|
9267
|
-
readonly inputmode: import("@angular/core").InputSignal<"" | "
|
|
9266
|
+
readonly inputmode: import("@angular/core").InputSignal<"" | "email" | "text" | "decimal" | "none" | "search" | "tel" | "url" | "numeric">;
|
|
9268
9267
|
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
9269
9268
|
readonly hint: import("@angular/core").InputSignal<string>;
|
|
9270
9269
|
/** Id(s) of an external element that also describes this control (e.g. one shared error text for a group of fields). Space separated; MERGED after the control's own hint / error id in `aria-describedby`, never replacing it. Empty = unchanged. */
|
|
@@ -10768,7 +10767,7 @@ export declare class DropdownComponent {
|
|
|
10768
10767
|
readonly loader: import("@angular/core").InputSignal<(() => Promise<DropdownItem[]>) | null>;
|
|
10769
10768
|
readonly active: import("@angular/core").InputSignal<boolean>;
|
|
10770
10769
|
readonly activeValue: import("@angular/core").InputSignal<string>;
|
|
10771
|
-
readonly variant: import("@angular/core").InputSignal<"
|
|
10770
|
+
readonly variant: import("@angular/core").InputSignal<"button" | "badge">;
|
|
10772
10771
|
/** Trigger size for `variant="button"`: `sm` (default, the compact toolbar look) or `md` (same padding and type as a medium `ui-button`). */
|
|
10773
10772
|
readonly size: import("@angular/core").InputSignal<"sm" | "md">;
|
|
10774
10773
|
readonly menuWidth: import("@angular/core").InputSignal<string>;
|
|
@@ -11084,7 +11083,7 @@ export declare class FormSectionComponent {
|
|
|
11084
11083
|
}, {}, never, ["*"], true, never>;
|
|
11085
11084
|
}
|
|
11086
11085
|
export declare class FormRowComponent {
|
|
11087
|
-
readonly cols: import("@angular/core").InputSignal<1 |
|
|
11086
|
+
readonly cols: import("@angular/core").InputSignal<1 | 4 | 2 | 3>;
|
|
11088
11087
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormRowComponent, never>;
|
|
11089
11088
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormRowComponent, "ui-form-row", never, {
|
|
11090
11089
|
"cols": {
|
|
@@ -12417,9 +12416,9 @@ export declare class ChipGroupComponent {
|
|
|
12417
12416
|
readonly spaceAbove: import("@angular/core").InputSignal<"none" | "sm" | "md">;
|
|
12418
12417
|
/** Space below the chip group. */
|
|
12419
12418
|
readonly spaceBelow: import("@angular/core").InputSignal<"none" | "sm" | "md">;
|
|
12420
|
-
protected readonly _gap: import("@angular/core").Signal<"
|
|
12421
|
-
protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "
|
|
12422
|
-
protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "
|
|
12419
|
+
protected readonly _gap: import("@angular/core").Signal<"8px" | "12px" | "6px">;
|
|
12420
|
+
protected readonly _spaceAbove: import("@angular/core").Signal<"0" | "12px" | "6px">;
|
|
12421
|
+
protected readonly _spaceBelow: import("@angular/core").Signal<"0" | "12px" | "6px">;
|
|
12423
12422
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChipGroupComponent, never>;
|
|
12424
12423
|
static ɵcmp: i0.ɵɵComponentDeclaration<ChipGroupComponent, "ui-chip-group", never, {
|
|
12425
12424
|
"gap": {
|
|
@@ -13383,7 +13382,7 @@ export declare class AddressInputComponent implements ControlValueAccessor, Vali
|
|
|
13383
13382
|
* the object. `valueChange` always emits the object. A written string is read with `parseAddressValue` for display only: the control keeps
|
|
13384
13383
|
* the original text until the user edits a field (so a text the parser cannot split is not rewritten on load).
|
|
13385
13384
|
*/
|
|
13386
|
-
readonly valueFormat: import("@angular/core").InputSignal<"object" | "
|
|
13385
|
+
readonly valueFormat: import("@angular/core").InputSignal<"object" | "text" | "auto">;
|
|
13387
13386
|
/** ZIP rule; the default is the US 5 digits / 5+4 rule. `null` accepts any non-empty ZIP. The ZIP is validated and stored trimmed. */
|
|
13388
13387
|
readonly zipPattern: import("@angular/core").InputSignal<RegExp | null>;
|
|
13389
13388
|
/** Message shown when the ZIP breaks `zipPattern`. */
|
|
@@ -13619,6 +13618,8 @@ export type ImageAlign = 'start' | 'center' | 'end';
|
|
|
13619
13618
|
* - Size: `width` / `height` (CSS lengths, e.g. "200px", "100%") fix the box and the image fills it per `fit`; without them
|
|
13620
13619
|
* the image keeps its natural size, capped by `maxWidth` (default 100%) and `maxHeight`. `aspectRatio` ("4 / 3", "1")
|
|
13621
13620
|
* reserves the space before the image loads so the page does not jump.
|
|
13621
|
+
* - `positionX` / `positionY` (percent, default 50 / 50 = centered): the focal point kept visible when `fit="cover"` crops the image (CSS `object-position`);
|
|
13622
|
+
* the saved result of `ui-image-reposition` / `ui-image-field`. Missing or out-of-range values are centered / clamped.
|
|
13622
13623
|
* - `radius` none | sm | md | lg | full, `bordered`, `align` (start | center | end, for an image narrower than its row).
|
|
13623
13624
|
* - `placeholder` (default true): a neutral icon in the same box when there is no `src` or it fails to load. false renders nothing then.
|
|
13624
13625
|
* - `priority`: above-the-fold image - loads eagerly with high fetch priority. Otherwise `loading="lazy"` and async decoding.
|
|
@@ -13638,6 +13639,11 @@ export declare class ImageComponent {
|
|
|
13638
13639
|
/** Alt text; '' (default) marks the image decorative. */
|
|
13639
13640
|
readonly alt: import("@angular/core").InputSignal<string>;
|
|
13640
13641
|
readonly fit: import("@angular/core").InputSignal<ImageFit>;
|
|
13642
|
+
/** Focal point, percent from the left (0-100, 50 = centered): which part stays visible when the image is cropped by `fit="cover"`. */
|
|
13643
|
+
readonly positionX: import("@angular/core").InputSignal<number | null | undefined>;
|
|
13644
|
+
/** Focal point, percent from the top (0-100, 50 = centered). */
|
|
13645
|
+
readonly positionY: import("@angular/core").InputSignal<number | null | undefined>;
|
|
13646
|
+
protected readonly objectPosition: import("@angular/core").Signal<string>;
|
|
13641
13647
|
/** CSS width of the box (e.g. "200px", "100%"). Empty = natural width. */
|
|
13642
13648
|
readonly width: import("@angular/core").InputSignal<string>;
|
|
13643
13649
|
/** CSS height of the box. Empty = natural height. */
|
|
@@ -13696,6 +13702,16 @@ export declare class ImageComponent {
|
|
|
13696
13702
|
"required": false;
|
|
13697
13703
|
"isSignal": true;
|
|
13698
13704
|
};
|
|
13705
|
+
"positionX": {
|
|
13706
|
+
"alias": "positionX";
|
|
13707
|
+
"required": false;
|
|
13708
|
+
"isSignal": true;
|
|
13709
|
+
};
|
|
13710
|
+
"positionY": {
|
|
13711
|
+
"alias": "positionY";
|
|
13712
|
+
"required": false;
|
|
13713
|
+
"isSignal": true;
|
|
13714
|
+
};
|
|
13699
13715
|
"width": {
|
|
13700
13716
|
"alias": "width";
|
|
13701
13717
|
"required": false;
|
|
@@ -13774,6 +13790,9 @@ export interface GalleryImage {
|
|
|
13774
13790
|
alt?: string;
|
|
13775
13791
|
/** Visible caption shown under the picture while it is the shown one (library source 2026-11-06, not yet published). Empty / missing = no caption line. */
|
|
13776
13792
|
caption?: string | null;
|
|
13793
|
+
/** Focal point of this picture in percent (50 = centered): the part that stays visible when `fit="cover"` crops it. */
|
|
13794
|
+
positionX?: number | null;
|
|
13795
|
+
positionY?: number | null;
|
|
13777
13796
|
}
|
|
13778
13797
|
/**
|
|
13779
13798
|
* Image gallery (a "slideshow"): one large picture with previous / next buttons, a counter and dots. Put it inside a
|
|
@@ -15200,7 +15219,7 @@ export declare class PdfHotspotComponent {
|
|
|
15200
15219
|
/** `ready`: clickable; `blocked`: disabled (a prerequisite is missing); `signed`: shows `image`. */
|
|
15201
15220
|
readonly state: import("@angular/core").InputSignal<"ready" | "blocked" | "signed">;
|
|
15202
15221
|
/** `warning` gives the ready state an amber look (e.g. for initials), default is blue. */
|
|
15203
|
-
readonly tone: import("@angular/core").InputSignal<"
|
|
15222
|
+
readonly tone: import("@angular/core").InputSignal<"warning" | "primary">;
|
|
15204
15223
|
/** Text of the ready button (e.g. "Sign Here"). */
|
|
15205
15224
|
readonly labelInput: import("@angular/core").InputSignal<string | null>;
|
|
15206
15225
|
readonly label: import("@angular/core").Signal<string>;
|
|
@@ -15340,7 +15359,7 @@ export declare class DetailCardComponent {
|
|
|
15340
15359
|
/** true (default) = the title is displayed in capitals (CSS only); false = shown as written. The text, aria-label and heading name are never changed. */
|
|
15341
15360
|
readonly uppercaseTitle: import("@angular/core").InputSignal<boolean>;
|
|
15342
15361
|
/** 1-6 makes the title a real heading for screen readers (role=heading, aria-level); null keeps it plain text. */
|
|
15343
|
-
readonly headingLevel: import("@angular/core").InputSignal<1 |
|
|
15362
|
+
readonly headingLevel: import("@angular/core").InputSignal<1 | 4 | 2 | 3 | 5 | 6 | null>;
|
|
15344
15363
|
/** Optional id for the title text; the card is then labelled by it. Without it the title is the card's aria-label. */
|
|
15345
15364
|
readonly titleId: import("@angular/core").InputSignal<string>;
|
|
15346
15365
|
/** Accessible name of the card when the header gives none (no header, or no title). A visible title wins; blank = no name. */
|
|
@@ -18142,7 +18161,7 @@ export declare class SetupWizardComponent {
|
|
|
18142
18161
|
protected customHintId(): string;
|
|
18143
18162
|
protected readonly importBlocked: import("@angular/core").Signal<boolean>;
|
|
18144
18163
|
/** The step's own two parts (`splitLayout`) show as two tabs, one card at a time; this is the open one (it starts on the app's part on every visit). */
|
|
18145
|
-
protected readonly splitTab: import("@angular/core").WritableSignal<"
|
|
18164
|
+
protected readonly splitTab: import("@angular/core").WritableSignal<"extra" | "main">;
|
|
18146
18165
|
protected readonly splitTabs: import("@angular/core").Signal<{
|
|
18147
18166
|
key: string;
|
|
18148
18167
|
label: string;
|
|
@@ -20435,7 +20454,7 @@ export declare class PaymentSidePanelComponent {
|
|
|
20435
20454
|
private readonly terminalAvailable;
|
|
20436
20455
|
/** value -> label of every live method the rendered plugins contribute (the first plugin wins a duplicate value). */
|
|
20437
20456
|
private readonly liveMethods;
|
|
20438
|
-
protected readonly kind: import("@angular/core").Signal<"none" | "
|
|
20457
|
+
protected readonly kind: import("@angular/core").Signal<"none" | "manual" | "live" | "terminal">;
|
|
20439
20458
|
private kindOf;
|
|
20440
20459
|
/** The method list as shown: record-only built-ins (a plugin takes over its own values), plugin extras, and only manual ones while a split is being built. */
|
|
20441
20460
|
readonly methodList: import("@angular/core").Signal<PaymentMethodOption[]>;
|
|
@@ -20724,17 +20743,19 @@ export interface PaymentAttemptResult<T> {
|
|
|
20724
20743
|
* Every machine-readable code of the payments service's money endpoints, mapped explicitly (three groups below). SOURCE: host-kit/contract/payment-errors.json of the forgeroute-payments service (the library
|
|
20725
20744
|
* cannot import it: these tables repeat its codes, and `payment-errors.contract.spec.ts` embeds a verbatim copy and fails when a code has no row; a new code there must be added here).
|
|
20726
20745
|
* - NO CHARGE was made (`not_sent`: release, the key is kept): `events_backlog` (new payments are paused), `exceeds_amount_due`, `already_charged_today`, `merchant_not_ready`, `reconnect_required` and
|
|
20727
|
-
* `processor_account_changed` (the merchant's processor connection needs attention), `reference_changed` (the balance changed since the link was made), `link_in_use` and `link_already_paid` (payment links)
|
|
20746
|
+
* `processor_account_changed` (the merchant's processor connection needs attention), `reference_changed` (the balance changed since the link was made), `link_in_use` and `link_already_paid` (payment links),
|
|
20747
|
+
* `reader_busy` (a card reader that still holds a payment: the DELETE of the reader was refused, nothing charged);
|
|
20728
20748
|
* - the attempt exists or runs (`unknown`: look it up by its key, never start another): `payment_in_flight`, `request_in_progress`, `duplicate_suspected` (an identical payment was made moments ago),
|
|
20729
20749
|
* `idempotency_in_progress`, `idempotency_key_reused`, `idempotency_error`, `payment_intent_unexpected_state`;
|
|
20730
20750
|
* - the request FAILED for good (`failure`, see {@link PAYMENT_FAILURE_CODES}): `attempt_failed_use_new_key` (a replay of a FAILED attempt, the epoch moves), the capture codes, `link_expired`, `link_cancelled`,
|
|
20731
|
-
* `not_supported_by_processor`, and four of the six verify-microdeposits codes (`verification_amounts_mismatch`,
|
|
20751
|
+
* `not_supported_by_processor`, `location_required` (Square connect: the seller has several locations, a definitive 400), and four of the six verify-microdeposits codes (`verification_amounts_mismatch`,
|
|
20752
|
+
* `verification_attempts_exceeded`, `verification_timeout`, `verification_failed`);
|
|
20732
20753
|
* - `not_awaiting_verification` and `verification_rate_limited` (verify-microdeposits call only) are `unknown` too: the payment may already be verified / processing, or the try only has to wait.
|
|
20733
20754
|
*/
|
|
20734
20755
|
export declare const PAYMENT_NO_CHARGE_CODES: readonly string[];
|
|
20735
20756
|
/**
|
|
20736
20757
|
* Codes that are a DEFINITIVE failure of the request, never unknown: the failed-attempt replay (the epoch moves), the capture codes of the staff API (`already_captured`, `exceeds_authorized`, `not_capturable`, 409) and the payment-link /
|
|
20737
|
-
* processor refusals (`link_expired`, `link_cancelled` = 410, `not_supported_by_processor` = 400). Source: host-kit/contract/payment-errors.json.
|
|
20758
|
+
* processor refusals (`link_expired`, `link_cancelled` = 410, `not_supported_by_processor` = 400), the four definitive verify-microdeposits codes and `location_required` (Square connect, 400). Source: host-kit/contract/payment-errors.json.
|
|
20738
20759
|
*/
|
|
20739
20760
|
export declare const PAYMENT_FAILURE_CODES: readonly string[];
|
|
20740
20761
|
/** Is this host error the payments service's "this attempt failed before, use a new attemptKey" answer (code `attempt_failed_use_new_key`)? */
|
|
@@ -20751,9 +20772,9 @@ export declare function isFinalPaymentRefusal(error: unknown): boolean;
|
|
|
20751
20772
|
/**
|
|
20752
20773
|
* Classifies a failed HOST call (the charge request) for `run()`:
|
|
20753
20774
|
* - `'not_sent'`: nothing was charged: the request never left (the offline layer refused it: `OfflineBlockedError` / `offlineBlocked: true`) or the payments service refused it with one of its NO-CHARGE codes
|
|
20754
|
-
* (`events_backlog`, `exceeds_amount_due`, `already_charged_today`, `merchant_not_ready`, `reconnect_required`, `processor_account_changed`, `reference_changed`, `link_in_use`, `link_already_paid`, also as a `409`): release with the key kept, show the message;
|
|
20775
|
+
* (`events_backlog`, `exceeds_amount_due`, `already_charged_today`, `merchant_not_ready`, `reconnect_required`, `processor_account_changed`, `reference_changed`, `link_in_use`, `link_already_paid`, `reader_busy`, also as a `409`): release with the key kept, show the message;
|
|
20755
20776
|
* - `'failure'` for the codes of {@link PAYMENT_FAILURE_CODES} (`attempt_failed_use_new_key`: a replay of a FAILED attempt, even as a `409`, the epoch moves so the next click derives a new key; the capture codes
|
|
20756
|
-
* `already_captured` / `exceeds_authorized` / `not_capturable`; `link_expired`, `link_cancelled`, `not_supported_by_processor`);
|
|
20777
|
+
* `already_captured` / `exceeds_authorized` / `not_capturable`; `link_expired`, `link_cancelled`, `not_supported_by_processor`, `location_required`, and four verify-microdeposits codes: see the list);
|
|
20757
20778
|
* - `'unknown'`: it may have reached the processor: no answer (status `0`, a network `TypeError`, an abort / timeout), `408`, `425`, `429`, `5xx`, **any other `409`** (a service that answers "already in flight / duplicate
|
|
20758
20779
|
* suspected / idempotency in progress" must never make the payer pay again), a body or error `code` naming an idempotency / in-flight conflict, an error flagged `unknown: true`, and **an error that carries NO numeric
|
|
20759
20780
|
* status** (a wrapped `Error`, an error object of a client library): nothing proves it was refused, so only a recognised definitive code decides it;
|