agl 43.13.0 → 43.14.0
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/changelog.md +6 -0
- package/dist_serve/bundle.js +188 -188
- package/dist_serve/bundle.js.map +2 -2
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/classes.mcpclient.js +4 -3
- package/dist_ts/classes.mcpcontrollerhost.js +3 -2
- package/dist_ts/classes.ticketstore.d.ts +5 -3
- package/dist_ts/classes.ticketstore.js +7 -2
- package/dist_ts/functions.deviceapi.js +5 -3
- package/dist_ts_interfaces/tickets.d.ts +9 -1
- package/dist_ts_interfaces/tickets.js +11 -2
- package/package.json +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/classes.mcpclient.ts +3 -2
- package/ts/classes.mcpcontrollerhost.ts +2 -1
- package/ts/classes.ticketstore.ts +11 -4
- package/ts/functions.deviceapi.ts +4 -2
- package/ts_interfaces/tickets.ts +12 -2
- package/ts_web/00_commitinfo_data.ts +1 -1
package/ts_interfaces/tickets.ts
CHANGED
|
@@ -503,6 +503,16 @@ export const ticketPageErrorMessages = {
|
|
|
503
503
|
ticket_cursor_invalid: 'The cursor is not the nextCursor of a ticket page; list again without cursor.',
|
|
504
504
|
ticket_cursor_mismatch: 'The cursor pages other filters, another sort or another view; repeat those or list again without cursor.',
|
|
505
505
|
} as const;
|
|
506
|
-
|
|
507
|
-
|
|
506
|
+
/**
|
|
507
|
+
* A ticket transaction that reached its deadline before its commit: the board stayed busy, nothing was changed, and the
|
|
508
|
+
* request may be made again. Kept apart from `ticketErrorMessages`, which the device contract lists code by code: a
|
|
509
|
+
* device reads it as `operation_limit`.
|
|
510
|
+
*/
|
|
511
|
+
export const ticketBusyErrorMessages = {
|
|
512
|
+
ticket_busy: 'The ticket board was too busy to carry out this request in time, and nothing was changed: read the ticket, then try again.',
|
|
513
|
+
} as const;
|
|
514
|
+
export type TTicketClientErrorCode = Uppercase<keyof typeof ticketErrorMessages | keyof typeof ticketPageErrorMessages
|
|
515
|
+
| keyof typeof ticketBusyErrorMessages>;
|
|
516
|
+
export const ticketClientErrorMessages = Object.fromEntries(Object.entries({ ...ticketErrorMessages, ...ticketPageErrorMessages,
|
|
517
|
+
...ticketBusyErrorMessages })
|
|
508
518
|
.map(([codeArg, messageArg]) => [codeArg.toUpperCase(), messageArg])) as Record<TTicketClientErrorCode, string>;
|