platform-types 1.10.860 → 1.10.861

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.
@@ -183,6 +183,9 @@ export declare const BALANCE_ATTEMPT_MAX_DEBITS = 50;
183
183
  * `order` — an orderless debit, or not the oldest open debit of its order.
184
184
  * - `BALANCE_NOTHING_OWED` · 409 — the selection owes nothing.
185
185
  * - `BALANCE_ATTEMPT_NOT_FOUND` · 404 — no such attempt of the caller's.
186
+ * - `BALANCE_ATTEMPT_CONFLICT` · 409 — a start of another selection by the same
187
+ * customer, at the same moment, took this attempt number; nothing was started
188
+ * for this request — retry.
186
189
  */
187
- export declare const BALANCE_PAYMENT_ERROR_CODES: readonly ["BALANCE_PAYMENT_DISABLED", "BALANCE_CURRENCY_UNSUPPORTED", "BALANCE_SELECTION_STALE", "BALANCE_SELECTION_NOT_PREFIX", "BALANCE_NOTHING_OWED", "BALANCE_ATTEMPT_NOT_FOUND"];
190
+ export declare const BALANCE_PAYMENT_ERROR_CODES: readonly ["BALANCE_PAYMENT_DISABLED", "BALANCE_CURRENCY_UNSUPPORTED", "BALANCE_SELECTION_STALE", "BALANCE_SELECTION_NOT_PREFIX", "BALANCE_NOTHING_OWED", "BALANCE_ATTEMPT_NOT_FOUND", "BALANCE_ATTEMPT_CONFLICT"];
188
191
  export {};
@@ -61,6 +61,9 @@ export const BALANCE_ATTEMPT_MAX_DEBITS = 50;
61
61
  * `order` — an orderless debit, or not the oldest open debit of its order.
62
62
  * - `BALANCE_NOTHING_OWED` · 409 — the selection owes nothing.
63
63
  * - `BALANCE_ATTEMPT_NOT_FOUND` · 404 — no such attempt of the caller's.
64
+ * - `BALANCE_ATTEMPT_CONFLICT` · 409 — a start of another selection by the same
65
+ * customer, at the same moment, took this attempt number; nothing was started
66
+ * for this request — retry.
64
67
  */
65
68
  export const BALANCE_PAYMENT_ERROR_CODES = [
66
69
  'BALANCE_PAYMENT_DISABLED',
@@ -69,4 +72,5 @@ export const BALANCE_PAYMENT_ERROR_CODES = [
69
72
  'BALANCE_SELECTION_NOT_PREFIX',
70
73
  'BALANCE_NOTHING_OWED',
71
74
  'BALANCE_ATTEMPT_NOT_FOUND',
75
+ 'BALANCE_ATTEMPT_CONFLICT',
72
76
  ];
@@ -64,6 +64,9 @@ exports.BALANCE_ATTEMPT_MAX_DEBITS = 50;
64
64
  * `order` — an orderless debit, or not the oldest open debit of its order.
65
65
  * - `BALANCE_NOTHING_OWED` · 409 — the selection owes nothing.
66
66
  * - `BALANCE_ATTEMPT_NOT_FOUND` · 404 — no such attempt of the caller's.
67
+ * - `BALANCE_ATTEMPT_CONFLICT` · 409 — a start of another selection by the same
68
+ * customer, at the same moment, took this attempt number; nothing was started
69
+ * for this request — retry.
67
70
  */
68
71
  exports.BALANCE_PAYMENT_ERROR_CODES = [
69
72
  'BALANCE_PAYMENT_DISABLED',
@@ -72,4 +75,5 @@ exports.BALANCE_PAYMENT_ERROR_CODES = [
72
75
  'BALANCE_SELECTION_NOT_PREFIX',
73
76
  'BALANCE_NOTHING_OWED',
74
77
  'BALANCE_ATTEMPT_NOT_FOUND',
78
+ 'BALANCE_ATTEMPT_CONFLICT',
75
79
  ];
@@ -92,8 +92,10 @@ exports.TERMINAL_ENROLMENT_ERROR_CODES = [
92
92
  * did not match.
93
93
  * - `PASSWORD_NOT_SET` · 409 — `POST /terminal/activation` and `POST
94
94
  * /terminal/pin`: the employee (a founder registered with Google or Apple) has
95
- * no password. The body carries `providers`, the recorded sign-in providers, as
96
- * `POST /auth/verify-password` does. Nothing is counted against the account.
95
+ * no password. On `/terminal/pin` the body carries `providers`, the recorded
96
+ * sign-in providers, as `POST /auth/verify-password` does; `/terminal/activation`
97
+ * answers it after the lock and captcha gates, with no `providers`. Nothing is
98
+ * counted against the account.
97
99
  * - `IDEMPOTENCY_KEY_REUSE` · 422 / `IDEMPOTENCY_IN_PROGRESS` · 409 /
98
100
  * `INVALID_IDEMPOTENCY_KEY` · 400 — the `Idempotency-Key` header's own
99
101
  * refusals on `POST /terminal/operators`. A MISSING header is
@@ -589,8 +589,10 @@ export type TerminalEnrolmentErrorCode = (typeof TERMINAL_ENROLMENT_ERROR_CODES)
589
589
  * did not match.
590
590
  * - `PASSWORD_NOT_SET` · 409 — `POST /terminal/activation` and `POST
591
591
  * /terminal/pin`: the employee (a founder registered with Google or Apple) has
592
- * no password. The body carries `providers`, the recorded sign-in providers, as
593
- * `POST /auth/verify-password` does. Nothing is counted against the account.
592
+ * no password. On `/terminal/pin` the body carries `providers`, the recorded
593
+ * sign-in providers, as `POST /auth/verify-password` does; `/terminal/activation`
594
+ * answers it after the lock and captcha gates, with no `providers`. Nothing is
595
+ * counted against the account.
594
596
  * - `IDEMPOTENCY_KEY_REUSE` · 422 / `IDEMPOTENCY_IN_PROGRESS` · 409 /
595
597
  * `INVALID_IDEMPOTENCY_KEY` · 400 — the `Idempotency-Key` header's own
596
598
  * refusals on `POST /terminal/operators`. A MISSING header is
package/dist/terminal.js CHANGED
@@ -89,8 +89,10 @@ export const TERMINAL_ENROLMENT_ERROR_CODES = [
89
89
  * did not match.
90
90
  * - `PASSWORD_NOT_SET` · 409 — `POST /terminal/activation` and `POST
91
91
  * /terminal/pin`: the employee (a founder registered with Google or Apple) has
92
- * no password. The body carries `providers`, the recorded sign-in providers, as
93
- * `POST /auth/verify-password` does. Nothing is counted against the account.
92
+ * no password. On `/terminal/pin` the body carries `providers`, the recorded
93
+ * sign-in providers, as `POST /auth/verify-password` does; `/terminal/activation`
94
+ * answers it after the lock and captcha gates, with no `providers`. Nothing is
95
+ * counted against the account.
94
96
  * - `IDEMPOTENCY_KEY_REUSE` · 422 / `IDEMPOTENCY_IN_PROGRESS` · 409 /
95
97
  * `INVALID_IDEMPOTENCY_KEY` · 400 — the `Idempotency-Key` header's own
96
98
  * refusals on `POST /terminal/operators`. A MISSING header is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "platform-types",
3
- "version": "1.10.860",
3
+ "version": "1.10.861",
4
4
  "description": "Shared wire and entity contracts for the platform.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",