@tesouro/embedded-components-react 0.11.113 → 0.11.116

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.
@@ -392,6 +392,82 @@ declare module '@tanstack/react-table' {
392
392
  }
393
393
  }
394
394
 
395
+ interface LabelLabels {
396
+ /**
397
+ * How the field name and its requirement fragment compose. `{label}` is the
398
+ * name, `{marker}` the asterisk or the note — reorder them freely, and note
399
+ * that the space between them is part of this string.
400
+ */
401
+ composition: string;
402
+ /** In the label's own colour, deliberately not `destructive`. */
403
+ requiredMarker: string;
404
+ /**
405
+ * Screen-reader-only stand-in for the marker, for a control whose role does
406
+ * not take `aria-required` — a popover trigger is a `button`, which does
407
+ * not. Render it hidden and name it from the control's `aria-labelledby`.
408
+ */
409
+ requiredAccessibleText: string;
410
+ optionalNote: string;
411
+ /** "This has no meaning here", as against `optionalNote`'s "may be blank". */
412
+ notApplicableNote: string;
413
+ }
414
+
415
+ interface RequiredFieldsLegendLabels {
416
+ /**
417
+ * One string, so a translator can move the marker into whatever clause the
418
+ * language wants. `{marker}` is substituted with `marker`, rendered
419
+ * semi-bold; keep the placeholder when overriding.
420
+ */
421
+ instruction: string;
422
+ marker: string;
423
+ }
424
+
425
+ interface FilterMenuButtonLabels {
426
+ /** Button text, followed by "(N)" when `activeCount` is set. */
427
+ filters: string;
428
+ }
429
+
430
+ interface FilterTagLabels {
431
+ /**
432
+ * Accessible name for the editable tag body. `{label}` is substituted with
433
+ * the tag's own text; keep the placeholder when overriding.
434
+ */
435
+ edit: string;
436
+ /** Accessible name for the × dismiss button. `{label}` is substituted. */
437
+ remove: string;
438
+ /** Accessible name for the × when `fullLabel` is set. `{label}` is the full text. */
439
+ removeFull: string;
440
+ }
441
+
442
+ interface DateRangePickerLabels {
443
+ /**
444
+ * Name of the preset field, rendered before the select (a `:` is appended by
445
+ * the component). Owners showing more than one date field pass the one that
446
+ * names theirs, e.g. "Due date range".
447
+ */
448
+ fieldLabel: string;
449
+ /** Select placeholder shown while the range matches no preset. */
450
+ presetPlaceholder: string;
451
+ }
452
+
453
+ interface AmountFilterLabels {
454
+ /**
455
+ * Rendered next to the min input. Owners pass the wording that matches their
456
+ * bound semantics — "No less than" for inclusive, "Greater than" for not.
457
+ */
458
+ min: string;
459
+ /** Rendered next to the max input. See {@link min}. */
460
+ max: string;
461
+ /** Amount-mode radio options. */
462
+ modeAny: string;
463
+ modeExact: string;
464
+ modeRange: string;
465
+ /** Flow-direction radio options, shown only when `showFlowDirection`. */
466
+ flowAny: string;
467
+ flowIn: string;
468
+ flowOut: string;
469
+ }
470
+
395
471
  type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
396
472
  children?: ReactNode;
397
473
  };
@@ -718,6 +794,47 @@ declare const USStateAbbreviation: {
718
794
  };
719
795
  type USStateAbbreviation = (typeof USStateAbbreviation)[keyof typeof USStateAbbreviation];
720
796
 
797
+ declare const DOCUMENT_KINDS: readonly ["invoice", "quote", "credit_note"];
798
+ type ReceivableDocumentKind = (typeof DOCUMENT_KINDS)[number];
799
+
800
+ /** Copy every audit-history formatter needs to name who acted on a row. */
801
+ interface AuditHistoryActorLabels {
802
+ /** A template so locales own the wording/order, e.g. "Invoice created by Jane Doe". */
803
+ byActor: (title: string, actorName: string) => string;
804
+ }
805
+ /** Copy and formatting the caller owns, backed by the widget's labels.ts. */
806
+ interface ReceivableAuditHistoryLabels extends AuditHistoryActorLabels {
807
+ dateLabel: (isoDateTime: string) => string;
808
+ timeLabel: (isoDateTime: string) => string;
809
+ /** The noun for a document kind; `unknown` is a kind the payload named that we do not have. */
810
+ documentTypeLabel: (kind: ReceivableDocumentKind | 'unknown') => string;
811
+ /** The display name of a status, with a fallback for values we do not know. */
812
+ statusLabel: (status: string) => string;
813
+ formatAmount: (minorUnits: number, currency: string) => string;
814
+ created: (documentTypeLabel: string) => string;
815
+ recurringSeriesCreated: string;
816
+ duplicatedFrom: (documentNumber: string) => string;
817
+ documentUpdated: string;
818
+ statusUpdated: string;
819
+ changedTo: (statusLabel: string) => string;
820
+ /** The sheet words a quote reaching `expired` on its own, not as "Changed to". */
821
+ quoteExpired: string;
822
+ paymentReceived: string;
823
+ received: (amountLabel: string) => string;
824
+ /** Used when the event names nobody, e.g. a send recorded before addresses were kept. */
825
+ sentToCustomer: (documentTypeLabel: string) => string;
826
+ /** `recipients` is already a joined, display-ready list of addresses. */
827
+ sentToRecipients: (documentTypeLabel: string, recipients: string) => string;
828
+ /** A send the API recorded as failed: no address is claimed to have received it. */
829
+ sendFailed: (documentTypeLabel: string) => string;
830
+ paymentReminderSent: string;
831
+ overdueReminderSent: string;
832
+ /** `days` is 0 on the due date itself. */
833
+ dueInDays: (days: number) => string;
834
+ daysOverdue: (days: number) => string;
835
+ draftDeleted: string;
836
+ }
837
+
721
838
  /**
722
839
  * Which issuing product a card belongs to. A card list shows exactly one
723
840
  * program at a time, and the value selects the endpoint the data-access layer
@@ -2793,6 +2910,1014 @@ type InsightsWidgetPassthroughProps = Pick<InsightsWidgetWithContextProps, 'labe
2793
2910
  interface InsightsWidgetProps extends WidgetProviderProps, InsightsWidgetPassthroughProps {
2794
2911
  }
2795
2912
 
2913
+ interface AddressFieldGroupLabels {
2914
+ line1: string;
2915
+ line2: string;
2916
+ city: string;
2917
+ state: string;
2918
+ statePlaceholder: string;
2919
+ postalCode: string;
2920
+ country: string;
2921
+ /** Fixed country display value (US-only locale in v1). */
2922
+ countryValue: string;
2923
+ /** The asterisk and "(optional)" copy this group's labels carry. */
2924
+ fieldMarkers: LabelLabels;
2925
+ }
2926
+ interface AchFieldGroupLabels {
2927
+ accountHolderName: string;
2928
+ routingNumber: string;
2929
+ accountNumber: string;
2930
+ routingNumberPlaceholder: string;
2931
+ accountNumberPlaceholder: string;
2932
+ /** The asterisk copy this group's labels carry. */
2933
+ fieldMarkers: LabelLabels;
2934
+ }
2935
+ interface CounterpartFormSheetLabels {
2936
+ createTitleOrganization: string;
2937
+ createTitleIndividual: string;
2938
+ editTitleOrganization: string;
2939
+ editTitleIndividual: string;
2940
+ createTitleCustomer: string;
2941
+ createTitleVendor: string;
2942
+ editTitleCustomer: string;
2943
+ editTitleVendor: string;
2944
+ createDescriptionCustomer: string;
2945
+ createDescriptionVendor: string;
2946
+ customerTypeHeading: string;
2947
+ vendorTypeHeading: string;
2948
+ businessTypeOption: string;
2949
+ businessTypeHint: string;
2950
+ personTypeOption: string;
2951
+ personTypeHint: string;
2952
+ profileHeading: string;
2953
+ addressHeading: string;
2954
+ customerAddressDescription: string;
2955
+ legalNameLabel: string;
2956
+ businessNameLabel: string;
2957
+ firstNameLabel: string;
2958
+ lastNameLabel: string;
2959
+ titleLabel: string;
2960
+ emailLabel: string;
2961
+ phoneLabel: string;
2962
+ /** Used by the inline fields; the sheet prefers the SSN/EIN keys and falls back to this. */
2963
+ taxIdLabel: string;
2964
+ taxIdSsnLabel: string;
2965
+ taxIdEinLabel: string;
2966
+ taxIdSsnPlaceholder: string;
2967
+ taxIdEinPlaceholder: string;
2968
+ customerTaxIdHelp: string;
2969
+ vendorTaxIdHelp: string;
2970
+ paymentRemindersLabel: string;
2971
+ paymentRemindersDescription: string;
2972
+ paymentMethodsHeading: string;
2973
+ paymentMethodsDescription: string;
2974
+ /**
2975
+ * @deprecated Superseded by `ach.accountHolderName`. Kept, and still
2976
+ * mapped in, so a consumer already shipping an override for this
2977
+ * already-published flat key doesn't silently lose it — this package is
2978
+ * published standalone, so removing a public field outright is a breaking
2979
+ * change even when nothing internal still reads it directly.
2980
+ */
2981
+ accountHolderNameLabel?: string;
2982
+ /** @deprecated Superseded by `ach.routingNumber`. See `accountHolderNameLabel`. */
2983
+ routingNumberLabel?: string;
2984
+ /** @deprecated Superseded by `ach.accountNumber`. See `accountHolderNameLabel`. */
2985
+ accountNumberLabel?: string;
2986
+ addAddress: string;
2987
+ cancelButton: string;
2988
+ /** @deprecated Superseded by `createButtonCustomer` / `createButtonVendor`. */
2989
+ createButton?: string;
2990
+ createButtonCustomer: string;
2991
+ createButtonVendor: string;
2992
+ saveButton: string;
2993
+ /** Screen-reader name and tooltip of the sheet's close (X) button. */
2994
+ close: string;
2995
+ address: AddressFieldGroupLabels;
2996
+ ach: AchFieldGroupLabels;
2997
+ /** Seeds `address.fieldMarkers` and `ach.fieldMarkers` unless set per group. */
2998
+ fieldMarkers: LabelLabels;
2999
+ /** Rendered by the sheet only, not by the inline field group. */
3000
+ requiredFieldsLegend: RequiredFieldsLegendLabels;
3001
+ }
3002
+
3003
+ /**
3004
+ * Overridable validation / error messages produced by the counterparts feature
3005
+ * layer and surfaced through each form's `errors` prop. Consumers override via
3006
+ * the widget's `messageLabels` prop, merged over {@link COUNTERPART_MESSAGE_LABELS_EN}.
3007
+ */
3008
+ interface CounterpartMessageLabels {
3009
+ legalNameRequired: string;
3010
+ firstNameRequired: string;
3011
+ lastNameRequired: string;
3012
+ emailRequired: string;
3013
+ emailInvalid: string;
3014
+ phoneInvalid: string;
3015
+ taxIdInvalid: string;
3016
+ addressLine1Required: string;
3017
+ cityRequired: string;
3018
+ stateRequired: string;
3019
+ postalCodeRequired: string;
3020
+ accountHolderNameRequired: string;
3021
+ routingNumberInvalid: string;
3022
+ accountNumberInvalid: string;
3023
+ /** Shown for a non-field-specific submit failure. */
3024
+ genericError: string;
3025
+ /** @deprecated Unused; the list labels its own warning. */
3026
+ amountsUnavailable: string;
3027
+ /** Delete confirmation title; `{name}` is replaced with the entity name. */
3028
+ deleteTitle: string;
3029
+ deleteBankAccountTitle: string;
3030
+ deleteBankAccountConfirm: string;
3031
+ deleteCounterpartMessage: string;
3032
+ deleteBankAccountMessage: string;
3033
+ /** @deprecated No longer shown. Use `customerAdded` / `vendorAdded`. */
3034
+ createSucceeded: string;
3035
+ /** @deprecated No longer shown. Use `customerUpdated` / `vendorUpdated`. */
3036
+ updateSucceeded: string;
3037
+ customerAdded: string;
3038
+ vendorAdded: string;
3039
+ customerUpdated: string;
3040
+ vendorUpdated: string;
3041
+ addressAdded: string;
3042
+ addressUpdated: string;
3043
+ bankAccountAdded: string;
3044
+ bankAccountUpdated: string;
3045
+ /**
3046
+ * @deprecated Used only when the delete controller gets no `counterpartType`;
3047
+ * users never see the word "counterpart". Use `customerDeleted` / `vendorDeleted`.
3048
+ */
3049
+ counterpartDeleted: string;
3050
+ customerDeleted: string;
3051
+ vendorDeleted: string;
3052
+ bankAccountDeleted: string;
3053
+ /** Error toast when a counterpart delete fails without an API message. */
3054
+ deleteCounterpartFailed: string;
3055
+ /** Error toast when a bank account delete fails without an API message. */
3056
+ deleteBankAccountFailed: string;
3057
+ }
3058
+
3059
+ interface MeasureUnitsManagerLabels {
3060
+ title: string;
3061
+ hiddenDescription: string;
3062
+ searchPlaceholder: string;
3063
+ searchLabel: string;
3064
+ columnLabel: string;
3065
+ columnDescription: string;
3066
+ noDescription: string;
3067
+ /** @deprecated Unused: placeholders carry format hints only. */
3068
+ namePlaceholder: string;
3069
+ /** @deprecated Unused: placeholders carry format hints only. */
3070
+ descriptionPlaceholder: string;
3071
+ addButton: string;
3072
+ doneButton: string;
3073
+ editAction: string;
3074
+ deleteAction: string;
3075
+ saveAction: string;
3076
+ cancelAction: string;
3077
+ /** @deprecated Use `emptyTitle` and `emptyDescription`. */
3078
+ emptyText: string;
3079
+ emptyTitle: string;
3080
+ emptyDescription: string;
3081
+ searchEmptyTitle: string;
3082
+ searchEmptyDescription: string;
3083
+ loadingLabel: string;
3084
+ errorTitle: string;
3085
+ errorDescription: string;
3086
+ errorRetry: string;
3087
+ moreActionsLabel: string;
3088
+ close: string;
3089
+ createTitle: string;
3090
+ editTitle: string;
3091
+ nameLabel: string;
3092
+ descriptionLabel: string;
3093
+ fieldMarkers: LabelLabels;
3094
+ }
3095
+ interface MeasureUnitDeleteDialogLabels {
3096
+ /** `{name}` is replaced with the unit name. */
3097
+ title: string;
3098
+ /** @deprecated Unused: `messageNoItemsHint` alone covers a unit no product uses. */
3099
+ messageNoItems: string;
3100
+ messageNoItemsHint: string;
3101
+ messageWithItems: string;
3102
+ messageWithItemsHint: string;
3103
+ confirmButton: string;
3104
+ cancelButton: string;
3105
+ /** Screen-reader name and tooltip of the dialog's close (X) button. */
3106
+ close: string;
3107
+ loadingProducts: string;
3108
+ }
3109
+
3110
+ /**
3111
+ * Overridable validation, error and toast messages produced by the products
3112
+ * feature layer and surfaced through the form's `errors` prop, the
3113
+ * measure-units manager and toasts. Consumers override them through
3114
+ * `ProductsWidget`'s `messageLabels` or `ReceivablesWidget`'s
3115
+ * `productMessageLabels`, merged over {@link PRODUCT_MESSAGE_LABELS_EN}.
3116
+ */
3117
+ interface ProductMessageLabels {
3118
+ nameRequired: string;
3119
+ /** Shown when a name exceeds the 100-character limit. */
3120
+ nameTooLong: string;
3121
+ typeRequired: string;
3122
+ priceInvalid: string;
3123
+ /** Shown when a description exceeds the 255-character limit. */
3124
+ descriptionTooLong: string;
3125
+ unitNameRequired: string;
3126
+ /** Shown for a non-field-specific product submit failure. */
3127
+ genericError: string;
3128
+ /** Fallback when creating a measure unit fails without a server message. */
3129
+ createMeasureUnitError: string;
3130
+ /** Fallback when updating a measure unit fails without a server message. */
3131
+ updateMeasureUnitError: string;
3132
+ /** Success toast after creating a product; `{name}` is replaced with its name. */
3133
+ productCreated: string;
3134
+ /** Success toast after editing a product; `{name}` is replaced with its name. */
3135
+ productUpdated: string;
3136
+ /** Success toast after editing a service; `{name}` is replaced with its name. */
3137
+ serviceUpdated: string;
3138
+ /** Success toast after deleting a product; `{name}` is replaced with its name. */
3139
+ productDeleted: string;
3140
+ /** Error toast when a product delete fails; `{name}` is replaced with its name. */
3141
+ deleteProductError: string;
3142
+ /** Success toast after creating a measure unit; `{name}` is replaced with its name. */
3143
+ measureUnitCreated: string;
3144
+ /** Success toast after editing a measure unit; `{name}` is replaced with its name. */
3145
+ measureUnitUpdated: string;
3146
+ /** Success toast after deleting a measure unit; `{name}` is replaced with its name. */
3147
+ measureUnitDeleted: string;
3148
+ /** Error toast when a measure unit delete fails; `{name}` is replaced with its name. */
3149
+ deleteMeasureUnitError: string;
3150
+ }
3151
+
3152
+ declare const InvoicesFilterField: {
3153
+ readonly DueDate: "dueDate";
3154
+ readonly CreatedAt: "createdAt";
3155
+ readonly IssueDate: "issueDate";
3156
+ readonly Status: "status";
3157
+ readonly Amount: "amount";
3158
+ readonly Customer: "customer";
3159
+ };
3160
+ type InvoicesFilterField = (typeof InvoicesFilterField)[keyof typeof InvoicesFilterField];
3161
+ type InvoicesDateFilterField = typeof InvoicesFilterField.DueDate | typeof InvoicesFilterField.CreatedAt | typeof InvoicesFilterField.IssueDate;
3162
+
3163
+ interface InvoicesFilterBarLabels {
3164
+ fields: Record<InvoicesFilterField, string>;
3165
+ searchPlaceholder: string;
3166
+ searchLabel: string;
3167
+ amountMin: string;
3168
+ amountMax: string;
3169
+ customerNameHeading: string;
3170
+ customerSearchPlaceholder: string;
3171
+ customerSearchHint: string;
3172
+ clearAll: string;
3173
+ filterMenuButton: FilterMenuButtonLabels;
3174
+ filterTag: FilterTagLabels;
3175
+ amountFilter: Omit<AmountFilterLabels, 'min' | 'max'>;
3176
+ dateRangePicker: Omit<DateRangePickerLabels, 'fieldLabel'>;
3177
+ }
3178
+ type InvoicesFilterBarLabelOverrides = PartialDeep<InvoicesFilterBarLabels>;
3179
+
3180
+ interface ReceivableActionsModalLabels {
3181
+ issueDescription: string;
3182
+ toLabel: string;
3183
+ subjectLabel: string;
3184
+ messageLabel: string;
3185
+ messagePlaceholder: string;
3186
+ attachmentsLabel: string;
3187
+ attachmentsCaption: string;
3188
+ skipButton: string;
3189
+ sendButton: string;
3190
+ productsQuestion: string;
3191
+ productsCaption: string;
3192
+ productsAllLabel: string;
3193
+ saveItemsButton: string;
3194
+ close: string;
3195
+ }
3196
+
3197
+ interface ReceivableBillingSectionLabels {
3198
+ billingHeading: string;
3199
+ billingDescription: string;
3200
+ paymentTermsLabel: string;
3201
+ paymentTermsPlaceholder: string;
3202
+ paymentTermsReceiptDue: string;
3203
+ paymentTermsCustomDate: string;
3204
+ purchaseOrderLabel: string;
3205
+ purchaseOrderOptional: string;
3206
+ }
3207
+
3208
+ interface ReceivableCustomerSectionLabels {
3209
+ customerHeading: string;
3210
+ customerDescription: string;
3211
+ customerNameLabel: string;
3212
+ customerListToggleButton: string;
3213
+ customerEmailLabel: string;
3214
+ addCustomerDetailsButton: string;
3215
+ viewCustomerDetailsButton: string;
3216
+ clearCustomerButton: string;
3217
+ }
3218
+
3219
+ interface ReceivableRecurrenceSectionLabels {
3220
+ recurrenceRepeatLabel: string;
3221
+ recurrenceMonthDayLead: string;
3222
+ recurrenceWeekdayLead: string;
3223
+ recurrenceStartOnLabel: string;
3224
+ recurrenceEndChoiceLead: string;
3225
+ recurrenceEndCountLead: string;
3226
+ recurrenceDatePlaceholder: string;
3227
+ recurrenceCreationModeQuestion: string;
3228
+ recurrenceCreationModeHint: string;
3229
+ recurrenceSetUpEmail: string;
3230
+ }
3231
+ interface ReceivableRecurrenceEmailDialogLabels {
3232
+ recurrenceEmailTitle: string;
3233
+ recurrenceEmailDescription: string;
3234
+ recurrenceEmailTo: string;
3235
+ recurrenceEmailCc: string;
3236
+ recurrenceEmailBcc: string;
3237
+ recurrenceEmailSubject: string;
3238
+ recurrenceEmailMessage: string;
3239
+ recurrenceEmailRecipientPlaceholder: string;
3240
+ recurrenceEmailMessagePlaceholder: string;
3241
+ recurrenceEmailFootnote: string;
3242
+ recurrenceEmailCancel: string;
3243
+ recurrenceEmailSave: string;
3244
+ recurrenceEmailClose: string;
3245
+ }
3246
+
3247
+ interface ReceivableStatusBadgeLabels {
3248
+ draft: string;
3249
+ issuing: string;
3250
+ issued: string;
3251
+ failed: string;
3252
+ accepted: string;
3253
+ expired: string;
3254
+ declined: string;
3255
+ recurring: string;
3256
+ partially_paid: string;
3257
+ paid: string;
3258
+ overdue: string;
3259
+ uncollectible: string;
3260
+ canceled: string;
3261
+ deleted: string;
3262
+ unknown: string;
3263
+ }
3264
+
3265
+ interface ReceivablesScreenLabels {
3266
+ createInvoiceButton: string;
3267
+ /** The settings button's accessible name and tooltip. */
3268
+ settingsButton: string;
3269
+ statusCardsAll: string;
3270
+ columnDueDate: string;
3271
+ columnStatus: string;
3272
+ columnNumber: string;
3273
+ columnCustomer: string;
3274
+ columnIssueDate: string;
3275
+ columnAmount: string;
3276
+ /**
3277
+ * A focused row's accessible name. The row itself is the control that
3278
+ * opens it, so the name says what Enter does. A template so locales own the
3279
+ * wording and order.
3280
+ */
3281
+ openRow: (documentLabel: string) => string;
3282
+ sortByDueDate: string;
3283
+ sortByStatus: string;
3284
+ sortByNumber: string;
3285
+ sortByIssueDate: string;
3286
+ sortByAmount: string;
3287
+ emptyTitle: string;
3288
+ emptyDescription: string;
3289
+ filterEmptyTitle: string;
3290
+ errorTitle: string;
3291
+ errorDescription: string;
3292
+ errorRetry: string;
3293
+ accessRestrictedTitle: string;
3294
+ accessRestrictedDescription: string;
3295
+ statusBadge: ReceivableStatusBadgeLabels;
3296
+ }
3297
+ type ReceivablesScreenLabelOverrides = Partial<Omit<ReceivablesScreenLabels, 'statusBadge'>> & {
3298
+ statusBadge?: Partial<ReceivableStatusBadgeLabels>;
3299
+ };
3300
+ interface UnsavedInvoiceDialogLabels {
3301
+ unsavedTitle: string;
3302
+ unsavedDescription: string;
3303
+ unsavedDiscardButton: string;
3304
+ unsavedSaveDraftButton: string;
3305
+ unsavedCloseButton: string;
3306
+ }
3307
+ interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, ReceivableCustomerSectionLabels, ReceivableRecurrenceSectionLabels, ReceivableRecurrenceEmailDialogLabels, UnsavedInvoiceDialogLabels {
3308
+ createTitle: string;
3309
+ createDescription: string;
3310
+ editTitle: string;
3311
+ editDescription: string;
3312
+ closeButton: string;
3313
+ dueDateLabel: string;
3314
+ lineItemsHeading: string;
3315
+ lineItemsDescription: string;
3316
+ productLabel: string;
3317
+ quantityLabel: string;
3318
+ unitLabel: string;
3319
+ unitPlaceholder: string;
3320
+ unitNone: string;
3321
+ manageUnitsOption: string;
3322
+ priceLabel: string;
3323
+ taxableLabel: string;
3324
+ taxRateLabel: string;
3325
+ taxRatePlaceholder: string;
3326
+ taxRateSuffix: string;
3327
+ discountLabel: string;
3328
+ discountPercentageOption: string;
3329
+ discountAmountOptionAriaLabel: string;
3330
+ discountPercentageOptionAriaLabel: string;
3331
+ subtotalLabel: string;
3332
+ discountTotalLabel: string;
3333
+ nonTaxableSubtotalLabel: string;
3334
+ taxableSubtotalLabel: string;
3335
+ taxTotalLabel: string;
3336
+ totalLabel: string;
3337
+ decreaseQuantityButton: string;
3338
+ increaseQuantityButton: string;
3339
+ addLineItemButton: string;
3340
+ removeLineItemButton: string;
3341
+ cancelButton: string;
3342
+ notesHeading: string;
3343
+ notesDescription: string;
3344
+ optionalSuffix: string;
3345
+ openingNoteLabel: string;
3346
+ openingNotePlaceholder: string;
3347
+ openingNoteDescription: string;
3348
+ closingNoteLabel: string;
3349
+ closingNotePlaceholder: string;
3350
+ closingNoteDescription: string;
3351
+ bankAccountHeading: string;
3352
+ bankAccountDescription: string;
3353
+ bankAccountLabel: string;
3354
+ bankAccountHint: string;
3355
+ bankAccountSelectorLabel: string;
3356
+ bankAccountPlaceholder: string;
3357
+ bankAccountAddOption: string;
3358
+ bankAccountFormHeading: string;
3359
+ bankAccountRoutingNumberLabel: string;
3360
+ bankAccountRoutingNumberPlaceholder: string;
3361
+ bankAccountAccountNumberLabel: string;
3362
+ bankAccountAccountNumberPlaceholder: string;
3363
+ bankAccountHolderNameLabel: string;
3364
+ bankAccountHolderNamePlaceholder: string;
3365
+ bankAccountNicknameLabel: string;
3366
+ bankAccountNicknamePlaceholder: string;
3367
+ bankAccountCancelButton: string;
3368
+ bankAccountSaveButton: string;
3369
+ bankAccountRestrictedTitle: string;
3370
+ bankAccountRestrictedDescription: string;
3371
+ attachmentsHeading: string;
3372
+ attachmentsDescription: string;
3373
+ attachmentsDropPrompt: string;
3374
+ attachmentsBrowseLink: string;
3375
+ attachmentsFormatsHint: string;
3376
+ remindersToggleLabel: string;
3377
+ remindersDescription: string;
3378
+ remindersLibraryNote: string;
3379
+ reminderNumberOfDays: string;
3380
+ reminderBefore: string;
3381
+ reminderAfter: string;
3382
+ reminderDueDate: string;
3383
+ reminderNone: string;
3384
+ reminderBeforeDueInputLabel: string;
3385
+ reminderPlaceholder: string;
3386
+ reminderAddTermButton: string;
3387
+ reminderClearButton: string;
3388
+ reminderSaveButton: string;
3389
+ }
3390
+ interface ReceivableDetailsPanelLabels {
3391
+ hiddenDescription: string;
3392
+ loadingTitle: string;
3393
+ moreActionsLabel: string;
3394
+ viewPdfButton: string;
3395
+ closeButton: string;
3396
+ invoiceDateCaption: string;
3397
+ paymentHistoryHeading: string;
3398
+ paymentHistoryEmpty: string;
3399
+ paymentHistoryTotalLabel: string;
3400
+ paymentHistoryLoading: string;
3401
+ customerDetailsHeading: string;
3402
+ recurringAmountCaption: string;
3403
+ startsOnCaption: string;
3404
+ endsOnCaption: string;
3405
+ recurringSeriesRowLabel: string;
3406
+ scheduleIssueDateColumn: string;
3407
+ scheduleAmountColumn: string;
3408
+ scheduleStatusColumn: string;
3409
+ scheduleNumberColumn: string;
3410
+ scheduleEmpty: string;
3411
+ auditHistoryHeading: string;
3412
+ auditHistoryEmpty: string;
3413
+ auditHistoryLoading: string;
3414
+ auditHistoryError: string;
3415
+ auditHistoryNamesError: string;
3416
+ billingHeading: string;
3417
+ lineItemsHeading: string;
3418
+ notesHeading: string;
3419
+ notesOpeningLabel: string;
3420
+ notesClosingLabel: string;
3421
+ attachmentsHeading: string;
3422
+ attachmentsEmpty: string;
3423
+ attachmentsFileColumn: string;
3424
+ attachmentsEmailedColumn: string;
3425
+ lineItemMultiplier: string;
3426
+ lineItemEaLabel: string;
3427
+ noLineItems: string;
3428
+ editButton: string;
3429
+ issueButton: string;
3430
+ issueAndSendButton: string;
3431
+ recordPaymentButton: string;
3432
+ sendButton: string;
3433
+ acceptButton: string;
3434
+ declineButton: string;
3435
+ markPaidButton: string;
3436
+ markUncollectibleButton: string;
3437
+ cancelButton: string;
3438
+ cloneButton: string;
3439
+ deleteButton: string;
3440
+ pauseRecurrenceButton: string;
3441
+ resumeRecurrenceButton: string;
3442
+ cancelRecurrenceButton: string;
3443
+ recurringBadge: string;
3444
+ }
3445
+ type ReceivableDetailsPanelLabelOverrides = Partial<ReceivableDetailsPanelLabels>;
3446
+ interface ReceivablePaymentDialogLabels {
3447
+ title: string;
3448
+ amountLabel: string;
3449
+ amountPlaceholder: string;
3450
+ fullAmountDuePrefix: string;
3451
+ dateLabel: string;
3452
+ datePlaceholder: string;
3453
+ timeLabel: string;
3454
+ timeZoneSuffix: string;
3455
+ cancelButton: string;
3456
+ saveButton: string;
3457
+ reviewTitle: string;
3458
+ receivedLabel: string;
3459
+ referenceLabel: string;
3460
+ createdByLabel: string;
3461
+ reviewWarning: string;
3462
+ editRecordButton: string;
3463
+ confirmButton: string;
3464
+ close: string;
3465
+ }
3466
+ interface ReceivableActionDialogLabels {
3467
+ cancelButton: string;
3468
+ confirmButton: string;
3469
+ commentLabel: string;
3470
+ commentPlaceholder: string;
3471
+ close: string;
3472
+ }
3473
+
3474
+ type ReceivableDocumentType = ReceivableDocumentKind;
3475
+
3476
+ interface ReceivablePreviewLabels {
3477
+ title: string;
3478
+ noLogo: string;
3479
+ billToHeading: string;
3480
+ detailsHeading: string;
3481
+ invoiceNumberLabel: string;
3482
+ invoiceDateLabel: string;
3483
+ dueDateLabel: string;
3484
+ paymentTermsLabel: string;
3485
+ purchaseOrderLabel: string;
3486
+ pending: string;
3487
+ descriptionColumn: string;
3488
+ quantityColumn: string;
3489
+ priceColumn: string;
3490
+ taxableColumn: string;
3491
+ amountColumn: string;
3492
+ noItems: string;
3493
+ payOnline: string;
3494
+ paymentQrCodeLabel: string;
3495
+ }
3496
+
3497
+ declare const InvoicesDatePreset: {
3498
+ readonly Today: "today";
3499
+ readonly ThisWeek: "this_week";
3500
+ readonly ThisMonth: "this_month";
3501
+ readonly ThisQuarter: "this_quarter";
3502
+ readonly ThisYear: "this_year";
3503
+ readonly Yesterday: "yesterday";
3504
+ readonly LastWeek: "last_week";
3505
+ readonly LastMonth: "last_month";
3506
+ readonly Last30Days: "last_30_days";
3507
+ readonly Last90Days: "last_90_days";
3508
+ readonly LastQuarter: "last_quarter";
3509
+ readonly LastYear: "last_year";
3510
+ };
3511
+ type InvoicesDatePreset = (typeof InvoicesDatePreset)[keyof typeof InvoicesDatePreset];
3512
+
3513
+ interface InvoicesFilterLabels {
3514
+ presets: Record<InvoicesDatePreset, string>;
3515
+ presetGroupCurrent: string;
3516
+ presetGroupPast: string;
3517
+ dateFieldNames: Record<InvoicesDateFilterField, string>;
3518
+ dateRange: (from: string, to: string) => string;
3519
+ dateFrom: (from: string) => string;
3520
+ dateTo: (to: string) => string;
3521
+ /** Shown under a status option; a status with no entry shows none. */
3522
+ statusDescriptions: Partial<Record<string, string>>;
3523
+ dateChip: (fieldLabel: string, range: string) => string;
3524
+ statusChip: (value: string) => string;
3525
+ moreSelected: (first: string, count: number) => string;
3526
+ customerChip: (name: string) => string;
3527
+ amountChip: (range: string) => string;
3528
+ amountAtLeast: (amount: string) => string;
3529
+ amountAtMost: (amount: string) => string;
3530
+ amountBetween: (min: string, max: string) => string;
3531
+ searchChip: (value: string) => string;
3532
+ }
3533
+ type InvoicesFilterLabelOverrides = PartialDeep<InvoicesFilterLabels>;
3534
+
3535
+ interface ReceivableMessageLabels {
3536
+ customerRequired: string;
3537
+ customerEmailInvalid: string;
3538
+ customerPickerPlaceholder: string;
3539
+ customerPickerSearchOnlyPlaceholder: string;
3540
+ customerPickerEmpty: string;
3541
+ customerPickerSearchOnlyEmpty: string;
3542
+ customerPickerLoading: string;
3543
+ customerPickerLoadFailed: string;
3544
+ customerPickerMoreMatches: string;
3545
+ customerPickerDescription: string;
3546
+ customerPickerSearchOnlyDescription: string;
3547
+ currencyRequired: string;
3548
+ lineItemNameTooLong: string;
3549
+ /** `{maxAmount}` is replaced with the formatted cap. */
3550
+ lineItemPriceTooHigh: string;
3551
+ discountPercentageTooHigh: string;
3552
+ discountExceedsSubtotal: string;
3553
+ /** `{maxAmount}` is replaced with the formatted cap. */
3554
+ invoiceSubtotalTooHigh: string;
3555
+ /** `{maxAmount}` is replaced with the formatted cap. */
3556
+ invoiceTotalTooHigh: string;
3557
+ invoiceTotalZero: string;
3558
+ paymentRecordAmountRequired: string;
3559
+ paymentRecordAmountNegative: string;
3560
+ paymentRecordAmountZero: string;
3561
+ paymentRecordDateRequired: string;
3562
+ paymentRecordTimeRequired: string;
3563
+ /** `{name}` is replaced with the customer's name. */
3564
+ paymentRecordFrom: string;
3565
+ paymentRecordCreated: string;
3566
+ /** `{errorMessage}` is replaced with the API's reason. */
3567
+ paymentRecordCreateFailed: string;
3568
+ genericError: string;
3569
+ lineItemsLoading: string;
3570
+ paymentTermsCustomDatePlaceholder: string;
3571
+ bankAccountFallbackName: string;
3572
+ /** `{embeddedBankName}` is replaced with the host's bank name. */
3573
+ bankAccountPoweredBy: string;
3574
+ bankAccountLinked: string;
3575
+ bankAccountHolderNameRequired: string;
3576
+ bankAccountHolderNameTooLong: string;
3577
+ bankAccountNumberRequired: string;
3578
+ bankAccountNumberDigitsOnly: string;
3579
+ bankAccountNumberTooShort: string;
3580
+ bankAccountNumberTooLong: string;
3581
+ bankAccountRoutingNumberRequired: string;
3582
+ bankAccountRoutingNumberInvalid: string;
3583
+ bankAccountNicknameTooLong: string;
3584
+ /** `{name}` is replaced with the new account's nickname. */
3585
+ bankAccountCreated: string;
3586
+ bankAccountCreateFailed: string;
3587
+ untitledDocument: string;
3588
+ /** Shown in an invoice row's number and date cells while they have no value. */
3589
+ pendingValue: string;
3590
+ /** The Number cell of a recurring row the series has not numbered. */
3591
+ recurringNumber: string;
3592
+ /** `{days}` is replaced. */
3593
+ listDayOverdue: string;
3594
+ listDaysOverdue: string;
3595
+ unknownCustomer: string;
3596
+ notAvailable: string;
3597
+ invoiceType: string;
3598
+ quoteType: string;
3599
+ creditNoteType: string;
3600
+ detailsUnsupportedTitle: string;
3601
+ /** `{type}` is replaced with the receivable's API type. */
3602
+ detailsUnsupportedDescription: string;
3603
+ detailsNotFoundTitle: string;
3604
+ /** `{invoiceId}` is replaced with the requested invoice ID. */
3605
+ detailsNotFoundDescription: string;
3606
+ /** `{number}` is replaced with the invoice number. */
3607
+ detailsInvoiceSubtitle: string;
3608
+ /** `{days}` is replaced with the number of days. */
3609
+ detailsDaysOverdue: string;
3610
+ detailsInvoiceAmount: string;
3611
+ detailsBalanceDue: string;
3612
+ detailsAmountReceived: string;
3613
+ detailsCancelledAmount: string;
3614
+ detailsSendButton: string;
3615
+ detailsResendButton: string;
3616
+ detailsAmountWrittenOff: string;
3617
+ detailsCancelledOnCaption: string;
3618
+ detailsPending: string;
3619
+ detailsNotProvided: string;
3620
+ detailsCustomerName: string;
3621
+ detailsCustomerEmail: string;
3622
+ detailsCustomerPhone: string;
3623
+ detailsCustomerAddress: string;
3624
+ detailsInvoiceNumber: string;
3625
+ detailsInvoiceDate: string;
3626
+ detailsDueDate: string;
3627
+ detailsPaymentTerms: string;
3628
+ detailsPaymentReminders: string;
3629
+ detailsPoNumber: string;
3630
+ detailsDepositAccount: string;
3631
+ detailsRemindersBefore: string;
3632
+ detailsRemindersAfter: string;
3633
+ detailsRemindersNone: string;
3634
+ detailsFrequency: string;
3635
+ detailsFrequencyDay: string;
3636
+ detailsFrequencyWeek: string;
3637
+ detailsFrequencyMonth: string;
3638
+ detailsFrequencyQuarter: string;
3639
+ detailsFrequencyYear: string;
3640
+ detailsPeriodDay: string;
3641
+ detailsPeriodWeek: string;
3642
+ detailsPeriodMonth: string;
3643
+ detailsPeriodQuarter: string;
3644
+ detailsPeriodYear: string;
3645
+ /** `{name}` and `{frequency}` are replaced, e.g. "Acme - Monthly". */
3646
+ detailsSeriesTitle: string;
3647
+ detailsSeriesSubtitle: string;
3648
+ /** `{frequency}` is replaced, e.g. "Monthly schedule". */
3649
+ detailsScheduleTitle: string;
3650
+ /** `{title}` is replaced with the series title. */
3651
+ detailsSeriesBack: string;
3652
+ /** `{number}` is replaced with the invoice number. */
3653
+ detailsScheduleOpenInvoice: string;
3654
+ detailsSeriesStatusActive: string;
3655
+ detailsSeriesStatusPaused: string;
3656
+ detailsSeriesStatusCanceled: string;
3657
+ detailsSeriesStatusCompleted: string;
3658
+ detailsIterationStatusPending: string;
3659
+ detailsIterationStatusSkipped: string;
3660
+ detailsIterationStatusCanceled: string;
3661
+ detailsIterationStatusIssueFailed: string;
3662
+ detailsIterationStatusSendFailed: string;
3663
+ detailsIterationStatusCompleted: string;
3664
+ issueSucceeded: string;
3665
+ acceptTitle: string;
3666
+ acceptDescription: string;
3667
+ acceptConfirm: string;
3668
+ declineTitle: string;
3669
+ declineDescription: string;
3670
+ declineConfirm: string;
3671
+ issueFailed: string;
3672
+ unrecognizedError: string;
3673
+ sendNoEmail: string;
3674
+ cancelTitle: string;
3675
+ /** `{number}` is replaced with the invoice number. */
3676
+ cancelNumberedTitle: string;
3677
+ cancelClose: string;
3678
+ cancelDescription: string;
3679
+ cancelConfirm: string;
3680
+ cancelSucceeded: string;
3681
+ cloneSuccess: string;
3682
+ cloneError: string;
3683
+ deleteTitle: string;
3684
+ /** `{number}` is replaced with the invoice number. */
3685
+ deleteNumberedTitle: string;
3686
+ deleteDescription: string;
3687
+ deleteConfirm: string;
3688
+ deleteSucceeded: string;
3689
+ markPaidTitle: string;
3690
+ markPaidDescription: string;
3691
+ markPaidConfirm: string;
3692
+ markUncollectibleTitle: string;
3693
+ markUncollectibleDescription: string;
3694
+ markUncollectibleConfirm: string;
3695
+ markUncollectibleSucceeded: string;
3696
+ /** `{customer}` is replaced with the customer's name. */
3697
+ createSucceeded: string;
3698
+ updateSucceeded: string;
3699
+ recurrenceActivated: string;
3700
+ recurrenceUpdated: string;
3701
+ cancelRecurrenceTitle: string;
3702
+ cancelRecurrenceQuestion: string;
3703
+ cancelRecurrenceFutureIterations: string;
3704
+ /** `{count}`, `{invoices}` and `{amount}` are replaced. */
3705
+ cancelRecurrenceTotal: string;
3706
+ cancelRecurrenceInvoice: string;
3707
+ cancelRecurrenceInvoices: string;
3708
+ cancelRecurrenceIrreversible: string;
3709
+ cancelRecurrenceConfirm: string;
3710
+ cancelRecurrenceClose: string;
3711
+ recurrencePaused: string;
3712
+ recurrenceResumed: string;
3713
+ recurrenceCanceled: string;
3714
+ attachmentsEmailCaption: string;
3715
+ attachmentsRecurringEmailCaption: string;
3716
+ attachmentIncludeInEmail: string;
3717
+ attachmentRemove: string;
3718
+ attachmentUploading: string;
3719
+ attachmentUploadFailed: string;
3720
+ attachmentTooLarge: string;
3721
+ attachmentUnsupportedType: string;
3722
+ attachmentsCountLimit: string;
3723
+ attachmentIncludedInEmail: string;
3724
+ attachmentNotIncludedInEmail: string;
3725
+ recurrenceSeriesPaymentTerms: string;
3726
+ recurrenceFrequencyOnce: string;
3727
+ recurrenceFrequencyDaily: string;
3728
+ recurrenceFrequencyWeekly: string;
3729
+ recurrenceFrequencyMonthly: string;
3730
+ recurrenceFrequencyQuarterly: string;
3731
+ recurrenceFrequencyAnnually: string;
3732
+ recurrenceFirstDay: string;
3733
+ recurrenceLastDay: string;
3734
+ recurrenceMonthDayTrail: string;
3735
+ recurrenceMonthEdgeTrail: string;
3736
+ recurrenceWeekdayMo: string;
3737
+ recurrenceWeekdayTu: string;
3738
+ recurrenceWeekdayWe: string;
3739
+ recurrenceWeekdayTh: string;
3740
+ recurrenceWeekdayFr: string;
3741
+ recurrenceWeekdaySa: string;
3742
+ recurrenceWeekdaySu: string;
3743
+ recurrenceEndAfter: string;
3744
+ recurrenceEndOn: string;
3745
+ recurrenceUnitDay: string;
3746
+ recurrenceUnitDays: string;
3747
+ recurrenceUnitWeek: string;
3748
+ recurrenceUnitWeeks: string;
3749
+ recurrenceUnitMonth: string;
3750
+ recurrenceUnitMonths: string;
3751
+ recurrenceUnitQuarter: string;
3752
+ recurrenceUnitQuarters: string;
3753
+ recurrenceUnitYear: string;
3754
+ recurrenceUnitYears: string;
3755
+ recurrenceLastDayCaption: string;
3756
+ recurrenceModeIssueAndSendTitle: string;
3757
+ recurrenceModeIssueAndSendDescription: string;
3758
+ recurrenceModeIssueTitle: string;
3759
+ recurrenceModeIssueDescription: string;
3760
+ recurrenceModeDraftTitle: string;
3761
+ recurrenceModeDraftDescription: string;
3762
+ recurrenceNoRecipients: string;
3763
+ /** `{recipient}` is replaced with the address. */
3764
+ recurrenceRemoveRecipient: string;
3765
+ recurrenceActivateButton: string;
3766
+ recurrenceUpdateButton: string;
3767
+ saveDraftButton: string;
3768
+ updateDraftButton: string;
3769
+ issueButton: string;
3770
+ recurrenceStartDateRequired: string;
3771
+ recurrenceDayOfMonthRequired: string;
3772
+ recurrenceDayOfWeekRequired: string;
3773
+ recurrenceEndConditionRequired: string;
3774
+ recurrenceEndDateRequired: string;
3775
+ /** `{units}` is replaced with the plural unit, e.g. "months". */
3776
+ recurrenceOccurrencesRequired: string;
3777
+ /** `{unit}` is replaced with the singular unit, e.g. "month". */
3778
+ recurrenceOccurrencesTooFew: string;
3779
+ /** `{units}` is replaced with the plural unit. */
3780
+ recurrenceOccurrencesTooMany: string;
3781
+ recurrenceOccurrencesWhole: string;
3782
+ /** `{count}` is replaced with how many invoices the series has issued. */
3783
+ recurrenceOccurrencesBelowIssued: string;
3784
+ recurrenceSubjectRequired: string;
3785
+ recurrenceMessageRequired: string;
3786
+ recurrenceRecipientRequired: string;
3787
+ /** `{address}` is replaced with the rejected address. */
3788
+ recurrenceInvalidEmail: string;
3789
+ reminderUnitDay: string;
3790
+ reminderUnitDays: string;
3791
+ /** `{days}` is replaced with the number of days. */
3792
+ reminderNameDay: string;
3793
+ /** `{days}` is replaced with the number of days. */
3794
+ reminderNameDays: string;
3795
+ reminderNameAnd: string;
3796
+ reminderBeforeDueCaption: string;
3797
+ reminderOverdueCaption: string;
3798
+ reminderOverdueEmptyCaption: string;
3799
+ /** `{index}` is replaced with the term's position, starting at 1. */
3800
+ reminderOverdueTermLabel: string;
3801
+ /** `{min}` and `{max}` are replaced with the accepted range. */
3802
+ reminderDaysRange: string;
3803
+ reminderPastDueWarning: string;
3804
+ reminderAdded: string;
3805
+ reminderBeforeDueSubject: string;
3806
+ /** `{dueDate}` is replaced with the invoice's due date. */
3807
+ reminderBeforeDueBody: string;
3808
+ reminderBeforeDueBodyNoDate: string;
3809
+ reminderOverdueSubject: string;
3810
+ /** `{dueDate}` is replaced with the invoice's due date. */
3811
+ reminderOverdueBody: string;
3812
+ reminderOverdueBodyNoDate: string;
3813
+ issueRemindersDisabled: string;
3814
+ issueRemindersNoEmail: string;
3815
+ issueRemindersDisabledNoEmail: string;
3816
+ lineItemNameRequired: string;
3817
+ lineItemQuantityRequired: string;
3818
+ lineItemsRequired: string;
3819
+ paymentTermsRequired: string;
3820
+ bankAccountRequired: string;
3821
+ issueTaxIdRequired: string;
3822
+ issueBankAccountUnavailable: string;
3823
+ issueChecksLoading: string;
3824
+ attachmentsUploading: string;
3825
+ issueFailedAfterSave: string;
3826
+ /** `{errorMessage}` is replaced with the API's reason. */
3827
+ createFailed: string;
3828
+ /** `{errorMessage}` is replaced with the API's reason. */
3829
+ updateFailed: string;
3830
+ unknownError: string;
3831
+ /** `{message}` is the first reasons, `{count}` how many more there are. */
3832
+ apiErrorsSummary: string;
3833
+ /** `{name}` is replaced with the customer's name. */
3834
+ actionsIssueTitle: string;
3835
+ /** `{name}` is replaced with the customer's name. */
3836
+ actionsResendTitle: string;
3837
+ actionsIssueDismiss: string;
3838
+ actionsResendDismiss: string;
3839
+ /** `{documentId}` and `{name}` are replaced with the invoice number and customer name. */
3840
+ actionsSubjectWithNumber: string;
3841
+ /** `{name}` is replaced with the customer's name. */
3842
+ actionsSubject: string;
3843
+ actionsSendSucceeded: string;
3844
+ actionsSendFailed: string;
3845
+ /** @deprecated Unused: the backend creates the payment link on issue, so the browser no longer decides. Kept so existing overrides still compile. */
3846
+ actionsSendWithoutPaymentLink: string;
3847
+ /** @deprecated Unused: sending no longer checks a payment-link scope. Kept so existing overrides still compile. */
3848
+ actionsSendWithoutPaymentLinkScope: string;
3849
+ actionsTitleSent: string;
3850
+ actionsTitleIssued: string;
3851
+ actionsTitleRecurrence: string;
3852
+ actionsTitleDraft: string;
3853
+ actionsTitleUpdated: string;
3854
+ actionsSelectAll: string;
3855
+ actionsDeselectAll: string;
3856
+ actionsProductsSaved: string;
3857
+ actionsProductsSaveFailed: string;
3858
+ /** `{taxId}` is replaced with the party's tax ID. */
3859
+ previewTaxId: string;
3860
+ previewTaxableYes: string;
3861
+ previewTaxableNo: string;
3862
+ previewSubtotal: string;
3863
+ previewDiscount: string;
3864
+ previewNonTaxableSubtotal: string;
3865
+ previewTaxableSubtotal: string;
3866
+ previewTax: string;
3867
+ /** `{rate}` is replaced with the tax rate, e.g. "6.25". */
3868
+ previewTaxWithRate: string;
3869
+ previewTotal: string;
3870
+ previewDueOnReceipt: string;
3871
+ /** `{days}` is replaced with the term's number of days. */
3872
+ previewNetDays: string;
3873
+ /** `{days}` is replaced with the early-payment window. */
3874
+ previewEarlyPaymentDays: string;
3875
+ /** `{rate}` is replaced with the early-payment discount percentage. */
3876
+ previewEarlyPaymentDiscount: string;
3877
+ /** `{value}` is replaced with the account holder's name. */
3878
+ previewAccountHolderName: string;
3879
+ /** `{value}` is replaced with the routing number. */
3880
+ previewRoutingNumber: string;
3881
+ /** `{value}` is replaced with the account number. */
3882
+ previewAccountNumber: string;
3883
+ /** `{name}` is replaced with the issuer's name. */
3884
+ previewLogoAlt: string;
3885
+ previewLogoAltNoName: string;
3886
+ }
3887
+
3888
+ interface ReceivablesWidgetOwnProps {
3889
+ /** Sponsor bank shown as "Powered by {bank}" beside embedded accounts. */
3890
+ embeddedBankName?: string;
3891
+ /** Rendered at the start of the header row. The widget renders no heading of its own (embedded ADR 0010), so pass the page title here. */
3892
+ headerStart?: ReactNode;
3893
+ initialView?: 'create';
3894
+ /** Preselects this customer in the create form with `initialView: 'create'`; otherwise filters the invoice list to them. */
3895
+ initialCounterpartId?: string;
3896
+ pageSizeOptions?: number[];
3897
+ onReceivableCreated?: (id: string, type: ReceivableDocumentType) => void;
3898
+ onReceivableOpened?: (id: string, type: ReceivableDocumentType) => void;
3899
+ /** Shows an invoice settings button in the header for users holding `organization_settings:write:org`. */
3900
+ onTemplateSettingsClick?: () => void;
3901
+ screenLabels?: ReceivablesScreenLabelOverrides;
3902
+ filterBarLabels?: InvoicesFilterBarLabelOverrides;
3903
+ filterLabels?: InvoicesFilterLabelOverrides;
3904
+ formLabels?: Partial<ReceivableFormDialogLabels>;
3905
+ previewLabels?: Partial<ReceivablePreviewLabels>;
3906
+ detailsLabels?: ReceivableDetailsPanelLabelOverrides;
3907
+ auditHistoryLabels?: Partial<ReceivableAuditHistoryLabels>;
3908
+ paymentLabels?: Partial<ReceivablePaymentDialogLabels>;
3909
+ actionLabels?: Partial<ReceivableActionDialogLabels>;
3910
+ actionsModalLabels?: Partial<ReceivableActionsModalLabels>;
3911
+ counterpartFormLabels?: PartialDeep<CounterpartFormSheetLabels>;
3912
+ measureUnitsLabels?: PartialDeep<MeasureUnitsManagerLabels>;
3913
+ measureUnitDeleteLabels?: Partial<MeasureUnitDeleteDialogLabels>;
3914
+ messageLabels?: Partial<ReceivableMessageLabels>;
3915
+ productMessageLabels?: Partial<ProductMessageLabels>;
3916
+ counterpartMessageLabels?: Partial<CounterpartMessageLabels>;
3917
+ }
3918
+
3919
+ type ReceivablesWidgetProps = WidgetProviderProps & ReceivablesWidgetOwnProps;
3920
+
2796
3921
  interface Labels$1 {
2797
3922
  title: string;
2798
3923
  connectButton: string;
@@ -3441,6 +4566,7 @@ type WidgetSuiteTransfersLabels = WidgetLabelProps<TransfersWidgetProps>;
3441
4566
  type WidgetSuiteLinkedAccountsLabels = WidgetLabelProps<LinkedAccountsWidgetProps>;
3442
4567
  type WidgetSuiteSettingsLabels = WidgetLabelProps<SettingsWidgetProps>;
3443
4568
  type WidgetSuiteExpensesLabels = WidgetLabelProps<ExpenseManagementWidgetProps>;
4569
+ type WidgetSuiteInvoicingLabels = WidgetLabelProps<ReceivablesWidgetProps>;
3444
4570
  /** The widgets the Dashboard section holds, each taking its own copy. */
3445
4571
  interface WidgetSuiteDashboardLabels {
3446
4572
  balanceHistory?: WidgetSuiteBalanceHistoryLabels;
@@ -3468,11 +4594,9 @@ interface WidgetSuiteCardsLabels {
3468
4594
  * A group is shaped as the override its widget accepts, so it is handed down by
3469
4595
  * reference rather than remapped key by key.
3470
4596
  *
3471
- * Two sections have no group. Invoicing takes its copy as separate per-screen
3472
- * label props rather than one `labels` object, so the shape of its group is
3473
- * still an open public API decision. Bill Pay is native, but
3474
- * `BillPayWidget` does not publish its `labels` yet. Each gets a group when it
3475
- * can take one, and adding a group to an already-optional tree breaks nobody.
4597
+ * Bill Pay has no group: it is native, but `BillPayWidget` does not publish its
4598
+ * `labels` yet. It gets one when it can take one, and adding a group to an
4599
+ * already-optional tree breaks nobody.
3476
4600
  */
3477
4601
  interface WidgetSuiteSectionContentLabels {
3478
4602
  dashboard: WidgetSuiteDashboardLabels;
@@ -3480,6 +4604,7 @@ interface WidgetSuiteSectionContentLabels {
3480
4604
  cards: WidgetSuiteCardsLabels;
3481
4605
  transfers?: WidgetSuiteTransfersLabels;
3482
4606
  linkedAccounts?: WidgetSuiteLinkedAccountsLabels;
4607
+ invoicing?: WidgetSuiteInvoicingLabels;
3483
4608
  expenses?: WidgetSuiteExpensesLabels;
3484
4609
  settings?: WidgetSuiteSettingsLabels;
3485
4610
  }
@@ -3652,4 +4777,4 @@ interface WidgetSuiteProps extends WidgetProviderProps {
3652
4777
  declare function WidgetSuite({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: WidgetSuiteProps): React.JSX.Element;
3653
4778
 
3654
4779
  export { WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetSuite, WidgetSuiteSectionId };
3655
- export type { WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteQuickActionsLabels, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels };
4780
+ export type { WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteInvoicingLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteQuickActionsLabels, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels };